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
7e5019b40b6f2d29bc5d4c904376e25049d567b2
Wordpress Stackexchange Q: Count posts in custom taxonomy Is there a way to count all published posts from a custom taxonomy? While looking around I found this snippet but I didn’t manage to get it to work … global $wpdb; $query = " SELECT COUNT( DISTINCT cat_posts.ID ) AS post_count FROM wp_term_taxonomy AS cat_term_taxonomy INNER JOIN wp_terms AS cat_terms ON cat_term_taxonomy.term_id = cat_terms.term_id INNER JOIN wp_term_relationships AS cat_term_relationships ON cat_term_taxonomy.term_taxonomy_id = cat_term_relationships.term_taxonomy_id INNER JOIN wp_posts AS cat_posts ON cat_term_relationships.object_id = cat_posts.ID WHERE cat_posts.post_status = 'publish' AND cat_posts.post_type = 'post' AND cat_term_taxonomy.taxonomy = 'YOUR-CUSTOM-TAXONOMY' AND cat_terms.slug IN ('TERM-SLUG-1, TERM-SLUG-2') "; return $wpdb->get_var($query); A: Use an instance of WP_Query to query the database. http://codex.wordpress.org/Class_Reference/WP_Query To query database for custom taxonomies use, $query = new WP_Query( array( 'people' => 'bob' ) ); For more details on available options see: Taxonomy Parameters http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters Retrieve published posts using 'post_status' => 'publish' Use found_posts to retrive the number of posts $count = $query->found_posts;
Q: Count posts in custom taxonomy Is there a way to count all published posts from a custom taxonomy? While looking around I found this snippet but I didn’t manage to get it to work … global $wpdb; $query = " SELECT COUNT( DISTINCT cat_posts.ID ) AS post_count FROM wp_term_taxonomy AS cat_term_taxonomy INNER JOIN wp_terms AS cat_terms ON cat_term_taxonomy.term_id = cat_terms.term_id INNER JOIN wp_term_relationships AS cat_term_relationships ON cat_term_taxonomy.term_taxonomy_id = cat_term_relationships.term_taxonomy_id INNER JOIN wp_posts AS cat_posts ON cat_term_relationships.object_id = cat_posts.ID WHERE cat_posts.post_status = 'publish' AND cat_posts.post_type = 'post' AND cat_term_taxonomy.taxonomy = 'YOUR-CUSTOM-TAXONOMY' AND cat_terms.slug IN ('TERM-SLUG-1, TERM-SLUG-2') "; return $wpdb->get_var($query); A: Use an instance of WP_Query to query the database. http://codex.wordpress.org/Class_Reference/WP_Query To query database for custom taxonomies use, $query = new WP_Query( array( 'people' => 'bob' ) ); For more details on available options see: Taxonomy Parameters http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters Retrieve published posts using 'post_status' => 'publish' Use found_posts to retrive the number of posts $count = $query->found_posts; A: function wp_get_productcat_postcount($id) { //return $count; $args = array( 'post_type' => 'product', //post type, I used 'product' 'post_status' => 'publish', // just tried to find all published post 'posts_per_page' => -1, //show all 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'product_cat', //taxonomy name here, I used 'product_cat' 'field' => 'id', 'terms' => array( $id ) ) ) ); $query = new WP_Query( $args); /* echo '<pre>'; print_r($query->post_count); echo '</pre>'; */ return (int)$query->post_count; } A: I really like the simplicity of Varsha Dhadge's answer, but that is for taxonomy terms attached to one post in particular. For the entire site, use get_terms in a similar way instead: $custom_cats = get_terms( 'custom_cat', // your custom taxonomy slug array( // get all the terms, even empty ones so we can see what items have 0 'hide_empty' => false, ) ); foreach ( $custom_cats as $term ) { echo $term->slug . ' - ' . $term->count . '<br>'; } A: Below code will get count of article from particular taxonomy <?php $terms = get_the_terms( $post->ID , 'your-taxonomy' ); foreach ( $terms as $term ) { echo $term->count; } ?> A: You can do this with the current object with get_queried_object() $posts = get_queried_object(); echo $posts->count; Otherwise you may unnecessarily run a second query, right? A: Wordpress adds attribute count to each taxonomy and updates it whenever a new post is inserted or updated. Because it does not want to go to database again and do calculations to get posts count in taxonomy. echo $custom_tax_obj->count; A: I face this situation in the taxonomy archive templates (e.g. taxonomy-taxname.php) for a site with a custom post type and associated category/tag taxonomies. I wanted in my header to display a count of how many items used the taxonomy. In my taxonomy archive templates, I needed to find the term the taxonomy represented, then pass it off to a function to get the number of custom post type items using that term, this from the tag taxonomy // the term we need for this taxonomy $term_obj = get_queried_object(); // get the term object $term = get_term( $term_obj->term_id, 'taxname' ); // get a count of content with this term $tax_count = get_tax_count('taxname', $term->slug, 'custom-post-type-name'); // grammar counts $plural = ( $tax_count == 1) ? '' : 's'; echo $tax_count . ' Item' . $plural . ' Tagged "' . $term->name . '"'; The function for doing the count uses WP_Query with a tax_query: function tax_count ( $taxonomy, $term, $post_type ) { // find the number of items in custom post type that use the term in a taxonomy $args = array( 'post_type' => $post_type, 'posts_per_page' => -1, 'tax_query' => array( array( 'taxonomy' => $taxonomy, 'field' => 'slug', 'terms' => $term, ), ), ); $tax_query = new WP_Query( $args ); return ($tax_query->found_posts); } A: $args = array( 'post_type' => 'product', 'post_status' => 'published', 'product_cat' => $catpage, // $catpage == your category slug name 'numberposts' => -1 ); echo $num = count( get_posts( $args ) ); A: I have created this function for my requirement and exactly match this question. Get Post Count In or Not In Taxonomy /** * Get Post/Post Type Count in the given Taxonomy * * @param $post_type string any post type * @param $taxonomy string any taxonomy * @param $is_exists string NOT EXISTS or EXISTS * * @return String Number of Post count */ function prefix_get_post_count_in_taxonomy($post_type, $taxonomy, $is_exists = 'NOT EXISTS') { global $wpdb; $count = $wpdb->get_var( " select COUNT(*) as post_count FROM $wpdb->posts as A WHERE $is_exists ( SELECT 1 FROM $wpdb->term_relationships as B INNER JOIN $wpdb->term_taxonomy as C ON C.term_taxonomy_id = B.term_taxonomy_id WHERE C.taxonomy = '$taxonomy' AND B.object_id = A.ID ) AND A.post_type = '$post_type' " ); return $count; } /** * Example * * Post type: download * Taxonomy: download_category * Is Exist: EXISTS */ echo prefix_get_post_count_in_taxonomy('download', 'download_category', 'EXISTS'); A: This method i have followed and it worked for me. $terms = get_terms([ 'taxonomy' => 'types', 'hide_empty' => false, ]); $taxonomies = []; foreach($terms as $term){ echo $term->name .'----->'.$term->count.'<br>'; //here it gives post counts. }
wordpress
{ "language": "en", "length": 828, "provenance": "stackexchange_00019.jsonl.gz:426838", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76229" }
[ 0.04852294921875, 0.0034046173095703125, -0.006298065185546875, -0.02838134765625, 0.035552978515625, -0.038970947265625, 0.07318115234375, 0.003383636474609375, -0.0037841796875, 0.0229034423828125, -0.028228759765625, -0.00830078125, -0.031768798828125, -0.0229034423828125, -0.017303466796875, -0.04449462890625, 0.030120849609375, -0.0031490325927734375, 0.032928466796875, 0.0012636184692382812, -0.0013418197631835938, 0.02447509765625, 0.03472900390625, 0.004993438720703125, 0.013031005859375, -0.007343292236328125, 0.055633544921875, -0.042816162109375, 0.0167083740234375, -0.0318603515625, 0.021087646484375, 0.02313232421875, 0.0269927978515625, -0.0092620849609375, -0.01270294189453125, 0.0305023193359375, 0.0298919677734375, -0.00432586669921875, -0.008148193359375, 0.046539306640625, 0.054107666015625, -0.03692626953125, 0.010528564453125, 0.00835418701171875, 0.0181884765625, -0.0396728515625, 0.061004638671875, -0.0479736328125, 0.0245819091796875, -0.0443115234375, 0.0003814697265625, 0.0196075439453125, 0.019622802734375, -0.06707763671875, -0.01476287841796875, 0.01995849609375, 0.043914794921875, -0.0189208984375, 0.052276611328125, -0.0543212890625, -0.060760498046875, -0.021209716796875, 0.0634765625, -0.01372528076171875, -0.00769805908203125, 0.01259613037109375, 0.0299072265625, 0.019500732421875, -0.0013885498046875, -0.033905029296875, -0.00998687744140625, 0.00815582275390625, -0.019195556640625, 0.035186767578125, -0.005130767822265625, -0.08453369140625, 0.036285400390625, -0.042755126953125, -0.00771331787109375, 0.07135009765625, 0.0267333984375, -0.0236358642578125, -0.056640625, 0.04876708984375, -0.035980224609375, 0.0347900390625, -0.01245880126953125, -0.0156707763671875, -0.0146026611328125, -0.027313232421875, -0.00453948974609375, -0.0312347412109375, -0.06298828125, 0.017547607421875, 0.033477783203125, -0.050537109375, 0.00870513916015625, 0.064208984375, -0.054962158203125, -0.0196533203125, -0.03863525390625, -0.00931549072265625, -0.05194091796875, -0.02325439453125, 0.05084228515625, 0.030303955078125, -0.03106689453125, 0.032501220703125, 0.07763671875, 0.0270843505859375, 0.0236358642578125, 0.0204925537109375, -0.0163726806640625, 0.00556182861328125, -0.01413726806640625, 0.00797271728515625, -0.030517578125, -0.008331298828125, -0.0147247314453125, -0.00843048095703125, -0.01253509521484375, 0.01137542724609375, -0.0263214111328125, 0.008758544921875, -0.0010824203491210938, -0.010223388671875, 0.00013518333435058594, 0.0019216537475585938, 0.003612518310546875, 0.052886962890625, -0.035675048828125, 0.001041412353515625, 0.056854248046875, 0.01467132568359375, -0.011505126953125, -0.027130126953125, 0.01195526123046875, -0.0021533966064453125, -0.0081329345703125, -0.0022830963134765625, -0.004474639892578125, -0.027862548828125, -0.0028285980224609375, -0.0325927734375, 0.003162384033203125, -0.004703521728515625, 0.033782958984375, 0.026763916015625, -0.03045654296875, -0.0164337158203125, 0.0139923095703125, 0.007488250732421875, 0.05413818359375, 0.0017786026000976562, -0.043060302734375, -0.007511138916015625, -0.0186614990234375, -0.01641845703125, -0.0277099609375, -0.0235137939453125, 0.07147216796875, 0.006366729736328125, -0.025726318359375, 0.0200042724609375, -0.0158233642578125, -0.00872039794921875, -0.035614013671875, -0.0125885009765625, 0.0168609619140625, -0.01168060302734375, 0.013153076171875, -0.0102996826171875, 0.0234222412109375, -0.019134521484375, -0.01476287841796875, 0.0024356842041015625, -0.01702880859375, -0.0170440673828125, 0.0233001708984375, 0.027618408203125, -0.0174407958984375, -0.0303192138671875, 0.041168212890625, -0.02093505859375, -0.013427734375, 0.0035572052001953125, 0.0157470703125, 0.039825439453125, -0.0189208984375, 0.020050048828125, 0.0232696533203125, 0.0096282958984375, -0.055328369140625, 0.038909912109375, 0.01384735107421875, -0.0079193115234375, -0.01568603515625, -0.00911712646484375, 0.002307891845703125, -0.015625, -0.01523590087890625, 0.01104736328125, -0.0222015380859375, 0.0157318115234375, -0.0268707275390625, 0.01169586181640625, -0.0100860595703125, 0.0279083251953125, -0.019439697265625, 0.0295257568359375, 0.034271240234375, 0.0171966552734375, -0.03375244140625, -0.0290679931640625, -0.03717041015625, -0.0271148681640625, 0.00970458984375, -0.01189422607421875, -0.03375244140625, -0.026214599609375, -0.04034423828125, -0.02398681640625, -0.042083740234375, 0.06854248046875, 0.0297393798828125, -0.006717681884765625, -0.01153564453125, -0.00821685791015625, 0.033050537109375, 0.028778076171875, -0.02685546875, 0.0109100341796875, 0.0177764892578125, 0.0184783935546875, -0.0139617919921875, -0.0023822784423828125, -0.000980377197265625, -0.061248779296875, 0.0037403106689453125, 0.04742431640625, 0.03790283203125, 0.0019207000732421875, -0.0207366943359375, -0.02874755859375, 0.057403564453125, -0.036376953125, -0.0048675537109375, -0.01291656494140625, 0.01065826416015625, 0.03631591796875, -0.00041675567626953125, 0.0038051605224609375, 0.024749755859375, 0.000904083251953125, 0.017913818359375, 0.03857421875, 0.00232696533203125, 0.0055389404296875, -0.01079559326171875, 0.020355224609375, 0.000004470348358154297, -0.01806640625, -0.019287109375, -0.0121917724609375, 0.01560211181640625, -0.01300811767578125, 0.0274505615234375, 0.0289459228515625, 0.006824493408203125, -0.033203125, 0.0005593299865722656, -0.004150390625, 0.0041961669921875, -0.011474609375, -0.06402587890625, 0.0134124755859375, -0.05181884765625, 0.036590576171875, 0.004169464111328125, -0.033233642578125, -0.005634307861328125, 0.053955078125, -0.0231781005859375, -0.0272064208984375, -0.04425048828125, -0.07275390625, -0.005130767822265625, 0.0008673667907714844, -0.04205322265625, -0.004848480224609375, -0.00708770751953125, 0.06396484375, -0.017364501953125, 0.03955078125, -0.0024242401123046875, 0.022674560546875, -0.007671356201171875, -0.06658935546875, 0.044189453125, -0.035430908203125, 0.05072021484375, 0.07452392578125, 0.01358795166015625, 0.005954742431640625, 0.01067352294921875, -0.0126495361328125, 0.004486083984375, 0.032196044921875, 0.01445770263671875, -0.017059326171875, -0.044891357421875, 0.023040771484375, 0.0181732177734375, 0.0259246826171875, 0.0021686553955078125, -0.0322265625, -0.0104522705078125, -0.006664276123046875, -0.07135009765625, -0.07421875, 0.0022106170654296875, -0.0322265625, 0.01047515869140625, -0.0176239013671875, -0.018798828125, 0.010101318359375, -0.0162506103515625, 0.012786865234375, -0.0232696533203125, -0.0310211181640625, -0.061187744140625, -0.09283447265625, -0.07781982421875, 0.01139068603515625, 0.01195526123046875, 0.0272369384765625, 0.01357269287109375, 0.105712890625, 0.0290679931640625, -0.045074462890625, 0.031524658203125, 0.025848388671875, -0.041046142578125, 0.03131103515625, 0.01215362548828125, 0.008087158203125, -0.01209259033203125, -0.003353118896484375, 0.0163421630859375, 0.035400390625, -0.03790283203125, -0.0018472671508789062, 0.0313720703125, 0.01216888427734375, 0.050750732421875, -0.01058197021484375, -0.0513916015625, 0.0180206298828125, 0.0284271240234375, -0.034759521484375, -0.0086212158203125, -0.0008373260498046875, -0.01438140869140625, -0.0103912353515625, -0.0266265869140625, 0.00534820556640625, -0.005443572998046875, 0.0196075439453125, 0.0035724639892578125, 0.00698089599609375, -0.0192413330078125, -0.01343536376953125, 0.0304107666015625, 0.0220794677734375, 0.033233642578125, 0.0136871337890625, -0.01096343994140625, -0.027252197265625, 0.01070404052734375, -0.0196990966796875, 0.0183868408203125, -0.00042724609375, 0.01230621337890625, -0.0433349609375, -0.06884765625, 0.041229248046875, 0.00032448768615722656, -0.0143585205078125, -0.0115966796875, -0.0301971435546875, 0.00901031494140625, 0.072021484375, 0.00449371337890625, -0.03497314453125, -0.0278472900390625, 0.002361297607421875, -0.00824737548828125, -0.029632568359375, 0.0214080810546875, -0.01239013671875, -0.049407958984375, 0.01065826416015625, 0.0043487548828125, -0.0274200439453125, -0.031982421875, 0.0035552978515625, -0.056121826171875, -0.01349639892578125, 0.026580810546875, -0.036956787109375, -0.0005693435668945312, -0.00395965576171875, -0.0135345458984375, -0.0249481201171875, -0.0011587142944335938, -0.0263824462890625, -0.01187896728515625, -0.01229095458984375, 0.00823211669921875, 0.001377105712890625, -0.016143798828125, 0.0115509033203125, 0.0106201171875, 0.0283966064453125, 0.037139892578125, 0.028900146484375, -0.0034313201904296875, -0.0083465576171875, -0.026458740234375, 0.0003368854522705078, 0.01605224609375, -0.0281219482421875, -0.0026073455810546875, -0.0103912353515625, -0.0226593017578125, 0.04827880859375, -0.0254669189453125, 0.0174713134765625, -0.0196990966796875, -0.0139312744140625, 0.001468658447265625, -0.022308349609375, -0.05035400390625, 0.006771087646484375, -0.035247802734375, -0.006130218505859375, -0.0277252197265625, -0.026702880859375, 0.047271728515625, -0.006927490234375, -0.02581787109375, 0.0192718505859375, 0.11468505859375, 0.004978179931640625, -0.01129913330078125, -0.108642578125, -0.006317138671875, 0.04132080078125, 0.0274658203125, 0.00818634033203125, 0.01983642578125, -0.03118896484375, 0.00608062744140625, 0.031768798828125, -0.0244903564453125, -0.0031986236572265625, 0.055572509765625, -0.0012226104736328125, 0.0007681846618652344, -0.0131072998046875, -0.0312347412109375, 0.025390625, 0.0408935546875, -0.0125732421875, -0.00826263427734375, 0.01248931884765625, 0.03582763671875, -0.0312042236328125, 0.01239013671875, -0.01812744140625, -0.039306640625, 0.0249786376953125, 0.01500701904296875, 0.016326904296875, -0.00444793701171875, 0.002178192138671875, 0.00818634033203125, -0.0112762451171875, -0.001026153564453125, 0.0275115966796875, 0.04388427734375, -0.00396728515625, 0.015533447265625, 0.03680419921875, -0.0234222412109375, -0.000614166259765625, 0.0011587142944335938, 0.00887298583984375, -0.0321044921875, -0.07281494140625, 0.0264434814453125, -0.005496978759765625, -0.0406494140625, 0.0361328125, -0.0164642333984375, 0.05767822265625, 0.06256103515625, -0.0166778564453125, -0.0102386474609375, -0.032318115234375, -0.01477813720703125, -0.050201416015625, 0.02593994140625, -0.00604248046875, 0.00931549072265625, 0.025146484375, 0.0693359375, -0.024627685546875, 0.060211181640625, -0.00970458984375, 0.05859375, 0.0194244384765625, 0.053131103515625, 0.006961822509765625, -0.0201416015625, -0.00489044189453125, 0.0132293701171875, -0.04010009765625, -0.021026611328125, -0.0137481689453125, 0.006259918212890625, 0.005023956298828125, -0.002407073974609375, -0.0007967948913574219, 0.030059814453125, 0.006038665771484375, -0.0216064453125, -0.0279388427734375, -0.0224456787109375, 0.0011243820190429688, -0.028472900390625, -0.0140838623046875, 0.016143798828125, 0.035308837890625, -0.0174102783203125, -0.0034961700439453125, -0.04864501953125, 0.043060302734375, -0.05029296875, 0.03912353515625, -0.0027103424072265625, -0.017547607421875, -0.0419921875, -0.0103302001953125, 0.0083160400390625, -0.00020503997802734375, -0.024871826171875, -0.0118255615234375, -0.0266876220703125, 0.0270538330078125, -0.03155517578125, 0.049346923828125, -0.029754638671875, -0.01495361328125, 0.0054779052734375, -0.01511383056640625, 0.0938720703125, 0.0721435546875, 0.00797271728515625, -0.0306549072265625, -0.026641845703125, -0.011199951171875, 0.055572509765625, 0.00801849365234375, 0.00027823448181152344, -0.017608642578125, 0.018524169921875, 0.0029773712158203125, 0.0119781494140625, -0.03759765625, -0.07110595703125, -0.00004798173904418945, 0.049713134765625, -0.0188140869140625, 0.00801849365234375, 0.032318115234375, 0.0005235671997070312, 0.05523681640625, 0.0010366439819335938, -0.00917816162109375, -0.0193939208984375, -0.035797119140625, -0.0017004013061523438, -0.0740966796875, -0.01303863525390625, 0.0070648193359375, -0.014556884765625, -0.01525115966796875, -0.039642333984375, 0.0026340484619140625, 0.047119140625, -0.00243377685546875, 0.01021575927734375, -0.00820159912109375, -0.03900146484375, -0.0245513916015625, 0.0239105224609375, 0.04144287109375, 0.002124786376953125, 0.0210723876953125, -0.002227783203125, 0.0008797645568847656, 0.0023975372314453125, -0.011505126953125, 0.01137542724609375, -0.008758544921875, -0.0022335052490234375, 0.0310516357421875, 0.021209716796875, 0.01052093505859375, 0.0156402587890625, 0.0069427490234375, 0.0120086669921875, -0.03271484375, -0.0191802978515625, -0.007568359375, -0.00443267822265625, 0.0423583984375, -0.022491455078125, -0.017578125, 0.0330810546875, -0.0285797119140625, -0.0160980224609375, -0.0153656005859375, -0.0120391845703125, -0.0032901763916015625, 0.00836181640625, -0.01549530029296875, -0.004177093505859375, 0.0036487579345703125, -0.0067901611328125, -0.00864410400390625, -0.0273895263671875, 0.035247802734375, -0.0072174072265625, -0.028564453125, -0.003864288330078125, -0.01220703125, -0.0231475830078125, -0.01293182373046875, -0.0036411285400390625, 0.0242767333984375, 0.03826904296875, 0.00537872314453125, -0.0111236572265625, 0.005023956298828125, -0.004741668701171875, 0.00226593017578125, -0.01447296142578125, 0.0391845703125, -0.0092620849609375, 0.0753173828125, -0.07135009765625, 0.043182373046875, 0.0077667236328125, -0.0036411285400390625, 0.0216522216796875, 0.042572021484375, -0.0145416259765625, 0.01092529296875, 0.015899658203125, -0.0115509033203125, -0.06622314453125, 0.0008988380432128906, 0.011962890625, 0.050445556640625, -0.037689208984375, 0.037384033203125, -0.043548583984375, 0.01544952392578125, -0.0057525634765625, -0.01219940185546875, 0.08172607421875, -0.05523681640625, 0.00830078125, 0.032440185546875, 0.0736083984375, -0.004795074462890625, -0.0062713623046875, 0.05706787109375, -0.061065673828125, -0.026824951171875, 0.0289459228515625, -0.006725311279296875, -0.03924560546875, 0.01226806640625, -0.045013427734375, 0.1097412109375, -0.04541015625, 0.0103759765625, 0.0168609619140625, 0.039459228515625, -0.00881195068359375, 0.04412841796875, -0.056732177734375, 0.0770263671875, -0.01099395751953125, 0.058837890625, -0.05328369140625, -0.0123138427734375, 0.022918701171875, 0.0295867919921875, 0.0897216796875, 0.0134735107421875, -0.03997802734375, -0.038299560546875, 0.03411865234375, 0.029022216796875, -0.005748748779296875, 0.03900146484375, 0.02069091796875, 0.037017822265625, 0.060943603515625, -0.041259765625, 0.035430908203125, -0.0184173583984375, 0.0031642913818359375, 0.0214080810546875, 0.0181427001953125, 0.04425048828125, -0.0057373046875, 0.006072998046875, -0.047210693359375, 0.0016536712646484375, 0.043548583984375, 0.01140594482421875, 0.007312774658203125, 0.05615234375, 0.0291748046875, -0.04638671875, -0.024200439453125, -0.026824951171875, 0.036407470703125, -0.008453369140625, 0.035186767578125, 0.0020160675048828125, -0.00002288818359375, 0.10870361328125, -0.0302581787109375, 0.004489898681640625, 0.0141448974609375, -0.0180511474609375, 0.05633544921875, -0.0082855224609375, 0.028594970703125, -0.057098388671875, 0.004547119140625, 0.007114410400390625, 0.06121826171875, -0.039703369140625, -0.0330810546875, 0.01471710205078125, 0.0255126953125, -0.024658203125, 0.0275726318359375, 0.01058197021484375, 0.0865478515625, 0.09442138671875, -0.032501220703125, -0.0021610260009765625, 0.007297515869140625, 0.01068115234375, -0.01541900634765625, -0.0205841064453125, 0.00835418701171875, -0.006771087646484375, -0.041168212890625, -0.019317626953125, 0.0230865478515625, 0.092041015625, 0.034820556640625, 0.030609130859375, -0.054718017578125, -0.03143310546875, 0.0006976127624511719, 0.01453399658203125, 0.0192718505859375, -0.011016845703125, -0.00865936279296875, -0.0202789306640625, 0.0205230712890625, 0.0239105224609375, -0.01178741455078125, 0.01242828369140625, 0.007007598876953125, 0.0595703125, 0.03607177734375, -0.0146484375, 0.050689697265625, -0.006610870361328125, -0.024383544921875, -0.021697998046875, 0.01367950439453125, 0.0185546875, 0.01053619384765625, 0.0167694091796875, 0.0653076171875, 0.01343536376953125, 0.00521087646484375, -0.0031452178955078125, 0.01302337646484375, -0.03955078125, 0.059173583984375, 0.01201629638671875, 0.06402587890625, 0.02496337890625, -0.09454345703125, -0.0241851806640625, -0.0297088623046875, -0.025482177734375, 0.041168212890625, 0.04510498046875, -0.02276611328125, 0.0185699462890625, -0.0084686279296875, -0.0265655517578125, -0.0031604766845703125, 0.021240234375, 0.0164337158203125, 0.0160369873046875, 0.003070831298828125, 0.0005941390991210938, -0.0030155181884765625, -0.018646240234375, 0.036651611328125, 0.04266357421875, -0.0170440673828125, 0.0501708984375, -0.040191650390625, 0.0004241466522216797, -0.047576904296875, 0.03594970703125, -0.0654296875, -0.037261962890625, 0.06024169921875, 0.006443023681640625, -0.01128387451171875, 0.004367828369140625, -0.0384521484375, 0.01471710205078125, 0.044830322265625, -0.039947509765625, 0.0244140625, -0.0113067626953125, 0.00847625732421875, -0.040740966796875, 0.03277587890625, -0.0234832763671875, 0.0277099609375, -0.00470733642578125, -0.035888671875, 0.038116455078125, 0.005214691162109375, 0.0183258056640625, 0.04620361328125, -0.01291656494140625, -0.035400390625, 0.0302276611328125, -0.06109619140625, 0.06494140625, 0.039703369140625, -0.0233612060546875, 0.0068511962890625, 0.0196075439453125, -0.0131378173828125, 0.014923095703125, 0.01309967041015625, 0.014007568359375, 0.0228271484375, -0.059967041015625, -0.0208587646484375, 0.0115966796875, 0.0242767333984375, -0.0184783935546875, 0.01329803466796875, -0.02386474609375, -0.0035343170166015625, 0.0255584716796875, -0.0038967132568359375, -0.0166015625, 0.00004094839096069336, 0.0007071495056152344, 0.016082763671875, 0.0288543701171875, 0.0057525634765625, -0.0188446044921875, -0.00909423828125, 0.0221405029296875, -0.0143585205078125, -0.018829345703125, 0.018157958984375, -0.032470703125, -0.010467529296875, -0.027984619140625, -0.0274200439453125, 0.0325927734375, 0.057342529296875, -0.02960205078125, 0.02935791015625, -0.0077056884765625, -0.05401611328125, 0.001739501953125, 0.0303497314453125, 0.0296783447265625, -0.04364013671875, -0.022064208984375, 0.022674560546875, 0.029876708984375, 0.058013916015625, 0.041748046875, -0.00780487060546875, -0.00017631053924560547, 0.00946807861328125, -0.031036376953125, -0.0614013671875, 0.034332275390625, -0.053680419921875, -0.0389404296875, -0.0017986297607421875, 0.0272064208984375, 0.04827880859375, -0.0209503173828125, -0.0772705078125, 0.036712646484375, -0.024658203125, -0.03521728515625, -0.06298828125, -0.00980377197265625, 0.0125579833984375, -0.0155029296875, -0.036041259765625, -0.00852203369140625, -0.04766845703125, 0.0306243896484375, -0.0009322166442871094, 0.036773681640625, 0.015838623046875, -0.015228271484375, -0.07489013671875, -0.016326904296875, -0.037872314453125, 0.011138916015625, 0.018890380859375, -0.0115509033203125, 0.0254364013671875, 0.01145172119140625, -0.0479736328125, 0.004306793212890625, -0.01502227783203125, 0.02728271484375, -0.01099395751953125, -0.031494140625, 0.0009822845458984375, -0.0175933837890625, 0.04278564453125, 0.006191253662109375, 0.005252838134765625, -0.02093505859375, -0.0292510986328125, -0.057037353515625, -0.0193939208984375, -0.0269927978515625, 0.01435089111328125, -0.07000732421875, -0.00002104043960571289, -0.0026302337646484375, -0.00514984130859375, -0.0190887451171875, -0.022613525390625, -0.031707763671875, -0.016693115234375, -0.0285797119140625, 0.005809783935546875, -0.0245513916015625, 0.039520263671875, -0.037353515625, -0.010986328125, -0.0361328125, -0.007080078125, -0.0162811279296875, -0.049163818359375, 0.0231170654296875, -0.0061492919921875, 0.025604248046875, 0.017852783203125, 0.01678466796875, 0.030670166015625, -0.061767578125, 0.01473236083984375, 0.0333251953125, -0.002368927001953125, 0.0020542144775390625, -0.02044677734375, -0.006580352783203125, -0.0004131793975830078, 0.04150390625, -0.001422882080078125, 0.07452392578125, -0.00612640380859375, -0.004726409912109375, -0.0240936279296875, 0.022186279296875, -0.0192413330078125, -0.0036449432373046875, 0.0022907257080078125, 0.0036468505859375, 0.002597808837890625, -0.003154754638671875, -0.03497314453125, -0.04571533203125, 0.01800537109375, 0.0243072509765625, -0.00237274169921875, 0.0173797607421875 ]
a827abeb14d460ce961631cf10b83d167ee4bcd9
Wordpress Stackexchange Q: How do I use WP_query with multiple post IDs? I want to query multiple posts with an array of IDs (note: I am querying a custom post type). Here's what I have, which isn't working: $myarray = array(144, 246); $args = array( 'post_type' => 'ai1ec_event', 'p' => $myarray ); // The Query $the_query = new WP_Query( $args ); Any tips on how to do this? A: Please reference the Codex entry for post/page parameters for WP_Query(). The 'p' parameter takes a single post ID, as an integer. To pass an array of posts, you need to use 'post__in': $myarray = array(144, 246); $args = array( 'post_type' => 'ai1ec_event', 'post__in' => $myarray ); // The Query $the_query = new WP_Query( $args );
Q: How do I use WP_query with multiple post IDs? I want to query multiple posts with an array of IDs (note: I am querying a custom post type). Here's what I have, which isn't working: $myarray = array(144, 246); $args = array( 'post_type' => 'ai1ec_event', 'p' => $myarray ); // The Query $the_query = new WP_Query( $args ); Any tips on how to do this? A: Please reference the Codex entry for post/page parameters for WP_Query(). The 'p' parameter takes a single post ID, as an integer. To pass an array of posts, you need to use 'post__in': $myarray = array(144, 246); $args = array( 'post_type' => 'ai1ec_event', 'post__in' => $myarray ); // The Query $the_query = new WP_Query( $args );
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:426848", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76269" }
[ 0.051971435546875, -0.004985809326171875, 0.009918212890625, -0.0207977294921875, 0.01290130615234375, -0.03460693359375, 0.06292724609375, -0.00920867919921875, -0.0209808349609375, 0.0303497314453125, -0.037445068359375, 0.0006284713745117188, -0.036407470703125, -0.01030731201171875, -0.02008056640625, -0.061248779296875, 0.0255889892578125, -0.05816650390625, -0.032867431640625, -0.0276336669921875, 0.0123748779296875, -0.0223388671875, 0.0257568359375, 0.06475830078125, 0.0288848876953125, 0.0173492431640625, 0.043365478515625, -0.00696563720703125, 0.0306854248046875, -0.00321197509765625, 0.0206298828125, -0.02301025390625, 0.0272369384765625, -0.018157958984375, 0.021881103515625, 0.01110076904296875, 0.017333984375, -0.0207061767578125, 0.0211181640625, 0.0142974853515625, 0.01611328125, -0.00739288330078125, 0.01139068603515625, 0.031524658203125, -0.0131988525390625, -0.01251983642578125, 0.02197265625, -0.0374755859375, 0.0175933837890625, -0.05035400390625, -0.007328033447265625, 0.00327301025390625, 0.021270751953125, -0.02117919921875, -0.016754150390625, 0.0019063949584960938, 0.025543212890625, -0.01520538330078125, 0.056488037109375, -0.04107666015625, -0.0648193359375, -0.03692626953125, 0.03759765625, -0.022064208984375, -0.0196990966796875, 0.0308837890625, 0.045135498046875, 0.006450653076171875, -0.029876708984375, -0.05987548828125, -0.00748443603515625, -0.01502227783203125, -0.029541015625, -0.015655517578125, -0.0100250244140625, -0.01953125, 0.01617431640625, -0.031494140625, -0.0246734619140625, 0.04437255859375, -0.037261962890625, -0.01351165771484375, -0.0819091796875, 0.01438140869140625, -0.0193634033203125, 0.031341552734375, -0.0205230712890625, -0.0014753341674804688, -0.0223236083984375, -0.013336181640625, -0.0169677734375, -0.07061767578125, -0.02459716796875, 0.0239715576171875, 0.0058135986328125, -0.0380859375, -0.01092529296875, 0.01708984375, -0.01468658447265625, 0.00804901123046875, -0.019927978515625, -0.0233306884765625, 0.01397705078125, -0.0157623291015625, 0.00846099853515625, 0.034759521484375, 0.03582763671875, 0.0845947265625, 0.05859375, 0.017578125, 0.01038360595703125, 0.0372314453125, -0.0000374913215637207, -0.003170013427734375, -0.03472900390625, 0.01493072509765625, -0.0189666748046875, -0.0109100341796875, -0.004962921142578125, -0.0038204193115234375, 0.002689361572265625, 0.02825927734375, -0.007251739501953125, 0.00739288330078125, 0.002010345458984375, 0.01007080078125, 0.0299530029296875, -0.04931640625, -0.01342010498046875, 0.0269317626953125, -0.030517578125, -0.004947662353515625, 0.06634521484375, 0.040435791015625, 0.01384735107421875, -0.027618408203125, 0.0116729736328125, -0.0005855560302734375, 0.00421142578125, -0.02215576171875, 0.052703857421875, -0.042724609375, -0.0439453125, 0.04364013671875, -0.003047943115234375, 0.0005631446838378906, 0.0269622802734375, 0.0265655517578125, -0.02203369140625, -0.033111572265625, 0.0004589557647705078, 0.0304107666015625, 0.025482177734375, 0.013275146484375, -0.0231170654296875, -0.00830078125, 0.01540374755859375, -0.0389404296875, -0.01763916015625, -0.039581298828125, -0.00936126708984375, 0.0223846435546875, 0.050567626953125, 0.0024662017822265625, -0.00783538818359375, -0.0276641845703125, -0.044769287109375, -0.020965576171875, 0.0236663818359375, 0.01480865478515625, -0.019287109375, -0.031494140625, 0.0732421875, 0.024688720703125, -0.024169921875, 0.037567138671875, 0.0263519287109375, -0.0031223297119140625, -0.00580596923828125, 0.048004150390625, -0.021820068359375, -0.043060302734375, -0.017852783203125, -0.0129241943359375, -0.0662841796875, 0.0887451171875, -0.002857208251953125, 0.078857421875, -0.01239013671875, 0.00927734375, 0.02276611328125, 0.046142578125, -0.0457763671875, 0.03118896484375, -0.00238800048828125, -0.0271759033203125, -0.0175933837890625, -0.0013990402221679688, -0.0008587837219238281, -0.019989013671875, 0.04571533203125, -0.00008970499038696289, -0.006961822509765625, 0.0275115966796875, -0.056640625, 0.01090240478515625, -0.007213592529296875, 0.00021576881408691406, -0.00012373924255371094, 0.017852783203125, 0.00267791748046875, -0.00270843505859375, -0.01690673828125, -0.005947113037109375, -0.03204345703125, 0.0026836395263671875, -0.01898193359375, -0.000469207763671875, -0.0300445556640625, 0.0146636962890625, -0.061126708984375, -0.0262908935546875, -0.0618896484375, 0.03814697265625, 0.07818603515625, -0.04345703125, 0.005100250244140625, -0.03375244140625, 0.04864501953125, -0.005916595458984375, -0.056793212890625, 0.0203857421875, 0.03759765625, 0.041015625, 0.00490570068359375, 0.00923919677734375, 0.042388916015625, -0.0426025390625, 0.005756378173828125, 0.03778076171875, 0.0304718017578125, 0.0302734375, -0.002410888671875, 0.0010356903076171875, 0.033599853515625, -0.04119873046875, 0.0153045654296875, -0.01910400390625, -0.01044464111328125, -0.0144805908203125, 0.0177154541015625, 0.003978729248046875, 0.04296875, 0.00972747802734375, 0.029449462890625, 0.0254364013671875, 0.0025806427001953125, 0.00008237361907958984, -0.01416778564453125, 0.01837158203125, -0.02301025390625, -0.062103271484375, -0.0122833251953125, -0.02679443359375, 0.0051727294921875, 0.0139923095703125, 0.01849365234375, 0.01229095458984375, -0.025848388671875, 0.020660400390625, 0.0022907257080078125, -0.03985595703125, -0.00521087646484375, -0.023406982421875, -0.0304718017578125, 0.037017822265625, -0.0287017822265625, 0.026458740234375, 0.007205963134765625, -0.012420654296875, 0.00110626220703125, 0.05487060546875, -0.043792724609375, -0.02166748046875, -0.032470703125, -0.0029659271240234375, -0.0220489501953125, 0.006839752197265625, -0.0309600830078125, -0.04461669921875, 0.0007567405700683594, 0.056915283203125, -0.0469970703125, 0.061859130859375, -0.0247955322265625, -0.0081634521484375, 0.0044403076171875, -0.04931640625, 0.049957275390625, -0.056640625, 0.0203704833984375, 0.05633544921875, -0.0218658447265625, -0.003940582275390625, -0.00646209716796875, 0.00007623434066772461, 0.0149993896484375, 0.026275634765625, -0.001399993896484375, -0.0419921875, -0.02215576171875, -0.005462646484375, 0.02947998046875, 0.08282470703125, 0.0085296630859375, -0.03533935546875, 0.00458526611328125, 0.053070068359375, -0.072265625, -0.10455322265625, 0.05206298828125, -0.06927490234375, -0.027679443359375, -0.057708740234375, -0.049652099609375, 0.010284423828125, -0.034912109375, -0.018096923828125, -0.01303863525390625, 0.0014934539794921875, -0.06109619140625, -0.01224517822265625, -0.0298004150390625, 0.06695556640625, -0.01123809814453125, 0.01751708984375, 0.0159149169921875, 0.05157470703125, 0.01471710205078125, -0.0511474609375, 0.004352569580078125, 0.048675537109375, -0.0227813720703125, -0.01158905029296875, 0.007808685302734375, -0.0096282958984375, 0.00534820556640625, -0.003345489501953125, 0.0287933349609375, 0.0323486328125, -0.0298309326171875, -0.0029354095458984375, 0.0113677978515625, 0.022979736328125, 0.0474853515625, -0.0211029052734375, -0.048187255859375, 0.05596923828125, 0.036041259765625, -0.01715087890625, -0.0015764236450195312, -0.039642333984375, -0.04742431640625, -0.0262298583984375, 0.04376220703125, 0.00023651123046875, -0.04156494140625, -0.0200958251953125, 0.018646240234375, -0.0212554931640625, -0.045196533203125, -0.03338623046875, 0.0628662109375, 0.0455322265625, 0.07183837890625, 0.011016845703125, -0.0362548828125, -0.0323486328125, 0.0175933837890625, -0.0330810546875, -0.0025730133056640625, -0.017333984375, -0.00044918060302734375, -0.0445556640625, -0.0318603515625, 0.050933837890625, -0.013397216796875, -0.001438140869140625, -0.026397705078125, -0.028533935546875, -0.00923919677734375, 0.059478759765625, 0.0005669593811035156, -0.033599853515625, -0.03485107421875, 0.020843505859375, -0.055511474609375, -0.064453125, 0.019622802734375, 0.0026760101318359375, 0.029571533203125, -0.0279083251953125, -0.0267791748046875, -0.0254669189453125, -0.01593017578125, -0.00789642333984375, 0.0140380859375, -0.007904052734375, 0.031829833984375, -0.0276031494140625, -0.0028247833251953125, 0.01519012451171875, -0.010406494140625, -0.01410675048828125, -0.033538818359375, 0.0036754608154296875, -0.10101318359375, -0.0284271240234375, 0.0297088623046875, 0.0684814453125, -0.017120361328125, -0.040069580078125, -0.011566162109375, 0.07025146484375, -0.0016489028930664062, 0.04962158203125, -0.0241851806640625, 0.0147552490234375, -0.029571533203125, -0.0219879150390625, -0.0052642822265625, -0.025421142578125, -0.017486572265625, -0.0112457275390625, -0.007465362548828125, 0.0101165771484375, -0.032806396484375, -0.03240966796875, -0.010589599609375, -0.0131072998046875, -0.0186004638671875, 0.00035572052001953125, 0.014312744140625, -0.00014412403106689453, -0.00749969482421875, 0.003276824951171875, 0.00394439697265625, -0.0229644775390625, 0.052032470703125, 0.00899505615234375, 0.00707244873046875, 0.003635406494140625, 0.1041259765625, 0.00952911376953125, -0.031005859375, -0.093505859375, -0.0194549560546875, 0.024505615234375, -0.023956298828125, 0.0249481201171875, -0.004573822021484375, -0.0188140869140625, 0.041473388671875, -0.00787353515625, -0.0172882080078125, 0.01039886474609375, 0.028076171875, 0.0102081298828125, -0.0210723876953125, 0.01047515869140625, -0.030914306640625, -0.000652313232421875, 0.02813720703125, -0.009063720703125, -0.03582763671875, 0.0027790069580078125, 0.06365966796875, -0.01934814453125, 0.028564453125, -0.047149658203125, -0.0275726318359375, 0.026702880859375, -0.0294952392578125, 0.0206298828125, 0.0189208984375, -0.00818634033203125, 0.00982666015625, -0.017120361328125, 0.003814697265625, 0.05279541015625, 0.06634521484375, -0.0079498291015625, 0.0193023681640625, 0.07171630859375, -0.0206756591796875, -0.016204833984375, -0.0014009475708007812, 0.0369873046875, 0.00531005859375, -0.0362548828125, -0.0008687973022460938, -0.00730133056640625, 0.005802154541015625, 0.0084381103515625, -0.011077880859375, 0.0516357421875, 0.051483154296875, -0.007503509521484375, 0.008636474609375, -0.01039886474609375, 0.0000833272933959961, -0.03924560546875, 0.003143310546875, 0.0033416748046875, 0.00347137451171875, 0.0018835067749023438, 0.07232666015625, -0.0108489990234375, 0.048553466796875, -0.0247955322265625, 0.033935546875, 0.019927978515625, 0.055389404296875, 0.0008111000061035156, -0.025726318359375, 0.002208709716796875, 0.0455322265625, -0.01337432861328125, -0.045440673828125, -0.0212554931640625, 0.02813720703125, 0.0225677490234375, 0.037353515625, 0.00701141357421875, -0.002330780029296875, 0.0228118896484375, -0.00026226043701171875, 0.010009765625, -0.0069122314453125, -0.0295562744140625, -0.013153076171875, 0.007415771484375, -0.0008058547973632812, -0.0103912353515625, -0.0031414031982421875, -0.0002624988555908203, -0.040191650390625, 0.02294921875, -0.041961669921875, 0.02655029296875, -0.0188751220703125, -0.0290374755859375, 0.0269775390625, -0.0275115966796875, -0.0263214111328125, -0.0139007568359375, -0.0011806488037109375, -0.022979736328125, -0.0088958740234375, 0.0276947021484375, -0.006977081298828125, 0.03192138671875, -0.02239990234375, -0.017333984375, 0.023956298828125, 0.0027217864990234375, 0.0614013671875, 0.02557373046875, -0.024749755859375, -0.005401611328125, -0.02960205078125, -0.003276824951171875, 0.04010009765625, -0.017578125, -0.0234222412109375, -0.029388427734375, -0.01538848876953125, 0.02789306640625, -0.00933837890625, 0.0164947509765625, 0.0035076141357421875, -0.0111236572265625, -0.054962158203125, 0.013763427734375, -0.025360107421875, 0.04486083984375, -0.0241241455078125, 0.017547607421875, -0.03387451171875, -0.01110076904296875, -0.01018524169921875, 0.0160980224609375, -0.0007457733154296875, -0.061126708984375, -0.007709503173828125, 0.017822265625, -0.0207672119140625, -0.006099700927734375, -0.0216522216796875, -0.0006580352783203125, 0.0264434814453125, -0.0367431640625, 0.004878997802734375, -0.01486968994140625, 0.034210205078125, -0.0611572265625, 0.00494384765625, 0.0301666259765625, -0.01081085205078125, 0.0009737014770507812, 0.0088043212890625, 0.0239410400390625, -0.027374267578125, -0.006771087646484375, -0.0257568359375, -0.00290679931640625, -0.00431060791015625, 0.0189208984375, 0.044921875, -0.003582000732421875, 0.033355712890625, -0.00803375244140625, -0.0005002021789550781, 0.0189666748046875, -0.006488800048828125, 0.01535797119140625, -0.0089263916015625, 0.019775390625, -0.023773193359375, 0.0122222900390625, -0.0031566619873046875, -0.0085601806640625, -0.0213470458984375, -0.01751708984375, 0.002368927001953125, -0.0074615478515625, 0.00860595703125, -0.020965576171875, 0.0012178421020507812, 0.0193939208984375, -0.00897979736328125, 0.0168609619140625, -0.0111083984375, 0.012969970703125, 0.032989501953125, -0.025604248046875, 0.0029010772705078125, 0.00852203369140625, 0.00965118408203125, -0.0238494873046875, 0.0279388427734375, -0.0084991455078125, -0.07501220703125, 0.0248260498046875, 0.06439208984375, -0.02032470703125, -0.00786590576171875, -0.00525665283203125, 0.029937744140625, -0.032623291015625, -0.089599609375, -0.00090789794921875, -0.0438232421875, -0.01434326171875, -0.00974273681640625, -0.00830078125, 0.053924560546875, 0.043487548828125, 0.00885772705078125, -0.01551055908203125, 0.0246734619140625, -0.01122283935546875, -0.0653076171875, -0.0085601806640625, 0.0162811279296875, 0.060333251953125, -0.053802490234375, 0.04327392578125, -0.03704833984375, 0.01502227783203125, 0.005535125732421875, 0.0166473388671875, 0.0187225341796875, -0.03839111328125, 0.0005393028259277344, 0.0419921875, 0.022064208984375, -0.0060882568359375, 0.0209503173828125, -0.013153076171875, -0.0303192138671875, -0.043426513671875, 0.0048065185546875, -0.059356689453125, 0.0003323554992675781, 0.0018148422241210938, -0.06671142578125, 0.1134033203125, -0.01158905029296875, 0.0303802490234375, 0.03009033203125, 0.034759521484375, -0.045379638671875, 0.005062103271484375, -0.03582763671875, 0.034698486328125, -0.01340484619140625, 0.043182373046875, -0.06805419921875, -0.01617431640625, 0.0025463104248046875, 0.047760009765625, 0.07696533203125, 0.007289886474609375, -0.021942138671875, -0.014801025390625, 0.05255126953125, 0.061248779296875, 0.0137481689453125, 0.01800537109375, 0.02386474609375, 0.01551055908203125, 0.0655517578125, 0.00875091552734375, 0.056640625, -0.0033931732177734375, -0.00408172607421875, 0.03851318359375, -0.004360198974609375, -0.02117919921875, 0.0298614501953125, -0.037078857421875, -0.021270751953125, 0.00846099853515625, 0.0017099380493164062, -0.0121917724609375, 0.03460693359375, 0.0187835693359375, 0.057037353515625, -0.048095703125, -0.0279998779296875, -0.020721435546875, 0.049102783203125, 0.00853729248046875, 0.01540374755859375, 0.0297088623046875, 0.0165557861328125, 0.04833984375, 0.01099395751953125, 0.01416015625, 0.02911376953125, -0.0083160400390625, 0.049285888671875, 0.01331329345703125, 0.0247650146484375, -0.077392578125, -0.049102783203125, 0.063720703125, 0.077880859375, -0.0280303955078125, -0.035003662109375, 0.01012420654296875, 0.00251007080078125, 0.0117645263671875, -0.02020263671875, 0.0254669189453125, 0.0283355712890625, 0.058807373046875, -0.00958251953125, -0.004825592041015625, 0.0055694580078125, -0.0101470947265625, -0.0082244873046875, 0.02056884765625, -0.0016574859619140625, -0.004917144775390625, -0.040008544921875, -0.009124755859375, 0.0162506103515625, 0.06640625, 0.027313232421875, 0.0380859375, -0.0369873046875, -0.0293731689453125, 0.0024509429931640625, 0.04559326171875, -0.0007658004760742188, -0.003604888916015625, -0.030731201171875, -0.06304931640625, 0.00677490234375, 0.03668212890625, 0.0400390625, 0.03125, 0.0465087890625, 0.04217529296875, -0.0159759521484375, -0.0018062591552734375, 0.032928466796875, -0.016876220703125, -0.007572174072265625, -0.016815185546875, 0.000926971435546875, 0.0136566162109375, -0.01346588134765625, -0.0027027130126953125, 0.05181884765625, 0.00009322166442871094, 0.0171966552734375, 0.0132904052734375, 0.004749298095703125, 0.0108642578125, -0.0004253387451171875, 0.0171661376953125, -0.0384521484375, 0.02484130859375, -0.07769775390625, -0.0161285400390625, -0.0180206298828125, -0.041046142578125, 0.050811767578125, 0.058990478515625, -0.01253509521484375, 0.00689697265625, 0.005279541015625, -0.0170135498046875, -0.0008916854858398438, -0.0007266998291015625, 0.0230865478515625, -0.007312774658203125, -0.0029468536376953125, -0.007965087890625, -0.078125, -0.037078857421875, 0.0120086669921875, 0.005382537841796875, 0.00910186767578125, 0.0015087127685546875, 0.04559326171875, 0.01259613037109375, 0.0023899078369140625, 0.04522705078125, -0.0246124267578125, -0.006130218505859375, 0.049652099609375, -0.007274627685546875, 0.00839996337890625, -0.009521484375, 0.0302886962890625, 0.0252685546875, 0.04815673828125, -0.0144500732421875, 0.0044403076171875, -0.026641845703125, 0.0150604248046875, -0.00696563720703125, 0.02044677734375, -0.00884246826171875, 0.02081298828125, -0.034271240234375, -0.03326416015625, 0.08349609375, 0.03680419921875, -0.02435302734375, 0.004802703857421875, 0.019561767578125, -0.034942626953125, 0.04541015625, -0.027496337890625, 0.054412841796875, 0.0241851806640625, 0.0159759521484375, 0.0004496574401855469, -0.02862548828125, -0.025482177734375, -0.0118255615234375, 0.016448974609375, -0.0229339599609375, 0.004848480224609375, 0.0026988983154296875, -0.02313232421875, 0.034332275390625, 0.03387451171875, 0.00022399425506591797, 0.01514434814453125, 0.0221099853515625, -0.034759521484375, 0.0092315673828125, -0.0173187255859375, -0.032440185546875, -0.039581298828125, 0.032012939453125, 0.0182952880859375, 0.01212310791015625, 0.0005764961242675781, -0.0277862548828125, -0.00542449951171875, 0.00354766845703125, 0.00334930419921875, -0.00762176513671875, 0.001842498779296875, -0.032958984375, -0.0116729736328125, -0.026153564453125, -0.046783447265625, 0.0290985107421875, 0.02593994140625, -0.0154876708984375, 0.00113677978515625, -0.022247314453125, -0.0179901123046875, -0.0021495819091796875, 0.0035114288330078125, 0.01213836669921875, -0.0193328857421875, -0.036956787109375, 0.03143310546875, 0.020233154296875, 0.057159423828125, 0.024566650390625, -0.00213623046875, 0.06219482421875, -0.00318145751953125, -0.0435791015625, -0.06463623046875, 0.019195556640625, -0.04986572265625, -0.004974365234375, 0.01480865478515625, 0.040191650390625, 0.0712890625, -0.0121612548828125, -0.0740966796875, 0.08087158203125, -0.0396728515625, -0.0173797607421875, -0.07135009765625, 0.00815582275390625, 0.0423583984375, -0.069580078125, -0.035186767578125, -0.01763916015625, -0.06365966796875, -0.008392333984375, -0.012298583984375, 0.0272369384765625, 0.016204833984375, 0.0015573501586914062, -0.0755615234375, -0.023223876953125, -0.053070068359375, 0.0037326812744140625, 0.01165008544921875, -0.0274658203125, 0.026092529296875, 0.006359100341796875, -0.057220458984375, -0.01190185546875, -0.00284576416015625, 0.01434326171875, -0.0286865234375, -0.0014066696166992188, -0.03143310546875, 0.01068878173828125, 0.050628662109375, 0.09210205078125, 0.0246124267578125, -0.043182373046875, 0.01038360595703125, -0.00806427001953125, -0.0159454345703125, -0.0035953521728515625, 0.01560211181640625, -0.032958984375, -0.0080413818359375, 0.006595611572265625, -0.005878448486328125, 0.01314544677734375, -0.0265045166015625, -0.0236358642578125, -0.02850341796875, -0.034576416015625, -0.00960540771484375, -0.0189361572265625, 0.0543212890625, 0.020263671875, -0.03875732421875, -0.044525146484375, -0.0237884521484375, -0.0024814605712890625, -0.03167724609375, -0.062347412109375, -0.001438140869140625, -0.0128631591796875, 0.0142669677734375, 0.013916015625, 0.0118255615234375, -0.023712158203125, 0.01401519775390625, -0.0087127685546875, -0.01273345947265625, 0.0216522216796875, -0.01434326171875, 0.01076507568359375, 0.0016889572143554688, 0.036834716796875, 0.00968170166015625, 0.06402587890625, -0.01274871826171875, 0.05169677734375, -0.021881103515625, 0.03173828125, 0.0004754066467285156, 0.002552032470703125, 0.0330810546875, -0.008575439453125, 0.0056610107421875, 0.0026683807373046875, -0.01262664794921875, -0.022369384765625, 0.0176544189453125, 0.052734375, -0.0194244384765625, 0.012054443359375 ]
9c555fa1cc7bc305ba4a770de2919eb52929707a
Wordpress Stackexchange Q: how to use thickbox in admin? I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed inside of the thickbox. <a href="?page=blahblah&TB_iframe=true&width=600&height=550" class="thickbox">Click</a> class myAdmin { public function __construct() { } public function myfunction() { echo '<div class="css_class">The content of my thickbox</div>'; } } A: Below, an example of what's needed to use ThickBox. <?php wp_enqueue_style('thickbox'); wp_enqueue_script('thickbox'); ?> <a href="#" id="taxonomy_banner_image" class="taxonomy_banner_image"> Click Here </a> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#taxonomy_banner_image").click(function() { tb_show("", "filename?TB_iframe=true"); return false; }); }); </script> tb_show parameters: * *title of the box. *url of file and with parameter iframe=true I think this will give you an idea how to use the ThickBox. If you face any problem, let me know.
Q: how to use thickbox in admin? I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed inside of the thickbox. <a href="?page=blahblah&TB_iframe=true&width=600&height=550" class="thickbox">Click</a> class myAdmin { public function __construct() { } public function myfunction() { echo '<div class="css_class">The content of my thickbox</div>'; } } A: Below, an example of what's needed to use ThickBox. <?php wp_enqueue_style('thickbox'); wp_enqueue_script('thickbox'); ?> <a href="#" id="taxonomy_banner_image" class="taxonomy_banner_image"> Click Here </a> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#taxonomy_banner_image").click(function() { tb_show("", "filename?TB_iframe=true"); return false; }); }); </script> tb_show parameters: * *title of the box. *url of file and with parameter iframe=true I think this will give you an idea how to use the ThickBox. If you face any problem, let me know.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:426871", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76358" }
[ 0.072509765625, -0.0199737548828125, 0.0154876708984375, -0.07879638671875, 0.0115966796875, -0.00995635986328125, -0.01471710205078125, 0.0055389404296875, -0.012237548828125, 0.0029468536376953125, -0.053985595703125, -0.00525665283203125, -0.0204620361328125, -0.005157470703125, -0.0011053085327148438, -0.054290771484375, 0.051605224609375, -0.01337432861328125, 0.02716064453125, -0.0013284683227539062, 0.006900787353515625, 0.0322265625, 0.018402099609375, 0.047027587890625, 0.049072265625, -0.053680419921875, 0.06585693359375, -0.0188140869140625, -0.000690460205078125, -0.033416748046875, 0.029510498046875, 0.01371002197265625, 0.0321044921875, 0.009368896484375, -0.0227813720703125, -0.005466461181640625, 0.01271820068359375, 0.00525665283203125, 0.0035800933837890625, 0.0250701904296875, -0.0026416778564453125, 0.0080108642578125, 0.029998779296875, 0.02099609375, -0.02294921875, -0.04620361328125, -0.0031414031982421875, -0.022186279296875, 0.0182037353515625, -0.013885498046875, 0.032806396484375, 0.024993896484375, 0.0350341796875, 0.0027370452880859375, -0.0065460205078125, 0.0311737060546875, -0.003337860107421875, -0.01214599609375, 0.0275421142578125, 0.03778076171875, -0.015625, -0.01241302490234375, 0.003231048583984375, -0.050048828125, -0.0189971923828125, -0.028076171875, 0.0010662078857421875, 0.017913818359375, -0.06939697265625, -0.019317626953125, 0.0665283203125, -0.0178070068359375, -0.022705078125, -0.01303863525390625, -0.02874755859375, -0.0016651153564453125, -0.007053375244140625, -0.0341796875, 0.0162200927734375, -0.0034770965576171875, 0.006664276123046875, 0.028228759765625, -0.032684326171875, 0.02105712890625, 0.0227813720703125, 0.064697265625, -0.013671875, -0.0513916015625, 0.0007891654968261719, -0.03692626953125, -0.0158538818359375, -0.0362548828125, 0.0246734619140625, -0.01403045654296875, -0.044891357421875, -0.04595947265625, -0.0121307373046875, -0.004344940185546875, 0.003787994384765625, 0.01317596435546875, -0.0338134765625, -0.0023975372314453125, -0.0230712890625, -0.0194854736328125, 0.00698089599609375, 0.06683349609375, -0.0049591064453125, -0.01482391357421875, 0.0187225341796875, -0.0018358230590820312, 0.0031585693359375, -0.03204345703125, 0.01070404052734375, 0.0135040283203125, -0.0325927734375, -0.03485107421875, -0.0465087890625, 0.009521484375, -0.0086822509765625, 0.0071258544921875, 0.014892578125, 0.0252227783203125, 0.0248260498046875, 0.0254058837890625, -0.019744873046875, 0.0163421630859375, 0.00666046142578125, -0.06121826171875, 0.021697998046875, -0.034454345703125, -0.0132598876953125, 0.0165863037109375, 0.0291748046875, 0.04095458984375, 0.032806396484375, 0.000492095947265625, 0.0268096923828125, -0.002010345458984375, -0.006866455078125, -0.0201263427734375, 0.030059814453125, 0.0079498291015625, 0.022247314453125, 0.00994873046875, -0.05810546875, 0.0498046875, 0.0205841064453125, -0.01910400390625, -0.023712158203125, -0.1019287109375, -0.0027179718017578125, -0.07061767578125, 0.05804443359375, 0.030242919921875, -0.0562744140625, 0.0078887939453125, 0.0706787109375, -0.031280517578125, -0.07470703125, -0.08270263671875, 0.015411376953125, 0.0261688232421875, 0.06671142578125, 0.00926971435546875, 0.0229644775390625, -0.054351806640625, -0.059112548828125, -0.00556182861328125, 0.01509857177734375, -0.053619384765625, 0.00885772705078125, -0.0075225830078125, -0.01221466064453125, 0.007266998291015625, 0.0189208984375, 0.0309906005859375, 0.00909423828125, 0.039886474609375, 0.0266571044921875, 0.00885009765625, -0.0044403076171875, -0.05194091796875, 0.08154296875, -0.050537109375, -0.0218963623046875, -0.0032711029052734375, 0.0258026123046875, 0.047515869140625, -0.010406494140625, 0.0267181396484375, 0.0201873779296875, 0.0153045654296875, -0.04559326171875, 0.01666259765625, 0.0231781005859375, 0.0005216598510742188, -0.01548004150390625, 0.0012664794921875, 0.0018892288208007812, -0.0246429443359375, -0.035858154296875, -0.0235137939453125, 0.0499267578125, 0.01739501953125, 0.034423828125, 0.0218505859375, -0.01349639892578125, 0.03521728515625, 0.0022335052490234375, 0.01425933837890625, 0.0202789306640625, 0.0081939697265625, -0.0130157470703125, -0.049041748046875, -0.01084136962890625, 0.0228118896484375, -0.0107421875, 0.0246429443359375, -0.0240325927734375, 0.0273284912109375, -0.0335693359375, -0.019378662109375, -0.02947998046875, 0.018463134765625, -0.0167388916015625, 0.03143310546875, -0.015625, 0.01806640625, -0.0295562744140625, 0.03643798828125, -0.007381439208984375, -0.0069580078125, 0.00731658935546875, 0.04888916015625, -0.00637054443359375, -0.025299072265625, -0.0242919921875, -0.06805419921875, 0.018402099609375, 0.04022216796875, 0.0399169921875, 0.019500732421875, -0.01538848876953125, -0.023162841796875, 0.0643310546875, -0.0279998779296875, -0.001422882080078125, -0.013519287109375, -0.034912109375, 0.000904083251953125, -0.01849365234375, 0.00370025634765625, 0.05078125, 0.01523590087890625, -0.04180908203125, 0.05584716796875, -0.008270263671875, 0.00848388671875, -0.0129241943359375, 0.0174102783203125, -0.01312255859375, 0.00921630859375, 0.0164031982421875, -0.01232147216796875, 0.01264190673828125, 0.0006556510925292969, 0.050567626953125, 0.0269622802734375, -0.006290435791015625, 0.00223541259765625, 0.0018377304077148438, -0.004680633544921875, -0.0182342529296875, 0.0430908203125, 0.060516357421875, -0.036773681640625, -0.031524658203125, -0.0203399658203125, -0.02435302734375, 0.0189056396484375, 0.00022530555725097656, 0.028656005859375, -0.0269775390625, -0.0008282661437988281, -0.040130615234375, -0.06024169921875, 0.009735107421875, 0.050018310546875, 0.024871826171875, 0.022705078125, 0.029266357421875, 0.043853759765625, -0.00518798828125, 0.0693359375, -0.0201263427734375, -0.01209259033203125, -0.014251708984375, -0.030914306640625, 0.03509521484375, -0.0296478271484375, 0.0750732421875, 0.0819091796875, -0.018646240234375, 0.040863037109375, -0.0116119384765625, 0.01898193359375, -0.0020160675048828125, 0.0023632049560546875, -0.010040283203125, -0.042144775390625, -0.006195068359375, 0.01197052001953125, 0.0023822784423828125, 0.0491943359375, -0.0277862548828125, -0.07220458984375, -0.005573272705078125, 0.0117950439453125, -0.084228515625, -0.0523681640625, -0.01025390625, -0.08282470703125, -0.011016845703125, 0.0079345703125, -0.062744140625, -0.005435943603515625, 0.053558349609375, 0.0014524459838867188, 0.042510986328125, -0.0263824462890625, -0.0251007080078125, -0.026458740234375, -0.047271728515625, -0.020111083984375, 0.01100921630859375, -0.015716552734375, 0.0095672607421875, -0.0023345947265625, 0.00710296630859375, -0.039703369140625, 0.0151824951171875, 0.04266357421875, -0.0101165771484375, -0.01271820068359375, 0.035125732421875, -0.03643798828125, -0.0181732177734375, -0.004848480224609375, 0.00392913818359375, 0.0195465087890625, -0.0157623291015625, -0.0026912689208984375, -0.0167236328125, -0.041229248046875, -0.0013704299926757812, -0.01263427734375, -0.00290679931640625, -0.033111572265625, -0.0115966796875, -0.07049560546875, 0.019500732421875, 0.022552490234375, -0.01486968994140625, -0.059478759765625, 0.00998687744140625, -0.03997802734375, 0.0182342529296875, -0.05194091796875, 0.024261474609375, 0.00229644775390625, -0.0220794677734375, 0.0019283294677734375, 0.014129638671875, -0.006931304931640625, 0.03497314453125, 0.0032596588134765625, 0.05419921875, 0.007843017578125, -0.025360107421875, 0.019805908203125, 0.0223388671875, 0.005794525146484375, 0.0187225341796875, -0.019989013671875, -0.0229949951171875, 0.04217529296875, 0.0024566650390625, 0.0310821533203125, -0.0273590087890625, -0.03125, -0.005069732666015625, 0.076904296875, -0.0208587646484375, 0.01076507568359375, -0.0230560302734375, -0.003070831298828125, -0.0276031494140625, -0.07769775390625, -0.040863037109375, 0.0067138671875, -0.06781005859375, -0.0174102783203125, -0.0182952880859375, -0.0447998046875, -0.0291290283203125, -0.0301666259765625, -0.069091796875, -0.045379638671875, 0.0231475830078125, -0.0341796875, 0.00015842914581298828, 0.0343017578125, -0.01009368896484375, 0.0181884765625, -0.0232391357421875, -0.0208587646484375, -0.0963134765625, -0.0232086181640625, 0.01270294189453125, 0.0648193359375, -0.007007598876953125, -0.0104522705078125, -0.048980712890625, 0.041015625, 0.0005555152893066406, 0.033447265625, 0.02484130859375, 0.017547607421875, 0.0335693359375, -0.0408935546875, 0.0204620361328125, -0.0301513671875, 0.0120849609375, -0.017333984375, -0.0299530029296875, -0.00853729248046875, -0.031585693359375, -0.003414154052734375, 0.01373291015625, -0.01824951171875, -0.046661376953125, -0.049163818359375, -0.034454345703125, -0.0226593017578125, -0.0277099609375, -0.0024623870849609375, -0.032623291015625, -0.0239410400390625, 0.00771331787109375, 0.01181793212890625, 0.0022125244140625, 0.00926971435546875, 0.039947509765625, 0.01910400390625, -0.017242431640625, -0.045867919921875, -0.01849365234375, 0.03216552734375, -0.0295562744140625, 0.0501708984375, 0.0208740234375, -0.03173828125, 0.10028076171875, 0.0100250244140625, 0.04278564453125, -0.0413818359375, 0.1007080078125, 0.0010805130004882812, -0.0011873245239257812, 0.0302581787109375, 0.006458282470703125, -0.07318115234375, 0.0086212158203125, -0.0093536376953125, -0.0087127685546875, -0.03497314453125, 0.03564453125, 0.006313323974609375, 0.0199737548828125, -0.0270538330078125, -0.026153564453125, 0.00928497314453125, -0.0222930908203125, 0.048095703125, 0.017364501953125, 0.00418853759765625, 0.024627685546875, 0.044097900390625, -0.01082611083984375, 0.07464599609375, 0.01611328125, 0.019775390625, 0.028961181640625, 0.032958984375, -0.0295867919921875, 0.042510986328125, -0.002513885498046875, 0.01910400390625, 0.005596160888671875, -0.0229644775390625, -0.00469207763671875, -0.0031585693359375, 0.0361328125, -0.004547119140625, 0.03564453125, 0.027740478515625, 0.0228424072265625, -0.007061004638671875, -0.00984954833984375, 0.04901123046875, -0.005435943603515625, -0.0275421142578125, 0.061492919921875, 0.03594970703125, 0.006473541259765625, 0.0201873779296875, 0.08172607421875, 0.0343017578125, 0.0261383056640625, -0.031402587890625, 0.0557861328125, 0.009368896484375, 0.0240478515625, 0.0300750732421875, -0.0249176025390625, 0.030487060546875, -0.041046142578125, -0.037445068359375, -0.01222991943359375, 0.03326416015625, 0.004283905029296875, 0.00829315185546875, -0.00862884521484375, -0.024444580078125, 0.020721435546875, -0.0301513671875, -0.028472900390625, 0.0335693359375, 0.0465087890625, 0.006725311279296875, -0.0265960693359375, -0.041961669921875, 0.03131103515625, 0.04412841796875, -0.0270538330078125, -0.0014200210571289062, -0.04052734375, 0.028076171875, -0.06793212890625, -0.0007152557373046875, 0.03314208984375, 0.034515380859375, 0.00457000732421875, -0.0211334228515625, -0.038726806640625, -0.031280517578125, -0.0012073516845703125, -0.0220794677734375, -0.0117645263671875, 0.063720703125, -0.00273895263671875, 0.039276123046875, -0.047943115234375, -0.00617218017578125, 0.00281524658203125, -0.01488494873046875, 0.056640625, 0.0225372314453125, -0.039306640625, -0.0140533447265625, -0.03924560546875, -0.01166534423828125, -0.06298828125, -0.035858154296875, -0.0086517333984375, 0.0198822021484375, -0.023284912109375, 0.0222320556640625, -0.038909912109375, -0.0246429443359375, 0.00914764404296875, -0.0039215087890625, -0.0020771026611328125, 0.03302001953125, -0.0109100341796875, 0.053955078125, 0.040679931640625, 0.06951904296875, 0.038177490234375, 0.01422882080078125, -0.040771484375, -0.0283203125, -0.01027679443359375, -0.03631591796875, 0.00643157958984375, 0.0233612060546875, -0.0225830078125, -0.024993896484375, 0.00403594970703125, 0.004665374755859375, 0.0006923675537109375, -0.0130615234375, -0.006195068359375, -0.035125732421875, 0.0643310546875, -0.0217437744140625, 0.01113128662109375, 0.0247802734375, -0.024383544921875, 0.0217437744140625, 0.0023517608642578125, 0.0107879638671875, 0.0187530517578125, -0.04107666015625, 0.0115814208984375, 0.0135650634765625, -0.0280303955078125, 0.043243408203125, 0.09881591796875, 0.0139007568359375, 0.06011962890625, 0.037750244140625, 0.0115966796875, 0.0204010009765625, 0.00341033935546875, -0.036712646484375, 0.040496826171875, 0.06402587890625, -0.002658843994140625, -0.01340484619140625, 0.034149169921875, -0.00916290283203125, -0.005100250244140625, 0.0023822784423828125, 0.0235137939453125, -0.01690673828125, 0.0167694091796875, -0.002899169921875, -0.022979736328125, 0.0182647705078125, -0.0078277587890625, 0.006011962890625, -0.0279388427734375, 0.00806427001953125, 0.02032470703125, -0.037567138671875, -0.01500701904296875, 0.0012569427490234375, -0.0124969482421875, -0.00325775146484375, -0.0037975311279296875, 0.0071258544921875, -0.07220458984375, 0.035552978515625, 0.03704833984375, 0.0219268798828125, 0.004077911376953125, 0.026336669921875, -0.0299530029296875, 0.013916015625, 0.0034542083740234375, 0.01354217529296875, -0.03582763671875, -0.006191253662109375, -0.03314208984375, 0.0065765380859375, 0.01776123046875, 0.019866943359375, 0.006000518798828125, -0.0216522216796875, -0.00711822509765625, -0.003631591796875, 0.01520538330078125, -0.0164031982421875, 0.009307861328125, 0.04296875, -0.07867431640625, 0.0172882080078125, -0.03253173828125, 0.01702880859375, -0.00873565673828125, 0.0025768280029296875, 0.06121826171875, -0.01136016845703125, -0.0309600830078125, 0.004741668701171875, -0.01352691650390625, 0.004123687744140625, 0.0110626220703125, 0.033355712890625, -0.06793212890625, -0.031341552734375, 0.01580810546875, -0.02056884765625, -0.016510009765625, -0.0010166168212890625, -0.07635498046875, 0.11737060546875, -0.003749847412109375, 0.026214599609375, -0.022003173828125, 0.054290771484375, -0.01380157470703125, 0.0138702392578125, -0.02716064453125, -0.006557464599609375, -0.00936126708984375, 0.01517486572265625, -0.032501220703125, -0.00826263427734375, -0.0005507469177246094, 0.0297088623046875, 0.007694244384765625, -0.002811431884765625, -0.00039839744567871094, 0.0059356689453125, 0.05755615234375, 0.042327880859375, 0.0184173583984375, -0.0083160400390625, -0.0004165172576904297, 0.056854248046875, 0.02691650390625, -0.04010009765625, 0.009857177734375, -0.0034961700439453125, -0.0413818359375, 0.0386962890625, 0.0231170654296875, 0.038848876953125, 0.0384521484375, -0.002532958984375, -0.0452880859375, 0.037322998046875, 0.041534423828125, -0.0252227783203125, -0.034454345703125, 0.041168212890625, 0.004779815673828125, -0.0194549560546875, -0.006778717041015625, -0.0249481201171875, 0.028045654296875, 0.004192352294921875, 0.0034637451171875, 0.0229339599609375, 0.006679534912109375, 0.023284912109375, -0.001567840576171875, 0.006519317626953125, 0.01401519775390625, 0.009796142578125, 0.017608642578125, 0.005458831787109375, 0.0182342529296875, -0.048583984375, -0.0390625, 0.071533203125, 0.0533447265625, -0.004169464111328125, -0.0014600753784179688, -0.00337982177734375, 0.0030879974365234375, 0.00750732421875, -0.010589599609375, 0.0230712890625, 0.03839111328125, 0.0273284912109375, -0.0294952392578125, 0.0087890625, 0.0292205810546875, -0.0033626556396484375, 0.0003571510314941406, 0.0010995864868164062, -0.0165557861328125, 0.02294921875, -0.0220184326171875, 0.01276397705078125, 0.007236480712890625, 0.043731689453125, 0.00885772705078125, 0.038360595703125, -0.024566650390625, -0.0123748779296875, -0.017486572265625, 0.014373779296875, 0.0243377685546875, 0.0083770751953125, -0.008544921875, 0.01690673828125, 0.02069091796875, 0.0247039794921875, 0.029296875, -0.01372528076171875, 0.007724761962890625, -0.0013065338134765625, 0.0025730133056640625, 0.0024700164794921875, -0.01122283935546875, -0.014892578125, 0.0223236083984375, -0.0263824462890625, 0.0162200927734375, 0.004291534423828125, -0.014495849609375, -0.0014867782592773438, -0.0048675537109375, 0.050445556640625, -0.0206146240234375, 0.06280517578125, -0.0037364959716796875, 0.0240631103515625, 0.0194091796875, -0.053863525390625, 0.019561767578125, 0.0026035308837890625, -0.076416015625, -0.0279541015625, 0.0191650390625, -0.0606689453125, 0.03240966796875, 0.051666259765625, -0.03656005859375, 0.01242828369140625, -0.01708984375, 0.0289154052734375, -0.0259246826171875, -0.03131103515625, 0.0208740234375, -0.031768798828125, 0.01055908203125, 0.013580322265625, 0.0025501251220703125, -0.013916015625, 0.046722412109375, 0.0374755859375, -0.016204833984375, 0.00791168212890625, -0.0106201171875, -0.00406646728515625, -0.025482177734375, 0.0178070068359375, -0.0168609619140625, -0.0207366943359375, 0.027923583984375, 0.01451873779296875, 0.01313018798828125, -0.007282257080078125, -0.06365966796875, 0.0792236328125, -0.006626129150390625, 0.0269622802734375, 0.046630859375, 0.0236358642578125, -0.00568389892578125, 0.021514892578125, 0.014617919921875, -0.0262298583984375, -0.00453948974609375, 0.0015583038330078125, -0.01253509521484375, 0.0311279296875, 0.018310546875, 0.0227203369140625, 0.01103973388671875, 0.06719970703125, 0.0142822265625, 0.004058837890625, 0.01248931884765625, 0.024444580078125, 0.045501708984375, -0.0037689208984375, -0.023406982421875, 0.013458251953125, -0.003200531005859375, 0.01270294189453125, 0.0173492431640625, -0.0035552978515625, 0.026763916015625, -0.02325439453125, 0.055206298828125, 0.037811279296875, 0.026275634765625, -0.041107177734375, 0.006610870361328125, 0.04559326171875, -0.01035308837890625, 0.02197265625, -0.0195465087890625, -0.02630615234375, -0.0606689453125, -0.003475189208984375, 0.035369873046875, -0.045654296875, -0.024658203125, -0.11016845703125, -0.0016803741455078125, 0.03485107421875, 0.00738525390625, -0.051025390625, 0.0129547119140625, -0.025665283203125, 0.06536865234375, -0.01366424560546875, 0.023712158203125, -0.009521484375, 0.0230255126953125, -0.05303955078125, -0.0269927978515625, -0.046539306640625, 0.0023479461669921875, -0.06304931640625, 0.03729248046875, 0.03143310546875, -0.045196533203125, 0.04730224609375, 0.01044464111328125, 0.045684814453125, 0.0665283203125, 0.01157379150390625, -0.02130126953125, -0.01727294921875, 0.03338623046875, -0.0179595947265625, -0.03155517578125, 0.00180816650390625, -0.017852783203125, 0.0007600784301757812, 0.01983642578125, -0.0294952392578125, -0.00955963134765625, -0.0509033203125, -0.0682373046875, 0.0208587646484375, 0.00714874267578125, -0.04327392578125, -0.039154052734375, 0.01319122314453125, 0.0012369155883789062, 0.00362396240234375, -0.0104827880859375, -0.020355224609375, -0.022552490234375, 0.0015621185302734375, 0.027099609375, 0.006000518798828125, 0.0322265625, -0.006595611572265625, -0.045654296875, 0.002437591552734375, -0.0206756591796875, 0.0206451416015625, -0.00685882568359375, -0.0177764892578125, 0.038055419921875, 0.032745361328125, -0.0118865966796875, -0.0203857421875, 0.01171875, -0.0162353515625, 0.02337646484375, -0.035797119140625, -0.0242919921875, -0.0120849609375, 0.044097900390625, 0.01274871826171875, 0.0110626220703125, -0.0219879150390625, -0.01544189453125, -0.009033203125, -0.02801513671875, -0.033233642578125, 0.02978515625, -0.08856201171875, -0.0194854736328125, 0.00969696044921875, 0.01285552978515625, 0.0232086181640625, -0.034027099609375, -0.004108428955078125, -0.015411376953125, 0.002716064453125, 0.01245880126953125, -0.0333251953125, -0.0162811279296875, 0.07183837890625, -0.047027587890625, -0.030487060546875, 0.0302276611328125, 0.0131683349609375, 0.00855255126953125, -0.02252197265625, -0.01372528076171875, 0.0246734619140625, -0.0369873046875, 0.0216064453125, -0.007198333740234375, 0.035125732421875, -0.042449951171875, -0.00824737548828125, -0.00044798851013183594, 0.043792724609375, -0.020721435546875, 0.047332763671875, 0.0204010009765625, 0.00798797607421875, -0.01580810546875, 0.07012939453125, -0.02490234375, -0.021728515625, -0.0061492919921875, 0.0140380859375, -0.00154876708984375, -0.001590728759765625, 0.04974365234375, -0.044403076171875, 0.0156707763671875, -0.031890869140625, 0.0121002197265625, -0.052001953125, 0.035858154296875, 0.0157928466796875, -0.0205230712890625, 0.037689208984375 ]
a0e4225af0ebbfaebab99bb2ee2e891e04a05cb6
Wordpress Stackexchange Q: Website Visible only to Registered users How can I disable access non registered users? If the user is not logged in I would like to redirect them to a custom registration/login page. Is it possible this using below code as I dont want to use plugin. <?php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; } ?> Thanks. A: If you don't feel like changing your code, you could use this plugin instead: Restricted Site Access. It's highly rated and in my personal experience, it works really well. Limit access your site to visitors who are logged in or accessing the site from a set of specified IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. A great solution for Extranets, publicly hosted Intranets, or parallel development / staging sites.
Q: Website Visible only to Registered users How can I disable access non registered users? If the user is not logged in I would like to redirect them to a custom registration/login page. Is it possible this using below code as I dont want to use plugin. <?php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; } ?> Thanks. A: If you don't feel like changing your code, you could use this plugin instead: Restricted Site Access. It's highly rated and in my personal experience, it works really well. Limit access your site to visitors who are logged in or accessing the site from a set of specified IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. A great solution for Extranets, publicly hosted Intranets, or parallel development / staging sites. A: Write this into a plugin: add_action( 'template_redirect', 'auth_redirect' ); As plugin on GitHub. This will force all visitors login if they aren’t already. In some cases, this is asking for a log-in every time. This might work better: is_admin() || add_action( 'template_redirect', function() { if ( ! is_user_logged_in() ) auth_redirect(); }); If you want to send a 404 status instead, you can replace the auth_redirect() with: wp_die( 'Nope.', 'Not found', [ 'response' => 404 ] ); A: You probably just have to put the following in your functions.php: if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { wp_redirect(site_url('/wp-login.php?action=register')); exit(); } A: I got the Answer its easy by css.. * *main div(.lor1) means comman div start after header and finesh before footer *Add new class (.lor1.kun) in main div when user loging this main class display: block; *make new html Ex. display mess loging frist one (.lor1.user_not_login) ADD this code in header.php <?php if (!is_user_logged_in()) { ?> <style> .lor1{ display:none;} .lor1.kun{ display: block;} .lor1.user_not_login{ display: block;} </style> <?php } ?> A: Well, your code is actually functional. You just have to call the right modules in the right places. if( !is_user_logged_in() ){ // show_registration_panel() } else { // He is a registered user. Proceed as usual } A: Add This Function to your functions.php file. when user not login access on home page(page id ==2) to redirect on login page. <?php add_action('template_redirect','wpse64899_check_if_logged_in'); function wpse64899_check_if_logged_in() { $pageid = 2; // or whatever you want it to be if(!is_user_logged_in() && is_page($pageid)) { $url = add_query_arg( 'redirect_to', get_permalink($pageid), site_url('wp-login.php') ); wp_redirect($url); exit; } } ?> A: Add this code in your Child's themes of Parent themes function.php file add_action( 'template_redirect', 'redirect_to_specific_page' ); function redirect_to_specific_page() { if ( is_page('home') && ! is_user_logged_in() ) { wp_redirect( 'https://example.com/login', 301 ); exit; } } Please replace "home" with the page slug name, i.e this is the page you don't want your users to access without logging in and replace this url "https://example.com/login" with the destination url where you want to redirect your users if they are not logged in, i.e this url should direct to your login or registration page.
wordpress
{ "language": "en", "length": 504, "provenance": "stackexchange_00019.jsonl.gz:426872", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76359" }
[ 0.08746337890625, 0.019256591796875, 0.0203704833984375, -0.02227783203125, 0.02752685546875, -0.0465087890625, 0.048126220703125, -0.034576416015625, 0.0133056640625, 0.003971099853515625, -0.03326416015625, -0.0174560546875, -0.03558349609375, -0.031707763671875, -0.004558563232421875, -0.054840087890625, -0.01318359375, 0.0261993408203125, 0.01239776611328125, -0.04248046875, 0.016998291015625, -0.039031982421875, 0.01409149169921875, -0.003650665283203125, 0.009246826171875, -0.0306549072265625, 0.08221435546875, -0.03900146484375, 0.0249786376953125, -0.0241241455078125, 0.02471923828125, -0.02117919921875, 0.0048065185546875, 0.05615234375, -0.027679443359375, 0.006298065185546875, 0.003833770751953125, 0.0233306884765625, 0.022308349609375, 0.028076171875, 0.036773681640625, -0.022308349609375, -0.0462646484375, -0.0219573974609375, -0.0186004638671875, -0.031280517578125, 0.054473876953125, -0.0004982948303222656, 0.01477813720703125, 0.00417327880859375, 0.00836181640625, 0.023956298828125, 0.022064208984375, -0.018402099609375, -0.009124755859375, 0.017242431640625, 0.007259368896484375, 0.0181884765625, 0.039215087890625, -0.019195556640625, -0.04620361328125, -0.017242431640625, 0.022064208984375, -0.0288848876953125, 0.01348876953125, -0.0167083740234375, -0.03173828125, 0.03546142578125, -0.057159423828125, -0.0135955810546875, 0.0185546875, -0.047637939453125, -0.01139068603515625, -0.00428009033203125, -0.059326171875, 0.0255126953125, 0.01324462890625, -0.0027217864990234375, 0.02154541015625, -0.01422119140625, -0.0380859375, 0.0136566162109375, -0.03326416015625, 0.012603759765625, -0.024566650390625, 0.04156494140625, -0.04010009765625, -0.0146942138671875, -0.00213623046875, 0.006015777587890625, -0.0112457275390625, 0.06060791015625, -0.01383209228515625, 0.00778961181640625, -0.03155517578125, -0.00121307373046875, 0.047576904296875, 0.04791259765625, -0.0043792724609375, -0.039825439453125, 0.0030498504638671875, -0.039642333984375, -0.04547119140625, -0.0030059814453125, -0.0015478134155273438, 0.07769775390625, 0.01153564453125, 0.02178955078125, -0.00661468505859375, -0.0045623779296875, 0.0279388427734375, -0.0439453125, -0.0222930908203125, -0.0217437744140625, -0.017242431640625, 0.0338134765625, -0.0269012451171875, -0.0134735107421875, -0.022003173828125, 0.016571044921875, -0.0180816650390625, 0.0226898193359375, 0.0223846435546875, -0.04803466796875, 0.00665283203125, -0.024444580078125, -0.016632080078125, -0.027618408203125, 0.0034809112548828125, 0.009765625, -0.01934814453125, 0.007312774658203125, 0.032470703125, 0.01873779296875, -0.0024261474609375, 0.001377105712890625, 0.051666259765625, 0.014251708984375, -0.004638671875, 0.0164642333984375, 0.01076507568359375, -0.035400390625, -0.022308349609375, -0.00835418701171875, 0.01544952392578125, 0.04119873046875, 0.0129547119140625, 0.002155303955078125, 0.00897216796875, -0.042327880859375, -0.0081329345703125, -0.0297393798828125, -0.005443572998046875, 0.01128387451171875, 0.023406982421875, 0.023712158203125, 0.024810791015625, 0.005313873291015625, -0.0265045166015625, 0.007282257080078125, 0.052001953125, 0.0241241455078125, 0.00959014892578125, -0.01042938232421875, -0.03704833984375, -0.05889892578125, -0.048095703125, -0.0143585205078125, 0.0232086181640625, 0.00345611572265625, 0.036834716796875, -0.028717041015625, 0.01125335693359375, 0.0260162353515625, 0.0205230712890625, 0.0252532958984375, -0.007305145263671875, 0.038665771484375, 0.0009946823120117188, 0.0234832763671875, 0.023956298828125, -0.0205841064453125, 0.03460693359375, 0.00850677490234375, -0.047454833984375, 0.054656982421875, -0.0278472900390625, 0.00262451171875, 0.032562255859375, -0.0191802978515625, 0.032012939453125, 0.045318603515625, 0.006153106689453125, -0.004207611083984375, -0.002025604248046875, -0.05816650390625, 0.00782012939453125, -0.035003662109375, -0.004974365234375, 0.043426513671875, 0.0168914794921875, -0.041900634765625, 0.0189361572265625, -0.0180511474609375, -0.0270538330078125, -0.0294342041015625, -0.006656646728515625, 0.0085601806640625, 0.017974853515625, 0.02252197265625, 0.005825042724609375, 0.024169921875, -0.0288238525390625, -0.0214385986328125, -0.027587890625, -0.0117950439453125, -0.004669189453125, 0.06201171875, 0.027008056640625, 0.03778076171875, 0.06475830078125, -0.039703369140625, 0.054718017578125, -0.009765625, 0.038909912109375, -0.028839111328125, 0.0028743743896484375, -0.0175933837890625, 0.053436279296875, -0.00594329833984375, 0.03753662109375, 0.015594482421875, -0.0182037353515625, 0.00720977783203125, -0.035858154296875, 0.0018157958984375, -0.0004036426544189453, -0.01520538330078125, 0.0193023681640625, 0.025054931640625, 0.02606201171875, 0.01554107666015625, -0.0289306640625, -0.00804901123046875, 0.051910400390625, -0.047119140625, -0.024444580078125, 0.020538330078125, -0.00714874267578125, -0.0015821456909179688, 0.0018491744995117188, 0.002655029296875, 0.046905517578125, 0.054718017578125, 0.00897979736328125, 0.0333251953125, 0.005168914794921875, 0.00846099853515625, 0.000040471553802490234, -0.01493072509765625, -0.0067291259765625, -0.03448486328125, -0.01250457763671875, -0.018768310546875, -0.033935546875, -0.04364013671875, -0.0291748046875, -0.025299072265625, 0.0162811279296875, -0.052001953125, 0.029541015625, -0.042633056640625, -0.0015888214111328125, -0.019439697265625, 0.0423583984375, -0.0182952880859375, -0.05255126953125, 0.011260986328125, 0.0285186767578125, -0.0209808349609375, -0.0304107666015625, -0.0246124267578125, -0.0101470947265625, -0.010040283203125, 0.01751708984375, -0.035430908203125, 0.037872314453125, 0.0001761913299560547, -0.035430908203125, -0.035186767578125, 0.0139617919921875, 0.01373291015625, -0.01556396484375, 0.01178741455078125, -0.031463623046875, -0.018524169921875, -0.0672607421875, -0.076416015625, 0.0626220703125, -0.06256103515625, 0.0061492919921875, 0.0845947265625, 0.0037708282470703125, 0.0259246826171875, 0.0141143798828125, -0.042388916015625, -0.004932403564453125, 0.037994384765625, 0.0203857421875, -0.02593994140625, -0.01404571533203125, 0.03369140625, 0.00743865966796875, -0.018096923828125, -0.0018444061279296875, -0.03564453125, -0.02197265625, -0.01265716552734375, -0.04052734375, 0.007602691650390625, -0.08612060546875, -0.0634765625, 0.007965087890625, 0.0166473388671875, -0.0175933837890625, 0.0240936279296875, 0.04150390625, 0.027099609375, -0.0224151611328125, -0.0186767578125, -0.0067291259765625, -0.033111572265625, -0.014129638671875, 0.033660888671875, 0.004558563232421875, -0.0038623809814453125, -0.0088653564453125, 0.0517578125, -0.01129150390625, -0.0413818359375, -0.01690673828125, 0.01248931884765625, -0.0008149147033691406, -0.026275634765625, -0.06475830078125, 0.00495147705078125, 0.004680633544921875, 0.01323699951171875, -0.02581787109375, -0.045379638671875, 0.047821044921875, -0.04034423828125, 0.045135498046875, -0.0208587646484375, 0.0259246826171875, 0.00571441650390625, -0.050994873046875, -0.025299072265625, -0.00786590576171875, -0.061981201171875, 0.0273284912109375, -0.01904296875, -0.04547119140625, -0.04986572265625, 0.046844482421875, -0.0260772705078125, -0.02294921875, -0.058135986328125, 0.0057373046875, -0.00197601318359375, -0.034942626953125, -0.01451873779296875, 0.030731201171875, 0.00890350341796875, 0.0264129638671875, 0.0091400146484375, 0.027801513671875, -0.021087646484375, 0.0028629302978515625, -0.00888824462890625, 0.00025916099548339844, -0.01300048828125, 0.0111236572265625, -0.058837890625, -0.038055419921875, 0.051788330078125, 0.00894927978515625, 0.00420379638671875, -0.0206298828125, -0.026214599609375, -0.002559661865234375, 0.09503173828125, -0.05657958984375, 0.01080322265625, 0.0238494873046875, 0.00524139404296875, -0.012481689453125, 0.018829345703125, -0.09503173828125, -0.012451171875, -0.050323486328125, 0.0038013458251953125, -0.0175018310546875, -0.014617919921875, 0.00843048095703125, -0.06854248046875, -0.01093292236328125, -0.046173095703125, 0.0190582275390625, 0.0341796875, 0.03961181640625, -0.00472259521484375, 0.0261688232421875, -0.017120361328125, 0.004337310791015625, -0.012664794921875, -0.0462646484375, -0.0045623779296875, -0.020050048828125, 0.042510986328125, 0.035003662109375, -0.00531768798828125, -0.00875091552734375, 0.016937255859375, 0.003871917724609375, -0.03289794921875, 0.00506591796875, -0.0103912353515625, 0.0308685302734375, 0.01122283935546875, -0.0251312255859375, -0.01268768310546875, 0.007038116455078125, -0.004573822021484375, -0.04595947265625, -0.00833892822265625, -0.0208282470703125, -0.012481689453125, 0.0304107666015625, -0.050048828125, -0.049163818359375, -0.01442718505859375, 0.0034332275390625, -0.002399444580078125, -0.007099151611328125, -0.00789642333984375, -0.0009145736694335938, -0.03436279296875, 0.03668212890625, 0.0025463104248046875, -0.0166168212890625, 0.003475189208984375, 0.039947509765625, 0.01556396484375, -0.0218505859375, 0.0032863616943359375, 0.028350830078125, 0.0211639404296875, -0.0083770751953125, 0.0287017822265625, 0.00252532958984375, -0.022796630859375, 0.044769287109375, -0.014862060546875, 0.014129638671875, 0.007709503173828125, 0.02154541015625, -0.0126190185546875, -0.05035400390625, 0.0362548828125, -0.0199127197265625, -0.017730712890625, 0.0272674560546875, 0.01340484619140625, -0.016693115234375, 0.0310821533203125, 0.024169921875, -0.00666046142578125, -0.023712158203125, -0.0232086181640625, -0.00762939453125, 0.0015411376953125, 0.03192138671875, 0.02069091796875, 0.0258941650390625, -0.0005807876586914062, 0.0035800933837890625, 0.0175018310546875, -0.0205078125, 0.0165252685546875, -0.03985595703125, 0.004055023193359375, 0.0014314651489257812, 0.0038204193115234375, -0.020660400390625, 0.03106689453125, -0.013946533203125, 0.0748291015625, 0.0014791488647460938, -0.0655517578125, 0.0218048095703125, -0.02105712890625, 0.05029296875, 0.03387451171875, 0.00502777099609375, 0.051422119140625, -0.0157928466796875, -0.0216522216796875, -0.0018062591552734375, 0.008819580078125, -0.034423828125, -0.0474853515625, -0.0030231475830078125, -0.0042724609375, 0.000492095947265625, -0.02288818359375, 0.09576416015625, 0.0301971435546875, 0.0200347900390625, -0.0250244140625, 0.0400390625, 0.0419921875, 0.0052032470703125, -0.009552001953125, 0.049652099609375, -0.0289459228515625, 0.01314544677734375, 0.00562286376953125, -0.0166168212890625, 0.00350189208984375, 0.0258941650390625, 0.03033447265625, 0.0257568359375, -0.00640869140625, -0.01078033447265625, -0.037445068359375, -0.020050048828125, 0.0654296875, -0.016998291015625, -0.089599609375, -0.0594482421875, -0.01151275634765625, 0.034088134765625, -0.0458984375, -0.005649566650390625, -0.00844573974609375, -0.0283660888671875, -0.01103973388671875, 0.0218963623046875, -0.04443359375, -0.019195556640625, -0.0057220458984375, -0.019439697265625, -0.0290069580078125, -0.01300048828125, 0.0273284912109375, 0.02587890625, -0.0236968994140625, -0.022613525390625, 0.0215911865234375, -0.005222320556640625, -0.01438140869140625, -0.034515380859375, 0.01126861572265625, -0.02374267578125, -0.0113983154296875, 0.06683349609375, 0.0161285400390625, -0.0487060546875, -0.0028896331787109375, -0.0305328369140625, -0.01076507568359375, -0.01458740234375, -0.042144775390625, -0.0288848876953125, -0.0157470703125, 0.043853759765625, 0.0186614990234375, 0.0020389556884765625, -0.05963134765625, -0.00829315185546875, 0.0154266357421875, 0.0384521484375, 0.0362548828125, -0.0051727294921875, 0.030731201171875, -0.005207061767578125, 0.022796630859375, 0.0187530517578125, 0.0187530517578125, 0.00031304359436035156, -0.020751953125, 0.0130767822265625, -0.0226287841796875, -0.03338623046875, -0.022430419921875, -0.003753662109375, 0.0158843994140625, 0.052490234375, -0.0008115768432617188, -0.0178070068359375, -0.012786865234375, -0.001956939697265625, -0.0291595458984375, 0.01337432861328125, 0.0042724609375, 0.0207977294921875, -0.056304931640625, 0.012847900390625, -0.004413604736328125, -0.007427215576171875, -0.042755126953125, 0.0193634033203125, 0.03900146484375, 0.029266357421875, -0.036712646484375, -0.0271148681640625, 0.00949859619140625, 0.050445556640625, -0.00616455078125, 0.059295654296875, 0.0191802978515625, 0.044158935546875, 0.0850830078125, -0.0225677490234375, -0.0479736328125, 0.04412841796875, 0.0274505615234375, -0.01593017578125, -0.0253753662109375, -0.002437591552734375, -0.0098419189453125, -0.0006961822509765625, 0.109619140625, 0.06512451171875, -0.1439208984375, -0.0028133392333984375, -0.0112762451171875, 0.00833892822265625, 0.010711669921875, 0.0159912109375, -0.00921630859375, -0.0011625289916992188, 0.0247650146484375, -0.0268096923828125, -0.00753021240234375, 0.0182647705078125, 0.0192108154296875, -0.00763702392578125, 0.0018091201782226562, 0.0300140380859375, 0.0027408599853515625, 0.028411865234375, -0.0163421630859375, -0.035400390625, 0.030670166015625, -0.042633056640625, -0.0107421875, 0.040130615234375, -0.031402587890625, -0.08868408203125, 0.00955963134765625, -0.0107421875, 0.0038471221923828125, 0.04901123046875, -0.0224609375, 0.0250396728515625, 0.05316162109375, -0.025909423828125, 0.036376953125, 0.01232147216796875, -0.037750244140625, 0.036407470703125, -0.005435943603515625, -0.0119171142578125, -0.01210784912109375, -0.01157379150390625, -0.00010949373245239258, -0.002529144287109375, -0.0263519287109375, -0.0115966796875, -0.029541015625, 0.06488037109375, 0.0025787353515625, -0.0253143310546875, 0.03375244140625, 0.0073394775390625, -0.04156494140625, -0.02508544921875, 0.00701141357421875, -0.02398681640625, 0.009002685546875, -0.02587890625, -0.01168060302734375, 0.01174163818359375, -0.0204010009765625, -0.0362548828125, 0.049468994140625, -0.02203369140625, 0.021240234375, 0.015533447265625, 0.0139312744140625, 0.002147674560546875, 0.018585205078125, -0.0193634033203125, 0.041046142578125, 0.0240020751953125, 0.058349609375, 0.0182647705078125, 0.00238800048828125, 0.0675048828125, 0.0028667449951171875, 0.07275390625, 0.03692626953125, -0.045654296875, -0.0169830322265625, -0.020782470703125, -0.003139495849609375, -0.043060302734375, 0.06671142578125, -0.010711669921875, 0.045074462890625, 0.043243408203125, -0.049713134765625, 0.0223388671875, 0.0039043426513671875, -0.0303497314453125, -0.0004010200500488281, -0.0273590087890625, -0.06103515625, -0.031005859375, 0.056793212890625, -0.08984375, 0.0035114288330078125, 0.032928466796875, 0.050872802734375, -0.0239715576171875, 0.031524658203125, -0.0007014274597167969, -0.02252197265625, 0.0286102294921875, -0.046417236328125, 0.035980224609375, -0.01149749755859375, -0.00830078125, 0.00907135009765625, 0.01222991943359375, -0.0128326416015625, -0.0013399124145507812, -0.00493621826171875, 0.0245361328125, -0.01708984375, 0.04901123046875, 0.0211181640625, 0.022308349609375, -0.036834716796875, -0.02239990234375, 0.03460693359375, 0.0679931640625, -0.032073974609375, -0.019500732421875, 0.005420684814453125, 0.025421142578125, 0.045654296875, 0.0174407958984375, 0.0863037109375, 0.0106201171875, 0.03082275390625, -0.010986328125, 0.002346038818359375, 0.026397705078125, 0.0079345703125, 0.008636474609375, 0.00287628173828125, -0.02044677734375, 0.00505828857421875, -0.00519561767578125, -0.025238037109375, 0.007083892822265625, -0.01499176025390625, 0.0276641845703125, -0.0015401840209960938, 0.05950927734375, 0.007663726806640625, -0.024383544921875, -0.004383087158203125, -0.0213623046875, 0.034942626953125, -0.048553466796875, -0.0265655517578125, -0.005138397216796875, 0.053131103515625, -0.01483154296875, -0.004390716552734375, 0.0082550048828125, 0.043304443359375, 0.0023365020751953125, -0.01519775390625, 0.035980224609375, -0.00957489013671875, 0.020477294921875, 0.004314422607421875, 0.00432586669921875, 0.00787353515625, -0.023193359375, -0.035430908203125, 0.02838134765625, 0.039825439453125, -0.037261962890625, 0.04986572265625, -0.0119476318359375, -0.03082275390625, 0.01380157470703125, -0.0115203857421875, 0.06915283203125, -0.01474761962890625, -0.06060791015625, -0.00922393798828125, -0.0241546630859375, -0.040740966796875, 0.00860595703125, 0.0292510986328125, -0.0287017822265625, 0.033843994140625, 0.055328369140625, 0.0078277587890625, -0.0002944469451904297, -0.0233306884765625, 0.0219268798828125, -0.01568603515625, 0.0196990966796875, 0.0230712890625, -0.0222930908203125, -0.01361846923828125, -0.0213623046875, 0.037872314453125, 0.006961822509765625, 0.07470703125, -0.037841796875, 0.032745361328125, -0.0297088623046875, 0.010467529296875, -0.0250701904296875, -0.01438140869140625, 0.0169677734375, 0.005008697509765625, -0.0021610260009765625, -0.00618743896484375, -0.06689453125, 0.09698486328125, -0.0252685546875, 0.046142578125, 0.08502197265625, -0.02447509765625, -0.0150299072265625, 0.022613525390625, -0.0115966796875, -0.04803466796875, -0.0772705078125, -0.06610107421875, 0.02947998046875, -0.0160369873046875, -0.015716552734375, -0.031890869140625, 0.047943115234375, -0.050323486328125, -0.035369873046875, -0.016876220703125, -0.052703857421875, -0.050048828125, 0.0110931396484375, 0.011383056640625, 0.004611968994140625, -0.0003733634948730469, -0.01351165771484375, 0.01242828369140625, 0.01178741455078125, -0.0269775390625, 0.02239990234375, -0.015472412109375, -0.01332855224609375, 0.0032672882080078125, 0.03326416015625, 0.00005066394805908203, 0.009246826171875, -0.0140380859375, -0.00646209716796875, -0.011505126953125, -0.047149658203125, -0.035980224609375, -0.043609619140625, 0.00457763671875, 0.0264739990234375, -0.00783538818359375, -0.035491943359375, -0.043212890625, 0.01480865478515625, 0.0028934478759765625, -0.01464080810546875, -0.0474853515625, 0.00754547119140625, -0.02349853515625, 0.08770751953125, -0.063720703125, -0.010406494140625, 0.006847381591796875, 0.0151519775390625, -0.004253387451171875, 0.01389312744140625, -0.0155029296875, -0.0008502006530761719, 0.02545166015625, 0.00624847412109375, 0.0458984375, 0.004291534423828125, -0.0078125, -0.00814056396484375, -0.05023193359375, 0.040069580078125, -0.0684814453125, 0.002605438232421875, 0.00970458984375, 0.005832672119140625, -0.030029296875, -0.023162841796875, 0.00785064697265625, 0.0162506103515625, -0.0343017578125, 0.0003025531768798828, 0.0006060600280761719, 0.0301055908203125, -0.0232086181640625, -0.0657958984375, 0.058624267578125, -0.01149749755859375, -0.034271240234375, -0.07122802734375, 0.038848876953125, 0.0091705322265625, 0.001483917236328125, -0.02447509765625, -0.0274810791015625, -0.0167999267578125, 0.01023101806640625, 0.027191162109375, -0.040618896484375, 0.042449951171875, 0.037078857421875, -0.04986572265625, 0.018157958984375, 0.004352569580078125, -0.01580810546875, -0.022125244140625, 0.024261474609375, 0.01641845703125, 0.0478515625, 0.00031256675720214844, 0.0253143310546875, -0.0002582073211669922, -0.02008056640625, -0.005214691162109375, -0.03515625, 0.0006313323974609375, -0.032745361328125, 0.0244140625, 0.033966064453125, -0.00804901123046875, -0.00531768798828125, -0.07720947265625, -0.049835205078125, -0.0303802490234375, -0.044342041015625, 0.04254150390625, -0.1226806640625, -0.01383209228515625, 0.01335906982421875, -0.01873779296875, -0.0182342529296875, 0.01904296875, -0.060333251953125, 0.0042724609375, 0.0085601806640625, 0.0018415451049804688, -0.037353515625, 0.00798797607421875, 0.020050048828125, -0.04205322265625, -0.0423583984375, 0.00991058349609375, 0.000942230224609375, -0.038330078125, -0.031219482421875, -0.00499725341796875, -0.01403045654296875, -0.0189208984375, 0.01371002197265625, 0.0008044242858886719, 0.037689208984375, -0.0264129638671875, -0.02032470703125, -0.010345458984375, 0.044342041015625, 0.00731658935546875, 0.06549072265625, -0.02288818359375, 0.01557159423828125, 0.0302734375, -0.012786865234375, -0.00608062744140625, -0.06304931640625, -0.0308837890625, 0.021148681640625, -0.00006383657455444336, -0.0157470703125, 0.0172119140625, -0.0077972412109375, 0.00910186767578125, 0.00498199462890625, 0.0234375, -0.032745361328125, 0.043975830078125, -0.044921875, 0.00954437255859375, 0.01380157470703125 ]
1dd0f845d019605a2f7b4e30d6e688d012796ee5
Wordpress Stackexchange Q: wp_list_tables bulk actions How to fire on bulk actions inside of an extended WP_List_Table. I have been adding the following bulk actions to may table's select box but on Apply won't really happens anything here are how I added my bulk actions function get_bulk_actions() { $actions = array( 'delete' => 'Delete', 'parsing' => 'Parsen' ); return $actions; } and here is the check box column function column_cb($item) { return sprintf( '<input type="checkbox" name="record[]" value="%d" />', $item['Round'] ); } A: WP List w/ bulk actions using an "Array" DATA https://wpengineer.com/2426/wp_list_table-a-step-by-step-guide/ (Make it as a plugin) https://gist.github.com/Latz/7f923479a4ed135e35b2 (for functions.php) WP List w/ bulk actions using an "SQL" DATA https://www.smashingmagazine.com/2011/11/native-admin-tables-wordpress/ (for functions.php) Cheers!
Q: wp_list_tables bulk actions How to fire on bulk actions inside of an extended WP_List_Table. I have been adding the following bulk actions to may table's select box but on Apply won't really happens anything here are how I added my bulk actions function get_bulk_actions() { $actions = array( 'delete' => 'Delete', 'parsing' => 'Parsen' ); return $actions; } and here is the check box column function column_cb($item) { return sprintf( '<input type="checkbox" name="record[]" value="%d" />', $item['Round'] ); } A: WP List w/ bulk actions using an "Array" DATA https://wpengineer.com/2426/wp_list_table-a-step-by-step-guide/ (Make it as a plugin) https://gist.github.com/Latz/7f923479a4ed135e35b2 (for functions.php) WP List w/ bulk actions using an "SQL" DATA https://www.smashingmagazine.com/2011/11/native-admin-tables-wordpress/ (for functions.php) Cheers! A: If you add a bulk-action, then you have to react on this action. Simply adding a function doesn't do anything, you have to call it: class WPSE_List_Table extends WP_List_Table { public function __construct() { parent::__construct( array( 'singular' => 'singular_form', 'plural' => 'plural_form', 'ajax' => false ) ); } public function prepare_items() { $columns = $this->get_columns(); $sortable = $this->get_sortable_columns(); $hidden = array( 'id' ); $this->_column_headers = array( $columns, $hidden, $sortable ); $this->process_bulk_action(); } public function get_columns() { return array( 'cb' => '<input type="checkbox" />', // this is all you need for the bulk-action checkbox 'id' => 'ID', 'date' => __( 'Date', 'your-textdomain' ), 'title' => __( 'Title', 'your-textdomain' ), ); } public function get_sortable_columns() { return array( 'date' => array( 'date', false ), 'title' => array( 'title', false ), ); } public function get_bulk_actions() { return array( 'delete' => __( 'Delete', 'your-textdomain' ), 'save' => __( 'Save', 'your-textdomain' ), ); } public function process_bulk_action() { // security check! if ( isset( $_POST['_wpnonce'] ) && ! empty( $_POST['_wpnonce'] ) ) { $nonce = filter_input( INPUT_POST, '_wpnonce', FILTER_SANITIZE_STRING ); $action = 'bulk-' . $this->_args['plural']; if ( ! wp_verify_nonce( $nonce, $action ) ) wp_die( 'Nope! Security check failed!' ); } $action = $this->current_action(); switch ( $action ) { case 'delete': wp_die( 'Delete something' ); break; case 'save': wp_die( 'Save something' ); break; default: // do nothing or something else return; break; } return; } } In prepare_items()we call process_bulk_action(). So on your backend page you will have something like this: $table = new WPSE_List_Table(); printf( '<div class="wrap" id="wpse-list-table"><h2>%s</h2>', __( 'Your List Table', 'your-textdomain' ) ); echo '<form id="wpse-list-table-form" method="post">'; $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRIPPED ); $paged = filter_input( INPUT_GET, 'paged', FILTER_SANITIZE_NUMBER_INT ); printf( '<input type="hidden" name="page" value="%s" />', $page ); printf( '<input type="hidden" name="paged" value="%d" />', $paged ); $table->prepare_items(); // this will prepare the items AND process the bulk actions $table->display(); echo '</form>'; echo '</div>'; At first you create an instance of your list-table class. Then you create a formular and call prepare_items(). With this call, the bulk actions will be processed because we call the method process_bulk_action() inside prepare_items(). In the example above, we use post as method to send the data. So we can grab the bulk action from the post array if we didn't want to process the bulk actions inside the class (or by other reasons). // this is the top bulk action!! $action = ( isset( $_POST['action'] ) ) ? filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRIPPED ) : 'default_top_bulk_action'; // this is the bottom bulk action!! $action2 = ( isset( $_POST['action2'] ) ) ? filter_input( INPUT_POST, 'action2', FILTER_SANITIZE_STRIPPED ) : 'default_bottom_bulk_action'; switch ( $action ) {} switch ( $action2 ) {} You can grab the bulk action anywhere you want from the post/get array (depending on what method was used to send the data). A: this is what I have found on several websites. It still isn't working for me, but it used to work when I still had the sample data in my custom list table. function process_bulk_action() { //Detect when a bulk action is being triggered... if( 'delete'===$this->current_action() ) { wp_die('Items deleted (or they would be if we had items to delete)!'); } }
wordpress
{ "language": "en", "length": 638, "provenance": "stackexchange_00019.jsonl.gz:426879", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76374" }
[ 0.05120849609375, 0.034393310546875, -0.040740966796875, -0.06658935546875, 0.04754638671875, -0.0242156982421875, 0.01332855224609375, -0.0027942657470703125, 0.050506591796875, 0.021636962890625, -0.055206298828125, -0.006397247314453125, 0.0045623779296875, -0.00579833984375, -0.0232086181640625, -0.0272216796875, 0.04986572265625, -0.03741455078125, 0.0292205810546875, -0.00989532470703125, -0.005542755126953125, 0.0153350830078125, 0.046630859375, 0.055389404296875, 0.0479736328125, -0.029510498046875, 0.00797271728515625, -0.0045166015625, 0.032745361328125, -0.0024089813232421875, 0.033172607421875, -0.0142669677734375, -0.0249786376953125, 0.042633056640625, 0.0026607513427734375, -0.01399993896484375, -0.011627197265625, 0.0278167724609375, 0.0306549072265625, 0.01425933837890625, 0.04168701171875, -0.0134124755859375, -0.007205963134765625, -0.005268096923828125, -0.032989501953125, -0.02008056640625, 0.02862548828125, 0.0036640167236328125, 0.013824462890625, -0.01555633544921875, 0.0122222900390625, 0.037384033203125, 0.0254364013671875, -0.0377197265625, -0.017242431640625, -0.0094757080078125, -0.042327880859375, -0.0174560546875, 0.03656005859375, 0.0787353515625, 0.0006780624389648438, -0.02410888671875, 0.0032444000244140625, -0.057647705078125, -0.0033245086669921875, -0.00208282470703125, 0.0258331298828125, 0.004901885986328125, 0.01158905029296875, -0.0034275054931640625, 0.0080108642578125, 0.0024356842041015625, -0.019256591796875, -0.01934814453125, 0.0118408203125, 0.01433563232421875, -0.0034122467041015625, 0.006092071533203125, 0.0012941360473632812, 0.026611328125, -0.0249786376953125, 0.005462646484375, -0.0166778564453125, 0.00884246826171875, -0.0017709732055664062, 0.0261688232421875, -0.026031494140625, -0.0098419189453125, -0.01206207275390625, -0.01149749755859375, -0.01245880126953125, -0.0810546875, 0.00811004638671875, 0.019775390625, -0.004009246826171875, -0.05157470703125, 0.0306854248046875, 0.061676025390625, 0.01898193359375, 0.0220184326171875, 0.00913238525390625, -0.057708740234375, 0.006183624267578125, -0.03466796875, -0.0164947509765625, 0.013153076171875, 0.0102996826171875, -0.031402587890625, -0.00933074951171875, 0.02044677734375, -0.0137939453125, -0.02362060546875, 0.015106201171875, 0.0167694091796875, -0.01361083984375, -0.06365966796875, -0.06744384765625, 0.0301055908203125, -0.029510498046875, -0.024505615234375, -0.005176544189453125, 0.017059326171875, -0.048980712890625, 0.023193359375, 0.005779266357421875, -0.00783538818359375, 0.0043792724609375, 0.0061798095703125, -0.0089569091796875, 0.00406646728515625, -0.0282135009765625, 0.0240478515625, 0.045867919921875, 0.018402099609375, -0.004116058349609375, -0.005279541015625, 0.0226898193359375, 0.0169830322265625, 0.020294189453125, -0.01482391357421875, 0.0533447265625, -0.01690673828125, -0.032440185546875, 0.06549072265625, 0.0419921875, 0.052734375, 0.034515380859375, -0.04949951171875, 0.00275421142578125, -0.0243072509765625, -0.038726806640625, 0.021148681640625, 0.030120849609375, 0.04693603515625, -0.0224151611328125, 0.012939453125, 0.039459228515625, -0.017852783203125, -0.040618896484375, -0.0496826171875, -0.010772705078125, -0.0054168701171875, 0.01300811767578125, -0.02740478515625, -0.04718017578125, 0.01523590087890625, -0.0170745849609375, -0.01226806640625, 0.034820556640625, -0.0157470703125, 0.019287109375, -0.01519012451171875, 0.0860595703125, 0.0140228271484375, -0.0118408203125, 0.029937744140625, 0.0014486312866210938, -0.002079010009765625, 0.0268096923828125, 0.0188446044921875, -0.02813720703125, -0.034423828125, 0.037384033203125, -0.029632568359375, -0.045013427734375, 0.046783447265625, -0.01202392578125, 0.06500244140625, 0.0238189697265625, 0.020172119140625, -0.019927978515625, -0.0013294219970703125, -0.0103607177734375, 0.003955841064453125, 0.004413604736328125, -0.022216796875, -0.00980377197265625, -0.01032257080078125, -0.0160980224609375, 0.0092010498046875, 0.03387451171875, -0.0203094482421875, 0.0206756591796875, -0.0113372802734375, -0.047637939453125, 0.0186614990234375, -0.041107177734375, 0.03765869140625, 0.005176544189453125, 0.034576416015625, 0.0010356903076171875, 0.0108795166015625, -0.004146575927734375, -0.037353515625, -0.007610321044921875, 0.019134521484375, -0.007228851318359375, 0.035308837890625, 0.00565338134765625, 0.0091094970703125, 0.024017333984375, -0.0474853515625, 0.0221405029296875, 0.0083465576171875, 0.0199127197265625, -0.0411376953125, -0.01629638671875, -0.03790283203125, 0.007793426513671875, -0.03564453125, 0.0090789794921875, 0.0643310546875, 0.06182861328125, 0.07452392578125, 0.00250244140625, -0.01009368896484375, 0.0125274658203125, -0.07427978515625, -0.0034465789794921875, 0.04315185546875, 0.031585693359375, 0.0316162109375, 0.021697998046875, 0.054718017578125, 0.06256103515625, -0.03887939453125, 0.00571441650390625, 0.0308380126953125, -0.0268096923828125, 0.00368499755859375, -0.0169525146484375, 0.0022125244140625, 0.020721435546875, -0.0119171142578125, -0.01561737060546875, 0.01175689697265625, -0.010284423828125, -0.03369140625, 0.005859375, -0.030181884765625, 0.0433349609375, -0.05340576171875, -0.06854248046875, -0.005615234375, 0.031402587890625, -0.0252532958984375, 0.0182952880859375, -0.001026153564453125, -0.00029850006103515625, -0.002643585205078125, 0.0241851806640625, -0.0267486572265625, -0.01178741455078125, 0.02484130859375, -0.0244293212890625, 0.003307342529296875, -0.0090789794921875, 0.0136260986328125, -0.007808685302734375, -0.008026123046875, -0.00034356117248535156, 0.025543212890625, 0.0106201171875, -0.01189422607421875, 0.0090789794921875, 0.007640838623046875, 0.01122283935546875, -0.02099609375, -0.049407958984375, -0.03668212890625, -0.0195770263671875, 0.07086181640625, -0.0229034423828125, 0.032623291015625, 0.00004673004150390625, 0.0035877227783203125, 0.0869140625, -0.01141357421875, 0.00878143310546875, -0.0057525634765625, 0.0484619140625, 0.062225341796875, 0.001407623291015625, -0.01010894775390625, -0.0103302001953125, -0.016143798828125, 0.00004744529724121094, 0.0036373138427734375, -0.015289306640625, -0.02850341796875, -0.01514434814453125, 0.0067138671875, 0.04144287109375, 0.0587158203125, 0.01324462890625, -0.03509521484375, -0.0028820037841796875, 0.0672607421875, -0.017333984375, -0.032501220703125, 0.037139892578125, -0.050537109375, 0.0270843505859375, -0.033172607421875, -0.0243072509765625, -0.0295257568359375, 0.0062255859375, -0.0082855224609375, 0.0008058547973632812, 0.0023212432861328125, 0.049835205078125, 0.0034313201904296875, -0.02203369140625, -0.03857421875, 0.0260162353515625, -0.0080413818359375, -0.004665374755859375, 0.07342529296875, 0.000054836273193359375, -0.0863037109375, -0.0297088623046875, -0.053558349609375, -0.0140838623046875, 0.037078857421875, 0.03302001953125, -0.01190948486328125, -0.03106689453125, 0.0030269622802734375, -0.0245361328125, 0.041015625, -0.034820556640625, -0.0085601806640625, -0.006526947021484375, 0.004405975341796875, 0.035491943359375, -0.005340576171875, -0.0114593505859375, 0.002277374267578125, 0.0135650634765625, -0.041595458984375, -0.01385498046875, -0.006130218505859375, -0.028564453125, -0.03851318359375, 0.00392913818359375, -0.016387939453125, -0.006542205810546875, -0.004878997802734375, 0.0692138671875, 0.06524658203125, 0.0218658447265625, 0.0601806640625, -0.0645751953125, -0.0248870849609375, -0.00044727325439453125, -0.04315185546875, 0.0531005859375, 0.01497650146484375, -0.0244598388671875, 0.024932861328125, 0.00989532470703125, -0.01181793212890625, 0.0088348388671875, -0.0428466796875, -0.018585205078125, 0.03399658203125, 0.006221771240234375, 0.0303192138671875, -0.01678466796875, -0.0215301513671875, 0.01261138916015625, 0.08074951171875, -0.0423583984375, -0.018707275390625, -0.04119873046875, 0.03863525390625, -0.0260162353515625, -0.10552978515625, 0.033935546875, 0.0029506683349609375, -0.075439453125, 0.0247344970703125, -0.0018825531005859375, -0.0233612060546875, -0.0203857421875, 0.047119140625, -0.040802001953125, -0.0247344970703125, 0.0182647705078125, -0.055938720703125, -0.0009288787841796875, -0.00125885009765625, -0.01477813720703125, -0.039764404296875, 0.001255035400390625, -0.0278472900390625, -0.05596923828125, 0.0025501251220703125, -0.043426513671875, 0.037017822265625, 0.041839599609375, -0.019927978515625, 0.019805908203125, 0.050323486328125, 0.0215606689453125, 0.0230712890625, 0.01287841796875, 0.01232147216796875, 0.016204833984375, -0.058135986328125, 0.01058197021484375, -0.061614990234375, -0.041229248046875, -0.0498046875, 0.0228271484375, -0.0170440673828125, -0.031341552734375, -0.0174713134765625, -0.0252227783203125, 0.0155181884765625, -0.04412841796875, -0.04632568359375, -0.0225372314453125, 0.02117919921875, -0.039306640625, 0.032684326171875, -0.0599365234375, -0.042877197265625, 0.0237274169921875, -0.0482177734375, 0.0209808349609375, 0.030364990234375, 0.073486328125, -0.0009298324584960938, 0.01128387451171875, -0.05096435546875, 0.01287078857421875, 0.028839111328125, -0.028228759765625, 0.005462646484375, -0.005107879638671875, -0.023101806640625, 0.04132080078125, -0.00904083251953125, 0.0031185150146484375, -0.050201416015625, 0.0919189453125, 0.02032470703125, 0.052825927734375, -0.038116455078125, -0.007293701171875, 0.02508544921875, 0.030853271484375, 0.0199127197265625, -0.06427001953125, 0.0010318756103515625, 0.08612060546875, 0.0014028549194335938, 0.004703521728515625, -0.0633544921875, -0.042449951171875, 0.0056304931640625, -0.03594970703125, 0.04736328125, 0.046356201171875, 0.0008187294006347656, 0.039886474609375, 0.0169525146484375, 0.004161834716796875, -0.0083160400390625, -0.0400390625, -0.026580810546875, 0.023284912109375, -0.0307464599609375, -0.0112457275390625, 0.0302734375, -0.0106048583984375, 0.03228759765625, -0.0244293212890625, -0.04559326171875, -0.00396728515625, -0.00711822509765625, 0.029144287109375, 0.027099609375, 0.023712158203125, 0.0301666259765625, 0.04913330078125, -0.006153106689453125, -0.027587890625, 0.0271453857421875, 0.033111572265625, -0.044158935546875, -0.0017004013061523438, 0.0165863037109375, -0.0175933837890625, 0.035003662109375, 0.032928466796875, -0.0177459716796875, 0.032867431640625, -0.029083251953125, 0.0845947265625, 0.0711669921875, 0.0037326812744140625, 0.0025482177734375, 0.0196533203125, -0.0157623291015625, -0.018341064453125, -0.044647216796875, -0.03826904296875, -0.0179290771484375, 0.029510498046875, 0.060089111328125, 0.0113677978515625, -0.0059814453125, -0.0015544891357421875, -0.01560211181640625, -0.0377197265625, 0.0401611328125, 0.04034423828125, -0.0129852294921875, -0.044952392578125, -0.00997161865234375, 0.043060302734375, 0.033782958984375, -0.0139007568359375, 0.05224609375, -0.0120391845703125, 0.07135009765625, 0.0149383544921875, 0.030792236328125, -0.0171051025390625, -0.0276031494140625, -0.0484619140625, -0.0252532958984375, -0.0047454833984375, -0.0164947509765625, -0.016876220703125, -0.011016845703125, -0.0244903564453125, 0.0018167495727539062, -0.0170745849609375, 0.01152801513671875, -0.022857666015625, 0.01451873779296875, -0.0170135498046875, -0.025787353515625, 0.08050537109375, 0.038482666015625, 0.007350921630859375, -0.040618896484375, 0.0252685546875, -0.043212890625, -0.00972747802734375, 0.005123138427734375, -0.025482177734375, 0.01335906982421875, 0.004573822021484375, 0.0094146728515625, 0.00994873046875, 0.0055999755859375, -0.0016508102416992188, 0.032196044921875, 0.0028514862060546875, 0.00676727294921875, -0.034027099609375, 0.07781982421875, 0.01158905029296875, 0.0296783447265625, 0.0106658935546875, 0.05438232421875, -0.006099700927734375, 0.00311279296875, 0.008575439453125, -0.0634765625, -0.003910064697265625, -0.002117156982421875, -0.02960205078125, -0.0069122314453125, -0.002025604248046875, 0.00887298583984375, 0.0167236328125, -0.012908935546875, -0.00994873046875, -0.0256195068359375, 0.044891357421875, -0.01959228515625, 0.0357666015625, -0.0222625732421875, -0.03814697265625, -0.01324462890625, -0.00921630859375, 0.030181884765625, 0.00968170166015625, -0.0350341796875, -0.006595611572265625, 0.04638671875, -0.050994873046875, 0.05426025390625, 0.085693359375, 0.00949859619140625, 0.04888916015625, 0.0013179779052734375, -0.0085601806640625, 0.016387939453125, 0.0307769775390625, 0.01849365234375, -0.00324249267578125, 0.0594482421875, 0.00284576416015625, -0.0230712890625, 0.0232696533203125, -0.032562255859375, 0.020721435546875, 0.046661376953125, 0.08062744140625, -0.08355712890625, 0.0219879150390625, 0.0301666259765625, 0.01450347900390625, 0.02972412109375, -0.0306854248046875, -0.01430511474609375, -0.044647216796875, -0.0005555152893066406, 0.046661376953125, -0.0343017578125, -0.0245819091796875, 0.0231781005859375, 0.00392913818359375, 0.00801849365234375, -0.0134735107421875, 0.00203704833984375, 0.0004432201385498047, -0.0164031982421875, 0.00872802734375, 0.03192138671875, -0.003185272216796875, 0.0259552001953125, 0.00745391845703125, -0.036468505859375, -0.03900146484375, 0.0009822845458984375, 0.016815185546875, -0.03289794921875, -0.0283050537109375, -0.0221710205078125, 0.02215576171875, 0.03167724609375, -0.02838134765625, 0.005573272705078125, -0.0175018310546875, -0.008056640625, -0.0019197463989257812, 0.0158233642578125, 0.007396697998046875, -0.021942138671875, -0.0592041015625, 0.0026721954345703125, -0.0863037109375, 0.0245208740234375, 0.0007796287536621094, -0.015869140625, 0.077392578125, -0.041961669921875, -0.015106201171875, 0.022705078125, -0.02337646484375, -0.016845703125, 0.00850677490234375, 0.038421630859375, -0.061676025390625, -0.0416259765625, 0.0250701904296875, -0.0498046875, -0.03985595703125, -0.00878143310546875, -0.0180511474609375, 0.057861328125, -0.00038909912109375, -0.0235748291015625, 0.007171630859375, 0.03436279296875, -0.0305633544921875, 0.0161895751953125, -0.0443115234375, 0.031829833984375, 0.006877899169921875, 0.034515380859375, -0.07025146484375, -0.00832366943359375, -0.01509857177734375, 0.028839111328125, 0.01290130615234375, -0.005298614501953125, 0.01267242431640625, -0.01192474365234375, 0.0380859375, 0.03240966796875, -0.0184478759765625, 0.0009288787841796875, -0.0128936767578125, 0.039306640625, 0.040435791015625, -0.0307464599609375, 0.0205841064453125, 0.00908660888671875, -0.0217437744140625, 0.019256591796875, 0.004222869873046875, -0.018463134765625, -0.015869140625, 0.035186767578125, 0.01230621337890625, -0.022186279296875, -0.01446533203125, -0.016754150390625, -0.0179290771484375, 0.0194854736328125, 0.0014801025390625, -0.0272369384765625, -0.04608154296875, -0.0149688720703125, 0.011138916015625, 0.01471710205078125, 0.0241851806640625, 0.03802490234375, 0.01117706298828125, 0.031036376953125, 0.014923095703125, 0.01149749755859375, 0.0202178955078125, 0.01091766357421875, 0.0703125, 0.0198211669921875, 0.0151214599609375, -0.0343017578125, 0.05096435546875, 0.0390625, 0.08111572265625, -0.07452392578125, -0.05621337890625, 0.0010175704956054688, -0.0002663135528564453, 0.02545166015625, -0.0003490447998046875, 0.00518798828125, -0.019805908203125, 0.036468505859375, 0.020721435546875, -0.0294342041015625, -0.018310546875, -0.01373291015625, 0.009002685546875, 0.078857421875, 0.00812530517578125, -0.013336181640625, -0.021026611328125, 0.0247650146484375, -0.00727081298828125, -0.0066680908203125, -0.004306793212890625, -0.00205230712890625, -0.01277923583984375, 0.0301666259765625, -0.02362060546875, 0.0318603515625, 0.0060577392578125, 0.0204620361328125, -0.0308837890625, -0.021087646484375, 0.0242767333984375, 0.027069091796875, 0.0215606689453125, 0.01995849609375, 0.01445770263671875, -0.017303466796875, -0.027496337890625, 0.00707244873046875, 0.027313232421875, -0.036224365234375, -0.05413818359375, -0.050048828125, 0.0081329345703125, 0.0304718017578125, 0.01543426513671875, 0.04248046875, 0.01192474365234375, 0.011077880859375, -0.035400390625, 0.0248870849609375, -0.016510009765625, -0.0179290771484375, 0.0010509490966796875, -0.0142974853515625, 0.0243682861328125, -0.0276336669921875, -0.048980712890625, 0.0002887248992919922, -0.0035648345947265625, -0.038482666015625, -0.0179290771484375, 0.03790283203125, -0.004924774169921875, 0.0185089111328125, -0.0232086181640625, -0.0057373046875, 0.0175018310546875, 0.01535797119140625, -0.016326904296875, 0.044830322265625, 0.0367431640625, 0.005573272705078125, 0.0175323486328125, 0.0025272369384765625, 0.037750244140625, 0.029266357421875, -0.004352569580078125, 0.053619384765625, -0.0384521484375, 0.019561767578125, 0.032257080078125, -0.000014185905456542969, 0.0054931640625, 0.0155792236328125, 0.0799560546875, -0.01806640625, -0.0302886962890625, -0.0263671875, -0.0174713134765625, 0.01190185546875, 0.035186767578125, -0.03094482421875, -0.0406494140625, 0.0264434814453125, 0.025604248046875, 0.0096282958984375, 0.0626220703125, 0.0026378631591796875, -0.00775909423828125, 0.00009959936141967773, -0.0055694580078125, 0.039520263671875, 0.082763671875, 0.032501220703125, 0.01065826416015625, -0.01056671142578125, 0.030120849609375, 0.0177764892578125, 0.0269012451171875, -0.00789642333984375, 0.01358795166015625, -0.058013916015625, 0.003330230712890625, 0.0088348388671875, -0.0180511474609375, 0.023651123046875, 0.0178070068359375, -0.01422882080078125, 0.0303802490234375, -0.00821685791015625, -0.0217742919921875, 0.022430419921875, 0.035797119140625, 0.0024566650390625, 0.0206146240234375, 0.00408172607421875, -0.01593017578125, 0.00218963623046875, -0.003940582275390625, -0.01922607421875, -0.01369476318359375, -0.0084686279296875, 0.01593017578125, 0.004486083984375, -0.0265045166015625, -0.037506103515625, 0.0213470458984375, -0.0255279541015625, 0.011871337890625, -0.067138671875, 0.0650634765625, -0.0145263671875, 0.00823974609375, -0.040283203125, 0.008087158203125, -0.0163421630859375, 0.0017642974853515625, -0.04144287109375, -0.038909912109375, -0.03033447265625, 0.042083740234375, -0.0279388427734375, 0.004184722900390625, 0.01947021484375, -0.027069091796875, -0.0355224609375, -0.0013332366943359375, 0.01282501220703125, 0.035888671875, 0.0572509765625, -0.0198516845703125, 0.041229248046875, 0.0053863525390625, -0.01157379150390625, -0.052642822265625, -0.01629638671875, -0.037872314453125, 0.0389404296875, -0.0114593505859375, 0.031463623046875, 0.037384033203125, -0.040008544921875, -0.0936279296875, 0.024810791015625, -0.01290130615234375, -0.0479736328125, -0.048614501953125, 0.021514892578125, 0.0166778564453125, -0.047027587890625, -0.01270294189453125, -0.0028057098388671875, -0.02752685546875, -0.0019989013671875, 0.007129669189453125, 0.065673828125, -0.0011911392211914062, 0.0182342529296875, -0.048248291015625, -0.00565338134765625, -0.02874755859375, 0.0007491111755371094, 0.0038661956787109375, -0.0099334716796875, 0.039154052734375, 0.044830322265625, -0.0111083984375, -0.00017547607421875, 0.005306243896484375, -0.043487548828125, 0.01287078857421875, -0.050445556640625, -0.038421630859375, -0.0189971923828125, 0.034759521484375, 0.0499267578125, 0.0241546630859375, -0.0386962890625, 0.01299285888671875, 0.0120391845703125, 0.00972747802734375, 0.0128173828125, -0.0151824951171875, -0.00007343292236328125, 0.0013427734375, -0.01580810546875, -0.0232086181640625, -0.00981903076171875, 0.0187225341796875, -0.039764404296875, -0.0011415481567382812, 0.00699615478515625, -0.01184844970703125, -0.032196044921875, 0.0159149169921875, 0.037139892578125, -0.05157470703125, -0.03955078125, 0.00412750244140625, -0.004425048828125, -0.021728515625, -0.013214111328125, -0.0239715576171875, -0.011993408203125, -0.0159912109375, 0.00502777099609375, -0.008819580078125, 0.0302276611328125, -0.017486572265625, -0.006282806396484375, 0.00759124755859375, 0.005401611328125, -0.02838134765625, -0.0030517578125, -0.0064697265625, 0.049163818359375, -0.0272369384765625, 0.076904296875, -0.01422119140625, 0.04974365234375, -0.018402099609375, 0.059417724609375, 0.03228759765625, -0.0309295654296875, 0.08526611328125, -0.058807373046875, -0.014373779296875, 0.01580810546875, -0.04962158203125, -0.060089111328125, 0.0228424072265625, -0.0035648345947265625, 0.007740020751953125, 0.036102294921875 ]
fa7733f09f5af1a18eae8a43386b0f60b60dcc9d
Wordpress Stackexchange Q: Edit Imported advanced Custom Fields from wordpress Dashboard I have imported advanced custom fields from one of my other site and now I want to add few more options to those fields but I can't figure out how to do it via Dashboard? I have imported the field using php export/import option of the plugin. Is there anyway that imported fields shows up in Field Groups section in Dashboard? A: Fields added by PHP are not shown in the Dashboard. Recently, I came across this post in the User Submitted Fields section of ACF forums: PHP Recovery Tool. The author posted a plugin in GitHub, Advanced Custom Fields Recovery Tool from PHP Export. Haven't tested, though. Use this plugin to import fieldsets from PHP exports. Do not use this for your workflow of importing and exporting. Use it only as a recovery tool when you lose the original database and XML files.
Q: Edit Imported advanced Custom Fields from wordpress Dashboard I have imported advanced custom fields from one of my other site and now I want to add few more options to those fields but I can't figure out how to do it via Dashboard? I have imported the field using php export/import option of the plugin. Is there anyway that imported fields shows up in Field Groups section in Dashboard? A: Fields added by PHP are not shown in the Dashboard. Recently, I came across this post in the User Submitted Fields section of ACF forums: PHP Recovery Tool. The author posted a plugin in GitHub, Advanced Custom Fields Recovery Tool from PHP Export. Haven't tested, though. Use this plugin to import fieldsets from PHP exports. Do not use this for your workflow of importing and exporting. Use it only as a recovery tool when you lose the original database and XML files.
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:426890", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76406" }
[ 0.07781982421875, 0.00952911376953125, -0.0011491775512695312, -0.042144775390625, 0.0306396484375, -0.032196044921875, 0.0302734375, -0.013580322265625, -0.0355224609375, 0.0014629364013671875, -0.0163726806640625, 0.01837158203125, -0.054840087890625, -0.03314208984375, 0.011474609375, -0.04644775390625, 0.01021575927734375, -0.01186370849609375, 0.0189056396484375, -0.004444122314453125, 0.0254974365234375, 0.0007915496826171875, 0.01276397705078125, -0.0244903564453125, 0.0247955322265625, 0.025604248046875, -0.0217132568359375, 0.012237548828125, 0.0228271484375, 0.032623291015625, 0.0272064208984375, -0.064697265625, 0.00656890869140625, 0.021728515625, -0.00653076171875, -0.01446533203125, 0.033966064453125, -0.011627197265625, -0.0273284912109375, 0.0709228515625, 0.00580596923828125, 0.0023097991943359375, 0.036834716796875, 0.019378662109375, -0.01134490966796875, -0.035125732421875, 0.021636962890625, -0.03375244140625, 0.04046630859375, 0.03021240234375, 0.01180267333984375, -0.0294342041015625, 0.0081939697265625, -0.0041351318359375, -0.03887939453125, -0.07440185546875, -0.05450439453125, 0.0323486328125, 0.0286102294921875, 0.042510986328125, -0.00452423095703125, -0.0207977294921875, -0.004119873046875, -0.05426025390625, 0.0021209716796875, -0.005214691162109375, 0.010467529296875, 0.005611419677734375, -0.040802001953125, -0.01678466796875, 0.0268707275390625, -0.0260162353515625, 0.024139404296875, 0.004581451416015625, 0.01020050048828125, -0.050079345703125, 0.0275726318359375, -0.0273895263671875, 0.0118255615234375, 0.01357269287109375, -0.008575439453125, 0.004886627197265625, 0.0031280517578125, -0.02545166015625, 0.001918792724609375, -0.007965087890625, -0.01480865478515625, -0.00946044921875, 0.03253173828125, 0.00458526611328125, 0.005374908447265625, -0.025177001953125, -0.02655029296875, 0.06292724609375, 0.0225372314453125, -0.026214599609375, -0.023895263671875, 0.0146026611328125, 0.0228424072265625, 0.061065673828125, -0.004405975341796875, -0.0217132568359375, 0.041534423828125, -0.043182373046875, -0.00917816162109375, 0.01507568359375, -0.0013093948364257812, -0.06707763671875, -0.0028858184814453125, 0.01177215576171875, -0.00968170166015625, 0.007965087890625, 0.0135650634765625, -0.0108795166015625, -0.0404052734375, 0.0014514923095703125, 0.01413726806640625, -0.0384521484375, -0.01357269287109375, -0.015869140625, -0.0231781005859375, -0.0069580078125, -0.08941650390625, -0.00473785400390625, -0.0283203125, -0.07958984375, -0.0251007080078125, 0.11053466796875, -0.02044677734375, 0.054840087890625, -0.017791748046875, -0.007617950439453125, 0.03875732421875, 0.03558349609375, 0.01074981689453125, -0.01456451416015625, 0.0266265869140625, 0.00142669677734375, 0.01348876953125, 0.03082275390625, 0.01026153564453125, -0.0635986328125, -0.052032470703125, 0.0251617431640625, -0.02252197265625, -0.0268402099609375, 0.0012502670288085938, 0.0484619140625, -0.028564453125, -0.039306640625, 0.05877685546875, -0.0155029296875, 0.048187255859375, 0.01849365234375, -0.001781463623046875, -0.016204833984375, 0.0462646484375, -0.032318115234375, -0.01482391357421875, -0.05084228515625, 0.0186309814453125, -0.0266876220703125, -0.0277099609375, -0.041290283203125, -0.06536865234375, 0.024993896484375, -0.03485107421875, -0.0029773712158203125, 0.033905029296875, -0.035247802734375, -0.00843048095703125, -0.022674560546875, 0.039520263671875, 0.042572021484375, 0.0236358642578125, 0.06365966796875, 0.01114654541015625, -0.0018663406372070312, 0.0215606689453125, 0.0232696533203125, -0.004413604736328125, -0.0322265625, 0.02899169921875, -0.0243377685546875, -0.045654296875, 0.00836944580078125, -0.0013446807861328125, 0.027801513671875, 0.04425048828125, 0.0037136077880859375, 0.0199127197265625, -0.01044464111328125, -0.01557159423828125, -0.0218353271484375, 0.002166748046875, 0.0233001708984375, -0.0012331008911132812, 0.0238037109375, -0.0139923095703125, 0.005565643310546875, -0.024749755859375, -0.0035381317138671875, 0.01073455810546875, 0.01959228515625, -0.01052093505859375, 0.0030879974365234375, -0.017547607421875, 0.0179290771484375, 0.0225372314453125, -0.004749298095703125, 0.0164642333984375, 0.0017261505126953125, -0.04754638671875, 0.041046142578125, -0.035736083984375, -0.0029125213623046875, 0.005306243896484375, 0.0166015625, 0.0048370361328125, -0.0014657974243164062, -0.00705718994140625, -0.01529693603515625, -0.017730712890625, 0.02203369140625, 0.0018253326416015625, -0.00850677490234375, -0.0094451904296875, -0.00852203369140625, 0.0286407470703125, -0.002628326416015625, 0.06536865234375, 0.023040771484375, 0.0048828125, 0.028076171875, -0.00548553466796875, -0.014190673828125, -0.0017442703247070312, -0.06695556640625, 0.026519775390625, 0.04974365234375, 0.0251312255859375, 0.0014753341674804688, -0.007442474365234375, 0.019805908203125, 0.057769775390625, -0.0020294189453125, 0.008636474609375, 0.001895904541015625, 0.00545501708984375, 0.06494140625, -0.08306884765625, 0.045928955078125, 0.017120361328125, 0.0153961181640625, -0.0234222412109375, 0.06634521484375, -0.05328369140625, -0.0195159912109375, -0.0294189453125, 0.015899658203125, -0.01282501220703125, -0.07916259765625, 0.0089569091796875, -0.05364990234375, 0.0293121337890625, 0.03497314453125, 0.057586669921875, 0.05462646484375, -0.0288238525390625, -0.0029754638671875, 0.00478363037109375, 0.0677490234375, -0.005947113037109375, -0.00524139404296875, -0.0276031494140625, 0.054046630859375, -0.0251922607421875, 0.005859375, -0.0087127685546875, -0.002948760986328125, 0.00013971328735351562, 0.01505279541015625, 0.021575927734375, -0.006664276123046875, 0.005352020263671875, -0.05902099609375, 0.029815673828125, 0.0023632049560546875, -0.0280914306640625, -0.015869140625, 0.015869140625, 0.03045654296875, -0.00736236572265625, 0.00580596923828125, -0.0132598876953125, 0.0009350776672363281, -0.00646209716796875, -0.062744140625, 0.041748046875, -0.03814697265625, 0.04144287109375, 0.0728759765625, 0.0016660690307617188, 0.01258087158203125, -0.0181121826171875, 0.01251983642578125, -0.00457763671875, 0.0136260986328125, -0.0157928466796875, -0.043975830078125, -0.0088653564453125, 0.003116607666015625, 0.046783447265625, 0.07623291015625, -0.02685546875, -0.061126708984375, -0.01418304443359375, 0.037811279296875, -0.08062744140625, -0.088134765625, -0.01010894775390625, -0.06719970703125, -0.033355712890625, -0.0032138824462890625, -0.0360107421875, 0.0267791748046875, -0.0016698837280273438, 0.005290985107421875, 0.0660400390625, -0.033294677734375, -0.0282440185546875, -0.045166015625, -0.08203125, -0.08599853515625, 0.00946807861328125, -0.01486968994140625, 0.0047607421875, 0.031707763671875, 0.0007677078247070312, -0.00954437255859375, 0.01018524169921875, -0.0253143310546875, -0.0033054351806640625, -0.01251220703125, 0.00537109375, -0.03662109375, 0.046783447265625, 0.0007290840148925781, 0.019012451171875, 0.046966552734375, -0.0249786376953125, -0.0131378173828125, -0.0411376953125, 0.00522613525390625, -0.053009033203125, 0.0196533203125, 0.07861328125, -0.02587890625, -0.0318603515625, -0.040008544921875, 0.0012254714965820312, 0.027496337890625, 0.0182647705078125, 0.006992340087890625, -0.039581298828125, -0.0333251953125, 0.00656890869140625, 0.032073974609375, 0.0184326171875, -0.004154205322265625, -0.0238189697265625, 0.0171356201171875, -0.033050537109375, -0.001468658447265625, 0.0261383056640625, 0.0106048583984375, 0.01580810546875, -0.01132965087890625, 0.0322265625, 0.0179595947265625, 0.021636962890625, -0.0101470947265625, 0.0211639404296875, -0.0296173095703125, -0.06878662109375, 0.0260009765625, -0.06317138671875, -0.0166473388671875, -0.0088043212890625, 0.01152801513671875, 0.0311126708984375, 0.068603515625, -0.084716796875, 0.0005993843078613281, 0.029998779296875, 0.01523590087890625, -0.00711822509765625, -0.02130126953125, -0.1014404296875, -0.0184478759765625, -0.08477783203125, -0.006443023681640625, -0.01534271240234375, -0.03704833984375, 0.00959014892578125, 0.0005941390991210938, -0.040679931640625, -0.0482177734375, 0.035736083984375, 0.0167236328125, 0.01464080810546875, -0.0008149147033691406, 0.00547027587890625, -0.010223388671875, 0.00260162353515625, -0.0043487548828125, -0.0828857421875, -0.01251983642578125, -0.0303192138671875, 0.048675537109375, 0.01396942138671875, -0.003826141357421875, -0.009521484375, 0.041229248046875, -0.03302001953125, 0.00705718994140625, -0.00981903076171875, 0.01424407958984375, 0.00033283233642578125, -0.0035419464111328125, -0.02215576171875, -0.01453399658203125, -0.0157928466796875, -0.024200439453125, -0.06561279296875, -0.01088714599609375, 0.002269744873046875, -0.01448822021484375, 0.04052734375, -0.0416259765625, -0.02752685546875, -0.0307464599609375, -0.056396484375, -0.01513671875, -0.01203155517578125, -0.03546142578125, -0.0154876708984375, -0.03863525390625, 0.0113067626953125, 0.0202178955078125, -0.0018644332885742188, 0.0182647705078125, 0.039215087890625, 0.01172637939453125, -0.015625, -0.064697265625, -0.0035114288330078125, 0.021240234375, -0.0187835693359375, 0.032440185546875, 0.00766754150390625, -0.01091766357421875, 0.0235595703125, -0.017730712890625, 0.00482940673828125, -0.05908203125, 0.0282745361328125, -0.005245208740234375, -0.007610321044921875, 0.006313323974609375, -0.0296630859375, 0.0556640625, 0.050689697265625, 0.02325439453125, -0.049163818359375, 0.0224456787109375, 0.036865234375, -0.03167724609375, 0.0156707763671875, -0.0241851806640625, -0.046417236328125, 0.0279998779296875, 0.003940582275390625, 0.002777099609375, -0.0028362274169921875, 0.003627777099609375, 0.0019092559814453125, -0.047882080078125, 0.018280029296875, 0.032989501953125, 0.00138092041015625, 0.020416259765625, 0.01171875, 0.09051513671875, 0.016693115234375, 0.0222625732421875, -0.004810333251953125, 0.017059326171875, -0.022308349609375, -0.07598876953125, -0.03228759765625, -0.00698089599609375, 0.0557861328125, 0.0279693603515625, -0.0034198760986328125, -0.005767822265625, 0.08349609375, -0.0085296630859375, 0.0174560546875, 0.04046630859375, 0.0594482421875, -0.006561279296875, -0.0204925537109375, 0.009307861328125, -0.022735595703125, -0.011199951171875, 0.040924072265625, -0.036468505859375, 0.0094451904296875, 0.016815185546875, 0.0131378173828125, 0.01387786865234375, 0.03570556640625, 0.012451171875, -0.0276641845703125, 0.00562286376953125, -0.0029773712158203125, 0.01617431640625, -0.03314208984375, 0.0262451171875, -0.0126800537109375, 0.03619384765625, 0.0106353759765625, -0.03424072265625, 0.041778564453125, -0.03143310546875, -0.0167694091796875, 0.0794677734375, 0.0200347900390625, -0.073486328125, -0.0215911865234375, 0.0019989013671875, 0.007274627685546875, -0.02703857421875, -0.003971099853515625, 0.0364990234375, -0.0243377685546875, 0.03216552734375, -0.00029969215393066406, 0.0173187255859375, -0.01371002197265625, -0.0179443359375, -0.0113983154296875, -0.0091094970703125, 0.0252532958984375, -0.025909423828125, -0.022369384765625, -0.023345947265625, -0.0225067138671875, 0.044647216796875, 0.00930023193359375, 0.0178375244140625, -0.042999267578125, 0.002613067626953125, -0.024383544921875, -0.0181121826171875, 0.035858154296875, 0.004009246826171875, 0.0082550048828125, -0.0197601318359375, -0.0110015869140625, -0.043701171875, -0.01708984375, -0.00841522216796875, -0.03399658203125, 0.00022721290588378906, 0.01552581787109375, 0.041839599609375, -0.0099029541015625, -0.031524658203125, 0.0138397216796875, 0.006488800048828125, -0.005001068115234375, 0.0479736328125, 0.022003173828125, 0.055419921875, -0.000362396240234375, 0.064697265625, 0.03509521484375, 0.056732177734375, -0.034332275390625, -0.03814697265625, -0.0260009765625, -0.0093231201171875, -0.007476806640625, 0.0016937255859375, 0.02862548828125, 0.0313720703125, 0.0362548828125, 0.0019931793212890625, 0.01250457763671875, -0.0194091796875, 0.0063018798828125, -0.0116119384765625, 0.028411865234375, -0.0161590576171875, -0.053253173828125, 0.07489013671875, -0.017303466796875, -0.020294189453125, 0.0189361572265625, -0.01082611083984375, 0.024749755859375, 0.013519287109375, 0.01290130615234375, -0.026580810546875, -0.04833984375, 0.07818603515625, 0.038787841796875, -0.0245513916015625, 0.0138092041015625, 0.00966644287109375, -0.00958251953125, -0.00495147705078125, 0.0313720703125, -0.0322265625, -0.018646240234375, -0.005596160888671875, -0.0181732177734375, -0.04052734375, -0.043212890625, -0.015380859375, 0.01080322265625, 0.044097900390625, 0.037261962890625, -0.08099365234375, 0.01020050048828125, -0.01137542724609375, -0.00897979736328125, 0.0224456787109375, 0.006511688232421875, -0.0202789306640625, -0.0302734375, -0.00547027587890625, 0.0203704833984375, -0.025177001953125, -0.0019140243530273438, 0.0164031982421875, -0.006683349609375, -0.0068359375, 0.0005602836608886719, -0.0030517578125, -0.0023899078369140625, -0.03009033203125, -0.0092620849609375, -0.02593994140625, 0.0175018310546875, 0.018341064453125, 0.002704620361328125, -0.0162353515625, -0.0191192626953125, 0.019744873046875, -0.04327392578125, -0.01270294189453125, 0.009918212890625, 0.03204345703125, 0.067626953125, 0.032012939453125, 0.034149169921875, -0.04193115234375, -0.0012683868408203125, 0.051788330078125, 0.0301055908203125, -0.038787841796875, 0.0038471221923828125, 0.028045654296875, -0.00045943260192871094, 0.0066680908203125, 0.03277587890625, -0.04583740234375, -0.01678466796875, 0.007305145263671875, 0.068115234375, 0.0168609619140625, -0.045989990234375, 0.0085906982421875, 0.015716552734375, 0.0019235610961914062, 0.00847625732421875, 0.046600341796875, -0.051910400390625, -0.01490020751953125, 0.0193023681640625, -0.0209197998046875, -0.0263671875, 0.007244110107421875, -0.06536865234375, 0.07000732421875, 0.07421875, 0.007678985595703125, 0.008758544921875, 0.021881103515625, -0.08123779296875, -0.0259552001953125, -0.0008440017700195312, 0.040130615234375, 0.06378173828125, -0.029144287109375, -0.047943115234375, -0.0455322265625, -0.0226593017578125, 0.07806396484375, -0.0072174072265625, -0.0078582763671875, -0.0235443115234375, -0.0078277587890625, 0.02325439453125, 0.03289794921875, 0.01326751708984375, 0.0247039794921875, 0.0032634735107421875, 0.044342041015625, 0.044097900390625, -0.052001953125, 0.0093536376953125, 0.01079559326171875, -0.00921630859375, 0.032684326171875, 0.01551055908203125, 0.02166748046875, -0.0221405029296875, -0.0257415771484375, 0.031463623046875, -0.0211181640625, -0.00905609130859375, -0.01480865478515625, 0.03558349609375, -0.006744384765625, -0.0118408203125, 0.007518768310546875, 0.00243377685546875, 0.004993438720703125, 0.0167083740234375, 0.00009417533874511719, 0.0440673828125, 0.05499267578125, 0.04364013671875, -0.0035114288330078125, -0.02679443359375, 0.04522705078125, -0.0075225830078125, -0.055694580078125, 0.01491546630859375, -0.0025482177734375, 0.005626678466796875, -0.0017681121826171875, 0.051513671875, 0.00795745849609375, 0.00489044189453125, -0.036865234375, -0.08612060546875, 0.01385498046875, 0.0218505859375, 0.018157958984375, 0.03759765625, 0.017242431640625, -0.03948974609375, 0.046051025390625, -0.02581787109375, 0.00820159912109375, 0.03692626953125, 0.00722503662109375, -0.005123138427734375, 0.006908416748046875, -0.01265716552734375, 0.0124053955078125, -0.0161285400390625, 0.0032825469970703125, 0.01416778564453125, 0.0289459228515625, -0.006824493408203125, 0.03387451171875, -0.015289306640625, -0.003215789794921875, -0.039031982421875, 0.02093505859375, 0.0136871337890625, 0.041839599609375, -0.05889892578125, 0.004154205322265625, -0.0025730133056640625, 0.049591064453125, -0.006656646728515625, 0.0004687309265136719, 0.04718017578125, 0.031158447265625, -0.04486083984375, -0.030303955078125, -0.00859832763671875, -0.0301055908203125, -0.0301361083984375, -0.0687255859375, 0.0307159423828125, 0.03704833984375, 0.017791748046875, 0.04034423828125, -0.0280914306640625, 0.052001953125, -0.0177154541015625, 0.03240966796875, -0.0020503997802734375, -0.0263824462890625, 0.036407470703125, 0.0024127960205078125, 0.06304931640625, 0.022216796875, -0.05279541015625, -0.004703521728515625, -0.040130615234375, -0.0115966796875, 0.006381988525390625, 0.031982421875, 0.0168304443359375, 0.0052032470703125, 0.050201416015625, 0.00885009765625, -0.03704833984375, 0.004749298095703125, 0.04095458984375, -0.00635528564453125, 0.006011962890625, 0.03741455078125, -0.044097900390625, -0.033233642578125, -0.0159454345703125, 0.0430908203125, 0.03387451171875, 0.016448974609375, 0.0101470947265625, 0.043304443359375, -0.0005054473876953125, -0.0008320808410644531, -0.0054779052734375, 0.00479888916015625, 0.01172637939453125, -0.0035610198974609375, -0.0120086669921875, -0.0227508544921875, -0.01079559326171875, 0.013763427734375, 0.0032501220703125, -0.0264739990234375, -0.0160064697265625, -0.0183563232421875, 0.0296630859375, 0.03948974609375, 0.00852203369140625, -0.03558349609375, -0.039276123046875, -0.048736572265625, -0.0261688232421875, 0.005870819091796875, -0.0005908012390136719, 0.0206451416015625, 0.010467529296875, 0.049713134765625, -0.006389617919921875, 0.012359619140625, -0.005157470703125, 0.03936767578125, 0.029632568359375, 0.0260009765625, -0.0404052734375, 0.0316162109375, -0.0198974609375, 0.0335693359375, -0.0015125274658203125, 0.09393310546875, 0.01593017578125, -0.022430419921875, -0.005702972412109375, 0.014923095703125, 0.019683837890625, -0.0223541259765625, 0.0117034912109375, 0.01250457763671875, -0.019134521484375, 0.0029888153076171875, -0.051513671875, -0.03399658203125, -0.05487060546875, 0.021820068359375, 0.033843994140625, -0.0218963623046875, -0.006809234619140625, -0.0548095703125, 0.007251739501953125, 0.04010009765625, 0.01092529296875, -0.044891357421875, 0.01447296142578125, -0.021148681640625, 0.0552978515625, -0.0018167495727539062, -0.049835205078125, 0.0272216796875, 0.057830810546875, 0.0001246929168701172, 0.01485443115234375, -0.003448486328125, -0.035430908203125, 0.002841949462890625, 0.01419830322265625, 0.031097412109375, -0.0135498046875, -0.006671905517578125, -0.0112457275390625, -0.0070648193359375, 0.03546142578125, -0.0208282470703125, -0.03570556640625, -0.00836181640625, 0.006298065185546875, 0.0009174346923828125, -0.039398193359375, 0.02142333984375, -0.045867919921875, -0.001312255859375, -0.06146240234375, 0.0161895751953125, 0.0037689208984375, -0.042816162109375, -0.064697265625, 0.054656982421875, -0.0313720703125, -0.00493621826171875, -0.038787841796875, -0.013336181640625, -0.01486968994140625, 0.05084228515625, 0.00711822509765625, -0.040283203125, -0.0045318603515625, 0.048431396484375, 0.002674102783203125, -0.0096893310546875, 0.036224365234375, -0.029998779296875, -0.026123046875, -0.006328582763671875, 0.007198333740234375, 0.0020809173583984375, 0.009918212890625, -0.0225677490234375, 0.0298919677734375, 0.0180816650390625, -0.0465087890625, -0.014923095703125, 0.0020122528076171875, 0.02716064453125, -0.0052947998046875, -0.0262298583984375, -0.017974853515625, -0.0032978057861328125, 0.054229736328125, 0.0262451171875, 0.00775146484375, -0.0272674560546875, -0.0237274169921875, -0.00299072265625, 0.0287322998046875, -0.05096435546875, -0.01242828369140625, -0.060791015625, -0.042144775390625, -0.031951904296875, 0.00939178466796875, 0.0255126953125, 0.00501251220703125, 0.01259613037109375, -0.007518768310546875, 0.0631103515625, -0.0082550048828125, -0.044403076171875, 0.028076171875, 0.061370849609375, -0.050872802734375, -0.0240020751953125, 0.0172576904296875, -0.02569580078125, 0.01203155517578125, 0.007354736328125, -0.0300140380859375, -0.053619384765625, 0.00411224365234375, 0.032806396484375, -0.032623291015625, 0.039764404296875, -0.0229644775390625, -0.01531982421875, 0.005458831787109375, 0.006137847900390625, -0.028472900390625, -0.00814056396484375, 0.0180511474609375, 0.02313232421875, -0.0233154296875, 0.07000732421875, 0.0078125, -0.00963592529296875, -0.029937744140625, 0.034454345703125, -0.0237884521484375, -0.01052093505859375, -0.01265716552734375, -0.007781982421875, 0.0017175674438476562, -0.00290679931640625, -0.01605224609375, -0.037261962890625, 0.006160736083984375, 0.033294677734375, -0.004589080810546875, 0.011383056640625 ]
ad3b71bc6cd8ec1374c99cb88492a56b1289337b
Wordpress Stackexchange Q: Setting up WordPress plugin's page I recently published a WordPress plugin but all the links of plugin page (Description, Installation, FAQs, Screenshots etc) has same two line description I used in readme.txt. Although, I properly filled up the readme.txt template. But it is not picking up anything else except description. A: Interesting bug you provoked out there :) The only thing I see missing is the "short description" located between the License URI and the ==Description== block. It is used in the Header area: While you are at it, take a look at this article: The Plugins directory and readme.txt files. And also this one about Header Images and screenshots.
Q: Setting up WordPress plugin's page I recently published a WordPress plugin but all the links of plugin page (Description, Installation, FAQs, Screenshots etc) has same two line description I used in readme.txt. Although, I properly filled up the readme.txt template. But it is not picking up anything else except description. A: Interesting bug you provoked out there :) The only thing I see missing is the "short description" located between the License URI and the ==Description== block. It is used in the Header area: While you are at it, take a look at this article: The Plugins directory and readme.txt files. And also this one about Header Images and screenshots.
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:426916", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76486" }
[ -0.0030727386474609375, -0.01421356201171875, 0.002307891845703125, 0.031402587890625, -0.03265380859375, -0.028961181640625, 0.0093536376953125, -0.0227813720703125, -0.0440673828125, 0.009124755859375, -0.01192474365234375, 0.04400634765625, -0.052734375, -0.0265350341796875, 0.01549530029296875, -0.040283203125, 0.0195770263671875, 0.04656982421875, 0.05029296875, -0.001766204833984375, 0.007904052734375, 0.01019287109375, 0.005672454833984375, 0.05999755859375, 0.0157623291015625, -0.046295166015625, 0.1461181640625, -0.006938934326171875, 0.026397705078125, -0.0095977783203125, 0.036468505859375, -0.040069580078125, 0.033782958984375, 0.013671875, -0.03216552734375, 0.0010700225830078125, 0.00849151611328125, -0.01605224609375, -0.02886962890625, 0.0548095703125, 0.0421142578125, -0.01666259765625, 0.07073974609375, -0.019317626953125, 0.030914306640625, -0.004886627197265625, 0.038421630859375, -0.03204345703125, 0.0197906494140625, 0.0016880035400390625, 0.0096893310546875, -0.0123291015625, 0.02813720703125, -0.0058441162109375, -0.016143798828125, 0.0025806427001953125, 0.0065460205078125, 0.01306915283203125, 0.0203857421875, -0.0108184814453125, -0.0330810546875, 0.0197296142578125, 0.02581787109375, 0.02032470703125, 0.020660400390625, -0.019927978515625, -0.017913818359375, 0.04180908203125, -0.04541015625, -0.003391265869140625, 0.033905029296875, -0.046600341796875, 0.01849365234375, -0.0214080810546875, -0.00714111328125, 0.00206756591796875, -0.00025177001953125, -0.023681640625, 0.007587432861328125, -0.0098114013671875, 0.01123809814453125, -0.0181427001953125, -0.04022216796875, -0.00421142578125, 0.0271759033203125, 0.0288238525390625, -0.006214141845703125, -0.01265716552734375, -0.04296875, -0.003231048583984375, -0.036224365234375, -0.011627197265625, -0.0014629364013671875, -0.006671905517578125, -0.036956787109375, 0.0266571044921875, -0.0142059326171875, 0.0743408203125, 0.0014514923095703125, 0.0662841796875, -0.04150390625, -0.0014019012451171875, 0.042877197265625, -0.07403564453125, 0.0230865478515625, 0.002941131591796875, -0.017242431640625, -0.00937652587890625, 0.061370849609375, 0.035858154296875, -0.01194000244140625, 0.006481170654296875, -0.016998291015625, -0.00936126708984375, 0.0227813720703125, 0.00714874267578125, -0.051727294921875, 0.035430908203125, -0.023040771484375, 0.01047515869140625, -0.002696990966796875, 0.01282501220703125, 0.01255035400390625, 0.020355224609375, -0.0460205078125, -0.0184326171875, 0.0227203369140625, -0.04998779296875, -0.01082611083984375, -0.006122589111328125, 0.0081787109375, 0.028350830078125, 0.00988006591796875, -0.00677490234375, -0.035003662109375, -0.007049560546875, -0.00814056396484375, -0.00975799560546875, -0.01013946533203125, 0.01419830322265625, -0.0535888671875, -0.0221405029296875, 0.056610107421875, -0.055084228515625, -0.01297760009765625, 0.0171966552734375, 0.0031108856201171875, 0.03387451171875, 0.0003745555877685547, -0.0195159912109375, 0.03179931640625, -0.042205810546875, 0.025665283203125, -0.0005512237548828125, -0.01355743408203125, -0.03424072265625, 0.00885772705078125, -0.033233642578125, 0.02532958984375, -0.0282745361328125, 0.043121337890625, 0.01410675048828125, 0.0021915435791015625, -0.034088134765625, -0.060699462890625, -0.032012939453125, -0.04888916015625, -0.01092529296875, 0.007183074951171875, 0.03338623046875, -0.0172119140625, -0.0018835067749023438, -0.03173828125, -0.008636474609375, -0.001430511474609375, 0.01071929931640625, -0.0026874542236328125, -0.0284881591796875, 0.041839599609375, -0.007320404052734375, -0.04449462890625, -0.016693115234375, 0.03448486328125, -0.0197296142578125, -0.058868408203125, 0.0205535888671875, 0.00031280517578125, 0.0633544921875, 0.02349853515625, 0.02276611328125, 0.0399169921875, -0.0153961181640625, -0.045196533203125, 0.0201568603515625, 0.002643585205078125, -0.0033855438232421875, -0.0168304443359375, 0.0148468017578125, -0.0024394989013671875, -0.0235137939453125, -0.01543426513671875, 0.0032806396484375, 0.0098419189453125, 0.00490570068359375, 0.0181427001953125, -0.00981903076171875, -0.0025577545166015625, 0.0244140625, 0.033477783203125, 0.0246429443359375, -0.005435943603515625, -0.0034160614013671875, 0.021026611328125, -0.06488037109375, -0.03668212890625, 0.04150390625, -0.006404876708984375, 0.0205078125, 0.02392578125, -0.0016613006591796875, 0.042236328125, -0.00688934326171875, 0.033233642578125, 0.04217529296875, 0.0240631103515625, 0.019866943359375, -0.022613525390625, -0.0006151199340820312, 0.015716552734375, 0.0007033348083496094, 0.022674560546875, 0.01224517822265625, 0.032196044921875, 0.047088623046875, -0.00592041015625, 0.019561767578125, 0.0265655517578125, -0.0079345703125, 0.0023517608642578125, 0.0028400421142578125, 0.0243682861328125, 0.0419921875, 0.0010509490966796875, 0.01523590087890625, 0.0304718017578125, -0.05218505859375, 0.007175445556640625, -0.005130767822265625, 0.0196075439453125, 0.07171630859375, 0.02294921875, 0.00978851318359375, 0.0121612548828125, -0.032501220703125, -0.019561767578125, 0.040771484375, -0.016265869140625, -0.014923095703125, 0.017333984375, 0.005764007568359375, -0.007808685302734375, -0.018402099609375, 0.00145721435546875, -0.0231475830078125, 0.02227783203125, 0.036590576171875, 0.053436279296875, 0.057281494140625, -0.017608642578125, -0.017059326171875, 0.0180206298828125, 0.067626953125, 0.0008587837219238281, 0.039398193359375, 0.03424072265625, -0.04345703125, -0.01146697998046875, -0.01194000244140625, -0.031463623046875, 0.0142059326171875, 0.0032253265380859375, -0.0268402099609375, -0.000759124755859375, -0.00047659873962402344, 0.020294189453125, -0.063720703125, 0.0258636474609375, 0.049957275390625, 0.0195770263671875, 0.004047393798828125, 0.024200439453125, 0.0116119384765625, -0.044586181640625, 0.062744140625, -0.01253509521484375, -0.03448486328125, 0.03173828125, -0.059356689453125, 0.03521728515625, -0.040191650390625, 0.061187744140625, 0.057861328125, -0.00311279296875, -0.00811004638671875, -0.0037021636962890625, -0.00750732421875, 0.01050567626953125, -0.032501220703125, -0.0243682861328125, 0.0193328857421875, -0.02825927734375, 0.0255584716796875, 0.02044677734375, 0.0173492431640625, -0.00634002685546875, -0.044586181640625, -0.03594970703125, 0.01306915283203125, -0.092041015625, -0.0335693359375, -0.0257415771484375, -0.043182373046875, 0.037872314453125, -0.0093536376953125, 0.0014190673828125, -0.03204345703125, 0.01065826416015625, 0.005733489990234375, 0.0144805908203125, -0.08062744140625, -0.049285888671875, -0.08367919921875, -0.08673095703125, -0.026092529296875, 0.01410675048828125, 0.01226043701171875, 0.00980377197265625, 0.032073974609375, 0.01430511474609375, -0.054107666015625, -0.0018529891967773438, 0.01276397705078125, -0.0234375, 0.01439666748046875, 0.0145721435546875, 0.003997802734375, 0.002750396728515625, 0.0236663818359375, 0.0198974609375, 0.0179595947265625, -0.05047607421875, -0.0218048095703125, 0.014404296875, -0.0085601806640625, -0.0022830963134765625, -0.0157623291015625, 0.0033130645751953125, -0.010833740234375, -0.04046630859375, -0.051513671875, 0.0048675537109375, -0.0259552001953125, -0.02825927734375, 0.01042938232421875, 0.022216796875, 0.0015592575073242188, -0.03143310546875, 0.0299530029296875, -0.041259765625, 0.01183319091796875, 0.0269622802734375, -0.02685546875, 0.0176849365234375, -0.0309295654296875, -0.036834716796875, -0.00849151611328125, 0.01336669921875, -0.006927490234375, -0.00524139404296875, -0.0112762451171875, 0.027557373046875, -0.004150390625, 0.0140533447265625, -0.0394287109375, -0.00586700439453125, 0.0283355712890625, -0.017120361328125, 0.03717041015625, -0.015838623046875, -0.0254364013671875, -0.005893707275390625, 0.06390380859375, -0.0068206787109375, -0.0163726806640625, 0.033294677734375, -0.00016832351684570312, -0.0027217864990234375, 0.01432037353515625, -0.06512451171875, -0.0213623046875, -0.05767822265625, 0.00235748291015625, -0.0016450881958007812, -0.052886962890625, 0.020477294921875, -0.0087127685546875, -0.0202484130859375, -0.033905029296875, 0.04107666015625, 0.021148681640625, 0.015960693359375, 0.0032482147216796875, 0.00220489501953125, -0.004947662353515625, -0.0285797119140625, 0.009735107421875, -0.0782470703125, -0.00455474853515625, -0.01226043701171875, 0.050262451171875, 0.00836181640625, -0.006526947021484375, -0.026763916015625, 0.0236358642578125, 0.0109405517578125, 0.0640869140625, -0.005336761474609375, -0.01654052734375, 0.0038166046142578125, 0.015777587890625, 0.05133056640625, -0.01415252685546875, -0.0025234222412109375, 0.0036182403564453125, -0.00237274169921875, 0.01995849609375, -0.027069091796875, -0.03021240234375, 0.0005388259887695312, -0.0208892822265625, -0.0289764404296875, -0.0082855224609375, 0.0146331787109375, 0.0027980804443359375, 0.0218658447265625, -0.024993896484375, -0.01155853271484375, -0.0016345977783203125, 0.0183868408203125, -0.01233673095703125, -0.01397705078125, 0.01983642578125, 0.05975341796875, 0.0181427001953125, 0.005489349365234375, -0.06427001953125, 0.042510986328125, 0.038299560546875, 0.01045989990234375, 0.0269012451171875, -0.0004630088806152344, -0.0156707763671875, 0.051300048828125, 0.01436614990234375, 0.042236328125, -0.025726318359375, 0.0188140869140625, -0.0242156982421875, -0.054962158203125, 0.05389404296875, -0.0109710693359375, -0.00907135009765625, 0.00984954833984375, -0.01229095458984375, 0.0284576416015625, -0.0122833251953125, -0.017730712890625, 0.0118865966796875, 0.00949859619140625, 0.0108795166015625, -0.015228271484375, -0.00531005859375, 0.053009033203125, 0.0482177734375, 0.03729248046875, -0.00820159912109375, 0.0289459228515625, 0.016815185546875, -0.021575927734375, 0.0225067138671875, 0.00838470458984375, 0.016937255859375, 0.005123138427734375, 0.018768310546875, -0.0242462158203125, -0.017547607421875, -0.0132293701171875, 0.05645751953125, -0.0096893310546875, -0.0219879150390625, -0.0155181884765625, -0.0357666015625, 0.019317626953125, 0.020965576171875, 0.07977294921875, 0.00772857666015625, -0.0021457672119140625, -0.00655364990234375, -0.00959014892578125, 0.0718994140625, 0.0076446533203125, -0.01611328125, 0.003307342529296875, -0.02142333984375, -0.01153564453125, 0.037841796875, 0.0121307373046875, -0.03594970703125, 0.0163421630859375, -0.0169830322265625, 0.0181732177734375, 0.00417327880859375, 0.0433349609375, 0.0274658203125, -0.0207672119140625, 0.01995849609375, -0.003566741943359375, -0.0004754066467285156, -0.020233154296875, -0.0146484375, -0.0093994140625, 0.0245361328125, -0.0174560546875, -0.00913238525390625, 0.035552978515625, -0.011810302734375, -0.006092071533203125, -0.00693511962890625, -0.045501708984375, -0.04559326171875, -0.004650115966796875, 0.052001953125, 0.050628662109375, -0.00743865966796875, -0.00580596923828125, -0.007595062255859375, 0.0037441253662109375, 0.0299530029296875, -0.01092529296875, -0.0252838134765625, 0.0229034423828125, 0.025177001953125, 0.0258331298828125, -0.0007457733154296875, -0.042694091796875, -0.022247314453125, -0.029327392578125, 0.0024204254150390625, 0.0013065338134765625, 0.05499267578125, -0.058349609375, 0.0277099609375, -0.03253173828125, 0.037994384765625, -0.042999267578125, 0.0285186767578125, 0.041961669921875, 0.058319091796875, -0.039642333984375, -0.030853271484375, -0.0276031494140625, -0.04669189453125, -0.037628173828125, -0.0247802734375, -0.061248779296875, 0.01502227783203125, 0.00002205371856689453, 0.016021728515625, -0.011322021484375, -0.0025234222412109375, -0.01134490966796875, 0.0248565673828125, 0.00811004638671875, 0.0290069580078125, 0.0203094482421875, -0.0268707275390625, 0.01279449462890625, 0.01216888427734375, 0.0147552490234375, -0.0233917236328125, -0.0322265625, -0.0272369384765625, 0.00722503662109375, 0.010406494140625, -0.0199127197265625, -0.0207061767578125, -0.0016717910766601562, -0.0032863616943359375, 0.06402587890625, -0.0015430450439453125, -0.062164306640625, 0.00421142578125, 0.002201080322265625, -0.03955078125, 0.039031982421875, 0.033782958984375, -0.07318115234375, -0.00724029541015625, -0.044281005859375, 0.0140380859375, 0.016571044921875, 0.04388427734375, -0.0190277099609375, -0.03741455078125, 0.0156707763671875, 0.0158538818359375, -0.0255126953125, 0.026947021484375, 0.061920166015625, 0.0055999755859375, 0.041595458984375, 0.0278167724609375, 0.01203155517578125, 0.021331787109375, 0.01515960693359375, 0.049957275390625, -0.00208282470703125, 0.10028076171875, 0.0121002197265625, -0.01497650146484375, 0.07452392578125, -0.04632568359375, 0.037322998046875, 0.0206756591796875, 0.040283203125, -0.08282470703125, 0.04302978515625, 0.010284423828125, -0.0235748291015625, 0.03192138671875, -0.0078582763671875, -0.005573272705078125, -0.0177001953125, -0.004192352294921875, 0.01016998291015625, -0.03375244140625, -0.019317626953125, -0.012451171875, 0.0022430419921875, -0.009368896484375, -0.00478363037109375, -0.00890350341796875, -0.06451416015625, -0.0100555419921875, 0.052398681640625, -0.0143890380859375, -0.00033283233642578125, -0.0212860107421875, 0.012847900390625, -0.0153350830078125, -0.0289306640625, 0.0169677734375, -0.05352783203125, 0.01302337646484375, 0.04351806640625, 0.022552490234375, 0.033477783203125, 0.0231475830078125, 0.0011301040649414062, 0.00738525390625, -0.014678955078125, 0.0166168212890625, 0.024322509765625, -0.0311737060546875, 0.018798828125, 0.054412841796875, -0.0166778564453125, 0.01522064208984375, 0.0191802978515625, -0.046844482421875, -0.037017822265625, -0.031829833984375, 0.1409912109375, -0.026336669921875, -0.032501220703125, 0.0048065185546875, -0.0090179443359375, -0.01425933837890625, -0.002410888671875, 0.0260467529296875, -0.02081298828125, 0.039764404296875, -0.004970550537109375, 0.061309814453125, 0.0208892822265625, 0.00444793701171875, -0.093017578125, 0.08837890625, 0.03289794921875, 0.0221710205078125, -0.03125, 0.041839599609375, -0.022369384765625, 0.00804901123046875, -0.0306243896484375, 0.06549072265625, -0.006717681884765625, 0.0740966796875, 0.003101348876953125, -0.002010345458984375, 0.057403564453125, 0.0208282470703125, 0.1103515625, 0.02899169921875, 0.0000355839729309082, 0.004253387451171875, 0.048309326171875, -0.030242919921875, -0.0667724609375, 0.055999755859375, 0.03521728515625, 0.00688934326171875, 0.0016336441040039062, 0.006290435791015625, 0.0504150390625, -0.07672119140625, -0.01593017578125, 0.048828125, -0.01064300537109375, -0.020263671875, 0.0174407958984375, 0.01031494140625, -0.0152435302734375, -0.00020265579223632812, 0.00557708740234375, -0.0443115234375, 0.0160980224609375, 0.01995849609375, 0.042327880859375, -0.022308349609375, -0.00991058349609375, -0.0081024169921875, 0.044464111328125, 0.005207061767578125, 0.0308685302734375, -0.0015659332275390625, 0.023406982421875, 0.041595458984375, -0.057830810546875, 0.005680084228515625, 0.01219940185546875, -0.03594970703125, 0.00617218017578125, -0.01468658447265625, 0.0227813720703125, -0.04644775390625, -0.0133056640625, 0.00003927946090698242, 0.006694793701171875, -0.01346588134765625, -0.065185546875, 0.01308441162109375, 0.0034847259521484375, -0.00909423828125, 0.0411376953125, 0.0010280609130859375, -0.0255889892578125, 0.0406494140625, -0.01177978515625, -0.03106689453125, -0.01210784912109375, 0.006481170654296875, -0.0068206787109375, 0.00872802734375, 0.027984619140625, -0.01739501953125, -0.038543701171875, 0.0614013671875, 0.00583648681640625, 0.01503753662109375, -0.02252197265625, 0.05206298828125, 0.0001608133316040039, 0.0017175674438476562, -0.01355743408203125, 0.0067291259765625, -0.006931304931640625, 0.027618408203125, -0.058929443359375, -0.035797119140625, 0.034698486328125, 0.046783447265625, -0.00156402587890625, 0.00400543212890625, 0.002140045166015625, 0.03863525390625, 0.004215240478515625, -0.00775146484375, 0.050140380859375, -0.011383056640625, -0.007724761962890625, -0.040435791015625, 0.0094451904296875, 0.005077362060546875, -0.00542449951171875, -0.0012998580932617188, 0.00707244873046875, 0.02154541015625, -0.013519287109375, 0.04541015625, -0.0019197463989257812, -0.0163726806640625, 0.026031494140625, -0.03240966796875, 0.0726318359375, -0.0036487579345703125, -0.04510498046875, -0.004001617431640625, -0.02392578125, -0.0214996337890625, 0.01898193359375, 0.033416748046875, -0.0093231201171875, 0.0154571533203125, 0.0263824462890625, -0.00368499755859375, 0.00470733642578125, -0.0289154052734375, 0.04229736328125, 0.022979736328125, -0.01026153564453125, 0.0217132568359375, -0.0002244710922241211, -0.0192108154296875, -0.008270263671875, 0.04364013671875, 0.01959228515625, 0.06298828125, -0.023284912109375, 0.03314208984375, -0.0186004638671875, -0.01378631591796875, -0.0186767578125, -0.03411865234375, 0.0241851806640625, 0.010833740234375, -0.00921630859375, -0.01210784912109375, -0.04266357421875, 0.087646484375, -0.005496978759765625, 0.0232391357421875, 0.053619384765625, -0.003406524658203125, -0.0238494873046875, 0.0177154541015625, 0.052093505859375, -0.01080322265625, -0.05328369140625, -0.060821533203125, -0.015716552734375, 0.0216827392578125, 0.034759521484375, -0.00089263916015625, 0.0273895263671875, 0.03582763671875, -0.031005859375, 0.0233612060546875, -0.035980224609375, 0.006206512451171875, 0.0274810791015625, 0.0789794921875, -0.05426025390625, -0.002361297607421875, -0.0216522216796875, 0.0018415451049804688, -0.0011873245239257812, 0.07318115234375, -0.0106201171875, -0.0195159912109375, 0.00033473968505859375, -0.03411865234375, 0.0011157989501953125, -0.060821533203125, -0.0196990966796875, 0.024383544921875, 0.01294708251953125, -0.001346588134765625, -0.002574920654296875, -0.0159149169921875, -0.046783447265625, -0.0115814208984375, -0.00421905517578125, -0.02545166015625, -0.051849365234375, -0.01551055908203125, -0.0145721435546875, 0.006591796875, -0.016632080078125, -0.0262298583984375, 0.00020575523376464844, -0.0153045654296875, 0.03448486328125, -0.043975830078125, -0.0225067138671875, -0.01233673095703125, -0.0171661376953125, -0.04962158203125, -0.02276611328125, -0.0521240234375, 0.0102691650390625, -0.0261993408203125, 0.0302734375, 0.053924560546875, -0.04705810546875, -0.037933349609375, 0.06597900390625, 0.06121826171875, 0.10626220703125, 0.031494140625, -0.00940704345703125, 0.010040283203125, -0.001800537109375, -0.01338958740234375, -0.05352783203125, 0.001789093017578125, -0.031982421875, -0.01007080078125, -0.0263519287109375, -0.0055389404296875, -0.0242767333984375, -0.057647705078125, -0.044403076171875, 0.06219482421875, -0.00603485107421875, -0.0137786865234375, -0.008087158203125, -0.0135040283203125, -0.019256591796875, 0.00922393798828125, -0.0092926025390625, 0.0005879402160644531, -0.0186920166015625, 0.02374267578125, 0.00534820556640625, 0.038330078125, -0.006732940673828125, -0.0083770751953125, 0.01776123046875, 0.033966064453125, 0.03204345703125, -0.00406646728515625, 0.034698486328125, -0.0130462646484375, -0.004756927490234375, 0.0303192138671875, -0.05670166015625, -0.103271484375, -0.04644775390625, -0.031951904296875, -0.00861358642578125, 0.026397705078125, 0.00893402099609375, 0.0300445556640625, 0.003204345703125, 0.046783447265625, -0.01036834716796875, -0.0313720703125, 0.01445770263671875, -0.004833221435546875, -0.01001739501953125, -0.0170745849609375, 0.0001976490020751953, -0.0245819091796875, -0.010650634765625, -0.0255126953125, -0.01251983642578125, -0.0007343292236328125, 0.01090240478515625, -0.0208587646484375, -0.0139007568359375, 0.0033435821533203125, -0.005359649658203125, -0.047943115234375, -0.06396484375, 0.099609375, -0.0567626953125, -0.00930023193359375, -0.0034809112548828125, 0.035308837890625, 0.04327392578125, -0.019378662109375, -0.0159912109375, 0.04180908203125, -0.05059814453125, -0.00223541259765625, 0.004268646240234375, 0.0350341796875, -0.0300750732421875, 0.00783538818359375, -0.00888824462890625, 0.023590087890625, -0.0013303756713867188, 0.011016845703125, -0.0274810791015625, 0.05096435546875, 0.0019140243530273438, 0.052337646484375, 0.00992584228515625, -0.038055419921875, -0.03759765625, 0.07061767578125, 0.0021076202392578125, -0.04052734375, 0.0016231536865234375, -0.01222991943359375, 0.018402099609375, 0.047882080078125, 0.0023708343505859375, 0.0242462158203125, -0.00693511962890625, -0.035858154296875, -0.004344940185546875, -0.0104827880859375 ]
2a6b997b07bcf6c65d2c08a5b12676921e67b7e1
Wordpress Stackexchange Q: Call to undefined function nocache_headers() After updating a Wordpress, or merely doing something minor like attempting to deactivate a plugin, the site might get occasionally get stuck in a non-functional state where it merely outputs an error message like the following: Fatal error: Call to undefined function nocache_headers() in /wp-admin/admin.php What might be the cause for this happening? A: There were wp files in the web root which had file size of 0 bytes. Uploading proper copies from the zip file resolved the problem. The same cause of the problem has occurred to me quite a few times in the past, but I had forgotten it.
Q: Call to undefined function nocache_headers() After updating a Wordpress, or merely doing something minor like attempting to deactivate a plugin, the site might get occasionally get stuck in a non-functional state where it merely outputs an error message like the following: Fatal error: Call to undefined function nocache_headers() in /wp-admin/admin.php What might be the cause for this happening? A: There were wp files in the web root which had file size of 0 bytes. Uploading proper copies from the zip file resolved the problem. The same cause of the problem has occurred to me quite a few times in the past, but I had forgotten it.
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:426917", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76487" }
[ 0.03997802734375, 0.00809478759765625, -0.00809478759765625, -0.036834716796875, 0.005710601806640625, -0.01235198974609375, 0.006214141845703125, -0.03814697265625, 0.02935791015625, 0.0222625732421875, -0.057403564453125, -0.00579833984375, -0.00421142578125, -0.00583648681640625, -0.0333251953125, -0.020477294921875, 0.0406494140625, -0.00406646728515625, 0.055633544921875, 0.01377105712890625, 0.0025310516357421875, 0.050079345703125, 0.01320648193359375, 0.015533447265625, -0.0239715576171875, -0.002010345458984375, 0.05828857421875, -0.0282745361328125, -0.036285400390625, -0.05706787109375, -0.01110076904296875, 0.06280517578125, 0.0275726318359375, 0.046478271484375, -0.0743408203125, -0.0033092498779296875, -0.027862548828125, 0.03863525390625, -0.0037746429443359375, 0.0202484130859375, 0.026641845703125, 0.0072174072265625, 0.02093505859375, 0.038848876953125, -0.033905029296875, -0.015838623046875, 0.00464630126953125, -0.01239776611328125, 0.0027866363525390625, 0.02105712890625, -0.00786590576171875, -0.0303192138671875, -0.0011749267578125, -0.006984710693359375, -0.003429412841796875, -0.044647216796875, 0.027801513671875, 0.02105712890625, 0.018890380859375, -0.00811004638671875, -0.0396728515625, 0.0215606689453125, 0.00313568115234375, -0.028961181640625, 0.004474639892578125, -0.0092010498046875, 0.01163482666015625, -0.0019235610961914062, -0.053375244140625, 0.0218963623046875, 0.0533447265625, -0.036590576171875, -0.0083770751953125, 0.048309326171875, 0.0250091552734375, -0.095703125, 0.0487060546875, -0.003063201904296875, -0.00704193115234375, 0.08203125, 0.028564453125, 0.0158538818359375, -0.04046630859375, -0.004924774169921875, 0.01441192626953125, 0.0166778564453125, -0.005458831787109375, -0.0207977294921875, -0.06378173828125, -0.003505706787109375, -0.047821044921875, -0.030914306640625, -0.052642822265625, -0.01222991943359375, -0.01412200927734375, -0.00359344482421875, 0.0081634521484375, 0.051910400390625, -0.0426025390625, 0.00849151611328125, -0.0299224853515625, -0.020233154296875, 0.039520263671875, -0.052764892578125, 0.0007171630859375, 0.025909423828125, -0.0196685791015625, -0.0021648406982421875, 0.0216217041015625, 0.04107666015625, -0.004383087158203125, -0.036102294921875, -0.014373779296875, -0.05987548828125, 0.01500701904296875, 0.03997802734375, -0.0190277099609375, 0.037078857421875, 0.0244293212890625, 0.01520538330078125, -0.0132293701171875, -0.01000213623046875, -0.01511383056640625, -0.0013370513916015625, 0.0015745162963867188, -0.0262451171875, -0.0180511474609375, 0.025115966796875, -0.004276275634765625, 0.0059356689453125, -0.01236724853515625, 0.0325927734375, 0.050262451171875, -0.00949859619140625, -0.027099609375, -0.01611328125, 0.056396484375, -0.0005636215209960938, -0.0205841064453125, 0.0014715194702148438, 0.0238800048828125, -0.007404327392578125, -0.04547119140625, -0.031951904296875, 0.03558349609375, 0.002899169921875, 0.0179595947265625, 0.025299072265625, 0.0284881591796875, -0.0301666259765625, 0.00499725341796875, 0.006015777587890625, 0.0361328125, -0.02276611328125, -0.0240936279296875, -0.03326416015625, 0.00037598609924316406, -0.02154541015625, -0.024871826171875, -0.0225372314453125, -0.003879547119140625, -0.040191650390625, -0.00522613525390625, -0.0279693603515625, -0.050933837890625, 0.0291748046875, -0.0111846923828125, -0.004825592041015625, 0.032928466796875, 0.0072021484375, 0.033294677734375, -0.0107574462890625, 0.028076171875, 0.0294952392578125, 0.003734588623046875, 0.02069091796875, 0.01335906982421875, 0.0011081695556640625, 0.00978851318359375, 0.0261993408203125, -0.01165008544921875, -0.023101806640625, 0.00959014892578125, -0.012420654296875, -0.06402587890625, 0.047149658203125, 0.0109100341796875, 0.0689697265625, 0.006824493408203125, 0.00803375244140625, 0.04901123046875, 0.0196075439453125, -0.0100250244140625, 0.0208587646484375, -0.034393310546875, -0.0225372314453125, 0.0006313323974609375, 0.021453857421875, -0.0228424072265625, -0.0012464523315429688, 0.0657958984375, 0.01708984375, -0.020263671875, -0.0350341796875, -0.1009521484375, 0.005519866943359375, -0.0264434814453125, 0.020355224609375, -0.007427215576171875, 0.043731689453125, 0.021575927734375, 0.0007357597351074219, -0.02410888671875, -0.0036144256591796875, -0.0101470947265625, -0.0281982421875, -0.01007843017578125, 0.064697265625, 0.0160369873046875, 0.0726318359375, -0.01476287841796875, -0.041351318359375, -0.01100921630859375, -0.039215087890625, 0.0023975372314453125, 0.0254974365234375, -0.0274200439453125, 0.02142333984375, -0.00390625, 0.0246124267578125, 0.0279541015625, 0.029022216796875, 0.005367279052734375, 0.061431884765625, -0.01357269287109375, -0.0243682861328125, -0.055938720703125, -0.054107666015625, 0.006969451904296875, 0.05194091796875, 0.04058837890625, 0.039306640625, 0.00875091552734375, 0.0264434814453125, 0.0526123046875, -0.01189422607421875, 0.0215911865234375, -0.00232696533203125, -0.01319122314453125, -0.0080108642578125, 0.043975830078125, 0.000774383544921875, 0.0252838134765625, 0.007701873779296875, 0.01458740234375, 0.036376953125, 0.0025234222412109375, -0.0341796875, 0.019500732421875, -0.0288848876953125, 0.031524658203125, -0.024993896484375, -0.044708251953125, 0.022186279296875, 0.0196075439453125, -0.040740966796875, 0.0035400390625, -0.003559112548828125, 0.00405120849609375, -0.0166168212890625, 0.0255889892578125, -0.063232421875, -0.002044677734375, 0.0257415771484375, 0.0465087890625, 0.051483154296875, -0.044342041015625, -0.01177978515625, 0.0194244384765625, 0.035888671875, -0.008056640625, 0.03369140625, -0.006412506103515625, -0.004070281982421875, -0.0075836181640625, 0.0009531974792480469, 0.01270294189453125, -0.0055389404296875, -0.0023822784423828125, 0.0070343017578125, 0.034393310546875, 0.000789642333984375, -0.044586181640625, 0.046356201171875, -0.03070068359375, -0.0277099609375, 0.050445556640625, -0.0222625732421875, -0.0092620849609375, 0.0189361572265625, 0.04119873046875, 0.048919677734375, 0.0305938720703125, -0.022369384765625, 0.018096923828125, 0.04107666015625, 0.03076171875, 0.00494384765625, 0.00675201416015625, 0.03363037109375, -0.05194091796875, 0.0098724365234375, 0.031951904296875, 0.057098388671875, -0.006656646728515625, -0.038482666015625, -0.01397705078125, 0.033843994140625, -0.1195068359375, -0.1395263671875, -0.06903076171875, 0.0000635385513305664, 0.0100860595703125, 0.024017333984375, 0.01480865478515625, 0.0104217529296875, 0.022918701171875, 0.01287078857421875, 0.0298004150390625, 0.001636505126953125, -0.06231689453125, -0.01326751708984375, -0.0743408203125, -0.0179901123046875, -0.01416015625, 0.0092010498046875, -0.0171356201171875, 0.037445068359375, -0.019866943359375, -0.06768798828125, -0.0364990234375, -0.0219879150390625, -0.006999969482421875, -0.0180816650390625, -0.0213165283203125, -0.020477294921875, 0.005260467529296875, 0.005649566650390625, -0.01763916015625, -0.0162353515625, 0.0227508544921875, -0.0227813720703125, -0.004215240478515625, -0.055572509765625, -0.0086517333984375, 0.041229248046875, 0.001804351806640625, -0.08795166015625, 0.003559112548828125, -0.0872802734375, -0.0193634033203125, 0.0157928466796875, -0.03961181640625, 0.0188446044921875, 0.0341796875, -0.050018310546875, 0.0082244873046875, -0.0289459228515625, -0.04638671875, -0.0207061767578125, -0.0196685791015625, -0.046783447265625, 0.06561279296875, -0.0005512237548828125, 0.00019168853759765625, 0.034332275390625, 0.053314208984375, 0.005035400390625, 0.00531768798828125, 0.0225372314453125, 0.0184173583984375, 0.00817108154296875, -0.0188446044921875, -0.05194091796875, 0.00521087646484375, 0.01129913330078125, -0.060943603515625, 0.0177154541015625, -0.0192413330078125, -0.0009016990661621094, -0.0155181884765625, 0.03509521484375, 0.0205535888671875, -0.0305023193359375, -0.0004608631134033203, 0.0165252685546875, -0.040771484375, -0.0283203125, 0.018707275390625, -0.004146575927734375, -0.0316162109375, -0.0005960464477539062, -0.014007568359375, -0.00555419921875, 0.004405975341796875, 0.01110076904296875, 0.020751953125, -0.041717529296875, 0.007350921630859375, -0.009979248046875, -0.0223236083984375, 0.0127410888671875, -0.00970458984375, -0.031707763671875, 0.01023101806640625, -0.0216217041015625, -0.0904541015625, -0.00887298583984375, -0.032470703125, 0.05474853515625, 0.0141143798828125, -0.019500732421875, -0.01922607421875, 0.03216552734375, 0.01271820068359375, 0.0268402099609375, -0.031219482421875, -0.0207061767578125, -0.033355712890625, -0.0230255126953125, -0.0014781951904296875, -0.022674560546875, -0.0015268325805664062, 0.01497650146484375, -0.02838134765625, 0.0238037109375, 0.014434814453125, -0.01476287841796875, 0.052093505859375, -0.048004150390625, -0.0364990234375, -0.05230712890625, 0.0206146240234375, 0.027587890625, -0.033447265625, 0.058929443359375, -0.051422119140625, 0.00423431396484375, 0.01605224609375, 0.01068878173828125, 0.0021724700927734375, 0.018524169921875, 0.05987548828125, 0.01375579833984375, -0.0236968994140625, -0.024139404296875, 0.00023353099822998047, 0.028228759765625, 0.00589752197265625, 0.0162506103515625, -0.024871826171875, -0.0238037109375, 0.07098388671875, 0.002429962158203125, -0.00604248046875, -0.027252197265625, 0.047760009765625, 0.0192413330078125, -0.030548095703125, 0.0261077880859375, 0.010101318359375, -0.007457733154296875, 0.0253753662109375, 0.004093170166015625, 0.023468017578125, -0.03607177734375, -0.0224456787109375, 0.0242919921875, -0.036590576171875, -0.016021728515625, -0.048614501953125, 0.025665283203125, -0.03338623046875, 0.04205322265625, 0.043243408203125, -0.0095977783203125, 0.046630859375, -0.018402099609375, 0.0103912353515625, -0.01751708984375, 0.00762176513671875, -0.031768798828125, 0.048980712890625, -0.0289764404296875, 0.014129638671875, -0.018768310546875, -0.01178741455078125, 0.039031982421875, 0.01556396484375, -0.04486083984375, 0.052734375, 0.000019252300262451172, 0.007740020751953125, 0.0286712646484375, -0.0050201416015625, 0.040069580078125, -0.03704833984375, -0.0005331039428710938, 0.0019006729125976562, -0.034942626953125, -0.033172607421875, -0.037750244140625, 0.0635986328125, 0.023468017578125, 0.01203155517578125, 0.045562744140625, 0.057220458984375, 0.044647216796875, 0.032684326171875, -0.02642822265625, -0.02618408203125, 0.0189056396484375, 0.03955078125, 0.0355224609375, -0.01381683349609375, -0.032958984375, 0.03643798828125, 0.031951904296875, -0.037750244140625, -0.0009741783142089844, 0.026336669921875, 0.0305938720703125, 0.018218994140625, -0.0135498046875, 0.0157318115234375, -0.0126800537109375, 0.0109100341796875, 0.048553466796875, -0.009124755859375, -0.056427001953125, -0.03533935546875, -0.0032405853271484375, 0.050750732421875, -0.041290283203125, -0.009246826171875, -0.004016876220703125, -0.029876708984375, 0.025360107421875, -0.0234375, -0.0174102783203125, 0.00756072998046875, 0.01030731201171875, -0.0042724609375, -0.04168701171875, -0.0167694091796875, 0.018402099609375, 0.0237274169921875, -0.0322265625, -0.0262908935546875, 0.0423583984375, -0.012664794921875, 0.004001617431640625, -0.03582763671875, 0.005054473876953125, 0.034210205078125, 0.00733184814453125, 0.055816650390625, -0.013885498046875, -0.07623291015625, -0.00586700439453125, -0.051605224609375, -0.0240020751953125, -0.05462646484375, -0.0188751220703125, -0.0701904296875, 0.00739288330078125, 0.007381439208984375, 0.0274200439453125, -0.0252838134765625, -0.04449462890625, 0.004070281982421875, 0.014892578125, 0.03143310546875, 0.043670654296875, -0.03118896484375, 0.029205322265625, 0.032623291015625, 0.00916290283203125, 0.00048065185546875, 0.005023956298828125, 0.00951385498046875, -0.003551483154296875, 0.016387939453125, 0.004070281982421875, -0.013824462890625, -0.0288543701171875, 0.0214996337890625, -0.0200653076171875, 0.03289794921875, -0.01328277587890625, -0.0016345977783203125, 0.00946044921875, 0.0087738037109375, -0.03369140625, -0.0021800994873046875, -0.01435089111328125, -0.01184844970703125, -0.0225982666015625, -0.028472900390625, 0.0029773712158203125, -0.0020503997802734375, -0.0294342041015625, 0.049285888671875, -0.0208892822265625, 0.02349853515625, 0.00720977783203125, -0.0850830078125, 0.0782470703125, 0.08929443359375, 0.0004665851593017578, 0.038238525390625, 0.0169830322265625, 0.000896453857421875, 0.01904296875, 0.00769805908203125, 0.0418701171875, -0.0268402099609375, 0.07861328125, 0.0033416748046875, -0.0210113525390625, 0.044769287109375, -0.0335693359375, 0.018890380859375, 0.007205963134765625, 0.052490234375, -0.040863037109375, 0.0272369384765625, 0.015777587890625, -0.0219573974609375, -0.007671356201171875, -0.0166778564453125, -0.0302886962890625, -0.073974609375, 0.05755615234375, -0.022979736328125, -0.02838134765625, -0.021148681640625, -0.0138092041015625, -0.0182952880859375, -0.0185394287109375, -0.0008287429809570312, -0.0105133056640625, -0.019805908203125, 0.01349639892578125, 0.0185546875, -0.00794219970703125, 0.00972747802734375, 0.049896240234375, -0.00489044189453125, -0.0020275115966796875, -0.0048828125, 0.0100250244140625, 0.008270263671875, -0.0340576171875, -0.0238800048828125, 0.0433349609375, 0.0335693359375, 0.0555419921875, 0.007293701171875, -0.01555633544921875, 0.02593994140625, 0.0265350341796875, 0.055084228515625, -0.03900146484375, 0.01099395751953125, 0.050933837890625, -0.037353515625, -0.0011911392211914062, 0.0103302001953125, -0.0138397216796875, -0.007526397705078125, -0.01025390625, 0.035003662109375, -0.0125579833984375, -0.0101776123046875, 0.04351806640625, 0.025604248046875, -0.029998779296875, -0.0171661376953125, 0.067626953125, -0.059173583984375, 0.008880615234375, 0.017242431640625, 0.0382080078125, -0.034759521484375, 0.01479339599609375, -0.048004150390625, 0.070556640625, 0.022247314453125, 0.0064239501953125, 0.0052032470703125, 0.03326416015625, -0.0350341796875, 0.00099945068359375, -0.028961181640625, 0.0611572265625, -0.0389404296875, 0.0565185546875, -0.07666015625, 0.00615692138671875, -0.0008502006530761719, 0.032379150390625, -0.01727294921875, -0.0006957054138183594, 0.00649261474609375, 0.0194549560546875, 0.0271148681640625, 0.01036834716796875, 0.0018873214721679688, 0.0265350341796875, -0.0086669921875, -0.0236663818359375, 0.00206756591796875, 0.010162353515625, 0.045196533203125, -0.06231689453125, -0.031951904296875, -0.004047393798828125, 0.0065460205078125, 0.0010318756103515625, -0.006500244140625, 0.00545501708984375, -0.049896240234375, 0.01055908203125, 0.013397216796875, 0.06610107421875, -0.003265380859375, -0.0099029541015625, -0.0379638671875, -0.056793212890625, 0.01336669921875, -0.026702880859375, 0.0197601318359375, -0.0229949951171875, -0.036529541015625, -0.0059661865234375, 0.002681732177734375, -0.0002770423889160156, -0.050048828125, -0.046661376953125, 0.007328033447265625, -0.005466461181640625, 0.0648193359375, 0.0426025390625, 0.034820556640625, -0.028656005859375, -0.01013946533203125, 0.0457763671875, 0.08807373046875, -0.032745361328125, -0.043121337890625, -0.00446319580078125, 0.0099334716796875, 0.039276123046875, -0.0146331787109375, 0.0195159912109375, -0.0172882080078125, 0.0297393798828125, 0.00930023193359375, -0.00926971435546875, 0.034210205078125, -0.0278472900390625, 0.0241546630859375, 0.03814697265625, 0.02288818359375, 0.013397216796875, -0.0262603759765625, 0.0068359375, -0.0036163330078125, 0.026519775390625, 0.0068206787109375, 0.01551055908203125, 0.0206451416015625, 0.0036563873291015625, -0.01389312744140625, 0.0009465217590332031, -0.01422119140625, 0.019744873046875, -0.051025390625, -0.0379638671875, 0.017181396484375, 0.04730224609375, -0.0255126953125, -0.026947021484375, 0.023406982421875, 0.042755126953125, -0.060943603515625, -0.019989013671875, 0.06536865234375, -0.0162200927734375, 0.0010204315185546875, -0.03753662109375, 0.0156402587890625, -0.011199951171875, -0.004123687744140625, -0.005340576171875, 0.00290679931640625, 0.032806396484375, -0.03338623046875, -0.005817413330078125, -0.00313568115234375, -0.03948974609375, 0.018463134765625, 0.0004150867462158203, 0.028045654296875, -0.0038585662841796875, -0.030181884765625, -0.0209808349609375, -0.0469970703125, 0.031768798828125, 0.031646728515625, 0.02716064453125, 0.003459930419921875, 0.0404052734375, -0.01076507568359375, 0.01073455810546875, -0.00201416015625, -0.004978179931640625, 0.01230621337890625, 0.0129241943359375, 0.0256500244140625, 0.011749267578125, -0.036865234375, -0.03729248046875, 0.0015211105346679688, 0.033294677734375, 0.006259918212890625, 0.05181884765625, -0.006931304931640625, 0.01003265380859375, 0.0161895751953125, -0.02294921875, 0.0189361572265625, 0.045684814453125, -0.039886474609375, -0.0020694732666015625, -0.01345062255859375, -0.0166778564453125, -0.0479736328125, 0.041046142578125, 0.032806396484375, -0.006103515625, 0.00844573974609375, 0.031402587890625, 0.028228759765625, -0.00992584228515625, 0.0280609130859375, -0.0141143798828125, -0.059234619140625, -0.01102447509765625, 0.041229248046875, 0.00027751922607421875, 0.0125579833984375, -0.054290771484375, 0.00415802001953125, 0.0435791015625, -0.031982421875, 0.02301025390625, -0.01432037353515625, 0.0204620361328125, 0.0270843505859375, 0.028778076171875, -0.0072174072265625, -0.052215576171875, -0.0396728515625, 0.0036296844482421875, -0.0231170654296875, 0.00598907470703125, -0.04425048828125, 0.009765625, -0.00811767578125, 0.0172271728515625, 0.0090484619140625, -0.0194549560546875, -0.00672149658203125, 0.0251922607421875, -0.0160675048828125, -0.032928466796875, 0.017913818359375, -0.0243682861328125, -0.037750244140625, -0.012115478515625, -0.011322021484375, -0.0245361328125, -0.0211639404296875, 0.00726318359375, 0.01849365234375, 0.03985595703125, 0.00933837890625, -0.048614501953125, 0.022979736328125, -0.02923583984375, 0.02874755859375, 0.00748443603515625, -0.0250701904296875, 0.00751495361328125, 0.06402587890625, -0.01325225830078125, -0.053863525390625, -0.0239410400390625, 0.037017822265625, -0.033477783203125, -0.005626678466796875, 0.00725555419921875, 0.01355743408203125, 0.02130126953125, 0.024566650390625, -0.01641845703125, 0.0760498046875, -0.0572509765625, 0.0036945343017578125, 0.05224609375, -0.0172271728515625, -0.051483154296875, -0.049285888671875, 0.0152130126953125, -0.0582275390625, -0.02618408203125, -0.0280303955078125, 0.0164947509765625, 0.0321044921875, -0.046630859375, -0.06671142578125, 0.0318603515625, -0.005573272705078125, -0.0243072509765625, -0.09033203125, -0.0196075439453125, -0.002956390380859375, 0.006206512451171875, -0.0318603515625, -0.0239715576171875, -0.061431884765625, 0.05609130859375, 0.0305633544921875, -0.00911712646484375, 0.0362548828125, 0.01715087890625, -0.047515869140625, 0.01467132568359375, -0.0024509429931640625, 0.0163726806640625, 0.02099609375, -0.035186767578125, 0.0465087890625, 0.06207275390625, -0.00818634033203125, -0.020172119140625, 0.013336181640625, -0.07562255859375, -0.004634857177734375, 0.0088348388671875, 0.0102386474609375, -0.002197265625, 0.061279296875, 0.0020389556884765625, 0.01239776611328125, -0.0186767578125, -0.01503753662109375, -0.0140838623046875, -0.00975799560546875, -0.028778076171875, 0.0221710205078125, -0.0799560546875, -0.0177764892578125, 0.0067901611328125, -0.0105743408203125, -0.0236968994140625, -0.028472900390625, -0.02215576171875, 0.002574920654296875, 0.0239715576171875, -0.00954437255859375, 0.05267333984375, -0.046966552734375, -0.0004963874816894531, 0.006542205810546875, 0.0163421630859375, -0.01554107666015625, 0.033538818359375, -0.00832366943359375, 0.0279693603515625, -0.0175628662109375, 0.06256103515625, -0.047332763671875, 0.004974365234375, -0.0022487640380859375, 0.0200347900390625, -0.040496826171875, 0.0104522705078125, 0.025238037109375, 0.006259918212890625, -0.03533935546875, 0.01100921630859375, 0.040069580078125, 0.02996826171875, -0.038330078125, 0.040435791015625, -0.005794525146484375, -0.0203399658203125, -0.0194854736328125, 0.0439453125, 0.006214141845703125, -0.010955810546875, 0.031463623046875, -0.0246429443359375, 0.00037980079650878906, 0.027740478515625, 0.0271148681640625, -0.01328277587890625, 0.0237884521484375, -0.0279998779296875, 0.025665283203125, 0.018035888671875 ]
a51388cc25b0941f799c47e3b5be8f52ba834387
Wordpress Stackexchange Q: Add filter to blogroll widget I'm trying to add <i class="icon-ok"></i> before the content inside the <li> of the blogroll widget. I'm assuming that's done through the link_title filter, but I can't find a suitable explanation as to how. Any thoughts? A: Filter the arguments for the blogroll: add_filter( 'widget_links_args', 'wpse_76521_filter_blogroll' ); function wpse_76521_filter_blogroll( $args ) { $li_start = isset ( $args['before'] ) ? $args['before'] : '<li>'; $args['before'] = $li_start . '<i class="icon-ok"></i>'; return $args; } Explanation * *The blogroll is created by the widget class WP_Widget_Links. *This class calls wp_list_bookmarks() with some prepared widget arguments which we can filter with widget_links_args. *wp_list_bookmarks() calls _walk_bookmarks() and passes the original arguments through. *_walk_bookmarks() accepts an argument 'before' that defaults to <li>. *So we add that argument to widget_links_args in (2.) and let it fall through until it arrives in _walk_bookmarks() (4.). Alternative You could use CSS instead: .widget_links li { padding-left: 20px; background: url(path/to/icon.png) 0% 50% no-repeat transparent; }
Q: Add filter to blogroll widget I'm trying to add <i class="icon-ok"></i> before the content inside the <li> of the blogroll widget. I'm assuming that's done through the link_title filter, but I can't find a suitable explanation as to how. Any thoughts? A: Filter the arguments for the blogroll: add_filter( 'widget_links_args', 'wpse_76521_filter_blogroll' ); function wpse_76521_filter_blogroll( $args ) { $li_start = isset ( $args['before'] ) ? $args['before'] : '<li>'; $args['before'] = $li_start . '<i class="icon-ok"></i>'; return $args; } Explanation * *The blogroll is created by the widget class WP_Widget_Links. *This class calls wp_list_bookmarks() with some prepared widget arguments which we can filter with widget_links_args. *wp_list_bookmarks() calls _walk_bookmarks() and passes the original arguments through. *_walk_bookmarks() accepts an argument 'before' that defaults to <li>. *So we add that argument to widget_links_args in (2.) and let it fall through until it arrives in _walk_bookmarks() (4.). Alternative You could use CSS instead: .widget_links li { padding-left: 20px; background: url(path/to/icon.png) 0% 50% no-repeat transparent; }
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:426929", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76521" }
[ 0.08453369140625, -0.038360595703125, 0.055938720703125, -0.02227783203125, -0.005001068115234375, -0.04473876953125, 0.0694580078125, -0.0237274169921875, -0.01212310791015625, -0.010498046875, -0.044036865234375, -0.00928497314453125, -0.047637939453125, -0.01983642578125, -0.00014340877532958984, -0.06939697265625, 0.01751708984375, -0.017730712890625, 0.003025054931640625, -0.015533447265625, 0.015960693359375, -0.02490234375, 0.030853271484375, 0.011688232421875, -0.006591796875, -0.0130462646484375, 0.1207275390625, -0.00670623779296875, 0.006988525390625, -0.0008211135864257812, 0.0164642333984375, -0.05303955078125, 0.0296173095703125, 0.00839996337890625, -0.01141357421875, 0.0214691162109375, -0.00740814208984375, 0.005908966064453125, 0.00972747802734375, 0.005146026611328125, 0.0217132568359375, -0.023834228515625, -0.0692138671875, 0.031280517578125, -0.064453125, -0.00036072731018066406, -0.00860595703125, -0.0013990402221679688, 0.00571441650390625, 0.00894927978515625, 0.0126495361328125, 0.0144805908203125, 0.0180206298828125, -0.010345458984375, 0.00005817413330078125, 0.0170440673828125, -0.004856109619140625, -0.0169525146484375, 0.030548095703125, -0.007129669189453125, -0.007801055908203125, 0.0014600753784179688, 0.007598876953125, 0.00518798828125, 0.0157623291015625, -0.00798797607421875, 0.015838623046875, 0.0021457672119140625, -0.0237579345703125, 0.007747650146484375, 0.0304718017578125, -0.034332275390625, -0.0180206298828125, -0.03289794921875, -0.0286712646484375, 0.00986480712890625, -0.005359649658203125, -0.040496826171875, 0.0007090568542480469, 0.00867462158203125, 0.04315185546875, 0.01343536376953125, -0.00431060791015625, -0.002490997314453125, 0.0026187896728515625, -0.007598876953125, -0.0087432861328125, -0.0198516845703125, -0.0021305084228515625, 0.01898193359375, -0.0048828125, -0.021881103515625, 0.04791259765625, -0.0019779205322265625, -0.0241851806640625, -0.0264129638671875, -0.00168609619140625, 0.041015625, -0.0189971923828125, 0.0241851806640625, 0.01111602783203125, -0.034423828125, 0.043487548828125, -0.04449462890625, -0.009552001953125, 0.04437255859375, -0.0137939453125, 0.12109375, 0.0740966796875, 0.035858154296875, 0.032958984375, -0.01132965087890625, 0.017913818359375, -0.019317626953125, 0.013763427734375, -0.01934814453125, -0.0330810546875, 0.0297698974609375, 0.01555633544921875, -0.0077056884765625, -0.0206146240234375, -0.012237548828125, 0.0010623931884765625, -0.0008854866027832031, 0.052276611328125, 0.021392822265625, 0.00759124755859375, -0.002696990966796875, -0.0006699562072753906, 0.0184173583984375, -0.031890869140625, 0.026611328125, 0.0160064697265625, -0.0020923614501953125, 0.0024089813232421875, -0.02825927734375, 0.057708740234375, -0.03155517578125, -0.02044677734375, 0.039886474609375, 0.01021575927734375, -0.047088623046875, -0.054840087890625, 0.01367950439453125, 0.03472900390625, 0.018463134765625, 0.002681732177734375, -0.01239776611328125, 0.020050048828125, -0.0081024169921875, 0.0216064453125, -0.04437255859375, 0.051300048828125, 0.0150604248046875, -0.048431396484375, -0.00370025634765625, 0.023956298828125, -0.029937744140625, -0.046966552734375, -0.06622314453125, -0.03472900390625, 0.005443572998046875, 0.0231475830078125, -0.087890625, -0.059539794921875, -0.01102447509765625, -0.010009765625, 0.002010345458984375, 0.0182952880859375, -0.00638580322265625, -0.0212860107421875, -0.03668212890625, 0.014739990234375, -0.00853729248046875, -0.0221405029296875, 0.044097900390625, 0.016815185546875, 0.026275634765625, 0.0241546630859375, 0.0109100341796875, -0.0200958251953125, -0.046173095703125, 0.10491943359375, -0.0506591796875, -0.040191650390625, 0.006610870361328125, 0.0187835693359375, 0.08404541015625, 0.0164031982421875, 0.032989501953125, -0.011444091796875, -0.031524658203125, -0.054840087890625, 0.01082611083984375, -0.0166015625, -0.0206146240234375, 0.0341796875, -0.007045745849609375, 0.006481170654296875, 0.02978515625, 0.0265655517578125, 0.00402069091796875, 0.00984954833984375, -0.009063720703125, -0.0548095703125, 0.0158233642578125, -0.0222625732421875, 0.034698486328125, -0.002532958984375, 0.02691650390625, 0.0279541015625, 0.006038665771484375, -0.0286712646484375, 0.00598907470703125, -0.012939453125, -0.0033321380615234375, -0.01128387451171875, 0.031494140625, -0.005504608154296875, 0.0202484130859375, -0.01097869873046875, -0.052093505859375, -0.0005254745483398438, 0.01239013671875, 0.072509765625, -0.03204345703125, -0.0226898193359375, -0.0439453125, 0.0093841552734375, -0.0094451904296875, -0.09814453125, 0.0870361328125, 0.037933349609375, 0.03631591796875, -0.02301025390625, -0.0029430389404296875, -0.0328369140625, -0.055572509765625, 0.0006823539733886719, 0.045623779296875, 0.0247039794921875, 0.046234130859375, 0.010894775390625, 0.03363037109375, 0.01456451416015625, -0.052947998046875, 0.0218963623046875, -0.016448974609375, -0.004146575927734375, 0.0177001953125, -0.00251007080078125, 0.0008411407470703125, 0.034332275390625, 0.027618408203125, 0.0228729248046875, 0.015716552734375, 0.00811767578125, -0.0009927749633789062, -0.0234222412109375, 0.0038928985595703125, 0.0036029815673828125, -0.026275634765625, -0.047760009765625, -0.005283355712890625, -0.004085540771484375, 0.026641845703125, 0.023590087890625, 0.016387939453125, -0.035858154296875, 0.001758575439453125, 0.0360107421875, 0.053924560546875, 0.0033245086669921875, 0.01242828369140625, 0.034698486328125, -0.00920867919921875, 0.0011568069458007812, -0.00591278076171875, -0.0088043212890625, 0.0011510848999023438, 0.008544921875, 0.037811279296875, 0.0521240234375, 0.0005970001220703125, -0.0190582275390625, -0.028350830078125, 0.04046630859375, 0.005214691162109375, -0.015655517578125, -0.042510986328125, -0.005718231201171875, -0.01036834716796875, -0.0250244140625, 0.020904541015625, 0.0213470458984375, -0.04766845703125, -0.0251007080078125, -0.0097503662109375, 0.03375244140625, -0.04815673828125, 0.045654296875, 0.049102783203125, -0.041351318359375, 0.005611419677734375, 0.0020847320556640625, -0.00550079345703125, -0.004482269287109375, 0.01995849609375, -0.015594482421875, -0.032562255859375, -0.004302978515625, 0.05010986328125, 0.005641937255859375, 0.008544921875, 0.00850677490234375, -0.01953125, -0.0172119140625, -0.00565338134765625, -0.031494140625, -0.0174102783203125, 0.004566192626953125, -0.0902099609375, -0.024078369140625, 0.01611328125, -0.055023193359375, -0.00791168212890625, 0.05755615234375, 0.007061004638671875, -0.052886962890625, -0.0246429443359375, -0.0648193359375, -0.05511474609375, -0.053375244140625, 0.082763671875, -0.0029163360595703125, 0.044891357421875, 0.0205841064453125, 0.00984954833984375, 0.00905609130859375, -0.01538848876953125, 0.03912353515625, 0.0311279296875, -0.00466156005859375, -0.0025310516357421875, -0.02099609375, -0.0043487548828125, -0.019989013671875, -0.014404296875, 0.0697021484375, 0.0207061767578125, -0.0223388671875, 0.0224151611328125, -0.007282257080078125, -0.0146942138671875, 0.01451873779296875, 0.0005779266357421875, 0.0023899078369140625, 0.0183868408203125, 0.019195556640625, -0.0289154052734375, 0.00460052490234375, 0.0009379386901855469, -0.0228118896484375, -0.018646240234375, 0.00318145751953125, -0.0197906494140625, 0.006015777587890625, -0.0178985595703125, -0.004039764404296875, -0.00885772705078125, 0.0121307373046875, -0.034515380859375, 0.0268402099609375, 0.0081024169921875, 0.0111083984375, -0.0035533905029296875, 0.033843994140625, -0.00908660888671875, -0.0181121826171875, 0.010040283203125, 0.01416015625, 0.0024242401123046875, 0.005397796630859375, -0.035491943359375, 0.01275634765625, 0.03125, -0.01467132568359375, 0.0182037353515625, -0.01348876953125, -0.007549285888671875, -0.0116119384765625, 0.0291290283203125, -0.08636474609375, -0.0209503173828125, -0.014862060546875, 0.025726318359375, 0.01543426513671875, -0.0489501953125, 0.01528167724609375, -0.045074462890625, -0.12298583984375, 0.037689208984375, -0.00959014892578125, -0.01971435546875, -0.0029850006103515625, -0.0300750732421875, -0.05560302734375, -0.053253173828125, 0.0204010009765625, 0.0002422332763671875, -0.006702423095703125, 0.0235443115234375, -0.02691650390625, 0.0247650146484375, -0.0241546630859375, -0.01462554931640625, -0.062042236328125, -0.0156402587890625, -0.017242431640625, 0.06585693359375, 0.02838134765625, -0.0207366943359375, -0.0123748779296875, 0.052032470703125, 0.0033664703369140625, -0.0223541259765625, 0.02703857421875, 0.0321044921875, -0.0260162353515625, -0.0279998779296875, 0.005279541015625, -0.047698974609375, 0.005313873291015625, 0.00762939453125, -0.0760498046875, 0.00791168212890625, -0.004306793212890625, 0.0224151611328125, 0.04681396484375, -0.05010986328125, -0.051300048828125, -0.05645751953125, 0.00798797607421875, 0.040618896484375, 0.00550079345703125, 0.0384521484375, -0.072265625, -0.055206298828125, 0.01708984375, -0.033905029296875, 0.0022335052490234375, 0.00617218017578125, 0.075927734375, 0.031402587890625, -0.0010175704956054688, 0.07354736328125, -0.01380157470703125, 0.017333984375, -0.059814453125, 0.0533447265625, 0.0253143310546875, 0.003986358642578125, 0.0310821533203125, -0.045867919921875, 0.0177459716796875, 0.006526947021484375, 0.03216552734375, 0.0172882080078125, -0.0206451416015625, 0.024322509765625, 0.0277862548828125, -0.031494140625, 0.007564544677734375, 0.00716400146484375, -0.022735595703125, 0.07440185546875, 0.0269775390625, -0.01404571533203125, -0.01073455810546875, -0.01242828369140625, 0.00927734375, -0.0110626220703125, -0.0269012451171875, 0.048828125, 0.011566162109375, 0.003875732421875, -0.0144195556640625, 0.022125244140625, -0.0162200927734375, 0.018951416015625, 0.0184326171875, -0.007625579833984375, 0.0145721435546875, 0.02154541015625, -0.035064697265625, -0.01560211181640625, -0.01403045654296875, 0.06268310546875, 0.04205322265625, -0.01392364501953125, 0.0198211669921875, 0.00048804283142089844, -0.015533447265625, -0.01250457763671875, 0.0438232421875, 0.02655029296875, -0.012237548828125, -0.034271240234375, -0.0275115966796875, 0.0244903564453125, -0.01224517822265625, -0.0494384765625, 0.00971221923828125, -0.0267181396484375, 0.00841522216796875, 0.0181732177734375, 0.018585205078125, -0.031982421875, 0.021881103515625, 0.0008592605590820312, -0.0007524490356445312, 0.01007080078125, 0.00823974609375, 0.033050537109375, -0.0139007568359375, -0.0008821487426757812, -0.00560760498046875, 0.040283203125, -0.00905609130859375, 0.012969970703125, -0.00260162353515625, 0.00716400146484375, 0.015167236328125, -0.0026702880859375, 0.015380859375, -0.0134735107421875, -0.01383209228515625, 0.0022220611572265625, 0.0257415771484375, -0.013092041015625, -0.00585174560546875, 0.0091552734375, 0.0028076171875, 0.00775146484375, -0.00322723388671875, -0.0143890380859375, 0.00858306884765625, 0.00859832763671875, -0.00357818603515625, 0.004352569580078125, -0.008636474609375, -0.00531005859375, 0.021484375, -0.031646728515625, -0.0190887451171875, -0.044891357421875, 0.0152587890625, -0.0104827880859375, 0.00878143310546875, 0.030670166015625, -0.0005011558532714844, 0.08984375, -0.047943115234375, -0.0283966064453125, -0.0171661376953125, 0.0194549560546875, 0.0023708343505859375, -0.0003788471221923828, -0.0242462158203125, -0.00392913818359375, -0.035125732421875, -0.027435302734375, -0.031951904296875, -0.0231781005859375, -0.03106689453125, 0.00957489013671875, 0.02093505859375, 0.0157470703125, 0.0066375732421875, -0.0201568603515625, -0.0077362060546875, -0.0149993896484375, 0.01361083984375, -0.0146026611328125, -0.0083160400390625, 0.0374755859375, 0.00510406494140625, 0.0163726806640625, 0.0186614990234375, -0.0008015632629394531, -0.0205535888671875, -0.0101165771484375, -0.00814056396484375, -0.045440673828125, -0.005901336669921875, 0.00901031494140625, -0.05487060546875, 0.027618408203125, 0.0643310546875, -0.0051727294921875, 0.0273590087890625, 0.00928497314453125, -0.01311492919921875, -0.00377655029296875, -0.026763916015625, 0.019561767578125, 0.032928466796875, 0.05682373046875, 0.01416015625, 0.01373291015625, -0.04107666015625, 0.030120849609375, -0.051025390625, -0.009429931640625, -0.037353515625, -0.0045623779296875, -0.0655517578125, 0.060577392578125, 0.056243896484375, 0.0240936279296875, 0.04931640625, 0.007717132568359375, 0.0303497314453125, 0.012542724609375, -0.018341064453125, 0.0272064208984375, 0.023712158203125, 0.046630859375, -0.0179290771484375, 0.01062774658203125, 0.046112060546875, -0.0289306640625, 0.001739501953125, -0.034332275390625, 0.01070404052734375, 0.007198333740234375, 0.01027679443359375, -0.0222625732421875, -0.0252532958984375, 0.03314208984375, 0.010101318359375, -0.01535797119140625, 0.0292510986328125, 0.060760498046875, -0.046875, -0.021087646484375, 0.05340576171875, 0.0084228515625, 0.0083770751953125, -0.00872802734375, -0.01297760009765625, -0.004283905029296875, -0.0285491943359375, -0.0195770263671875, 0.03521728515625, -0.0047607421875, 0.01259613037109375, -0.00951385498046875, 0.0236968994140625, -0.049072265625, -0.04327392578125, -0.00003701448440551758, -0.0340576171875, -0.0211944580078125, 0.0251007080078125, -0.01377105712890625, 0.0308990478515625, 0.01345062255859375, -0.00189971923828125, 0.0228729248046875, -0.03497314453125, 0.057647705078125, 0.006038665771484375, -0.0009698867797851562, 0.0177764892578125, 0.018280029296875, -0.0164794921875, 0.0181732177734375, -0.03192138671875, -0.0105133056640625, -0.0260772705078125, -0.04071044921875, 0.078369140625, -0.016937255859375, -0.0184326171875, 0.01617431640625, 0.033294677734375, -0.01221466064453125, 0.0032825469970703125, 0.0273284912109375, -0.05657958984375, -0.058837890625, 0.0147247314453125, -0.06622314453125, -0.018768310546875, -0.039459228515625, -0.037139892578125, 0.08154296875, -0.04083251953125, 0.0187225341796875, 0.0167999267578125, 0.03594970703125, -0.0101470947265625, 0.0181884765625, -0.0447998046875, 0.029327392578125, -0.0237579345703125, 0.052398681640625, -0.051971435546875, -0.0021572113037109375, -0.0035495758056640625, 0.01332855224609375, 0.0020732879638671875, 0.0027713775634765625, -0.0206451416015625, -0.02801513671875, -0.004436492919921875, 0.04779052734375, 0.01163482666015625, 0.01259613037109375, -0.0003666877746582031, 0.057373046875, -0.0166473388671875, -0.052490234375, 0.0323486328125, -0.0833740234375, -0.02313232421875, 0.0214691162109375, 0.005859375, 0.007480621337890625, -0.003368377685546875, 0.04681396484375, 0.0213623046875, -0.0244903564453125, -0.00632476806640625, -0.040008544921875, 0.0108489990234375, 0.06854248046875, 0.046844482421875, -0.01093292236328125, -0.06427001953125, -0.01513671875, 0.034912109375, -0.002956390380859375, 0.0239105224609375, 0.063720703125, 0.027587890625, 0.0132293701171875, 0.023162841796875, 0.022064208984375, 0.0103759765625, -0.0012226104736328125, 0.0550537109375, 0.014434814453125, 0.0168609619140625, -0.022125244140625, 0.029937744140625, -0.014312744140625, 0.03436279296875, -0.046875, -0.035125732421875, 0.007785797119140625, -0.0113067626953125, -0.0005879402160644531, 0.004608154296875, 0.0262451171875, -0.08245849609375, -0.03912353515625, -0.029449462890625, -0.01093292236328125, 0.01419830322265625, 0.0110626220703125, -0.00728607177734375, -0.0036334991455078125, -0.0010786056518554688, -0.00250244140625, -0.022186279296875, -0.0247344970703125, 0.01175689697265625, 0.040924072265625, 0.01462554931640625, 0.022064208984375, 0.00545501708984375, -0.0098419189453125, -0.0182647705078125, -0.002597808837890625, 0.01001739501953125, 0.018951416015625, -0.0177764892578125, -0.001567840576171875, -0.01122283935546875, 0.030364990234375, 0.04693603515625, 0.01107025146484375, 0.017333984375, -0.0030498504638671875, 0.0059051513671875, 0.01666259765625, 0.042999267578125, -0.006664276123046875, 0.019927978515625, -0.048431396484375, 0.0810546875, 0.037841796875, 0.029693603515625, -0.0081787109375, 0.005191802978515625, 0.062744140625, -0.014984130859375, 0.0193634033203125, -0.0009198188781738281, -0.0186767578125, -0.0002503395080566406, 0.0103759765625, 0.010467529296875, 0.00954437255859375, -0.12841796875, -0.031951904296875, 0.01155853271484375, -0.088134765625, 0.049224853515625, 0.058013916015625, -0.05902099609375, 0.0035419464111328125, -0.01190185546875, -0.01198577880859375, -0.0018453598022460938, -0.0229644775390625, 0.0306854248046875, 0.00659942626953125, -0.00649261474609375, 0.01055908203125, -0.031402587890625, -0.0018177032470703125, -0.0160064697265625, 0.0174102783203125, 0.001903533935546875, 0.058258056640625, -0.01314544677734375, 0.01015472412109375, 0.0087738037109375, -0.006214141845703125, 0.01898193359375, -0.01300811767578125, 0.0106658935546875, 0.0151519775390625, 0.00005316734313964844, -0.0123138427734375, 0.0184783935546875, -0.00806427001953125, 0.047637939453125, -0.049530029296875, 0.004489898681640625, -0.055419921875, 0.0225982666015625, -0.025726318359375, 0.05181884765625, -0.041534423828125, -0.023284912109375, -0.033294677734375, -0.022918701171875, 0.01849365234375, -0.029296875, -0.0011005401611328125, 0.03717041015625, 0.0391845703125, 0.032806396484375, 0.01126861572265625, 0.01476287841796875, 0.01422119140625, 0.0257110595703125, -0.0283660888671875, -0.0107574462890625, 0.004070281982421875, -0.01800537109375, -0.0034885406494140625, 0.0061798095703125, 0.0187835693359375, -0.0193939208984375, 0.0186004638671875, 0.0294342041015625, 0.028778076171875, 0.0408935546875, -0.048675537109375, 0.0300750732421875, 0.0478515625, -0.00339508056640625, 0.0192108154296875, 0.0030727386474609375, -0.039886474609375, -0.034271240234375, -0.01117706298828125, 0.0146484375, -0.017669677734375, -0.062408447265625, -0.0902099609375, 0.0190582275390625, 0.0190887451171875, 0.02569580078125, -0.07373046875, 0.0626220703125, -0.01788330078125, 0.03424072265625, -0.0270233154296875, 0.04913330078125, -0.0278778076171875, -0.040130615234375, -0.049896240234375, -0.00925445556640625, -0.050079345703125, 0.037872314453125, -0.019683837890625, -0.01305389404296875, -0.01171875, -0.0119781494140625, 0.0048065185546875, 0.012725830078125, 0.0280609130859375, 0.043731689453125, -0.01605224609375, -0.00983428955078125, 0.035797119140625, 0.0245819091796875, -0.038299560546875, -0.08917236328125, 0.004657745361328125, -0.04974365234375, 0.0399169921875, 0.046356201171875, -0.060882568359375, -0.04449462890625, -0.04986572265625, -0.05731201171875, 0.06109619140625, 0.0152130126953125, -0.0307769775390625, -0.04150390625, 0.003063201904296875, -0.0226898193359375, 0.03424072265625, 0.006591796875, -0.0290679931640625, 0.01271820068359375, 0.03857421875, -0.0030918121337890625, 0.037017822265625, 0.016693115234375, -0.01255035400390625, -0.0301361083984375, -0.00411224365234375, -0.02227783203125, 0.01174163818359375, 0.004291534423828125, -0.034759521484375, 0.03924560546875, 0.029998779296875, -0.0355224609375, -0.024078369140625, 0.00621795654296875, -0.006198883056640625, -0.0102081298828125, -0.0304107666015625, -0.038787841796875, -0.0210723876953125, 0.0751953125, 0.032745361328125, 0.0235443115234375, -0.0178680419921875, -0.02984619140625, 0.00952911376953125, -0.04461669921875, -0.0204620361328125, 0.03607177734375, -0.08233642578125, -0.019683837890625, 0.00296783447265625, 0.033477783203125, 0.0224609375, -0.0225677490234375, 0.03875732421875, -0.0269927978515625, 0.0689697265625, 0.0295257568359375, -0.0253143310546875, 0.0116119384765625, 0.059417724609375, -0.033050537109375, 0.0394287109375, -0.003875732421875, 0.00662994384765625, 0.059234619140625, 0.0028018951416015625, -0.036376953125, -0.009765625, 0.00740814208984375, -0.0018939971923828125, 0.00981903076171875, 0.009735107421875, 0.0241851806640625, 0.0216827392578125, -0.0193939208984375, -0.0115966796875, 0.00907135009765625, -0.016021728515625, 0.03387451171875, -0.035430908203125, -0.034820556640625, 0.06549072265625, -0.00347137451171875, 0.007205963134765625, -0.0013017654418945312, 0.0167388916015625, -0.0001970529556274414, -0.0015926361083984375, 0.045379638671875, -0.0170135498046875, -0.0135650634765625, -0.0087890625, -0.0243377685546875, -0.045318603515625, 0.01953125, -0.045013427734375, -0.01433563232421875, 0.019744873046875 ]
9a775bb855a387c648bf7201de5daea6b61fca8b
Wordpress Stackexchange Q: Adding schema itemprop image to the_post_thumbnail with filters I have tried to apply filters to the_post_thumbnail() function using apply_filters( 'post_thumbnail_html', $html, $post_id, $post_thumbnail_id, $size, $attr ); Here's the code I have come up with but doesn't seem to work completely function red_adjust_image_schema($html, $id, $caption, $title, $align, $url, $size, $alt) { $html = '<div class="image-container" itemprop="image">'. $html . '</div>'; return $html; } add_filter('post_thumbnail_html', 'red_adjust_image_schema', 20, 8); How can I add itemprop="image" to the actual image element so it registers properly? Right now it seem like I can only do a container and wrap around $html? Thanks A: You've simply the wrong arguments (incl. the list of them). $caption, $title, $align, $url, $alt are too much in there. And $attr is missing. Not that it matters how you name the vars (as long as they start with a character), but it's easier to read for later readers. function wpse76536_image_schema( $html, $post_id, $post_thumbnail_id, $size, $attr ) { return "<div class='image-container' itemprop='image'>{$html}</div>"; } add_filter( 'post_thumbnail_html', 'wpse76536_image_schema', 10, 5 );
Q: Adding schema itemprop image to the_post_thumbnail with filters I have tried to apply filters to the_post_thumbnail() function using apply_filters( 'post_thumbnail_html', $html, $post_id, $post_thumbnail_id, $size, $attr ); Here's the code I have come up with but doesn't seem to work completely function red_adjust_image_schema($html, $id, $caption, $title, $align, $url, $size, $alt) { $html = '<div class="image-container" itemprop="image">'. $html . '</div>'; return $html; } add_filter('post_thumbnail_html', 'red_adjust_image_schema', 20, 8); How can I add itemprop="image" to the actual image element so it registers properly? Right now it seem like I can only do a container and wrap around $html? Thanks A: You've simply the wrong arguments (incl. the list of them). $caption, $title, $align, $url, $alt are too much in there. And $attr is missing. Not that it matters how you name the vars (as long as they start with a character), but it's easier to read for later readers. function wpse76536_image_schema( $html, $post_id, $post_thumbnail_id, $size, $attr ) { return "<div class='image-container' itemprop='image'>{$html}</div>"; } add_filter( 'post_thumbnail_html', 'wpse76536_image_schema', 10, 5 ); A: You can just add a new attribute: add_filter('wp_get_attachment_image_attributes', 'ipwp_img_attr', 10, 2); function ipwp_img_attr($attr) { $attr['itemprop'] = 'image'; return $attr; } This way there will just be a new attribute, without the need to search and replace any code - See my previous version: add_filter('post_thumbnail_html','mediaboxlv_image_itemprop',10,3 ); function mediaboxlv_image_itemprop($html, $post_id, $post_image_id){ $html = str_replace('src',' itemprop="image" src',$html); return $html; }
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:426933", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76536" }
[ 0.042510986328125, -0.01462554931640625, 0.01555633544921875, -0.0208587646484375, 0.021209716796875, -0.02789306640625, 0.0596923828125, -0.0187225341796875, 0.0594482421875, -0.032958984375, -0.0222930908203125, -0.033843994140625, -0.01206207275390625, -0.05133056640625, 0.004985809326171875, -0.0186614990234375, 0.052215576171875, -0.05169677734375, 0.030670166015625, 0.0196380615234375, 0.005809783935546875, 0.060699462890625, 0.026092529296875, -0.01497650146484375, 0.01244354248046875, -0.0197601318359375, 0.09759521484375, -0.041168212890625, 0.000514984130859375, -0.018707275390625, 0.0128631591796875, -0.020050048828125, 0.027099609375, -0.00873565673828125, 0.0103759765625, 0.0594482421875, 0.027496337890625, -0.0123138427734375, 0.0013942718505859375, 0.0235443115234375, 0.006649017333984375, -0.00411224365234375, 0.03564453125, 0.01435089111328125, 0.003787994384765625, -0.00959014892578125, 0.00875091552734375, -0.04278564453125, 0.0197906494140625, -0.024810791015625, 0.0089569091796875, 0.039276123046875, 0.038970947265625, -0.044586181640625, -0.00023257732391357422, 0.02166748046875, -0.05462646484375, 0.039276123046875, 0.0033168792724609375, 0.03466796875, 0.007503509521484375, 0.032470703125, -0.01861572265625, -0.00893402099609375, 0.01401519775390625, 0.004749298095703125, 0.01800537109375, 0.01136016845703125, -0.044830322265625, 0.003589630126953125, 0.024200439453125, -0.03045654296875, -0.02398681640625, -0.037872314453125, -0.0146026611328125, 0.0243988037109375, 0.01499176025390625, -0.035552978515625, -0.021392822265625, 0.01366424560546875, 0.0296173095703125, -0.0396728515625, -0.040252685546875, 0.035186767578125, 0.004360198974609375, 0.050750732421875, -0.00037789344787597656, -0.0191497802734375, 0.01529693603515625, -0.0223846435546875, 0.005657196044921875, -0.038299560546875, -0.0205230712890625, 0.039337158203125, 0.006206512451171875, -0.03863525390625, 0.034637451171875, 0.0526123046875, -0.031036376953125, 0.015777587890625, 0.0206451416015625, -0.06353759765625, 0.07244873046875, -0.047882080078125, 0.033416748046875, 0.012237548828125, -0.045074462890625, 0.022247314453125, 0.07916259765625, 0.055908203125, 0.02532958984375, 0.0211181640625, 0.0086822509765625, -0.00020182132720947266, -0.02752685546875, -0.029632568359375, -0.0227203369140625, 0.0021648406982421875, 0.00560760498046875, -0.0152740478515625, 0.009368896484375, -0.0150909423828125, 0.04180908203125, 0.006481170654296875, 0.006988525390625, 0.01175689697265625, -0.035430908203125, -0.034149169921875, -0.01971435546875, -0.0162200927734375, -0.0347900390625, 0.03472900390625, 0.029571533203125, 0.01263427734375, 0.015289306640625, -0.0009393692016601562, 0.036102294921875, -0.044189453125, -0.035980224609375, 0.036773681640625, -0.0009355545043945312, -0.017822265625, -0.022796630859375, -0.0201263427734375, 0.01186370849609375, 0.03289794921875, 0.01032257080078125, -0.00354766845703125, 0.01044464111328125, -0.09271240234375, 0.013671875, -0.038787841796875, 0.0176239013671875, 0.01446533203125, -0.019439697265625, -0.01861572265625, 0.0142974853515625, -0.0280609130859375, -0.0021381378173828125, -0.03350830078125, 0.0225372314453125, -0.0037403106689453125, 0.003833770751953125, -0.0149688720703125, -0.027801513671875, 0.00922393798828125, -0.0207366943359375, -0.01458740234375, 0.01873779296875, 0.057525634765625, -0.011749267578125, 0.037841796875, 0.0132598876953125, 0.0246734619140625, -0.007297515869140625, 0.00466156005859375, 0.004436492919921875, 0.0179901123046875, 0.017486572265625, 0.0223541259765625, -0.01384735107421875, -0.042938232421875, 0.07965087890625, -0.041595458984375, -0.06414794921875, 0.004852294921875, 0.01456451416015625, 0.0579833984375, 0.0240631103515625, 0.023193359375, 0.0235595703125, -0.004833221435546875, -0.05078125, -0.050750732421875, 0.0282440185546875, 0.0247802734375, -0.00763702392578125, -0.021392822265625, 0.0263214111328125, 0.0161590576171875, 0.0197601318359375, -0.0036468505859375, 0.003604888916015625, -0.0113067626953125, -0.054107666015625, -0.0005321502685546875, -0.0164031982421875, 0.0394287109375, -0.0217437744140625, 0.0016889572143554688, 0.021820068359375, 0.008331298828125, -0.04345703125, 0.03546142578125, -0.003620147705078125, 0.0182037353515625, -0.01611328125, -0.0031871795654296875, -0.035247802734375, 0.032867431640625, -0.041748046875, -0.0457763671875, -0.034912109375, 0.044403076171875, 0.055938720703125, 0.038818359375, -0.03399658203125, 0.0003476142883300781, 0.0242156982421875, 0.021392822265625, -0.0322265625, 0.05108642578125, -0.0133514404296875, 0.006191253662109375, -0.0033092498779296875, 0.007350921630859375, 0.020263671875, -0.062042236328125, 0.004161834716796875, 0.033416748046875, 0.045440673828125, 0.0718994140625, 0.009124755859375, 0.006626129150390625, 0.119873046875, 0.016143798828125, 0.01230621337890625, -0.024017333984375, 0.0186004638671875, 0.0029697418212890625, -0.0302886962890625, -0.016082763671875, 0.045501708984375, -0.041351318359375, 0.041015625, 0.049591064453125, 0.0063323974609375, 0.037689208984375, -0.034393310546875, 0.0290069580078125, -0.01045989990234375, 0.002742767333984375, -0.01091766357421875, -0.0003809928894042969, 0.0188140869140625, 0.0232391357421875, 0.0260009765625, 0.004268646240234375, -0.037933349609375, 0.01300811767578125, 0.024444580078125, 0.01898193359375, -0.01483917236328125, -0.0032482147216796875, -0.026092529296875, 0.007389068603515625, -0.038482666015625, 0.039642333984375, -0.012420654296875, -0.0149383544921875, 0.01290130615234375, 0.01149749755859375, 0.00043964385986328125, 0.0037994384765625, 0.005855560302734375, -0.058441162109375, 0.022216796875, 0.038818359375, 0.04364013671875, -0.00476837158203125, 0.01190185546875, -0.0144500732421875, 0.00836944580078125, 0.02294921875, 0.02752685546875, -0.044891357421875, -0.025177001953125, -0.0267181396484375, 0.0501708984375, -0.061798095703125, 0.027801513671875, 0.052581787109375, -0.049713134765625, 0.0396728515625, -0.0019378662109375, 0.016326904296875, -0.00994110107421875, 0.029327392578125, -0.003864288330078125, -0.0266265869140625, -0.03948974609375, -0.00823974609375, 0.00832366943359375, 0.01265716552734375, -0.006000518798828125, -0.0291595458984375, 0.004276275634765625, -0.00286865234375, -0.04632568359375, -0.0306396484375, 0.00047469139099121094, -0.054351806640625, -0.049591064453125, 0.0347900390625, -0.03472900390625, 0.0210723876953125, 0.041229248046875, -0.0123748779296875, -0.016845703125, -0.01195526123046875, -0.07598876953125, -0.060272216796875, -0.07684326171875, -0.005199432373046875, -0.0183868408203125, 0.024444580078125, 0.0020313262939453125, 0.0264892578125, 0.00826263427734375, -0.0155029296875, 0.032073974609375, 0.00823974609375, 0.0081024169921875, 0.007007598876953125, 0.007801055908203125, -0.049102783203125, -0.044677734375, -0.017425537109375, 0.055145263671875, 0.01212310791015625, -0.0302276611328125, 0.046539306640625, -0.037139892578125, 0.024688720703125, -0.007312774658203125, 0.052978515625, 0.0523681640625, 0.0272674560546875, 0.040985107421875, -0.01934814453125, 0.00461578369140625, -0.04150390625, -0.03802490234375, -0.01473236083984375, 0.0263519287109375, 0.002521514892578125, -0.00022423267364501953, -0.01416015625, 0.0250244140625, 0.03179931640625, 0.013702392578125, -0.01114654541015625, -0.0090179443359375, -0.0088043212890625, 0.0205078125, -0.0310211181640625, 0.019744873046875, -0.02435302734375, -0.00487518310546875, 0.0138397216796875, -0.007106781005859375, -0.0031299591064453125, 0.005367279052734375, 0.01500701904296875, -0.040679931640625, 0.047821044921875, 0.011749267578125, 0.03387451171875, -0.05010986328125, -0.042938232421875, -0.035797119140625, 0.07421875, -0.0347900390625, -0.0280914306640625, -0.0098419189453125, 0.00406646728515625, 0.01131439208984375, -0.018218994140625, 0.0052947998046875, -0.0174560546875, -0.0924072265625, -0.0089569091796875, -0.00147247314453125, -0.03289794921875, 0.00048065185546875, -0.047454833984375, -0.057830810546875, -0.0496826171875, 0.01837158203125, -0.0036296844482421875, 0.002605438232421875, 0.05523681640625, -0.0292205810546875, 0.061920166015625, -0.0212554931640625, -0.029815673828125, -0.08831787109375, -0.033233642578125, -0.0181884765625, 0.120849609375, 0.0014219284057617188, 0.0151824951171875, -0.070068359375, 0.030914306640625, -0.025360107421875, 0.0291290283203125, -0.035736083984375, 0.033599853515625, -0.031707763671875, -0.029296875, -0.018768310546875, -0.0265655517578125, -0.006572723388671875, -0.0293731689453125, -0.038360595703125, -0.004192352294921875, -0.0290679931640625, 0.042449951171875, -0.01169586181640625, -0.011199951171875, -0.0472412109375, 0.00382232666015625, 0.034820556640625, 0.030548095703125, 0.0066680908203125, -0.0213623046875, -0.0079345703125, -0.039154052734375, 0.076171875, 0.004482269287109375, 0.006160736083984375, -0.007595062255859375, 0.05999755859375, 0.007511138916015625, -0.043701171875, -0.035980224609375, 0.00274658203125, 0.046905517578125, -0.0031337738037109375, 0.040374755859375, 0.041961669921875, -0.018218994140625, 0.0224761962890625, 0.034332275390625, 0.0139617919921875, -0.029266357421875, 0.055450439453125, 0.006175994873046875, -0.00804901123046875, 0.0118865966796875, 0.0010051727294921875, 0.01043701171875, -0.017669677734375, -0.00839996337890625, -0.03973388671875, 0.02569580078125, 0.03643798828125, -0.010498046875, 0.036956787109375, -0.00682830810546875, -0.01971435546875, 0.017913818359375, -0.01444244384765625, 0.036590576171875, 0.034698486328125, -0.007808685302734375, -0.00907135009765625, -0.03167724609375, -0.0027713775634765625, -0.0201263427734375, 0.00521087646484375, 0.0194854736328125, 0.0482177734375, -0.040191650390625, 0.0189361572265625, -0.03948974609375, -0.0038166046142578125, -0.00563812255859375, 0.018310546875, 0.006824493408203125, -0.021331787109375, 0.0107574462890625, 0.0185546875, -0.0224151611328125, -0.0250091552734375, 0.034423828125, 0.03509521484375, -0.01238250732421875, -0.016326904296875, -0.01450347900390625, 0.005710601806640625, -0.053619384765625, -0.0021038055419921875, 0.00768280029296875, -0.0194091796875, 0.0718994140625, -0.019989013671875, 0.033172607421875, 0.01081085205078125, -0.031463623046875, 0.00591278076171875, -0.007541656494140625, 0.0280609130859375, 0.0390625, -0.0303192138671875, -0.016876220703125, 0.0200042724609375, 0.00010263919830322266, -0.004230499267578125, -0.0160064697265625, 0.029083251953125, 0.031707763671875, -0.0254974365234375, 0.003307342529296875, -0.01629638671875, -0.021148681640625, 0.0015707015991210938, 0.0024242401123046875, -0.00214385986328125, -0.051849365234375, 0.0006470680236816406, 0.037445068359375, 0.0179595947265625, -0.0304412841796875, -0.01236724853515625, 0.041900634765625, 0.01027679443359375, 0.0352783203125, 0.0235748291015625, -0.0305938720703125, 0.0157012939453125, 0.020263671875, -0.027801513671875, -0.0535888671875, -0.05255126953125, 0.00033855438232421875, 0.036285400390625, -0.01947021484375, -0.020111083984375, 0.04412841796875, -0.0421142578125, 0.04473876953125, -0.02838134765625, 0.0035724639892578125, -0.01270294189453125, 0.0269012451171875, 0.004070281982421875, 0.0187835693359375, -0.0188751220703125, -0.02618408203125, -0.038055419921875, -0.0260009765625, 0.007015228271484375, -0.0021877288818359375, -0.00942230224609375, 0.007305145263671875, 0.005123138427734375, 0.017486572265625, 0.0226898193359375, 0.02008056640625, -0.0235748291015625, -0.020172119140625, 0.007373809814453125, 0.00677490234375, -0.0198974609375, 0.05133056640625, -0.01947021484375, 0.058380126953125, -0.002719879150390625, -0.004604339599609375, -0.027587890625, 0.0098876953125, -0.021514892578125, -0.08563232421875, -0.006366729736328125, 0.030792236328125, -0.06756591796875, 0.05389404296875, 0.033294677734375, 0.0213623046875, 0.031005859375, -0.0311431884765625, -0.02978515625, -0.02056884765625, 0.027587890625, -0.0286102294921875, 0.040008544921875, 0.032684326171875, -0.025848388671875, 0.034942626953125, -0.0080108642578125, -0.002101898193359375, 0.00738525390625, -0.04510498046875, 0.010986328125, 0.0643310546875, 0.0147857666015625, -0.01532745361328125, 0.01496124267578125, -0.0218505859375, 0.0236663818359375, 0.017059326171875, 0.0180206298828125, 0.0316162109375, 0.00018334388732910156, -0.0121917724609375, 0.0220489501953125, 0.05950927734375, -0.00116729736328125, -0.0177001953125, 0.037872314453125, -0.0379638671875, 0.01053619384765625, -0.0254669189453125, 0.028717041015625, 0.0212860107421875, 0.00655364990234375, 0.0071563720703125, -0.051971435546875, 0.0192718505859375, -0.0030803680419921875, -0.0099334716796875, 0.03118896484375, 0.0024013519287109375, -0.01285552978515625, -0.03179931640625, -0.00592803955078125, 0.0328369140625, -0.01500701904296875, -0.0309906005859375, -0.0254669189453125, -0.00798797607421875, -0.02435302734375, -0.017822265625, 0.0272674560546875, -0.0285797119140625, -0.00870513916015625, 0.0239410400390625, -0.035614013671875, -0.015594482421875, -0.064208984375, -0.036407470703125, -0.000007569789886474609, -0.0159912109375, 0.0125885009765625, -0.006549835205078125, 0.04058837890625, 0.0467529296875, -0.01474761962890625, 0.0267486572265625, 0.0169219970703125, -0.0200347900390625, 0.034912109375, 0.0044403076171875, -0.0135955810546875, 0.0217132568359375, -0.027069091796875, 0.0022563934326171875, -0.018524169921875, 0.039215087890625, -0.0005273818969726562, -0.01253509521484375, 0.02337646484375, 0.029998779296875, -0.044769287109375, 0.036376953125, -0.00583648681640625, -0.0174713134765625, 0.0186767578125, 0.03363037109375, -0.048919677734375, -0.0498046875, 0.0206298828125, -0.06903076171875, -0.0183868408203125, 0.0006914138793945312, -0.04766845703125, 0.06561279296875, -0.0172882080078125, 0.044952392578125, 0.01043701171875, 0.0165252685546875, -0.001995086669921875, -0.0004773139953613281, 0.00048422813415527344, -0.035675048828125, -0.06396484375, 0.020294189453125, 0.031707763671875, 0.030670166015625, 0.010986328125, 0.0052337646484375, -0.0087890625, 0.00485992431640625, -0.04779052734375, -0.0010004043579101562, 0.039764404296875, 0.01244354248046875, 0.0210723876953125, 0.048248291015625, -0.020751953125, -0.002567291259765625, -0.01180267333984375, -0.01983642578125, 0.03277587890625, -0.0699462890625, -0.0426025390625, 0.00623321533203125, 0.0022220611572265625, 0.0012054443359375, 0.004451751708984375, 0.0645751953125, -0.045440673828125, 0.0079345703125, 0.037628173828125, -0.043609619140625, 0.006221771240234375, 0.00853729248046875, 0.01007080078125, -0.00247955322265625, -0.057861328125, 0.0012273788452148438, 0.0198211669921875, 0.01261138916015625, 0.03912353515625, 0.037841796875, 0.018218994140625, 0.05279541015625, 0.046966552734375, 0.0328369140625, 0.034881591796875, 0.025238037109375, 0.037506103515625, 0.005245208740234375, -0.0026092529296875, -0.0287933349609375, 0.057373046875, 0.0278778076171875, 0.041748046875, -0.05938720703125, -0.00353240966796875, 0.01300811767578125, 0.0148468017578125, 0.006282806396484375, -0.0209503173828125, 0.0113372802734375, -0.054229736328125, -0.0269317626953125, -0.0234527587890625, -0.0008702278137207031, 0.02349853515625, 0.026397705078125, 0.0103912353515625, 0.013671875, -0.03778076171875, -0.021759033203125, -0.01483154296875, -0.025238037109375, -0.0006632804870605469, 0.0797119140625, 0.0469970703125, 0.04510498046875, -0.047943115234375, -0.035003662109375, -0.02117919921875, 0.0191650390625, -0.026031494140625, 0.0289764404296875, -0.028778076171875, -0.0386962890625, -0.015869140625, 0.027374267578125, -0.005062103271484375, -0.05230712890625, 0.02593994140625, 0.055267333984375, -0.05938720703125, -0.03997802734375, 0.018524169921875, -0.01145172119140625, 0.0262451171875, -0.026214599609375, 0.039154052734375, 0.0204925537109375, -0.006549835205078125, -0.0203857421875, 0.00844573974609375, 0.033233642578125, -0.038421630859375, 0.026947021484375, -0.0128631591796875, -0.03680419921875, 0.034423828125, -0.004558563232421875, 0.064453125, -0.0156707763671875, -0.08349609375, -0.0240631103515625, 0.0107879638671875, -0.058837890625, 0.04010009765625, 0.036468505859375, -0.052520751953125, 0.02923583984375, 0.0205078125, -0.03509521484375, 0.013092041015625, 0.00823211669921875, -0.0023708343505859375, 0.01328277587890625, 0.0212860107421875, 0.0001283884048461914, 0.0259552001953125, -0.002353668212890625, 0.0013494491577148438, 0.0640869140625, 0.02294921875, 0.042572021484375, -0.037353515625, 0.046417236328125, -0.03509521484375, 0.0246429443359375, -0.0311737060546875, -0.01088714599609375, 0.0311737060546875, 0.0246734619140625, -0.0067291259765625, -0.03033447265625, 0.0230865478515625, 0.000031054019927978516, 0.031402587890625, -0.04473876953125, -0.0282440185546875, -0.005802154541015625, 0.0027713775634765625, 0.006595611572265625, 0.03997802734375, -0.0231781005859375, -0.00955963134765625, -0.062744140625, -0.049957275390625, 0.051544189453125, 0.0318603515625, 0.04595947265625, 0.044281005859375, 0.0391845703125, 0.0226287841796875, 0.01387786865234375, -0.02032470703125, 0.0589599609375, 0.05438232421875, -0.05194091796875, -0.024932861328125, -0.0029468536376953125, -0.02392578125, -0.013519287109375, 0.006031036376953125, 0.0248565673828125, -0.00881195068359375, -0.02032470703125, -0.01751708984375, 0.01580810546875, 0.0013189315795898438, -0.0252838134765625, -0.0065460205078125, 0.0308837890625, -0.03302001953125, -0.03533935546875, 0.046661376953125, -0.0277557373046875, -0.04205322265625, -0.00457000732421875, -0.00637054443359375, -0.027618408203125, -0.05035400390625, -0.0662841796875, 0.004436492919921875, 0.032379150390625, 0.01727294921875, -0.018524169921875, 0.01549530029296875, -0.01554107666015625, 0.02764892578125, 0.0110321044921875, -0.0238494873046875, 0.00299835205078125, 0.0007915496826171875, -0.0200042724609375, -0.056427001953125, -0.0248565673828125, 0.045623779296875, -0.031890869140625, 0.0144500732421875, 0.0285186767578125, -0.021087646484375, -0.0219573974609375, 0.04974365234375, -0.007656097412109375, 0.08648681640625, -0.044097900390625, -0.0458984375, 0.01320648193359375, 0.0030364990234375, 0.0092926025390625, -0.04718017578125, -0.01293182373046875, -0.052825927734375, 0.023040771484375, 0.0029010772705078125, -0.0155029296875, -0.006488800048828125, -0.036529541015625, -0.07843017578125, 0.0579833984375, -0.004619598388671875, -0.017486572265625, 0.00821685791015625, -0.037841796875, -0.0198211669921875, -0.0038623809814453125, -0.0020732879638671875, -0.0125732421875, -0.012420654296875, 0.036163330078125, 0.0205841064453125, -0.0121917724609375, 0.05584716796875, -0.00272369384765625, -0.041778564453125, -0.002307891845703125, -0.004329681396484375, -0.00846099853515625, 0.0113525390625, -0.0180206298828125, 0.03863525390625, 0.042388916015625, -0.01371002197265625, -0.0498046875, 0.007190704345703125, -0.024200439453125, -0.0218353271484375, -0.052886962890625, -0.03759765625, -0.004852294921875, 0.06744384765625, 0.0784912109375, 0.020660400390625, -0.05645751953125, -0.032623291015625, -0.019927978515625, -0.01273345947265625, -0.00708770751953125, 0.018707275390625, -0.069580078125, -0.0135040283203125, 0.01629638671875, 0.0162811279296875, 0.0188140869140625, -0.0111541748046875, -0.003795623779296875, -0.0211029052734375, 0.0156402587890625, 0.010467529296875, -0.043701171875, 0.050384521484375, 0.052032470703125, -0.06494140625, -0.040557861328125, -0.00640106201171875, -0.01153564453125, 0.0029296875, -0.047149658203125, -0.05438232421875, 0.00861358642578125, 0.011260986328125, 0.00833892822265625, -0.0144805908203125, 0.022369384765625, -0.0001825094223022461, 0.043701171875, -0.01983642578125, 0.0020656585693359375, 0.0283966064453125, -0.0200347900390625, -0.0513916015625, -0.007904052734375, -0.010040283203125, 0.056396484375, -0.0246429443359375, -0.0284423828125, -0.01155853271484375, 0.003887176513671875, -0.01776123046875, 0.006397247314453125, 0.00531768798828125, -0.009185791015625, -0.0046539306640625, 0.018646240234375, -0.0511474609375, -0.053497314453125, 0.037811279296875, -0.038177490234375, -0.00473785400390625, 0.01375579833984375 ]
c413f140c9e52b67d88b496941f92652f7c2e51f
Wordpress Stackexchange Q: Should I use Pre Get Posts or WP_Query I have the following query which I call in my taxonomy.php template via query_brands_geo('dealers', 'publish', '1', $taxtype, $geo, $brands); This function works perfectly. However after reading codex for query posts it mentioned pre_get_posts as a preferred way to alter the default query. Would the pre_get_posts be more efficient then my wp_query function below? If so how would I construct the pre_get_posts and pass my variable and query below? function my_custom_query($posttype, $poststatus, $paidvalue, $taxtype, $geo, $brands) { global $wp_query; $wp_query = new WP_Query(); $args = array( 'post_type' => $posttype, 'post_status' => array($poststatus), 'orderby' => 'rand', 'posts_per_page' => 30, 'meta_query' => array( array( 'key' => 'wpcf-paid', 'value' => array($paidvalue), 'compare' => 'IN', ) ), 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => $taxtype, 'field' => 'slug', 'terms' => $geo ), array( 'taxonomy' => 'brands', 'field' => 'slug', 'terms' => $brands ) ) ); return $wp_query->query($args); } A: Please check out the answers at When to use WP_query(), query_posts() and pre_get_posts. It is a great ressource if you have any doubts in mind.
Q: Should I use Pre Get Posts or WP_Query I have the following query which I call in my taxonomy.php template via query_brands_geo('dealers', 'publish', '1', $taxtype, $geo, $brands); This function works perfectly. However after reading codex for query posts it mentioned pre_get_posts as a preferred way to alter the default query. Would the pre_get_posts be more efficient then my wp_query function below? If so how would I construct the pre_get_posts and pass my variable and query below? function my_custom_query($posttype, $poststatus, $paidvalue, $taxtype, $geo, $brands) { global $wp_query; $wp_query = new WP_Query(); $args = array( 'post_type' => $posttype, 'post_status' => array($poststatus), 'orderby' => 'rand', 'posts_per_page' => 30, 'meta_query' => array( array( 'key' => 'wpcf-paid', 'value' => array($paidvalue), 'compare' => 'IN', ) ), 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => $taxtype, 'field' => 'slug', 'terms' => $geo ), array( 'taxonomy' => 'brands', 'field' => 'slug', 'terms' => $brands ) ) ); return $wp_query->query($args); } A: Please check out the answers at When to use WP_query(), query_posts() and pre_get_posts. It is a great ressource if you have any doubts in mind. A: pre_get_posts will run the same query, so both will take same time. But, If you utilize pre_get_posts action you will save one or more SQL queries. Right now, WordPress is running default query and then you run your query with this function which replace the results of the default query (resulting, default query is of no use). Below is how you can move your $args to function custom_pre_get_posts($query, $posttype='dealers', $poststatus='publish', $paidvalue='1', $taxtype='any_default_value', $geo='any_default_value', $brands='any_default_value') { // filter your request here. if($query->is_category) { $args = array( 'post_type' => $posttype, 'post_status' => array($poststatus), 'orderby' => 'rand', 'posts_per_page' => 30, 'meta_query' => array( array( 'key' => 'wpcf-paid', 'value' => array($paidvalue), 'compare' => 'IN', ) ), 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => $taxtype, 'field' => 'slug', 'terms' => $geo ), array( 'taxonomy' => 'brands', 'field' => 'slug', 'terms' => $brands ) ) ); $query->query_vars = $args; } } add_action('pre_get_posts', 'custom_pre_get_posts'); A: Late answer as the most upvoted answer will break your query and simply isn't true in some major points. The main WP_Query and it's filters First, WordPress internally uses query_posts() (a thin wrapper around WP_Query that shouldn't be used in themes or plugins) to do a WP_Query. This WP_Query is acting as the main loop/query. This query will run through a lot of filters and actions until the actual SQL query string is built. One of those is pre_get_posts. Others are posts_clauses, posts_where, etc. that also allow you to intercept the query string building process. An in depth look at what happens inside core WordPress runs the wp() function (in wp-includes/functions.php), which calls $wp->main() ($wp is an object of class WP, which is defined in wp-includes/class-wp.php). This tells WordPress to: * *Parse the URL into a query specification using WP->parse_request() -- more on that below. *Set all the is_ variables that are used by Conditional Tags using $wp_query->parse_query() ($wp_query is an object of class WP_Query, which is defined in wp-includes/query.php). Note that in spite of this function's name, in this case WP_Query->parse_query doesn't actually do any parsing for us, since that is done before-hand by WP->parse_request(). *Convert the query specification into a MySQL database query, and run the database query to get the list of posts, in function WP_Query->get_posts(). Save the posts in the $wp_query object to be used in the WordPress Loop. Source Codex Conclusion If you really want to modify the main query, then you can use a wide variety of filters. Simply use $query->set( 'some_key', 'some_value' ); to change data there or use $query->get( 'some_key' ); to retrieve data to do conditional checks. This will save you from doing a second query, as you're altering the SQL query only. If you have to do an additional query, then go with a WP_Query object. This will add another query to the DB. Example As answers always work better with an example, you here got one really nice one (props to Brad Touesnard), that simply extends the core object and therefore is pretty reusable (make a plugin out of it): class My_Book_Query extends WP_Query { function __construct( $args = array() ) { // Forced/default args $args = array_merge( $args, array( 'posts_per_page' => -1 ) ); add_filter( 'posts_fields', array( $this, 'posts_fields' ) ); parent::__construct( $args ); } public function posts_fields( $sql ) { return "{$sql}, {$GLOBALS['wpdb']->terms}.name AS 'book_category'"; } } You can then run your second/additional query like you can see in the following example. Don't forget to reset your query afterwards. $book_query = new My_Book_Query(); if ( $book_query->have_posts() ) { while ( $book_query->have_posts() ) { $book_query->the_post(); # ...do stuff... } // endwhile; wp_reset_postdata(); } // endif;
wordpress
{ "language": "en", "length": 778, "provenance": "stackexchange_00019.jsonl.gz:426936", "question_score": "31", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76553" }
[ 0.0428466796875, 0.0018873214721679688, -0.01019287109375, -0.032440185546875, 0.0282135009765625, -0.0283966064453125, 0.0435791015625, 0.005229949951171875, -0.0030345916748046875, 0.0015201568603515625, -0.048583984375, 0.000056803226470947266, -0.046844482421875, -0.006938934326171875, -0.0013523101806640625, -0.0625, 0.03802490234375, -0.045074462890625, 0.007106781005859375, -0.02337646484375, 0.021392822265625, -0.0004639625549316406, 0.030120849609375, 0.045257568359375, 0.0252227783203125, -0.0280303955078125, 0.0277252197265625, 0.0102386474609375, 0.0035457611083984375, 0.003681182861328125, 0.018829345703125, -0.01097869873046875, 0.025390625, -0.01168060302734375, 0.022918701171875, 0.05633544921875, 0.02655029296875, 0.002399444580078125, 0.03741455078125, 0.005458831787109375, 0.0053863525390625, -0.0034503936767578125, -0.058013916015625, 0.031219482421875, -0.0292205810546875, -0.060577392578125, -0.005096435546875, -0.03375244140625, 0.003971099853515625, 0.030120849609375, 0.0211639404296875, 0.0244293212890625, 0.03619384765625, -0.0239105224609375, 0.003177642822265625, 0.0158233642578125, -0.0286102294921875, -0.01381683349609375, 0.045318603515625, -0.017669677734375, -0.035186767578125, -0.06005859375, 0.038909912109375, -0.0150146484375, -0.0016927719116210938, -0.00521087646484375, 0.06024169921875, 0.0209197998046875, -0.035919189453125, -0.04376220703125, 0.00848388671875, 0.004337310791015625, 0.00774383544921875, 0.011993408203125, -0.01129150390625, -0.03863525390625, 0.014434814453125, -0.01421356201171875, 0.01181793212890625, 0.03472900390625, 0.006984710693359375, -0.015533447265625, -0.0631103515625, 0.0213470458984375, -0.0073699951171875, 0.001873016357421875, -0.0099945068359375, -0.010040283203125, -0.0186614990234375, -0.06341552734375, -0.00800323486328125, -0.04205322265625, -0.062408447265625, -0.0027675628662109375, 0.0132598876953125, -0.062347412109375, 0.0216064453125, 0.0233917236328125, -0.00849151611328125, 0.00685882568359375, -0.036590576171875, -0.0250244140625, -0.02886962890625, -0.007335662841796875, 0.0246124267578125, -0.005031585693359375, -0.03961181640625, 0.05419921875, 0.09149169921875, 0.051727294921875, 0.008331298828125, 0.0303192138671875, -0.0350341796875, -0.0227813720703125, -0.049072265625, 0.01477813720703125, -0.048858642578125, -0.039031982421875, -0.0034084320068359375, -0.0288543701171875, 0.032470703125, 0.04730224609375, 0.0281829833984375, -0.07476806640625, 0.0038299560546875, -0.0206451416015625, -0.0274810791015625, -0.041656494140625, -0.01091766357421875, 0.0684814453125, -0.0282135009765625, -0.00978851318359375, 0.054931640625, 0.0225982666015625, -0.0039520263671875, -0.05059814453125, 0.01947021484375, -0.01456451416015625, -0.005706787109375, 0.00733184814453125, 0.0440673828125, -0.034149169921875, -0.016082763671875, 0.0267333984375, 0.035186767578125, -0.01537322998046875, 0.0223846435546875, 0.04248046875, 0.0196075439453125, 0.00041866302490234375, 0.007259368896484375, 0.0147857666015625, 0.06304931640625, -0.0253753662109375, -0.0679931640625, -0.0168304443359375, -0.0011682510375976562, -0.017059326171875, -0.061859130859375, -0.051849365234375, 0.0033740997314453125, -0.0121002197265625, 0.0010519027709960938, -0.046905517578125, -0.04595947265625, 0.0164031982421875, -0.044464111328125, -0.0034732818603515625, 0.0105743408203125, 0.01629638671875, 0.06951904296875, -0.039093017578125, 0.0024814605712890625, -0.003566741943359375, -0.0066680908203125, -0.008331298828125, -0.018829345703125, 0.01248931884765625, 0.048980712890625, -0.0218353271484375, -0.0258636474609375, -0.0225830078125, 0.0601806640625, -0.01432037353515625, -0.051025390625, 0.0249786376953125, 0.0173187255859375, 0.044036865234375, -0.005809783935546875, 0.01446533203125, 0.053131103515625, 0.029327392578125, -0.072265625, 0.0791015625, 0.0167999267578125, -0.034576416015625, -0.018890380859375, -0.0199737548828125, 0.009674072265625, -0.027069091796875, -0.00634765625, 0.01328277587890625, -0.006378173828125, 0.023162841796875, -0.051513671875, 0.03350830078125, -0.0192718505859375, 0.034393310546875, -0.01538848876953125, 0.0180511474609375, 0.0219879150390625, 0.0050201416015625, -0.0203857421875, 0.005126953125, -0.0247344970703125, 0.002735137939453125, -0.018096923828125, 0.034332275390625, -0.0043487548828125, -0.0158233642578125, 0.00931549072265625, -0.041229248046875, 0.007488250732421875, 0.0245361328125, 0.04241943359375, 0.017669677734375, -0.0270233154296875, 0.005550384521484375, 0.0196533203125, 0.012603759765625, -0.0147552490234375, 0.023406982421875, 0.0794677734375, 0.03271484375, -0.0240631103515625, 0.032562255859375, 0.0574951171875, -0.007572174072265625, -0.01288604736328125, 0.024444580078125, 0.009124755859375, 0.005748748779296875, -0.033905029296875, -0.017730712890625, 0.0082550048828125, -0.0293121337890625, 0.005321502685546875, -0.009246826171875, -0.0038604736328125, 0.0231781005859375, -0.0264892578125, -0.01451873779296875, 0.034423828125, 0.0196075439453125, -0.0114288330078125, 0.0239105224609375, -0.0157012939453125, -0.003631591796875, 0.0158233642578125, -0.005718231201171875, -0.005397796630859375, -0.0310821533203125, -0.003948211669921875, -0.02020263671875, 0.005367279052734375, 0.004039764404296875, 0.012481689453125, 0.004302978515625, -0.030975341796875, 0.0014476776123046875, 0.0226898193359375, 0.004047393798828125, -0.0184783935546875, 0.005950927734375, 0.0002377033233642578, -0.005367279052734375, -0.024566650390625, 0.02508544921875, -0.0192718505859375, -0.0081024169921875, 0.0004410743713378906, 0.0200958251953125, -0.0440673828125, -0.0025348663330078125, -0.0163726806640625, -0.038726806640625, -0.007198333740234375, 0.02508544921875, -0.006439208984375, -0.00632476806640625, 0.03643798828125, -0.007007598876953125, -0.049346923828125, 0.03814697265625, -0.02130126953125, -0.039947509765625, -0.0099334716796875, -0.0469970703125, 0.0290679931640625, -0.027435302734375, 0.033599853515625, 0.06976318359375, 0.0255279541015625, -0.0006775856018066406, 0.00830841064453125, -0.0059814453125, -0.011260986328125, 0.037261962890625, 0.00336456298828125, -0.01538848876953125, -0.0426025390625, 0.0200653076171875, 0.0228118896484375, 0.02447509765625, -0.005992889404296875, -0.034088134765625, -0.0143585205078125, 0.0023326873779296875, -0.0582275390625, -0.053924560546875, -0.021087646484375, -0.023651123046875, 0.01235198974609375, -0.0218505859375, -0.00185394287109375, 0.0024852752685546875, -0.034423828125, 0.00893402099609375, 0.0384521484375, -0.0308074951171875, -0.08441162109375, -0.070068359375, -0.0711669921875, -0.0234222412109375, -0.00237274169921875, -0.0013589859008789062, 0.0116119384765625, 0.061981201171875, 0.03204345703125, -0.037200927734375, 0.0408935546875, 0.04461669921875, -0.0302581787109375, 0.023590087890625, -0.006275177001953125, -0.047119140625, 0.0579833984375, -0.0236663818359375, 0.035552978515625, 0.0262451171875, 0.00141143798828125, 0.005367279052734375, 0.040313720703125, 0.034210205078125, 0.04864501953125, -0.0035610198974609375, -0.0478515625, 0.02294921875, 0.0170440673828125, -0.030731201171875, -0.00823211669921875, -0.01739501953125, -0.0075531005859375, 0.045562744140625, -0.0007414817810058594, -0.0147705078125, 0.00850677490234375, 0.027191162109375, 0.0194549560546875, 0.035064697265625, -0.0025920867919921875, -0.0021152496337890625, 0.011993408203125, 0.0042266845703125, 0.01309967041015625, -0.003955841064453125, -0.0021572113037109375, -0.0310211181640625, 0.0107879638671875, 0.004940032958984375, 0.008819580078125, 0.01016998291015625, -0.026031494140625, -0.0292205810546875, -0.0239105224609375, 0.042327880859375, -0.044921875, -0.01123046875, -0.0439453125, -0.018829345703125, -0.033935546875, 0.052490234375, -0.0073699951171875, -0.008544921875, 0.017425537109375, -0.0006036758422851562, -0.031341552734375, -0.01000213623046875, -0.05865478515625, 0.0017614364624023438, -0.049530029296875, -0.01348876953125, 0.00518798828125, -0.05224609375, -0.0278472900390625, -0.0054473876953125, -0.0787353515625, -0.02093505859375, 0.048614501953125, -0.04083251953125, 0.0106048583984375, 0.025360107421875, -0.01068115234375, -0.0033550262451171875, -0.046478271484375, -0.0017232894897460938, -0.035888671875, -0.0087738037109375, 0.043426513671875, -0.0006976127624511719, -0.0273895263671875, -0.0110626220703125, -0.02484130859375, 0.0273284912109375, 0.031829833984375, 0.01678466796875, -0.022186279296875, -0.01183319091796875, -0.03973388671875, -0.032440185546875, -0.0230865478515625, -0.030517578125, -0.00865936279296875, 0.00421142578125, -0.00506591796875, 0.0246429443359375, -0.02252197265625, 0.00783538818359375, -0.00579833984375, -0.018707275390625, -0.061370849609375, -0.03656005859375, -0.0197296142578125, -0.0110626220703125, -0.03436279296875, 0.01131439208984375, -0.007221221923828125, -0.03326416015625, 0.029876708984375, 0.034210205078125, 0.001956939697265625, -0.006351470947265625, 0.07757568359375, 0.0179443359375, -0.0215606689453125, -0.0292205810546875, -0.01361846923828125, 0.016693115234375, 0.002094268798828125, -0.0034122467041015625, -0.0152130126953125, -0.0197601318359375, 0.01212310791015625, -0.01861572265625, -0.01494598388671875, -0.0009870529174804688, 0.0396728515625, 0.006786346435546875, 0.002887725830078125, -0.007564544677734375, -0.0173187255859375, 0.023406982421875, 0.05938720703125, 0.00010162591934204102, -0.05914306640625, -0.0275726318359375, 0.068359375, -0.0014562606811523438, 0.006343841552734375, -0.08062744140625, -0.01152801513671875, 0.0140838623046875, 0.0305633544921875, -0.005931854248046875, -0.00661468505859375, 0.00701141357421875, -0.0278472900390625, -0.040374755859375, 0.0007748603820800781, 0.03973388671875, 0.058258056640625, -0.01055145263671875, 0.033843994140625, 0.03350830078125, -0.0205841064453125, -0.004856109619140625, 0.0108184814453125, 0.0012569427490234375, -0.0180816650390625, -0.0216522216796875, -0.04559326171875, 0.00649261474609375, -0.0192108154296875, 0.0241241455078125, 0.0177459716796875, 0.0650634765625, 0.062255859375, -0.0113372802734375, -0.01340484619140625, -0.0159759521484375, 0.038604736328125, -0.060577392578125, -0.0194854736328125, 0.006687164306640625, -0.00748443603515625, -0.0024509429931640625, 0.065673828125, -0.02593994140625, 0.041748046875, -0.01367950439453125, 0.0269775390625, 0.01380157470703125, 0.033935546875, 0.00899505615234375, 0.00048828125, 0.0165863037109375, -0.0011539459228515625, -0.0077972412109375, -0.021087646484375, -0.0120849609375, -0.02252197265625, 0.006504058837890625, -0.056671142578125, -0.0223846435546875, 0.0634765625, -0.0083465576171875, -0.0012798309326171875, 0.021392822265625, 0.0255279541015625, -0.0015163421630859375, -0.015899658203125, -0.0008425712585449219, 0.0291595458984375, -0.0070343017578125, 0.003204345703125, 0.024749755859375, -0.0016622543334960938, 0.06903076171875, -0.08197021484375, 0.0640869140625, -0.01419830322265625, -0.0155792236328125, -0.0241546630859375, -0.040069580078125, 0.001804351806640625, -0.0076141357421875, 0.02142333984375, -0.0188446044921875, -0.03717041015625, 0.0203399658203125, -0.05413818359375, -0.00183868408203125, -0.034088134765625, 0.033111572265625, -0.0350341796875, 0.0199737548828125, 0.0670166015625, 0.05023193359375, -0.0231475830078125, -0.00927734375, -0.042572021484375, -0.01739501953125, 0.022491455078125, -0.022308349609375, -0.012542724609375, -0.0222930908203125, 0.003582000732421875, 0.035430908203125, -0.004619598388671875, -0.043914794921875, -0.0340576171875, -0.0174713134765625, 0.01099395751953125, 0.033843994140625, -0.01065826416015625, 0.021240234375, 0.0037288665771484375, 0.0316162109375, 0.00235748291015625, -0.025115966796875, -0.0151519775390625, -0.01432037353515625, -0.0528564453125, -0.118896484375, -0.005031585693359375, 0.031097412109375, -0.044464111328125, 0.116455078125, 0.0631103515625, 0.017791748046875, 0.06011962890625, -0.005767822265625, 0.0078277587890625, 0.00885772705078125, -0.050933837890625, -0.033905029296875, 0.01251983642578125, 0.07232666015625, 0.0205230712890625, 0.057037353515625, -0.021087646484375, -0.0238800048828125, 0.0210113525390625, -0.00432586669921875, 0.025848388671875, -0.01251983642578125, -0.044769287109375, 0.047149658203125, 0.02618408203125, 0.007366180419921875, 0.024383544921875, -0.021270751953125, 0.01523590087890625, -0.0070648193359375, -0.02239990234375, -0.0160675048828125, 0.0070343017578125, 0.043060302734375, -0.0169525146484375, -0.010833740234375, 0.04290771484375, -0.01153564453125, -0.003749847412109375, 0.039276123046875, 0.032745361328125, -0.044647216796875, -0.0162353515625, 0.006671905517578125, -0.029388427734375, -0.0094757080078125, 0.01470184326171875, -0.0240631103515625, -0.02239990234375, 0.0208587646484375, -0.034271240234375, -0.0222625732421875, 0.0035572052001953125, 0.006824493408203125, -0.003582000732421875, -0.0198974609375, 0.0254974365234375, 0.01513671875, -0.0305633544921875, 0.0309295654296875, 0.021728515625, 0.0008578300476074219, 0.01248931884765625, 0.03936767578125, -0.0325927734375, -0.01061248779296875, -0.0616455078125, -0.0047149658203125, -0.004085540771484375, -0.042266845703125, 0.0119171142578125, 0.0182342529296875, 0.0338134765625, 0.037445068359375, 0.007904052734375, 0.0049591064453125, 0.013092041015625, -0.03289794921875, -0.051910400390625, 0.0032501220703125, 0.0291595458984375, 0.04638671875, -0.03759765625, 0.031982421875, -0.04150390625, 0.0002989768981933594, -0.0223541259765625, -0.06866455078125, 0.027374267578125, -0.063720703125, 0.030120849609375, 0.024078369140625, 0.04449462890625, -0.000804901123046875, 0.0079803466796875, 0.019195556640625, -0.05145263671875, -0.032562255859375, 0.005001068115234375, -0.044036865234375, -0.0218353271484375, -0.02423095703125, -0.04742431640625, 0.08349609375, -0.00988006591796875, 0.0190582275390625, 0.0070953369140625, 0.0309600830078125, -0.001758575439453125, 0.027130126953125, -0.053802490234375, 0.03411865234375, 0.038116455078125, 0.04296875, -0.049285888671875, -0.01467132568359375, 0.01544952392578125, 0.0163421630859375, 0.06939697265625, 0.01078033447265625, -0.06488037109375, -0.007503509521484375, 0.061676025390625, 0.05377197265625, 0.01393890380859375, 0.04052734375, 0.023193359375, 0.047332763671875, 0.072021484375, -0.00804901123046875, 0.04095458984375, 0.036163330078125, -0.0201568603515625, 0.048614501953125, 0.0201873779296875, 0.031494140625, -0.0168304443359375, 0.0274810791015625, -0.038238525390625, -0.007503509521484375, 0.04229736328125, -0.0249786376953125, 0.0081634521484375, 0.02716064453125, 0.037139892578125, -0.0509033203125, -0.005886077880859375, -0.0270843505859375, 0.042144775390625, 0.0007791519165039062, 0.0176544189453125, 0.046112060546875, 0.00412750244140625, 0.0638427734375, -0.0124664306640625, 0.004291534423828125, 0.001461029052734375, 0.02069091796875, 0.040069580078125, -0.005451202392578125, 0.017791748046875, -0.07000732421875, 0.0028247833251953125, 0.0587158203125, 0.061004638671875, -0.036163330078125, -0.01512908935546875, 0.00787353515625, 0.0206146240234375, -0.01287078857421875, -0.006931304931640625, 0.015655517578125, 0.03326416015625, 0.0299530029296875, -0.0645751953125, -0.00007665157318115234, -0.0078887939453125, -0.0036487579345703125, -0.032562255859375, -0.0133056640625, 0.03466796875, -0.01421356201171875, -0.042510986328125, -0.0293121337890625, 0.03326416015625, 0.0906982421875, 0.04449462890625, 0.031646728515625, -0.035980224609375, -0.048614501953125, -0.02008056640625, 0.024261474609375, 0.014404296875, 0.0184173583984375, 0.0017910003662109375, 0.003276824951171875, 0.0191497802734375, 0.0106353759765625, 0.03570556640625, 0.0447998046875, 0.041168212890625, 0.022125244140625, -0.006618499755859375, 0.024566650390625, 0.080078125, -0.009674072265625, 0.0216522216796875, -0.0265655517578125, 0.0088348388671875, 0.018280029296875, -0.007038116455078125, -0.020416259765625, -0.007049560546875, 0.04949951171875, 0.0030670166015625, 0.030426025390625, 0.00630950927734375, -0.0122833251953125, 0.0276336669921875, -0.0064849853515625, 0.052581787109375, 0.032073974609375, -0.01210784912109375, -0.00969696044921875, -0.03515625, -0.03607177734375, 0.025726318359375, 0.039398193359375, 0.00962066650390625, -0.000037550926208496094, -0.005916595458984375, -0.025634765625, 0.01425933837890625, 0.0275115966796875, -0.0200653076171875, 0.0025691986083984375, 0.0211029052734375, -0.004444122314453125, 0.0031948089599609375, -0.006893157958984375, 0.01800537109375, 0.0226898193359375, -0.005657196044921875, 0.041412353515625, -0.0104522705078125, 0.0019893646240234375, -0.003498077392578125, 0.0005555152893066406, -0.0104217529296875, 0.005016326904296875, 0.0164642333984375, -0.03143310546875, -0.01284027099609375, -0.0012578964233398438, 0.00848388671875, -0.037445068359375, 0.06292724609375, -0.060272216796875, -0.004123687744140625, -0.0240631103515625, 0.0263671875, -0.05133056640625, 0.034027099609375, -0.0283966064453125, -0.005519866943359375, -0.036407470703125, -0.0190582275390625, 0.043243408203125, -0.00798797607421875, -0.044281005859375, 0.03399658203125, 0.03314208984375, -0.0230560302734375, 0.04730224609375, -0.057708740234375, 0.082275390625, 0.050018310546875, 0.003467559814453125, 0.0272064208984375, 0.013214111328125, -0.02935791015625, 0.0215301513671875, 0.0103912353515625, -0.003757476806640625, 0.004657745361328125, -0.0029621124267578125, 0.019500732421875, -0.0195465087890625, 0.03973388671875, -0.0080413818359375, 0.0011339187622070312, -0.0282745361328125, 0.022247314453125, -0.00664520263671875, -0.002880096435546875, -0.041839599609375, -0.0010585784912109375, 0.0006856918334960938, 0.00450897216796875, 0.01248931884765625, -0.0557861328125, -0.05316162109375, -0.01561737060546875, 0.04791259765625, -0.006809234619140625, -0.033447265625, -0.0052337646484375, -0.0283966064453125, 0.048919677734375, -0.00753021240234375, -0.029510498046875, 0.0015134811401367188, 0.0073089599609375, 0.01015472412109375, 0.01425933837890625, -0.0225982666015625, -0.0097503662109375, 0.015960693359375, 0.0278778076171875, 0.0294952392578125, -0.0374755859375, -0.004665374755859375, 0.023406982421875, 0.02349853515625, 0.052337646484375, 0.02911376953125, -0.0189361572265625, 0.029876708984375, 0.00004947185516357422, -0.036956787109375, -0.08062744140625, 0.0095977783203125, -0.0750732421875, 0.0165863037109375, 0.003345489501953125, 0.00936126708984375, 0.0413818359375, -0.0214385986328125, -0.08062744140625, 0.101318359375, -0.035247802734375, -0.021881103515625, -0.06671142578125, 0.0062103271484375, 0.01251983642578125, 0.0023746490478515625, -0.0299530029296875, 0.005466461181640625, -0.048583984375, 0.0184478759765625, 0.017486572265625, 0.03314208984375, 0.0279541015625, 0.0069427490234375, -0.08416748046875, -0.0182647705078125, -0.05181884765625, 0.041107177734375, -0.00045943260192871094, -0.01287841796875, 0.016815185546875, 0.00989532470703125, -0.054290771484375, 0.01812744140625, -0.0003376007080078125, 0.054412841796875, -0.0065765380859375, -0.00357818603515625, -0.0035152435302734375, -0.0005674362182617188, 0.04412841796875, 0.004482269287109375, 0.00849151611328125, -0.0196533203125, -0.01751708984375, 0.00592041015625, -0.0232086181640625, -0.0201263427734375, 0.0341796875, -0.07049560546875, -0.0178375244140625, -0.014678955078125, -0.0169219970703125, 0.026153564453125, -0.045806884765625, -0.0301361083984375, 0.005397796630859375, -0.037078857421875, -0.00989532470703125, -0.0200042724609375, 0.0265350341796875, -0.038604736328125, 0.005859375, -0.0313720703125, -0.026092529296875, 0.00251007080078125, -0.051239013671875, -0.0160675048828125, -0.02490234375, 0.0131378173828125, 0.010772705078125, -0.0222625732421875, 0.01410675048828125, -0.027435302734375, 0.040924072265625, 0.01473236083984375, 0.0114288330078125, 0.025482177734375, -0.005352020263671875, 0.0269317626953125, 0.001312255859375, 0.047027587890625, -0.006618499755859375, 0.06243896484375, -0.01201629638671875, 0.0634765625, -0.01959228515625, 0.03192138671875, -0.0037403106689453125, -0.0010776519775390625, 0.01235198974609375, 0.01012420654296875, 0.007175445556640625, -0.035675048828125, -0.041961669921875, -0.0164642333984375, -0.0224761962890625, -0.0270538330078125, -0.039215087890625, 0.0085296630859375 ]
8ed15f6ecc4f0dc1e39cdd5fc5ed20f49b58cb87
Wordpress Stackexchange Q: Show a user their recently viewed posts I am working on a project that showcases a number of products, so I'd like to add a "recently viewed product" selection that keeps track of the last 5 or so viewed products or posts. I saw this plugin but its 2 years old and as of now doesn't look to be supported. Any ideas? A: You can add a timestamp to your post meta each time a product is viewed, then query the five most recently viewed products. Assuming you are using a custom post type named 'product', add the following inside the loop of your single-product.php template file: <?php if (get_post_type( $post->ID ) == 'product' ) update_post_meta( $post->ID, '_last_viewed', current_time('mysql') ); ?> To display the five most recently viewed products: <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'meta_key' => '_last_viewed', 'orderby' => 'meta_value', 'order' => 'DESC' ); query_posts( $args ); ?> <?php if( have_posts() ) : ?> <?php while( have_posts() ) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?>
Q: Show a user their recently viewed posts I am working on a project that showcases a number of products, so I'd like to add a "recently viewed product" selection that keeps track of the last 5 or so viewed products or posts. I saw this plugin but its 2 years old and as of now doesn't look to be supported. Any ideas? A: You can add a timestamp to your post meta each time a product is viewed, then query the five most recently viewed products. Assuming you are using a custom post type named 'product', add the following inside the loop of your single-product.php template file: <?php if (get_post_type( $post->ID ) == 'product' ) update_post_meta( $post->ID, '_last_viewed', current_time('mysql') ); ?> To display the five most recently viewed products: <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'meta_key' => '_last_viewed', 'orderby' => 'meta_value', 'order' => 'DESC' ); query_posts( $args ); ?> <?php if( have_posts() ) : ?> <?php while( have_posts() ) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?>
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:426938", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76564" }
[ 0.0498046875, -0.0295562744140625, -0.0033283233642578125, -0.034149169921875, 0.0161590576171875, -0.02496337890625, 0.0609130859375, 0.0029277801513671875, 0.02825927734375, 0.01154327392578125, -0.0460205078125, -0.0193023681640625, -0.0518798828125, -0.0230712890625, -0.022064208984375, -0.058746337890625, 0.0572509765625, -0.0249176025390625, 0.05499267578125, 0.028228759765625, -0.03741455078125, 0.07568359375, 0.08880615234375, 0.0116119384765625, 0.003925323486328125, 0.0229034423828125, 0.054412841796875, -0.03802490234375, 0.0001760721206665039, -0.031005859375, 0.01398468017578125, 0.0115509033203125, 0.01800537109375, -0.0239715576171875, 0.047088623046875, 0.00901031494140625, 0.0128936767578125, -0.0128936767578125, 0.033477783203125, -0.014739990234375, -0.0114288330078125, 0.0182037353515625, -0.0023441314697265625, 0.0154571533203125, -0.03643798828125, -0.006256103515625, -0.024322509765625, -0.01520538330078125, -0.0134735107421875, -0.015777587890625, 0.0207977294921875, -0.0251312255859375, 0.03466796875, 0.0014362335205078125, -0.030609130859375, 0.007099151611328125, -0.0153656005859375, 0.0248260498046875, 0.0616455078125, -0.034820556640625, -0.04974365234375, -0.041290283203125, 0.039703369140625, -0.018646240234375, -0.0167083740234375, 0.00775146484375, 0.03564453125, 0.029541015625, -0.031341552734375, -0.039642333984375, 0.01111602783203125, -0.006069183349609375, -0.0014438629150390625, -0.0287628173828125, -0.015045166015625, -0.021759033203125, 0.0133514404296875, -0.0531005859375, -0.0176239013671875, 0.00734710693359375, -0.043365478515625, -0.006195068359375, -0.027618408203125, -0.0252532958984375, -0.01338958740234375, 0.0009174346923828125, -0.028076171875, 0.00957489013671875, -0.009063720703125, -0.031402587890625, -0.015594482421875, 0.00705718994140625, -0.0246734619140625, 0.0108184814453125, -0.0203704833984375, -0.0189056396484375, 0.0279083251953125, 0.0258331298828125, -0.0234527587890625, -0.045318603515625, 0.01325225830078125, -0.034423828125, -0.061492919921875, 0.016265869140625, -0.0071258544921875, -0.0012264251708984375, 0.002094268798828125, 0.026824951171875, 0.039886474609375, 0.0477294921875, 0.0023822784423828125, 0.010711669921875, -0.0012178421020507812, -0.0189971923828125, -0.0362548828125, 0.01441192626953125, -0.0306243896484375, -0.00848388671875, 0.01358795166015625, 0.01334381103515625, -0.00917816162109375, 0.017120361328125, -0.022674560546875, -0.0029926300048828125, 0.0161590576171875, -0.0006089210510253906, -0.01239013671875, -0.0027980804443359375, 0.0108184814453125, 0.046539306640625, -0.0312347412109375, -0.02520751953125, 0.0240020751953125, 0.032745361328125, 0.0009794235229492188, -0.0298614501953125, 0.033294677734375, -0.00867462158203125, -0.0133056640625, 0.0328369140625, -0.0264739990234375, -0.0243988037109375, 0.0056304931640625, -0.04241943359375, 0.020965576171875, -0.004016876220703125, -0.01207733154296875, 0.03045654296875, 0.042022705078125, 0.0015726089477539062, 0.03271484375, -0.0278778076171875, 0.005645751953125, 0.005580902099609375, 0.0018281936645507812, 0.019378662109375, -0.004795074462890625, 0.000013053417205810547, 0.003570556640625, -0.0011472702026367188, 0.05877685546875, -0.0166778564453125, -0.018585205078125, -0.0240478515625, -0.06781005859375, 0.016998291015625, -0.06365966796875, -0.0218048095703125, 0.0178985595703125, 0.04437255859375, -0.01428985595703125, -0.019775390625, 0.05322265625, 0.01537322998046875, -0.0181427001953125, 0.01251220703125, -0.0162353515625, 0.04180908203125, 0.026123046875, -0.042999267578125, -0.036041259765625, -0.0499267578125, 0.03765869140625, -0.0228424072265625, -0.016357421875, 0.026947021484375, 0.007663726806640625, 0.0298004150390625, -0.015167236328125, 0.0267333984375, 0.0224609375, 0.0421142578125, -0.039154052734375, 0.06805419921875, -0.0110321044921875, -0.03631591796875, -0.024261474609375, -0.0078887939453125, -0.023162841796875, -0.0213470458984375, 0.0102081298828125, 0.007167816162109375, -0.005634307861328125, 0.0013141632080078125, -0.09375, 0.043060302734375, -0.0380859375, 0.04461669921875, -0.004940032958984375, 0.0093536376953125, 0.0237274169921875, 0.0090484619140625, -0.03466796875, 0.00528717041015625, -0.030731201171875, -0.002536773681640625, -0.02410888671875, 0.0171966552734375, -0.00940704345703125, 0.006256103515625, -0.0028095245361328125, -0.0218353271484375, 0.002017974853515625, 0.0211029052734375, 0.033203125, -0.0072174072265625, -0.023345947265625, -0.019775390625, -0.013916015625, 0.01401519775390625, -0.036895751953125, 0.0235595703125, -0.0010271072387695312, -0.0055084228515625, -0.02252197265625, 0.006572723388671875, -0.005268096923828125, -0.06268310546875, 0.0090789794921875, 0.05645751953125, 0.0311279296875, 0.04205322265625, 0.006542205810546875, 0.03948974609375, 0.038909912109375, -0.019256591796875, 0.0291595458984375, -0.01264190673828125, -0.0189666748046875, 0.0189971923828125, 0.039306640625, 0.039947509765625, 0.0131378173828125, 0.01806640625, 0.00830078125, 0.0185699462890625, 0.0014410018920898438, 0.06048583984375, -0.057861328125, 0.01560211181640625, -0.02069091796875, -0.0013284683227539062, 0.0306549072265625, -0.0287322998046875, 0.05908203125, 0.0243682861328125, 0.0404052734375, 0.033294677734375, -0.017974853515625, 0.01312255859375, -0.001312255859375, -0.0186767578125, -0.01224517822265625, -0.0051422119140625, -0.02081298828125, -0.038330078125, -0.079833984375, 0.035491943359375, 0.0104522705078125, -0.037689208984375, -0.014739990234375, -0.0169677734375, -0.0207672119140625, 0.002452850341796875, 0.011138916015625, -0.047882080078125, 0.005413055419921875, 0.037933349609375, 0.0265960693359375, 0.024993896484375, 0.045501708984375, 0.023040771484375, -0.02886962890625, 0.049041748046875, 0.009979248046875, -0.0029125213623046875, -0.01226043701171875, -0.08740234375, 0.07598876953125, -0.08184814453125, 0.0361328125, 0.06939697265625, -0.01715087890625, 0.030181884765625, 0.00612640380859375, 0.00274658203125, 0.0013580322265625, -0.005588531494140625, -0.0221710205078125, 0.0009756088256835938, -0.0804443359375, -0.0271453857421875, 0.031341552734375, 0.078125, 0.001361846923828125, -0.0452880859375, 0.02099609375, 0.049530029296875, -0.057220458984375, -0.07672119140625, 0.0184326171875, -0.06707763671875, -0.0079498291015625, 0.0007333755493164062, -0.043487548828125, -0.0189971923828125, 0.047882080078125, 0.012176513671875, -0.055572509765625, 0.016632080078125, -0.0217742919921875, -0.0379638671875, -0.0244598388671875, 0.0229034423828125, -0.007717132568359375, 0.0162353515625, 0.006198883056640625, 0.027252197265625, -0.012359619140625, -0.061981201171875, -0.044891357421875, -0.047119140625, -0.0239715576171875, -0.01418304443359375, 0.0128936767578125, 0.0027484893798828125, -0.0274810791015625, 0.0272216796875, -0.007106781005859375, 0.004100799560546875, -0.00777435302734375, -0.0361328125, 0.0120849609375, -0.0022907257080078125, 0.032196044921875, -0.026153564453125, -0.0272674560546875, 0.0455322265625, 0.024871826171875, -0.013519287109375, 0.048095703125, -0.01537322998046875, 0.00765228271484375, -0.024200439453125, -0.01378631591796875, -0.01097869873046875, -0.0261383056640625, -0.0079803466796875, 0.028839111328125, -0.00380706787109375, 0.020904541015625, -0.0252227783203125, 0.024627685546875, 0.017547607421875, 0.0286407470703125, -0.033355712890625, 0.0115966796875, -0.00803375244140625, -0.00173187255859375, -0.00843048095703125, 0.035064697265625, -0.006603240966796875, 0.0276336669921875, -0.0733642578125, -0.035308837890625, 0.06402587890625, 0.0382080078125, 0.00705718994140625, -0.01355743408203125, -0.058624267578125, 0.018798828125, 0.10125732421875, -0.0312347412109375, -0.033233642578125, 0.001148223876953125, -0.0142059326171875, 0.00350189208984375, 0.02191162109375, -0.0418701171875, -0.00908660888671875, -0.0972900390625, -0.0003838539123535156, -0.00926971435546875, -0.046966552734375, -0.0012073516845703125, 0.00223541259765625, -0.06805419921875, -0.01177215576171875, 0.044036865234375, 0.007076263427734375, 0.003528594970703125, 0.034088134765625, 0.0033016204833984375, 0.010406494140625, -0.048095703125, -0.0037689208984375, -0.01861572265625, -0.00415802001953125, -0.0211181640625, 0.03924560546875, 0.028900146484375, -0.0076904296875, -0.0006632804870605469, 0.05535888671875, 0.0361328125, 0.00022780895233154297, 0.009735107421875, -0.0260009765625, 0.00719451904296875, -0.0054168701171875, 0.00469207763671875, -0.0218505859375, 0.01247406005859375, -0.0343017578125, -0.0146636962890625, -0.0311431884765625, -0.085693359375, -0.007671356201171875, -0.0626220703125, -0.01265716552734375, -0.07208251953125, -0.03253173828125, 0.0167999267578125, 0.0177001953125, -0.020660400390625, 0.0212554931640625, -0.02471923828125, -0.05810546875, 0.01532745361328125, 0.0023345947265625, -0.03076171875, 0.01224517822265625, 0.039154052734375, 0.01145172119140625, -0.0335693359375, -0.024261474609375, -0.006267547607421875, 0.036163330078125, 0.00003081560134887695, -0.0244903564453125, -0.00177764892578125, -0.0447998046875, 0.01186370849609375, 0.022369384765625, 0.0195770263671875, -0.01122283935546875, 0.031890869140625, -0.00609588623046875, -0.01229095458984375, 0.0265045166015625, -0.0125732421875, 0.003078460693359375, 0.00025534629821777344, -0.0282440185546875, -0.03790283203125, -0.032257080078125, 0.047210693359375, 0.000408172607421875, 0.0555419921875, -0.028228759765625, -0.01239013671875, -0.0096893310546875, -0.00495147705078125, 0.03936767578125, 0.045013427734375, -0.00946807861328125, 0.0263824462890625, 0.0267333984375, -0.01435089111328125, -0.044403076171875, -0.01910400390625, 0.01201629638671875, -0.00428009033203125, 0.014984130859375, -0.013275146484375, -0.043975830078125, 0.007213592529296875, 0.01340484619140625, 0.0152587890625, -0.026641845703125, -0.00762939453125, -0.007801055908203125, -0.00628662109375, -0.031463623046875, 0.0225830078125, 0.051910400390625, 0.005580902099609375, -0.00058746337890625, -0.004779815673828125, -0.0406494140625, 0.0184783935546875, -0.047271728515625, -0.01995849609375, -0.0005369186401367188, -0.0012674331665039062, -0.005962371826171875, 0.11431884765625, -0.0176239013671875, 0.076904296875, -0.027435302734375, 0.060882568359375, 0.056884765625, 0.01526641845703125, 0.0063323974609375, -0.0070037841796875, 0.00196075439453125, -0.0180206298828125, 0.0013742446899414062, -0.01488494873046875, -0.0124359130859375, -0.01087188720703125, 0.029205322265625, -0.02716064453125, 0.0051116943359375, 0.033782958984375, -0.0157318115234375, -0.01239776611328125, 0.0257568359375, 0.01441192626953125, -0.011474609375, -0.030517578125, 0.0309600830078125, 0.039459228515625, 0.005107879638671875, 0.01544952392578125, -0.05694580078125, -0.0220184326171875, -0.03997802734375, -0.0215606689453125, -0.0174713134765625, -0.025787353515625, -0.0264739990234375, -0.004932403564453125, -0.01500701904296875, 0.029296875, -0.05950927734375, -0.0125274658203125, -0.0243988037109375, -0.023162841796875, 0.0518798828125, 0.0155792236328125, 0.070556640625, -0.044403076171875, -0.04168701171875, -0.022613525390625, -0.0088653564453125, 0.0262908935546875, -0.003955841064453125, -0.034942626953125, 0.0012340545654296875, -0.025054931640625, -0.0216827392578125, 0.00225830078125, -0.0173797607421875, -0.01511383056640625, -0.012451171875, 0.0299224853515625, 0.03961181640625, -0.0119171142578125, -0.053680419921875, -0.00351715087890625, -0.02899169921875, -0.00727081298828125, 0.052947998046875, 0.0091705322265625, 0.03192138671875, 0.0284271240234375, 0.072509765625, 0.04876708984375, 0.0179901123046875, -0.052032470703125, -0.03521728515625, -0.0004131793975830078, 0.010406494140625, -0.0350341796875, -0.00884246826171875, -0.023284912109375, 0.0101776123046875, 0.081298828125, -0.0181121826171875, 0.023529052734375, -0.04296875, 0.01029205322265625, -0.030731201171875, 0.0113983154296875, -0.07049560546875, -0.0645751953125, 0.03009033203125, -0.0439453125, -0.0404052734375, 0.0248870849609375, -0.017547607421875, 0.006214141845703125, 0.0086822509765625, -0.0254058837890625, 0.0182647705078125, -0.0178985595703125, 0.015899658203125, 0.0640869140625, 0.0047760009765625, 0.050201416015625, 0.0280914306640625, 0.0325927734375, 0.045501708984375, -0.0033168792724609375, 0.016693115234375, 0.038909912109375, 0.033660888671875, -0.0255889892578125, 0.035675048828125, 0.002872467041015625, 0.0011043548583984375, -0.0379638671875, -0.01334381103515625, -0.00925445556640625, 0.0070648193359375, -0.007740020751953125, -0.02972412109375, -0.0036773681640625, -0.00620269775390625, 0.020965576171875, 0.00843048095703125, -0.01523590087890625, 0.044586181640625, -0.0281829833984375, -0.005344390869140625, 0.017791748046875, -0.025787353515625, 0.0083160400390625, 0.00583648681640625, 0.04278564453125, -0.0172882080078125, -0.09271240234375, -0.052734375, 0.0465087890625, -0.06500244140625, -0.0543212890625, -0.0244293212890625, 0.01983642578125, -0.0030193328857421875, -0.028167724609375, 0.06280517578125, -0.02923583984375, 0.058013916015625, 0.03778076171875, 0.015960693359375, 0.0014400482177734375, 0.0672607421875, -0.0163116455078125, 0.02490234375, 0.034454345703125, -0.0231781005859375, -0.01171112060546875, 0.000008344650268554688, -0.00652313232421875, 0.0263824462890625, -0.0193023681640625, 0.0017538070678710938, -0.0272064208984375, 0.01303863525390625, -0.007232666015625, 0.03985595703125, 0.056610107421875, 0.005706787109375, -0.0540771484375, 0.03741455078125, 0.018402099609375, -0.0177459716796875, 0.0245819091796875, 0.023345947265625, -0.0114593505859375, 0.00946807861328125, 0.00786590576171875, -0.0306549072265625, -0.0361328125, -0.0242919921875, -0.08367919921875, 0.08148193359375, -0.02020263671875, 0.050506591796875, 0.0296173095703125, 0.0145263671875, -0.019775390625, -0.0330810546875, -0.0196075439453125, 0.061614990234375, -0.036224365234375, 0.0748291015625, -0.0521240234375, -0.018829345703125, 0.030303955078125, 0.05126953125, 0.066162109375, 0.020538330078125, -0.057769775390625, -0.014556884765625, 0.045166015625, 0.0265350341796875, 0.005321502685546875, 0.046661376953125, -0.03570556640625, 0.0447998046875, 0.05535888671875, -0.05279541015625, 0.03375244140625, 0.0150604248046875, -0.033599853515625, -0.002826690673828125, -0.0013933181762695312, -0.00499725341796875, -0.043243408203125, 0.041900634765625, -0.03955078125, -0.025909423828125, 0.028472900390625, -0.0132293701171875, 0.028564453125, 0.03302001953125, 0.044647216796875, -0.0447998046875, 0.0022144317626953125, -0.026611328125, 0.04608154296875, 0.01348114013671875, 0.01155853271484375, 0.036346435546875, 0.0179290771484375, 0.0173797607421875, -0.01641845703125, 0.0031299591064453125, -0.00824737548828125, -0.013458251953125, 0.0635986328125, 0.03741455078125, 0.018035888671875, -0.039398193359375, -0.01160430908203125, 0.038726806640625, 0.08172607421875, -0.05572509765625, -0.00774383544921875, 0.023834228515625, 0.0223388671875, -0.0156707763671875, -0.0196380615234375, -0.01125335693359375, 0.01526641845703125, 0.0335693359375, -0.035430908203125, -0.0185089111328125, 0.01546478271484375, 0.0361328125, 0.0057373046875, -0.01273345947265625, -0.01995849609375, -0.0284423828125, -0.01448822021484375, -0.006748199462890625, 0.0137786865234375, 0.03131103515625, 0.017425537109375, -0.000804901123046875, -0.00653076171875, -0.00902557373046875, 0.0019664764404296875, -0.0196990966796875, -0.0305938720703125, -0.0048675537109375, -0.029937744140625, -0.03424072265625, -0.0237884521484375, 0.041229248046875, 0.0345458984375, -0.020904541015625, 0.043182373046875, 0.0347900390625, -0.047210693359375, -0.00209808349609375, 0.045623779296875, -0.015167236328125, -0.00811767578125, -0.01137542724609375, -0.006427764892578125, 0.0159759521484375, 0.005008697509765625, -0.012542724609375, -0.0000921487808227539, 0.038116455078125, -0.05322265625, 0.06781005859375, -0.024505615234375, -0.01049041748046875, 0.0159759521484375, 0.00783538818359375, 0.0665283203125, -0.023834228515625, -0.02337646484375, -0.0019779205322265625, -0.03424072265625, -0.029144287109375, 0.016693115234375, 0.0174713134765625, -0.0254974365234375, 0.040985107421875, 0.00498199462890625, 0.0115509033203125, 0.01155853271484375, 0.005828857421875, -0.01275634765625, 0.036773681640625, 0.046173095703125, 0.00708770751953125, -0.039459228515625, -0.01277923583984375, 0.006328582763671875, 0.0174102783203125, 0.0020351409912109375, -0.007293701171875, 0.01546478271484375, 0.0265655517578125, -0.007678985595703125, 0.005252838134765625, -0.022918701171875, -0.0242462158203125, 0.074462890625, -0.015869140625, -0.034271240234375, -0.002964019775390625, 0.00989532470703125, 0.01201629638671875, 0.05938720703125, -0.01509857177734375, -0.0046234130859375, 0.0045623779296875, 0.0189056396484375, -0.0179290771484375, 0.044677734375, -0.0301055908203125, -0.0004336833953857422, -0.047576904296875, -0.041595458984375, 0.03936767578125, -0.019866943359375, -0.033477783203125, -0.005115509033203125, 0.038604736328125, -0.03814697265625, 0.002414703369140625, 0.0203094482421875, 0.020782470703125, 0.0384521484375, 0.017730712890625, 0.039306640625, -0.015533447265625, -0.019439697265625, 0.01378631591796875, 0.005054473876953125, -0.037322998046875, 0.024261474609375, -0.0049591064453125, 0.0252838134765625, 0.003101348876953125, 0.015777587890625, -0.043914794921875, -0.0123138427734375, 0.028411865234375, -0.004596710205078125, -0.0186614990234375, -0.035614013671875, -0.0162353515625, -0.04534912109375, 0.00455474853515625, 0.00708770751953125, -0.019012451171875, -0.0267333984375, -0.0256805419921875, 0.0276031494140625, -0.0096435546875, -0.0017461776733398438, -0.052337646484375, 0.068115234375, -0.0181427001953125, -0.0059967041015625, -0.034881591796875, -0.039703369140625, 0.0159454345703125, 0.063232421875, -0.00945281982421875, 0.006099700927734375, -0.0340576171875, -0.032958984375, -0.02392578125, -0.01654052734375, -0.01119232177734375, -0.0156097412109375, 0.000045180320739746094, -0.035369873046875, 0.0026721954345703125, 0.01107025146484375, 0.04486083984375, 0.0008673667907714844, 0.040863037109375, 0.00510406494140625, -0.0404052734375, -0.078125, 0.00463104248046875, -0.043731689453125, 0.006710052490234375, -0.00916290283203125, 0.0232391357421875, 0.0244293212890625, -0.031524658203125, -0.09613037109375, 0.051177978515625, -0.0295562744140625, -0.0364990234375, -0.039581298828125, -0.01003265380859375, -0.01265716552734375, 0.0556640625, 0.002460479736328125, -0.01873779296875, -0.04058837890625, 0.018768310546875, 0.01052093505859375, 0.0064697265625, 0.04345703125, -0.004924774169921875, -0.0297088623046875, -0.0147552490234375, -0.0183563232421875, -0.01611328125, 0.006961822509765625, 0.004520416259765625, 0.02703857421875, 0.04913330078125, -0.00440216064453125, -0.0025539398193359375, 0.006214141845703125, -0.0223541259765625, -0.01080322265625, -0.0169830322265625, -0.04510498046875, -0.03961181640625, 0.03662109375, 0.0306549072265625, 0.01495361328125, -0.000408172607421875, 0.036712646484375, -0.0179290771484375, -0.0286102294921875, 0.01983642578125, 0.0101318359375, -0.02117919921875, 0.00962066650390625, 0.019683837890625, -0.0187225341796875, -0.015228271484375, 0.00835418701171875, -0.05914306640625, -0.0001583099365234375, 0.002597808837890625, 0.01143646240234375, -0.0657958984375, 0.0253753662109375, -0.002895355224609375, -0.0208892822265625, -0.03753662109375, 0.0008678436279296875, -0.00682830810546875, -0.04779052734375, -0.004817962646484375, 0.06610107421875, 0.0165863037109375, -0.005970001220703125, -0.00345611572265625, 0.05841064453125, 0.004474639892578125, 0.0145263671875, -0.03155517578125, -0.0086822509765625, 0.005970001220703125, -0.00870513916015625, -0.0226593017578125, 0.0218353271484375, 0.01419830322265625, -0.006984710693359375, 0.0655517578125, -0.01343536376953125, -0.0299835205078125, -0.0226593017578125, 0.0222320556640625, -0.03302001953125, 0.0027790069580078125, 0.01338958740234375, -0.0255126953125, -0.01105499267578125, -0.0164947509765625, -0.05206298828125, -0.06707763671875, 0.0031833648681640625, 0.058807373046875, -0.02862548828125, 0.024169921875 ]
1b814c1d947a21c314b8651acfe5c94270e7a126
Wordpress Stackexchange Q: Get the name of user who updated post Does anyone know how to get the name of the user who last updated a post/page please? (Not the post author). I can see that it is visible in the post/page revisions but don't know how to access it. Any ideas/help greatly appreciated. A: You can use the_modified_author(); See https://codex.wordpress.org/Function_Reference/the_modified_author <p>This post was last modified by <?php the_modified_author(); ?></p>
Q: Get the name of user who updated post Does anyone know how to get the name of the user who last updated a post/page please? (Not the post author). I can see that it is visible in the post/page revisions but don't know how to access it. Any ideas/help greatly appreciated. A: You can use the_modified_author(); See https://codex.wordpress.org/Function_Reference/the_modified_author <p>This post was last modified by <?php the_modified_author(); ?></p>
wordpress
{ "language": "en", "length": 68, "provenance": "stackexchange_00019.jsonl.gz:426943", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76582" }
[ 0.00434112548828125, -0.007350921630859375, -0.02001953125, -0.0211029052734375, -0.01192474365234375, -0.0196380615234375, -0.00966644287109375, 0.005191802978515625, -0.0015506744384765625, 0.038970947265625, -0.0267486572265625, -0.0014505386352539062, 0.00855255126953125, 0.002910614013671875, -0.035552978515625, -0.032806396484375, 0.036956787109375, 0.004886627197265625, 0.048614501953125, 0.009002685546875, -0.017822265625, 0.03192138671875, 0.05120849609375, 0.038177490234375, 0.04254150390625, -0.01511383056640625, 0.0362548828125, 0.0025177001953125, 0.0396728515625, -0.0026416778564453125, 0.03619384765625, -0.0297393798828125, -0.01313018798828125, 0.0305023193359375, -0.004924774169921875, -0.0106048583984375, -0.00033545494079589844, 0.02618408203125, 0.038482666015625, -0.024017333984375, 0.0168609619140625, -0.00011616945266723633, -0.049774169921875, 0.0191650390625, -0.03875732421875, -0.04437255859375, 0.01029205322265625, -0.004238128662109375, 0.0318603515625, 0.03564453125, -0.0015201568603515625, 0.02789306640625, 0.00177001953125, 0.031494140625, -0.0113983154296875, -0.017059326171875, 0.0391845703125, 0.018524169921875, 0.048614501953125, -0.11016845703125, -0.07598876953125, -0.0166778564453125, 0.060638427734375, 0.039886474609375, -0.0261993408203125, 0.0008120536804199219, 0.069091796875, -0.0134429931640625, -0.04144287109375, -0.02252197265625, 0.0445556640625, 0.00537872314453125, -0.0095672607421875, 0.0234222412109375, -0.022308349609375, -0.06781005859375, 0.0290985107421875, -0.03875732421875, 0.004665374755859375, 0.033233642578125, -0.01922607421875, 0.00881195068359375, -0.054718017578125, -0.0162353515625, 0.0106964111328125, 0.022491455078125, -0.0138092041015625, -0.0227508544921875, -0.040252685546875, -0.0159149169921875, -0.0299530029296875, -0.032440185546875, -0.038909912109375, 0.0302276611328125, -0.0183868408203125, -0.007293701171875, 0.0262298583984375, 0.075439453125, -0.045379638671875, -0.0302734375, -0.021331787109375, -0.0007061958312988281, -0.05108642578125, -0.0143890380859375, -0.0193328857421875, 0.003631591796875, 0.033172607421875, 0.04400634765625, 0.00714111328125, 0.023895263671875, -0.022705078125, -0.0167236328125, -0.030426025390625, -0.031280517578125, -0.0184326171875, 0.06146240234375, -0.0301055908203125, 0.017059326171875, 0.004688262939453125, 0.0433349609375, 0.0109405517578125, 0.0194244384765625, -0.013031005859375, -0.017669677734375, 0.01262664794921875, -0.0292510986328125, -0.04541015625, 0.0230255126953125, 0.0491943359375, 0.00751495361328125, -0.045684814453125, 0.0059051513671875, 0.044525146484375, 0.0034027099609375, 0.006275177001953125, -0.0309295654296875, -0.0217132568359375, 0.01204681396484375, -0.01102447509765625, 0.026947021484375, -0.07037353515625, -0.0163116455078125, 0.054718017578125, -0.047210693359375, -0.01021575927734375, 0.006557464599609375, 0.01788330078125, 0.031494140625, 0.00005793571472167969, -0.047088623046875, -0.007843017578125, 0.020843505859375, -0.004962921142578125, 0.00628662109375, 0.050506591796875, -0.0293121337890625, 0.03253173828125, -0.029205322265625, 0.03753662109375, -0.01065826416015625, 0.045074462890625, 0.0227203369140625, 0.037872314453125, 0.052703857421875, 0.006862640380859375, -0.004726409912109375, -0.0251312255859375, -0.0142974853515625, 0.0257568359375, 0.0100250244140625, 0.04412841796875, -0.0018606185913085938, 0.0478515625, 0.03497314453125, 0.002086639404296875, 0.004119873046875, -0.00817108154296875, -0.0118865966796875, 0.01068115234375, 0.0343017578125, -0.002956390380859375, -0.025421142578125, -0.0247802734375, 0.007434844970703125, -0.005977630615234375, 0.00235748291015625, 0.004955291748046875, 0.032073974609375, 0.02001953125, 0.006320953369140625, -0.00841522216796875, 0.004726409912109375, -0.0281219482421875, 0.035858154296875, 0.005603790283203125, 0.0107269287109375, -0.0535888671875, 0.0160980224609375, -0.0244903564453125, -0.03594970703125, -0.01534271240234375, -0.013916015625, -0.00153350830078125, 0.0161590576171875, -0.051727294921875, 0.003509521484375, -0.0312347412109375, 0.0165557861328125, 0.03375244140625, -0.00206756591796875, 0.00287628173828125, -0.0029163360595703125, -0.0177154541015625, -0.01580810546875, -0.06591796875, 0.01453399658203125, -0.043121337890625, -0.026580810546875, -0.0107269287109375, 0.006488800048828125, -0.026397705078125, 0.0294342041015625, -0.03802490234375, -0.0172119140625, 0.010223388671875, -0.03912353515625, -0.005878448486328125, -0.0298004150390625, -0.01021575927734375, -0.01207733154296875, -0.020050048828125, 0.03948974609375, -0.00250244140625, 0.0139007568359375, -0.006122589111328125, -0.01390838623046875, -0.01561737060546875, -0.0654296875, 0.0243377685546875, 0.052490234375, 0.0160369873046875, 0.00945281982421875, -0.005382537841796875, 0.021087646484375, 0.07415771484375, 0.009033203125, 0.004856109619140625, 0.01444244384765625, 0.02581787109375, 0.07305908203125, 0.004261016845703125, -0.0006737709045410156, -0.0078277587890625, -0.041229248046875, -0.0014104843139648438, 0.03179931640625, 0.0160064697265625, 0.0633544921875, -0.044921875, 0.0005598068237304688, -0.026641845703125, -0.04364013671875, 0.0008592605590820312, -0.043975830078125, 0.0189208984375, 0.0149078369140625, 0.036285400390625, 0.041839599609375, -0.022491455078125, -0.0157318115234375, 0.01154327392578125, 0.0224456787109375, 0.0201416015625, 0.05584716796875, -0.0273895263671875, 0.033721923828125, -0.0096435546875, -0.023223876953125, 0.01503753662109375, 0.0179290771484375, -0.023345947265625, -0.0413818359375, 0.028533935546875, 0.006572723388671875, 0.03167724609375, -0.023193359375, 0.05657958984375, -0.0003857612609863281, -0.028961181640625, 0.01103973388671875, 0.0239105224609375, 0.02825927734375, -0.01108551025390625, 0.00942230224609375, -0.0103302001953125, 0.002819061279296875, -0.038482666015625, -0.04156494140625, 0.0230865478515625, -0.0323486328125, 0.00894927978515625, 0.061553955078125, 0.01288604736328125, 0.0007901191711425781, 0.03192138671875, -0.0177154541015625, 0.04388427734375, 0.00800323486328125, 0.0106353759765625, 0.0209197998046875, -0.05328369140625, 0.01088714599609375, 0.0192413330078125, 0.033294677734375, -0.0289306640625, -0.035888671875, -0.0272674560546875, 0.015167236328125, -0.0849609375, -0.056182861328125, -0.053741455078125, -0.08203125, -0.032562255859375, -0.0032711029052734375, -0.041595458984375, 0.029327392578125, 0.02862548828125, 0.00934600830078125, 0.0078277587890625, -0.005313873291015625, -0.04864501953125, -0.050384521484375, -0.0703125, -0.04412841796875, -0.0122528076171875, 0.01549530029296875, -0.00745391845703125, 0.04486083984375, -0.01800537109375, -0.0782470703125, -0.0731201171875, -0.0182952880859375, -0.0234832763671875, -0.027191162109375, -0.007701873779296875, 0.0274505615234375, -0.00027108192443847656, 0.03466796875, -0.0295562744140625, 0.01137542724609375, -0.0119171142578125, -0.03558349609375, -0.00274658203125, -0.0223388671875, 0.017486572265625, 0.048553466796875, -0.01274871826171875, 0.02423095703125, 0.058807373046875, -0.027008056640625, 0.00942230224609375, -0.00769805908203125, -0.01549530029296875, -0.004322052001953125, -0.005096435546875, -0.00850677490234375, -0.034271240234375, 0.02496337890625, 0.0168609619140625, 0.021575927734375, -0.0154266357421875, 0.01262664794921875, 0.0015611648559570312, -0.0011053085327148438, 0.0308990478515625, 0.0018939971923828125, -0.029449462890625, -0.0270233154296875, 0.056396484375, -0.01134490966796875, 0.0022830963134765625, -0.0155181884765625, 0.01401519775390625, -0.0254669189453125, -0.019927978515625, 0.0222320556640625, -0.0518798828125, 0.0139007568359375, -0.050872802734375, -0.02435302734375, -0.0452880859375, 0.0645751953125, 0.029510498046875, -0.0333251953125, -0.012786865234375, 0.0033817291259765625, -0.06793212890625, 0.0085906982421875, -0.0263671875, 0.012420654296875, -0.0611572265625, 0.01557159423828125, -0.0015468597412109375, -0.005580902099609375, -0.057037353515625, 0.074951171875, -0.05169677734375, -0.0089263916015625, 0.026702880859375, -0.031463623046875, -0.0174560546875, -0.005519866943359375, -0.037994384765625, -0.01110076904296875, -0.0211334228515625, -0.032135009765625, -0.06390380859375, -0.00972747802734375, -0.0225372314453125, 0.043548583984375, 0.02301025390625, -0.01418304443359375, -0.0102386474609375, 0.031280517578125, 0.0341796875, 0.0321044921875, 0.00522613525390625, -0.0222625732421875, 0.0200042724609375, -0.00860595703125, 0.01328277587890625, -0.0274505615234375, 0.01629638671875, -0.02349853515625, -0.037841796875, -0.0214691162109375, -0.0516357421875, 0.004947662353515625, -0.032989501953125, -0.02203369140625, -0.042694091796875, -0.032501220703125, 0.005954742431640625, 0.0428466796875, -0.017547607421875, 0.03460693359375, -0.056243896484375, -0.05792236328125, 0.06085205078125, 0.04949951171875, -0.00618743896484375, -0.007175445556640625, 0.0753173828125, 0.00832366943359375, -0.041168212890625, -0.0477294921875, -0.0011920928955078125, 0.040771484375, -0.0003414154052734375, 0.01331329345703125, 0.0220489501953125, -0.0293731689453125, 0.013885498046875, 0.01316070556640625, -0.016876220703125, 0.00791168212890625, 0.026153564453125, -0.01323699951171875, -0.037841796875, 0.0206451416015625, -0.03875732421875, 0.01397705078125, -0.003719329833984375, -0.058441162109375, 0.0341796875, -0.0208740234375, 0.03289794921875, -0.05975341796875, 0.0731201171875, -0.0162200927734375, -0.0562744140625, 0.0080108642578125, -0.035400390625, 0.0232696533203125, 0.02099609375, 0.0069580078125, 0.0220947265625, 0.008026123046875, -0.0009565353393554688, -0.06109619140625, -0.05206298828125, -0.01311492919921875, 0.02301025390625, -0.06640625, -0.0028820037841796875, -0.01373291015625, -0.018280029296875, 0.0758056640625, 0.0152435302734375, -0.04913330078125, 0.048004150390625, -0.0094757080078125, 0.00005704164505004883, 0.01050567626953125, 0.01256561279296875, 0.032562255859375, 0.0238800048828125, 0.007617950439453125, 0.01110076904296875, 0.01042938232421875, 0.000037670135498046875, -0.01207733154296875, 0.034881591796875, -0.007678985595703125, 0.00399017333984375, 0.0117340087890625, 0.0755615234375, 0.01032257080078125, 0.022216796875, -0.042999267578125, 0.021240234375, -0.002361297607421875, 0.00870513916015625, 0.024505615234375, 0.0134735107421875, 0.0022487640380859375, -0.016265869140625, -0.01288604736328125, -0.027923583984375, 0.01873779296875, 0.031494140625, 0.042694091796875, 0.04083251953125, -0.003452301025390625, -0.004367828369140625, -0.046234130859375, 0.00826263427734375, 0.0311279296875, 0.0552978515625, -0.02874755859375, -0.0030422210693359375, 0.016876220703125, 0.00942230224609375, -0.01030731201171875, 0.0039005279541015625, -0.01342010498046875, -0.026763916015625, -0.00414276123046875, -0.0218353271484375, 0.0027065277099609375, -0.036285400390625, -0.0222320556640625, -0.044952392578125, -0.024169921875, -0.004547119140625, 0.003917694091796875, 0.005901336669921875, -0.015228271484375, -0.037994384765625, 0.042999267578125, 0.0018415451049804688, 0.042694091796875, -0.05120849609375, 0.006633758544921875, 0.0288848876953125, -0.01381683349609375, 0.07562255859375, 0.0246429443359375, -0.0423583984375, 0.0011157989501953125, -0.0543212890625, -0.007152557373046875, -0.0006337165832519531, -0.0237884521484375, -0.0183258056640625, -0.016143798828125, 0.0196533203125, 0.03717041015625, 0.00904083251953125, 0.01126861572265625, -0.0120697021484375, 0.0123138427734375, -0.005367279052734375, 0.05291748046875, 0.031097412109375, 0.07470703125, -0.0152740478515625, 0.08251953125, 0.03131103515625, 0.04144287109375, -0.077392578125, -0.03326416015625, 0.02655029296875, 0.0175018310546875, -0.028045654296875, -0.0306243896484375, 0.0041656494140625, -0.06719970703125, -0.00669097900390625, -0.019866943359375, 0.00704193115234375, -0.01471710205078125, 0.0209503173828125, -0.017822265625, -0.006984710693359375, -0.0205841064453125, -0.05615234375, 0.0496826171875, -0.00843048095703125, -0.0193634033203125, -0.0194854736328125, -0.0143280029296875, -0.00010198354721069336, 0.0062408447265625, -0.015716552734375, 0.006023406982421875, -0.026336669921875, 0.01009368896484375, 0.0618896484375, -0.00827789306640625, 0.041351318359375, 0.04852294921875, 0.0276947021484375, 0.052825927734375, -0.00649261474609375, -0.0267333984375, 0.0157470703125, 0.0263519287109375, 0.00873565673828125, 0.021759033203125, 0.0399169921875, 0.0033359527587890625, 0.0258636474609375, 0.00911712646484375, 0.058807373046875, -0.032958984375, 0.030242919921875, 0.033935546875, -0.00673675537109375, 0.016204833984375, 0.0266571044921875, -0.039337158203125, -0.060455322265625, 0.05078125, -0.1026611328125, -0.0004220008850097656, 0.022369384765625, -0.0246734619140625, -0.00667572021484375, -0.04559326171875, 0.048919677734375, 0.017578125, 0.01409149169921875, 0.0111083984375, -0.010986328125, 0.009002685546875, -0.048675537109375, -0.00812530517578125, 0.045806884765625, -0.0131683349609375, -0.0496826171875, 0.063720703125, -0.0173797607421875, 0.027984619140625, -0.0098114013671875, 0.0257720947265625, 0.03460693359375, 0.041839599609375, 0.00029850006103515625, -0.014892578125, 0.03472900390625, -0.015045166015625, 0.004276275634765625, -0.04840087890625, 0.009246826171875, 0.04290771484375, -0.026092529296875, 0.027099609375, 0.002349853515625, -0.047454833984375, -0.015380859375, 0.00386810302734375, 0.07989501953125, 0.00046539306640625, -0.04254150390625, 0.0028438568115234375, 0.031219482421875, -0.000009834766387939453, 0.022613525390625, -0.0265655517578125, -0.0069580078125, 0.04833984375, -0.01236724853515625, 0.0028057098388671875, 0.00714111328125, 0.007373809814453125, -0.0908203125, 0.07037353515625, 0.0224761962890625, 0.0533447265625, -0.011260986328125, 0.00875091552734375, -0.01053619384765625, -0.0204925537109375, -0.051239013671875, 0.09136962890625, -0.0008502006530761719, 0.0814208984375, -0.07598876953125, -0.01953125, 0.01898193359375, 0.05767822265625, 0.02703857421875, 0.023773193359375, -0.024749755859375, -0.029205322265625, -0.0175018310546875, 0.0212249755859375, -0.017242431640625, 0.0489501953125, 0.0242767333984375, 0.0024127960205078125, 0.0518798828125, -0.0081024169921875, 0.04437255859375, -0.007114410400390625, 0.006870269775390625, 0.022186279296875, 0.0177764892578125, 0.0295867919921875, -0.0197296142578125, -0.00798797607421875, -0.035675048828125, -0.006618499755859375, 0.03143310546875, -0.0276031494140625, 0.00307464599609375, 0.0611572265625, 0.06524658203125, 0.002105712890625, -0.0236053466796875, -0.0120086669921875, 0.060638427734375, 0.0187530517578125, -0.00847625732421875, 0.0328369140625, 0.0163116455078125, 0.00002664327621459961, 0.00527191162109375, -0.0032062530517578125, 0.0154266357421875, 0.01442718505859375, 0.0614013671875, 0.036102294921875, 0.00804901123046875, -0.044097900390625, -0.020782470703125, 0.04437255859375, 0.08001708984375, -0.049713134765625, 0.0204010009765625, 0.0157470703125, -0.0057830810546875, -0.00958251953125, -0.05438232421875, -0.01296234130859375, -0.0005288124084472656, -0.00701904296875, -0.03436279296875, -0.0142364501953125, 0.0142822265625, 0.04595947265625, 0.00818634033203125, -0.009063720703125, -0.0450439453125, -0.048370361328125, -0.0085906982421875, -0.0292510986328125, 0.004909515380859375, -0.01061248779296875, 0.01934814453125, -0.00731658935546875, 0.039337158203125, 0.0228729248046875, 0.010894775390625, 0.0034122467041015625, 0.0244140625, -0.007282257080078125, -0.0050048828125, 0.006732940673828125, 0.005096435546875, 0.030242919921875, 0.045166015625, -0.005168914794921875, 0.03887939453125, 0.0186920166015625, -0.036651611328125, 0.001129150390625, -0.0108795166015625, -0.0230255126953125, 0.0361328125, -0.0367431640625, 0.027923583984375, -0.0051422119140625, -0.0110931396484375, -0.01404571533203125, -0.0004127025604248047, 0.05438232421875, -0.0080108642578125, 0.03314208984375, 0.008544921875, -0.0091552734375, 0.049072265625, 0.020294189453125, 0.043121337890625, 0.0260009765625, -0.0260772705078125, 0.008056640625, -0.0430908203125, -0.01055908203125, 0.006816864013671875, 0.014617919921875, -0.0113983154296875, 0.029205322265625, -0.03863525390625, -0.0192413330078125, 0.011627197265625, 0.000030159950256347656, 0.01259613037109375, 0.067626953125, 0.00370025634765625, 0.004055023193359375, -0.01491546630859375, -0.01424407958984375, -0.00800323486328125, 0.024383544921875, 0.03582763671875, -0.030609130859375, 0.033477783203125, 0.046173095703125, -0.028228759765625, 0.0252227783203125, -0.0791015625, -0.0457763671875, 0.060302734375, -0.04266357421875, -0.0296630859375, 0.0196075439453125, -0.06927490234375, 0.059783935546875, 0.00408935546875, 0.02069091796875, 0.043609619140625, 0.004795074462890625, -0.005062103271484375, -0.018798828125, -0.02301025390625, -0.035247802734375, -0.0073394775390625, 0.03692626953125, 0.007190704345703125, -0.004547119140625, -0.047271728515625, -0.0213775634765625, 0.0135345458984375, 0.0202484130859375, -0.01126861572265625, 0.0009365081787109375, 0.00691986083984375, -0.0025348663330078125, 0.0246734619140625, -0.004322052001953125, 0.01116180419921875, -0.0235595703125, -0.032623291015625, 0.01482391357421875, -0.005847930908203125, 0.00907135009765625, -0.021331787109375, 0.031982421875, -0.01328277587890625, -0.0283660888671875, 0.045867919921875, 0.01309967041015625, 0.0147705078125, -0.07025146484375, 0.0265045166015625, -0.0222015380859375, -0.0180206298828125, -0.0164337158203125, -0.048095703125, 0.01248931884765625, 0.0253753662109375, -0.0068359375, 0.0228729248046875, -0.00640869140625, -0.0258331298828125, -0.0168609619140625, -0.0180511474609375, -0.00994873046875, 0.0053863525390625, -0.00795745849609375, -0.009368896484375, -0.05328369140625, -0.046722412109375, 0.03692626953125, 0.08551025390625, -0.00435638427734375, -0.0010280609130859375, -0.011627197265625, -0.031341552734375, 0.0025691986083984375, 0.018585205078125, 0.046539306640625, -0.0149993896484375, -0.029022216796875, 0.04791259765625, 0.01007843017578125, 0.082763671875, -0.03369140625, -0.0138702392578125, 0.021453857421875, 0.001598358154296875, 0.006389617919921875, -0.08734130859375, -0.004505157470703125, -0.0596923828125, 0.0221710205078125, -0.01116943359375, 0.00045561790466308594, 0.0039825439453125, -0.0258331298828125, -0.03619384765625, 0.049072265625, -0.006832122802734375, -0.0298614501953125, -0.056549072265625, 0.017791748046875, 0.0160980224609375, -0.01276397705078125, -0.01369476318359375, -0.025665283203125, -0.024993896484375, 0.0252227783203125, 0.0014009475708007812, 0.0282440185546875, -0.00102996826171875, -0.00818634033203125, -0.064697265625, -0.001617431640625, -0.030242919921875, -0.0216064453125, 0.00151824951171875, -0.0021877288818359375, -0.01081085205078125, 0.0482177734375, -0.028045654296875, -0.035675048828125, -0.02056884765625, -0.0021343231201171875, -0.03253173828125, -0.0022869110107421875, -0.030792236328125, -0.0142364501953125, 0.049102783203125, 0.0908203125, 0.026458740234375, -0.0296478271484375, 0.0256195068359375, -0.0201263427734375, -0.06317138671875, 0.003955841064453125, 0.0168609619140625, -0.026123046875, 0.01727294921875, 0.00394439697265625, -0.03790283203125, -0.017974853515625, -0.00788116455078125, -0.055633544921875, 0.01036834716796875, -0.01256561279296875, 0.01453399658203125, -0.032989501953125, -0.01548004150390625, 0.0206451416015625, -0.0291290283203125, -0.0007076263427734375, -0.0010347366333007812, 0.021148681640625, -0.0027637481689453125, 0.007404327392578125, 0.02398681640625, 0.0103759765625, -0.01209259033203125, 0.01556396484375, 0.0211029052734375, 0.017242431640625, -0.011993408203125, -0.0150146484375, -0.0219879150390625, 0.0163726806640625, 0.00030875205993652344, -0.004146575927734375, 0.005786895751953125, 0.042694091796875, 0.018585205078125, 0.06298828125, -0.017333984375, 0.0010843276977539062, -0.016357421875, 0.0290985107421875, -0.027313232421875, 0.00801849365234375, 0.012359619140625, -0.031524658203125, -0.003513336181640625, 0.005123138427734375, 0.0246429443359375, -0.043243408203125, 0.034027099609375, -0.0084381103515625, 0.0176849365234375, 0.01959228515625 ]
57b261b7b58a66132015d2c8bef8780444ad4d7d
Wordpress Stackexchange Q: Relative URLs and hide /wp-content/themes/ in my header and other sections I would like to use <script src="/incs/js/script.js"></script> While maintaining the default theme folder structure in server as below /wp-content/themes/theme-name/incs/js/script.js file need to be accessed via browser/html source if need be so that it hides /wp-content/themes/theme-name http://website.com/incs/js/script.js This is also applicable to images I may have under /incs/images/imagname.jpg I've seen solutions where defining the directory located outside of theme folder... but need a solution that does this within. Is this possible? Thanks A: The easiest way to move your theme folder is only via constant; include the wp-content folder. You can set a constant for the plugin folder and wp-content folder. Then is your plugins and themes in separete url, also in the include in the source of the frontend. like this example for my dev installs: define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content' ); define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content' ); // Custom plugin directory define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . '/wp-plugins' ); define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-plugins' ); // Custom mu plugin directory define( 'WPMU_PLUGIN_DIR', dirname( __FILE__ ) . '/wpmu-plugins' ); define( 'WPMU_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wpmu-plugins' );
Q: Relative URLs and hide /wp-content/themes/ in my header and other sections I would like to use <script src="/incs/js/script.js"></script> While maintaining the default theme folder structure in server as below /wp-content/themes/theme-name/incs/js/script.js file need to be accessed via browser/html source if need be so that it hides /wp-content/themes/theme-name http://website.com/incs/js/script.js This is also applicable to images I may have under /incs/images/imagname.jpg I've seen solutions where defining the directory located outside of theme folder... but need a solution that does this within. Is this possible? Thanks A: The easiest way to move your theme folder is only via constant; include the wp-content folder. You can set a constant for the plugin folder and wp-content folder. Then is your plugins and themes in separete url, also in the include in the source of the frontend. like this example for my dev installs: define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content' ); define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content' ); // Custom plugin directory define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . '/wp-plugins' ); define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-plugins' ); // Custom mu plugin directory define( 'WPMU_PLUGIN_DIR', dirname( __FILE__ ) . '/wpmu-plugins' ); define( 'WPMU_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wpmu-plugins' ); A: Nowadays I use the technique I describe in this Q: Steps to Take to Hide the Fact a Site is Using WordPress?. Before that, I used the Roots Theme method, which is what I think you are looking for: This post contains information on how to clean up WordPress code output. The methods described below do not prevent actual fingerprinting and shouldn’t be looked at as any sort of security measure. Note that it doesn't work in Multisite or Child Themes. I'll reproduce here the documentation I did for using the Roots method: Modifying .htaccess Rewrite Rules Large chunk of code directly from the Roots theme: https://gist.github.com/4336843 PasteBin mirror. The array $roots_new_non_wp_rules has to be adapted accordingly. Refresh permalinks Go to /wp-admin/options-permalink.php and click Save Changes. Load scripts from CDN and not from /wp-includes/ add_action( 'wp_enqueue_scripts', 'wpse_76593_scripts_custom' ); function wpse_76593_scripts_custom() { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', false, '1.7.1', true); wp_enqueue_script( 'jquery' ); } Search the theme for all style and script registers and enqueues. style.css * *create a new file inside the folder "/css" named "style.css" *open the theme's style.css *select all declarations bellow the theme file header *cut and paste in the file /css/style.css *save both in short: /your-theme/styles.css will contain only the header information, and /your-theme/css/styles.css will contain all the styles * *change all occurrences of url('fonts/ with url('../fonts/ *change all occurrences of images/ with ../images/ header.php Change the stylesheet link from <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> to <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/style.css" /> All theme files Search for: * *get_bloginfo('template_url') *get_bloginfo('template_directory') and replace with: * *get_template_directory_uri() Testing Not sure about other browsers, but Safari Activity Window is perfect to check all loaded files and its URLs. Depending on the theme complexity, extra steps have to be taken. A: I created the Roots Plug which has the same .htaccess rewrites as the Roots Theme. But completely agree with what @brasofolio said A: This can be easily achieved by using 'hide my wp' plugin. Please change it's permalinks and url settings as shown below: Change theme path under Permalinks & urls to /incs. Once you have changed these settings, you will notice, bloginfo('template_url') will render http://website.com/incs/ and hence http://website.com/incs/js/script.js Reference: http://howtomakewebsite.ws/wordpress-plugins/how-to-hide-wordpress/731/ A: Why dont you use bloginfo(); default wordpress functions <?php bloginfo( $show ); ?> <script src="<?php bloginfo('template_directory'); ?>/incs/js/script.js"></script> more info http://codex.wordpress.org/Function_Reference/bloginfo
wordpress
{ "language": "en", "length": 585, "provenance": "stackexchange_00019.jsonl.gz:426944", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76593" }
[ 0.047332763671875, -0.0220947265625, -0.002811431884765625, -0.050567626953125, -0.0005507469177246094, -0.0241241455078125, 0.03228759765625, 0.02166748046875, -0.017120361328125, 0.0083770751953125, -0.0217742919921875, -0.0033130645751953125, -0.009368896484375, -0.031951904296875, 0.01001739501953125, -0.0380859375, 0.0281524658203125, 0.00083160400390625, 0.025604248046875, -0.013031005859375, 0.034912109375, 0.01526641845703125, -0.0120391845703125, 0.05224609375, 0.0200653076171875, -0.015472412109375, 0.08306884765625, -0.0288543701171875, -0.01172637939453125, -0.04351806640625, 0.01763916015625, 0.01959228515625, 0.01486968994140625, 0.0227813720703125, -0.007671356201171875, -0.003284454345703125, 0.0148468017578125, 0.00775909423828125, 0.0175323486328125, 0.0169830322265625, 0.0256805419921875, -0.0170135498046875, 0.018341064453125, 0.0230255126953125, -0.003963470458984375, -0.05902099609375, 0.054962158203125, -0.040252685546875, 0.0218658447265625, 0.027984619140625, 0.00479888916015625, 0.0096282958984375, 0.005832672119140625, -0.0187225341796875, -0.008056640625, 0.0222930908203125, -0.0222320556640625, 0.02825927734375, 0.0132293701171875, -0.00811004638671875, -0.003597259521484375, 0.0063629150390625, 0.011016845703125, 0.033294677734375, 0.0124969482421875, -0.0037097930908203125, 0.011383056640625, 0.041046142578125, -0.0595703125, 0.0073394775390625, 0.035552978515625, -0.036590576171875, 0.0241851806640625, -0.017547607421875, -0.02655029296875, 0.0166015625, -0.002147674560546875, 0.0278778076171875, 0.041107177734375, -0.042327880859375, -0.0026702880859375, 0.0106048583984375, -0.027740478515625, -0.031585693359375, 0.0184326171875, 0.0223236083984375, -0.0125885009765625, -0.01611328125, -0.021881103515625, 0.00977325439453125, -0.0225830078125, 0.014068603515625, 0.004695892333984375, 0.0008478164672851562, -0.0230255126953125, -0.001552581787109375, 0.031982421875, 0.040069580078125, -0.004093170166015625, -0.00018036365509033203, 0.018218994140625, -0.042022705078125, 0.0281829833984375, -0.0218505859375, -0.0040740966796875, 0.076904296875, 0.006832122802734375, 0.0173187255859375, 0.026397705078125, -0.0068511962890625, 0.022186279296875, -0.004241943359375, -0.0075225830078125, -0.001712799072265625, -0.0230255126953125, -0.005123138427734375, -0.04742431640625, -0.00324249267578125, -0.00965118408203125, 0.01092529296875, -0.006229400634765625, 0.009765625, -0.019073486328125, -0.0038909912109375, -0.01013946533203125, -0.02886962890625, -0.0204010009765625, -0.002193450927734375, -0.03851318359375, 0.032958984375, -0.02227783203125, -0.0079803466796875, 0.04217529296875, 0.049468994140625, 0.0171966552734375, -0.017181396484375, 0.0467529296875, 0.04705810546875, -0.006801605224609375, -0.00930023193359375, -0.005756378173828125, 0.005130767822265625, 0.00598907470703125, -0.04937744140625, -0.021942138671875, 0.01253509521484375, 0.0193023681640625, 0.024871826171875, -0.021820068359375, -0.04632568359375, 0.0245361328125, -0.03466796875, 0.05908203125, -0.00487518310546875, -0.0225372314453125, -0.0252838134765625, 0.0187225341796875, -0.041290283203125, -0.0203857421875, -0.03997802734375, -0.005672454833984375, -0.0007390975952148438, 0.01369476318359375, -0.043792724609375, -0.0572509765625, -0.01381683349609375, -0.006916046142578125, -0.01345062255859375, 0.01097869873046875, 0.024078369140625, -0.01377105712890625, -0.0245819091796875, -0.017547607421875, 0.013946533203125, 0.01032257080078125, 0.032012939453125, -0.0015773773193359375, 0.0355224609375, 0.01372528076171875, 0.0286712646484375, 0.018829345703125, -0.027557373046875, 0.056976318359375, 0.0006270408630371094, -0.07830810546875, 0.058074951171875, -0.0007476806640625, 0.023468017578125, 0.0170135498046875, -0.0218505859375, 0.09130859375, 0.031280517578125, -0.05230712890625, -0.01183319091796875, -0.0196533203125, -0.003986358642578125, 0.0299530029296875, 0.0119171142578125, 0.004627227783203125, 0.022064208984375, -0.040618896484375, -0.0125274658203125, 0.03143310546875, 0.03143310546875, 0.00917816162109375, 0.00957489013671875, -0.012603759765625, 0.0258026123046875, 0.00988006591796875, 0.00780487060546875, -0.001415252685546875, 0.02935791015625, 0.01039886474609375, -0.11553955078125, -0.055084228515625, 0.0291900634765625, -0.0178680419921875, 0.059417724609375, 0.005329132080078125, 0.077880859375, 0.02960205078125, -0.038330078125, 0.0104827880859375, -0.0182037353515625, 0.0119476318359375, -0.01068878173828125, -0.00492095947265625, 0.00004482269287109375, 0.0208892822265625, 0.01534271240234375, -0.00797271728515625, 0.01412200927734375, 0.00966644287109375, 0.0438232421875, -0.00604248046875, -0.01528167724609375, 0.032379150390625, -0.046539306640625, 0.035919189453125, 0.03363037109375, 0.037353515625, 0.0447998046875, -0.03070068359375, -0.03717041015625, 0.051513671875, -0.06884765625, -0.0196533203125, -0.0011510848999023438, 0.01561737060546875, -0.003131866455078125, 0.0205230712890625, -0.0423583984375, 0.02972412109375, -0.059967041015625, 0.01251983642578125, 0.0234832763671875, -0.0296173095703125, -0.003662109375, 0.0228118896484375, -0.03485107421875, 0.0110321044921875, -0.0103912353515625, -0.020843505859375, 0.005451202392578125, 0.0204620361328125, 0.02008056640625, 0.051666259765625, 0.047821044921875, -0.01258087158203125, -0.0004949569702148438, 0.0005917549133300781, 0.0150146484375, -0.01377105712890625, 0.01544189453125, 0.053466796875, -0.0594482421875, -0.00879669189453125, -0.0086822509765625, -0.006717681884765625, -0.0086822509765625, -0.021636962890625, -0.007434844970703125, -0.04412841796875, 0.0017852783203125, -0.01480865478515625, -0.0482177734375, 0.02642822265625, 0.06280517578125, 0.0285491943359375, 0.01287078857421875, 0.03887939453125, -0.0012664794921875, -0.046142578125, 0.06494140625, 0.01232147216796875, -0.030609130859375, 0.06689453125, -0.0384521484375, 0.04595947265625, -0.0311737060546875, 0.0204620361328125, 0.050567626953125, -0.0032558441162109375, -0.01131439208984375, -0.0032958984375, -0.0009517669677734375, 0.0009388923645019531, 0.01146697998046875, -0.013214111328125, -0.02984619140625, -0.052825927734375, -0.0284881591796875, 0.0162200927734375, -0.057830810546875, 0.00946807861328125, -0.04266357421875, -0.037750244140625, -0.01898193359375, -0.133544921875, -0.0712890625, 0.020660400390625, -0.04437255859375, 0.035003662109375, 0.023712158203125, -0.011505126953125, -0.047088623046875, 0.056243896484375, 0.00276947021484375, -0.04339599609375, -0.056182861328125, -0.041778564453125, -0.0826416015625, -0.0704345703125, 0.014617919921875, 0.00682830810546875, 0.01348876953125, 0.004581451416015625, 0.00809478759765625, 0.0024013519287109375, -0.0304107666015625, -0.007770538330078125, 0.057403564453125, 0.0193634033203125, -0.0211029052734375, 0.02362060546875, -0.0293426513671875, 0.00926971435546875, -0.00513458251953125, 0.042236328125, 0.040679931640625, -0.03204345703125, -0.003673553466796875, -0.0095977783203125, -0.01413726806640625, -0.0228729248046875, 0.02490234375, 0.038116455078125, -0.01861572265625, 0.0019216537475585938, -0.051116943359375, -0.056610107421875, -0.002964019775390625, -0.054840087890625, 0.04718017578125, 0.0186614990234375, -0.011627197265625, 0.0252532958984375, 0.0229949951171875, 0.04718017578125, 0.0201568603515625, 0.007610321044921875, -0.0160980224609375, 0.048431396484375, 0.00679779052734375, 0.055389404296875, -0.05303955078125, 0.07135009765625, -0.0050201416015625, -0.0257568359375, 0.0194549560546875, -0.00304412841796875, -0.0027370452880859375, -0.0153961181640625, -0.03558349609375, 0.007747650146484375, 0.021392822265625, -0.02423095703125, 0.015869140625, -0.013916015625, -0.0005545616149902344, -0.01194000244140625, 0.036529541015625, -0.08868408203125, 0.00591278076171875, 0.01922607421875, 0.0242919921875, -0.01470947265625, -0.03253173828125, -0.07818603515625, -0.003887176513671875, -0.0869140625, 0.00693511962890625, -0.0158233642578125, -0.03363037109375, 0.0228271484375, -0.0090484619140625, -0.022979736328125, -0.05712890625, 0.042144775390625, -0.01806640625, 0.02935791015625, -0.02471923828125, 0.0156097412109375, -0.049713134765625, -0.0207977294921875, -0.0193023681640625, -0.04595947265625, -0.01117706298828125, -0.03106689453125, 0.03350830078125, 0.02374267578125, -0.005062103271484375, -0.005100250244140625, 0.04632568359375, -0.04010009765625, 0.0206298828125, -0.023651123046875, 0.0298614501953125, -0.02203369140625, -0.016204833984375, -0.00960540771484375, -0.0198516845703125, 0.005413055419921875, -0.023773193359375, -0.07757568359375, -0.02154541015625, -0.00495147705078125, 0.0303802490234375, 0.057281494140625, -0.038238525390625, -0.0198211669921875, -0.022125244140625, -0.0176544189453125, 0.00559234619140625, -0.0157318115234375, -0.0137481689453125, -0.018798828125, -0.0211639404296875, 0.0271453857421875, -0.0117034912109375, 0.0205078125, -0.0005927085876464844, 0.03265380859375, 0.019256591796875, -0.0183258056640625, -0.00012767314910888672, 0.04010009765625, 0.032012939453125, 0.0223236083984375, 0.03961181640625, 0.0084991455078125, -0.0226593017578125, 0.062255859375, 0.0187530517578125, -0.0020656585693359375, 0.03131103515625, 0.033203125, 0.0038585662841796875, -0.003948211669921875, -0.005458831787109375, 0.01512908935546875, -0.037353515625, 0.038238525390625, -0.01215362548828125, -0.00463104248046875, -0.039886474609375, 0.017333984375, -0.00882720947265625, 0.0194549560546875, -0.042022705078125, -0.061798095703125, 0.0253143310546875, -0.0065460205078125, 0.03997802734375, 0.0240936279296875, -0.007511138916015625, 0.07049560546875, 0.02911376953125, 0.003177642822265625, 0.05950927734375, 0.034393310546875, 0.01129150390625, 0.04205322265625, 0.03656005859375, -0.00363922119140625, 0.0171356201171875, 0.0020618438720703125, 0.0118865966796875, 0.01212310791015625, -0.006595611572265625, -0.0556640625, 0.0006527900695800781, 0.0168914794921875, -0.0180511474609375, -0.021087646484375, 0.034759521484375, 0.00835418701171875, -0.006412506103515625, 0.004764556884765625, -0.025421142578125, -0.0307159423828125, -0.03778076171875, 0.0238800048828125, -0.0042877197265625, -0.0047149658203125, -0.0208740234375, 0.06427001953125, 0.007160186767578125, 0.01227569580078125, -0.004215240478515625, 0.0150299072265625, -0.00824737548828125, 0.045989990234375, 0.0013284683227539062, -0.01922607421875, 0.0029888153076171875, 0.02294921875, 0.017791748046875, -0.033355712890625, -0.0010576248168945312, 0.0223236083984375, 0.05718994140625, -0.00243377685546875, -0.0174407958984375, 0.0035858154296875, -0.0273895263671875, -0.0154571533203125, 0.0189971923828125, -0.033905029296875, -0.039794921875, -0.03143310546875, -0.00897979736328125, 0.048583984375, -0.004398345947265625, -0.0113067626953125, -0.02734375, -0.024932861328125, -0.0260009765625, 0.042388916015625, -0.07574462890625, 0.0157012939453125, 0.0204925537109375, 0.00362396240234375, 0.024139404296875, 0.0090179443359375, -0.07843017578125, -0.056610107421875, -0.0140228271484375, -0.0008907318115234375, 0.043792724609375, -0.029998779296875, 0.0116424560546875, 0.003940582275390625, -0.0036144256591796875, -0.0224151611328125, 0.0254669189453125, 0.0218963623046875, 0.01316070556640625, -0.12115478515625, 0.04925537109375, -0.0263824462890625, 0.004650115966796875, -0.02471923828125, -0.046142578125, -0.072021484375, -0.043060302734375, 0.0026912689208984375, 0.012603759765625, -0.01184844970703125, -0.0161895751953125, -0.01983642578125, -0.006778717041015625, 0.0028533935546875, 0.01197052001953125, -0.0196380615234375, 0.0599365234375, 0.0163726806640625, 0.023712158203125, 0.02362060546875, 0.0330810546875, 0.017181396484375, -0.01910400390625, 0.0098419189453125, -0.03497314453125, -0.0298309326171875, -0.0305328369140625, -0.012969970703125, 0.040679931640625, 0.06353759765625, 0.004283905029296875, 0.0203399658203125, 0.01131439208984375, -0.00873565673828125, -0.0267333984375, 0.017791748046875, 0.005817413330078125, 0.037689208984375, -0.0249176025390625, 0.0125732421875, 0.01080322265625, 0.0036487579345703125, -0.02288818359375, 0.0189666748046875, 0.0167388916015625, 0.017913818359375, -0.01387786865234375, -0.039794921875, 0.06097412109375, 0.06536865234375, 0.01183319091796875, 0.04644775390625, -0.007762908935546875, 0.013458251953125, 0.0166015625, 0.00846099853515625, 0.003108978271484375, 0.0139007568359375, 0.08551025390625, 0.020416259765625, -0.022613525390625, 0.07391357421875, -0.03778076171875, 0.03021240234375, 0.0281219482421875, 0.04986572265625, -0.058502197265625, 0.022796630859375, 0.007610321044921875, 0.0006031990051269531, 0.050445556640625, 0.01093292236328125, -0.006114959716796875, -0.01080322265625, -0.031951904296875, 0.034820556640625, -0.0010519027709960938, -0.01384735107421875, 0.0288238525390625, -0.0121612548828125, 0.02679443359375, 0.00696563720703125, -0.005367279052734375, -0.026885986328125, -0.0225067138671875, 0.0115203857421875, -0.009185791015625, -0.01363372802734375, 0.00829315185546875, 0.027496337890625, -0.020660400390625, -0.0460205078125, 0.0313720703125, -0.0176239013671875, -0.017913818359375, 0.017822265625, -0.01500701904296875, 0.03271484375, 0.03680419921875, -0.0178375244140625, 0.0216217041015625, 0.017059326171875, 0.01200103759765625, 0.0200653076171875, -0.0010213851928710938, 0.029937744140625, 0.0258331298828125, -0.044647216796875, 0.0126800537109375, -0.0237884521484375, 0.001605987548828125, -0.01922607421875, -0.0096435546875, 0.09765625, -0.023101806640625, -0.02838134765625, 0.0244140625, 0.02093505859375, -0.0229034423828125, -0.011383056640625, 0.05889892578125, -0.06842041015625, -0.034698486328125, 0.0292510986328125, -0.0218505859375, -0.0262603759765625, -0.0166778564453125, -0.0200653076171875, 0.09100341796875, -0.051971435546875, 0.030181884765625, 0.052276611328125, 0.03558349609375, -0.0125274658203125, 0.023651123046875, 0.000018477439880371094, 0.034759521484375, -0.03436279296875, -0.0181732177734375, -0.032623291015625, 0.01450347900390625, -0.0220794677734375, 0.01727294921875, 0.03936767578125, 0.01560211181640625, -0.032684326171875, -0.0265045166015625, 0.039947509765625, 0.0465087890625, 0.02410888671875, 0.01525115966796875, -0.013031005859375, 0.0218658447265625, -0.004604339599609375, -0.0188140869140625, 0.03173828125, -0.0232086181640625, -0.059814453125, 0.012542724609375, 0.0275726318359375, 0.041839599609375, -0.01154327392578125, -0.01128387451171875, -0.01377105712890625, 0.005054473876953125, 0.01702880859375, 0.0308837890625, -0.0172271728515625, 0.0251312255859375, -0.00010186433792114258, -0.017974853515625, -0.03948974609375, -0.01557159423828125, 0.0263671875, -0.00899505615234375, 0.006832122802734375, 0.00992584228515625, 0.0168914794921875, -0.005687713623046875, -0.028228759765625, -0.0084075927734375, 0.016876220703125, -0.029083251953125, 0.0246734619140625, 0.037689208984375, 0.020416259765625, 0.003490447998046875, 0.026641845703125, 0.043212890625, 0.030792236328125, -0.039794921875, -0.0460205078125, 0.01202392578125, 0.00360107421875, -0.00533294677734375, -0.006633758544921875, -0.03778076171875, -0.032379150390625, 0.008514404296875, -0.021392822265625, -0.01351165771484375, 0.0286407470703125, -0.0013942718505859375, -0.0002237558364868164, -0.00853729248046875, 0.0247802734375, 0.00046253204345703125, -0.04119873046875, 0.01934814453125, 0.028045654296875, 0.0263671875, 0.003582000732421875, 0.043975830078125, 0.0313720703125, -0.006938934326171875, 0.00043463706970214844, 0.0041351318359375, -0.0057830810546875, 0.001293182373046875, -0.04351806640625, -0.0478515625, 0.05224609375, 0.0291748046875, 0.032196044921875, 0.04901123046875, 0.0282440185546875, -0.00812530517578125, 0.0094451904296875, 0.01334381103515625, 0.01178741455078125, -0.0233612060546875, 0.07220458984375, -0.01180267333984375, 0.05023193359375, 0.00989532470703125, -0.017059326171875, -0.04180908203125, 0.011383056640625, 0.06390380859375, -0.0271148681640625, 0.0533447265625, -0.0029277801513671875, 0.00017404556274414062, 0.0310516357421875, -0.041473388671875, 0.0626220703125, -0.01160430908203125, -0.033905029296875, 0.00046896934509277344, -0.03375244140625, -0.0089111328125, 0.006389617919921875, 0.03277587890625, -0.003662109375, 0.04864501953125, 0.03900146484375, -0.00926971435546875, -0.01453399658203125, -0.014068603515625, 0.03863525390625, 0.0003838539123535156, 0.011566162109375, 0.023162841796875, -0.01477813720703125, -0.0322265625, -0.0206146240234375, 0.0638427734375, 0.061370849609375, 0.07623291015625, -0.059326171875, 0.046478271484375, 0.018524169921875, -0.0172271728515625, 0.0258331298828125, 0.003948211669921875, 0.0207672119140625, -0.0003838539123535156, 0.01418304443359375, -0.0146942138671875, -0.05047607421875, -0.01538848876953125, 0.018951416015625, -0.04840087890625, -0.00738525390625, -0.0105743408203125, 0.0318603515625, 0.0134735107421875, 0.007354736328125, -0.022979736328125, -0.042938232421875, -0.04693603515625, 0.0004315376281738281, 0.035491943359375, 0.030181884765625, -0.031829833984375, 0.0007424354553222656, 0.00614166259765625, -0.03387451171875, 0.0199127197265625, -0.008514404296875, 0.061309814453125, 0.050689697265625, -0.018310546875, -0.0911865234375, 0.00839996337890625, -0.0034389495849609375, -0.02520751953125, 0.019927978515625, 0.06280517578125, 0.0098114013671875, -0.05780029296875, -0.034942626953125, 0.0169830322265625, 0.008148193359375, -0.01519012451171875, 0.027618408203125, -0.00394439697265625, -0.011077880859375, 0.0161895751953125, -0.053192138671875, -0.035308837890625, -0.027862548828125, 0.0203399658203125, 0.0262298583984375, 0.01049041748046875, -0.0285797119140625, -0.04058837890625, 0.0188751220703125, 0.049285888671875, 0.012939453125, -0.08941650390625, 0.019805908203125, -0.036346435546875, 0.10595703125, -0.004734039306640625, 0.0389404296875, -0.02191162109375, -0.01380157470703125, -0.026092529296875, -0.03314208984375, -0.01540374755859375, 0.060394287109375, 0.0029754638671875, 0.01457977294921875, 0.0240936279296875, -0.00008106231689453125, 0.0007109642028808594, 0.028778076171875, -0.01107025146484375, 0.08441162109375, -0.050323486328125, -0.007747650146484375, -0.0014486312866210938, 0.01029205322265625, -0.04229736328125, -0.03466796875, -0.00032401084899902344, -0.0021228790283203125, -0.017486572265625, -0.00225067138671875, -0.0284881591796875, -0.019317626953125, -0.04931640625, -0.058319091796875, 0.04937744140625, 0.01128387451171875, -0.029510498046875, -0.0287322998046875, 0.0109710693359375, -0.004486083984375, 0.038970947265625, -0.00466156005859375, -0.039093017578125, -0.019989013671875, 0.0252532958984375, 0.0111846923828125, 0.0180206298828125, 0.0187835693359375, -0.012115478515625, -0.01378631591796875, 0.0144805908203125, 0.0158843994140625, -0.0054473876953125, 0.01221466064453125, 0.00936126708984375, 0.04376220703125, 0.06884765625, 0.01849365234375, 0.04638671875, 0.01016998291015625, -0.0889892578125, -0.0203094482421875, -0.0214080810546875, 0.0042724609375, 0.0237884521484375, 0.06829833984375, 0.032623291015625, 0.0003151893615722656, -0.03485107421875, -0.043792724609375, -0.036285400390625, -0.0165557861328125, 0.0020084381103515625, 0.032135009765625, -0.0684814453125, 0.016265869140625, 0.03155517578125, -0.0004267692565917969, -0.02386474609375, -0.0152435302734375, -0.0196533203125, -0.02923583984375, -0.029815673828125, -0.00922393798828125, -0.004177093505859375, -0.0199737548828125, 0.06256103515625, -0.0303497314453125, 0.015533447265625, -0.004119873046875, 0.0275115966796875, 0.042266845703125, -0.0148162841796875, -0.00555419921875, 0.01239776611328125, -0.016326904296875, 0.032257080078125, 0.004856109619140625, 0.03594970703125, -0.03045654296875, -0.011993408203125, -0.0009765625, -0.0028858184814453125, -0.011810302734375, -0.0211029052734375, -0.030487060546875, 0.053192138671875, -0.0027599334716796875, 0.0654296875, -0.014129638671875, -0.0252227783203125, -0.0182647705078125, 0.0086822509765625, -0.02239990234375, 0.0028057098388671875, 0.0157928466796875, -0.0287933349609375, -0.007274627685546875, -0.002349853515625, -0.036224365234375, -0.04290771484375, 0.01568603515625, -0.053680419921875, -0.009613037109375, 0.0002338886260986328 ]
fa6ed5c0005e56d04a85c22ff05177a2f4f3a57d
Wordpress Stackexchange Q: multisite: use a virtual subfolder for subblogs For our school, we use a wordpress network. The main domain gives access to general information and sub-sites are specific projects managed by students. I would like that all sub-sites have their url appended with a fake folder name. example Say the main domain is school.edu My sub-sites are school.edu/project1/ school.edu/project2/ I would like that it becomes: school.edu/projects/project1/ school.edu/projects/project2/ How can i do it? UPDATE 1 I tried adding this rule to my .htaccess. It redirects correctly, but then the displayed URL doesn't stay the one i want, it reverts back to the original "real" url. RewriteRule ^projects/([_0-9a-zA-Z-]+/)? $1 [R=301,L] A: I had a similar issue with another client, entering something like projects/project1 would error as the / would fail validation. After failing to find an override or filter, instead I found a loophole. If you make projectsproject1, then afterwards edit the site so its url is projects/project1 and save, update the homeurl etc, it works! You may need to make modifications to htaccess etc however to prevent attachments failing to load, but that should be less of an issue now that 3.5 skips ms-files.php
Q: multisite: use a virtual subfolder for subblogs For our school, we use a wordpress network. The main domain gives access to general information and sub-sites are specific projects managed by students. I would like that all sub-sites have their url appended with a fake folder name. example Say the main domain is school.edu My sub-sites are school.edu/project1/ school.edu/project2/ I would like that it becomes: school.edu/projects/project1/ school.edu/projects/project2/ How can i do it? UPDATE 1 I tried adding this rule to my .htaccess. It redirects correctly, but then the displayed URL doesn't stay the one i want, it reverts back to the original "real" url. RewriteRule ^projects/([_0-9a-zA-Z-]+/)? $1 [R=301,L] A: I had a similar issue with another client, entering something like projects/project1 would error as the / would fail validation. After failing to find an override or filter, instead I found a loophole. If you make projectsproject1, then afterwards edit the site so its url is projects/project1 and save, update the homeurl etc, it works! You may need to make modifications to htaccess etc however to prevent attachments failing to load, but that should be less of an issue now that 3.5 skips ms-files.php A: You may try solving this with using .htaccess modifications alone. You could rewrite any URL school.edu/projects/project2/ to school.edu/project2/ and use the long format. But in this case you also need the generate the proper long URLs in Wordpress. A: So the way it's recommended to handle this issue for WordPress is to actually let users see the yourschool.edu/project1 url, but to put your installation into a different directory that users are less likely to find. This means it's sort of the opposite of what you're asking, but it's the best practice answer, and it resolves what I assume the larger concern is by providing a layer of security through obscurity. Here's what you'd do for a fresh install: * *download the wordpress core files (as a zip from wordpress.org) *unzip it *rename the folder something obscure (but that you will remember) *upload the folder to the root directory of your site *copy the index.php and .htaccess file from the obscurely named folder and paste into the root directory (note: the .htaccess file might not exist yet, in which case you will have to create it) *open the index.php file and change require('./wp-blog-header.php'); to this require('./nameofobscurefolder/wp-blog-header.php'); This means that you will have to log in at the longer address, but chances are you already will have that on your bookmark toolbar. Once you have installed WP and logged in, go to Settings > General Check for two things: * *that the settings for your Wordpress URL point to http://yourschool.edu/nameofobscurefolder *that the Blog URL points to http://yourschool.edu.
wordpress
{ "language": "en", "length": 449, "provenance": "stackexchange_00019.jsonl.gz:426945", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76600" }
[ 0.025848388671875, -0.006732940673828125, -0.01560211181640625, 0.0009584426879882812, -0.007358551025390625, -0.03533935546875, 0.03204345703125, -0.0472412109375, -0.006298065185546875, 0.02142333984375, -0.0081787109375, -0.003448486328125, -0.0023326873779296875, -0.032623291015625, 0.02178955078125, -0.01387786865234375, 0.006038665771484375, -0.00431060791015625, -0.00968170166015625, -0.0210418701171875, 0.0101470947265625, -0.00885009765625, -0.020660400390625, -0.0045928955078125, -0.00972747802734375, -0.01389312744140625, 0.07391357421875, -0.006603240966796875, -0.0189361572265625, -0.03521728515625, 0.005390167236328125, 0.01258087158203125, 0.034271240234375, 0.021026611328125, -0.038604736328125, -0.0174102783203125, 0.025543212890625, -0.005950927734375, -0.01239013671875, 0.0435791015625, 0.0282440185546875, -0.01065826416015625, 0.03143310546875, -0.004364013671875, 0.005062103271484375, -0.033447265625, 0.046356201171875, -0.026397705078125, 0.037506103515625, 0.01219940185546875, -0.00829315185546875, 0.0266265869140625, -0.005802154541015625, -0.0244140625, -0.024139404296875, -0.011627197265625, -0.034454345703125, 0.044403076171875, 0.0027618408203125, -0.0031528472900390625, 0.004924774169921875, 0.019927978515625, 0.0181732177734375, 0.03570556640625, -0.025482177734375, -0.0186614990234375, -0.037933349609375, 0.0016183853149414062, -0.043792724609375, -0.006671905517578125, 0.05914306640625, -0.0284271240234375, 0.04034423828125, -0.042572021484375, -0.00011390447616577148, 0.0146636962890625, -0.0189056396484375, 0.004730224609375, 0.04150390625, -0.04315185546875, 0.0140380859375, -0.037322998046875, -0.02996826171875, -0.0174102783203125, 0.04620361328125, 0.038726806640625, 0.007648468017578125, -0.022064208984375, -0.050537109375, 0.019866943359375, -0.039764404296875, -0.050750732421875, -0.003322601318359375, 0.0222930908203125, -0.0146942138671875, 0.006378173828125, 0.035552978515625, 0.06475830078125, 0.00806427001953125, -0.0117950439453125, -0.0150299072265625, -0.024444580078125, -0.0396728515625, -0.0178375244140625, 0.012847900390625, 0.06329345703125, 0.0102996826171875, 0.006877899169921875, 0.044158935546875, -0.004573822021484375, 0.01100921630859375, 0.06549072265625, -0.0167236328125, -0.019378662109375, -0.0253143310546875, 0.0408935546875, -0.01416778564453125, -0.03594970703125, -0.00218963623046875, -0.0154876708984375, 0.005401611328125, 0.050506591796875, -0.031402587890625, -0.038238525390625, 0.033294677734375, 0.01279449462890625, -0.0133819580078125, -0.022918701171875, 0.019195556640625, -0.0014123916625976562, -0.018157958984375, 0.0218505859375, 0.013763427734375, -0.01157379150390625, -0.02557373046875, 0.00039505958557128906, 0.0131683349609375, 0.01087188720703125, -0.005764007568359375, -0.00963592529296875, -0.01107025146484375, 0.004558563232421875, 0.0260772705078125, -0.031982421875, -0.04461669921875, 0.04736328125, 0.022430419921875, -0.001102447509765625, -0.028961181640625, -0.08636474609375, -0.003719329833984375, -0.0506591796875, 0.0458984375, -0.02716064453125, -0.047027587890625, -0.0556640625, 0.00567626953125, -0.03875732421875, 0.0084075927734375, -0.036376953125, -0.007274627685546875, -0.0010862350463867188, 0.0274505615234375, -0.03338623046875, -0.0221099853515625, -0.0224151611328125, -0.0283966064453125, 0.0005974769592285156, 0.0167388916015625, 0.008697509765625, 0.004451751708984375, -0.00952911376953125, -0.009979248046875, 0.0006971359252929688, 0.0014886856079101562, 0.0177764892578125, 0.0258331298828125, 0.0220489501953125, -0.0036220550537109375, 0.10308837890625, 0.034454345703125, -0.0229949951171875, 0.0621337890625, -0.0307769775390625, -0.0479736328125, 0.0014925003051757812, -0.027618408203125, 0.00010418891906738281, 0.041229248046875, -0.00867462158203125, 0.025970458984375, 0.0247650146484375, -0.034088134765625, 0.0181732177734375, -0.026458740234375, -0.03179931640625, 0.0018739700317382812, 0.0032405853271484375, -0.0250396728515625, 0.0025463104248046875, -0.07177734375, 0.025360107421875, -0.0287628173828125, 0.049285888671875, 0.035552978515625, -0.005840301513671875, 0.0062255859375, 0.0187835693359375, 0.0323486328125, 0.04296875, -0.0023899078369140625, 0.0202484130859375, -0.04498291015625, 0.0200958251953125, -0.01445770263671875, -0.01551055908203125, -0.004810333251953125, 0.0516357421875, -0.00707244873046875, 0.042236328125, -0.0177001953125, -0.01885986328125, -0.00804901123046875, -0.0160064697265625, 0.02337646484375, -0.0195770263671875, -0.022857666015625, -0.019317626953125, -0.002735137939453125, 0.0207061767578125, -0.057952880859375, 0.00106048583984375, 0.0120849609375, 0.0173187255859375, -0.061676025390625, -0.01322174072265625, -0.0687255859375, 0.0014295578002929688, -0.006488800048828125, 0.04278564453125, 0.0076446533203125, 0.01181793212890625, -0.01549530029296875, -0.004314422607421875, -0.010009765625, -0.032684326171875, 0.00572967529296875, -0.00453948974609375, -0.0207061767578125, -0.011962890625, 0.01947021484375, 0.0277099609375, 0.01319122314453125, -0.050750732421875, 0.0158233642578125, 0.052886962890625, -0.010711669921875, -0.02655029296875, 0.007144927978515625, -0.00939178466796875, 0.034271240234375, 0.025665283203125, -0.031280517578125, 0.0180816650390625, -0.01373291015625, 0.045989990234375, 0.0158538818359375, 0.0204925537109375, 0.00672149658203125, 0.0209808349609375, -0.0206146240234375, -0.07275390625, -0.00839996337890625, 0.0443115234375, 0.07147216796875, -0.038726806640625, -0.0179290771484375, -0.0180816650390625, 0.00948333740234375, 0.014068603515625, -0.032073974609375, 0.00787353515625, -0.035125732421875, -0.01332855224609375, 0.0063629150390625, -0.0036945343017578125, -0.0059661865234375, -0.029266357421875, 0.04144287109375, -0.0256195068359375, 0.007152557373046875, 0.0106658935546875, 0.0006055831909179688, 0.030303955078125, 0.049774169921875, -0.05792236328125, 0.0518798828125, -0.04315185546875, 0.05218505859375, -0.05255126953125, -0.00547027587890625, 0.03924560546875, -0.030975341796875, -0.002838134765625, 0.01514434814453125, 0.017730712890625, -0.004253387451171875, 0.025390625, 0.0089263916015625, -0.006435394287109375, -0.02972412109375, 0.0186004638671875, 0.0296630859375, 0.0229339599609375, -0.004192352294921875, -0.03448486328125, 0.0025081634521484375, 0.0281982421875, -0.06829833984375, -0.051300048828125, -0.0159759521484375, -0.03424072265625, -0.0193328857421875, 0.036651611328125, -0.02374267578125, 0.011199951171875, 0.05242919921875, 0.0049591064453125, 0.0254974365234375, -0.040924072265625, -0.04022216796875, -0.056365966796875, -0.05181884765625, -0.0193939208984375, 0.00466156005859375, -0.0294952392578125, 0.0200653076171875, -0.041046142578125, 0.0019178390502929688, -0.00033092498779296875, 0.043853759765625, 0.041107177734375, 0.00885009765625, -0.0182647705078125, -0.03009033203125, -0.053131103515625, -0.01145172119140625, -0.0201416015625, 0.07867431640625, 0.0010881423950195312, 0.01374053955078125, 0.0362548828125, 0.0223388671875, -0.0025539398193359375, 0.0176849365234375, -0.030975341796875, -0.01554107666015625, -0.0086822509765625, -0.01093292236328125, -0.062744140625, 0.006191253662109375, -0.036346435546875, -0.043365478515625, -0.00865936279296875, 0.034515380859375, -0.004764556884765625, -0.006252288818359375, -0.023193359375, 0.0176239013671875, 0.019439697265625, 0.01238250732421875, -0.0099945068359375, 0.023406982421875, -0.0157623291015625, 0.022247314453125, -0.04583740234375, 0.07611083984375, -0.00208282470703125, -0.0362548828125, 0.0158538818359375, 0.0017404556274414062, -0.0125579833984375, 0.0058746337890625, -0.037261962890625, -0.0191650390625, 0.0003561973571777344, -0.114501953125, 0.048004150390625, -0.07745361328125, 0.02313232421875, -0.0753173828125, 0.052825927734375, -0.059814453125, -0.0236663818359375, 0.0013141632080078125, 0.026702880859375, -0.0110321044921875, -0.056304931640625, -0.0135040283203125, -0.0196075439453125, -0.0279388427734375, -0.0027923583984375, -0.0246429443359375, -0.01033782958984375, 0.0082550048828125, -0.09625244140625, 0.00843048095703125, -0.054840087890625, 0.0205841064453125, -0.048553466796875, 0.0033664703369140625, 0.000005781650543212891, -0.0205535888671875, -0.01708984375, -0.01190948486328125, -0.0445556640625, -0.0504150390625, -0.0203704833984375, 0.03857421875, 0.03033447265625, -0.0075836181640625, -0.0223541259765625, 0.0030517578125, 0.062286376953125, 0.029052734375, 0.03533935546875, 0.002223968505859375, -0.0330810546875, 0.0196990966796875, 0.0187835693359375, 0.0214691162109375, -0.0039825439453125, 0.0021114349365234375, -0.0318603515625, -0.07012939453125, -0.06854248046875, -0.020843505859375, 0.002838134765625, 0.0247344970703125, -0.0290985107421875, -0.018524169921875, -0.0094757080078125, -0.016571044921875, -0.0212860107421875, 0.004802703857421875, -0.050811767578125, 0.02215576171875, 0.005535125732421875, -0.003631591796875, -0.005046844482421875, -0.0087890625, 0.007358551025390625, 0.0276947021484375, 0.01329803466796875, -0.01139068603515625, 0.0189971923828125, 0.033447265625, 0.0411376953125, -0.005584716796875, 0.05078125, 0.0341796875, -0.003368377685546875, 0.01357269287109375, -0.0108489990234375, 0.02117919921875, 0.0281982421875, -0.0106964111328125, -0.0022869110107421875, -0.01165771484375, 0.0000027418136596679688, -0.0012083053588867188, -0.00730133056640625, 0.0292205810546875, -0.0011959075927734375, -0.003551483154296875, -0.032470703125, 0.004550933837890625, 0.020965576171875, -0.0300750732421875, -0.031585693359375, -0.0300445556640625, 0.019256591796875, 0.0036163330078125, 0.02191162109375, -0.022064208984375, 0.01427459716796875, 0.0032596588134765625, 0.02081298828125, -0.0260009765625, -0.007419586181640625, 0.01325225830078125, -0.00960540771484375, 0.035736083984375, -0.048828125, -0.03082275390625, -0.0131378173828125, -0.0128021240234375, 0.0498046875, 0.022064208984375, 0.026397705078125, -0.01074981689453125, -0.006855010986328125, -0.021240234375, -0.008697509765625, -0.0193328857421875, 0.0302886962890625, -0.006381988525390625, -0.027496337890625, -0.01454925537109375, -0.01134490966796875, -0.048126220703125, -0.05096435546875, 0.015960693359375, 0.0001131296157836914, -0.00444793701171875, 0.002864837646484375, 0.04718017578125, 0.01091766357421875, 0.0068206787109375, -0.0237274169921875, 0.0036602020263671875, 0.05755615234375, -0.0252685546875, -0.005428314208984375, 0.049163818359375, -0.01605224609375, -0.01180267333984375, 0.0509033203125, -0.038238525390625, 0.033233642578125, 0.04022216796875, 0.0850830078125, 0.0267181396484375, -0.04229736328125, -0.0279693603515625, -0.08343505859375, -0.04296875, 0.0209197998046875, -0.019622802734375, -0.043060302734375, -0.04290771484375, -0.0301971435546875, 0.0176239013671875, 0.01152801513671875, -0.0128631591796875, 0.033905029296875, -0.005950927734375, -0.006591796875, 0.04742431640625, -0.06787109375, -0.007671356201171875, 0.02362060546875, -0.0076904296875, -0.00902557373046875, 0.01505279541015625, -0.052337646484375, -0.02960205078125, -0.0165252685546875, -0.020477294921875, 0.037139892578125, -0.041656494140625, 0.040374755859375, -0.0224151611328125, -0.0014591217041015625, 0.021820068359375, 0.022674560546875, 0.01515960693359375, 0.0007119178771972656, -0.058319091796875, 0.03424072265625, -0.035614013671875, 0.006656646728515625, 0.00833892822265625, -0.032989501953125, -0.046600341796875, -0.03814697265625, 0.003875732421875, 0.00948333740234375, -0.006214141845703125, -0.00661468505859375, -0.0250091552734375, 0.0146331787109375, 0.022613525390625, -0.0093231201171875, -0.02557373046875, 0.073974609375, -0.01546478271484375, 0.04400634765625, -0.01496124267578125, 0.0296630859375, 0.00658416748046875, -0.01372528076171875, 0.0023441314697265625, -0.07562255859375, -0.004695892333984375, -0.0230255126953125, 0.01482391357421875, 0.0628662109375, 0.04522705078125, 0.0163116455078125, 0.0235443115234375, -0.006198883056640625, -0.00980377197265625, -0.0171661376953125, 0.002960205078125, -0.013397216796875, 0.0384521484375, 0.006641387939453125, -0.00010818243026733398, 0.038421630859375, -0.004550933837890625, -0.034332275390625, 0.005107879638671875, 0.004718780517578125, 0.0124053955078125, 0.006137847900390625, -0.0143280029296875, -0.00786590576171875, 0.061676025390625, 0.0199432373046875, 0.046173095703125, 0.005767822265625, 0.027923583984375, 0.03790283203125, -0.0220947265625, 0.01291656494140625, -0.001209259033203125, 0.0540771484375, -0.00615692138671875, -0.01361846923828125, 0.043914794921875, -0.019378662109375, -0.00585174560546875, 0.049835205078125, 0.045318603515625, -0.06640625, -0.00910186767578125, -0.022857666015625, -0.0072784423828125, 0.023101806640625, 0.0080718994140625, -0.002742767333984375, -0.007442474365234375, 0.0041351318359375, 0.0232391357421875, -0.021575927734375, 0.00417327880859375, 0.053924560546875, -0.00417327880859375, 0.006313323974609375, 0.0102691650390625, 0.0062255859375, -0.00823211669921875, -0.034210205078125, 0.004512786865234375, 0.0083465576171875, -0.023529052734375, -0.032958984375, 0.01424407958984375, -0.042449951171875, -0.0300140380859375, 0.0018568038940429688, -0.034912109375, 0.0167694091796875, 0.0114898681640625, 0.002613067626953125, 0.00516510009765625, 0.027374267578125, -0.0179595947265625, 0.01666259765625, 0.0006418228149414062, -0.020172119140625, 0.07147216796875, 0.021575927734375, -0.0171356201171875, -0.0223846435546875, -0.0012216567993164062, -0.019927978515625, -0.02423095703125, 0.02325439453125, -0.002643585205078125, -0.006305694580078125, 0.05340576171875, -0.01476287841796875, -0.035858154296875, 0.0099029541015625, -0.00443267822265625, -0.004413604736328125, 0.005130767822265625, -0.00908660888671875, -0.0379638671875, -0.052154541015625, -0.0172119140625, -0.08770751953125, 0.0011301040649414062, -0.03460693359375, -0.0574951171875, 0.09765625, -0.0211029052734375, 0.0579833984375, 0.03973388671875, 0.03570556640625, -0.02227783203125, 0.0055084228515625, -0.006378173828125, 0.0135955810546875, 0.01232147216796875, 0.0154876708984375, -0.032562255859375, -0.0172119140625, -0.0009274482727050781, 0.06304931640625, -0.0014171600341796875, 0.00888824462890625, -0.06634521484375, 0.02703857421875, 0.051483154296875, 0.01184844970703125, 0.0132293701171875, 0.05999755859375, -0.0260009765625, 0.03411865234375, -0.006786346435546875, -0.038787841796875, -0.00579833984375, 0.01690673828125, -0.061859130859375, 0.01837158203125, 0.0012226104736328125, -0.01322174072265625, 0.021148681640625, 0.01055908203125, -0.043060302734375, 0.015380859375, 0.042144775390625, -0.00403594970703125, 0.0433349609375, 0.0192108154296875, 0.05096435546875, -0.0186767578125, -0.00426483154296875, -0.0019664764404296875, 0.0509033203125, 0.0030975341796875, 0.01015472412109375, 0.04180908203125, 0.01128387451171875, 0.0350341796875, 0.00433349609375, -0.0005521774291992188, 0.01284027099609375, 0.0076904296875, -0.000008821487426757812, 0.03240966796875, 0.033538818359375, 0.0021305084228515625, 0.00463104248046875, 0.046478271484375, 0.0162811279296875, -0.0171356201171875, -0.0271759033203125, 0.001628875732421875, -0.01251220703125, 0.00792694091796875, -0.00528717041015625, 0.0014286041259765625, 0.023712158203125, 0.0279388427734375, -0.025848388671875, -0.005222320556640625, 0.01666259765625, 0.014617919921875, -0.00890350341796875, -0.03350830078125, -0.006404876708984375, 0.0268707275390625, -0.027618408203125, -0.0132293701171875, 0.0301361083984375, 0.046600341796875, 0.018707275390625, 0.0272369384765625, -0.0202789306640625, -0.0273895263671875, -0.001567840576171875, 0.025726318359375, -0.0309295654296875, 0.016571044921875, -0.076904296875, -0.08935546875, 0.032196044921875, 0.06658935546875, 0.047119140625, 0.040802001953125, 0.10650634765625, 0.045806884765625, -0.056915283203125, 0.00498199462890625, -0.0247955322265625, -0.040313720703125, 0.055633544921875, -0.035308837890625, 0.00978851318359375, -0.02093505859375, -0.01377105712890625, -0.037841796875, 0.0058135986328125, 0.0309295654296875, -0.018524169921875, 0.056793212890625, -0.00678253173828125, 0.0186004638671875, 0.005645751953125, -0.022064208984375, 0.00807952880859375, 0.0042877197265625, -0.038116455078125, -0.0032024383544921875, -0.024505615234375, -0.005130767822265625, 0.01377105712890625, 0.0301361083984375, -0.012481689453125, 0.02862548828125, -0.021026611328125, 0.01473236083984375, 0.010589599609375, -0.0203857421875, -0.025390625, 0.0257110595703125, 0.033050537109375, -0.0011739730834960938, -0.05712890625, -0.034912109375, -0.0235443115234375, 0.0207977294921875, -0.006725311279296875, 0.1611328125, -0.051025390625, 0.00475311279296875, 0.00792694091796875, 0.02734375, -0.0158843994140625, -0.0012769699096679688, -0.0232391357421875, -0.015350341796875, 0.033905029296875, 0.00830841064453125, -0.0109100341796875, -0.01061248779296875, 0.01100921630859375, -0.0677490234375, -0.0012664794921875, -0.037689208984375, 0.0213623046875, -0.00004380941390991211, 0.01064300537109375, -0.019012451171875, -0.07720947265625, -0.06329345703125, 0.027557373046875, 0.022308349609375, 0.07928466796875, -0.033203125, 0.02294921875, -0.00785064697265625, 0.00266265869140625, 0.030517578125, -0.0295867919921875, 0.057586669921875, 0.0290679931640625, -0.06884765625, -0.04193115234375, 0.006473541259765625, -0.006771087646484375, -0.006687164306640625, 0.0125274658203125, 0.01456451416015625, 0.020416259765625, -0.061492919921875, -0.00270843505859375, 0.007579803466796875, 0.009490966796875, -0.0235748291015625, 0.016876220703125, 0.006511688232421875, -0.023193359375, 0.0006833076477050781, -0.026947021484375, -0.0132904052734375, -0.0297393798828125, -0.01922607421875, 0.004993438720703125, -0.024261474609375, -0.0301055908203125, -0.03558349609375, -0.018798828125, 0.0550537109375, 0.017730712890625, -0.0675048828125, 0.0054168701171875, -0.00809478759765625, 0.050537109375, 0.013824462890625, 0.0225067138671875, -0.0186309814453125, 0.0187835693359375, -0.02105712890625, -0.01068878173828125, -0.0284271240234375, 0.020782470703125, -0.0222930908203125, -0.004077911376953125, 0.033203125, 0.0076904296875, 0.02044677734375, -0.036224365234375, -0.00975799560546875, 0.0177764892578125, -0.05206298828125, -0.014892578125, 0.0020198822021484375, 0.0117034912109375, -0.030731201171875, -0.022064208984375, 0.00774383544921875, 0.00016188621520996094, -0.00310516357421875, 0.0250091552734375, -0.006561279296875, 0.0015201568603515625, -0.031280517578125, -0.0214385986328125, 0.03973388671875, 0.0178985595703125, -0.023956298828125, -0.0155029296875, -0.020599365234375, -0.04522705078125, 0.08154296875, 0.021728515625, -0.0531005859375, 0.003223419189453125, 0.05352783203125, -0.008514404296875, 0.05120849609375, -0.0234832763671875, 0.01320648193359375, 0.017486572265625, 0.0240325927734375, 0.01134490966796875, -0.039031982421875, 0.0217742919921875, -0.0225830078125, 0.0849609375, 0.0892333984375, 0.01727294921875, 0.07147216796875, 0.0297088623046875, -0.0870361328125, 0.01125335693359375, -0.02886962890625, -0.0718994140625, -0.05224609375, 0.042388916015625, 0.03900146484375, 0.0245513916015625, 0.003917694091796875, -0.022918701171875, -0.06341552734375, -0.037139892578125, 0.0028553009033203125, 0.0350341796875, -0.04583740234375, 0.034088134765625, -0.000850677490234375, -0.0220794677734375, -0.0272369384765625, 0.0063323974609375, -0.050079345703125, 0.005374908447265625, 0.01538848876953125, -0.011566162109375, 0.004428863525390625, 0.00627899169921875, 0.0540771484375, -0.0447998046875, -0.0531005859375, 0.0114593505859375, 0.01114654541015625, -0.0245361328125, -0.037139892578125, 0.010009765625, 0.0213165283203125, -0.04925537109375, 0.01296234130859375, 0.0099639892578125, 0.00969696044921875, -0.032745361328125, -0.0158843994140625, 0.0098876953125, 0.00720977783203125, -0.0330810546875, -0.01192474365234375, 0.03680419921875, 0.032257080078125, -0.02398681640625, 0.09735107421875, -0.00666046142578125, -0.0098114013671875, -0.01702880859375, 0.045135498046875, 0.00021827220916748047, -0.0228729248046875, 0.019989013671875, -0.051971435546875, -0.019256591796875, 0.01678466796875, -0.039093017578125, -0.039031982421875, 0.00389862060546875, -0.0242767333984375, 0.01189422607421875, 0.0019702911376953125 ]
803db9f0d47b034759d6ba21a54b8c0d2c51c60e
Wordpress Stackexchange Q: Modify wp-login.php labels: Username to Email How can you edit the labels of the wp-login.php form? I am using emails for logins, so I need to change username to email. The answer here seems to be out of date, or just doesn't work with SSL or something: Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php) I tried this in my functions file, but it didn't work: function wpse60605_change_username_label( $defaults ) { $defaults['label_username'] = __( 'Email' ); return $defaults; } add_filter( 'login_form_defaults', 'wpse60605_change_username_label' ); A: Found this here: https://wordpress.org/support/topic/how-to-change-the-text-labels-in-userpass-box-on-login-page/ The other answer here didn't work for me, but this one did. Just in case this helps anyone. add_filter( 'gettext', 'register_text' ); add_filter( 'ngettext', 'register_text' ); function register_text( $translated ) { $translated = str_ireplace( 'Username or Email Address', 'Your Custom Text', $translated ); return $translated; }
Q: Modify wp-login.php labels: Username to Email How can you edit the labels of the wp-login.php form? I am using emails for logins, so I need to change username to email. The answer here seems to be out of date, or just doesn't work with SSL or something: Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php) I tried this in my functions file, but it didn't work: function wpse60605_change_username_label( $defaults ) { $defaults['label_username'] = __( 'Email' ); return $defaults; } add_filter( 'login_form_defaults', 'wpse60605_change_username_label' ); A: Found this here: https://wordpress.org/support/topic/how-to-change-the-text-labels-in-userpass-box-on-login-page/ The other answer here didn't work for me, but this one did. Just in case this helps anyone. add_filter( 'gettext', 'register_text' ); add_filter( 'ngettext', 'register_text' ); function register_text( $translated ) { $translated = str_ireplace( 'Username or Email Address', 'Your Custom Text', $translated ); return $translated; } A: Found an answer on stackoverflow shortly after posting this: https://stackoverflow.com/questions/12825865/change-wordpresss-login-label-username Uses the gettext filter instead of any wp functions A: Try this add_filter( 'gettext', 'register_text' ); add_filter( 'ngettext', 'register_text' ); function register_text( $translating ) { $translated = str_ireplace( 'Username or Email Address', 'Your Custom Text', $translating ); return $translated; } A: In addition to changing the login screen, I wanted to remove the Username field from the admin Add New User form. This code added to functions.php did the trick: function hide_username_field(){ // Hide the username field on the admin Add New User form echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'input#user_login\').parent().parent().hide(); $(\'input#email\').change(function() { $(\'input#user_login\').val($(\'input#email\').val()); }); }); </script>' . "\n"; } add_action('admin_head','hide_username_field');
wordpress
{ "language": "en", "length": 251, "provenance": "stackexchange_00019.jsonl.gz:426952", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76618" }
[ -0.0065155029296875, -0.034210205078125, -0.0310211181640625, 0.0308990478515625, -0.0236358642578125, -0.055267333984375, 0.06329345703125, 0.01512908935546875, -0.019866943359375, 0.030853271484375, 0.0139617919921875, -0.0185394287109375, 0.00708770751953125, -0.02850341796875, -0.01248931884765625, -0.03192138671875, -0.009735107421875, 0.021209716796875, 0.0095977783203125, -0.035430908203125, 0.0273895263671875, -0.034881591796875, 0.0179290771484375, 0.00566864013671875, -0.016326904296875, -0.045135498046875, 0.1473388671875, -0.03790283203125, 0.0220489501953125, -0.0186309814453125, 0.0243682861328125, -0.0240020751953125, 0.0164642333984375, 0.04425048828125, -0.051971435546875, -0.036651611328125, 0.00962066650390625, -0.004833221435546875, -0.00044608116149902344, 0.0121307373046875, 0.036895751953125, -0.024261474609375, -0.019989013671875, -0.0013551712036132812, -0.0138397216796875, -0.03924560546875, 0.053436279296875, -0.01471710205078125, 0.0252227783203125, 0.003574371337890625, 0.0013456344604492188, 0.0304107666015625, 0.0112457275390625, -0.0252838134765625, -0.0013990402221679688, 0.0165252685546875, -0.06890869140625, 0.0308990478515625, 0.0216064453125, 0.0293426513671875, 0.007320404052734375, -0.029022216796875, 0.00719451904296875, -0.005252838134765625, -0.009979248046875, -0.0123748779296875, 0.001857757568359375, 0.024658203125, 0.0162353515625, -0.0243377685546875, -0.00791168212890625, 0.01708984375, 0.01151275634765625, -0.048828125, 0.00162506103515625, 0.049224853515625, -0.034515380859375, 0.0018014907836914062, 0.0343017578125, -0.0211639404296875, 0.038238525390625, -0.0155487060546875, -0.0271759033203125, 0.03173828125, 0.0014982223510742188, 0.035552978515625, -0.006114959716796875, -0.033294677734375, -0.01690673828125, 0.006587982177734375, -0.01318359375, -0.01398468017578125, -0.036590576171875, 0.0262451171875, 0.00423431396484375, -0.0167999267578125, 0.0047607421875, 0.00836944580078125, -0.0186614990234375, -0.0217742919921875, -0.01134490966796875, -0.0131072998046875, -0.02105712890625, 0.0092620849609375, -0.00521087646484375, 0.045166015625, 0.0084228515625, 0.03070068359375, 0.0167236328125, 0.0092010498046875, 0.0028018951416015625, 0.0137481689453125, -0.0309906005859375, -0.05078125, -0.0230865478515625, 0.05389404296875, -0.014495849609375, -0.00904083251953125, 0.01265716552734375, 0.01456451416015625, -0.03240966796875, -0.0316162109375, 0.00737762451171875, 0.003589630126953125, 0.016571044921875, -0.0223541259765625, -0.01306915283203125, 0.0263824462890625, -0.00482940673828125, 0.0058135986328125, -0.03497314453125, 0.0251922607421875, 0.07666015625, 0.0258941650390625, 0.007221221923828125, -0.0214385986328125, 0.00323486328125, 0.0141143798828125, -0.00994873046875, 0.0223236083984375, 0.01654052734375, -0.04913330078125, -0.0139617919921875, 0.01485443115234375, 0.0115966796875, 0.013946533203125, 0.024322509765625, 0.023468017578125, -0.01519775390625, -0.043121337890625, 0.028594970703125, -0.0230865478515625, -0.00624847412109375, 0.0472412109375, 0.019134521484375, 0.049285888671875, 0.06719970703125, -0.01428985595703125, -0.0440673828125, -0.00038909912109375, 0.027313232421875, -0.0257568359375, -0.01007080078125, 0.00555419921875, -0.037933349609375, 0.0310211181640625, -0.032989501953125, -0.00960540771484375, 0.028289794921875, -0.00426483154296875, 0.0430908203125, 0.03448486328125, 0.04217529296875, 0.005615234375, 0.0254974365234375, -0.012359619140625, -0.0300750732421875, 0.08392333984375, -0.0018482208251953125, -0.011077880859375, 0.017242431640625, -0.043487548828125, 0.0309295654296875, 0.0167388916015625, -0.0213470458984375, -0.061126708984375, 0.022308349609375, 0.0026187896728515625, 0.040679931640625, 0.03131103515625, 0.008697509765625, -0.0205535888671875, -0.027252197265625, -0.01509857177734375, -0.0157012939453125, -0.0157470703125, 0.00737762451171875, 0.0007381439208984375, -0.005855560302734375, 0.022857666015625, 0.038421630859375, -0.043060302734375, 0.02813720703125, -0.01450347900390625, -0.0103302001953125, -0.02349853515625, -0.006916046142578125, 0.0072479248046875, -0.02850341796875, -0.01447296142578125, 0.0099029541015625, -0.0227203369140625, -0.00698089599609375, -0.0212249755859375, -0.0240936279296875, -0.01270294189453125, -0.0179290771484375, 0.03350830078125, -0.00518798828125, 0.022735595703125, 0.024078369140625, -0.05096435546875, 0.0213470458984375, 0.02276611328125, -0.007030487060546875, -0.0281524658203125, -0.01129913330078125, -0.0149993896484375, 0.00899505615234375, -0.0154266357421875, 0.0421142578125, 0.035919189453125, 0.0027828216552734375, -0.0095062255859375, -0.03125, -0.003875732421875, -0.019989013671875, -0.0321044921875, 0.003208160400390625, 0.035888671875, 0.036407470703125, 0.0023365020751953125, -0.0032711029052734375, 0.0175933837890625, 0.018951416015625, 0.016448974609375, 0.0474853515625, -0.0121002197265625, 0.0257110595703125, 0.055267333984375, -0.032928466796875, 0.008331298828125, 0.0173492431640625, -0.03643798828125, 0.0235748291015625, 0.03607177734375, -0.0014390945434570312, -0.02740478515625, -0.004314422607421875, 0.0009570121765136719, -0.0016965866088867188, -0.05438232421875, -0.031036376953125, -0.0142669677734375, 0.004497528076171875, -0.0175018310546875, -0.01129150390625, -0.030487060546875, -0.04119873046875, 0.0207061767578125, 0.03350830078125, -0.053375244140625, -0.01457977294921875, -0.035186767578125, -0.00006073713302612305, -0.006397247314453125, -0.041290283203125, 0.0465087890625, -0.0122222900390625, -0.0350341796875, -0.0169830322265625, -0.005702972412109375, -0.0234527587890625, -0.0133209228515625, 0.037841796875, -0.05029296875, -0.01540374755859375, -0.01493072509765625, -0.004795074462890625, -0.035064697265625, 0.01788330078125, -0.003826141357421875, -0.03448486328125, 0.036041259765625, -0.0067901611328125, -0.0469970703125, 0.00943756103515625, -0.0017871856689453125, 0.01116180419921875, -0.03497314453125, 0.025238037109375, 0.05047607421875, -0.0221405029296875, 0.01422119140625, 0.0110015869140625, -0.03466796875, 0.01294708251953125, 0.00040030479431152344, 0.0033321380615234375, -0.01073455810546875, -0.01297760009765625, 0.047393798828125, -0.00372314453125, 0.027252197265625, -0.042724609375, -0.06494140625, -0.0299835205078125, -0.00278472900390625, -0.06475830078125, -0.026458740234375, -0.06512451171875, -0.047698974609375, -0.00496673583984375, 0.019012451171875, -0.022064208984375, 0.0302276611328125, 0.0233306884765625, 0.00231170654296875, 0.0264129638671875, -0.0275421142578125, -0.049591064453125, -0.039093017578125, -0.06158447265625, -0.0406494140625, -0.00815582275390625, 0.0000979304313659668, 0.006656646728515625, 0.0347900390625, 0.00368499755859375, -0.0252838134765625, 0.00821685791015625, 0.04974365234375, 0.009765625, -0.009796142578125, 0.002025604248046875, -0.032470703125, 0.05474853515625, -0.002391815185546875, -0.032806396484375, 0.0038280487060546875, 0.022796630859375, -0.0294189453125, 0.021240234375, 0.0084686279296875, 0.035369873046875, -0.019989013671875, -0.036346435546875, 0.01334381103515625, 0.00637054443359375, -0.043701171875, -0.006412506103515625, 0.016143798828125, -0.01313018798828125, 0.048919677734375, -0.0037441253662109375, -0.02996826171875, 0.032806396484375, 0.0107421875, 0.00872039794921875, 0.01050567626953125, 0.03594970703125, -0.004482269287109375, -0.03466796875, -0.01187896728515625, -0.023345947265625, -0.0203857421875, -0.0204925537109375, -0.028778076171875, 0.004970550537109375, -0.02215576171875, 0.005489349365234375, -0.003162384033203125, 0.016357421875, 0.00008940696716308594, -0.089111328125, 0.06304931640625, -0.0662841796875, -0.0517578125, -0.01329803466796875, -0.026611328125, 0.044403076171875, 0.10638427734375, 0.01558685302734375, -0.01213836669921875, 0.02532958984375, 0.0030364990234375, -0.0261688232421875, -0.01331329345703125, -0.045684814453125, -0.00617218017578125, -0.05487060546875, -0.006183624267578125, -0.0011386871337890625, -0.01715087890625, 0.0074462890625, -0.01447296142578125, -0.0175323486328125, -0.032073974609375, 0.01511383056640625, 0.041412353515625, -0.01006317138671875, 0.002490997314453125, -0.018890380859375, -0.0155181884765625, 0.0087127685546875, 0.01255035400390625, -0.07623291015625, -0.01348876953125, -0.028839111328125, 0.056854248046875, 0.0199737548828125, -0.010528564453125, -0.007110595703125, 0.047576904296875, 0.024505615234375, 0.0074005126953125, 0.015472412109375, -0.009429931640625, 0.0223846435546875, -0.00020754337310791016, 0.0024890899658203125, -0.00986480712890625, -0.01296234130859375, -0.002254486083984375, -0.060089111328125, 0.048187255859375, 0.0220947265625, 0.02374267578125, 0.066162109375, -0.041107177734375, -0.04998779296875, -0.033477783203125, -0.0265045166015625, 0.009979248046875, 0.016693115234375, -0.031036376953125, -0.043212890625, -0.07330322265625, 0.0682373046875, 0.022735595703125, -0.0182647705078125, 0.0012664794921875, 0.06805419921875, 0.0015430450439453125, -0.0418701171875, -0.03961181640625, 0.0084381103515625, 0.047119140625, 0.006389617919921875, 0.023834228515625, 0.028564453125, -0.0333251953125, 0.05633544921875, 0.037017822265625, 0.0012540817260742188, -0.0007767677307128906, 0.018463134765625, 0.0031948089599609375, -0.02069091796875, 0.00624847412109375, -0.01324462890625, 0.0094451904296875, 0.003589630126953125, 0.005252838134765625, -0.017669677734375, 0.01373291015625, 0.009979248046875, -0.006671905517578125, 0.0165252685546875, 0.004253387451171875, -0.0443115234375, 0.028472900390625, 0.0170440673828125, -0.07708740234375, -0.022247314453125, 0.005889892578125, -0.058685302734375, -0.0631103515625, -0.005859375, -0.0228729248046875, -0.0799560546875, 0.0120697021484375, -0.012603759765625, -0.0008282661437988281, 0.01024627685546875, 0.01198577880859375, -0.027374267578125, 0.1129150390625, 0.0183563232421875, -0.054168701171875, 0.044403076171875, -0.0286712646484375, 0.0245819091796875, 0.027252197265625, -0.01031494140625, 0.025634765625, 0.024871826171875, -0.01245880126953125, 0.0218963623046875, 0.0258331298828125, -0.02508544921875, -0.027496337890625, 0.0031604766845703125, 0.0038394927978515625, -0.0222625732421875, 0.0032405853271484375, 0.04461669921875, -0.0179901123046875, 0.0237274169921875, -0.00841522216796875, 0.01465606689453125, 0.0191802978515625, 0.01335906982421875, 0.020233154296875, 0.014923095703125, -0.004978179931640625, -0.01611328125, 0.0186004638671875, -0.0108795166015625, 0.0175628662109375, 0.0222320556640625, 0.0232086181640625, 0.034149169921875, 0.0041961669921875, -0.0199432373046875, -0.035888671875, 0.013916015625, 0.04071044921875, -0.0245513916015625, -0.0865478515625, -0.0201416015625, 0.01471710205078125, 0.0226898193359375, -0.0728759765625, -0.00472259521484375, -0.0352783203125, -0.057281494140625, -0.01421356201171875, 0.040557861328125, 0.0003006458282470703, -0.03167724609375, -0.053863525390625, -0.0215301513671875, -0.019866943359375, -0.018463134765625, 0.004146575927734375, 0.02490234375, -0.0195159912109375, -0.0094757080078125, 0.0195159912109375, -0.0020809173583984375, 0.01322174072265625, -0.0301513671875, -0.004367828369140625, -0.016998291015625, -0.01332855224609375, 0.047698974609375, -0.0166168212890625, -0.031982421875, 0.00818634033203125, -0.025146484375, 0.0023860931396484375, -0.025604248046875, -0.050140380859375, -0.024932861328125, -0.0191650390625, 0.0070343017578125, 0.01111602783203125, -0.01206207275390625, 0.0020904541015625, -0.005962371826171875, 0.0172119140625, -0.0009379386901855469, 0.0626220703125, -0.024383544921875, 0.06842041015625, 0.00012564659118652344, 0.01422882080078125, 0.0036907196044921875, 0.043853759765625, -0.0151824951171875, -0.00962066650390625, -0.00894927978515625, -0.0170745849609375, -0.00489044189453125, -0.0286865234375, 0.0218048095703125, 0.0197906494140625, 0.06951904296875, 0.0030574798583984375, 0.004535675048828125, 0.0055389404296875, 0.0179595947265625, -0.0208892822265625, 0.008514404296875, -0.01004791259765625, -0.027099609375, 0.034942626953125, 0.009124755859375, 0.046600341796875, -0.031219482421875, 0.00641632080078125, 0.003269195556640625, -0.01412200927734375, 0.01800537109375, 0.021026611328125, -0.0246734619140625, 0.022705078125, 0.024078369140625, -0.004970550537109375, 0.01546478271484375, -0.01507568359375, 0.019439697265625, 0.0134429931640625, -0.0430908203125, -0.0140533447265625, 0.024658203125, 0.033355712890625, -0.009674072265625, -0.004619598388671875, 0.027740478515625, -0.0197601318359375, 0.0234222412109375, 0.09576416015625, 0.078857421875, -0.12060546875, 0.00632476806640625, -0.001983642578125, -0.0031871795654296875, 0.06427001953125, 0.0231781005859375, -0.027496337890625, -0.0242462158203125, 0.0005645751953125, -0.052459716796875, -0.01068115234375, 0.01120758056640625, 0.020721435546875, -0.00055694580078125, -0.0012454986572265625, 0.052703857421875, 0.00909423828125, -0.025482177734375, -0.01331329345703125, 0.0009059906005859375, 0.01425933837890625, -0.034149169921875, 0.00551605224609375, 0.03460693359375, -0.0107879638671875, -0.09881591796875, 0.0015382766723632812, -0.002918243408203125, -0.03485107421875, -0.0036869049072265625, 0.0021381378173828125, 0.0777587890625, 0.040771484375, 0.01222991943359375, -0.01739501953125, 0.0165557861328125, 0.0007472038269042969, 0.036285400390625, -0.0164794921875, -0.017333984375, 0.0416259765625, -0.0303192138671875, 0.0142059326171875, 0.00019609928131103516, 0.0034618377685546875, -0.0303802490234375, -0.07257080078125, 0.06256103515625, 0.0218505859375, -0.0270233154296875, 0.01922607421875, -0.002468109130859375, -0.0256500244140625, -0.00875091552734375, -0.0098114013671875, -0.04864501953125, -0.06536865234375, -0.03167724609375, -0.1265869140625, 0.01058197021484375, -0.05401611328125, -0.084228515625, 0.1102294921875, 0.0245361328125, 0.053131103515625, -0.00882720947265625, 0.028656005859375, -0.01220703125, 0.01971435546875, -0.00901031494140625, 0.0211944580078125, 0.00807952880859375, 0.0178985595703125, 0.0325927734375, 0.01160430908203125, 0.0252685546875, 0.005096435546875, 0.00688934326171875, 0.013275146484375, 0.0022296905517578125, -0.03546142578125, -0.007762908935546875, 0.04266357421875, 0.0129852294921875, -0.0003662109375, 0.02178955078125, 0.031707763671875, 0.015838623046875, -0.04339599609375, 0.01554107666015625, -0.0237579345703125, -0.004520416259765625, 0.05047607421875, 0.00951385498046875, -0.00867462158203125, -0.028472900390625, 0.05413818359375, -0.0906982421875, 0.004802703857421875, 0.051788330078125, -0.0226898193359375, -0.02252197265625, 0.0213775634765625, 0.01055145263671875, -0.004001617431640625, 0.035186767578125, -0.0416259765625, 0.0404052734375, 0.006633758544921875, 0.0144805908203125, 0.06658935546875, 0.0190582275390625, 0.04156494140625, -0.003604888916015625, 0.006389617919921875, -0.012664794921875, 0.04620361328125, 0.0271453857421875, 0.00688934326171875, 0.003360748291015625, -0.033966064453125, 0.0345458984375, 0.018890380859375, 0.022674560546875, -0.04632568359375, -0.00783538818359375, 0.01181793212890625, 0.0145721435546875, 0.0269927978515625, -0.0112457275390625, 0.0543212890625, -0.06219482421875, -0.0276947021484375, 0.012908935546875, 0.00780487060546875, 0.016693115234375, -0.01015472412109375, 0.004077911376953125, 0.0171966552734375, -0.0171966552734375, 0.04296875, -0.0223846435546875, 0.0172119140625, 0.010955810546875, 0.004505157470703125, -0.0196685791015625, 0.0662841796875, 0.021331787109375, 0.013916015625, -0.001873016357421875, 0.0031108856201171875, 0.01470947265625, -0.0214080810546875, 0.005382537841796875, -0.0021877288818359375, 0.0008373260498046875, 0.01092529296875, -0.0041961669921875, -0.043426513671875, 0.00009447336196899414, 0.016326904296875, -0.028045654296875, -0.03778076171875, 0.02374267578125, -0.01212310791015625, 0.018768310546875, -0.0233306884765625, 0.0065460205078125, 0.0019407272338867188, -0.00890350341796875, -0.0166473388671875, 0.031646728515625, -0.001861572265625, -0.005435943603515625, 0.046417236328125, -0.00885772705078125, -0.027252197265625, 0.0171661376953125, -0.01007843017578125, 0.07635498046875, 0.0247650146484375, -0.0902099609375, -0.01910400390625, -0.0109710693359375, -0.0173187255859375, 0.0188751220703125, 0.0343017578125, -0.006076812744140625, 0.01029205322265625, 0.020904541015625, -0.032501220703125, 0.04156494140625, -0.00726318359375, -0.004150390625, -0.005847930908203125, 0.00861358642578125, -0.017425537109375, -0.03338623046875, -0.01861572265625, -0.0114288330078125, 0.027496337890625, 0.031524658203125, 0.00853729248046875, 0.01175689697265625, 0.018035888671875, -0.06787109375, 0.0318603515625, -0.076416015625, -0.06512451171875, 0.05126953125, -0.01947021484375, -0.023590087890625, 0.022979736328125, -0.0364990234375, 0.071533203125, -0.0190887451171875, 0.00650787353515625, 0.053375244140625, -0.0202484130859375, -0.007541656494140625, 0.0008111000061035156, -0.003086090087890625, -0.0290069580078125, -0.07830810546875, -0.007755279541015625, 0.05462646484375, -0.0284271240234375, 0.0191192626953125, -0.01666259765625, 0.061920166015625, -0.03448486328125, 0.006435394287109375, 0.0237579345703125, -0.04534912109375, 0.0029506683349609375, 0.016510009765625, -0.042327880859375, -0.006977081298828125, -0.0306549072265625, -0.035675048828125, -0.01067352294921875, 0.00135040283203125, 0.01605224609375, -0.03314208984375, 0.00348663330078125, -0.0193939208984375, 0.04168701171875, 0.031463623046875, 0.00972747802734375, 0.0244598388671875, 0.004039764404296875, -0.036865234375, 0.02667236328125, -0.06341552734375, -0.0380859375, -0.0270843505859375, -0.0123748779296875, 0.0216064453125, -0.00142669677734375, -0.0654296875, -0.06256103515625, 0.01351165771484375, -0.0006766319274902344, -0.023651123046875, -0.01531219482421875, -0.01434326171875, -0.01183319091796875, 0.058349609375, -0.0300140380859375, -0.055816650390625, 0.0293426513671875, 0.03131103515625, -0.0178375244140625, -0.01739501953125, -0.0343017578125, -0.0222015380859375, -0.044097900390625, -0.0160369873046875, 0.02020263671875, 0.029510498046875, -0.01171875, -0.0112457275390625, -0.06329345703125, 0.0294189453125, -0.06866455078125, -0.0208892822265625, 0.0205535888671875, 0.002716064453125, -0.0022258758544921875, -0.100830078125, -0.01318359375, -0.07757568359375, 0.0266265869140625, -0.01255035400390625, -0.008941650390625, 0.00445556640625, -0.0491943359375, -0.099853515625, 0.040771484375, -0.01415252685546875, -0.04742431640625, -0.038055419921875, 0.03948974609375, -0.0294036865234375, 0.044921875, 0.00003135204315185547, -0.038818359375, 0.0163116455078125, 0.032562255859375, 0.00632476806640625, 0.036224365234375, 0.017181396484375, 0.0171051025390625, -0.0236358642578125, 0.0032253265380859375, -0.0130615234375, 0.007595062255859375, 0.038330078125, -0.00823974609375, 0.009735107421875, 0.037139892578125, -0.0623779296875, -0.044891357421875, -0.050079345703125, 0.0118255615234375, -0.003963470458984375, -0.06317138671875, 0.032379150390625, -0.0008711814880371094, 0.01904296875, -0.016326904296875, -0.01617431640625, -0.011474609375, -0.05572509765625, -0.029876708984375, 0.0214080810546875, -0.005832672119140625, -0.00179290771484375, -0.054534912109375, 0.002864837646484375, -0.004878997802734375, -0.025054931640625, -0.006862640380859375, 0.00939178466796875, -0.041595458984375, 0.01207733154296875, 0.00513458251953125, -0.0096588134765625, -0.0155029296875, -0.038238525390625, 0.0869140625, -0.04156494140625, -0.016265869140625, 0.021240234375, 0.023712158203125, 0.0291748046875, 0.00997161865234375, -0.0173187255859375, -0.02490234375, -0.00405120849609375, 0.012481689453125, -0.0002090930938720703, 0.04827880859375, -0.007305145263671875, -0.0258941650390625, -0.0233306884765625, 0.0190277099609375, -0.0068511962890625, 0.022369384765625, -0.0187835693359375, 0.0433349609375, 0.01526641845703125, 0.0501708984375, -0.0284576416015625, -0.054290771484375, -0.03143310546875, -0.0212249755859375, -0.0309906005859375, 0.0303802490234375, 0.0010538101196289062, 0.01727294921875, 0.00789642333984375, -0.0025348663330078125, 0.051361083984375, -0.030029296875, 0.00916290283203125, -0.04644775390625, 0.0199127197265625, 0.0131683349609375 ]
e20d0fda5652c007ecb68bfedc46b1f538d89d5a
Wordpress Stackexchange Q: WP_User_Query to exclude users with no posts I see that it is possible to sort a user query by the number of posts each user has, but is it possible to exclude users with zero posts from the result? In the Wp_User_Query class there is a pre_user_query action, but query strings are a huge weak point, so I'm not sure what sort of filter action I'd want to use here. A: Since 4.4, you can simply use the `has_published_posts' parameter. Example: $authors = get_transient('mytheme_all_authors'); if (empty($authors)){ $user_args = array( 'role__in' => array('Author', 'Administrator', 'Contributor'), 'orderby' => 'post_count', 'order' => 'DESC', 'count_total' => true, 'has_published_posts' => array('post'), ); $authors = new WP_User_Query( $user_args ); set_transient('mytheme_all_authors', $authors, 1 * HOUR_IN_SECONDS ); } $total= $authors->get_total(); $authors = $authors->results; foreach ( $authors as $user) { // loop through your users.... has_published_postscan be either true/false (or null), or an array of post types (like in this example). Note: I'm using transients here because this specific query can get pretty heavy depending on the system so it makes sense to store it for future uses.
Q: WP_User_Query to exclude users with no posts I see that it is possible to sort a user query by the number of posts each user has, but is it possible to exclude users with zero posts from the result? In the Wp_User_Query class there is a pre_user_query action, but query strings are a huge weak point, so I'm not sure what sort of filter action I'd want to use here. A: Since 4.4, you can simply use the `has_published_posts' parameter. Example: $authors = get_transient('mytheme_all_authors'); if (empty($authors)){ $user_args = array( 'role__in' => array('Author', 'Administrator', 'Contributor'), 'orderby' => 'post_count', 'order' => 'DESC', 'count_total' => true, 'has_published_posts' => array('post'), ); $authors = new WP_User_Query( $user_args ); set_transient('mytheme_all_authors', $authors, 1 * HOUR_IN_SECONDS ); } $total= $authors->get_total(); $authors = $authors->results; foreach ( $authors as $user) { // loop through your users.... has_published_postscan be either true/false (or null), or an array of post types (like in this example). Note: I'm using transients here because this specific query can get pretty heavy depending on the system so it makes sense to store it for future uses. A: Well I have come up with 2 solutions. Solution 1 - foreach loop and verify each user This one is based off of @GhostToast's solution, but with updated WordPress functions //new query with default args $author_query = new WP_User_Query(); // Get the results $authors = $author_query->get_results(); if( $authors ) { foreach( $authors as $author ) { if ( count_user_posts( $author->id ) >= 1 ) { echo $author->display_name . '</br>'; } } } else { echo "no users found"; } Solution 2 - fancy pants pre_user_query action This is what I was thinking of when I posted my question once I found the pre_user_query action in the WP_User_Query class. If you pass in post_count as your orderby parameter then some fancy SQL querying that I never would've figured out on my own happens to join the proper tables together. So what I did was copy that join statement and add it on to my own. This would be better if I could check for its presence first before adding it... perhaps I will use a string match in the future. But for now since I am the one setting up the query I know it isn't there and I just won't worry about it yet. So the code turned out like so: function authors_with_posts( $query ) { if ( isset( $query->query_vars['query_id'] ) && 'authors_with_posts' == $query->query_vars['query_id'] ) { $query->query_from = $query->query_from . ' LEFT OUTER JOIN ( SELECT post_author, COUNT(*) as post_count FROM wp_posts WHERE post_type = "post" AND (post_status = "publish" OR post_status = "private") GROUP BY post_author ) p ON (wp_users.ID = p.post_author)'; $query->query_where = $query->query_where . ' AND post_count > 0 '; } } add_action('pre_user_query','authors_with_posts'); and then to use it $args = ( array( 'query_id' => 'authors_with_posts' ) ); $author_query = new WP_User_Query( $args ); The idea for a query_id parameter is from An Introduction to WP_User_Class Which is also just a very good reference on WP_User_Query A: Submitting as answer for closure: $all_members = get_users(); foreach($all_members as $member){ $post_count = count_user_posts($member->ID); if(empty($post_count)) { $bad_writers[] = $member->ID; continue; } else { // do something; } }
wordpress
{ "language": "en", "length": 529, "provenance": "stackexchange_00019.jsonl.gz:426955", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76622" }
[ 0.06268310546875, 0.0102996826171875, -0.0181121826171875, -0.0185394287109375, 0.0208740234375, -0.0523681640625, 0.057373046875, -0.0246429443359375, 0.023895263671875, 0.03021240234375, 0.00521087646484375, -0.0148773193359375, -0.006946563720703125, -0.0220947265625, -0.05230712890625, -0.01000213623046875, 0.017303466796875, -0.0011644363403320312, 0.0202484130859375, -0.0155181884765625, -0.00460052490234375, -0.014129638671875, 0.05487060546875, -0.016571044921875, -0.0209808349609375, -0.006443023681640625, 0.07611083984375, -0.045745849609375, 0.01235198974609375, -0.023529052734375, -0.000286102294921875, 0.007381439208984375, 0.00955963134765625, 0.0269775390625, -0.007495880126953125, 0.07452392578125, -0.0209197998046875, 0.029815673828125, 0.035064697265625, -0.00554656982421875, 0.01421356201171875, -0.00888824462890625, -0.06787109375, -0.01363372802734375, -0.0443115234375, -0.04180908203125, 0.0263519287109375, 0.0158843994140625, 0.04803466796875, 0.005641937255859375, 0.0032215118408203125, 0.01543426513671875, 0.01555633544921875, -0.00789642333984375, -0.0162200927734375, 0.0155029296875, 0.0212249755859375, 0.00013017654418945312, 0.0523681640625, -0.03936767578125, -0.05902099609375, -0.023895263671875, 0.043121337890625, -0.0279541015625, 0.00786590576171875, -0.01268768310546875, -0.01372528076171875, 0.0261383056640625, -0.0010833740234375, -0.003997802734375, -0.00284576416015625, 0.0072479248046875, -0.024871826171875, 0.0251922607421875, -0.054412841796875, -0.0167388916015625, 0.0124969482421875, -0.048309326171875, 0.029327392578125, 0.035247802734375, -0.01483917236328125, 0.004489898681640625, -0.0654296875, 0.01190948486328125, -0.0460205078125, -0.00890350341796875, -0.02423095703125, 0.00943756103515625, -0.05096435546875, -0.0017604827880859375, -0.0225677490234375, -0.056732177734375, -0.075927734375, 0.0296783447265625, 0.041778564453125, -0.01800537109375, 0.07379150390625, 0.08355712890625, -0.00015807151794433594, -0.043731689453125, 0.01062774658203125, -0.0228271484375, -0.06439208984375, 0.004955291748046875, 0.032257080078125, 0.04620361328125, -0.0266876220703125, 0.031951904296875, 0.04046630859375, 0.0210723876953125, 0.004390716552734375, -0.041595458984375, -0.011993408203125, -0.0248565673828125, -0.024566650390625, -0.004085540771484375, -0.042449951171875, -0.00930023193359375, -0.005908966064453125, -0.0291595458984375, 0.0025920867919921875, 0.0206756591796875, -0.0193634033203125, -0.05548095703125, 0.04107666015625, -0.0011301040649414062, -0.037078857421875, 0.02557373046875, 0.03729248046875, 0.0509033203125, -0.0433349609375, 0.004764556884765625, 0.05133056640625, -0.0132293701171875, -0.023223876953125, -0.031768798828125, -0.004314422607421875, -0.007293701171875, -0.0043792724609375, 0.0070037841796875, 0.0071563720703125, -0.053802490234375, 0.002742767333984375, 0.0201263427734375, 0.0155792236328125, 0.0274200439453125, 0.034637451171875, -0.0089263916015625, -0.01361846923828125, -0.05010986328125, -0.01456451416015625, 0.00409698486328125, 0.01427459716796875, 0.022918701171875, -0.0189971923828125, 0.031585693359375, 0.0157928466796875, -0.0111083984375, -0.0225830078125, -0.009124755859375, 0.043365478515625, 0.01453399658203125, 0.0000871419906616211, 0.018890380859375, -0.041473388671875, -0.01195526123046875, 0.0011110305786132812, -0.00875091552734375, 0.01036834716796875, 0.0007457733154296875, -0.015625, 0.0076446533203125, 0.05291748046875, 0.043426513671875, 0.005401611328125, 0.033905029296875, 0.0022563934326171875, -0.0007576942443847656, -0.0019044876098632812, 0.00286865234375, -0.031768798828125, -0.0268707275390625, 0.004718780517578125, 0.0027179718017578125, -0.04840087890625, 0.029510498046875, -0.0023021697998046875, 0.044830322265625, 0.007678985595703125, -0.003810882568359375, 0.04150390625, 0.039703369140625, -0.009674072265625, 0.01141357421875, -0.00911712646484375, -0.046173095703125, 0.001194000244140625, -0.0268096923828125, -0.0030803680419921875, 0.037628173828125, 0.06390380859375, -0.008270263671875, 0.031646728515625, -0.0266571044921875, -0.08099365234375, 0.01824951171875, -0.038848876953125, 0.013824462890625, -0.014007568359375, 0.0077972412109375, 0.032623291015625, 0.005859375, -0.056365966796875, 0.0552978515625, -0.0182647705078125, -0.0206451416015625, 0.011260986328125, 0.01076507568359375, 0.01154327392578125, 0.002056121826171875, 0.034088134765625, -0.032867431640625, 0.01232147216796875, 0.031219482421875, 0.07757568359375, -0.0635986328125, 0.0294036865234375, -0.070556640625, 0.08367919921875, -0.028961181640625, 0.0178375244140625, 0.041290283203125, 0.04541015625, 0.045135498046875, -0.017425537109375, 0.0294952392578125, -0.00814056396484375, -0.0240325927734375, -0.023223876953125, 0.02960205078125, 0.0252532958984375, -0.01244354248046875, -0.0188446044921875, 0.006931304931640625, 0.0474853515625, -0.0225372314453125, 0.0057220458984375, 0.0002636909484863281, 0.01432037353515625, 0.06732177734375, 0.007110595703125, 0.004550933837890625, 0.0002636909484863281, -0.02410888671875, 0.0253448486328125, 0.033416748046875, 0.01438140869140625, 0.054046630859375, -0.037261962890625, -0.002147674560546875, -0.005970001220703125, -0.0210723876953125, -0.01021575927734375, 0.0029048919677734375, 0.031280517578125, -0.039642333984375, -0.0010089874267578125, -0.0098114013671875, -0.015899658203125, -0.02032470703125, 0.0309295654296875, -0.0310516357421875, 0.00803375244140625, 0.01580810546875, -0.0164031982421875, 0.038909912109375, -0.036224365234375, 0.004718780517578125, 0.01239013671875, -0.0014944076538085938, -0.017578125, 0.0250244140625, 0.03143310546875, 0.0027103424072265625, -0.04193115234375, -0.01486968994140625, 0.060302734375, 0.0208282470703125, -0.015228271484375, -0.0301971435546875, 0.00909423828125, 0.0247344970703125, -0.0251312255859375, 0.0261688232421875, 0.0129547119140625, -0.023193359375, -0.07574462890625, -0.08648681640625, 0.04254150390625, -0.046142578125, 0.044769287109375, 0.10101318359375, 0.052978515625, -0.0157470703125, 0.00782012939453125, 0.005756378173828125, -0.01496124267578125, 0.01378631591796875, 0.006381988525390625, 0.0035915374755859375, -0.0273895263671875, 0.036163330078125, 0.029815673828125, 0.0404052734375, 0.0238800048828125, -0.0150146484375, -0.0008668899536132812, 0.034637451171875, -0.0307159423828125, -0.060546875, 0.0070953369140625, -0.028106689453125, -0.0225067138671875, -0.005329132080078125, -0.01202392578125, -0.00408935546875, -0.016998291015625, -0.006786346435546875, -0.0011196136474609375, -0.0240020751953125, -0.057281494140625, -0.0369873046875, -0.042755126953125, 0.0516357421875, -0.003673553466796875, 0.00846099853515625, 0.006397247314453125, 0.098876953125, 0.0302581787109375, -0.035430908203125, 0.004261016845703125, 0.044677734375, -0.03631591796875, -0.01258087158203125, -0.0186309814453125, 0.06170654296875, -0.033355712890625, 0.0193634033203125, 0.006000518798828125, 0.01300811767578125, -0.03204345703125, -0.01806640625, 0.034912109375, 0.0033092498779296875, 0.043914794921875, 0.0106964111328125, -0.052825927734375, 0.00679779052734375, 0.045257568359375, -0.035369873046875, -0.01483917236328125, 0.0028476715087890625, -0.0245819091796875, 0.04266357421875, -0.0161590576171875, -0.0005517005920410156, 0.00438690185546875, 0.0267333984375, 0.038299560546875, 0.0166168212890625, -0.0245819091796875, 0.01114654541015625, -0.00853729248046875, 0.01593017578125, 0.04730224609375, 0.01084136962890625, -0.0060577392578125, -0.0239105224609375, 0.04034423828125, -0.00777435302734375, 0.0251922607421875, 0.01239013671875, -0.0076904296875, -0.0143890380859375, -0.0257110595703125, 0.049713134765625, 0.0262298583984375, 0.0026226043701171875, -0.01549530029296875, -0.039764404296875, -0.00940704345703125, 0.0693359375, 0.004058837890625, -0.01763916015625, -0.057464599609375, -0.020904541015625, -0.003246307373046875, -0.0167999267578125, 0.003429412841796875, 0.017425537109375, -0.0159759521484375, 0.00966644287109375, -0.016754150390625, 0.006305694580078125, -0.01303863525390625, -0.034698486328125, 0.0091552734375, -0.0159912109375, 0.01337432861328125, -0.038543701171875, 0.0277099609375, -0.0175323486328125, -0.01227569580078125, -0.0171356201171875, 0.004852294921875, -0.06011962890625, -0.06640625, -0.00461578369140625, -0.01114654541015625, 0.0193634033203125, -0.04345703125, 0.06451416015625, -0.0247039794921875, 0.034881591796875, -0.0159454345703125, 0.03070068359375, -0.03216552734375, -0.0011816024780273438, -0.04241943359375, 0.00018775463104248047, -0.00434112548828125, -0.00632476806640625, 0.0278472900390625, -0.01158905029296875, -0.02581787109375, 0.01355743408203125, -0.0758056640625, 0.006702423095703125, -0.0650634765625, -0.0173797607421875, -0.023468017578125, -0.0151214599609375, 0.004230499267578125, 0.0439453125, -0.0226898193359375, 0.0027484893798828125, -0.034942626953125, -0.032257080078125, 0.065185546875, 0.0144195556640625, 0.00612640380859375, -0.00516510009765625, 0.089111328125, 0.00279998779296875, -0.042755126953125, -0.040283203125, -0.007663726806640625, 0.012725830078125, 0.0007753372192382812, -0.003421783447265625, -0.043182373046875, -0.032440185546875, 0.059967041015625, -0.03973388671875, -0.0295562744140625, -0.032073974609375, 0.05682373046875, -0.0347900390625, -0.057159423828125, 0.0287017822265625, -0.05950927734375, 0.0489501953125, 0.035552978515625, 0.003856658935546875, -0.024627685546875, 0.046142578125, 0.0306243896484375, -0.0186767578125, -0.00681304931640625, -0.0175018310546875, -0.0190277099609375, -0.0106658935546875, -0.004451751708984375, 0.04095458984375, 0.0264892578125, 0.001476287841796875, 0.0018224716186523438, 0.022216796875, -0.0164642333984375, 0.0006608963012695312, -0.0045013427734375, 0.0023021697998046875, 0.02655029296875, -0.0296630859375, -0.01268768310546875, 0.0018262863159179688, -0.01172637939453125, 0.057586669921875, 0.0019397735595703125, -0.0428466796875, 0.017181396484375, -0.008514404296875, 0.04681396484375, 0.003376007080078125, 0.01422882080078125, 0.052703857421875, 0.048309326171875, 0.010650634765625, -0.03094482421875, -0.00823211669921875, 0.023162841796875, -0.044342041015625, 0.01047515869140625, 0.00946044921875, -0.0135345458984375, 0.02301025390625, 0.0670166015625, 0.010101318359375, 0.054412841796875, -0.031280517578125, 0.03289794921875, 0.0321044921875, 0.0107574462890625, 0.0044403076171875, 0.019775390625, -0.0017261505126953125, -0.004425048828125, 0.018768310546875, -0.0184783935546875, 0.00033664703369140625, 0.0244598388671875, 0.0013713836669921875, 0.0560302734375, 0.0105133056640625, 0.0018110275268554688, 0.022857666015625, -0.0145263671875, 0.035736083984375, 0.00206756591796875, -0.02886962890625, -0.0433349609375, -0.0217742919921875, 0.0219879150390625, -0.0010662078857421875, -0.0252227783203125, 0.0006175041198730469, -0.054412841796875, -0.00502777099609375, 0.0283660888671875, -0.022857666015625, -0.005779266357421875, -0.004917144775390625, -0.035980224609375, -0.03399658203125, 0.0005369186401367188, -0.01129150390625, 0.01422119140625, -0.0296630859375, 0.0025081634521484375, 0.054840087890625, -0.00336456298828125, 0.052764892578125, -0.066650390625, -0.0003457069396972656, -0.03387451171875, -0.0028934478759765625, 0.045684814453125, 0.0235595703125, -0.00666046142578125, -0.01397705078125, -0.0408935546875, -0.01910400390625, 0.0178375244140625, -0.0100555419921875, -0.02374267578125, -0.01401519775390625, 0.0237884521484375, 0.0110015869140625, -0.01202392578125, -0.07720947265625, -0.036376953125, -0.0117340087890625, 0.047882080078125, -0.0282135009765625, 0.0125274658203125, 0.06292724609375, -0.037994384765625, 0.033477783203125, 0.023956298828125, 0.061767578125, 0.0010519027709960938, -0.045440673828125, -0.0189208984375, -0.070556640625, -0.016357421875, 0.006114959716796875, 0.003818511962890625, 0.0274505615234375, 0.0118560791015625, -0.0045318603515625, 0.00023865699768066406, 0.0034942626953125, 0.0017290115356445312, -0.0168609619140625, -0.009124755859375, 0.02423095703125, 0.0300445556640625, -0.0008740425109863281, -0.0032520294189453125, 0.00728607177734375, -0.036468505859375, -0.03680419921875, -0.022613525390625, 0.01641845703125, -0.0279541015625, 0.01308441162109375, -0.017578125, 0.046112060546875, 0.01532745361328125, -0.0389404296875, 0.01052093505859375, 0.00847625732421875, 0.0017871856689453125, 0.007171630859375, -0.038543701171875, 0.038482666015625, 0.02032470703125, 0.07708740234375, -0.0101470947265625, 0.00815582275390625, 0.07781982421875, -0.03765869140625, 0.019012451171875, 0.0130157470703125, 0.0136260986328125, -0.04376220703125, 0.0206756591796875, -0.007007598876953125, -0.01473236083984375, 0.012847900390625, 0.0000029206275939941406, 0.01947021484375, -0.0418701171875, 0.0531005859375, 0.007965087890625, 0.0005655288696289062, 0.00514984130859375, -0.0299224853515625, -0.01029205322265625, -0.005092620849609375, -0.00728607177734375, 0.0208740234375, 0.0185699462890625, 0.0225982666015625, 0.0299072265625, 0.01557159423828125, -0.016357421875, 0.03411865234375, -0.0159759521484375, 0.023193359375, -0.04168701171875, 0.0248870849609375, -0.0110931396484375, -0.017730712890625, 0.029815673828125, 0.027130126953125, 0.023406982421875, 0.041015625, 0.0196533203125, -0.0266571044921875, 0.039459228515625, -0.05474853515625, -0.04437255859375, -0.04083251953125, -0.026336669921875, 0.038787841796875, -0.014739990234375, 0.042327880859375, -0.002933502197265625, -0.0252685546875, -0.00905609130859375, -0.0206756591796875, 0.058135986328125, -0.0386962890625, -0.01509857177734375, 0.006488800048828125, 0.0121612548828125, 0.005977630615234375, -0.002727508544921875, -0.00841522216796875, -0.050994873046875, -0.02069091796875, -0.01165771484375, -0.02825927734375, 0.0092620849609375, 0.004085540771484375, -0.053741455078125, 0.07122802734375, -0.053741455078125, 0.0538330078125, 0.0143280029296875, 0.027130126953125, 0.0192718505859375, 0.0130157470703125, -0.060302734375, 0.07708740234375, 0.0035037994384765625, 0.08538818359375, -0.060546875, 0.0006494522094726562, 0.036651611328125, 0.04656982421875, 0.07342529296875, 0.021392822265625, -0.050018310546875, -0.0198211669921875, 0.0281524658203125, 0.00933837890625, -0.01617431640625, 0.05828857421875, 0.0173492431640625, 0.0082244873046875, 0.052642822265625, 0.0079803466796875, 0.069091796875, -0.041015625, -0.011810302734375, 0.022247314453125, 0.004306793212890625, 0.0209808349609375, -0.00807952880859375, 0.017913818359375, -0.0186767578125, -0.014373779296875, 0.01079559326171875, 0.0185089111328125, 0.006931304931640625, 0.02166748046875, 0.019256591796875, -0.05926513671875, -0.033355712890625, -0.0214080810546875, 0.03302001953125, 0.012298583984375, 0.0169677734375, 0.032989501953125, 0.01461029052734375, 0.053253173828125, -0.033782958984375, 0.0032482147216796875, -0.011016845703125, -0.006008148193359375, 0.046661376953125, 0.024505615234375, 0.0296478271484375, -0.05029296875, -0.0416259765625, 0.032745361328125, 0.055694580078125, -0.029052734375, -0.042236328125, 0.0039825439453125, 0.0073394775390625, -0.013671875, 0.0158233642578125, -0.004650115966796875, 0.0254974365234375, 0.055511474609375, -0.031402587890625, 0.0031147003173828125, 0.00809478759765625, 0.00446319580078125, -0.01461029052734375, -0.0236663818359375, 0.0285797119140625, 0.0030803680419921875, -0.029144287109375, -0.040130615234375, 0.0104217529296875, 0.03155517578125, 0.050384521484375, 0.01287078857421875, 0.03338623046875, -0.0188446044921875, -0.0228271484375, 0.00615692138671875, -0.0278167724609375, 0.01222991943359375, -0.028076171875, -0.029052734375, -0.0060272216796875, 0.038665771484375, 0.01849365234375, -0.0321044921875, 0.0009918212890625, 0.042083740234375, -0.0004699230194091797, -0.018157958984375, 0.025482177734375, -0.0167999267578125, -0.04986572265625, -0.0059356689453125, 0.00254058837890625, 0.02630615234375, 0.01512908935546875, 0.017578125, 0.09991455078125, -0.0228118896484375, -0.03680419921875, 0.0174407958984375, -0.01364898681640625, -0.052703857421875, 0.024444580078125, 0.0015707015991210938, 0.10357666015625, 0.0011043548583984375, -0.052215576171875, 0.0203094482421875, -0.06585693359375, 0.0017528533935546875, 0.01708984375, 0.007495880126953125, -0.0064239501953125, 0.05157470703125, 0.013031005859375, -0.0169677734375, 0.00518035888671875, 0.0003457069396972656, 0.0166473388671875, 0.006893157958984375, 0.0067596435546875, 0.00521087646484375, -0.0271453857421875, -0.020751953125, -0.00217437744140625, 0.03656005859375, -0.0103759765625, 0.0258636474609375, -0.01654052734375, 0.00933837890625, -0.033203125, 0.018707275390625, -0.041290283203125, -0.036956787109375, 0.030517578125, -0.006618499755859375, -0.019012451171875, 0.004512786865234375, 0.00872039794921875, -0.0121612548828125, 0.054595947265625, -0.025909423828125, 0.006671905517578125, -0.02264404296875, 0.025360107421875, -0.03594970703125, -0.021453857421875, -0.025299072265625, -0.01422882080078125, -0.0106201171875, 0.004116058349609375, 0.021820068359375, -0.007904052734375, -0.04083251953125, 0.024322509765625, 0.0008673667907714844, -0.071044921875, 0.029388427734375, -0.036224365234375, 0.0285491943359375, 0.0264892578125, 0.0250244140625, 0.04473876953125, 0.0032024383544921875, -0.01715087890625, 0.0159912109375, 0.019775390625, -0.023040771484375, 0.021881103515625, -0.00368499755859375, 0.01198577880859375, 0.015777587890625, 0.05767822265625, -0.004467010498046875, 0.00838470458984375, -0.021209716796875, 0.007843017578125, 0.004741668701171875, 0.0284271240234375, -0.034332275390625, -0.0027179718017578125, -0.0167083740234375, -0.0268707275390625, 0.01605224609375, -0.09625244140625, -0.044403076171875, -0.0396728515625, -0.00543212890625, -0.006946563720703125, -0.0243988037109375, 0.0129547119140625, -0.01617431640625, -0.020599365234375, -0.04364013671875, 0.0031757354736328125, -0.00457000732421875, 0.005611419677734375, -0.046783447265625, 0.0106658935546875, -0.04962158203125, -0.02734375, -0.0160675048828125, -0.006305694580078125, 0.017730712890625, 0.02081298828125, -0.01276397705078125, 0.0148773193359375, -0.038116455078125, 0.04547119140625, -0.0692138671875, 0.01186370849609375, 0.01392364501953125, -0.0011272430419921875, -0.037200927734375, -0.06256103515625, 0.0201568603515625, -0.048553466796875, -0.053253173828125, -0.0023632049560546875, 0.007335662841796875, 0.017730712890625, -0.019989013671875, -0.0767822265625, 0.0897216796875, -0.0242462158203125, -0.0259857177734375, -0.031463623046875, 0.01364898681640625, 0.007534027099609375, -0.0276641845703125, -0.005664825439453125, -0.00926971435546875, -0.031463623046875, -0.0023784637451171875, -0.00403594970703125, -0.00707244873046875, 0.0225677490234375, -0.00860595703125, -0.10357666015625, -0.027740478515625, -0.03460693359375, -0.02227783203125, 0.001911163330078125, 0.01424407958984375, 0.036407470703125, 0.05743408203125, -0.005767822265625, 0.045074462890625, -0.0165557861328125, -0.019195556640625, -0.002819061279296875, 0.01654052734375, -0.052215576171875, -0.0295257568359375, 0.07598876953125, 0.0364990234375, 0.03192138671875, -0.0011625289916992188, -0.0196685791015625, -0.030303955078125, -0.01104736328125, -0.025054931640625, 0.00710296630859375, -0.046966552734375, -0.01248931884765625, -0.0018711090087890625, -0.008392333984375, -0.01849365234375, -0.020050048828125, -0.031402587890625, -0.017364501953125, -0.0198822021484375, 0.0037746429443359375, -0.01293182373046875, -0.0017213821411132812, -0.07183837890625, 0.005825042724609375, -0.07196044921875, -0.003261566162109375, 0.00988006591796875, -0.1053466796875, 0.002216339111328125, -0.0209503173828125, -0.00946044921875, 0.040130615234375, 0.04791259765625, 0.020233154296875, -0.00423431396484375, -0.02423095703125, 0.019287109375, -0.0146942138671875, 0.0083770751953125, 0.0085906982421875, 0.0063323974609375, 0.0187530517578125, -0.00850677490234375, 0.0030689239501953125, 0.0245208740234375, -0.00827789306640625, 0.010986328125, -0.026763916015625, 0.0408935546875, 0.017303466796875, -0.01788330078125, 0.04119873046875, -0.00934600830078125, -0.0032024383544921875, 0.002071380615234375, -0.019134521484375, -0.041717529296875, 0.0143585205078125, 0.038818359375, -0.00261688232421875, 0.0207977294921875 ]
86d001ab2dc50737ef6e763450396fd58dced6f9
Wordpress Stackexchange Q: remove admin bar new post/link/media sub menu I wish to remove the sub menus of post/link/media under the add new menu in the admin bar. I can remove the entire menu but I actually only want to remove the sub menu's $wp_admin_bar->remove_menu('my-account-with-avatar'); A: See the Admin Bar remove_node function: add_action( 'admin_bar_menu', 'remove_wp_nodes', 999 ); function remove_wp_nodes() { global $wp_admin_bar; $wp_admin_bar->remove_node( 'new-post' ); $wp_admin_bar->remove_node( 'new-link' ); $wp_admin_bar->remove_node( 'new-media' ); }
Q: remove admin bar new post/link/media sub menu I wish to remove the sub menus of post/link/media under the add new menu in the admin bar. I can remove the entire menu but I actually only want to remove the sub menu's $wp_admin_bar->remove_menu('my-account-with-avatar'); A: See the Admin Bar remove_node function: add_action( 'admin_bar_menu', 'remove_wp_nodes', 999 ); function remove_wp_nodes() { global $wp_admin_bar; $wp_admin_bar->remove_node( 'new-post' ); $wp_admin_bar->remove_node( 'new-link' ); $wp_admin_bar->remove_node( 'new-media' ); }
wordpress
{ "language": "en", "length": 70, "provenance": "stackexchange_00019.jsonl.gz:426958", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76642" }
[ 0.0462646484375, -0.0086822509765625, 0.023193359375, 0.055267333984375, 0.0023136138916015625, -0.05853271484375, 0.08740234375, -0.0780029296875, -0.018310546875, 0.01548004150390625, 0.0244598388671875, -0.010528564453125, 0.0120697021484375, -0.044342041015625, 0.0064239501953125, -0.0208892822265625, 0.0098724365234375, 0.005306243896484375, 0.0196075439453125, -0.00445556640625, 0.01337432861328125, 0.0089263916015625, 0.009002685546875, 0.0193023681640625, 0.00443267822265625, -0.0194091796875, 0.044769287109375, 0.0017547607421875, -0.011993408203125, -0.0224609375, 0.0013360977172851562, 0.025482177734375, -0.0087890625, 0.0227203369140625, 0.01132965087890625, 0.006076812744140625, -0.042816162109375, 0.0340576171875, 0.04571533203125, -0.04736328125, 0.00916290283203125, 0.020751953125, 0.0071868896484375, 0.032257080078125, -0.01476287841796875, -0.051605224609375, 0.0055389404296875, -0.04644775390625, 0.01364898681640625, -0.03045654296875, 0.019561767578125, -0.0266265869140625, 0.034271240234375, -0.038970947265625, -0.02972412109375, -0.0135955810546875, 0.037353515625, -0.04473876953125, 0.038970947265625, 0.052337646484375, -0.032318115234375, 0.0041961669921875, -0.009857177734375, -0.091796875, -0.0176544189453125, 0.01641845703125, 0.00855255126953125, -0.00536346435546875, -0.09429931640625, -0.003917694091796875, 0.06988525390625, -0.05010986328125, -0.0028858184814453125, 0.00611114501953125, -0.0038738250732421875, -0.03900146484375, 0.0184326171875, -0.004180908203125, 0.01708984375, 0.022491455078125, 0.0126190185546875, 0.051116943359375, -0.038970947265625, -0.0260467529296875, 0.0232696533203125, 0.008270263671875, -0.0191802978515625, -0.028289794921875, -0.0217132568359375, -0.0294647216796875, -0.01200103759765625, -0.07427978515625, -0.0010395050048828125, 0.01021575927734375, -0.0179595947265625, -0.01470184326171875, 0.056243896484375, 0.03656005859375, 0.005382537841796875, -0.009307861328125, 0.0029430389404296875, -0.051788330078125, 0.01123809814453125, -0.01194000244140625, 0.0323486328125, 0.0302581787109375, -0.041015625, -0.04107666015625, 0.062744140625, 0.034881591796875, 0.0020351409912109375, 0.032745361328125, -0.00934600830078125, -0.00966644287109375, -0.0323486328125, 0.040863037109375, -0.007293701171875, -0.0070648193359375, -0.00699615478515625, 0.028106689453125, -0.0010175704956054688, -0.0029582977294921875, -0.00795745849609375, 0.03668212890625, 0.0185394287109375, 0.03131103515625, -0.0352783203125, 0.0167236328125, -0.0177154541015625, 0.01824951171875, -0.036895751953125, 0.01192474365234375, 0.06536865234375, 0.0261993408203125, 0.01172637939453125, -0.0250396728515625, -0.0171966552734375, -0.0032367706298828125, 0.032623291015625, -0.007625579833984375, 0.0400390625, -0.03668212890625, -0.01116180419921875, 0.03607177734375, 0.03912353515625, 0.018341064453125, 0.0008101463317871094, -0.0017147064208984375, 0.042510986328125, -0.006214141845703125, 0.00225067138671875, -0.04400634765625, 0.0421142578125, 0.01910400390625, -0.0115203857421875, 0.0005178451538085938, 0.077392578125, -0.03704833984375, -0.051513671875, -0.06195068359375, -0.01971435546875, 0.0009965896606445312, 0.0249786376953125, -0.055572509765625, -0.050811767578125, -0.00872039794921875, -0.037200927734375, -0.0011806488037109375, 0.03570556640625, 0.0018491744995117188, 0.035675048828125, -0.07177734375, 0.0207977294921875, 0.012176513671875, -0.01302337646484375, 0.042236328125, 0.03814697265625, -0.0214691162109375, 0.0133209228515625, 0.077392578125, -0.01110076904296875, -0.0170745849609375, 0.025726318359375, -0.0280303955078125, -0.07293701171875, 0.01824951171875, -0.00179290771484375, 0.0517578125, 0.05108642578125, 0.016632080078125, 0.06451416015625, -0.017364501953125, -0.008026123046875, -0.0438232421875, 0.0335693359375, -0.00846099853515625, 0.002895355224609375, -0.002349853515625, 0.0208892822265625, -0.00852203369140625, -0.0222625732421875, 0.045867919921875, -0.03302001953125, 0.0223388671875, -0.0665283203125, 0.0300750732421875, -0.026824951171875, 0.056732177734375, -0.026275634765625, 0.00653076171875, -0.002605438232421875, -0.0282745361328125, 0.003093719482421875, -0.0288848876953125, -0.004070281982421875, 0.004436492919921875, -0.0203094482421875, 0.007297515869140625, -0.0176849365234375, 0.041656494140625, -0.03778076171875, -0.004886627197265625, -0.0311279296875, 0.00337982177734375, 0.05987548828125, -0.002838134765625, -0.032501220703125, -0.023956298828125, 0.0224456787109375, -0.00243377685546875, -0.07574462890625, 0.0589599609375, 0.037445068359375, 0.01372528076171875, -0.050323486328125, -0.00365447998046875, 0.0025482177734375, -0.04376220703125, -0.0130157470703125, 0.05413818359375, 0.0452880859375, 0.023834228515625, -0.00748443603515625, -0.01065826416015625, 0.036376953125, -0.01837158203125, 0.0290069580078125, -0.03466796875, -0.03143310546875, 0.0005860328674316406, 0.004550933837890625, 0.006439208984375, 0.033416748046875, -0.01056671142578125, 0.007122039794921875, 0.04010009765625, 0.031890869140625, -0.01629638671875, 0.0049591064453125, 0.0217437744140625, 0.00821685791015625, 0.016937255859375, -0.039764404296875, 0.02215576171875, 0.034088134765625, -0.0164031982421875, 0.0201263427734375, 0.006465911865234375, -0.018646240234375, -0.0242919921875, 0.043853759765625, 0.033233642578125, -0.0157012939453125, 0.0181884765625, 0.03643798828125, -0.0293121337890625, -0.056793212890625, 0.007556915283203125, 0.00457763671875, -0.0061492919921875, -0.01352691650390625, 0.0308837890625, 0.0673828125, -0.01157379150390625, -0.0196380615234375, -0.037750244140625, 0.042816162109375, -0.02191162109375, -0.007114410400390625, -0.0144805908203125, -0.003864288330078125, 0.0307159423828125, -0.026214599609375, 0.034393310546875, 0.01209259033203125, -0.0010347366333007812, 0.0090179443359375, -0.00119781494140625, 0.02960205078125, -0.0014390945434570312, 0.06695556640625, 0.06915283203125, -0.0094757080078125, 0.01806640625, 0.000885009765625, -0.0276641845703125, 0.0099334716796875, 0.019927978515625, -0.006305694580078125, -0.0253448486328125, -0.00946044921875, 0.036865234375, -0.0013303756713867188, -0.08294677734375, 0.01806640625, 0.003017425537109375, -0.019317626953125, -0.03997802734375, -0.043609619140625, 0.006317138671875, 0.00296783447265625, -0.029266357421875, -0.0020351409912109375, 0.0239105224609375, -0.0205841064453125, -0.00738525390625, 0.061279296875, -0.0003027915954589844, 0.012969970703125, 0.0102691650390625, -0.031524658203125, 0.0183563232421875, -0.0216217041015625, 0.023834228515625, -0.01251220703125, 0.00008958578109741211, 0.00957489013671875, 0.08233642578125, 0.01058197021484375, -0.05926513671875, -0.0018758773803710938, -0.04046630859375, -0.0249786376953125, 0.021697998046875, 0.05157470703125, -0.0056304931640625, -0.0171966552734375, 0.0163421630859375, 0.00579071044921875, 0.025604248046875, -0.06048583984375, -0.0283050537109375, 0.0041351318359375, -0.01235198974609375, 0.023681640625, -0.048431396484375, -0.0080108642578125, -0.0014581680297851562, -0.00876617431640625, -0.03802490234375, -0.01044464111328125, -0.029876708984375, -0.02484130859375, 0.0467529296875, -0.01166534423828125, 0.01430511474609375, -0.0029239654541015625, 0.0535888671875, -0.007114410400390625, -0.005023956298828125, 0.0264434814453125, -0.0177001953125, 0.0005221366882324219, -0.01485443115234375, -0.0168609619140625, -0.005779266357421875, 0.021453857421875, -0.044921875, 0.0105438232421875, 0.0065155029296875, -0.0183868408203125, 0.0199432373046875, -0.026611328125, 0.05328369140625, -0.01523590087890625, 0.04351806640625, -0.0145263671875, 0.02960205078125, -0.035369873046875, -0.0191802978515625, -0.027587890625, 0.06781005859375, -0.0250701904296875, -0.0208892822265625, -0.0277862548828125, 0.002765655517578125, 0.0182952880859375, -0.0325927734375, 0.00002574920654296875, -0.0277099609375, -0.08856201171875, -0.0006246566772460938, -0.0086822509765625, -0.028472900390625, -0.036956787109375, 0.0560302734375, -0.07403564453125, -0.03143310546875, 0.051025390625, -0.036346435546875, 0.002170562744140625, 0.00933837890625, -0.00945281982421875, -0.02691650390625, -0.049285888671875, -0.003749847412109375, -0.054473876953125, 0.0011444091796875, -0.0306396484375, 0.0450439453125, 0.0157470703125, -0.0076141357421875, -0.02850341796875, 0.0011196136474609375, -0.00008624792098999023, -0.0137481689453125, -0.006656646728515625, 0.00937652587890625, -0.0149993896484375, 0.0206146240234375, -0.007366180419921875, 0.0004906654357910156, 0.0034580230712890625, 0.0030841827392578125, -0.0170135498046875, 0.05120849609375, -0.0138702392578125, 0.02978515625, -0.0006279945373535156, -0.01904296875, -0.05731201171875, -0.0423583984375, -0.0217437744140625, -0.0189056396484375, -0.026397705078125, 0.0218505859375, -0.012451171875, -0.0416259765625, -0.01727294921875, -0.0013628005981445312, -0.05584716796875, 0.023193359375, 0.017578125, 0.037841796875, 0.0015020370483398438, -0.0254364013671875, 0.0112152099609375, 0.026580810546875, -0.0201263427734375, 0.059326171875, 0.0232696533203125, -0.0100860595703125, 0.049530029296875, 0.0023746490478515625, 0.0408935546875, -0.0247039794921875, 0.0224151611328125, 0.01537322998046875, -0.0015096664428710938, 0.031036376953125, 0.01410675048828125, -0.0184326171875, -0.0187530517578125, -0.03265380859375, 0.00658416748046875, -0.07965087890625, 0.041961669921875, 0.04742431640625, -0.022125244140625, -0.07110595703125, 0.00039958953857421875, -0.0069427490234375, 0.009979248046875, 0.045745849609375, 0.023284912109375, -0.0014829635620117188, -0.007274627685546875, 0.022613525390625, 0.013397216796875, -0.019439697265625, 0.022308349609375, -0.057098388671875, 0.035888671875, -0.0212860107421875, -0.011810302734375, -0.0001544952392578125, -0.0028362274169921875, 0.04046630859375, 0.0462646484375, -0.0309295654296875, -0.01654052734375, 0.0189361572265625, 0.04571533203125, -0.01611328125, -0.0008287429809570312, 0.052337646484375, 0.0180816650390625, -0.0214691162109375, -0.018585205078125, -0.00194549560546875, -0.036895751953125, -0.052398681640625, 0.038818359375, 0.01953125, -0.0047607421875, 0.02349853515625, 0.05096435546875, 0.01413726806640625, 0.026947021484375, -0.012481689453125, 0.042449951171875, -0.0045318603515625, 0.032623291015625, -0.004444122314453125, 0.00910186767578125, 0.0231475830078125, -0.001766204833984375, 0.0112762451171875, -0.0271148681640625, -0.0240020751953125, 0.046112060546875, 0.0286407470703125, 0.050262451171875, 0.018157958984375, -0.047119140625, -0.0018033981323242188, -0.01165771484375, 0.058349609375, -0.0185699462890625, -0.09820556640625, 0.0032520294189453125, 0.05340576171875, 0.013519287109375, -0.0697021484375, -0.007007598876953125, 0.00539398193359375, -0.018402099609375, 0.0008206367492675781, -0.0018129348754882812, -0.04071044921875, 0.00818634033203125, 0.0216064453125, -0.01352691650390625, -0.005970001220703125, 0.0023212432861328125, -0.0533447265625, -0.04534912109375, -0.0170135498046875, -0.0078125, 0.06829833984375, -0.017181396484375, 0.00881195068359375, -0.01056671142578125, 0.01152801513671875, -0.0511474609375, 0.007167816162109375, 0.058135986328125, 0.044342041015625, -0.01474761962890625, -0.003391265869140625, -0.023529052734375, -0.00930023193359375, -0.03961181640625, -0.05645751953125, -0.0316162109375, -0.00922393798828125, -0.020263671875, -0.01039886474609375, 0.00997161865234375, 0.02545166015625, 0.007274627685546875, 0.04180908203125, 0.01190948486328125, 0.0205535888671875, -0.023162841796875, 0.052001953125, 0.005756378173828125, 0.0275726318359375, 0.004955291748046875, 0.0128326416015625, -0.01549530029296875, 0.00830841064453125, -0.0005106925964355469, -0.00612640380859375, -0.023529052734375, -0.005413055419921875, -0.0230255126953125, 0.01366424560546875, 0.0535888671875, -0.00525665283203125, 0.0438232421875, -0.02630615234375, -0.0011663436889648438, -0.0248260498046875, -0.0167083740234375, -0.0572509765625, 0.0355224609375, -0.0209503173828125, 0.00391387939453125, 0.0665283203125, -0.00687408447265625, -0.0263824462890625, -0.0014066696166992188, -0.00789642333984375, 0.0203094482421875, 0.023590087890625, -0.0011615753173828125, 0.04681396484375, 0.058929443359375, -0.0223236083984375, 0.0206146240234375, 0.0193023681640625, -0.00322723388671875, 0.01476287841796875, -0.0118560791015625, 0.0261688232421875, 0.0193939208984375, 0.045013427734375, 0.005802154541015625, 0.032501220703125, 0.057373046875, -0.01727294921875, 0.01433563232421875, 0.0692138671875, 0.0546875, -0.08795166015625, 0.007648468017578125, 0.0185546875, -0.0142974853515625, 0.023681640625, -0.00904083251953125, -0.00850677490234375, -0.033843994140625, 0.0140380859375, -0.0034961700439453125, -0.0245513916015625, -0.018829345703125, -0.0144500732421875, -0.0016412734985351562, 0.0137481689453125, 0.0228118896484375, 0.00621795654296875, 0.0174102783203125, -0.04296875, -0.01168060302734375, -0.0022487640380859375, -0.0120849609375, 0.0008149147033691406, -0.00417327880859375, -0.002277374267578125, -0.037750244140625, 0.0211181640625, -0.038482666015625, 0.021514892578125, 0.035247802734375, 0.004009246826171875, 0.0086669921875, 0.048797607421875, -0.037567138671875, 0.03363037109375, 0.01200103759765625, -0.01264190673828125, -0.03704833984375, -0.038543701171875, 0.0438232421875, 0.02227783203125, -0.0499267578125, 0.037445068359375, -0.01088714599609375, -0.0556640625, 0.00412750244140625, 0.006866455078125, 0.1002197265625, -0.0887451171875, -0.005352020263671875, 0.00627899169921875, -0.0026226043701171875, 0.01467132568359375, -0.006473541259765625, 0.0328369140625, -0.037750244140625, -0.015533447265625, 0.01264190673828125, -0.011077880859375, -0.007904052734375, -0.00666046142578125, -0.056396484375, 0.09454345703125, -0.034637451171875, 0.049102783203125, 0.0283050537109375, 0.0254974365234375, -0.024749755859375, 0.00981903076171875, -0.0310211181640625, 0.06591796875, 0.042694091796875, 0.00612640380859375, -0.017730712890625, -0.00850677490234375, 0.0067596435546875, 0.0005230903625488281, 0.03857421875, 0.00714111328125, -0.0004355907440185547, -0.0250701904296875, 0.0220489501953125, 0.029296875, 0.00934600830078125, 0.0220184326171875, -0.016815185546875, 0.00042748451232910156, 0.024444580078125, -0.05914306640625, 0.0230712890625, -0.03973388671875, -0.0178985595703125, -0.0027904510498046875, 0.0189056396484375, 0.023040771484375, 0.02227783203125, 0.01275634765625, 0.0297088623046875, -0.006988525390625, -0.003345489501953125, -0.059478759765625, 0.03179931640625, -0.005794525146484375, -0.0265350341796875, 0.01421356201171875, 0.01125335693359375, -0.01372528076171875, 0.0218658447265625, -0.0111541748046875, 0.00882720947265625, 0.00994873046875, 0.0267791748046875, -0.0146484375, -0.0190887451171875, -0.0031490325927734375, 0.0307464599609375, -0.042755126953125, 0.02783203125, -0.004070281982421875, 0.0252227783203125, -0.07708740234375, -0.03778076171875, 0.03936767578125, 0.05169677734375, -0.017425537109375, -0.05523681640625, 0.021575927734375, -0.0032253265380859375, -0.0111236572265625, 0.0202178955078125, 0.0111236572265625, -0.032989501953125, 0.022796630859375, -0.011138916015625, -0.00601959228515625, 0.0167999267578125, 0.00923919677734375, -0.00034737586975097656, 0.0263214111328125, -0.005138397216796875, 0.0047454833984375, -0.0268402099609375, 0.00487518310546875, 0.0171966552734375, 0.0222930908203125, 0.01070404052734375, 0.05010986328125, 0.01442718505859375, -0.0029201507568359375, 0.01544189453125, 0.0223236083984375, -0.03497314453125, -0.008148193359375, -0.0477294921875, -0.07806396484375, 0.0038013458251953125, 0.026580810546875, 0.0001767873764038086, 0.0177154541015625, 0.0382080078125, 0.03057861328125, -0.0249481201171875, -0.01861572265625, 0.02056884765625, -0.022369384765625, -0.01029205322265625, -0.00959014892578125, -0.00739288330078125, 0.004852294921875, -0.0137481689453125, -0.00489044189453125, 0.0187530517578125, 0.0204315185546875, -0.00041174888610839844, 0.00780487060546875, 0.0114593505859375, -0.01284027099609375, 0.0251007080078125, 0.0252532958984375, 0.016815185546875, 0.046966552734375, -0.08111572265625, -0.022216796875, 0.00011783838272094727, -0.02587890625, 0.0176239013671875, 0.0259246826171875, -0.0521240234375, 0.059906005859375, -0.006183624267578125, -0.016998291015625, -0.010986328125, 0.01212310791015625, 0.0120391845703125, 0.01020050048828125, 0.017730712890625, 0.00952911376953125, -0.0160369873046875, -0.018585205078125, -0.0171356201171875, 0.02923583984375, 0.053680419921875, 0.01142120361328125, 0.005645751953125, 0.047210693359375, -0.060760498046875, -0.02301025390625, -0.0142974853515625, -0.03009033203125, -0.033905029296875, 0.043853759765625, -0.0015039443969726562, -0.01313018798828125, -0.007770538330078125, 0.02935791015625, 0.046661376953125, -0.025177001953125, 0.0277252197265625, -0.011077880859375, -0.00545501708984375, -0.06048583984375, 0.0053863525390625, -0.00368499755859375, 0.0015268325805664062, -0.007312774658203125, -0.01548004150390625, 0.0312347412109375, 0.047393798828125, 0.0085296630859375, 0.0102691650390625, -0.0005817413330078125, -0.040283203125, 0.01549530029296875, -0.0211944580078125, 0.005397796630859375, 0.0325927734375, 0.0024127960205078125, 0.0052642822265625, 0.032135009765625, -0.0018033981323242188, 0.01322174072265625, 0.02874755859375, 0.00004482269287109375, 0.035369873046875, -0.04388427734375, 0.0029735565185546875, 0.004764556884765625, 0.0222625732421875, -0.023681640625, -0.01055145263671875, 0.01355743408203125, -0.0052642822265625, -0.035980224609375, -0.0017805099487304688, -0.028472900390625, -0.04241943359375, -0.0293121337890625, 0.0194549560546875, -0.042236328125, -0.07257080078125, -0.11285400390625, 0.0237274169921875, 0.07122802734375, 0.0267181396484375, -0.096435546875, 0.055633544921875, -0.0305633544921875, 0.07110595703125, 0.037506103515625, 0.0037174224853515625, -0.017822265625, 0.0162506103515625, -0.019073486328125, -0.031890869140625, -0.05206298828125, 0.03192138671875, -0.042633056640625, -0.0220489501953125, -0.02911376953125, -0.0184478759765625, 0.034271240234375, -0.0240478515625, 0.007778167724609375, 0.0135955810546875, 0.057952880859375, -0.0229034423828125, -0.0232086181640625, 0.022918701171875, 0.0021610260009765625, 0.00350189208984375, -0.0003027915954589844, -0.02349853515625, -0.017822265625, -0.0026798248291015625, 0.0232696533203125, 0.04296875, -0.0190887451171875, -0.08990478515625, -0.0004112720489501953, -0.0182037353515625, -0.042327880859375, -0.0177001953125, 0.011383056640625, -0.018341064453125, 0.048614501953125, 0.00396728515625, -0.03912353515625, -0.0050811767578125, 0.0031833648681640625, 0.0187835693359375, 0.0189056396484375, 0.0284423828125, -0.00928497314453125, -0.01552581787109375, 0.0013704299926757812, 0.000507354736328125, 0.0177459716796875, -0.004924774169921875, -0.0126495361328125, 0.0101165771484375, 0.017852783203125, -0.05731201171875, -0.0226287841796875, -0.00778961181640625, 0.03607177734375, -0.0157318115234375, -0.024169921875, -0.037139892578125, -0.023590087890625, 0.0732421875, 0.06805419921875, 0.0260772705078125, -0.0195465087890625, -0.00719451904296875, -0.046295166015625, 0.01210784912109375, -0.0557861328125, 0.0005078315734863281, -0.06884765625, -0.031463623046875, -0.004791259765625, 0.00696563720703125, -0.028350830078125, -0.015533447265625, -0.0224761962890625, -0.0162353515625, 0.0164794921875, 0.025909423828125, -0.002254486083984375, 0.019012451171875, 0.042327880859375, -0.037384033203125, -0.022979736328125, -0.00948333740234375, -0.003643035888671875, 0.00853729248046875, -0.023712158203125, -0.0181121826171875, -0.03472900390625, -0.048126220703125, 0.0309906005859375, -0.0266265869140625, 0.0701904296875, -0.05804443359375, -0.030242919921875, -0.0211944580078125, -0.0014963150024414062, 0.011749267578125, 0.0021572113037109375, -0.019775390625, 0.02392578125, 0.009613037109375, 0.05804443359375, 0.025390625, 0.0772705078125, 0.011260986328125, 0.050506591796875, 0.010955810546875, -0.03582763671875, 0.02716064453125, -0.02099609375, -0.0042724609375, 0.038360595703125, -0.0178680419921875, -0.08990478515625, 0.037750244140625, 0.02716064453125, 0.057098388671875, 0.03155517578125 ]
487a5eb8c6a6e78f8253594229a797e87e75b702
Wordpress Stackexchange Q: Which action hook can I use when a featured image has been selected I have made a plugin for wordpress which copies the image to another directory when a post has been edit. But if you only upload another featured image and don't save the post. The image has been attached to the post, but the post has not been updated. Which does not trigger my plugin function. Show which trigger (action hook) can I use to also copie the featured image? The action which I now use for the post edit is wp_insert_post(). I forgot the reason why I use wp_insert_post(), but maybe that's why it fails ;) A: The set_post_thumbnail function uses the metadata functions to set the featured image. You have two actions to hook into that process: EDIT: The action hooks are now defined different Thanks @dalbaeb! * *update_postmeta, before the data is written into the database. Previously update_post_meta *updated_postmeta, after the data is written into the database. Previously updated_post_meta SECOND EDIT: No need to panic updated_{$meta_type}_meta and update_{$meta_type}_meta still work. You will have to make a conditional, and be good to go: if ( $metakey == '_thumbnail_id' ) { /*blabla*/ }
Q: Which action hook can I use when a featured image has been selected I have made a plugin for wordpress which copies the image to another directory when a post has been edit. But if you only upload another featured image and don't save the post. The image has been attached to the post, but the post has not been updated. Which does not trigger my plugin function. Show which trigger (action hook) can I use to also copie the featured image? The action which I now use for the post edit is wp_insert_post(). I forgot the reason why I use wp_insert_post(), but maybe that's why it fails ;) A: The set_post_thumbnail function uses the metadata functions to set the featured image. You have two actions to hook into that process: EDIT: The action hooks are now defined different Thanks @dalbaeb! * *update_postmeta, before the data is written into the database. Previously update_post_meta *updated_postmeta, after the data is written into the database. Previously updated_post_meta SECOND EDIT: No need to panic updated_{$meta_type}_meta and update_{$meta_type}_meta still work. You will have to make a conditional, and be good to go: if ( $metakey == '_thumbnail_id' ) { /*blabla*/ }
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:426973", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76693" }
[ 0.059539794921875, -0.00018584728240966797, 0.0223846435546875, -0.0037822723388671875, 0.028717041015625, -0.02490234375, 0.0718994140625, -0.0526123046875, 0.0296173095703125, 0.02032470703125, 0.0023956298828125, -0.0086212158203125, 0.014678955078125, -0.024627685546875, -0.01525115966796875, 0.00539398193359375, 0.045196533203125, -0.0284576416015625, 0.036590576171875, 0.0065460205078125, 0.0007877349853515625, 0.05157470703125, 0.0159454345703125, 0.03253173828125, 0.019805908203125, -0.017791748046875, 0.01541900634765625, -0.0036907196044921875, -0.003894805908203125, 0.0021305084228515625, 0.022186279296875, -0.0114898681640625, 0.029022216796875, 0.0160675048828125, -0.0214080810546875, 0.0304412841796875, 0.0462646484375, -0.005481719970703125, -0.003253936767578125, 0.043121337890625, 0.0273284912109375, -0.0028057098388671875, -0.02276611328125, 0.01389312744140625, -0.01496124267578125, -0.045013427734375, 0.0232086181640625, -0.035614013671875, 0.0116424560546875, -0.007129669189453125, 0.0013017654418945312, 0.03204345703125, 0.0120086669921875, 0.019256591796875, 0.00782012939453125, 0.01611328125, -0.0684814453125, 0.069091796875, 0.053558349609375, 0.029144287109375, -0.0294036865234375, -0.03936767578125, -0.005802154541015625, -0.06011962890625, 0.03704833984375, -0.010162353515625, -0.02294921875, 0.0110626220703125, -0.038665771484375, 0.04705810546875, 0.039154052734375, -0.0589599609375, -0.0005521774291992188, -0.01137542724609375, 0.01180267333984375, 0.041961669921875, 0.002437591552734375, 0.033050537109375, 0.01102447509765625, 0.017913818359375, 0.01788330078125, -0.04302978515625, 0.02294921875, -0.0107269287109375, 0.0179443359375, 0.0247650146484375, -0.0012083053588867188, -0.0030078887939453125, -0.051666259765625, -0.01064300537109375, -0.0274505615234375, -0.0209503173828125, -0.031982421875, 0.003437042236328125, 0.0026702880859375, -0.01465606689453125, 0.0231781005859375, 0.0458984375, -0.0116119384765625, 0.004459381103515625, 0.0027866363525390625, -0.047515869140625, 0.0263214111328125, -0.042694091796875, 0.0133514404296875, 0.01251983642578125, 0.005306243896484375, -0.06353759765625, -0.00496673583984375, 0.024566650390625, -0.0294342041015625, 0.01181793212890625, -0.0015287399291992188, -0.001804351806640625, -0.0124664306640625, -0.02740478515625, -0.061798095703125, 0.036163330078125, -0.00492095947265625, 0.01032257080078125, 0.0168304443359375, -0.004184722900390625, 0.052703857421875, -0.04705810546875, 0.0147705078125, -0.001575469970703125, -0.07122802734375, -0.0243377685546875, -0.0043792724609375, 0.0201568603515625, -0.043609619140625, 0.02410888671875, 0.10162353515625, 0.006893157958984375, -0.00665283203125, -0.018463134765625, -0.004337310791015625, -0.0085906982421875, -0.022064208984375, 0.0115509033203125, -0.03411865234375, -0.009490966796875, 0.049530029296875, -0.042266845703125, 0.0164337158203125, 0.0196990966796875, 0.01209259033203125, 0.0263214111328125, 0.012298583984375, -0.043060302734375, 0.03973388671875, -0.03802490234375, 0.0204010009765625, 0.0219879150390625, 0.0260772705078125, -0.04296875, 0.07525634765625, -0.057373046875, 0.0272369384765625, -0.057586669921875, 0.003955841064453125, -0.01123809814453125, 0.02130126953125, -0.018585205078125, -0.047607421875, 0.0160675048828125, -0.034881591796875, -0.010528564453125, 0.024322509765625, 0.029632568359375, 0.0191650390625, 0.029327392578125, 0.0280303955078125, 0.015838623046875, -0.0009160041809082031, -0.01311492919921875, -0.0017309188842773438, 0.016143798828125, 0.04437255859375, 0.02325439453125, -0.0109405517578125, -0.0168914794921875, 0.099609375, -0.0274658203125, -0.0260162353515625, 0.03204345703125, 0.0262603759765625, 0.052764892578125, -0.016326904296875, 0.0247650146484375, 0.0267791748046875, 0.010955810546875, -0.048797607421875, 0.0242767333984375, 0.0197296142578125, 0.00787353515625, -0.0198822021484375, -0.0009293556213378906, 0.0018100738525390625, -0.03656005859375, 0.016265869140625, 0.019439697265625, 0.00699615478515625, -0.0018606185913085938, -0.07305908203125, 0.0318603515625, -0.03509521484375, 0.051361083984375, -0.005733489990234375, 0.01406097412109375, 0.0120697021484375, -0.00565338134765625, -0.0162506103515625, -0.0020923614501953125, -0.005828857421875, 0.004547119140625, -0.0300140380859375, -0.00269317626953125, 0.0013341903686523438, 0.048583984375, -0.0027866363525390625, 0.00390625, -0.0249481201171875, -0.023773193359375, 0.04119873046875, 0.004467010498046875, -0.0300750732421875, -0.02374267578125, -0.03485107421875, 0.0199127197265625, -0.09002685546875, 0.040679931640625, -0.0294952392578125, -0.01346588134765625, -0.024871826171875, -0.0099639892578125, 0.00821685791015625, -0.08660888671875, 0.024383544921875, 0.0521240234375, 0.025482177734375, 0.0209197998046875, -0.01001739501953125, 0.01540374755859375, 0.04998779296875, 0.0238189697265625, 0.036865234375, -0.007747650146484375, -0.0136566162109375, 0.01416778564453125, -0.0076751708984375, 0.005859375, 0.0182952880859375, -0.052093505859375, 0.00635528564453125, 0.0340576171875, -0.019622802734375, -0.0031528472900390625, -0.0070648193359375, -0.01202392578125, 0.01519775390625, -0.0184173583984375, -0.0262451171875, 0.0004184246063232422, 0.044952392578125, -0.004993438720703125, 0.042999267578125, 0.01898193359375, -0.01316070556640625, -0.00537109375, 0.006526947021484375, -0.016265869140625, 0.01192474365234375, 0.0394287109375, 0.032135009765625, 0.02130126953125, -0.00018143653869628906, -0.029541015625, 0.007396697998046875, 0.023681640625, -0.040130615234375, -0.0237884521484375, -0.01538848876953125, 0.00016832351684570312, -0.013092041015625, -0.03369140625, 0.03485107421875, -0.01360321044921875, 0.002246856689453125, -0.0084991455078125, 0.03857421875, -0.007404327392578125, -0.02734375, 0.031890869140625, -0.03729248046875, -0.0225067138671875, -0.00858306884765625, -0.003818511962890625, 0.0236663818359375, -0.0318603515625, 0.02349853515625, 0.05029296875, -0.045257568359375, 0.0292510986328125, -0.005916595458984375, -0.038970947265625, -0.039886474609375, 0.032135009765625, -0.01186370849609375, -0.052337646484375, -0.0244293212890625, 0.018585205078125, 0.038421630859375, 0.06072998046875, -0.0218505859375, -0.036163330078125, -0.0192413330078125, 0.033599853515625, -0.0654296875, -0.06707763671875, -0.010223388671875, -0.056427001953125, 0.039825439453125, 0.005046844482421875, -0.0200347900390625, -0.034942626953125, 0.04901123046875, 0.0147552490234375, -0.0159759521484375, -0.0027217864990234375, 0.0150909423828125, -0.002544403076171875, -0.0267791748046875, -0.01507568359375, 0.01959228515625, 0.0116119384765625, 0.0013074874877929688, 0.0557861328125, -0.0055999755859375, -0.05859375, 0.0030040740966796875, 0.0003190040588378906, -0.0170135498046875, 0.015380859375, 0.0087738037109375, -0.002166748046875, -0.01532745361328125, -0.0011930465698242188, 0.031463623046875, 0.030487060546875, -0.03924560546875, 0.007617950439453125, -0.0249786376953125, -0.02398681640625, -0.00835418701171875, 0.05780029296875, 0.029541015625, 0.0171051025390625, 0.07330322265625, -0.0201263427734375, -0.0012273788452148438, -0.061614990234375, -0.058929443359375, 0.0030994415283203125, 0.05126953125, 0.023712158203125, -0.01800537109375, 0.00577545166015625, 0.022918701171875, 0.0307159423828125, 0.0246429443359375, -0.00525665283203125, 0.0295867919921875, -0.0232086181640625, -0.0105438232421875, -0.06329345703125, -0.043212890625, -0.0201263427734375, 0.06585693359375, -0.0193328857421875, 0.057830810546875, -0.01132965087890625, 0.042938232421875, -0.054046630859375, -0.0216217041015625, 0.01398468017578125, -0.03399658203125, 0.042999267578125, -0.04266357421875, -0.00662994384765625, -0.0258636474609375, 0.05926513671875, -0.0228729248046875, -0.0361328125, -0.0270233154296875, -0.003566741943359375, 0.0022754669189453125, 0.0260009765625, -0.00988006591796875, 0.00321197509765625, -0.071533203125, -0.006183624267578125, 0.0054931640625, -0.044708251953125, -0.0026702880859375, 0.02386474609375, -0.0562744140625, -0.03582763671875, 0.039947509765625, -0.056854248046875, 0.007724761962890625, 0.057891845703125, -0.0225830078125, 0.022369384765625, -0.046783447265625, -0.020263671875, -0.086669921875, -0.006351470947265625, -0.0241546630859375, 0.0478515625, 0.005718231201171875, 0.0015840530395507812, -0.043487548828125, 0.022918701171875, 0.00003916025161743164, 0.03570556640625, -0.01033782958984375, 0.009490966796875, -0.005138397216796875, -0.017608642578125, 0.0078887939453125, -0.0230560302734375, -0.0240325927734375, -0.0245819091796875, -0.0302734375, -0.0204620361328125, -0.0210113525390625, -0.00716400146484375, 0.017669677734375, -0.01177978515625, -0.049072265625, 0.0008692741394042969, 0.01543426513671875, 0.0257110595703125, 0.031280517578125, -0.023223876953125, -0.029205322265625, -0.051239013671875, 0.0465087890625, -0.0679931640625, 0.00841522216796875, 0.006992340087890625, 0.11541748046875, 0.0179595947265625, 0.00609588623046875, -0.042510986328125, -0.003910064697265625, 0.035003662109375, 0.033111572265625, 0.0015010833740234375, 0.0162811279296875, -0.01885986328125, -0.0214385986328125, 0.047821044921875, -0.0004277229309082031, -0.038665771484375, 0.061492919921875, 0.023651123046875, 0.024078369140625, -0.025970458984375, 0.001102447509765625, 0.03460693359375, 0.028533935546875, -0.026397705078125, -0.0164794921875, -0.045806884765625, 0.03582763671875, -0.01175689697265625, 0.03955078125, -0.047637939453125, -0.005054473876953125, -0.004489898681640625, 0.0266571044921875, 0.043670654296875, 0.02886962890625, -0.00482940673828125, 0.009796142578125, 0.018585205078125, 0.004398345947265625, 0.0037822723388671875, -0.034515380859375, 0.0306243896484375, 0.0158538818359375, 0.03204345703125, 0.0306243896484375, -0.00951385498046875, 0.0083160400390625, -0.0203094482421875, -0.03570556640625, -0.05218505859375, -0.07232666015625, 0.00542449951171875, 0.0447998046875, 0.024505615234375, 0.0012054443359375, 0.038238525390625, 0.0411376953125, -0.016510009765625, -0.023406982421875, -0.002956390380859375, 0.0214385986328125, -0.057464599609375, -0.0164642333984375, 0.006565093994140625, -0.0158843994140625, 0.025634765625, 0.0242919921875, 0.02569580078125, 0.01593017578125, -0.0295257568359375, 0.052642822265625, 0.01145172119140625, 0.0223541259765625, 0.0174407958984375, 0.012664794921875, -0.01279449462890625, -0.0014553070068359375, -0.019622802734375, -0.030029296875, 0.013458251953125, 0.01690673828125, 0.03094482421875, -0.0091094970703125, -0.040191650390625, 0.0287322998046875, -0.01751708984375, -0.017547607421875, 0.033660888671875, -0.00644683837890625, -0.0565185546875, -0.00780487060546875, 0.0287628173828125, 0.0305633544921875, -0.026092529296875, -0.01953125, 0.0013380050659179688, -0.009490966796875, 0.01824951171875, -0.03955078125, -0.0289306640625, 0.0200347900390625, 0.0172119140625, 0.01323699951171875, 0.0141448974609375, 0.0087432861328125, 0.002635955810546875, -0.01009368896484375, -0.029022216796875, -0.0207672119140625, 0.0645751953125, -0.03497314453125, 0.0182342529296875, 0.0092010498046875, -0.0227813720703125, -0.036865234375, 0.0146331787109375, 0.02911376953125, 0.0241546630859375, -0.04693603515625, -0.0035419464111328125, -0.038055419921875, 0.0102386474609375, 0.049407958984375, -0.0299072265625, -0.01398468017578125, -0.043121337890625, 0.0029506683349609375, 0.03289794921875, -0.027618408203125, -0.019439697265625, 0.0091705322265625, 0.0042877197265625, 0.01169586181640625, 0.07403564453125, -0.023101806640625, 0.02764892578125, -0.0011663436889648438, 0.0225677490234375, -0.016326904296875, -0.031158447265625, -0.01059722900390625, 0.0028076171875, -0.0733642578125, -0.050201416015625, 0.073974609375, 0.0653076171875, 0.02154541015625, 0.02313232421875, 0.035064697265625, 0.038848876953125, 0.00815582275390625, -0.005950927734375, 0.00498199462890625, -0.0369873046875, 0.01385498046875, -0.011871337890625, -0.0234375, 0.0259552001953125, -0.04498291015625, -0.007808685302734375, 0.00954437255859375, 0.005992889404296875, 0.026519775390625, -0.038818359375, -0.00243377685546875, 0.041168212890625, 0.00992584228515625, 0.0004897117614746094, 0.0355224609375, 0.012054443359375, 0.0545654296875, 0.0203857421875, 0.0308990478515625, 0.0242919921875, 0.0035762786865234375, 0.0013818740844726562, 0.01076507568359375, 0.04925537109375, -0.00324249267578125, 0.00759124755859375, 0.02685546875, -0.011199951171875, 0.020050048828125, -0.0032958984375, 0.04376220703125, -0.01369476318359375, 0.0115203857421875, 0.022674560546875, -0.0198516845703125, 0.0338134765625, 0.01357269287109375, -0.002170562744140625, 0.01087188720703125, 0.0025119781494140625, -0.02471923828125, -0.02655029296875, 0.004718780517578125, 0.0130615234375, -0.04034423828125, 0.00614166259765625, -0.050872802734375, 0.0128173828125, -0.016448974609375, -0.010894775390625, 0.0266571044921875, -0.0362548828125, -0.0023040771484375, 0.0111236572265625, -0.0223388671875, -0.0255126953125, -0.0286102294921875, 0.002841949462890625, -0.004894256591796875, -0.01029205322265625, -0.0008025169372558594, 0.0239715576171875, 0.074462890625, 0.0311737060546875, 0.0297088623046875, -0.0269775390625, 0.0203399658203125, -0.0007171630859375, -0.0567626953125, -0.026580810546875, 0.01016998291015625, 0.03875732421875, -0.0221405029296875, 0.037841796875, -0.01091766357421875, -0.00798797607421875, -0.0006380081176757812, 0.003021240234375, 0.048004150390625, -0.038604736328125, -0.024993896484375, 0.0046539306640625, 0.00019931793212890625, 0.0206451416015625, 0.0016107559204101562, 0.050323486328125, -0.04949951171875, -0.035430908203125, 0.01058197021484375, -0.042449951171875, -0.038543701171875, -0.009185791015625, -0.059814453125, 0.0972900390625, 0.01561737060546875, 0.0068511962890625, -0.035125732421875, 0.053680419921875, 0.004283905029296875, 0.0287017822265625, -0.041290283203125, 0.060150146484375, -0.06353759765625, 0.0462646484375, -0.029327392578125, 0.03887939453125, 0.00836944580078125, -0.03790283203125, 0.0689697265625, 0.026458740234375, -0.046966552734375, -0.0009465217590332031, 0.046844482421875, 0.021240234375, -0.01210784912109375, 0.0511474609375, -0.041107177734375, -0.0115814208984375, 0.003215789794921875, -0.0256195068359375, 0.0116119384765625, 0.0062408447265625, -0.04937744140625, -0.0009860992431640625, 0.016876220703125, 0.0306549072265625, -0.0084075927734375, 0.0305633544921875, -0.030303955078125, 0.00304412841796875, 0.04425048828125, -0.048187255859375, 0.00284576416015625, 0.0013837814331054688, 0.0245208740234375, -0.0033283233642578125, 0.0206756591796875, -0.01053619384765625, 0.043670654296875, 0.0186309814453125, 0.040740966796875, -0.00470733642578125, 0.00457000732421875, 0.032501220703125, 0.0094757080078125, 0.01451873779296875, 0.045867919921875, -0.01404571533203125, 0.0606689453125, 0.03533935546875, 0.017242431640625, -0.01434326171875, 0.03759765625, 0.0343017578125, 0.06634521484375, -0.060272216796875, -0.0290679931640625, 0.0132293701171875, 0.030120849609375, 0.0046539306640625, 0.01000213623046875, 0.001811981201171875, -0.057373046875, 0.030059814453125, -0.01123809814453125, -0.004360198974609375, 0.031005859375, 0.033721923828125, 0.01248931884765625, -0.00563812255859375, -0.049774169921875, -0.01165008544921875, -0.01629638671875, -0.001934051513671875, 0.016998291015625, 0.028167724609375, -0.0189056396484375, 0.056671142578125, -0.0035552978515625, 0.007701873779296875, -0.03363037109375, 0.05535888671875, -0.00504302978515625, 0.04620361328125, -0.06494140625, -0.06964111328125, 0.030426025390625, 0.0430908203125, 0.0323486328125, 0.035400390625, 0.041656494140625, 0.0294647216796875, -0.037445068359375, 0.013916015625, 0.060150146484375, -0.032501220703125, 0.018768310546875, -0.0404052734375, 0.036865234375, 0.014068603515625, 0.00506591796875, -0.030426025390625, 0.0132293701171875, 0.040802001953125, -0.028564453125, 0.037017822265625, -0.009063720703125, -0.035247802734375, 0.0310821533203125, -0.0169830322265625, 0.096435546875, -0.0011816024780273438, -0.0552978515625, 0.01029205322265625, -0.04180908203125, -0.066162109375, 0.01702880859375, 0.0233154296875, -0.047393798828125, 0.044708251953125, -0.0340576171875, -0.0006747245788574219, 0.01076507568359375, 0.0007300376892089844, -0.018035888671875, 0.00797271728515625, 0.04132080078125, -0.00576019287109375, 0.0221405029296875, 0.01320648193359375, 0.00315093994140625, 0.046356201171875, 0.0198211669921875, 0.037811279296875, -0.03863525390625, 0.04052734375, 0.0134124755859375, 0.01197052001953125, -0.02349853515625, 0.005771636962890625, 0.01666259765625, -0.0272674560546875, -0.002544403076171875, -0.01021575927734375, -0.0172271728515625, -0.0166778564453125, 0.03802490234375, 0.004909515380859375, -0.030548095703125, 0.0031642913818359375, 0.035308837890625, 0.036102294921875, 0.06591796875, -0.02191162109375, -0.0208282470703125, -0.042633056640625, -0.02178955078125, 0.0217132568359375, 0.01303863525390625, 0.034698486328125, 0.022003173828125, -0.0051727294921875, 0.0187225341796875, 0.00913238525390625, 0.0200347900390625, -0.0025920867919921875, 0.021728515625, -0.0560302734375, -0.001861572265625, -0.0011692047119140625, -0.01323699951171875, -0.00020051002502441406, 0.009796142578125, 0.02667236328125, 0.0009398460388183594, -0.0253753662109375, -0.01227569580078125, 0.007656097412109375, 0.00820159912109375, -0.033416748046875, 0.006603240966796875, 0.0010576248168945312, -0.0027675628662109375, -0.0003998279571533203, -0.0125579833984375, -0.0131072998046875, -0.058929443359375, -0.003314971923828125, 0.005817413330078125, -0.03424072265625, -0.007801055908203125, -0.0173492431640625, -0.004680633544921875, 0.040374755859375, 0.029693603515625, -0.07928466796875, 0.0548095703125, -0.0016164779663085938, 0.024932861328125, 0.007785797119140625, -0.08001708984375, 0.01390838623046875, 0.05816650390625, -0.021514892578125, -0.048583984375, -0.06475830078125, -0.01204681396484375, -0.0867919921875, 0.0234222412109375, 0.054595947265625, -0.031951904296875, -0.057373046875, 0.00753021240234375, 0.01561737060546875, 0.04583740234375, 0.0006089210510253906, -0.046417236328125, -0.0286865234375, 0.0097503662109375, 0.016082763671875, 0.01367950439453125, 0.0177764892578125, -0.01953125, -0.033782958984375, -0.004901885986328125, -0.01322174072265625, 0.001842498779296875, -0.050872802734375, -0.1094970703125, 0.0256195068359375, -0.0168304443359375, -0.04736328125, -0.003238677978515625, 0.00966644287109375, -0.001220703125, 0.01702880859375, -0.0007295608520507812, 0.0026149749755859375, -0.0126495361328125, 0.01184844970703125, 0.017120361328125, -0.01398468017578125, 0.049224853515625, -0.00783538818359375, -0.0173187255859375, -0.0036449432373046875, 0.0034027099609375, -0.007083892822265625, 0.007450103759765625, -0.0079803466796875, 0.0452880859375, 0.025299072265625, -0.03411865234375, 0.0213470458984375, 0.0105438232421875, -0.018646240234375, -0.020660400390625, -0.0121307373046875, -0.03619384765625, 0.0159912109375, 0.11566162109375, 0.05908203125, 0.033935546875, -0.05682373046875, 0.019287109375, -0.056549072265625, -0.025634765625, -0.008087158203125, 0.01326751708984375, -0.050384521484375, -0.005092620849609375, 0.0347900390625, -0.01380157470703125, -0.00893402099609375, 0.00974273681640625, -0.042266845703125, -0.0138397216796875, 0.0032196044921875, 0.003139495849609375, -0.06610107421875, -0.006183624267578125, 0.053375244140625, -0.0273284912109375, 0.0207061767578125, 0.0132293701171875, -0.0067596435546875, 0.040740966796875, 0.042877197265625, 0.04864501953125, 0.0465087890625, -0.046234130859375, 0.0084991455078125, 0.03192138671875, -0.01410675048828125, -0.032684326171875, -0.0287017822265625, 0.012542724609375, 0.01082611083984375, -0.01171112060546875, 0.006298065185546875, 0.022003173828125, 0.00725555419921875, -0.033416748046875, 0.0115814208984375, -0.0267333984375, 0.006656646728515625, -0.029388427734375, 0.031494140625, -0.0243072509765625, -0.01033782958984375, 0.027069091796875, -0.022491455078125, 0.00628662109375, 0.03741455078125, 0.025787353515625, -0.024383544921875, 0.0167236328125, -0.00775146484375, 0.01442718505859375, 0.010345458984375 ]
c0b270d3924fea4a2d085527fa9d9a7b526389b0
Wordpress Stackexchange Q: Sorting results from JSON-API on custom fields Is there any way, out of the box, to sort results from the JSON-API plugin based on values in custom fields? The request is paged, so the results will need to be sorted server-side. I have an http request along the lines of: http://www.example.com/wordpress/?json=get_author_posts&author_slug=user&post_type=custom &include=title,custom_fields&custom_fields=date_value&count=10&page=1 I'd like to sort on the custom field date_value, ideally without having to create a new controller within the json plugin. Is this possible? A: Looking through the source code, this plugin maps the query variable orderby to the WP_Query argument of the same name, orderby. What this means is that you should be able to do the following: http://www.example.com/wordpress/?json=get_author_posts&author_slug=user&post_type=custom&include=title,custom_fields&custom_fields=date_value&count=10&page=1&orderby=date_value
Q: Sorting results from JSON-API on custom fields Is there any way, out of the box, to sort results from the JSON-API plugin based on values in custom fields? The request is paged, so the results will need to be sorted server-side. I have an http request along the lines of: http://www.example.com/wordpress/?json=get_author_posts&author_slug=user&post_type=custom &include=title,custom_fields&custom_fields=date_value&count=10&page=1 I'd like to sort on the custom field date_value, ideally without having to create a new controller within the json plugin. Is this possible? A: Looking through the source code, this plugin maps the query variable orderby to the WP_Query argument of the same name, orderby. What this means is that you should be able to do the following: http://www.example.com/wordpress/?json=get_author_posts&author_slug=user&post_type=custom&include=title,custom_fields&custom_fields=date_value&count=10&page=1&orderby=date_value A: You can sort via javascript .sort() a json array. Your example string was also splitable via php, like explode() explode( '&', $your_string ); or parse_url For sorting a JSON with php use usort; do you find solutions via G* search. Also you can use json_decode(), my favorite way, and create a php array from the json object and use on of different php functions to sort this array. A: I'm new to JSON API but this worked for me. This answer is inspired by https://wordpress.stackexchange.com/a/18200 and documentation about JSON API external controller as described: here First create your controller file mikictrl.php, in your theme directory. class JSON_API_Mikictrl_Controller { public function get_custom_posts() { global $json_api; // See also: http://codex.wordpress.org/Template_Tags/query_posts $posts = $json_api->introspector->get_posts(array( 'meta_key' => $json_api->query->key, 'meta_value' => $json_api->query->value, 'orderby' => $json_api->query->key )); return array( 'key' => $json_api->query->key, 'value' => $json_api->query->value, 'posts' => $posts ); } } Then add following to your theme's functions.php // Add a custom controller add_filter('json_api_controllers', 'add_my_controller'); function add_my_controller($controllers) { $controllers[] = 'Mikictrl'; return $controllers; } // Register the source file for our controller add_filter('json_api_mikictrl_controller_path', 'mikictrl_controller_path'); function mikictrl_controller_path($default_path) { return get_stylesheet_directory() . '/mikictrl.php'; } And last, go to JSON API in wordpress admin, and enable the Mikictrl controller. Now you can sort a query by meta_key of your custom fields : http://example.com/api/Mikictrl/get_custom_posts/?key=_yourcustomfieldkey&custom_fields=_yourcustomfieldkey&order=desc&include=title,custom_fields&dev=1 Also, you can filter by a meta_value if you fill the value parameter : http://example.com/api/Mikictrl/get_custom_posts/?key=_yourcustomfieldkey&value=yourcustomfieldvalue&custom_fields=_yourcustomfieldkey&order=desc&include=title,custom_fields&dev=1
wordpress
{ "language": "en", "length": 343, "provenance": "stackexchange_00019.jsonl.gz:427012", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76832" }
[ 0.0697021484375, 0.003330230712890625, -0.0254974365234375, -0.0718994140625, 0.0285797119140625, -0.029571533203125, 0.0036792755126953125, 0.021636962890625, 0.01268768310546875, 0.0225830078125, 0.0014324188232421875, -0.0010662078857421875, -0.0257415771484375, -0.02508544921875, -0.03472900390625, -0.0540771484375, 0.019927978515625, 0.0154266357421875, 0.033935546875, -0.0136566162109375, 0.0230712890625, -0.006618499755859375, 0.0160675048828125, 0.03173828125, 0.03668212890625, -0.007022857666015625, 0.0631103515625, -0.0311126708984375, 0.04998779296875, 0.00431060791015625, 0.0274505615234375, -0.047760009765625, 0.006687164306640625, 0.03033447265625, -0.005859375, -0.006687164306640625, 0.05438232421875, -0.006427764892578125, -0.004154205322265625, 0.05755615234375, 0.0311126708984375, -0.01380157470703125, -0.0682373046875, 0.036407470703125, -0.044158935546875, -0.05999755859375, 0.063232421875, 0.006561279296875, 0.0204925537109375, -0.0025634765625, -0.00879669189453125, -0.040557861328125, 0.0034503936767578125, -0.0008120536804199219, -0.018341064453125, -0.0255279541015625, -0.0005221366882324219, 0.01020050048828125, 0.0218048095703125, -0.002590179443359375, -0.0146026611328125, 0.0156707763671875, 0.0148468017578125, 0.0007200241088867188, 0.034332275390625, -0.00756072998046875, 0.01580810546875, 0.0178680419921875, 0.025146484375, 0.0396728515625, 0.0017690658569335938, -0.004627227783203125, 0.01197052001953125, -0.007091522216796875, -0.0222320556640625, -0.038665771484375, -0.005611419677734375, -0.0482177734375, 0.02264404296875, -0.004314422607421875, -0.01605224609375, 0.0081329345703125, 0.0013866424560546875, -0.013092041015625, -0.01351165771484375, -0.00325775146484375, -0.0299224853515625, -0.00408935546875, -0.0261688232421875, -0.013397216796875, -0.01338958740234375, -0.053375244140625, -0.05426025390625, 0.054656982421875, 0.00970458984375, -0.0037441253662109375, 0.01264190673828125, -0.006561279296875, -0.0019073486328125, -0.00856781005859375, 0.025634765625, -0.03436279296875, -0.0016489028930664062, -0.008697509765625, 0.00780487060546875, -0.014373779296875, 0.0012788772583007812, -0.005809783935546875, 0.044158935546875, 0.03802490234375, -0.0158843994140625, 0.0390625, 0.006687164306640625, -0.01678466796875, -0.018890380859375, -0.007633209228515625, -0.020172119140625, -0.007045745849609375, -0.0017576217651367188, -0.05584716796875, 0.01407623291015625, 0.01476287841796875, 0.031829833984375, 0.0025482177734375, 0.0254364013671875, 0.018157958984375, -0.045013427734375, -0.0261077880859375, -0.0372314453125, -0.00696563720703125, -0.03082275390625, 0.0252685546875, 0.020965576171875, 0.044769287109375, 0.006160736083984375, 0.00696563720703125, -0.00296783447265625, -0.03509521484375, 0.0014944076538085938, -0.01513671875, 0.015625, 0.006900787353515625, 0.0250244140625, -0.0119781494140625, -0.0055084228515625, -0.017486572265625, -0.0013036727905273438, 0.0364990234375, 0.0060272216796875, -0.0170745849609375, 0.0173187255859375, 0.007778167724609375, 0.0240478515625, 0.0024204254150390625, 0.021820068359375, 0.00024700164794921875, 0.05413818359375, -0.0290069580078125, -0.0121917724609375, -0.014007568359375, -0.0013074874877929688, -0.014373779296875, -0.021759033203125, -0.049896240234375, -0.03387451171875, 0.00844573974609375, -0.006439208984375, 0.01049041748046875, 0.01568603515625, -0.00313568115234375, 0.017730712890625, -0.0133209228515625, 0.022552490234375, 0.0222320556640625, 0.0013341903686523438, 0.022857666015625, -0.0007290840148925781, -0.01275634765625, 0.0107269287109375, 0.015411376953125, -0.01479339599609375, -0.0284881591796875, 0.0205841064453125, -0.01068878173828125, -0.053619384765625, 0.08203125, -0.00909423828125, 0.05462646484375, 0.0075225830078125, -0.0152740478515625, 0.035186767578125, 0.06817626953125, -0.0301666259765625, 0.0258941650390625, -0.01812744140625, -0.0229644775390625, 0.0203857421875, 0.0152130126953125, -0.0038814544677734375, -0.01212310791015625, -0.08367919921875, 0.0296173095703125, -0.035308837890625, 0.044097900390625, -0.00592041015625, 0.003253936767578125, -0.00652313232421875, 0.024505615234375, -0.0181732177734375, 0.041259765625, 0.021759033203125, 0.037689208984375, -0.06695556640625, 0.046234130859375, 0.0207366943359375, -0.0011701583862304688, 0.03497314453125, 0.0182037353515625, -0.001865386962890625, -0.003520965576171875, -0.006732940673828125, -0.003429412841796875, -0.011505126953125, 0.055816650390625, 0.0223388671875, -0.0228424072265625, -0.002246856689453125, -0.0175628662109375, 0.04833984375, 0.00278472900390625, 0.031829833984375, 0.005123138427734375, 0.0311279296875, 0.0438232421875, -0.020477294921875, -0.0133209228515625, 0.00023603439331054688, -0.04913330078125, 0.024078369140625, 0.04840087890625, 0.034149169921875, 0.0175323486328125, 0.0236663818359375, 0.0142822265625, 0.03955078125, 0.0033435821533203125, 0.03277587890625, -0.0250244140625, 0.057769775390625, 0.09271240234375, -0.037689208984375, -0.0220947265625, 0.00909423828125, -0.0836181640625, 0.0177154541015625, 0.031768798828125, -0.00194549560546875, 0.0073394775390625, 0.0038928985595703125, 0.003467559814453125, 0.003932952880859375, 0.006549835205078125, -0.0159912109375, -0.01041412353515625, 0.037322998046875, -0.0194854736328125, 0.036041259765625, 0.03558349609375, -0.027587890625, -0.0231781005859375, 0.015411376953125, 0.0177764892578125, 0.017669677734375, 0.005832672119140625, -0.005062103271484375, 0.006961822509765625, -0.0238189697265625, -0.0079498291015625, 0.0469970703125, 0.00036334991455078125, 0.005558013916015625, 0.005962371826171875, -0.023468017578125, -0.0002340078353881836, -0.00133514404296875, -0.05084228515625, 0.02215576171875, 0.057281494140625, -0.0216064453125, 0.006931304931640625, 0.0259552001953125, 0.03961181640625, -0.00677490234375, 0.0172882080078125, -0.035552978515625, 0.0005965232849121094, 0.02496337890625, -0.037109375, 0.0321044921875, -0.032562255859375, 0.013092041015625, 0.057373046875, 0.00537109375, 0.004425048828125, -0.0173187255859375, -0.031951904296875, -0.0477294921875, 0.008880615234375, -0.018341064453125, -0.045196533203125, -0.024383544921875, 0.046875, 0.0263824462890625, 0.0567626953125, 0.01477813720703125, -0.037567138671875, 0.01861572265625, 0.043701171875, -0.100341796875, -0.1695556640625, 0.0521240234375, -0.048919677734375, -0.01435089111328125, -0.01502227783203125, -0.053863525390625, -0.0098114013671875, 0.007770538330078125, -0.0049591064453125, 0.0433349609375, -0.0174102783203125, -0.07733154296875, -0.00998687744140625, -0.09161376953125, 0.018280029296875, 0.005222320556640625, 0.0211944580078125, 0.00018203258514404297, 0.07757568359375, 0.0083770751953125, -0.07470703125, -0.02545166015625, 0.0379638671875, -0.024444580078125, -0.01532745361328125, 0.0233001708984375, -0.00949859619140625, 0.0162811279296875, 0.01537322998046875, 0.0804443359375, 0.057373046875, -0.0712890625, -0.0017728805541992188, -0.0263824462890625, 0.0253143310546875, -0.0153045654296875, 0.008514404296875, 0.042572021484375, 0.0206756591796875, 0.00542449951171875, -0.0230712890625, -0.0010557174682617188, -0.02105712890625, -0.0271148681640625, 0.038482666015625, 0.0088043212890625, 0.0032825469970703125, -0.0224609375, 0.0413818359375, 0.0024890899658203125, -0.01983642578125, -0.005207061767578125, -0.022186279296875, 0.04345703125, 0.01593017578125, 0.024322509765625, -0.0066375732421875, 0.036712646484375, -0.0281982421875, -0.037567138671875, 0.0007762908935546875, -0.0281982421875, -0.0266265869140625, 0.01004791259765625, -0.0247650146484375, -0.06536865234375, 0.062347412109375, 0.0452880859375, 0.000732421875, -0.0017490386962890625, -0.045074462890625, 0.0183868408203125, 0.08758544921875, -0.042144775390625, -0.0152130126953125, 0.0160980224609375, 0.01275634765625, -0.03216552734375, 0.0221405029296875, -0.062164306640625, -0.013671875, -0.053314208984375, 0.02044677734375, 0.0037555694580078125, -0.0163421630859375, -0.0229644775390625, 0.048370361328125, -0.03887939453125, -0.00815582275390625, 0.0160980224609375, 0.0039825439453125, 0.0010204315185546875, -0.0084075927734375, 0.0022525787353515625, -0.0185699462890625, -0.00986480712890625, -0.0029392242431640625, -0.07403564453125, -0.016143798828125, -0.016632080078125, 0.0679931640625, 0.0030498504638671875, -0.006923675537109375, -0.033935546875, 0.0238800048828125, -0.007045745849609375, 0.00274658203125, 0.0112152099609375, -0.00023066997528076172, -0.000514984130859375, 0.02056884765625, 0.01430511474609375, -0.01446533203125, 0.00849151611328125, -0.032989501953125, -0.025238037109375, -0.01329803466796875, -0.03173828125, 0.0028514862060546875, -0.0279541015625, -0.022705078125, -0.027008056640625, -0.04327392578125, -0.058074951171875, -0.0025768280029296875, -0.042724609375, 0.00969696044921875, -0.03948974609375, -0.034210205078125, 0.0198822021484375, -0.0179290771484375, -0.0220184326171875, 0.01435089111328125, 0.0689697265625, 0.015960693359375, 0.0022945404052734375, -0.058746337890625, -0.00534820556640625, 0.0213623046875, 0.0138397216796875, 0.019622802734375, -0.02191162109375, -0.0487060546875, 0.1136474609375, -0.0160064697265625, -0.006656646728515625, 0.0308837890625, 0.005489349365234375, 0.031494140625, -0.019378662109375, 0.002033233642578125, 0.041168212890625, -0.02972412109375, 0.0261383056640625, -0.00843048095703125, -0.0188446044921875, 0.0202789306640625, 0.040008544921875, -0.05426025390625, 0.034210205078125, -0.01229095458984375, -0.0928955078125, 0.04119873046875, -0.052337646484375, 0.0014238357543945312, -0.0135955810546875, -0.005275726318359375, 0.05499267578125, 0.01446533203125, 0.027435302734375, -0.01030731201171875, -0.00872039794921875, -0.0292205810546875, 0.03228759765625, -0.0165557861328125, 0.013580322265625, -0.002658843994140625, -0.0214691162109375, 0.0919189453125, -0.00876617431640625, -0.0517578125, 0.0052337646484375, -0.036468505859375, 0.015350341796875, 0.0106201171875, -0.04486083984375, 0.03851318359375, 0.052703857421875, -0.005016326904296875, 0.0240936279296875, -0.04888916015625, 0.0164337158203125, -0.04669189453125, 0.0154266357421875, 0.021728515625, -0.008819580078125, -0.04437255859375, 0.09210205078125, 0.0269927978515625, 0.0181884765625, -0.0247650146484375, 0.04473876953125, -0.004150390625, 0.0494384765625, -0.0009570121765136719, -0.01331329345703125, 0.0015325546264648438, 0.025726318359375, -0.01812744140625, 0.0267791748046875, 0.00507354736328125, -0.01097869873046875, -0.04998779296875, -0.0234832763671875, 0.0080108642578125, 0.06475830078125, 0.0302734375, -0.0322265625, -0.01019287109375, 0.024505615234375, 0.02349853515625, -0.0226593017578125, -0.0215911865234375, 0.00853729248046875, 0.050628662109375, 0.0019044876098632812, -0.00421905517578125, -0.01654052734375, 0.0112457275390625, -0.0296173095703125, 0.0168304443359375, -0.01239776611328125, -0.0177154541015625, -0.01160430908203125, 0.0025539398193359375, 0.0160064697265625, -0.039886474609375, -0.0158233642578125, -0.0145263671875, -0.0232391357421875, 0.04034423828125, -0.0202178955078125, 0.044158935546875, -0.06048583984375, 0.029205322265625, -0.03790283203125, 0.0067596435546875, 0.02886962890625, 0.0100860595703125, -0.0242156982421875, 0.0205230712890625, -0.018890380859375, -0.0010623931884765625, 0.03460693359375, -0.00315093994140625, -0.0153045654296875, -0.0322265625, 0.0233001708984375, 0.027496337890625, -0.0011444091796875, -0.071533203125, 0.019927978515625, -0.0263824462890625, -0.01448822021484375, -0.02935791015625, -0.01251983642578125, 0.0853271484375, -0.033966064453125, 0.07940673828125, 0.004749298095703125, 0.0313720703125, -0.034942626953125, -0.005901336669921875, -0.005878448486328125, -0.07611083984375, -0.035797119140625, 0.0264892578125, -0.0904541015625, 0.042724609375, 0.0323486328125, 0.0012273788452148438, 0.031829833984375, -0.011505126953125, -0.0069580078125, -0.00057220458984375, 0.01055145263671875, 0.0285797119140625, 0.0322265625, 0.034088134765625, -0.00605010986328125, -0.0062713623046875, -0.0106658935546875, -0.0264434814453125, 0.0290679931640625, 0.0209808349609375, 0.0159912109375, -0.0277557373046875, -0.031707763671875, 0.05780029296875, 0.06787109375, 0.00972747802734375, 0.03948974609375, 0.033233642578125, 0.014892578125, 0.00616455078125, -0.00803375244140625, 0.04058837890625, -0.023590087890625, 0.036376953125, -0.01239776611328125, -0.0134429931640625, 0.01538848876953125, -0.04144287109375, 0.0106048583984375, -0.005977630615234375, 0.031494140625, -0.0362548828125, 0.023040771484375, 0.005771636962890625, -0.00853729248046875, 0.0190582275390625, -0.00612640380859375, 0.0036678314208984375, 0.022247314453125, 0.01445770263671875, -0.033782958984375, -0.0377197265625, 0.00667572021484375, -0.01190185546875, 0.003276824951171875, -0.01194000244140625, 0.0242767333984375, -0.00786590576171875, -0.022705078125, 0.0023670196533203125, -0.01018524169921875, 0.002620697021484375, 0.026885986328125, 0.016845703125, -0.01302337646484375, -0.018890380859375, -0.03515625, -0.0069122314453125, -0.031585693359375, -0.038360595703125, -0.0227203369140625, -0.01209259033203125, 0.07220458984375, 0.06353759765625, -0.003070831298828125, -0.0516357421875, 0.045928955078125, -0.01172637939453125, 0.0163116455078125, -0.0399169921875, -0.0268096923828125, 0.0184478759765625, -0.005344390869140625, 0.00592041015625, 0.02783203125, -0.0230560302734375, -0.016632080078125, 0.0247344970703125, 0.06878662109375, -0.0006456375122070312, -0.0267486572265625, 0.036895751953125, 0.040557861328125, -0.028106689453125, 0.004848480224609375, 0.0300445556640625, -0.055419921875, -0.0108489990234375, 0.02008056640625, -0.01448822021484375, 0.016082763671875, 0.0187225341796875, -0.05352783203125, 0.095703125, 0.0175628662109375, 0.00995635986328125, -0.03228759765625, 0.04559326171875, 0.01514434814453125, 0.03973388671875, -0.039825439453125, 0.05047607421875, 0.001708984375, 0.04632568359375, -0.06048583984375, -0.010894775390625, 0.0011138916015625, 0.03125, 0.023162841796875, 0.0027484893798828125, -0.0298004150390625, 0.004116058349609375, 0.0216217041015625, -0.00838470458984375, -0.0186767578125, 0.057586669921875, 0.028656005859375, 0.0227813720703125, 0.041839599609375, -0.0261383056640625, 0.0256195068359375, -0.02020263671875, 0.0019016265869140625, 0.045623779296875, 0.033599853515625, 0.053924560546875, -0.0175628662109375, -0.0095977783203125, -0.0118408203125, -0.0176849365234375, 0.0244903564453125, -0.00432586669921875, -0.006256103515625, 0.07244873046875, 0.060821533203125, -0.0272369384765625, -0.06451416015625, -0.02313232421875, 0.045501708984375, 0.034271240234375, 0.05853271484375, 0.01160430908203125, 0.0243988037109375, -0.0008602142333984375, -0.0341796875, 0.0239410400390625, 0.00031757354736328125, -0.062286376953125, 0.049896240234375, 0.005252838134765625, 0.00643157958984375, -0.047821044921875, 0.0010595321655273438, 0.05743408203125, 0.060089111328125, -0.048370361328125, -0.046905517578125, 0.01062774658203125, -0.019073486328125, 0.0201568603515625, -0.0033969879150390625, -0.00882720947265625, -0.012664794921875, 0.003955841064453125, -0.044952392578125, -0.0218048095703125, 0.011199951171875, 0.0302734375, -0.004123687744140625, -0.0037708282470703125, -0.0133819580078125, -0.04339599609375, -0.0189208984375, 0.01318359375, -0.0007581710815429688, 0.035888671875, 0.0203857421875, 0.033203125, -0.0394287109375, -0.0176239013671875, 0.0010156631469726562, 0.024169921875, -0.003025054931640625, 0.01126861572265625, -0.005794525146484375, -0.029937744140625, -0.01442718505859375, 0.02374267578125, -0.00038504600524902344, 0.0171051025390625, -0.004840850830078125, 0.0001131296157836914, 0.0207977294921875, 0.0008034706115722656, 0.058929443359375, -0.00945281982421875, -0.0716552734375, -0.02587890625, 0.004337310791015625, 0.047454833984375, 0.0187835693359375, 0.047332763671875, 0.0220184326171875, 0.0150299072265625, -0.0262908935546875, 0.0294036865234375, -0.002902984619140625, -0.033233642578125, 0.0413818359375, 0.00440216064453125, 0.0672607421875, -0.0031452178955078125, -0.016998291015625, 0.0249786376953125, -0.042816162109375, -0.055328369140625, -0.00080108642578125, 0.0239410400390625, -0.02056884765625, 0.046966552734375, 0.014251708984375, -0.033966064453125, 0.0194549560546875, -0.024627685546875, 0.0546875, -0.01263427734375, -0.02813720703125, -0.007045745849609375, -0.038818359375, -0.01529693603515625, -0.005828857421875, 0.01513671875, -0.004913330078125, 0.0233917236328125, 0.0108489990234375, 0.00373077392578125, -0.03729248046875, -0.040435791015625, 0.0017604827880859375, -0.01560211181640625, 0.031219482421875, 0.01056671142578125, -0.043243408203125, -0.0005593299865722656, -0.0157318115234375, -0.00743865966796875, 0.032470703125, -0.0243377685546875, -0.014312744140625, -0.009765625, 0.029937744140625, -0.003299713134765625, -0.0160369873046875, -0.04559326171875, -0.031890869140625, -0.0158843994140625, -0.0269622802734375, -0.01117706298828125, -0.021514892578125, 0.00051116943359375, 0.033050537109375, 0.0202178955078125, -0.027740478515625, 0.016693115234375, -0.043121337890625, 0.0413818359375, 0.03759765625, 0.007038116455078125, 0.0426025390625, 0.01532745361328125, -0.01374053955078125, 0.03594970703125, 0.0097808837890625, -0.0226898193359375, 0.0267791748046875, -0.00749969482421875, -0.0499267578125, -0.01934814453125, 0.0152587890625, 0.0106201171875, -0.0028858184814453125, -0.015228271484375, -0.0140228271484375, -0.0692138671875, 0.01025390625, -0.0302886962890625, -0.0187530517578125, 0.0245513916015625, 0.0101776123046875, 0.03369140625, -0.0006823539733886719, -0.01558685302734375, -0.0084991455078125, -0.017303466796875, -0.011932373046875, -0.0129241943359375, 0.0184326171875, -0.02557373046875, -0.0491943359375, -0.019256591796875, -0.01482391357421875, -0.006877899169921875, 0.0096435546875, -0.004573822021484375, -0.01047515869140625, -0.0278472900390625, 0.006412506103515625, 0.013031005859375, -0.008270263671875, -0.00794219970703125, 0.0048065185546875, -0.0258636474609375, 0.007259368896484375, 0.00397491455078125, 0.04345703125, -0.007770538330078125, 0.0171051025390625, 0.03680419921875, 0.01309967041015625, -0.0633544921875, -0.08251953125, 0.01079559326171875, -0.029541015625, 0.0118255615234375, 0.005764007568359375, 0.0230712890625, 0.04736328125, -0.005336761474609375, -0.043487548828125, 0.0572509765625, -0.0056915283203125, -0.02532958984375, -0.057220458984375, 0.0104217529296875, 0.0274810791015625, 0.005771636962890625, -0.009521484375, -0.0239715576171875, -0.052490234375, 0.00890350341796875, 0.00311279296875, 0.004474639892578125, -0.014312744140625, 0.019775390625, -0.11627197265625, 0.0222015380859375, -0.0176849365234375, 0.00240325927734375, -0.01158905029296875, 0.007518768310546875, 0.0046844482421875, 0.0185699462890625, -0.032012939453125, 0.0115509033203125, 0.0012502670288085938, 0.03314208984375, -0.0302276611328125, 0.0230865478515625, -0.024169921875, 0.0173492431640625, 0.06317138671875, 0.0938720703125, 0.01641845703125, -0.055694580078125, -0.0305633544921875, -0.019989013671875, 0.0300750732421875, -0.0284423828125, -0.0024204254150390625, -0.05999755859375, -0.009613037109375, -0.005237579345703125, 0.02001953125, 0.032958984375, -0.0236968994140625, -0.005924224853515625, -0.007595062255859375, 0.059295654296875, 0.02484130859375, -0.034698486328125, 0.055999755859375, -0.013275146484375, -0.03094482421875, -0.030548095703125, 0.005237579345703125, -0.0292205810546875, -0.0247344970703125, 0.010406494140625, -0.024017333984375, -0.019561767578125, -0.0006728172302246094, 0.029449462890625, -0.0070648193359375, 0.04168701171875, -0.01270294189453125, 0.00673675537109375, -0.04168701171875, 0.036773681640625, 0.0256805419921875, 0.033203125, -0.029022216796875, 0.0040740966796875, 0.036468505859375, 0.0298004150390625, -0.0261077880859375, 0.03326416015625, -0.0102691650390625, 0.00809478759765625, -0.021148681640625, 0.003936767578125, 0.036651611328125, -0.02191162109375, -0.002410888671875, 0.01236724853515625, -0.01959228515625, -0.03692626953125, 0.0216827392578125, 0.038787841796875, -0.00885009765625, 0.01062774658203125 ]
a24ea6c58ceef279bd4ca514fe82503312769dce
Wordpress Stackexchange Q: How to use Iris color picker on front-end? I am trying to use new Iris color picker on the front-end. I succeed in using it on back-end: while using it on theme options I just enqueued the color picker like this … wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); … and hooked it to admin_enqueue_scripts. It worked. However, I don't think the same process will work on the front-end by just hooking to wp_enqueue_scripts. Should I have to include the core file of new Iris color picker myself, or there is some way I can enqueue the color picker from front-end as I have done in my theme option code? A: you can copy js and css files into your plugin path or theme path, then register and load them with other handles.
Q: How to use Iris color picker on front-end? I am trying to use new Iris color picker on the front-end. I succeed in using it on back-end: while using it on theme options I just enqueued the color picker like this … wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); … and hooked it to admin_enqueue_scripts. It worked. However, I don't think the same process will work on the front-end by just hooking to wp_enqueue_scripts. Should I have to include the core file of new Iris color picker myself, or there is some way I can enqueue the color picker from front-end as I have done in my theme option code? A: you can copy js and css files into your plugin path or theme path, then register and load them with other handles.
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:427022", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76871" }
[ 0.0311279296875, -0.015777587890625, 0.00266265869140625, -0.00897216796875, -0.0215301513671875, -0.03131103515625, -0.0012826919555664062, -0.028778076171875, 0.03717041015625, -0.005107879638671875, -0.04681396484375, 0.0099945068359375, -0.04766845703125, 0.006847381591796875, -0.03485107421875, -0.045379638671875, 0.06671142578125, -0.056488037109375, 0.04425048828125, 0.017425537109375, 0.028900146484375, 0.05242919921875, 0.01474761962890625, 0.05120849609375, 0.0169677734375, -0.004726409912109375, -0.006877899169921875, 0.030181884765625, -0.0035800933837890625, 0.00287628173828125, 0.01406097412109375, 0.00807952880859375, 0.002941131591796875, 0.0162811279296875, 0.00432586669921875, 0.01190948486328125, 0.05987548828125, -0.0128021240234375, 0.026947021484375, 0.0299835205078125, 0.060272216796875, -0.032440185546875, -0.074951171875, 0.0811767578125, -0.059417724609375, -0.041778564453125, 0.028472900390625, -0.01227569580078125, -0.00014150142669677734, -0.003765106201171875, -0.024383544921875, -0.02056884765625, 0.001033782958984375, 0.0015802383422851562, -0.00751495361328125, -0.0208740234375, 0.0047607421875, -0.01788330078125, 0.025299072265625, 0.02227783203125, -0.0039825439453125, 0.0054473876953125, 0.001979827880859375, -0.015533447265625, 0.0036640167236328125, -0.01314544677734375, -0.031585693359375, 0.0165252685546875, -0.041015625, -0.006504058837890625, 0.036651611328125, -0.03436279296875, -0.00726318359375, -0.066162109375, -0.0121612548828125, 0.06732177734375, -0.0081024169921875, 0.01177215576171875, -0.021331787109375, -0.007476806640625, -0.0012769699096679688, 0.0221710205078125, -0.0645751953125, -0.044036865234375, 0.0489501953125, 0.0016183853149414062, -0.0102081298828125, -0.017120361328125, -0.015167236328125, 0.0009965896606445312, -0.0199737548828125, 0.0034618377685546875, -0.0115814208984375, 0.01348876953125, -0.0245513916015625, -0.0024242401123046875, -0.007343292236328125, 0.0352783203125, -0.0139617919921875, 0.028778076171875, 0.02734375, -0.0498046875, 0.061279296875, -0.0501708984375, 0.0156707763671875, 0.07623291015625, 0.009490966796875, -0.04327392578125, 0.0004706382751464844, -0.01226806640625, 0.008087158203125, 0.010101318359375, 0.0274200439453125, -0.0240478515625, -0.01532745361328125, -0.021209716796875, -0.0210113525390625, 0.0163116455078125, 0.0164642333984375, -0.005802154541015625, 0.0015239715576171875, 0.02520751953125, 0.00913238525390625, -0.045440673828125, 0.002979278564453125, -0.0206451416015625, -0.01258087158203125, -0.00751495361328125, 0.004180908203125, 0.04498291015625, -0.04412841796875, 0.0186614990234375, 0.09521484375, 0.01137542724609375, 0.01392364501953125, -0.03338623046875, 0.0222320556640625, 0.03314208984375, 0.015594482421875, -0.034698486328125, 0.08514404296875, -0.068359375, -0.09417724609375, 0.081298828125, 0.00975799560546875, -0.01113128662109375, 0.000675201416015625, 0.0301666259765625, 0.031768798828125, -0.005706787109375, 0.03192138671875, -0.037322998046875, -0.0036773681640625, 0.033294677734375, 0.02606201171875, 0.036834716796875, 0.06549072265625, 0.0020618438720703125, -0.028717041015625, -0.0083160400390625, 0.03741455078125, 0.013671875, -0.0306243896484375, -0.01117706298828125, -0.025848388671875, -0.032257080078125, 0.03204345703125, 0.020538330078125, 0.037567138671875, 0.0003311634063720703, 0.038848876953125, -0.0307464599609375, 0.044189453125, 0.01482391357421875, -0.0200653076171875, 0.01264190673828125, 0.0161285400390625, 0.028167724609375, 0.00418853759765625, 0.0004451274871826172, -0.0269622802734375, -0.054840087890625, 0.048431396484375, -0.0341796875, -0.0182647705078125, -0.039520263671875, 0.0106048583984375, 0.01739501953125, 0.03338623046875, 0.0208892822265625, 0.0221710205078125, -0.0333251953125, -0.0380859375, 0.03472900390625, -0.01456451416015625, -0.01311492919921875, -0.0226898193359375, 0.01403045654296875, -0.0140533447265625, -0.006679534912109375, 0.033905029296875, 0.042572021484375, 0.0096588134765625, -0.04315185546875, -0.05010986328125, 0.00921630859375, -0.0256805419921875, 0.050323486328125, -0.022674560546875, -0.0281219482421875, 0.0126495361328125, -0.06243896484375, 0.0170440673828125, -0.0074920654296875, -0.033905029296875, 0.0025920867919921875, -0.03118896484375, 0.0002033710479736328, -0.0019741058349609375, -0.0263519287109375, 0.057891845703125, -0.01873779296875, 0.05517578125, 0.054229736328125, -0.004726409912109375, 0.01959228515625, -0.0230865478515625, 0.0032978057861328125, 0.0096588134765625, 0.002685546875, 0.03955078125, 0.0217437744140625, 0.004428863525390625, 0.051239013671875, -0.0106353759765625, -0.03387451171875, 0.0059051513671875, -0.054534912109375, 0.031585693359375, 0.035247802734375, 0.02655029296875, 0.08087158203125, 0.017791748046875, 0.0036773681640625, 0.048065185546875, 0.0136871337890625, 0.0640869140625, -0.042205810546875, -0.037445068359375, -0.0012693405151367188, -0.0088653564453125, 0.0185089111328125, 0.029541015625, -0.07232666015625, -0.019317626953125, 0.053314208984375, 0.00894927978515625, 0.026458740234375, -0.033599853515625, 0.005268096923828125, -0.0035400390625, -0.02264404296875, -0.0288543701171875, -0.0113067626953125, -0.0059051513671875, -0.01291656494140625, 0.01558685302734375, 0.00269317626953125, 0.0292510986328125, -0.0243988037109375, 0.007106781005859375, -0.038055419921875, -0.0038852691650390625, 0.04364013671875, 0.035491943359375, -0.004177093505859375, -0.0112152099609375, -0.025146484375, -0.0029621124267578125, 0.0243072509765625, 0.006412506103515625, 0.069580078125, -0.02386474609375, -0.0224151611328125, -0.037017822265625, -0.05889892578125, -0.0159759521484375, 0.0279693603515625, 0.0496826171875, 0.0350341796875, 0.03424072265625, 0.0020999908447265625, -0.0108489990234375, 0.032501220703125, 0.0264434814453125, -0.0193328857421875, -0.007343292236328125, -0.0081939697265625, 0.0146942138671875, -0.01064300537109375, 0.033355712890625, 0.05157470703125, -0.01641845703125, 0.0257568359375, 0.0017986297607421875, -0.0061187744140625, 0.00244140625, 0.0103912353515625, 0.0003325939178466797, -0.005084991455078125, -0.0239105224609375, 0.023193359375, 0.0176544189453125, -0.014434814453125, 0.0268402099609375, -0.0210723876953125, 0.0229339599609375, 0.00405120849609375, -0.03436279296875, -0.02130126953125, -0.0084381103515625, -0.07537841796875, 0.018310546875, -0.06439208984375, -0.022491455078125, 0.0097198486328125, -0.056121826171875, 0.0158538818359375, -0.033416748046875, -0.016021728515625, -0.0151519775390625, -0.0277862548828125, -0.03216552734375, -0.00585174560546875, 0.0021820068359375, 0.00954437255859375, -0.003925323486328125, 0.0231781005859375, 0.004177093505859375, -0.01177215576171875, 0.0072021484375, -0.0413818359375, -0.0239410400390625, -0.01439666748046875, 0.05914306640625, -0.05181884765625, -0.0285491943359375, 0.016693115234375, -0.0183868408203125, 0.01462554931640625, -0.032745361328125, -0.00997161865234375, -0.055023193359375, -0.04266357421875, -0.048431396484375, -0.0158843994140625, 0.0655517578125, -0.01165771484375, -0.02490234375, -0.0297088623046875, 0.0233612060546875, 0.0135040283203125, 0.01374053955078125, -0.037261962890625, -0.02020263671875, -0.035614013671875, 0.0206146240234375, -0.02862548828125, 0.0247650146484375, -0.006443023681640625, -0.04498291015625, -0.004108428955078125, 0.03790283203125, 0.0230255126953125, 0.04638671875, 0.0187835693359375, -0.003082275390625, -0.0231781005859375, 0.0606689453125, 0.0005311965942382812, 0.031402587890625, 0.0090179443359375, 0.0227203369140625, 0.00197601318359375, -0.08648681640625, 0.0090789794921875, -0.04937744140625, 0.009246826171875, 0.0065460205078125, 0.007232666015625, 0.072021484375, 0.1033935546875, -0.0540771484375, -0.015625, 0.003620147705078125, -0.000438690185546875, 0.014312744140625, -0.029327392578125, -0.028228759765625, -0.01580810546875, -0.1275634765625, 0.0008792877197265625, -0.0037860870361328125, -0.058563232421875, 0.00007164478302001953, -0.05242919921875, -0.08685302734375, -0.05059814453125, 0.0262603759765625, -0.04376220703125, 0.0031070709228515625, 0.020843505859375, -0.039337158203125, -0.0004398822784423828, -0.01953125, -0.0367431640625, -0.11187744140625, -0.0288543701171875, 0.01458740234375, 0.08978271484375, -0.023590087890625, 0.020904541015625, -0.032073974609375, 0.08306884765625, 0.00001341104507446289, 0.045318603515625, -0.020782470703125, 0.0024623870849609375, -0.01081085205078125, -0.014923095703125, -0.0011186599731445312, -0.006877899169921875, 0.002971649169921875, 0.0169677734375, -0.047027587890625, -0.0026149749755859375, -0.002918243408203125, -0.01348114013671875, 0.06304931640625, -0.050323486328125, -0.035247802734375, -0.000017881393432617188, -0.0005660057067871094, -0.038604736328125, 0.01490020751953125, -0.0281829833984375, 0.029388427734375, -0.0143280029296875, 0.021453857421875, -0.033721923828125, -0.009765625, -0.0029277801513671875, 0.0709228515625, 0.0213165283203125, -0.00301361083984375, 0.0233001708984375, -0.00907135009765625, 0.03558349609375, 0.00968170166015625, 0.003704071044921875, 0.0078125, -0.03668212890625, 0.05059814453125, 0.02490234375, 0.022003173828125, -0.023712158203125, 0.033111572265625, 0.018341064453125, -0.00637054443359375, 0.0283966064453125, 0.036590576171875, -0.014068603515625, 0.005779266357421875, -0.033233642578125, 0.03082275390625, -0.0085296630859375, -0.0153350830078125, -0.0094451904296875, 0.0015716552734375, 0.0010547637939453125, -0.05615234375, 0.013702392578125, -0.091796875, 0.0677490234375, 0.0289154052734375, -0.016845703125, 0.054840087890625, 0.032073974609375, -0.0204010009765625, 0.0270538330078125, -0.03790283203125, 0.0543212890625, 0.018218994140625, 0.0025482177734375, 0.0231781005859375, 0.0210723876953125, -0.00977325439453125, 0.047515869140625, 0.0088653564453125, -0.03265380859375, -0.0623779296875, 0.0103912353515625, 0.041717529296875, -0.014495849609375, -0.003143310546875, 0.053497314453125, 0.035919189453125, -0.026275634765625, -0.048065185546875, 0.005558013916015625, -0.0087432861328125, -0.07025146484375, 0.032562255859375, 0.032012939453125, -0.0186920166015625, 0.019134521484375, 0.05816650390625, 0.006977081298828125, 0.036041259765625, -0.0118865966796875, 0.01129913330078125, 0.0286712646484375, 0.004253387451171875, 0.0106201171875, 0.01399993896484375, 0.0140838623046875, -0.0340576171875, 0.025726318359375, -0.006683349609375, -0.0116424560546875, -0.00836944580078125, -0.0169219970703125, 0.0195770263671875, 0.04022216796875, 0.0133056640625, 0.040374755859375, 0.018218994140625, 0.007511138916015625, -0.026885986328125, -0.0114593505859375, -0.00724029541015625, -0.0004143714904785156, 0.0399169921875, -0.00439453125, 0.007740020751953125, 0.022796630859375, 0.004642486572265625, -0.004619598388671875, 0.0276947021484375, -0.041229248046875, 0.01404571533203125, 0.0154876708984375, -0.0280303955078125, -0.03717041015625, 0.0033512115478515625, 0.00836944580078125, 0.0192108154296875, -0.041015625, -0.04827880859375, 0.028717041015625, -0.003025054931640625, 0.019622802734375, -0.0036640167236328125, -0.015838623046875, -0.0294189453125, 0.01215362548828125, 0.024993896484375, 0.0125732421875, -0.0094757080078125, -0.0467529296875, -0.037200927734375, -0.0192718505859375, 0.04364013671875, 0.0280914306640625, -0.004154205322265625, 0.00765228271484375, -0.03656005859375, -0.004398345947265625, -0.0020885467529296875, 0.0154876708984375, -0.00970458984375, 0.046661376953125, 0.004421234130859375, 0.0206451416015625, -0.01433563232421875, 0.007061004638671875, -0.00222015380859375, 0.01464080810546875, -0.0137176513671875, -0.033721923828125, -0.0305328369140625, 0.01020050048828125, -0.0094757080078125, -0.0244140625, -0.0181732177734375, -0.01092529296875, 0.0252532958984375, 0.04803466796875, 0.057708740234375, 0.001312255859375, 0.038604736328125, -0.03167724609375, -0.0026493072509765625, -0.01558685302734375, 0.01335906982421875, -0.072021484375, -0.009796142578125, 0.01276397705078125, -0.007167816162109375, -0.011383056640625, -0.0233306884765625, -0.0165252685546875, 0.0190277099609375, 0.01177978515625, 0.01425933837890625, -0.0162353515625, -0.01261138916015625, 0.033599853515625, 0.05718994140625, -0.0135040283203125, 0.038360595703125, 0.041595458984375, -0.00234222412109375, 0.01474761962890625, 0.04290771484375, -0.04547119140625, -0.01140594482421875, -0.004726409912109375, -0.017547607421875, -0.0187835693359375, -0.042388916015625, -0.00922393798828125, -0.029083251953125, 0.050811767578125, 0.002063751220703125, -0.079833984375, -0.01088714599609375, -0.01537322998046875, 0.022613525390625, -0.0195159912109375, -0.0005831718444824219, -0.01053619384765625, -0.016082763671875, 0.06805419921875, -0.006092071533203125, 0.006999969482421875, 0.051055908203125, -0.023040771484375, 0.0205535888671875, 0.01465606689453125, 0.049041748046875, -0.0031585693359375, -0.0914306640625, -0.0137939453125, 0.032562255859375, -0.01513671875, -0.0308837890625, 0.00626373291015625, -0.004894256591796875, -0.04510498046875, -0.058135986328125, 0.007843017578125, 0.016632080078125, -0.0177459716796875, 0.039520263671875, -0.00005441904067993164, 0.046966552734375, 0.02191162109375, 0.009490966796875, -0.0144805908203125, -0.018768310546875, 0.03887939453125, 0.0214385986328125, -0.0286712646484375, 0.0254364013671875, -0.019378662109375, -0.052093505859375, 0.00856781005859375, -0.01702880859375, -0.022247314453125, 0.0006284713745117188, -0.0149993896484375, 0.0212554931640625, -0.022552490234375, -0.00028824806213378906, 0.0285491943359375, -0.00021660327911376953, -0.005252838134765625, 0.0200958251953125, -0.0103607177734375, -0.04864501953125, -0.0374755859375, 0.021026611328125, -0.06597900390625, 0.016693115234375, 0.038665771484375, -0.037689208984375, 0.089111328125, -0.014190673828125, 0.006465911865234375, 0.009124755859375, 0.03851318359375, -0.0401611328125, 0.0110626220703125, 0.0015153884887695312, -0.0128936767578125, -0.041259765625, 0.01268768310546875, -0.005123138427734375, 0.00635528564453125, -0.005596160888671875, 0.0170135498046875, 0.0174407958984375, -0.01702880859375, 0.0178070068359375, -0.02264404296875, 0.08074951171875, 0.0819091796875, 0.0341796875, -0.0182037353515625, 0.0162811279296875, -0.0283050537109375, -0.005100250244140625, -0.0202789306640625, 0.006946563720703125, -0.03424072265625, 0.011383056640625, 0.042633056640625, -0.0002696514129638672, -0.01006317138671875, 0.035186767578125, -0.045654296875, -0.0168609619140625, 0.006961822509765625, 0.0127105712890625, -0.036407470703125, 0.001140594482421875, 0.004978179931640625, -0.021881103515625, -0.024658203125, -0.03680419921875, -0.008514404296875, 0.01020050048828125, -0.0275115966796875, 0.03509521484375, -0.0269927978515625, 0.01116180419921875, 0.0321044921875, -0.01171112060546875, 0.01220703125, 0.05035400390625, -0.05474853515625, -0.01038360595703125, 0.03900146484375, 0.044677734375, 0.03656005859375, 0.0037841796875, -0.044525146484375, -0.03704833984375, -0.004207611083984375, -0.056549072265625, -0.01036834716796875, 0.0044097900390625, 0.041900634765625, 0.03826904296875, 0.06524658203125, -0.06573486328125, -0.045928955078125, -0.0487060546875, 0.010498046875, 0.039581298828125, 0.02484130859375, -0.010772705078125, -0.01029205322265625, -0.041778564453125, -0.006633758544921875, -0.02191162109375, 0.009033203125, 0.01558685302734375, 0.037384033203125, -0.005336761474609375, 0.009124755859375, -0.0204620361328125, 0.0013751983642578125, -0.04296875, 0.041015625, 0.0013256072998046875, 0.050323486328125, -0.007511138916015625, 0.027099609375, -0.018768310546875, 0.0182952880859375, -0.0247650146484375, 0.0187225341796875, 0.01461029052734375, 0.0259246826171875, -0.007762908935546875, -0.0264129638671875, 0.02496337890625, -0.0190887451171875, 0.05279541015625, -0.00032329559326171875, 0.03326416015625, 0.0286865234375, -0.0200653076171875, -0.061737060546875, 0.0195465087890625, 0.0655517578125, -0.0218658447265625, 0.053070068359375, -0.00885009765625, 0.0114593505859375, 0.032257080078125, -0.02838134765625, 0.0276947021484375, -0.0164794921875, -0.046875, 0.00952911376953125, -0.0267791748046875, -0.052947998046875, -0.0092010498046875, 0.019378662109375, -0.0303802490234375, 0.032196044921875, 0.0083160400390625, -0.028472900390625, 0.024139404296875, 0.034271240234375, -0.00836944580078125, 0.0083160400390625, 0.0239105224609375, -0.01230621337890625, -0.019683837890625, -0.0197601318359375, 0.007415771484375, 0.034088134765625, 0.04864501953125, -0.0239410400390625, 0.018157958984375, 0.034820556640625, 0.06298828125, -0.00432586669921875, 0.02178955078125, 0.036224365234375, -0.004665374755859375, -0.0026226043701171875, 0.01140594482421875, -0.0286102294921875, -0.009033203125, 0.0265960693359375, 0.000059545040130615234, -0.004863739013671875, 0.0270843505859375, -0.0245208740234375, 0.007110595703125, 0.0080413818359375, -0.0015287399291992188, -0.0164642333984375, -0.05145263671875, -0.048614501953125, -0.010955810546875, 0.023681640625, 0.056549072265625, 0.0024318695068359375, 0.0271759033203125, 0.030517578125, -0.00042438507080078125, -0.0015745162963867188, -0.0292816162109375, -0.00455474853515625, 0.0189056396484375, 0.0148773193359375, -0.01343536376953125, 0.00760650634765625, -0.0005354881286621094, -0.011962890625, 0.0294952392578125, 0.018890380859375, 0.000980377197265625, -0.01025390625, 0.06317138671875, 0.10211181640625, 0.07366943359375, -0.00955963134765625, 0.02264404296875, 0.0821533203125, -0.0225830078125, 0.00490570068359375, -0.03045654296875, 0.01727294921875, -0.0208587646484375, -0.0305023193359375, 0.018463134765625, 0.00057220458984375, 0.00714874267578125, 0.03558349609375, 0.02056884765625, 0.0345458984375, 0.010498046875, -0.0601806640625, 0.021240234375, -0.0261993408203125, 0.048583984375, -0.0038433074951171875, 0.006504058837890625, 0.0128326416015625, 0.047821044921875, -0.041961669921875, 0.00743865966796875, -0.0017719268798828125, -0.0024318695068359375, 0.0157928466796875, 0.005954742431640625, 0.01305389404296875, 0.0021839141845703125, 0.0238037109375, -0.02630615234375, -0.0033130645751953125, 0.024383544921875, -0.0207061767578125, -0.00862884521484375, -0.00991058349609375, 0.023956298828125, -0.03228759765625, -0.0498046875, 0.0009641647338867188, -0.033050537109375, -0.01320648193359375, -0.0209808349609375, 0.0256195068359375, 0.0335693359375, -0.0264739990234375, -0.07562255859375, 0.0457763671875, -0.024078369140625, -0.0182342529296875, -0.0200958251953125, 0.0013723373413085938, 0.0220947265625, -0.005832672119140625, -0.007740020751953125, -0.035675048828125, -0.04766845703125, 0.005218505859375, 0.00640869140625, 0.03924560546875, 0.0182342529296875, -0.0160675048828125, -0.0036602020263671875, 0.00479888916015625, -0.00128936767578125, 0.017364501953125, -0.026763916015625, 0.00676727294921875, -0.006862640380859375, 0.02734375, -0.0169677734375, -0.059051513671875, -0.0026226043701171875, 0.0186920166015625, -0.023162841796875, -0.0165557861328125, -0.01303863525390625, -0.017791748046875, 0.0615234375, 0.03424072265625, 0.0088348388671875, -0.01018524169921875, -0.02996826171875, -0.03717041015625, 0.0188751220703125, -0.047271728515625, 0.00543975830078125, -0.0709228515625, -0.00949859619140625, -0.006900787353515625, 0.01105499267578125, 0.0158538818359375, -0.01313018798828125, -0.013946533203125, -0.01617431640625, 0.0286407470703125, 0.01361083984375, -0.0711669921875, 0.003238677978515625, 0.07623291015625, -0.04193115234375, 0.01094818115234375, -0.00396728515625, 0.00975799560546875, 0.060302734375, 0.0227508544921875, -0.0338134765625, -0.0406494140625, 0.033447265625, 0.03857421875, 0.0032806396484375, 0.016876220703125, 0.005817413330078125, 0.00902557373046875, 0.01241302490234375, -0.01221466064453125, -0.004245758056640625, -0.0260162353515625, -0.01983642578125, 0.01470947265625, -0.0396728515625, 0.038970947265625, -0.0233612060546875, -0.04449462890625, -0.042938232421875, 0.021820068359375, -0.01450347900390625, 0.0027370452880859375, 0.022613525390625, -0.0243682861328125, 0.0112152099609375, 0.029022216796875, -0.0200347900390625, -0.0223236083984375, -0.0100555419921875, 0.0199737548828125, 0.004230499267578125, -0.00406646728515625 ]
abce1cf511f35b4233fd48cca2774c200ae9ce6c
Wordpress Stackexchange Q: Taxonomy + post_type I'm quite lost with taxonomies and custom post type. * *I have a taxonomy -> auteur *I have custom_post-type -> citation (quote in french). I just want list all citations (quote) from an auteur (auteur = taxonomy) with a permalink structure like this : www.myblogname.com/citation/auteur_name/ or www.myblogname.com/auteur_name/citation/ or www.myblogname.com/auteur/auteur_name/citation/ ( in fact the easiest way). what are the steps to do this job (and what is the template page to modify). A: Don't know how did you set the post type and the taxonomy, but by default I think you're supposed to see all quotes from an author through myblogname.com/the-author-name. If you want to place static words such auteur or citation in the link, then this is related to how you set the options for creating the post type and/or the taxonomy. (register_post_type and register_taxonomy). Note: you can't use author (in english) because this slug already exists in WordPress (See Reserved terms). About theme files, when you view a quotes list from an author (a taxonomy in this case), your theme uses taxonomy.php file, you can create this file if doesn't exists, see Template Hierarchy
Q: Taxonomy + post_type I'm quite lost with taxonomies and custom post type. * *I have a taxonomy -> auteur *I have custom_post-type -> citation (quote in french). I just want list all citations (quote) from an auteur (auteur = taxonomy) with a permalink structure like this : www.myblogname.com/citation/auteur_name/ or www.myblogname.com/auteur_name/citation/ or www.myblogname.com/auteur/auteur_name/citation/ ( in fact the easiest way). what are the steps to do this job (and what is the template page to modify). A: Don't know how did you set the post type and the taxonomy, but by default I think you're supposed to see all quotes from an author through myblogname.com/the-author-name. If you want to place static words such auteur or citation in the link, then this is related to how you set the options for creating the post type and/or the taxonomy. (register_post_type and register_taxonomy). Note: you can't use author (in english) because this slug already exists in WordPress (See Reserved terms). About theme files, when you view a quotes list from an author (a taxonomy in this case), your theme uses taxonomy.php file, you can create this file if doesn't exists, see Template Hierarchy A: You can try this approach: $args = array( 'hierarchical' => true, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'citation/auteur' ) ); register_taxonomy('auteur','citation',$args); When you do that you can list and filter your citations by auteurs. Just type in the address bar http://yoursite.com/citation/auteur/auter_name. But remember that the "autor_name" have to be a slug. A: You can use the query below for this issue. // WP_Query arguments $args = array ( 'post_type' => 'my_custom_post_type', 'slug' => 'citation/auteur', 'post_status' => 'publish', 'author_name' => 'author_name', 'order' => 'DESC', ); // The Query $my_query = new WP_Query( $args ); // The Loop if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata(); Please replace your post type, author name & others with default options.
wordpress
{ "language": "en", "length": 335, "provenance": "stackexchange_00019.jsonl.gz:427037", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76911" }
[ 0.0186767578125, -0.00434112548828125, -0.0036907196044921875, -0.01561737060546875, 0.00441741943359375, -0.01019287109375, 0.0226287841796875, -0.006500244140625, -0.03363037109375, 0.01849365234375, -0.0225677490234375, 0.0020809173583984375, -0.00823974609375, -0.021942138671875, 0.0096435546875, -0.03045654296875, 0.0250091552734375, 0.0177154541015625, 0.057220458984375, 0.0030765533447265625, 0.021026611328125, 0.0133514404296875, 0.020599365234375, -0.02606201171875, 0.04412841796875, -0.0204315185546875, 0.072021484375, -0.046661376953125, 0.049774169921875, -0.01421356201171875, 0.029296875, -0.04425048828125, 0.0223846435546875, 0.0160980224609375, -0.025390625, 0.020050048828125, -0.0150909423828125, 0.0181884765625, -0.0046539306640625, 0.03143310546875, 0.0146942138671875, -0.00970458984375, -0.033111572265625, 0.052490234375, -0.026123046875, -0.06195068359375, 0.0107879638671875, -0.0484619140625, 0.004150390625, 0.0267181396484375, 0.0174560546875, 0.008697509765625, 0.0303955078125, -0.0079803466796875, -0.00685882568359375, 0.0006933212280273438, 0.00408172607421875, -0.0296783447265625, 0.037567138671875, -0.055816650390625, -0.0205535888671875, -0.028106689453125, 0.052398681640625, 0.043212890625, -0.00943756103515625, 0.00043702125549316406, 0.026336669921875, 0.03289794921875, -0.00209808349609375, -0.0211181640625, -0.0012903213500976562, -0.0109100341796875, -0.006671905517578125, 0.0088653564453125, -0.0263671875, -0.054107666015625, 0.0175628662109375, -0.06097412109375, 0.00775909423828125, 0.032440185546875, 0.025390625, -0.04986572265625, -0.01678466796875, 0.0226593017578125, 0.00206756591796875, 0.0309906005859375, 0.004840850830078125, -0.02215576171875, -0.047149658203125, -0.0164794921875, -0.025115966796875, -0.03289794921875, -0.041778564453125, 0.00957489013671875, 0.0147857666015625, -0.015899658203125, -0.01204681396484375, 0.0555419921875, -0.045501708984375, 0.04742431640625, -0.052764892578125, 0.019561767578125, 0.0091705322265625, -0.058380126953125, 0.01678466796875, 0.08221435546875, 0.0214385986328125, -0.0046844482421875, 0.01065826416015625, -0.0088958740234375, 0.01134490966796875, 0.0037670135498046875, -0.023284912109375, -0.03411865234375, -0.0211639404296875, 0.0288848876953125, -0.031463623046875, -0.017669677734375, 0.0032958984375, -0.0263214111328125, 0.0113067626953125, 0.0299530029296875, 0.0141143798828125, 0.0017652511596679688, 0.0019006729125976562, 0.0279693603515625, 0.0108184814453125, -0.059814453125, -0.01136016845703125, 0.035308837890625, -0.02777099609375, -0.0037384033203125, 0.05084228515625, 0.0242156982421875, -0.00971221923828125, -0.03759765625, 0.0246429443359375, -0.0300140380859375, -0.006595611572265625, 0.0206451416015625, 0.00691986083984375, -0.0288238525390625, -0.006984710693359375, 0.007305145263671875, -0.02880859375, 0.024322509765625, 0.01119232177734375, 0.023040771484375, 0.012054443359375, -0.0180816650390625, -0.0024566650390625, -0.047271728515625, 0.07135009765625, -0.0221710205078125, -0.06597900390625, -0.0673828125, 0.0032176971435546875, -0.05517578125, -0.0201416015625, -0.0712890625, 0.00678253173828125, -0.02117919921875, -0.0301361083984375, -0.0169830322265625, -0.028106689453125, 0.01236724853515625, 0.01324462890625, 0.0029144287109375, 0.0225067138671875, -0.0258941650390625, 0.0025348663330078125, -0.0302581787109375, 0.031768798828125, 0.0094451904296875, 0.003864288330078125, 0.0278472900390625, -0.047149658203125, -0.00701904296875, 0.0347900390625, 0.02679443359375, 0.0126190185546875, -0.0189056396484375, 0.005523681640625, 0.0240325927734375, -0.033294677734375, -0.0187225341796875, 0.04669189453125, 0.0653076171875, -0.0175628662109375, 0.033203125, 0.0262298583984375, -0.0034027099609375, -0.027801513671875, 0.045501708984375, 0.0036792755126953125, -0.040313720703125, 0.016082763671875, 0.010009765625, -0.003269195556640625, -0.0263824462890625, -0.0171356201171875, 0.006378173828125, -0.00971221923828125, 0.00553131103515625, -0.07183837890625, 0.027435302734375, -0.032012939453125, 0.038360595703125, -0.019866943359375, 0.0212860107421875, 0.0207672119140625, -0.01258087158203125, -0.0161590576171875, -0.07110595703125, -0.034820556640625, -0.007709503173828125, 0.01035308837890625, -0.03363037109375, -0.00788116455078125, -0.0226287841796875, -0.007904052734375, 0.00872039794921875, -0.003627777099609375, 0.0611572265625, 0.041595458984375, -0.000031113624572753906, -0.0125885009765625, -0.0220184326171875, 0.01174163818359375, 0.0406494140625, -0.073486328125, -0.0014886856079101562, 0.058746337890625, 0.039947509765625, -0.033721923828125, 0.0106658935546875, 0.0201568603515625, 0.0019989013671875, -0.005039215087890625, 0.029327392578125, 0.034820556640625, -0.03314208984375, -0.01328277587890625, -0.0064697265625, -0.0017795562744140625, -0.0198211669921875, 0.0259552001953125, -0.0259857177734375, 0.01702880859375, 0.01708984375, 0.0341796875, 0.0107269287109375, 0.0245513916015625, -0.0323486328125, 0.0369873046875, 0.026031494140625, -0.0161590576171875, -0.018157958984375, 0.00844573974609375, 0.0190582275390625, -0.0001323223114013672, -0.00933074951171875, -0.00970458984375, -0.0079193115234375, 0.028228759765625, 0.041046142578125, 0.033538818359375, 0.0182342529296875, -0.055023193359375, 0.0226287841796875, 0.0098876953125, 0.0271759033203125, 0.002582550048828125, 0.0191192626953125, 0.01355743408203125, -0.000007033348083496094, 0.01091766357421875, -0.0084686279296875, -0.02606201171875, -0.00835418701171875, -0.0045166015625, 0.007236480712890625, -0.01311492919921875, -0.0019683837890625, -0.0068511962890625, -0.07073974609375, 0.01194000244140625, 0.0202178955078125, -0.038482666015625, -0.034088134765625, -0.006282806396484375, 0.03619384765625, -0.030242919921875, 0.00827789306640625, 0.0065765380859375, -0.014739990234375, 0.00646209716796875, -0.0638427734375, 0.0562744140625, -0.054107666015625, 0.04473876953125, 0.06689453125, -0.0084228515625, 0.0180511474609375, 0.00757598876953125, -0.0181427001953125, 0.0148468017578125, 0.03173828125, 0.0028247833251953125, -0.059112548828125, 0.0134735107421875, -0.007221221923828125, 0.004238128662109375, 0.0011920928955078125, -0.0147247314453125, -0.0287933349609375, -0.031341552734375, 0.006526947021484375, -0.056610107421875, -0.0185394287109375, 0.07940673828125, -0.0259552001953125, 0.046234130859375, -0.0255889892578125, -0.01526641845703125, -0.06341552734375, -0.003940582275390625, -0.006694793701171875, 0.053680419921875, -0.061614990234375, -0.0633544921875, -0.06597900390625, -0.09747314453125, -0.04119873046875, 0.008941650390625, 0.0088348388671875, 0.02069091796875, 0.0330810546875, 0.0193328857421875, -0.0206451416015625, 0.033294677734375, 0.051483154296875, -0.027252197265625, -0.01457977294921875, 0.03326416015625, -0.017822265625, 0.00266265869140625, 0.00206756591796875, 0.03155517578125, 0.040863037109375, -0.04412841796875, -0.01342010498046875, 0.0053253173828125, 0.028228759765625, 0.01181793212890625, -0.01678466796875, 0.00351715087890625, 0.025543212890625, -0.002391815185546875, -0.0230712890625, -0.0369873046875, 0.01654052734375, -0.00984954833984375, 0.05267333984375, -0.0246429443359375, -0.006267547607421875, -0.0005788803100585938, 0.06402587890625, -0.006999969482421875, -0.00556182861328125, 0.0175933837890625, -0.04248046875, 0.0303955078125, -0.0031948089599609375, 0.00958251953125, -0.0079498291015625, 0.021759033203125, -0.019744873046875, 0.0313720703125, 0.0099334716796875, 0.00006330013275146484, -0.0099945068359375, 0.0211944580078125, -0.0245208740234375, -0.047576904296875, 0.03375244140625, -0.050537109375, -0.039947509765625, -0.006927490234375, 0.005970001220703125, 0.0158538818359375, 0.05145263671875, 0.0275421142578125, -0.0116424560546875, 0.0122528076171875, -0.00971221923828125, -0.0175933837890625, -0.0010509490966796875, -0.04638671875, 0.0026340484619140625, -0.0277252197265625, -0.0211639404296875, 0.004817962646484375, -0.04742431640625, -0.01505279541015625, 0.032958984375, -0.024322509765625, -0.0120391845703125, 0.041534423828125, -0.024444580078125, 0.0177459716796875, 0.04010009765625, -0.0020904541015625, 0.0231475830078125, -0.055328369140625, -0.019866943359375, -0.062042236328125, -0.0101318359375, -0.0203704833984375, 0.03155517578125, -0.020751953125, 0.0302886962890625, -0.02886962890625, 0.0413818359375, 0.004901885986328125, 0.02679443359375, -0.0030765533447265625, 0.009429931640625, -0.018096923828125, -0.0322265625, -0.0123138427734375, -0.042388916015625, 0.0012493133544921875, 0.02252197265625, -0.01299285888671875, 0.059661865234375, -0.006397247314453125, 0.0229949951171875, 0.029510498046875, -0.04608154296875, -0.08038330078125, -0.035491943359375, -0.0262908935546875, 0.000008046627044677734, 0.0234527587890625, -0.05462646484375, -0.04327392578125, -0.08868408203125, 0.03631591796875, -0.0221099853515625, -0.013519287109375, 0.01451873779296875, 0.07659912109375, 0.0115966796875, -0.01003265380859375, -0.03521728515625, 0.0257720947265625, 0.0430908203125, -0.0059814453125, 0.05419921875, 0.0282135009765625, -0.038665771484375, 0.0732421875, 0.02679443359375, 0.007160186767578125, -0.0391845703125, 0.067138671875, -0.02008056640625, -0.0147247314453125, 0.03277587890625, -0.053619384765625, 0.04742431640625, 0.043731689453125, 0.003421783447265625, -0.0169525146484375, 0.0028228759765625, 0.03924560546875, -0.028839111328125, 0.0208587646484375, -0.022491455078125, -0.03460693359375, 0.0178680419921875, -0.01348114013671875, 0.00214385986328125, -0.006244659423828125, 0.01306915283203125, -0.00901031494140625, -0.0279388427734375, 0.011810302734375, 0.05950927734375, 0.0194854736328125, 0.0102081298828125, 0.0250701904296875, 0.05816650390625, 0.00225067138671875, 0.0023975372314453125, -0.01044464111328125, 0.023284912109375, 0.010498046875, -0.03021240234375, 0.00336456298828125, -0.0088653564453125, 0.0072784423828125, 0.0051422119140625, 0.0284576416015625, 0.03173828125, 0.041412353515625, 0.0010213851928710938, -0.00408172607421875, -0.00815582275390625, 0.01338958740234375, -0.03302001953125, 0.01337432861328125, -0.0005598068237304688, -0.00009399652481079102, -0.043975830078125, 0.0826416015625, 0.00707244873046875, -0.00376129150390625, -0.00423431396484375, 0.04962158203125, 0.02313232421875, 0.035064697265625, 0.0178985595703125, -0.04046630859375, 0.005779266357421875, 0.006549835205078125, -0.022186279296875, -0.00878143310546875, 0.033203125, -0.00601959228515625, 0.026763916015625, -0.022003173828125, -0.048736572265625, 0.033538818359375, -0.05718994140625, -0.005901336669921875, 0.00457763671875, -0.045623779296875, -0.0220947265625, -0.0289459228515625, -0.0128173828125, 0.018829345703125, -0.01300811767578125, -0.01192474365234375, 0.01506805419921875, -0.02197265625, 0.0282440185546875, -0.0006732940673828125, 0.00965118408203125, -0.00853729248046875, -0.0107574462890625, -0.021453857421875, -0.01190948486328125, 0.029083251953125, -0.06488037109375, -0.03167724609375, -0.007076263427734375, -0.00783538818359375, 0.040985107421875, -0.007068634033203125, 0.0164947509765625, 0.00736236572265625, -0.035308837890625, 0.0143585205078125, 0.0014333724975585938, 0.046966552734375, 0.01194000244140625, -0.028717041015625, 0.0162353515625, -0.0148162841796875, 0.0160980224609375, -0.0026035308837890625, -0.068603515625, -0.00890350341796875, -0.03558349609375, 0.00576019287109375, 0.020751953125, 0.007678985595703125, -0.0350341796875, -0.0218353271484375, -0.020538330078125, 0.01477813720703125, -0.01446533203125, -0.003086090087890625, 0.027740478515625, -0.004093170166015625, 0.005390167236328125, 0.0168304443359375, 0.0269775390625, -0.0037670135498046875, -0.032135009765625, -0.054412841796875, -0.036773681640625, 0.0192718505859375, 0.01947021484375, 0.002986907958984375, 0.0743408203125, 0.09796142578125, 0.02716064453125, 0.01678466796875, -0.0220947265625, -0.0061492919921875, -0.00621795654296875, 0.0068359375, 0.0005497932434082031, -0.013580322265625, 0.036285400390625, -0.00859832763671875, 0.027130126953125, 0.0001437664031982422, -0.038055419921875, 0.033538818359375, -0.00905609130859375, 0.00794219970703125, 0.040374755859375, -0.01131439208984375, 0.01218414306640625, 0.01824951171875, 0.0235748291015625, 0.0270843505859375, 0.0219879150390625, 0.02703857421875, -0.0273284912109375, 0.0132293701171875, -0.012298583984375, -0.0131683349609375, 0.029815673828125, 0.00386810302734375, -0.0029239654541015625, 0.00896453857421875, -0.0283660888671875, -0.05987548828125, 0.034759521484375, 0.00792694091796875, -0.046417236328125, -0.0161590576171875, 0.01293182373046875, 0.034912109375, -0.01047515869140625, 0.0219879150390625, -0.0281829833984375, -0.032684326171875, 0.0247039794921875, -0.0296173095703125, -0.0133056640625, 0.0073699951171875, 0.004405975341796875, -0.005390167236328125, 0.01922607421875, 0.0281524658203125, 0.00439453125, -0.0256805419921875, -0.01555633544921875, 0.0088043212890625, -0.005847930908203125, -0.014312744140625, 0.0304412841796875, -0.04827880859375, 0.01702880859375, 0.033172607421875, 0.055755615234375, -0.04986572265625, 0.055450439453125, -0.0139923095703125, 0.01409149169921875, 0.0130767822265625, 0.032073974609375, -0.00833892822265625, -0.00493621826171875, 0.0214385986328125, 0.0037593841552734375, 0.00933074951171875, -0.0217437744140625, -0.023101806640625, 0.0411376953125, 0.0215606689453125, 0.0184173583984375, 0.02386474609375, -0.0097503662109375, -0.012451171875, -0.00440216064453125, 0.1097412109375, -0.0301971435546875, -0.0167694091796875, 0.031585693359375, 0.0064849853515625, -0.0187835693359375, 0.0416259765625, 0.052459716796875, -0.04534912109375, -0.049041748046875, 0.06121826171875, -0.0399169921875, -0.043853759765625, 0.0244140625, -0.058380126953125, 0.1063232421875, -0.0197601318359375, 0.0288543701171875, 0.0115509033203125, 0.050994873046875, -0.007091522216796875, 0.03326416015625, -0.0127105712890625, 0.040771484375, 0.0294189453125, 0.01259613037109375, -0.036224365234375, -0.0355224609375, -0.004833221435546875, 0.07562255859375, 0.10784912109375, 0.0159759521484375, -0.0236358642578125, 0.0325927734375, 0.11376953125, 0.0140228271484375, -0.03515625, 0.042510986328125, -0.017181396484375, 0.0161590576171875, -0.0036678314208984375, -0.0260009765625, 0.0390625, -0.046295166015625, -0.044525146484375, -0.0025310516357421875, 0.015869140625, 0.034454345703125, 0.00928497314453125, -0.04156494140625, -0.0202484130859375, -0.002643585205078125, 0.017608642578125, -0.0284576416015625, 0.02288818359375, 0.015228271484375, 0.057464599609375, -0.059783935546875, -0.00807952880859375, -0.03155517578125, 0.06439208984375, 0.0191802978515625, -0.00907135009765625, -0.00121307373046875, -0.011993408203125, 0.046234130859375, -0.038665771484375, -0.0330810546875, -0.007598876953125, 0.033935546875, -0.0007810592651367188, 0.0135650634765625, 0.029022216796875, -0.0262603759765625, -0.030670166015625, 0.05938720703125, 0.022735595703125, -0.014556884765625, -0.07635498046875, 0.0096893310546875, 0.0012502670288085938, 0.00998687744140625, 0.051849365234375, 0.0186309814453125, 0.03350830078125, 0.07122802734375, -0.0182952880859375, -0.0134124755859375, -0.01116180419921875, 0.039581298828125, -0.010467529296875, -0.0189666748046875, -0.016143798828125, -0.018890380859375, -0.07867431640625, 0.038970947265625, 0.04150390625, 0.08758544921875, 0.0014677047729492188, 0.084228515625, -0.009063720703125, -0.042755126953125, 0.0043792724609375, 0.0141143798828125, 0.0132598876953125, -0.01052093505859375, -0.0011663436889648438, -0.00818634033203125, 0.000013649463653564453, 0.01479339599609375, 0.0306854248046875, -0.01189422607421875, 0.0084228515625, 0.0173797607421875, 0.00824737548828125, -0.0097198486328125, 0.01543426513671875, -0.00963592529296875, -0.008941650390625, -0.0282135009765625, -0.0184326171875, -0.00017535686492919922, -0.0187225341796875, 0.0150146484375, 0.00237274169921875, 0.0230255126953125, -0.0287628173828125, 0.0253448486328125, 0.0011205673217773438, -0.017578125, 0.035186767578125, -0.01297760009765625, 0.0279083251953125, 0.0094146728515625, -0.095458984375, -0.0023651123046875, -0.03948974609375, -0.0482177734375, 0.051116943359375, 0.050079345703125, -0.0264739990234375, 0.00785064697265625, -0.00853729248046875, 0.0294342041015625, -0.0301055908203125, -0.0173797607421875, 0.00830078125, 0.04217529296875, 0.02459716796875, 0.033233642578125, -0.03985595703125, -0.0124053955078125, 0.01012420654296875, 0.006256103515625, -0.0006246566772460938, 0.049285888671875, 0.0032405853271484375, 0.00989532470703125, -0.060333251953125, 0.032257080078125, -0.08056640625, -0.0740966796875, 0.07550048828125, 0.004657745361328125, -0.02386474609375, 0.009918212890625, -0.0792236328125, 0.035675048828125, 0.057403564453125, -0.01508331298828125, 0.03924560546875, 0.048248291015625, 0.0027313232421875, -0.048187255859375, 0.042236328125, -0.0269317626953125, -0.055450439453125, -0.049652099609375, -0.01468658447265625, 0.014495849609375, 0.036285400390625, 0.0003352165222167969, 0.036163330078125, 0.01904296875, -0.01345062255859375, 0.01361846923828125, -0.0305328369140625, 0.03472900390625, 0.033966064453125, 0.01348114013671875, -0.03179931640625, 0.0185699462890625, -0.01195526123046875, 0.0260009765625, -0.0135650634765625, 0.046173095703125, 0.008026123046875, -0.06536865234375, 0.01177215576171875, -0.03955078125, 0.0241851806640625, -0.01303863525390625, -0.011077880859375, -0.032684326171875, 0.02789306640625, 0.005184173583984375, 0.02410888671875, -0.024322509765625, -0.00737762451171875, 0.0088653564453125, 0.006153106689453125, 0.0066986083984375, -0.0321044921875, -0.07073974609375, -0.0118408203125, 0.0521240234375, 0.015716552734375, -0.0455322265625, 0.033538818359375, -0.0160369873046875, 0.01523590087890625, 0.002506256103515625, 0.00970458984375, 0.01500701904296875, 0.037139892578125, -0.03662109375, 0.0161895751953125, -0.0118865966796875, -0.02301025390625, -0.0081024169921875, 0.0269622802734375, 0.049102783203125, -0.0290985107421875, 0.01326751708984375, 0.0240936279296875, 0.046142578125, 0.07073974609375, -0.0035419464111328125, -0.01244354248046875, 0.0175628662109375, 0.00910186767578125, -0.045318603515625, -0.06915283203125, 0.0152740478515625, -0.0523681640625, 0.003143310546875, -0.032470703125, -0.00711822509765625, -0.016754150390625, -0.046173095703125, -0.04071044921875, 0.09564208984375, -0.0093231201171875, -0.01372528076171875, -0.036285400390625, -0.016021728515625, -0.0145111083984375, 0.0220184326171875, -0.0016183853149414062, -0.0313720703125, -0.03143310546875, 0.036529541015625, -0.006664276123046875, 0.0152435302734375, 0.02764892578125, -0.0084381103515625, -0.0251617431640625, -0.0073394775390625, -0.0100860595703125, -0.017181396484375, 0.000583648681640625, -0.0203094482421875, 0.0202484130859375, 0.0303802490234375, -0.03680419921875, 0.003704071044921875, 0.007537841796875, 0.01678466796875, -0.0273895263671875, -0.0171356201171875, -0.0275115966796875, -0.023162841796875, 0.0625, 0.0170135498046875, 0.0176239013671875, -0.0034637451171875, 0.0114898681640625, -0.0145111083984375, -0.01177978515625, -0.024383544921875, 0.0026702880859375, -0.047088623046875, -0.022491455078125, 0.006427764892578125, 0.002105712890625, -0.005580902099609375, -0.007080078125, -0.032135009765625, -0.007694244384765625, -0.020660400390625, -0.007274627685546875, -0.03759765625, 0.04547119140625, -0.009307861328125, -0.01403045654296875, -0.01250457763671875, -0.017913818359375, -0.01432037353515625, -0.0193023681640625, -0.0233154296875, -0.03131103515625, -0.032806396484375, 0.03863525390625, 0.02374267578125, 0.0096282958984375, -0.0017557144165039062, 0.0175018310546875, 0.01319122314453125, -0.02142333984375, 0.01445770263671875, -0.0096282958984375, -0.004791259765625, -0.03179931640625, 0.06195068359375, 0.002655029296875, 0.0965576171875, -0.020416259765625, 0.006885528564453125, -0.02667236328125, 0.04388427734375, -0.04833984375, 0.01727294921875, -0.0196533203125, -0.01189422607421875, 0.0182952880859375, -0.0208587646484375, -0.0107269287109375, -0.02825927734375, 0.00862884521484375, 0.0302276611328125, -0.02783203125, 0.02099609375 ]
217bffb8cd4224fc142e77310c013e0bc3ebad40
Wordpress Stackexchange Q: How to track hits of a single media file? I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, individually. I already use WP SlimStat to track page view, and I am quite happy with it. However, I have not found a possibility to track those media files. How can I do this? A: You could use Google Analytics for WordPress. Here's an excerpt from their FAQ on how you could set it to track certain file types: How can I track downloads? Check the box for "Track outbound clicks & downloads", after that, make sure the file types you want to track are listed in the box of extensions to track as downloads. You’ll find this input field under "Advanced".
Q: How to track hits of a single media file? I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, individually. I already use WP SlimStat to track page view, and I am quite happy with it. However, I have not found a possibility to track those media files. How can I do this? A: You could use Google Analytics for WordPress. Here's an excerpt from their FAQ on how you could set it to track certain file types: How can I track downloads? Check the box for "Track outbound clicks & downloads", after that, make sure the file types you want to track are listed in the box of extensions to track as downloads. You’ll find this input field under "Advanced". A: Using Google Analytics will only collect clicks on your web pages, it will not count hits from external sites, RSS feeds, apps, etc. For this you'll need to utilise your server log files. AWStats is good for this but it is overkill for a single file - you'd need to log in, set the timeframe to a large span, then browse for your file... it would be much easier if the WP files admin could check the server logs for definitive all-time hits for each file, but I am yet to find a plugin for this. A: If you need to track single file, and you have the URL of the file, and you have the access.log file set up right, then you can just use grep Linux command. grep "/downloads/my-file-name.media" /var/log/access.log To get the number of requests grep -c "/downloads/my-file-name.media" /var/log/access.log or grep "/downloads/my-file-name.media" /var/log/access.log | wc -l
wordpress
{ "language": "en", "length": 297, "provenance": "stackexchange_00019.jsonl.gz:427038", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76912" }
[ 0.04083251953125, -0.039398193359375, -0.00240325927734375, -0.0252838134765625, -0.0301055908203125, -0.016571044921875, 0.034698486328125, 0.005100250244140625, -0.007568359375, 0.0184326171875, -0.0011968612670898438, 0.01397705078125, 0.0011663436889648438, -0.033660888671875, 0.01316070556640625, -0.0160675048828125, 0.048553466796875, -0.050262451171875, 0.05010986328125, 0.01549530029296875, 0.0152130126953125, 0.0357666015625, 0.070556640625, -0.0013332366943359375, -0.0168914794921875, 0.0479736328125, 0.028076171875, -0.0260162353515625, -0.0218658447265625, -0.031494140625, -0.0085296630859375, 0.0260772705078125, 0.0312042236328125, 0.02850341796875, -0.0665283203125, 0.02508544921875, -0.0186767578125, 0.0255584716796875, 0.0003845691680908203, 0.0168304443359375, 0.01082611083984375, 0.00138092041015625, 0.021392822265625, -0.017242431640625, 0.0123748779296875, -0.049468994140625, 0.030120849609375, -0.06744384765625, 0.0208892822265625, -0.0016918182373046875, -0.0006899833679199219, 0.034271240234375, 0.00907135009765625, -0.00988006591796875, -0.0072021484375, -0.0214996337890625, 0.033782958984375, 0.0209197998046875, 0.02020263671875, -0.058502197265625, -0.04931640625, 0.03485107421875, 0.0394287109375, 0.025390625, -0.0237274169921875, -0.023193359375, -0.0357666015625, 0.018280029296875, -0.0216522216796875, -0.040863037109375, 0.0219879150390625, -0.0159454345703125, -0.010772705078125, -0.0119781494140625, 0.03485107421875, -0.009613037109375, 0.0010690689086914062, -0.0028934478759765625, -0.006103515625, 0.05230712890625, 0.04364013671875, 0.0003504753112792969, -0.025970458984375, -0.0030059814453125, 0.03106689453125, 0.034454345703125, 0.0145416259765625, -0.0322265625, -0.009521484375, 0.0172271728515625, -0.01763916015625, 0.01519012451171875, 0.0244903564453125, 0.007808685302734375, -0.045806884765625, 0.0160980224609375, -0.0021228790283203125, 0.035552978515625, -0.018218994140625, -0.031005859375, -0.0279998779296875, -0.00469207763671875, -0.08477783203125, 0.003997802734375, 0.043243408203125, 0.057037353515625, 0.0015020370483398438, -0.014678955078125, 0.04962158203125, -0.00713348388671875, 0.00228118896484375, 0.0609130859375, 0.029815673828125, 0.023468017578125, -0.0689697265625, -0.004489898681640625, -0.007701873779296875, 0.0128173828125, -0.004970550537109375, 0.0283203125, -0.0012302398681640625, 0.006740570068359375, -0.0008358955383300781, 0.015625, -0.0015935897827148438, -0.0140838623046875, -0.01407623291015625, 0.0013380050659179688, -0.01389312744140625, 0.03546142578125, 0.0023860931396484375, -0.003932952880859375, -0.0162506103515625, 0.022186279296875, -0.0162353515625, -0.004657745361328125, -0.0013704299926757812, 0.0194549560546875, -0.0138397216796875, 0.02777099609375, 0.0117645263671875, -0.05303955078125, -0.039764404296875, 0.0181732177734375, 0.031097412109375, -0.018768310546875, 0.0330810546875, 0.056121826171875, 0.011627197265625, -0.0230255126953125, 0.05303955078125, 0.0256805419921875, 0.0283050537109375, -0.01078033447265625, -0.0241241455078125, -0.01261138916015625, -0.026123046875, -0.001842498779296875, 0.002513885498046875, -0.0171661376953125, 0.030731201171875, -0.00010967254638671875, -0.00677490234375, 0.003997802734375, -0.003265380859375, -0.0071563720703125, -0.00937652587890625, 0.00018966197967529297, 0.0281524658203125, -0.007228851318359375, -0.01108551025390625, -0.0304718017578125, 0.0124053955078125, -0.006587982177734375, -0.0223846435546875, 0.024383544921875, 0.0181427001953125, 0.023590087890625, 0.0207977294921875, 0.035614013671875, -0.0002238750457763672, -0.0278167724609375, 0.08465576171875, -0.0201263427734375, -0.0321044921875, 0.04998779296875, -0.014739990234375, 0.02374267578125, 0.0203399658203125, 0.0026092529296875, 0.0006761550903320312, 0.041595458984375, -0.0213470458984375, -0.0007719993591308594, 0.0020160675048828125, -0.0020694732666015625, -0.005413055419921875, 0.0088653564453125, -0.0038127899169921875, -0.00604248046875, 0.0280914306640625, 0.009979248046875, 0.0092926025390625, -0.0070343017578125, -0.015167236328125, 0.0065460205078125, -0.004840850830078125, 0.016357421875, -0.06719970703125, 0.01505279541015625, 0.04766845703125, 0.01384735107421875, -0.034271240234375, -0.0023670196533203125, 0.0244293212890625, 0.005077362060546875, 0.01326751708984375, -0.00835418701171875, -0.0211181640625, -0.007549285888671875, -0.033203125, 0.0056610107421875, -0.03466796875, 0.037841796875, 0.000553131103515625, 0.0120849609375, -0.0306396484375, 0.00571441650390625, 0.02471923828125, -0.01323699951171875, 0.051025390625, 0.04425048828125, -0.01212310791015625, -0.0050048828125, -0.001834869384765625, -0.0005707740783691406, -0.0085296630859375, -0.0838623046875, 0.007663726806640625, 0.053924560546875, 0.019775390625, -0.0213470458984375, 0.003276824951171875, 0.05035400390625, 0.0152130126953125, -0.021514892578125, 0.00830078125, 0.0163116455078125, 0.018280029296875, 0.01352691650390625, 0.0092315673828125, -0.038360595703125, 0.0174407958984375, -0.088623046875, 0.0209808349609375, 0.0112457275390625, 0.0052947998046875, -0.00859832763671875, -0.0482177734375, 0.051544189453125, 0.0038928985595703125, 0.052490234375, -0.0080718994140625, 0.026336669921875, -0.006000518798828125, 0.01123809814453125, 0.0238037109375, 0.03387451171875, 0.0009212493896484375, -0.001682281494140625, -0.00666046142578125, 0.01132965087890625, 0.0168304443359375, 0.06878662109375, 0.0239715576171875, 0.00476837158203125, 0.004413604736328125, -0.034393310546875, -0.0005030632019042969, 0.0203857421875, -0.0094146728515625, -0.034820556640625, -0.04974365234375, -0.005596160888671875, 0.03094482421875, -0.00600433349609375, 0.004375457763671875, 0.0017862319946289062, -0.0255279541015625, 0.008941650390625, 0.01480865478515625, 0.056854248046875, 0.0122222900390625, 0.0070648193359375, 0.01079559326171875, 0.021392822265625, 0.05718994140625, -0.053192138671875, 0.0321044921875, -0.037811279296875, 0.10345458984375, 0.066650390625, -0.030059814453125, 0.019989013671875, -0.0046539306640625, -0.00978851318359375, 0.0019197463989257812, 0.0198516845703125, -0.004741668701171875, -0.037750244140625, -0.038970947265625, -0.01085662841796875, 0.00308990478515625, -0.019134521484375, 0.003753662109375, -0.0188751220703125, -0.02801513671875, -0.015777587890625, -0.127197265625, -0.0804443359375, 0.0260467529296875, -0.11700439453125, 0.04364013671875, -0.023162841796875, -0.06805419921875, -0.03472900390625, 0.038238525390625, 0.01922607421875, -0.010833740234375, 0.01554107666015625, 0.037384033203125, 0.0092010498046875, 0.0006494522094726562, -0.0162353515625, 0.007312774658203125, -0.01451873779296875, 0.01227569580078125, 0.041595458984375, 0.01322174072265625, -0.04486083984375, 0.0120697021484375, 0.029205322265625, -0.006916046142578125, -0.0018415451049804688, 0.037811279296875, -0.0195159912109375, -0.0209197998046875, 0.0299224853515625, -0.037750244140625, 0.0084381103515625, -0.002166748046875, -0.03436279296875, -0.0044708251953125, -0.027923583984375, 0.0155487060546875, 0.012908935546875, -0.01471710205078125, -0.0027942657470703125, 0.033172607421875, -0.044036865234375, 0.0114288330078125, 0.00872039794921875, 0.0007314682006835938, -0.046539306640625, -0.002048492431640625, -0.040130615234375, -0.031768798828125, 0.0160980224609375, 0.047760009765625, 0.0296783447265625, -0.046051025390625, 0.03936767578125, 0.01885986328125, 0.01458740234375, 0.024169921875, 0.00568389892578125, 0.01255035400390625, 0.0033321380615234375, 0.0233306884765625, 0.00513458251953125, 0.02728271484375, -0.0177154541015625, 0.06182861328125, -0.042388916015625, 0.005847930908203125, 0.024200439453125, 0.00878143310546875, 0.0328369140625, -0.024017333984375, -0.0180816650390625, -0.0228271484375, 0.0618896484375, -0.031585693359375, -0.0144195556640625, 0.01123809814453125, 0.02947998046875, -0.04278564453125, -0.0623779296875, -0.0286712646484375, -0.01898193359375, -0.013031005859375, 0.007472991943359375, 0.01177215576171875, -0.0102386474609375, -0.0233917236328125, -0.0149383544921875, -0.01317596435546875, -0.027252197265625, 0.037017822265625, -0.006031036376953125, 0.02880859375, 0.0022449493408203125, 0.01544952392578125, -0.00010830163955688477, -0.02508544921875, -0.0193023681640625, -0.01190948486328125, -0.005130767822265625, -0.01363372802734375, 0.03125, 0.01242828369140625, -0.02349853515625, 0.004962921142578125, 0.025238037109375, 0.01134490966796875, -0.00881195068359375, 0.0016889572143554688, -0.005634307861328125, -0.006214141845703125, 0.0189056396484375, 0.00916290283203125, -0.0179595947265625, -0.032318115234375, -0.0740966796875, -0.042449951171875, 0.00017690658569335938, -0.024688720703125, 0.052490234375, -0.046173095703125, 0.0185089111328125, -0.0355224609375, -0.039093017578125, -0.025909423828125, 0.022125244140625, -0.01027679443359375, 0.0098419189453125, -0.051422119140625, -0.04248046875, 0.04925537109375, 0.014862060546875, 0.005023956298828125, -0.006008148193359375, 0.06549072265625, 0.005802154541015625, -0.0307159423828125, -0.06048583984375, -0.0029888153076171875, 0.045623779296875, 0.007610321044921875, 0.0224609375, -0.00295257568359375, -0.038726806640625, 0.055511474609375, 0.0026760101318359375, -0.01027679443359375, -0.022186279296875, 0.056549072265625, 0.0007224082946777344, 0.006664276123046875, 0.0082550048828125, -0.0169219970703125, 0.0122833251953125, 0.01039886474609375, -0.01654052734375, -0.0222015380859375, -0.0095977783203125, 0.0369873046875, -0.0261688232421875, 0.06622314453125, 0.00643157958984375, -0.032012939453125, -0.01000213623046875, -0.031951904296875, 0.0797119140625, 0.0210723876953125, 0.0030059814453125, 0.06915283203125, 0.1199951171875, -0.02423095703125, 0.0120697021484375, 0.00801849365234375, -0.0004432201385498047, -0.0025234222412109375, 0.051605224609375, -0.028106689453125, -0.006183624267578125, -0.005733489990234375, 0.0084075927734375, -0.001903533935546875, -0.0814208984375, 0.0672607421875, -0.036224365234375, -0.09466552734375, 0.03509521484375, -0.00437164306640625, 0.050567626953125, 0.05975341796875, -0.054779052734375, -0.0220794677734375, 0.0044403076171875, 0.01491546630859375, -0.06500244140625, 0.0306854248046875, -0.019256591796875, 0.005157470703125, 0.022369384765625, 0.02374267578125, -0.03924560546875, 0.01593017578125, 0.01282501220703125, 0.02392578125, 0.040679931640625, 0.0252685546875, 0.03076171875, -0.033477783203125, -0.0159149169921875, 0.007015228271484375, -0.01134490966796875, -0.027496337890625, 0.03155517578125, 0.00792694091796875, 0.044921875, 0.0083770751953125, -0.0439453125, 0.01210784912109375, -0.06982421875, -0.0028743743896484375, -0.0435791015625, -0.0274200439453125, 0.01532745361328125, 0.005710601806640625, 0.012481689453125, 0.0131378173828125, 0.01396942138671875, 0.001628875732421875, -0.030670166015625, 0.01129913330078125, 0.0276947021484375, 0.01129150390625, -0.01520538330078125, 0.0163726806640625, 0.00844573974609375, 0.008697509765625, -0.0021190643310546875, -0.01007080078125, -0.0946044921875, -0.02783203125, -0.0007724761962890625, 0.00960540771484375, 0.01885986328125, -0.036346435546875, 0.01031494140625, -0.042755126953125, 0.042449951171875, -0.06903076171875, 0.01119232177734375, 0.051605224609375, 0.03851318359375, 0.01140594482421875, -0.03216552734375, -0.0174102783203125, -0.03350830078125, 0.035888671875, 0.0186767578125, -0.0110321044921875, -0.006320953369140625, -0.00811004638671875, 0.019287109375, -0.00594329833984375, 0.00052642822265625, -0.0078125, -0.0014438629150390625, -0.01332855224609375, 0.0023326873779296875, -0.0005888938903808594, -0.005451202392578125, 0.0244903564453125, 0.0092010498046875, 0.00247955322265625, -0.0209503173828125, -0.0192413330078125, -0.0210113525390625, 0.010101318359375, 0.0096282958984375, -0.0187530517578125, -0.0297698974609375, 0.0247039794921875, 0.003833770751953125, 0.052215576171875, 0.0011034011840820312, -0.0136566162109375, -0.022735595703125, 0.005962371826171875, -0.01381683349609375, 0.02783203125, 0.002899169921875, -0.0202789306640625, 0.0171661376953125, 0.012664794921875, 0.034149169921875, -0.015655517578125, -0.03717041015625, 0.00946044921875, 0.0173187255859375, 0.00039887428283691406, 0.00928497314453125, 0.00530242919921875, 0.0093994140625, 0.01020050048828125, -0.026519775390625, -0.0004107952117919922, 0.0026760101318359375, -0.01593017578125, 0.003955841064453125, -0.02679443359375, 0.0232696533203125, 0.04248046875, 0.00919342041015625, -0.032745361328125, 0.0300750732421875, -0.00319671630859375, -0.005382537841796875, 0.008453369140625, -0.0107879638671875, 0.01049041748046875, -0.00922393798828125, 0.01091766357421875, -0.03521728515625, -0.023651123046875, 0.044158935546875, -0.01519012451171875, -0.0017414093017578125, -0.06170654296875, 0.051666259765625, 0.0352783203125, -0.0142974853515625, 0.0016794204711914062, -0.00885772705078125, 0.0019207000732421875, 0.0255279541015625, 0.03240966796875, -0.0153656005859375, -0.072509765625, -0.0789794921875, 0.07855224609375, -0.09130859375, -0.0034332275390625, 0.00466156005859375, 0.00092315673828125, 0.00809478759765625, -0.01416015625, 0.03741455078125, -0.048980712890625, 0.0305328369140625, -0.00817108154296875, 0.02423095703125, 0.0435791015625, 0.03607177734375, -0.0022335052490234375, -0.0360107421875, -0.004398345947265625, 0.054473876953125, -0.0026302337646484375, -0.0006771087646484375, 0.0220794677734375, 0.0091705322265625, -0.0294036865234375, 0.009124755859375, -0.0523681640625, 0.011688232421875, -0.0064849853515625, -0.0178680419921875, 0.0249176025390625, -0.05950927734375, 0.0242156982421875, 0.0204010009765625, 0.06414794921875, 0.04144287109375, 0.00569915771484375, 0.0289459228515625, -0.0264129638671875, -0.0011396408081054688, 0.044647216796875, 0.018646240234375, -0.01165008544921875, 0.02899169921875, -0.01000213623046875, 0.080322265625, -0.042388916015625, 0.00036716461181640625, 0.03997802734375, 0.0367431640625, -0.016693115234375, 0.0295257568359375, -0.0350341796875, 0.04522705078125, -0.018402099609375, 0.05218505859375, -0.054107666015625, -0.017333984375, 0.00830841064453125, 0.056671142578125, 0.0869140625, 0.018585205078125, -0.0243988037109375, -0.0156707763671875, 0.050384521484375, 0.0065765380859375, -0.01776123046875, 0.046417236328125, -0.0018596649169921875, -0.030242919921875, 0.01861572265625, 0.0008721351623535156, 0.02532958984375, -0.0112762451171875, -0.016571044921875, 0.0210418701171875, 0.000579833984375, -0.01019287109375, -0.006526947021484375, 0.035736083984375, -0.00664520263671875, -0.01325225830078125, -0.00753021240234375, 0.061126708984375, 0.042694091796875, 0.044158935546875, 0.0662841796875, -0.0186614990234375, 0.055084228515625, -0.044281005859375, 0.07586669921875, -0.0143890380859375, 0.00939178466796875, -0.00014960765838623047, 0.0025997161865234375, 0.006793975830078125, -0.0210418701171875, -0.005825042724609375, 0.0204010009765625, -0.01788330078125, 0.0309600830078125, -0.022857666015625, 0.0162353515625, -0.046112060546875, 0.0263824462890625, -0.004947662353515625, 0.026885986328125, -0.03179931640625, -0.0263519287109375, 0.0013265609741210938, -0.001735687255859375, 0.0021991729736328125, -0.00399017333984375, 0.0234527587890625, 0.01486968994140625, 0.0261993408203125, -0.00785064697265625, -0.042205810546875, 0.021026611328125, 0.034271240234375, 0.018707275390625, 0.0279541015625, 0.0015583038330078125, -0.07843017578125, -0.002727508544921875, -0.00489044189453125, 0.0129241943359375, -0.00824737548828125, -0.03350830078125, 0.046783447265625, 0.00481414794921875, 0.0209503173828125, -0.0034027099609375, 0.0115814208984375, 0.0118865966796875, 0.00609588623046875, -0.030670166015625, -0.0282440185546875, 0.037994384765625, 0.032470703125, 0.05548095703125, 0.027313232421875, 0.049102783203125, 0.020294189453125, -0.0186920166015625, 0.0160064697265625, 0.058990478515625, -0.0238800048828125, -0.02557373046875, -0.0303955078125, -0.0134735107421875, 0.04443359375, 0.0023326873779296875, 0.005939483642578125, -0.016693115234375, 0.06927490234375, -0.0114288330078125, 0.0242919921875, 0.00405120849609375, -0.039276123046875, 0.00002187490463256836, -0.028167724609375, 0.057891845703125, 0.0196380615234375, -0.1119384765625, -0.01983642578125, -0.0060882568359375, -0.054443359375, 0.031982421875, 0.03778076171875, -0.050933837890625, 0.02178955078125, -0.0111236572265625, 0.009735107421875, 0.0112457275390625, -0.03973388671875, 0.0109710693359375, -0.0200042724609375, 0.0124053955078125, -0.007068634033203125, -0.024658203125, -0.00525665283203125, 0.029449462890625, 0.00952911376953125, 0.00957489013671875, 0.060577392578125, 0.00286865234375, -0.001590728759765625, 0.00850677490234375, 0.021728515625, -0.0019378662109375, 0.003795623779296875, -0.01502227783203125, 0.00543212890625, 0.0196380615234375, -0.0106353759765625, 0.0019464492797851562, -0.006954193115234375, 0.035308837890625, -0.054656982421875, -0.0135498046875, -0.01227569580078125, 0.018768310546875, -0.0006837844848632812, 0.031768798828125, -0.028839111328125, -0.0129241943359375, -0.0011034011840820312, -0.0138092041015625, 0.01470184326171875, -0.01276397705078125, -0.0219268798828125, 0.038665771484375, 0.0178985595703125, -0.0145263671875, 0.0147247314453125, -0.028900146484375, 0.048126220703125, 0.038421630859375, -0.031768798828125, -0.047088623046875, -0.0162811279296875, -0.01456451416015625, -0.031341552734375, 0.0009121894836425781, 0.037109375, -0.0194549560546875, -0.029052734375, 0.0438232421875, 0.031707763671875, 0.0303192138671875, -0.044189453125, 0.003238677978515625, 0.038482666015625, -0.0007700920104980469, 0.03607177734375, 0.00806427001953125, 0.0013065338134765625, -0.0384521484375, -0.015655517578125, 0.0098876953125, -0.01361846923828125, 0.01372528076171875, -0.00827789306640625, 0.003658294677734375, 0.0215606689453125, 0.00571441650390625, -0.027099609375, 0.0250244140625, -0.03045654296875, -0.005985260009765625, 0.00418853759765625, 0.036895751953125, -0.020538330078125, 0.0248260498046875, -0.035675048828125, -0.0841064453125, -0.0272064208984375, 0.08636474609375, -0.052703857421875, 0.019012451171875, 0.0313720703125, -0.0273590087890625, 0.0036449432373046875, 0.0185394287109375, 0.031494140625, 0.06939697265625, -0.023956298828125, -0.017822265625, -0.01438140869140625, -0.0007376670837402344, 0.0119476318359375, -0.049896240234375, 0.004566192626953125, -0.05072021484375, -0.02978515625, -0.041046142578125, 0.00949859619140625, 0.010284423828125, -0.053741455078125, -0.1026611328125, -0.005428314208984375, -0.02423095703125, -0.057373046875, -0.0997314453125, 0.036468505859375, 0.0245208740234375, -0.05010986328125, -0.05548095703125, 0.0257568359375, -0.01910400390625, 0.042022705078125, 0.0196533203125, -0.055938720703125, 0.053070068359375, 0.01432037353515625, -0.054046630859375, 0.017578125, 0.01035308837890625, -0.028228759765625, 0.03057861328125, -0.021453857421875, 0.0504150390625, 0.0218353271484375, -0.05517578125, 0.05328369140625, 0.008056640625, 0.02056884765625, -0.0074920654296875, 0.005977630615234375, -0.06573486328125, -0.01525115966796875, 0.045867919921875, 0.1064453125, 0.02545166015625, -0.0443115234375, -0.01241302490234375, -0.03662109375, -0.028045654296875, -0.031890869140625, 0.007137298583984375, -0.062103271484375, -0.006988525390625, 0.00202178955078125, -0.007843017578125, -0.0199737548828125, 0.029632568359375, -0.0272979736328125, -0.0001291036605834961, 0.0239715576171875, -0.00240325927734375, -0.03826904296875, -0.0083465576171875, 0.0438232421875, -0.0169525146484375, 0.0180511474609375, 0.00860595703125, 0.007114410400390625, 0.029296875, 0.043701171875, 0.055572509765625, 0.08905029296875, -0.070556640625, -0.008636474609375, 0.039825439453125, -0.04034423828125, -0.034454345703125, -0.0078887939453125, 0.0086669921875, 0.0226287841796875, 0.009765625, 0.040191650390625, -0.0024967193603515625, -0.004634857177734375, -0.0147857666015625, -0.0014448165893554688, 0.01055145263671875, -0.018218994140625, -0.01499176025390625, 0.039215087890625, -0.02288818359375, -0.021331787109375, 0.0047149658203125, -0.03204345703125, 0.016815185546875, -0.00690460205078125, -0.018096923828125, -0.04669189453125, 0.02703857421875, -0.033782958984375, -0.02203369140625, 0.0307159423828125 ]
a8ef5b3b9271a1bb3e28dc4c99b75da313e59001
Wordpress Stackexchange Q: Does dbDelta delete columns as well? I created a table using the dbDelta function and then removed a few columns and added a few. The new columns did get created but the old columns did not get deleted from the table. Is there a different way I am supposed to delete columns from the table ? A: As far as I know, dbDelta() is primarily used to add tables to the database. It can also add or alter columns. To delete columns, you should use $wpdb->query(): global $wpdb; $table = $wpdb->prefix . 'table_name'; $wpdb->query( "ALTER TABLE $table DROP COLUMN column_name" );
Q: Does dbDelta delete columns as well? I created a table using the dbDelta function and then removed a few columns and added a few. The new columns did get created but the old columns did not get deleted from the table. Is there a different way I am supposed to delete columns from the table ? A: As far as I know, dbDelta() is primarily used to add tables to the database. It can also add or alter columns. To delete columns, you should use $wpdb->query(): global $wpdb; $table = $wpdb->prefix . 'table_name'; $wpdb->query( "ALTER TABLE $table DROP COLUMN column_name" ); A: No, dbDelta can add or alter columns, but not drop them. The code for the dbDelta function is in wp-admin/includes/upgrade.php. You can examine what it is capable of there.
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:427045", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76926" }
[ -0.014007568359375, 0.0238189697265625, -0.03643798828125, 0.0031566619873046875, 0.0081634521484375, -0.0260009765625, -0.0072784423828125, -0.0266876220703125, 0.06427001953125, 0.02728271484375, -0.035858154296875, -0.0469970703125, 0.04791259765625, -0.0175323486328125, -0.040374755859375, -0.022705078125, 0.048065185546875, -0.048126220703125, 0.0276031494140625, 0.0128326416015625, 0.008087158203125, 0.034088134765625, 0.051513671875, 0.037017822265625, 0.0048980712890625, 0.0180816650390625, 0.0107421875, 0.00567626953125, 0.00913238525390625, -0.016448974609375, 0.022430419921875, 0.0009098052978515625, -0.037200927734375, 0.038238525390625, 0.0302581787109375, -0.0110931396484375, 0.01409149169921875, 0.0267333984375, 0.050628662109375, 0.01262664794921875, 0.02630615234375, -0.002170562744140625, 0.043701171875, -0.00589752197265625, 0.0145721435546875, -0.0261077880859375, 0.0278472900390625, -0.040374755859375, 0.0129241943359375, 0.01180267333984375, 0.0157623291015625, 0.0589599609375, 0.0206298828125, -0.0433349609375, -0.00032258033752441406, -0.0037288665771484375, -0.0004856586456298828, -0.0110626220703125, 0.0211029052734375, 0.04779052734375, -0.0169830322265625, 0.006557464599609375, 0.00458526611328125, -0.055816650390625, 0.00939178466796875, 0.00792694091796875, -0.0183258056640625, 0.0204620361328125, -0.018524169921875, -0.0010013580322265625, 0.01183319091796875, -0.045013427734375, -0.0035572052001953125, -0.0255126953125, -0.01406097412109375, 0.027984619140625, 0.0147857666015625, -0.0012531280517578125, -0.00852203369140625, 0.01910400390625, 0.008270263671875, -0.0269012451171875, -0.0035953521728515625, -0.044586181640625, 0.023651123046875, -0.0257110595703125, 0.00021839141845703125, -0.0027904510498046875, -0.0262908935546875, 0.0193023681640625, -0.033050537109375, -0.05279541015625, -0.020263671875, 0.036895751953125, 0.0213623046875, -0.0196990966796875, -0.00814056396484375, 0.02777099609375, 0.0036067962646484375, 0.0087738037109375, -0.003047943115234375, -0.04071044921875, -0.01081085205078125, -0.032470703125, 0.00775909423828125, -0.0171966552734375, -0.044891357421875, -0.0750732421875, -0.0010232925415039062, 0.057373046875, -0.0185699462890625, -0.00771331787109375, -0.00142669677734375, -0.012939453125, -0.0255584716796875, 0.0136566162109375, -0.01274871826171875, -0.01508331298828125, -0.002567291259765625, -0.01384735107421875, -0.04608154296875, -0.013763427734375, -0.04913330078125, -0.01067352294921875, 0.0125885009765625, -0.029449462890625, 0.00089263916015625, 0.062469482421875, -0.0280303955078125, -0.0177764892578125, -0.045257568359375, 0.032440185546875, 0.09466552734375, 0.037261962890625, 0.02423095703125, -0.006671905517578125, 0.032928466796875, -0.03790283203125, 0.01049041748046875, 0.007289886474609375, 0.0215606689453125, -0.0355224609375, -0.0259857177734375, 0.01297760009765625, -0.0290374755859375, -0.0125579833984375, 0.03662109375, 0.0182647705078125, -0.032623291015625, -0.0283966064453125, -0.0232696533203125, 0.03509521484375, 0.0264434814453125, -0.0007200241088867188, -0.006748199462890625, -0.0159149169921875, 0.01178741455078125, -0.0226593017578125, -0.00811004638671875, -0.02264404296875, -0.007671356201171875, -0.033294677734375, 0.0248565673828125, -0.052276611328125, -0.091796875, 0.056884765625, -0.07135009765625, -0.02886962890625, 0.031097412109375, -0.02459716796875, 0.00916290283203125, -0.025238037109375, 0.03375244140625, 0.0242462158203125, 0.01433563232421875, 0.051605224609375, -0.0263214111328125, -0.03277587890625, 0.05682373046875, -0.01157379150390625, -0.02178955078125, -0.0210113525390625, 0.00656890869140625, 0.016876220703125, -0.0718994140625, 0.048187255859375, 0.0034351348876953125, 0.079833984375, 0.030303955078125, 0.00968170166015625, 0.0330810546875, -0.002490997314453125, -0.04345703125, 0.0229949951171875, 0.0079498291015625, -0.056793212890625, -0.0305938720703125, -0.0372314453125, -0.01837158203125, 0.0248870849609375, -0.0216064453125, 0.0311126708984375, -0.012847900390625, 0.0110015869140625, -0.07916259765625, 0.032745361328125, -0.03411865234375, 0.056121826171875, -0.0293426513671875, 0.046112060546875, 0.0284423828125, 0.033935546875, -0.032806396484375, -0.0097808837890625, -0.00766754150390625, -0.023223876953125, -0.0018472671508789062, -0.004665374755859375, -0.001407623291015625, 0.0008563995361328125, 0.0045928955078125, -0.0112152099609375, -0.0345458984375, -0.002147674560546875, 0.018463134765625, -0.04901123046875, 0.004703521728515625, -0.041534423828125, 0.031005859375, -0.022491455078125, 0.0113983154296875, 0.042083740234375, -0.00354766845703125, 0.025115966796875, -0.018707275390625, -0.024993896484375, -0.0311279296875, -0.0855712890625, 0.0149078369140625, 0.05950927734375, 0.00850677490234375, -0.01165771484375, -0.058746337890625, -0.0196075439453125, -0.033355712890625, -0.002101898193359375, 0.00820159912109375, 0.00029468536376953125, 0.0269927978515625, 0.058380126953125, 0.0004277229309082031, -0.0260162353515625, 0.00070953369140625, -0.01125335693359375, 0.014892578125, 0.0005173683166503906, -0.038116455078125, -0.01055908203125, -0.01209259033203125, -0.0016927719116210938, -0.005870819091796875, -0.0251312255859375, 0.01641845703125, -0.0205841064453125, 0.057769775390625, -0.03302001953125, 0.042205810546875, 0.0211334228515625, 0.0029144287109375, -0.02728271484375, 0.01033782958984375, -0.0169830322265625, 0.00921630859375, 0.0175933837890625, -0.06341552734375, 0.052825927734375, -0.05218505859375, -0.0001996755599975586, 0.033233642578125, 0.0164031982421875, 0.0086212158203125, 0.05255126953125, 0.007556915283203125, -0.0233001708984375, 0.0199127197265625, 0.0205841064453125, -0.01560211181640625, -0.033294677734375, -0.0443115234375, -0.00952911376953125, 0.0079345703125, 0.0263519287109375, -0.018798828125, 0.005481719970703125, -0.02191162109375, 0.0008554458618164062, 0.0274810791015625, 0.030242919921875, -0.0247802734375, 0.0174407958984375, -0.00321197509765625, 0.028045654296875, -0.007762908935546875, -0.0170745849609375, 0.00904083251953125, 0.048187255859375, 0.033843994140625, -0.0213775634765625, -0.007312774658203125, 0.024658203125, -0.0226287841796875, 0.038360595703125, 0.045257568359375, 0.06573486328125, 0.005832672119140625, -0.035491943359375, -0.018951416015625, 0.053375244140625, -0.061798095703125, -0.058990478515625, 0.0012340545654296875, 0.0265960693359375, -0.0355224609375, -0.0309906005859375, -0.0005254745483398438, 0.02947998046875, -0.0343017578125, -0.0146484375, 0.00701904296875, 0.0007104873657226562, 0.0279693603515625, 0.0030879974365234375, -0.0208282470703125, -0.0208587646484375, 0.0008106231689453125, 0.00551605224609375, -0.0029354095458984375, 0.03631591796875, -0.03375244140625, -0.043548583984375, -0.033111572265625, -0.0843505859375, 0.0008654594421386719, 0.004955291748046875, 0.055816650390625, 0.017242431640625, -0.0283966064453125, 0.0216217041015625, 0.055145263671875, 0.055389404296875, -0.10052490234375, -0.01611328125, 0.013824462890625, 0.0623779296875, 0.05792236328125, -0.00795745849609375, -0.0328369140625, 0.0260009765625, -0.0040283203125, -0.03912353515625, 0.0028324127197265625, 0.0105133056640625, -0.001506805419921875, -0.06475830078125, -0.0201263427734375, 0.009246826171875, -0.05364990234375, 0.0251617431640625, 0.0906982421875, 0.07733154296875, -0.00350189208984375, 0.0496826171875, -0.000995635986328125, 0.006809234619140625, 0.03826904296875, -0.050445556640625, 0.02557373046875, -0.039276123046875, -0.04803466796875, -0.016021728515625, -0.0026950836181640625, 0.0186614990234375, -0.041259765625, -0.01522064208984375, -0.036346435546875, 0.0206146240234375, -0.0087127685546875, -0.0137939453125, 0.017730712890625, 0.004665374755859375, 0.03302001953125, 0.052764892578125, 0.01904296875, -0.0249176025390625, -0.0086212158203125, 0.018829345703125, -0.043670654296875, -0.027679443359375, 0.0023250579833984375, -0.0023632049560546875, -0.038299560546875, 0.0190277099609375, 0.00879669189453125, -0.0208587646484375, -0.01363372802734375, 0.0198516845703125, -0.0295562744140625, -0.01474761962890625, 0.04632568359375, -0.0240936279296875, 0.026397705078125, 0.034332275390625, -0.0130462646484375, 0.02154541015625, -0.03436279296875, -0.019378662109375, -0.055572509765625, -0.0178070068359375, -0.0027332305908203125, 0.033966064453125, -0.0018301010131835938, 0.021728515625, -0.0256500244140625, 0.029998779296875, 0.0244903564453125, 0.0024280548095703125, -0.00934600830078125, -0.029266357421875, -0.0238494873046875, 0.031097412109375, 0.01666259765625, -0.01050567626953125, -0.0215911865234375, -0.0592041015625, 0.042388916015625, 0.0411376953125, -0.0179901123046875, 0.0625, -0.050628662109375, 0.033355712890625, 0.0207672119140625, -0.01549530029296875, -0.01177978515625, 0.02178955078125, -0.030242919921875, 0.025848388671875, -0.0033817291259765625, 0.0014944076538085938, 0.028564453125, 0.034759521484375, 0.0031280517578125, 0.0017614364624023438, 0.08563232421875, 0.0169677734375, -0.0251922607421875, -0.06787109375, 0.006633758544921875, 0.030364990234375, -0.0023345947265625, 0.025909423828125, 0.00531768798828125, -0.0173797607421875, 0.06573486328125, 0.0080718994140625, -0.014556884765625, -0.0284271240234375, 0.046875, -0.0006818771362304688, 0.0139617919921875, -0.0304718017578125, -0.030029296875, 0.0430908203125, 0.00955963134765625, 0.0010585784912109375, -0.006649017333984375, 0.00948333740234375, 0.0399169921875, 0.01471710205078125, -0.0179901123046875, -0.05279541015625, -0.048065185546875, 0.0222930908203125, -0.0185699462890625, 0.034332275390625, 0.019012451171875, -0.00983428955078125, 0.032928466796875, 0.01099395751953125, 0.0254974365234375, -0.01549530029296875, -0.006793975830078125, -0.044677734375, 0.049224853515625, -0.033966064453125, 0.0078277587890625, 0.00696563720703125, -0.0267333984375, 0.0858154296875, 0.01959228515625, -0.058135986328125, 0.035614013671875, -0.0302581787109375, 0.0030460357666015625, 0.0061187744140625, -0.00016355514526367188, 0.0157623291015625, 0.0169525146484375, 0.01459503173828125, 0.0024261474609375, -0.033660888671875, 0.028564453125, -0.0177764892578125, -0.003570556640625, 0.0229034423828125, -0.0248870849609375, 0.0231475830078125, -0.015045166015625, 0.0018310546875, -0.00921630859375, -0.00689697265625, 0.060455322265625, 0.0477294921875, 0.05059814453125, 0.0025577545166015625, -0.027618408203125, -0.01163482666015625, 0.0249176025390625, -0.047698974609375, -0.03363037109375, 0.0007152557373046875, 0.002689361572265625, 0.0411376953125, -0.01036834716796875, -0.0271453857421875, 0.0291748046875, -0.0343017578125, -0.01153564453125, 0.03729248046875, 0.0082550048828125, -0.060455322265625, -0.0255279541015625, 0.01358795166015625, 0.0164947509765625, -0.0167236328125, 0.0158233642578125, -0.0145416259765625, -0.021209716796875, 0.031951904296875, -0.047210693359375, 0.038177490234375, -0.02398681640625, -0.03363037109375, 0.032257080078125, -0.041748046875, -0.040191650390625, -0.00018966197967529297, 0.023651123046875, -0.020263671875, 0.0032672882080078125, 0.00820159912109375, -0.00861358642578125, 0.06158447265625, -0.0100250244140625, -0.04510498046875, 0.01412200927734375, 0.004993438720703125, 0.064453125, 0.040374755859375, 0.05059814453125, -0.05841064453125, -0.029052734375, -0.044525146484375, -0.031829833984375, -0.01331329345703125, 0.0190582275390625, 0.024810791015625, 0.01238250732421875, -0.0056304931640625, 0.01078033447265625, 0.0177001953125, -0.01611328125, 0.038543701171875, 0.0262451171875, -0.0027618408203125, -0.0149993896484375, 0.050933837890625, -0.0250091552734375, 0.0291290283203125, 0.0225067138671875, 0.028656005859375, 0.0117950439453125, -0.03277587890625, 0.031768798828125, 0.00628662109375, -0.034942626953125, -0.0206298828125, -0.05908203125, -0.06866455078125, 0.00893402099609375, -0.020233154296875, 0.0235137939453125, -0.0163421630859375, -0.017791748046875, -0.0159454345703125, 0.043853759765625, -0.0280303955078125, 0.049530029296875, 0.0012140274047851562, -0.0131072998046875, 0.0232391357421875, -0.015625, -0.04534912109375, 0.020751953125, -0.0020618438720703125, 0.02581787109375, 0.041839599609375, -0.0099334716796875, 0.0494384765625, 0.054473876953125, -0.00334930419921875, 0.034912109375, 0.016693115234375, 0.009002685546875, 0.0016508102416992188, -0.059051513671875, 0.0012073516845703125, 0.059112548828125, 0.04107666015625, -0.01030731201171875, 0.0176544189453125, 0.0419921875, -0.00435638427734375, 0.00902557373046875, 0.061798095703125, 0.084228515625, -0.0980224609375, 0.0101776123046875, 0.0191192626953125, -0.0035839080810546875, 0.0291748046875, -0.01313018798828125, -0.0010671615600585938, 0.01495361328125, -0.0341796875, 0.038909912109375, -0.04986572265625, -0.024871826171875, 0.048248291015625, -0.005596160888671875, 0.0166168212890625, -0.0242156982421875, 0.005161285400390625, 0.0220794677734375, -0.01003265380859375, 0.0015239715576171875, 0.038604736328125, -0.005107879638671875, 0.032379150390625, -0.0165863037109375, 0.00292205810546875, -0.00864410400390625, 0.032073974609375, 0.0180511474609375, -0.0236968994140625, -0.01041412353515625, 0.017791748046875, 0.003734588623046875, 0.032440185546875, -0.01049041748046875, 0.0012483596801757812, 0.016265869140625, 0.00007808208465576172, -0.05389404296875, -0.0254974365234375, 0.03741455078125, 0.02691650390625, -0.0310516357421875, 0.03839111328125, -0.017974853515625, -0.033721923828125, 0.007503509521484375, -0.0025959014892578125, 0.002288818359375, -0.009796142578125, -0.0157318115234375, 0.01322174072265625, 0.010833740234375, 0.01534271240234375, -0.007659912109375, 0.00734710693359375, -0.032012939453125, 0.0135955810546875, -0.01332855224609375, -0.0242767333984375, 0.010589599609375, 0.005352020263671875, -0.06640625, 0.061798095703125, 0.0221405029296875, 0.0092010498046875, -0.002674102783203125, 0.0226593017578125, -0.01505279541015625, -0.0025310516357421875, -0.0260009765625, 0.04541015625, 0.0027618408203125, 0.0297393798828125, -0.00878143310546875, 0.0246734619140625, 0.021514892578125, -0.01085662841796875, 0.020172119140625, -0.0249786376953125, 0.06768798828125, -0.0179901123046875, 0.06854248046875, 0.03125, -0.0154571533203125, -0.046112060546875, -0.037811279296875, 0.04266357421875, 0.048248291015625, -0.0555419921875, 0.01322174072265625, 0.0148162841796875, -0.0316162109375, -0.01187896728515625, 0.004974365234375, 0.01535797119140625, -0.0175628662109375, -0.01064300537109375, 0.0281524658203125, -0.03192138671875, -0.024017333984375, -0.032012939453125, 0.01242828369140625, 0.0280914306640625, 0.051544189453125, -0.029693603515625, -0.0450439453125, -0.01360321044921875, 0.041259765625, 0.033843994140625, 0.071044921875, 0.041015625, 0.0345458984375, 0.05072021484375, -0.01910400390625, 0.0400390625, 0.0118255615234375, -0.046051025390625, 0.054595947265625, 0.045013427734375, 0.0121612548828125, -0.022674560546875, 0.031982421875, 0.0166168212890625, 0.046173095703125, -0.050567626953125, -0.0190582275390625, 0.0081787109375, 0.006687164306640625, 0.00015604496002197266, -0.01171112060546875, 0.0195770263671875, 0.005832672119140625, 0.023468017578125, -0.0202789306640625, -0.03076171875, 0.0240478515625, 0.046295166015625, 0.01155853271484375, -0.0015420913696289062, -0.0301055908203125, -0.054901123046875, -0.0154876708984375, 0.0152587890625, 0.034637451171875, 0.0036716461181640625, -0.0232391357421875, 0.050994873046875, 0.02581787109375, -0.005420684814453125, -0.03533935546875, 0.04315185546875, 0.004119873046875, 0.045440673828125, -0.07958984375, -0.057220458984375, 0.023590087890625, 0.05596923828125, 0.007480621337890625, 0.0372314453125, 0.05645751953125, 0.022003173828125, -0.018768310546875, -0.006031036376953125, 0.01959228515625, -0.0256195068359375, -0.012603759765625, -0.01336669921875, 0.008056640625, 0.0113525390625, -0.0036945343017578125, -0.0228424072265625, 0.036102294921875, -0.0014181137084960938, -0.03533935546875, 0.02685546875, -0.01123809814453125, -0.0096893310546875, 0.0521240234375, -0.01406097412109375, 0.02734375, -0.02337646484375, -0.0283203125, 0.0181427001953125, -0.056793212890625, 0.006244659423828125, 0.01273345947265625, 0.0253753662109375, 0.013641357421875, 0.0143585205078125, -0.01439666748046875, -0.00841522216796875, 0.003955841064453125, 0.03936767578125, -0.0361328125, 0.057952880859375, 0.06512451171875, 0.0005431175231933594, -0.023956298828125, -0.0090484619140625, 0.007843017578125, 0.0255126953125, -0.04229736328125, 0.0853271484375, -0.0347900390625, 0.01192474365234375, -0.005794525146484375, 0.002872467041015625, -0.007793426513671875, 0.01439666748046875, 0.0386962890625, 0.013427734375, -0.0175323486328125, -0.030914306640625, -0.009521484375, 0.027130126953125, 0.03704833984375, -0.036346435546875, 0.0113983154296875, 0.0002777576446533203, 0.01009368896484375, -0.0150909423828125, 0.0118408203125, -0.0137786865234375, 0.01230621337890625, 0.016571044921875, -0.00037360191345214844, 0.03546142578125, 0.01311492919921875, 0.01053619384765625, 0.0341796875, -0.0224761962890625, -0.0007653236389160156, 0.000042319297790527344, -0.013458251953125, -0.01081085205078125, 0.0177001953125, -0.00978851318359375, -0.046966552734375, 0.0274505615234375, -0.00823974609375, -0.004669189453125, -0.0017004013061523438, 0.049652099609375, 0.01381683349609375, -0.08905029296875, 0.0300140380859375, 0.0110626220703125, 0.06292724609375, 0.0029850006103515625, 0.01261138916015625, -0.0159759521484375, 0.0195770263671875, 0.0227203369140625, 0.0006513595581054688, -0.03192138671875, -0.017333984375, -0.02642822265625, 0.019287109375, -0.0243377685546875, -0.06451416015625, -0.102783203125, 0.0094451904296875, 0.01558685302734375, 0.027130126953125, -0.09906005859375, 0.05938720703125, 0.017547607421875, 0.0167388916015625, -0.00264739990234375, -0.03466796875, 0.006366729736328125, 0.053497314453125, -0.0338134765625, -0.051849365234375, -0.0226898193359375, 0.0116119384765625, -0.05560302734375, 0.03521728515625, 0.0389404296875, -0.04669189453125, 0.0142974853515625, 0.01062774658203125, 0.04193115234375, 0.06219482421875, 0.0228118896484375, -0.0306549072265625, 0.017181396484375, -0.0007581710815429688, 0.0179595947265625, -0.063720703125, -0.032562255859375, -0.042877197265625, 0.0311279296875, -0.0244903564453125, 0.0217132568359375, 0.03045654296875, -0.039215087890625, -0.06475830078125, 0.0474853515625, -0.0245208740234375, -0.0278167724609375, 0.0031032562255859375, -0.010101318359375, -0.0071258544921875, -0.00853729248046875, -0.0022144317626953125, 0.005146026611328125, -0.03216552734375, 0.006053924560546875, -0.01280975341796875, 0.056365966796875, -0.0095062255859375, 0.0141448974609375, -0.00881195068359375, 0.015869140625, -0.0079193115234375, -0.013641357421875, -0.0135498046875, -0.006519317626953125, 0.0333251953125, 0.033477783203125, -0.008544921875, -0.010162353515625, 0.025390625, -0.0292816162109375, 0.0010366439819335938, -0.0382080078125, -0.01110076904296875, -0.01837158203125, 0.048370361328125, 0.01203155517578125, 0.01812744140625, -0.0277557373046875, -0.026458740234375, -0.0054168701171875, -0.01316070556640625, -0.035308837890625, 0.0200347900390625, -0.073486328125, -0.013031005859375, -0.00588226318359375, 0.0024394989013671875, -0.00534820556640625, 0.004001617431640625, 0.0019483566284179688, 0.0173187255859375, 0.0654296875, -0.00092315673828125, 0.0001671314239501953, 0.029327392578125, -0.01183319091796875, -0.0095367431640625, 0.00247955322265625, -0.036834716796875, 0.004901885986328125, -0.0160675048828125, -0.0149383544921875, -0.050628662109375, -0.03125, -0.015655517578125, 0.0158233642578125, -0.03533935546875, 0.04193115234375, -0.0278472900390625, 0.004123687744140625, -0.00977325439453125, 0.0173492431640625, 0.00527191162109375, 0.0205535888671875, -0.039154052734375, 0.043365478515625, 0.010223388671875, 0.03173828125, 0.0184783935546875, 0.0186767578125, -0.0132598876953125, 0.057647705078125, 0.04034423828125, -0.036102294921875, 0.03759765625, -0.0146484375, -0.0111083984375, -0.003631591796875, -0.04925537109375, -0.0894775390625, 0.046539306640625, 0.013519287109375, -0.0084991455078125, 0.04656982421875 ]
ec2717b3142870ce3a3937ed48755d437120fe71
Wordpress Stackexchange Q: Get featured image URL by page id I am using WordPress 3.4.1. I need to display the featured image of a page. How can I get the featured image URL by particular page ID. Any help? A: As of Wordpress 4.4.0, we can use get_the_post_thumbnail_url(): $url = get_the_post_thumbnail_url( $post_id, 'thumbnail' );
Q: Get featured image URL by page id I am using WordPress 3.4.1. I need to display the featured image of a page. How can I get the featured image URL by particular page ID. Any help? A: As of Wordpress 4.4.0, we can use get_the_post_thumbnail_url(): $url = get_the_post_thumbnail_url( $post_id, 'thumbnail' ); A: Did you try anything? Its always helpful to share what you have tried. $url = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); Or if you want to get the image by image size. $src = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'thumbnail_size' ); $url = $src[0]; http://codex.wordpress.org/Function_Reference/get_post_thumbnail_id http://codex.wordpress.org/Function_Reference/wp_get_attachment_url http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
wordpress
{ "language": "en", "length": 94, "provenance": "stackexchange_00019.jsonl.gz:427054", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76954" }
[ 0.06707763671875, -0.0030517578125, 0.0234527587890625, -0.031890869140625, 0.0247039794921875, -0.0283355712890625, 0.0548095703125, -0.02972412109375, 0.03955078125, 0.01183319091796875, -0.01197052001953125, -0.004283905029296875, -0.0361328125, -0.028594970703125, -0.0239105224609375, -0.0211639404296875, 0.03570556640625, -0.03515625, 0.01235198974609375, 0.0072479248046875, -0.0023670196533203125, 0.0197601318359375, 0.0291748046875, 0.01641845703125, 0.05029296875, -0.026336669921875, 0.0123748779296875, -0.0006551742553710938, 0.00771331787109375, -0.0006399154663085938, 0.02783203125, -0.01323699951171875, -0.0205535888671875, 0.028411865234375, 0.021820068359375, -0.034210205078125, 0.0025386810302734375, 0.026885986328125, 0.035369873046875, -0.004810333251953125, 0.00356292724609375, 0.025360107421875, 0.0074005126953125, -0.0092315673828125, -0.032562255859375, -0.0141754150390625, -0.01152801513671875, -0.0283050537109375, 0.0178070068359375, 0.0697021484375, 0.007640838623046875, 0.042633056640625, -0.009918212890625, 0.01446533203125, 0.007022857666015625, -0.010986328125, 0.0205535888671875, 0.0005440711975097656, 0.039703369140625, -0.0489501953125, -0.058502197265625, -0.00046563148498535156, 0.031005859375, -0.011138916015625, -0.00823974609375, 0.0214080810546875, 0.002796173095703125, 0.00841522216796875, -0.01727294921875, -0.0250091552734375, -0.00019598007202148438, -0.0222930908203125, -0.002727508544921875, -0.0053558349609375, -0.02301025390625, 0.005298614501953125, 0.0028362274169921875, -0.02886962890625, 0.01363372802734375, 0.004032135009765625, -0.01788330078125, -0.0296478271484375, -0.07781982421875, 0.0258636474609375, -0.00033164024353027344, 0.0518798828125, -0.00220489501953125, -0.0186920166015625, -0.0241851806640625, -0.01525115966796875, -0.0211029052734375, -0.036285400390625, -0.0288848876953125, 0.03057861328125, -0.0019378662109375, -0.025177001953125, 0.03338623046875, 0.056732177734375, -0.006275177001953125, 0.004749298095703125, 0.007114410400390625, -0.044036865234375, 0.022857666015625, -0.048583984375, -0.0032634735107421875, 0.01468658447265625, 0.0167999267578125, 0.033355712890625, 0.0259857177734375, 0.0288848876953125, -0.01197052001953125, 0.01153564453125, 0.0249481201171875, 0.00208282470703125, -0.0235137939453125, 0.0007276535034179688, -0.00977325439453125, -0.0146331787109375, -0.01220703125, -0.005828857421875, 0.03155517578125, 0.0259857177734375, 0.04669189453125, -0.019287109375, 0.011199951171875, 0.0260009765625, -0.05487060546875, -0.06439208984375, -0.03021240234375, 0.026336669921875, -0.031494140625, 0.01763916015625, 0.0438232421875, 0.01515960693359375, -0.01398468017578125, -0.0215606689453125, -0.00970458984375, -0.03778076171875, 0.004535675048828125, 0.0224609375, -0.057861328125, -0.00786590576171875, 0.0753173828125, -0.047454833984375, 0.02618408203125, 0.0289154052734375, 0.005275726318359375, 0.0151519775390625, 0.006671905517578125, -0.0479736328125, 0.0265045166015625, -0.01434326171875, -0.00021648406982421875, 0.0230865478515625, 0.050079345703125, -0.03839111328125, 0.0809326171875, -0.05279541015625, 0.03472900390625, -0.04620361328125, 0.065185546875, 0.008270263671875, -0.022003173828125, 0.03314208984375, 0.0002624988555908203, -0.0223236083984375, -0.0289764404296875, 0.0033588409423828125, 0.01898193359375, 0.047088623046875, 0.003253936767578125, -0.01898193359375, -0.017425537109375, 0.012176513671875, -0.0046539306640625, 0.007366180419921875, 0.0328369140625, 0.0009603500366210938, 0.00794219970703125, 0.05865478515625, -0.0183258056640625, -0.03997802734375, 0.031280517578125, -0.032989501953125, -0.0266265869140625, 0.035919189453125, 0.00998687744140625, 0.04327392578125, 0.0007996559143066406, 0.0157318115234375, 0.01904296875, 0.0182647705078125, -0.039764404296875, 0.0203399658203125, 0.021453857421875, -0.0050201416015625, -0.0230255126953125, 0.006439208984375, -0.00965118408203125, -0.042816162109375, 0.03106689453125, 0.0126190185546875, 0.015411376953125, 0.0325927734375, 0.0159454345703125, 0.0167388916015625, 0.0014858245849609375, 0.00922393798828125, 0.02325439453125, 0.029510498046875, 0.00733184814453125, 0.039398193359375, -0.024871826171875, -0.025970458984375, -0.0149383544921875, 0.05499267578125, -0.018280029296875, -0.0075836181640625, -0.00812530517578125, 0.03350830078125, -0.03411865234375, 0.02288818359375, -0.053619384765625, -0.021331787109375, 0.044830322265625, 0.01239013671875, -0.031829833984375, -0.024322509765625, 0.0238800048828125, 0.019866943359375, -0.069580078125, 0.0262603759765625, -0.0057373046875, 0.01482391357421875, -0.02838134765625, -0.0183868408203125, 0.024688720703125, -0.059234619140625, 0.037994384765625, 0.04241943359375, 0.059051513671875, 0.01189422607421875, 0.0031261444091796875, -0.022064208984375, 0.0340576171875, -0.0258636474609375, 0.03814697265625, -0.053131103515625, 0.00482940673828125, 0.038360595703125, 0.037872314453125, 0.0139312744140625, 0.00946044921875, 0.007205963134765625, -0.001964569091796875, 0.033294677734375, 0.0137939453125, 0.044036865234375, -0.058990478515625, 0.04583740234375, -0.00868988037109375, 0.05419921875, 0.00321197509765625, -0.002147674560546875, -0.0021610260009765625, 0.035980224609375, 0.043121337890625, 0.051300048828125, -0.00789642333984375, -0.016326904296875, -0.00286102294921875, 0.036346435546875, -0.0029392242431640625, 0.02880859375, 0.01457977294921875, -0.005950927734375, 0.0014123916625976562, -0.0111236572265625, -0.03265380859375, 0.00760650634765625, -0.01082611083984375, -0.01171875, -0.0037212371826171875, 0.005695343017578125, -0.0015773773193359375, -0.0261383056640625, 0.0270843505859375, 0.02496337890625, -0.0020923614501953125, 0.0193939208984375, 0.047760009765625, 0.01983642578125, -0.01100921630859375, 0.0159759521484375, 0.005107879638671875, -0.002056121826171875, -0.0166778564453125, -0.0247344970703125, 0.0281982421875, -0.034332275390625, 0.0246124267578125, 0.05279541015625, -0.0311279296875, 0.03802490234375, 0.0237274169921875, -0.029510498046875, 0.0288238525390625, 0.02740478515625, 0.021820068359375, 0.0357666015625, -0.074951171875, 0.0180511474609375, 0.016143798828125, 0.06390380859375, -0.034942626953125, -0.04052734375, -0.0091094970703125, 0.007904052734375, -0.1162109375, -0.12310791015625, -0.033203125, -0.050750732421875, -0.06646728515625, 0.01479339599609375, -0.053619384765625, 0.045013427734375, 0.033935546875, -0.006221771240234375, -0.0005745887756347656, 0.0061798095703125, -0.07086181640625, -0.027374267578125, -0.06591796875, 0.005924224853515625, -0.026947021484375, 0.023529052734375, 0.0138702392578125, 0.0029773712158203125, -0.0070343017578125, -0.04901123046875, -0.0007953643798828125, 0.031494140625, -0.01494598388671875, -0.0180511474609375, -0.0225372314453125, 0.01285552978515625, -0.03173828125, 0.01477813720703125, 0.003719329833984375, 0.0146484375, -0.0182342529296875, 0.0200042724609375, -0.0352783203125, -0.0133514404296875, 0.007198333740234375, 0.0182952880859375, 0.034393310546875, 0.018035888671875, 0.03924560546875, -0.02093505859375, -0.044830322265625, -0.03558349609375, -0.0811767578125, 0.01025390625, 0.056549072265625, 0.02001953125, -0.0295867919921875, 0.0234832763671875, 0.008697509765625, -0.0032901763916015625, 0.0006256103515625, -0.0362548828125, 0.07452392578125, -0.0005965232849121094, 0.027862548828125, -0.03765869140625, 0.0190887451171875, -0.00316619873046875, 0.04962158203125, 0.0232696533203125, 0.06231689453125, 0.0019044876098632812, 0.02227783203125, -0.032318115234375, -0.02337646484375, 0.03948974609375, -0.005035400390625, 0.004955291748046875, -0.0231781005859375, -0.04046630859375, 0.0014495849609375, 0.0738525390625, -0.025634765625, -0.008270263671875, -0.033172607421875, -0.0157470703125, -0.007152557373046875, -0.0143280029296875, -0.057769775390625, 0.005519866943359375, -0.055267333984375, -0.017791748046875, -0.01262664794921875, -0.0207366943359375, -0.0173492431640625, 0.05633544921875, -0.0335693359375, -0.021881103515625, 0.02764892578125, -0.0097198486328125, -0.0265960693359375, 0.0673828125, -0.05230712890625, 0.06427001953125, -0.04632568359375, -0.004833221435546875, -0.06903076171875, -0.0182952880859375, 0.017730712890625, 0.059814453125, -0.00981903076171875, -0.020172119140625, -0.0199127197265625, 0.049468994140625, 0.032989501953125, 0.034881591796875, -0.0008001327514648438, -0.0283966064453125, -0.01263427734375, 0.0095062255859375, 0.03125, -0.015106201171875, -0.0094757080078125, -0.0416259765625, -0.08465576171875, -0.05560302734375, -0.0175018310546875, 0.0308685302734375, 0.022796630859375, -0.012908935546875, -0.009185791015625, 0.005962371826171875, 0.0528564453125, 0.04278564453125, 0.032012939453125, -0.017791748046875, -0.0156707763671875, -0.0123138427734375, 0.034942626953125, 0.020294189453125, 0.004241943359375, 0.006244659423828125, 0.052215576171875, 0.01375579833984375, -0.026702880859375, -0.04364013671875, -0.01163482666015625, 0.043487548828125, 0.00925445556640625, 0.0302581787109375, 0.03839111328125, -0.029815673828125, 0.0299530029296875, 0.037384033203125, -0.0194091796875, 0.01486968994140625, 0.0221099853515625, 0.004302978515625, -0.00531768798828125, -0.01071929931640625, -0.010986328125, 0.018280029296875, 0.05865478515625, -0.01346588134765625, -0.01529693603515625, -0.04046630859375, 0.019805908203125, -0.01611328125, 0.01447296142578125, -0.035125732421875, -0.041717529296875, 0.01253509521484375, 0.002918243408203125, 0.054107666015625, 0.0199432373046875, -0.004680633544921875, 0.04449462890625, 0.0372314453125, -0.00243377685546875, 0.050811767578125, 0.0048675537109375, 0.02374267578125, 0.046539306640625, -0.0181427001953125, -0.0091400146484375, 0.0228729248046875, 0.0012731552124023438, 0.0131072998046875, -0.0132293701171875, -0.0267486572265625, -0.035247802734375, -0.007076263427734375, -0.00922393798828125, 0.0032329559326171875, -0.034332275390625, 0.047943115234375, 0.053741455078125, -0.0127716064453125, -0.0264434814453125, -0.035003662109375, -0.00250244140625, -0.054473876953125, -0.00518798828125, -0.0198211669921875, 0.007747650146484375, 0.010650634765625, 0.0797119140625, -0.03350830078125, 0.05511474609375, -0.01470947265625, 0.01386260986328125, 0.01092529296875, 0.01019287109375, -0.0023555755615234375, 0.051544189453125, -0.035552978515625, 0.0266571044921875, 0.02789306640625, -0.031951904296875, -0.0005474090576171875, 0.01282501220703125, 0.042999267578125, -0.03973388671875, -0.03411865234375, 0.03948974609375, -0.029266357421875, -0.02008056640625, 0.00605010986328125, -0.0303955078125, -0.04522705078125, -0.01325225830078125, 0.0183868408203125, 0.0268707275390625, 0.007343292236328125, -0.037384033203125, 0.039764404296875, -0.006134033203125, 0.0157318115234375, -0.026092529296875, -0.046417236328125, 0.02593994140625, 0.033660888671875, -0.01236724853515625, -0.0189971923828125, -0.00881195068359375, 0.0157318115234375, 0.0065765380859375, -0.0343017578125, -0.030120849609375, 0.054534912109375, -0.0301513671875, 0.032501220703125, 0.00392913818359375, -0.025390625, -0.01094818115234375, 0.0233306884765625, 0.045928955078125, 0.04815673828125, -0.0389404296875, 0.01019287109375, -0.051727294921875, 0.0169219970703125, 0.077880859375, 0.0017566680908203125, -0.0088348388671875, -0.04486083984375, -0.0145416259765625, 0.028076171875, -0.0308990478515625, 0.01306915283203125, 0.0184173583984375, 0.020538330078125, -0.0218353271484375, 0.0712890625, 0.007663726806640625, 0.02593994140625, 0.005847930908203125, 0.054443359375, 0.0121917724609375, -0.0176544189453125, -0.0411376953125, -0.0294189453125, -0.03375244140625, -0.0276947021484375, 0.010955810546875, 0.032012939453125, -0.006259918212890625, 0.018646240234375, 0.025146484375, 0.02947998046875, -0.009368896484375, -0.0254058837890625, 0.0026111602783203125, -0.0283203125, 0.0274810791015625, -0.0247650146484375, -0.052032470703125, 0.0027141571044921875, -0.035552978515625, -0.02215576171875, 0.0029449462890625, 0.0202484130859375, -0.00799560546875, -0.0258331298828125, -0.035736083984375, 0.054443359375, -0.00823211669921875, 0.0234222412109375, 0.08221435546875, 0.004192352294921875, 0.048004150390625, 0.0184783935546875, 0.0009021759033203125, 0.0078277587890625, 0.03826904296875, -0.05621337890625, -0.056976318359375, 0.0452880859375, 0.03179931640625, -0.0246429443359375, 0.041351318359375, -0.0153656005859375, 0.036102294921875, -0.0224609375, 0.052337646484375, 0.021942138671875, 0.016326904296875, 0.023651123046875, -0.062042236328125, 0.029022216796875, 0.012298583984375, 0.0018644332885742188, -0.0078277587890625, 0.0273284912109375, -0.0306243896484375, -0.0175628662109375, -0.00653839111328125, -0.0169525146484375, -0.0170440673828125, 0.004085540771484375, 0.0253753662109375, 0.00225067138671875, -0.037353515625, -0.0374755859375, 0.0289154052734375, -0.038726806640625, -0.043060302734375, 0.007904052734375, -0.01535797119140625, 0.00826263427734375, -0.022918701171875, 0.042816162109375, -0.0036067962646484375, 0.0281829833984375, 0.0242919921875, 0.0245819091796875, 0.0013275146484375, 0.048553466796875, -0.004131317138671875, 0.020477294921875, 0.024261474609375, -0.05621337890625, 0.046783447265625, 0.0019388198852539062, 0.01251220703125, -0.01029205322265625, -0.0306854248046875, -0.0018835067749023438, -0.0295867919921875, -0.00005072355270385742, -0.0080413818359375, -0.00167083740234375, 0.0938720703125, -0.029876708984375, -0.0204925537109375, 0.0155487060546875, 0.042327880859375, -0.01494598388671875, -0.01406097412109375, 0.00732421875, -0.033233642578125, 0.01224517822265625, -0.01352691650390625, 0.01329803466796875, 0.0233917236328125, -0.031951904296875, -0.06982421875, 0.0673828125, -0.039154052734375, 0.052032470703125, -0.005107879638671875, 0.0227508544921875, 0.0399169921875, 0.017059326171875, 0.0021514892578125, 0.0004944801330566406, -0.05712890625, 0.0243988037109375, -0.0087738037109375, 0.0103302001953125, 0.00775909423828125, 0.02349853515625, 0.06256103515625, 0.01800537109375, -0.029937744140625, -0.02178955078125, 0.040771484375, 0.05242919921875, 0.013885498046875, 0.0174713134765625, 0.0068817138671875, 0.0139617919921875, 0.06732177734375, -0.026397705078125, 0.02813720703125, -0.003276824951171875, 0.01520538330078125, 0.0211639404296875, 0.0426025390625, 0.0504150390625, 0.00568389892578125, 0.005260467529296875, -0.072021484375, 0.022674560546875, 0.067138671875, -0.0347900390625, 0.0184326171875, 0.01148223876953125, 0.01332855224609375, -0.01036834716796875, -0.0011138916015625, 0.005336761474609375, 0.039886474609375, 0.0134735107421875, 0.021514892578125, 0.00293731689453125, 0.016448974609375, 0.03955078125, -0.0025920867919921875, -0.0078277587890625, 0.04022216796875, 0.0037822723388671875, 0.0689697265625, 0.049957275390625, 0.0282440185546875, -0.035064697265625, -0.0233306884765625, 0.039031982421875, 0.07635498046875, -0.048553466796875, -0.040191650390625, 0.01145172119140625, 0.0019855499267578125, 0.024932861328125, 0.0027179718017578125, 0.0211334228515625, -0.0297088623046875, 0.01226043701171875, -0.0063629150390625, -0.0115814208984375, 0.03302001953125, 0.0430908203125, 0.006679534912109375, -0.01617431640625, -0.0477294921875, -0.0234375, -0.027801513671875, -0.0007028579711914062, 0.0158843994140625, 0.0062255859375, 0.01110076904296875, 0.0200958251953125, 0.005584716796875, 0.01397705078125, -0.01163482666015625, 0.048614501953125, 0.007381439208984375, 0.015716552734375, -0.036834716796875, -0.045745849609375, 0.0287628173828125, 0.035491943359375, 0.0020046234130859375, -0.01448822021484375, 0.032745361328125, 0.0307159423828125, -0.07391357421875, -0.02618408203125, 0.0599365234375, -0.017425537109375, 0.0208282470703125, -0.046173095703125, 0.020751953125, 0.0126800537109375, -0.0198516845703125, 0.0116729736328125, -0.0290374755859375, 0.059173583984375, -0.00403594970703125, 0.035797119140625, 0.0037288665771484375, 0.0037784576416015625, 0.016571044921875, -0.024505615234375, 0.01898193359375, 0.0008187294006347656, -0.081298828125, 0.00044798851013183594, -0.0208740234375, -0.053802490234375, 0.021575927734375, 0.031280517578125, -0.036376953125, 0.0201416015625, 0.00872039794921875, 0.01861572265625, -0.0025157928466796875, -0.01348876953125, -0.01068878173828125, -0.0225067138671875, 0.039703369140625, -0.00707244873046875, -0.033447265625, -0.035003662109375, -0.0019989013671875, 0.0288848876953125, 0.0284881591796875, 0.03997802734375, 0.00157928466796875, 0.021392822265625, 0.00771331787109375, 0.0160064697265625, -0.03289794921875, 0.003204345703125, 0.0247039794921875, -0.02227783203125, 0.0010519027709960938, -0.0109405517578125, -0.03387451171875, 0.047088623046875, 0.01532745361328125, 0.009521484375, 0.0007739067077636719, -0.0082855224609375, 0.01061248779296875, 0.030181884765625, 0.02410888671875, -0.034698486328125, -0.03436279296875, -0.07867431640625, -0.036468505859375, 0.036102294921875, 0.0089569091796875, 0.01091766357421875, 0.033355712890625, 0.02655029296875, -0.0026493072509765625, 0.0445556640625, -0.024383544921875, 0.068603515625, 0.03643798828125, -0.041351318359375, -0.01387786865234375, -0.0006718635559082031, -0.007549285888671875, 0.01922607421875, -0.0029659271240234375, 0.042510986328125, 0.001728057861328125, -0.00344085693359375, 0.01009368896484375, -0.049652099609375, 0.0018777847290039062, -0.0384521484375, -0.0219573974609375, 0.0113983154296875, 0.0145721435546875, -0.046539306640625, 0.00392913818359375, 0.009735107421875, -0.0423583984375, -0.021728515625, 0.0016946792602539062, -0.026123046875, 0.01456451416015625, -0.008514404296875, -0.01343536376953125, 0.006778717041015625, 0.0306549072265625, -0.06134033203125, 0.047210693359375, 0.0157623291015625, -0.00017881393432617188, -0.0093994140625, 0.014495849609375, 0.00464630126953125, 0.027557373046875, -0.06573486328125, 0.006702423095703125, -0.00577545166015625, -0.0306549072265625, -0.0023326873779296875, 0.0285797119140625, 0.051025390625, -0.028656005859375, -0.0203399658203125, 0.05169677734375, 0.0181884765625, 0.1107177734375, -0.05126953125, -0.04339599609375, -0.02630615234375, -0.00689697265625, 0.0006489753723144531, -0.0286865234375, 0.0290374755859375, -0.064208984375, -0.0302276611328125, 0.01386260986328125, -0.01007843017578125, 0.01788330078125, -0.03363037109375, -0.0831298828125, 0.07818603515625, -0.0249481201171875, -0.043365478515625, -0.0204925537109375, 0.0024166107177734375, 0.0010709762573242188, 0.0025920867919921875, -0.002986907958984375, -0.0118408203125, -0.0237579345703125, 0.01512908935546875, 0.04718017578125, -0.02154541015625, 0.054473876953125, 0.039306640625, -0.035430908203125, 0.034881591796875, 0.00850677490234375, 0.00959014892578125, 0.004947662353515625, 0.008056640625, 0.00958251953125, 0.01284027099609375, -0.056060791015625, -0.0216522216796875, -0.022552490234375, 0.02716064453125, -0.0269012451171875, -0.0010824203491210938, 0.0016412734985351562, 0.01190185546875, 0.0634765625, 0.038116455078125, 0.01110076904296875, -0.031005859375, 0.0011463165283203125, -0.0325927734375, -0.035552978515625, -0.007663726806640625, 0.03253173828125, -0.0728759765625, -0.00824737548828125, 0.03155517578125, -0.0260162353515625, -0.00852203369140625, -0.01262664794921875, -0.0596923828125, -0.0006384849548339844, -0.0396728515625, 0.015869140625, -0.05517578125, 0.03271484375, 0.057098388671875, -0.0501708984375, 0.00942230224609375, -0.02069091796875, 0.0018529891967773438, 0.0309906005859375, -0.07183837890625, 0.02032470703125, 0.05279541015625, -0.03619384765625, -0.006282806396484375, 0.035888671875, -0.010986328125, -0.016845703125, 0.0125885009765625, -0.005069732666015625, 0.02703857421875, 0.00524139404296875, 0.034271240234375, 0.022125244140625, -0.0095672607421875, 0.0009741783142089844, -0.0157012939453125, 0.0017862319946289062, 0.03765869140625, -0.007602691650390625, 0.038970947265625, -0.029144287109375, -0.0273284912109375, 0.0031185150146484375, -0.037567138671875, 0.01270294189453125, 0.0215301513671875, 0.020477294921875, 0.00689697265625, -0.0185089111328125, -0.023529052734375, -0.01059722900390625, -0.02020263671875 ]
65ad4ce434ce717f9594b63c59d9186e970fd811
Wordpress Stackexchange Q: Add a menu item to Wordpress 3.5 Media Manager How can add a new menu item underneath the "insert From URL" on the left sidebar in the new Wordpress 3.5 Media Manager? I've been looking at the backbone js and tried my hand at hooking into it with my own JS but without success. Edit 2: This seems to do the trick: http://sumtips.com/2012/12/add-remove-tab-wordpress-3-5-media-upload-page.html It should do for simple stuff, but I guess its also possible to do the same thing in Javascript. Would be nice if there was a tutorial/explanation on how the new media manager internals work. A: You can hook into the media_upload_tabs filter to add the tab. This is the method used by the Network Shared Media plugin: function wpse_76980_add_upload_tab( $tabs ) { $newtab = array( 'tab_slug' => 'Tab Name' ); return array_merge( $tabs, $newtab ); } add_filter( 'media_upload_tabs', 'wpse_76980_add_upload_tab' ); You can then hook to the media_upload_tab_slug action (where tab_slug is as used above) to display the tab contents: function wpse_76980_media_upload() { // display tab contents } add_action( 'media_upload_tab_slug', 'wpse_76980_media_upload' );
Q: Add a menu item to Wordpress 3.5 Media Manager How can add a new menu item underneath the "insert From URL" on the left sidebar in the new Wordpress 3.5 Media Manager? I've been looking at the backbone js and tried my hand at hooking into it with my own JS but without success. Edit 2: This seems to do the trick: http://sumtips.com/2012/12/add-remove-tab-wordpress-3-5-media-upload-page.html It should do for simple stuff, but I guess its also possible to do the same thing in Javascript. Would be nice if there was a tutorial/explanation on how the new media manager internals work. A: You can hook into the media_upload_tabs filter to add the tab. This is the method used by the Network Shared Media plugin: function wpse_76980_add_upload_tab( $tabs ) { $newtab = array( 'tab_slug' => 'Tab Name' ); return array_merge( $tabs, $newtab ); } add_filter( 'media_upload_tabs', 'wpse_76980_add_upload_tab' ); You can then hook to the media_upload_tab_slug action (where tab_slug is as used above) to display the tab contents: function wpse_76980_media_upload() { // display tab contents } add_action( 'media_upload_tab_slug', 'wpse_76980_media_upload' ); A: I have not a solution, but hints. The strings get from a array. You can filter via hook media_view_strings. The modal box after click is a javascript, build with backbone.js since WP 3.5. See in /wp-includes/js/media-views.js for a solution. Backbone is also new for me and the scripts have many lines of source. A: OK, I think that I have something that is really close to be an answer: I put my code in a gist Here is the result : I built several Backbone object to respect the MVC pattern : the controller.Custom is in charge of doing all the logic, the view.Toolbar.Custom deals with toolbar buttons, and the view.Custom display the inner UI. A: I'm working on adding a button to the "router menu" (adding something right of "Media Library"), but the system is the same. <script type="text/javascript"> jQuery(window).on('load', function() { var media = window.wp.media, Attachment = media.model.Attachment, Attachments = media.model.Attachments, Query = media.model.Query, l10n = media.view.l10n = typeof _wpMediaViewsL10n === 'undefined' ? {} : _wpMediaViewsL10n, NewMenuItem; jQuery(document).on( 'click', '.insert-media', function( event ) { var workflow = wp.media.editor.get(); var options = workflow.options; if( undefined == NewMenuItem ) { NewMenuItem = new wp.media.view.RouterItem( _.extend( options, { text: 'New Item!' } ) ); workflow.menu.view.views.set( '.media-menu', NewMenuItem, _.extend( options, { add: true } ) ); } }); }); </script> Now, it doesn't do anything yet. That's the next step!
wordpress
{ "language": "en", "length": 405, "provenance": "stackexchange_00019.jsonl.gz:427063", "question_score": "37", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76980" }
[ 0.060272216796875, 0.006618499755859375, -0.001605987548828125, -0.0190887451171875, 0.038848876953125, -0.04339599609375, 0.052581787109375, -0.0262298583984375, -0.00970458984375, 0.017120361328125, -0.025177001953125, 0.00818634033203125, -0.0009140968322753906, -0.0273895263671875, 0.01216888427734375, -0.03271484375, 0.040313720703125, -0.0238494873046875, 0.0556640625, 0.008819580078125, 0.00989532470703125, 0.0260467529296875, 0.053558349609375, 0.01412200927734375, 0.0035552978515625, 0.02471923828125, 0.01071929931640625, -0.02557373046875, -0.00628662109375, -0.01099395751953125, 0.0065765380859375, 0.013031005859375, 0.0232391357421875, 0.002044677734375, -0.005847930908203125, 0.0214080810546875, 0.04248046875, -0.008697509765625, 0.01168060302734375, 0.0084075927734375, 0.027923583984375, -0.01351165771484375, 0.0111236572265625, 0.00736236572265625, 0.008270263671875, -0.00804901123046875, 0.00960540771484375, -0.05084228515625, 0.0411376953125, 0.02508544921875, 0.0037708282470703125, -0.0005445480346679688, -0.00778961181640625, -0.0016345977783203125, -0.00934600830078125, 0.017669677734375, -0.0193634033203125, 0.0002332925796508789, -0.0026111602783203125, 0.07635498046875, 0.0235443115234375, 0.02386474609375, -0.01934814453125, -0.04400634765625, -0.0291595458984375, 0.017333984375, 0.06231689453125, -0.015716552734375, -0.0391845703125, -0.034515380859375, 0.01270294189453125, -0.00920867919921875, 0.01503753662109375, -0.0232086181640625, -0.0182952880859375, -0.002056121826171875, 0.0246124267578125, -0.0012502670288085938, 0.0124969482421875, -0.006122589111328125, 0.01617431640625, 0.01451873779296875, -0.030517578125, -0.0270843505859375, 0.048980712890625, 0.0188446044921875, -0.004749298095703125, -0.0382080078125, -0.02685546875, 0.035736083984375, -0.0177764892578125, -0.00894927978515625, 0.0235595703125, 0.0082550048828125, -0.0116119384765625, -0.0149688720703125, 0.0255889892578125, 0.030792236328125, -0.0150146484375, 0.01197052001953125, 0.033294677734375, -0.0596923828125, 0.033477783203125, -0.03594970703125, 0.018829345703125, 0.01013946533203125, -0.0252685546875, -0.081787109375, 0.0221405029296875, 0.011199951171875, -0.031768798828125, 0.042724609375, 0.02630615234375, 0.0106964111328125, -0.0123138427734375, -0.0270843505859375, -0.0200958251953125, 0.01355743408203125, -0.0003082752227783203, -0.0124053955078125, -0.0179901123046875, -0.006969451904296875, -0.05181884765625, 0.030853271484375, 0.026458740234375, 0.004138946533203125, 0.00504302978515625, 0.03729248046875, -0.048675537109375, 0.020751953125, -0.00569915771484375, 0.0229339599609375, 0.0306396484375, 0.0265045166015625, -0.021148681640625, -0.01154327392578125, 0.06854248046875, -0.0194854736328125, 0.00919342041015625, 0.030975341796875, -0.0179595947265625, -0.01287841796875, -0.004749298095703125, -0.0219573974609375, 0.0290679931640625, 0.026580810546875, 0.017333984375, -0.0009098052978515625, 0.034088134765625, -0.041259765625, 0.0043792724609375, -0.0058441162109375, 0.03717041015625, 0.006908416748046875, -0.038116455078125, 0.00270843505859375, 0.0114593505859375, -0.019256591796875, -0.01236724853515625, -0.0361328125, -0.0030670166015625, -0.0126800537109375, 0.0260467529296875, -0.0777587890625, -0.058990478515625, -0.0007958412170410156, -0.0775146484375, -0.005992889404296875, 0.0325927734375, 0.0440673828125, -0.017822265625, -0.033660888671875, 0.045379638671875, 0.0229339599609375, -0.0204620361328125, 0.0330810546875, 0.036102294921875, 0.056976318359375, 0.00385284423828125, 0.040740966796875, 0.0032444000244140625, -0.04052734375, 0.1259765625, -0.05780029296875, -0.0599365234375, 0.049346923828125, -0.01189422607421875, 0.0615234375, 0.0310516357421875, -0.003864288330078125, 0.016204833984375, 0.004764556884765625, -0.00640106201171875, -0.03564453125, -0.00463104248046875, -0.0263671875, 0.00273895263671875, -0.002559661865234375, -0.0133056640625, 0.03912353515625, -0.00977325439453125, 0.058349609375, -0.0110931396484375, 0.038848876953125, -0.002017974853515625, 0.047515869140625, -0.00494384765625, 0.033843994140625, 0.0154266357421875, 0.01263427734375, 0.0203399658203125, 0.01947021484375, -0.0318603515625, -0.0263671875, -0.037933349609375, 0.0168609619140625, -0.0177001953125, 0.0307159423828125, -0.006938934326171875, 0.05450439453125, -0.017059326171875, -0.0192108154296875, -0.01003265380859375, -0.016632080078125, 0.003887176513671875, -0.0268707275390625, -0.009063720703125, -0.02410888671875, 0.0206451416015625, 0.0009946823120117188, -0.0111541748046875, 0.026885986328125, 0.038604736328125, -0.00597381591796875, -0.052276611328125, 0.005405426025390625, -0.0191650390625, -0.049560546875, -0.023040771484375, 0.046234130859375, 0.0225067138671875, 0.031219482421875, 0.0013370513916015625, 0, 0.055816650390625, 0.01444244384765625, 0.0288238525390625, -0.024169921875, 0.00958251953125, 0.0274658203125, -0.002719879150390625, 0.006092071533203125, 0.0148468017578125, -0.04608154296875, 0.031585693359375, 0.024169921875, -0.0246124267578125, -0.00933837890625, 0.0011186599731445312, -0.0019216537475585938, 0.00852203369140625, -0.005645751953125, -0.0022220611572265625, -0.0101470947265625, 0.03228759765625, 0.0231170654296875, 0.034393310546875, 0.032623291015625, -0.0215301513671875, 0.01806640625, 0.01285552978515625, -0.004474639892578125, -0.004314422607421875, 0.03802490234375, 0.032318115234375, -0.0291900634765625, -0.035125732421875, -0.00225830078125, 0.014434814453125, 0.0038700103759765625, -0.02191162109375, 0.0100860595703125, 0.0113525390625, -0.0075836181640625, -0.007526397705078125, -0.0399169921875, 0.01390838623046875, -0.0287322998046875, 0.0059661865234375, -0.025054931640625, 0.01287841796875, 0.004825592041015625, -0.01467132568359375, 0.0068206787109375, 0.00986480712890625, -0.037811279296875, 0.055908203125, 0.01306915283203125, 0.00384521484375, 0.004451751708984375, 0.06756591796875, 0.042999267578125, -0.0287628173828125, -0.0014162063598632812, 0.005229949951171875, -0.03594970703125, -0.027862548828125, 0.029022216796875, -0.001834869384765625, -0.0406494140625, -0.0231475830078125, 0.0278472900390625, 0.0030994415283203125, -0.08709716796875, -0.00795745849609375, -0.0167388916015625, -0.053253173828125, -0.043243408203125, -0.08740234375, -0.01325225830078125, 0.03033447265625, -0.096435546875, -0.033172607421875, 0.01422119140625, -0.08502197265625, -0.0078277587890625, 0.07440185546875, -0.001918792724609375, -0.0142059326171875, 0.0174102783203125, 0.019683837890625, 0.004444122314453125, -0.0083770751953125, -0.0129547119140625, 0.0011930465698242188, -0.0013561248779296875, 0.017822265625, 0.021270751953125, 0.018402099609375, -0.01082611083984375, 0.056396484375, -0.00013458728790283203, -0.017303466796875, 0.0191650390625, 0.048309326171875, -0.032806396484375, 0.01038360595703125, 0.0031909942626953125, 0.0271759033203125, 0.058258056640625, -0.049896240234375, 0.00244903564453125, -0.0186614990234375, -0.01212310791015625, -0.01085662841796875, 0.037872314453125, 0.036468505859375, -0.007061004638671875, 0.00757598876953125, -0.04071044921875, 0.00079345703125, 0.0142974853515625, -0.0175933837890625, -0.049407958984375, -0.01934814453125, -0.00756072998046875, -0.0095062255859375, 0.0007419586181640625, 0.01239013671875, 0.033416748046875, 0.012908935546875, -0.006500244140625, 0.00794219970703125, -0.01812744140625, -0.004241943359375, -0.0284271240234375, 0.04827880859375, 0.01390838623046875, -0.050994873046875, 0.0145721435546875, 0.034332275390625, 0.029876708984375, -0.02520751953125, -0.0283050537109375, -0.0006136894226074219, 0.02874755859375, -0.00870513916015625, 0.033538818359375, -0.04937744140625, -0.0242919921875, -0.050048828125, 0.045928955078125, -0.05401611328125, -0.009674072265625, -0.03302001953125, 0.01187896728515625, 0.0032520294189453125, -0.05828857421875, -0.0245208740234375, -0.0115966796875, 0.004863739013671875, 0.007694244384765625, 0.007778167724609375, -0.0013132095336914062, -0.034820556640625, 0.039825439453125, -0.0158843994140625, -0.000492095947265625, 0.058807373046875, -0.0496826171875, -0.01380157470703125, 0.024139404296875, -0.026397705078125, -0.037567138671875, -0.058197021484375, 0.013214111328125, -0.10980224609375, -0.003780364990234375, -0.022064208984375, 0.0689697265625, 0.01480865478515625, -0.027801513671875, -0.040863037109375, 0.035858154296875, 0.0328369140625, 0.014984130859375, 0.0294647216796875, 0.0015840530395507812, 0.02178955078125, -0.034759521484375, 0.01537322998046875, -0.0421142578125, -0.0157318115234375, -0.042236328125, -0.03656005859375, 0.01268768310546875, 0.0034122467041015625, 0.050689697265625, 0.006763458251953125, -0.0030574798583984375, -0.0278778076171875, -0.02069091796875, -0.00891876220703125, 0.00691986083984375, -0.01611328125, 0.007110595703125, -0.0093994140625, -0.0139007568359375, 0.01105499267578125, -0.0025424957275390625, -0.01593017578125, 0.007099151611328125, 0.05267333984375, 0.029510498046875, -0.00902557373046875, -0.0222625732421875, -0.00785064697265625, 0.0202484130859375, 0.018218994140625, 0.007511138916015625, -0.01262664794921875, -0.03094482421875, 0.033111572265625, -0.0083770751953125, 0.028564453125, -0.0034046173095703125, 0.0028438568115234375, 0.022979736328125, 0.005680084228515625, 0.00923919677734375, 0.035980224609375, -0.02154541015625, -0.059173583984375, -0.027923583984375, 0.0006742477416992188, -0.015655517578125, 0.0355224609375, 0.027496337890625, 0.031494140625, -0.034271240234375, -0.056915283203125, -0.006389617919921875, -0.0166778564453125, 0.047454833984375, 0.0239410400390625, -0.01125335693359375, 0.04534912109375, 0.045440673828125, -0.0218963623046875, -0.00629425048828125, 0.009063720703125, -0.0269317626953125, 0.03582763671875, -0.0261077880859375, -0.034332275390625, -0.006618499755859375, 0.0165252685546875, -0.034515380859375, -0.0006856918334960938, -0.0254669189453125, -0.049896240234375, 0.020050048828125, 0.00766754150390625, 0.0066070556640625, 0.0159759521484375, 0.00820159912109375, 0.03314208984375, 0.007396697998046875, -0.00106048583984375, 0.00740814208984375, 0.044952392578125, -0.034942626953125, 0.03363037109375, -0.005092620849609375, -0.004425048828125, -0.01409912109375, 0.020111083984375, -0.030364990234375, 0.005229949951171875, 0.021148681640625, 0.01230621337890625, 0.024932861328125, 0.01177215576171875, 0.0198516845703125, -0.025421142578125, 0.010986328125, -0.0161895751953125, 0.01537322998046875, -0.029541015625, 0.0300445556640625, 0.02191162109375, 0.0255584716796875, 0.02264404296875, -0.0234832763671875, 0.006526947021484375, -0.059814453125, -0.0011577606201171875, 0.0021800994873046875, -0.08502197265625, -0.043701171875, -0.02703857421875, 0.00382232666015625, 0.033447265625, -0.049346923828125, 0.0279693603515625, 0.022491455078125, 0.04193115234375, 0.013336181640625, 0.0400390625, -0.03662109375, -0.0009870529174804688, 0.014801025390625, 0.02703857421875, 0.01012420654296875, 0.0013818740844726562, -0.050018310546875, -0.03564453125, -0.009368896484375, -0.002201080322265625, 0.0419921875, -0.0091400146484375, 0.0296173095703125, -0.0423583984375, 0.00986480712890625, -0.06121826171875, 0.0096893310546875, 0.0229034423828125, 0.010894775390625, 0.02008056640625, -0.013763427734375, -0.021453857421875, -0.0360107421875, -0.00786590576171875, -0.0189208984375, -0.0181732177734375, -0.0216064453125, -0.002452850341796875, 0.004058837890625, 0.00390625, -0.0098114013671875, -0.00916290283203125, 0.0238037109375, 0.0038585662841796875, -0.01508331298828125, 0.020355224609375, 0.0199432373046875, 0.0241241455078125, 0.03564453125, 0.0433349609375, 0.0157318115234375, -0.035064697265625, -0.03558349609375, -0.02569580078125, -0.06488037109375, -0.01422119140625, 0.042022705078125, -0.060516357421875, 0.0528564453125, 0.044677734375, 0.0017786026000976562, 0.049652099609375, -0.0021495819091796875, -0.004680633544921875, -0.006511688232421875, -0.01447296142578125, 0.0028743743896484375, 0.013702392578125, 0.056488037109375, -0.038726806640625, 0.020355224609375, -0.0088348388671875, 0.0167083740234375, 0.0430908203125, -0.056121826171875, 0.041839599609375, 0.02667236328125, -0.0440673828125, 0.060333251953125, 0.09674072265625, 0.0180511474609375, 0.049713134765625, 0.020751953125, 0.0009489059448242188, -0.0030384063720703125, -0.0027828216552734375, 0.0283203125, 0.00738525390625, 0.038848876953125, -0.01099395751953125, -0.0097503662109375, 0.026947021484375, -0.027740478515625, 0.0333251953125, 0.01453399658203125, 0.06268310546875, -0.0195770263671875, -0.0026607513427734375, -0.0005855560302734375, -0.057464599609375, 0.037689208984375, 0.00982666015625, -0.004070281982421875, 0.0009765625, 0.0022296905517578125, -0.0176544189453125, -0.03253173828125, 0.001300811767578125, 0.00510406494140625, -0.002773284912109375, 0.01427459716796875, 0.0295867919921875, 0.00864410400390625, 0.027862548828125, -0.058624267578125, -0.02581787109375, -0.001064300537109375, 0.0032939910888671875, 0.0257568359375, -0.0213165283203125, 0.006195068359375, -0.00453948974609375, 0.0234222412109375, -0.028900146484375, 0.00299835205078125, 0.047119140625, 0.00585174560546875, 0.010528564453125, 0.05902099609375, -0.0138702392578125, 0.04107666015625, 0.01320648193359375, 0.0010843276977539062, 0.045074462890625, -0.00545501708984375, -0.0096893310546875, -0.0104827880859375, -0.0026912689208984375, -0.0061187744140625, -0.0207061767578125, -0.003719329833984375, 0.015167236328125, -0.0006117820739746094, 0.043914794921875, -0.044647216796875, -0.0157623291015625, 0.0125885009765625, -0.0282440185546875, 0.02117919921875, 0.0006728172302246094, 0.038177490234375, -0.055694580078125, -0.04095458984375, 0.020294189453125, -0.049774169921875, -0.0277099609375, -0.01244354248046875, -0.035552978515625, 0.1295166015625, -0.0175933837890625, 0.03350830078125, 0.0280609130859375, 0.04833984375, -0.048004150390625, 0.01438140869140625, -0.0406494140625, 0.055908203125, -0.01537322998046875, 0.053955078125, -0.06695556640625, -0.0210418701171875, 0.0145721435546875, 0.048553466796875, 0.03973388671875, 0.0022640228271484375, -0.0262451171875, -0.0185089111328125, 0.01151275634765625, 0.0265960693359375, -0.00525665283203125, 0.028656005859375, 0.0029296875, -0.030670166015625, 0.046478271484375, -0.0121612548828125, 0.03472900390625, -0.0233917236328125, -0.0041961669921875, 0.0023174285888671875, 0.0205078125, 0.040924072265625, -0.018096923828125, 0.051513671875, 0.0152740478515625, -0.0225372314453125, 0.0086822509765625, -0.04449462890625, 0.0031909942626953125, 0.051116943359375, -0.026092529296875, 0.0306854248046875, -0.00043892860412597656, -0.03143310546875, 0.02471923828125, -0.026275634765625, -0.01538848876953125, 0.01580810546875, 0.0244140625, -0.02447509765625, -0.01361846923828125, -0.0174713134765625, 0.0140228271484375, -0.01337432861328125, 0.030059814453125, 0.010223388671875, 0.0140533447265625, -0.041778564453125, 0.0028781890869140625, 0.0445556640625, 0.05340576171875, -0.0311126708984375, -0.04949951171875, 0.01366424560546875, 0.0008602142333984375, -0.0110626220703125, 0.043487548828125, 0.025390625, -0.02880859375, 0.0163116455078125, 0.0015211105346679688, -0.0060882568359375, 0.0019664764404296875, 0.0367431640625, 0.0176544189453125, 0.034942626953125, -0.040008544921875, -0.012939453125, -0.058380126953125, 0.0197906494140625, 0.00930023193359375, 0.07763671875, 0.032470703125, 0.06573486328125, -0.03271484375, -0.047760009765625, -0.0193939208984375, 0.034393310546875, -0.00905609130859375, 0.031646728515625, -0.04278564453125, -0.0435791015625, 0.0367431640625, 0.0318603515625, 0.04168701171875, 0.074951171875, 0.048370361328125, 0.025421142578125, 0.029937744140625, 0.0287933349609375, 0.06512451171875, -0.00476837158203125, -0.0062255859375, -0.04852294921875, 0.047821044921875, 0.03155517578125, 0.0142059326171875, 0.0233154296875, -0.00510406494140625, 0.0478515625, -0.00931549072265625, 0.012786865234375, -0.0138702392578125, -0.040771484375, 0.01068878173828125, -0.0178985595703125, 0.052734375, 0.0034027099609375, -0.1326904296875, -0.038330078125, -0.0283203125, -0.0189971923828125, 0.041900634765625, 0.046051025390625, -0.0222015380859375, 0.03302001953125, -0.0059356689453125, -0.014617919921875, -0.01374053955078125, -0.01256561279296875, 0.044097900390625, 0.0293121337890625, -0.012664794921875, 0.0233154296875, -0.053802490234375, -0.007724761962890625, -0.0106658935546875, 0.00437164306640625, 0.0281219482421875, 0.06097412109375, 0.0195465087890625, 0.0040283203125, -0.026458740234375, 0.00786590576171875, -0.00266265869140625, -0.02178955078125, 0.0021514892578125, 0.045745849609375, 0.0156707763671875, -0.0281524658203125, 0.0262298583984375, -0.015869140625, 0.0419921875, -0.056488037109375, -0.039886474609375, -0.01541900634765625, 0.02435302734375, -0.01251220703125, 0.0240631103515625, -0.02288818359375, -0.006000518798828125, -0.036651611328125, -0.0194244384765625, 0.037628173828125, 0.00591278076171875, -0.03277587890625, 0.0311431884765625, -0.0159759521484375, -0.0228424072265625, -0.0047454833984375, -0.018280029296875, -0.021484375, 0.0276031494140625, 0.001529693603515625, 0.011077880859375, 0.03173828125, -0.0211334228515625, 0.045379638671875, -0.007297515869140625, 0.0301055908203125, 0.034088134765625, -0.050811767578125, 0.04949951171875, 0.021240234375, 0.0128173828125, -0.05511474609375, -0.01343536376953125, 0.048553466796875, -0.00420379638671875, 0.012298583984375, -0.015777587890625, -0.0394287109375, -0.0400390625, -0.0280303955078125, 0.01273345947265625, -0.0458984375, -0.04241943359375, -0.0889892578125, 0.032928466796875, 0.0222015380859375, 0.00516510009765625, -0.0892333984375, 0.052642822265625, -0.0210723876953125, 0.08074951171875, -0.03717041015625, 0.059661865234375, -0.0263824462890625, 0.0007162094116210938, -0.060760498046875, -0.05621337890625, -0.01361083984375, 0.0679931640625, -0.02447509765625, -0.01041412353515625, 0.01161956787109375, -0.027374267578125, -0.006351470947265625, 0.0018396377563476562, 0.028839111328125, 0.039459228515625, 0.034271240234375, -0.0124359130859375, 0.01166534423828125, 0.007411956787109375, -0.01361846923828125, 0.00829315185546875, -0.003726959228515625, 0.004558563232421875, -0.0029239654541015625, 0.009063720703125, -0.01525115966796875, -0.004974365234375, -0.033111572265625, -0.05877685546875, 0.0249786376953125, 0.01326751708984375, -0.0284881591796875, 0.011749267578125, 0.0159759521484375, -0.0369873046875, 0.0154266357421875, 0.00400543212890625, -0.01448822021484375, 0.0298919677734375, 0.027587890625, -0.0116729736328125, 0.036102294921875, 0.00530242919921875, -0.0039005279541015625, -0.0284271240234375, -0.01129150390625, -0.01168060302734375, -0.01242828369140625, 0.033966064453125, -0.0261993408203125, 0.021697998046875, 0.0183258056640625, -0.066650390625, -0.0382080078125, -0.04254150390625, -0.01263427734375, -0.026092529296875, -0.0102081298828125, -0.0269012451171875, 0.0192108154296875, 0.11065673828125, 0.06903076171875, 0.025970458984375, -0.06103515625, 0.003833770751953125, -0.0250701904296875, -0.0271453857421875, 0.0116119384765625, 0.0165252685546875, -0.04913330078125, 0.0098876953125, 0.0291748046875, 0.0229949951171875, -0.0095977783203125, 0.00627899169921875, -0.0048370361328125, -0.02642822265625, 0.0389404296875, 0.0264739990234375, -0.05401611328125, -0.0186920166015625, 0.122314453125, -0.06475830078125, -0.0233154296875, 0.033599853515625, 0.009765625, 0.045501708984375, -0.00731658935546875, 0.01110076904296875, 0.01308441162109375, -0.044586181640625, 0.02313232421875, 0.00019276142120361328, 0.0212249755859375, -0.05224609375, -0.0070953369140625, -0.0030689239501953125, 0.0095977783203125, -0.005031585693359375, 0.01296234130859375, 0.0022335052490234375, 0.0169219970703125, -0.0214996337890625, 0.07080078125, -0.05841064453125, -0.00687408447265625, -0.0292510986328125, -0.00870513916015625, -0.0089263916015625, 0.036865234375, 0.05816650390625, -0.007350921630859375, 0.006511688232421875, 0.00214385986328125, 0.00923919677734375, -0.0465087890625, 0.045684814453125, -0.0127716064453125, 0.00928497314453125, 0.0221099853515625 ]
ce311e9013a8ffb1ec3ce68a9c9a786f3aacad8a
Wordpress Stackexchange Q: Output in XHTML or HTML 5 for plugins? I'm currently writing a plugin that displays some images - possibly with captions. So, I was wondering whether to use XHTML (<div>s and <span>s) or HTML 5 (<figure> and <figurecaption>) for output. I image that the answer to this question depends somewhat on the theme being used. Is there a way to figure out which output format the user's theme is using? Or what's the best approach here? What's Wordpress doing to solve this issue? A: WordPress will not help you here. In back-end use conservative XHTML 5: <br />, but not <figure> (see WP coding standards). In front-end … it is hard to determine the Doctype and the usage of polyfills, so stay with regular HTML as long as possible or load the necessary polyfills from your plugin.
Q: Output in XHTML or HTML 5 for plugins? I'm currently writing a plugin that displays some images - possibly with captions. So, I was wondering whether to use XHTML (<div>s and <span>s) or HTML 5 (<figure> and <figurecaption>) for output. I image that the answer to this question depends somewhat on the theme being used. Is there a way to figure out which output format the user's theme is using? Or what's the best approach here? What's Wordpress doing to solve this issue? A: WordPress will not help you here. In back-end use conservative XHTML 5: <br />, but not <figure> (see WP coding standards). In front-end … it is hard to determine the Doctype and the usage of polyfills, so stay with regular HTML as long as possible or load the necessary polyfills from your plugin.
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:427064", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76984" }
[ 0.0213775634765625, -0.00702667236328125, -0.056243896484375, -0.04205322265625, 0.0195159912109375, -0.0214691162109375, 0.009307861328125, 0.03436279296875, -0.0029277801513671875, -0.0026874542236328125, -0.0177001953125, 0.00029730796813964844, -0.0260009765625, -0.032928466796875, 0.00821685791015625, -0.030059814453125, 0.0248870849609375, -0.012603759765625, 0.0169525146484375, -0.01152801513671875, 0.00902557373046875, 0.006809234619140625, 0.0096588134765625, 0.025634765625, 0.02899169921875, -0.046142578125, 0.06280517578125, -0.035491943359375, 0.0296630859375, -0.0078887939453125, 0.0245819091796875, -0.014801025390625, 0.0361328125, 0.037445068359375, -0.06658935546875, 0.0203399658203125, -0.0138397216796875, 0.0164642333984375, -0.0096893310546875, 0.0099945068359375, 0.01439666748046875, -0.00304412841796875, 0.0517578125, -0.0433349609375, 0.0202484130859375, -0.006256103515625, 0.018524169921875, -0.05682373046875, -0.035003662109375, -0.026031494140625, 0.03857421875, -0.0301361083984375, 0.05340576171875, -0.033599853515625, -0.002567291259765625, 0.02716064453125, -0.03216552734375, 0.054351806640625, 0.025177001953125, -0.00047016143798828125, -0.006744384765625, 0.01320648193359375, -0.002346038818359375, 0.01519775390625, 0.01306915283203125, 0.0050811767578125, 0.045989990234375, 0.0245513916015625, 0.0380859375, 0.0177154541015625, -0.027252197265625, 0.0122833251953125, 0.017791748046875, -0.0765380859375, -0.01544189453125, 0.054931640625, -0.02557373046875, -0.04083251953125, 0.0129852294921875, -0.038055419921875, -0.0071868896484375, 0.024200439453125, -0.0543212890625, -0.04534912109375, 0.0253448486328125, -0.015411376953125, -0.006763458251953125, -0.005084991455078125, -0.06353759765625, 0.0012149810791015625, -0.047119140625, -0.0022125244140625, -0.045623779296875, -0.03424072265625, -0.006374359130859375, -0.009490966796875, -0.01512908935546875, -0.01482391357421875, -0.002101898193359375, 0.012451171875, 0.00888824462890625, -0.04150390625, 0.0221405029296875, -0.0161590576171875, 0.01300048828125, 0.0355224609375, -0.0173797607421875, 0.01285552978515625, 0.06292724609375, 0.03472900390625, 0.005184173583984375, 0.027435302734375, 0.0171661376953125, -0.03131103515625, 0.0031414031982421875, 0.0330810546875, 0.023529052734375, 0.01715087890625, 0.01678466796875, -0.0027484893798828125, -0.0008015632629394531, 0.008819580078125, 0.03289794921875, -0.0013322830200195312, -0.0123138427734375, 0.0021343231201171875, -0.006557464599609375, -0.048126220703125, -0.0251922607421875, -0.002803802490234375, -0.006496429443359375, 0.0108642578125, 0.01032257080078125, 0.049713134765625, 0.0022068023681640625, 0.0008707046508789062, 0.0018558502197265625, -0.0283355712890625, -0.027923583984375, 0.0361328125, -0.057098388671875, -0.04217529296875, 0.036834716796875, -0.055694580078125, -0.0265045166015625, -0.01253509521484375, 0.0027294158935546875, 0.0633544921875, -0.012481689453125, -0.11163330078125, 0.1123046875, -0.031951904296875, 0.030487060546875, -0.0184326171875, 0.0401611328125, -0.03851318359375, 0.0181427001953125, -0.0295257568359375, 0.01496124267578125, 0.0013208389282226562, 0.01457977294921875, 0.021453857421875, 0.0570068359375, 0.01177215576171875, -0.00731658935546875, -0.01702880859375, -0.044403076171875, 0.004985809326171875, 0.01511383056640625, 0.0132904052734375, -0.038299560546875, -0.054443359375, -0.0086517333984375, 0.01506805419921875, -0.01136016845703125, 0.055450439453125, -0.01678466796875, -0.010528564453125, 0.04071044921875, 0.041961669921875, 0.00835418701171875, -0.0106964111328125, 0.03802490234375, 0.0008625984191894531, -0.03271484375, -0.01280975341796875, 0.01079559326171875, 0.05645751953125, 0.03009033203125, 0.0308380126953125, 0.004291534423828125, -0.02178955078125, -0.00946807861328125, 0.044097900390625, 0.01212310791015625, -0.060638427734375, -0.049072265625, -0.029693603515625, -0.01386260986328125, -0.00960540771484375, -0.003875732421875, 0.03192138671875, -0.03094482421875, 0.00519561767578125, -0.026458740234375, -0.0016841888427734375, 0.004894256591796875, 0.0309906005859375, 0.00848388671875, 0.054473876953125, 0.0156402587890625, 0.0286712646484375, -0.0350341796875, 0.01403045654296875, 0.0298004150390625, 0.028472900390625, 0.0215911865234375, 0.04327392578125, 0.045379638671875, 0.00795745849609375, 0.06591796875, -0.003963470458984375, 0.03955078125, 0.046966552734375, 0.0225372314453125, 0.0215301513671875, -0.0222015380859375, -0.0037975311279296875, 0.01617431640625, 0.016204833984375, 0.003231048583984375, 0.025146484375, 0.0212554931640625, 0.031829833984375, -0.019866943359375, -0.0153350830078125, 0.032989501953125, -0.043243408203125, 0.0218048095703125, 0.03375244140625, 0.055908203125, 0.031463623046875, -0.0096282958984375, -0.06927490234375, 0.043975830078125, -0.0171356201171875, 0.04217529296875, -0.0787353515625, -0.01666259765625, -0.037322998046875, 0.0157012939453125, -0.0310821533203125, 0.037811279296875, -0.06182861328125, 0.0181732177734375, 0.018951416015625, 0.0011682510375976562, 0.0181427001953125, -0.019989013671875, 0.007537841796875, 0.0015611648559570312, -0.0035915374755859375, -0.0256500244140625, -0.0120086669921875, 0.019287109375, -0.004886627197265625, -0.005634307861328125, -0.00838470458984375, -0.038116455078125, 0.01172637939453125, 0.03753662109375, -0.02032470703125, 0.004337310791015625, 0.06719970703125, 0.02606201171875, 0.035919189453125, -0.046051025390625, -0.02862548828125, 0.00785064697265625, 0.0550537109375, -0.0096893310546875, -0.01806640625, -0.035491943359375, -0.004734039306640625, 0.012420654296875, -0.002719879150390625, 0.0187225341796875, 0.023162841796875, 0.004791259765625, 0.0419921875, 0.047149658203125, 0.0290374755859375, -0.0060577392578125, 0.010528564453125, -0.02923583984375, 0.018157958984375, -0.00458526611328125, -0.09405517578125, 0.08892822265625, -0.0733642578125, 0.053192138671875, 0.08612060546875, -0.0285491943359375, 0.051971435546875, -0.0123748779296875, 0.0123748779296875, -0.008026123046875, 0.0017690658569335938, -0.01190185546875, -0.00110626220703125, -0.04388427734375, 0.01531219482421875, 0.0199737548828125, 0.00627899169921875, -0.01163482666015625, -0.0340576171875, -0.016876220703125, 0.006214141845703125, -0.083984375, -0.05596923828125, -0.0007729530334472656, -0.032684326171875, 0.00018155574798583984, 0.048370361328125, -0.0034236907958984375, -0.0177154541015625, 0.0802001953125, -0.0037517547607421875, -0.00861358642578125, -0.042388916015625, -0.0699462890625, -0.0904541015625, -0.098876953125, 0.00618743896484375, 0.0023136138916015625, 0.0321044921875, 0.0013599395751953125, 0.03875732421875, -0.00574493408203125, -0.0667724609375, -0.0374755859375, 0.01270294189453125, 0.006256103515625, -0.00852203369140625, 0.0243377685546875, -0.05242919921875, -0.00653076171875, 0.007129669189453125, 0.006092071533203125, -0.0016794204711914062, -0.004573822021484375, -0.00015366077423095703, -0.03338623046875, -0.040985107421875, -0.0187225341796875, 0.006549835205078125, 0.0170745849609375, -0.026214599609375, -0.004184722900390625, -0.056671142578125, 0.03802490234375, -0.0090484619140625, 0.005527496337890625, 0.0250244140625, -0.00878143310546875, -0.022247314453125, 0.00894927978515625, -0.0139007568359375, -0.006145477294921875, -0.00566864013671875, 0.031158447265625, -0.018524169921875, 0.005313873291015625, -0.018463134765625, -0.0204315185546875, -0.03741455078125, 0.0223236083984375, -0.0272216796875, -0.037322998046875, -0.021636962890625, -0.0009551048278808594, -0.0304107666015625, -0.00008940696716308594, -0.05535888671875, -0.043212890625, 0.03546142578125, -0.036590576171875, -0.07037353515625, 0.035400390625, 0.003459930419921875, 0.0565185546875, 0.059967041015625, -0.0638427734375, -0.0112152099609375, -0.0172882080078125, -0.0099334716796875, 0.032196044921875, -0.0008559226989746094, -0.04046630859375, -0.025421142578125, -0.038726806640625, 0.005413055419921875, 0.0008215904235839844, -0.020263671875, 0.00316619873046875, 0.018280029296875, -0.0229644775390625, -0.01457977294921875, 0.006267547607421875, 0.033233642578125, -0.0068359375, -0.0085906982421875, -0.02508544921875, 0.0082244873046875, 0.0088348388671875, -0.020263671875, -0.034423828125, -0.0267486572265625, -0.01435089111328125, 0.0655517578125, 0.035675048828125, -0.042449951171875, -0.00090789794921875, 0.034332275390625, -0.023223876953125, 0.06011962890625, -0.020050048828125, 0.034637451171875, -0.0391845703125, -0.0401611328125, 0.00359344482421875, -0.041473388671875, -0.0297698974609375, -0.0216827392578125, 0.01209259033203125, 0.03216552734375, 0.0015420913696289062, -0.0163116455078125, -0.01465606689453125, 0.0031280517578125, -0.0243377685546875, 0.009674072265625, -0.057037353515625, -0.00872802734375, -0.0195770263671875, -0.04473876953125, 0.0131683349609375, -0.04266357421875, 0.043243408203125, 0.0299224853515625, 0.0140228271484375, -0.01261138916015625, 0.052734375, 0.010894775390625, -0.0401611328125, -0.0181884765625, 0.01334381103515625, 0.045684814453125, 0.043670654296875, 0.031494140625, 0.0185546875, -0.0294189453125, 0.028411865234375, 0.041656494140625, 0.045623779296875, -0.048065185546875, 0.00962066650390625, -0.00240325927734375, 0.0007905960083007812, 0.0281982421875, 0.0386962890625, 0.0153656005859375, -0.0118255615234375, -0.0150299072265625, 0.03363037109375, -0.00562286376953125, -0.0176849365234375, -0.001216888427734375, 0.0009403228759765625, 0.0015211105346679688, -0.005191802978515625, 0.00870513916015625, 0.024627685546875, 0.034637451171875, 0.0308380126953125, -0.006465911865234375, -0.01177215576171875, -0.005596160888671875, -0.01157379150390625, 0.0273284912109375, -0.006816864013671875, -0.0252227783203125, 0.0153350830078125, 0.01776123046875, -0.0447998046875, 0.0191497802734375, -0.01373291015625, 0.0079803466796875, 0.004428863525390625, -0.0301666259765625, -0.01253509521484375, 0.0004901885986328125, -0.0352783203125, -0.0010385513305664062, 0.040618896484375, 0.031005859375, 0.0023136138916015625, 0.00647735595703125, -0.013031005859375, 0.01092529296875, 0.0190277099609375, -0.043243408203125, -0.03759765625, -0.01177978515625, -0.0214691162109375, 0.033538818359375, 0.01038360595703125, 0.001735687255859375, 0.00839996337890625, -0.01922607421875, -0.0245819091796875, -0.0157012939453125, 0.0226593017578125, 0.051177978515625, -0.0418701171875, -0.01052093505859375, -0.006134033203125, 0.011566162109375, -0.01128387451171875, -0.0105438232421875, 0.034423828125, -0.00637054443359375, -0.0281524658203125, -0.01776123046875, 0.022674560546875, 0.03094482421875, -0.0260162353515625, 0.056854248046875, -0.041412353515625, -0.0506591796875, -0.062164306640625, 0.0030269622802734375, 0.067626953125, 0.00601959228515625, -0.01727294921875, 0.0016527175903320312, 0.04229736328125, 0.0297088623046875, -0.024658203125, -0.062225341796875, 0.05780029296875, 0.08074951171875, -0.0517578125, -0.0078887939453125, 0.0081634521484375, -0.05218505859375, -0.02471923828125, -0.00402069091796875, -0.01055145263671875, 0.0244903564453125, -0.077392578125, 0.0051116943359375, -0.002414703369140625, 0.033233642578125, -0.0355224609375, 0.0452880859375, 0.0301055908203125, 0.0472412109375, -0.041015625, -0.01343536376953125, -0.0460205078125, -0.0212249755859375, -0.00986480712890625, 0.0018720626831054688, -0.025421142578125, -0.006488800048828125, -0.0002053976058959961, 0.0233306884765625, -0.042266845703125, -0.0302734375, 0.0146026611328125, 0.0170745849609375, 0.011749267578125, 0.06298828125, -0.02972412109375, 0.03802490234375, 0.02886962890625, 0.062255859375, -0.004360198974609375, 0.007541656494140625, 0.0066375732421875, -0.0384521484375, 0.01806640625, -0.048248291015625, -0.0186004638671875, 0.017059326171875, -0.031158447265625, -0.03680419921875, -0.039581298828125, 0.0087127685546875, 0.02386474609375, -0.01175689697265625, 0.0000565648078918457, -0.0112457275390625, 0.01275634765625, -0.029052734375, -0.016845703125, 0.050506591796875, -0.0198974609375, -0.0215911865234375, 0.0033111572265625, -0.03094482421875, 0.033111572265625, 0.01200103759765625, -0.0073089599609375, 0.0160369873046875, 0.01419830322265625, -0.0232086181640625, 0.0017099380493164062, 0.004482269287109375, 0.032501220703125, 0.02587890625, 0.03466796875, 0.02911376953125, 0.0272216796875, -0.0072479248046875, -0.021087646484375, 0.0367431640625, 0.00949859619140625, -0.03668212890625, 0.0198974609375, -0.040252685546875, 0.0210723876953125, 0.062103271484375, 0.0743408203125, -0.07659912109375, 0.00806427001953125, 0.01355743408203125, -0.04925537109375, -0.004489898681640625, -0.02252197265625, -0.0008249282836914062, -0.01568603515625, 0.060211181640625, 0.0391845703125, -0.0029582977294921875, 0.039886474609375, -0.0005755424499511719, -0.007701873779296875, 0.0458984375, 0.053375244140625, 0.006793975830078125, -0.09881591796875, -0.036163330078125, 0.046630859375, -0.0187530517578125, 0.00920867919921875, 0.006160736083984375, -0.00876617431640625, -0.0182342529296875, -0.01424407958984375, 0.01163482666015625, -0.022705078125, -0.00839996337890625, 0.03009033203125, 0.0019512176513671875, 0.031585693359375, 0.07672119140625, -0.00881195068359375, -0.00012791156768798828, 0.053070068359375, -0.0010747909545898438, 0.0183868408203125, 0.0102081298828125, 0.01174163818359375, 0.024688720703125, -0.06396484375, 0.0038604736328125, -0.0445556640625, 0.054931640625, 0.0006957054138183594, 0.033203125, 0.054595947265625, 0.0183563232421875, -0.05126953125, 0.043853759765625, -0.040771484375, -0.02764892578125, -0.0228271484375, 0.0118560791015625, -0.048095703125, -0.0124969482421875, -0.020721435546875, -0.016632080078125, 0.006816864013671875, -0.0192718505859375, -0.07440185546875, 0.043212890625, -0.007228851318359375, 0.050018310546875, -0.005336761474609375, 0.01194000244140625, 0.0126495361328125, -0.02093505859375, 0.015045166015625, -0.011566162109375, -0.048736572265625, 0.0035991668701171875, -0.0036411285400390625, 0.00301361083984375, -0.00835418701171875, 0.0233612060546875, -0.00574493408203125, -0.0016031265258789062, -0.05291748046875, 0.025054931640625, 0.04632568359375, 0.021270751953125, 0.025177001953125, 0.0570068359375, 0.008453369140625, 0.0256500244140625, 0.0313720703125, -0.036529541015625, 0.031341552734375, -0.050994873046875, 0.00623321533203125, 0.030914306640625, 0.0011663436889648438, -0.01456451416015625, 0.0167083740234375, 0.010345458984375, -0.040618896484375, 0.020355224609375, 0.01183319091796875, 0.006404876708984375, -0.024932861328125, 0.0474853515625, 0.05169677734375, -0.09576416015625, 0.024932861328125, -0.04986572265625, 0.0655517578125, -0.002166748046875, 0.0214385986328125, 0.0045166015625, 0.015594482421875, 0.02239990234375, -0.0198516845703125, 0.0142822265625, 0.02197265625, -0.0270843505859375, -0.01348876953125, -0.0063323974609375, 0.0203704833984375, -0.043182373046875, -0.0295257568359375, 0.052276611328125, 0.0101165771484375, -0.0007963180541992188, -0.00550079345703125, 0.009552001953125, 0.04168701171875, 0.03765869140625, 0.007099151611328125, 0.078369140625, -0.0113067626953125, 0.017242431640625, 0.0083465576171875, -0.00513458251953125, -0.0229034423828125, 0.027618408203125, -0.00931549072265625, -0.01428985595703125, -0.0012149810791015625, 0.0088348388671875, -0.044586181640625, 0.026214599609375, 0.003566741943359375, 0.045196533203125, 0.0162353515625, 0.05084228515625, -0.0186004638671875, -0.017730712890625, -0.0038471221923828125, 0.0095672607421875, -0.007198333740234375, 0.00826263427734375, -0.01873779296875, -0.02020263671875, 0.00478363037109375, 0.0303955078125, -0.00653839111328125, 0.0032405853271484375, 0.0310516357421875, 0.040374755859375, -0.0230865478515625, -0.024322509765625, 0.0234527587890625, -0.006649017333984375, 0.017730712890625, -0.041534423828125, 0.0162506103515625, 0.0219268798828125, -0.0079803466796875, -0.015380859375, -0.0196685791015625, 0.06280517578125, -0.050323486328125, 0.07391357421875, -0.01702880859375, -0.0186767578125, 0.00989532470703125, -0.038970947265625, 0.0538330078125, -0.032806396484375, -0.01654052734375, 0.0020275115966796875, -0.006771087646484375, -0.04376220703125, -0.000354766845703125, 0.0249481201171875, -0.014862060546875, 0.034698486328125, 0.00011980533599853516, 0.00023734569549560547, -0.01438140869140625, 0.00859832763671875, 0.0148773193359375, 0.0280914306640625, 0.0104217529296875, 0.01500701904296875, 0.0113525390625, 0.0010747909545898438, -0.00981903076171875, 0.052032470703125, 0.0124359130859375, 0.039825439453125, -0.0296173095703125, 0.0341796875, 0.0215911865234375, -0.0149688720703125, -0.00655364990234375, 0.0194244384765625, 0.037261962890625, -0.019134521484375, -0.037689208984375, -0.027435302734375, -0.06158447265625, -0.0174407958984375, 0.0110015869140625, 0.003879547119140625, -0.0174407958984375, -0.022735595703125, 0.04278564453125, 0.03369140625, 0.0301055908203125, -0.0011739730834960938, -0.036407470703125, -0.04571533203125, 0.0112762451171875, 0.0250091552734375, 0.04754638671875, -0.0185546875, 0.03973388671875, 0.0225830078125, -0.0224761962890625, 0.04144287109375, -0.059234619140625, 0.0679931640625, 0.035064697265625, -0.014068603515625, -0.023529052734375, 0.03338623046875, -0.00605010986328125, 0.036163330078125, -0.0037555694580078125, 0.0770263671875, 0.035369873046875, -0.04010009765625, 0.01195526123046875, 0.04443359375, 0.041412353515625, -0.031707763671875, 0.0230560302734375, 0.033538818359375, -0.005340576171875, 0.01385498046875, 0.005641937255859375, -0.01395416259765625, -0.038848876953125, -0.00737762451171875, 0.001983642578125, -0.01366424560546875, -0.0163726806640625, -0.0215911865234375, -0.037200927734375, 0.02276611328125, -0.0033702850341796875, 0.01032257080078125, -0.020477294921875, -0.01271820068359375, -0.0292510986328125, 0.01465606689453125, -0.02020263671875, -0.0003902912139892578, 0.0606689453125, -0.01629638671875, -0.054534912109375, -0.0177154541015625, 0.03387451171875, -0.03448486328125, 0.03753662109375, 0.054351806640625, -0.05255126953125, -0.0118408203125, 0.033966064453125, 0.04534912109375, 0.0850830078125, 0.01497650146484375, 0.0035343170166015625, -0.00690460205078125, 0.01421356201171875, -0.03082275390625, -0.030670166015625, 0.02484130859375, -0.0026397705078125, -0.035369873046875, 0.01320648193359375, -0.031097412109375, -0.00913238525390625, -0.056915283203125, -0.1005859375, 0.049774169921875, -0.0008616447448730469, -0.044769287109375, 0.01806640625, -0.00347900390625, 0.0162811279296875, -0.04266357421875, 0.0011234283447265625, -0.00885009765625, -0.035064697265625, -0.007656097412109375, 0.0234222412109375, 0.0010480880737304688, 0.01102447509765625, 0.004489898681640625, -0.031890869140625, 0.0294952392578125, 0.027618408203125, 0.0183258056640625, -0.033599853515625, 0.024993896484375, 0.001659393310546875, 0.0165252685546875, -0.0135955810546875, 0.0252532958984375, 0.0163726806640625, 0.0255279541015625, -0.0144195556640625, -0.0092315673828125, -0.000056684017181396484, 0.004718780517578125, 0.03509521484375, 0.0212249755859375, 0.0018453598022460938, -0.02105712890625, 0.01021575927734375, -0.034210205078125, -0.023712158203125, 0.00522613525390625, 0.0103759765625, -0.04803466796875, 0.01483154296875, 0.0130462646484375, 0.007373809814453125, -0.0032367706298828125, 0.04638671875, -0.00360107421875, -0.022369384765625, 0.00606536865234375, -0.05523681640625, 0.00031304359436035156, -0.0098114013671875, 0.043182373046875, -0.0183868408203125, 0.015899658203125, -0.0138702392578125, 0.01523590087890625, 0.0312347412109375, 0.001468658447265625, 0.01061248779296875, 0.00339508056640625, -0.0204010009765625, 0.00836181640625, 0.0198211669921875, 0.040313720703125, -0.00994873046875, -0.018524169921875, 0.0078125, 0.037445068359375, -0.00039458274841308594, 0.06597900390625, -0.0175323486328125, 0.0165863037109375, 0.00904083251953125, -0.06390380859375, -0.03082275390625, -0.0117645263671875, -0.0197906494140625, 0.001476287841796875, 0.0289306640625, -0.0093536376953125, 0.08160400390625, -0.035858154296875, 0.01377105712890625, -0.007564544677734375, 0.0187530517578125, -0.0297698974609375, -0.004486083984375, -0.055084228515625, 0.0071563720703125, 0.00455474853515625 ]
4ec92b2cef2879c5a1804c473360e5530e313a53
Wordpress Stackexchange Q: Load plugin on specific page only I have plugin I would like to use only on the contact page, however the script and css is being loaded on every page. Aside from the increased http requests, it is also causing another script to not work properly on another page. Is there a way to stop this plugin from loading anywhere else on the site? I know how to do this with normal scripts in the header, but I am not sure how to do this with a plugin that automatically injects scripts into the header. Thanks in advance. A: I have figured it out. There is a good explanation here You edit the wp.config file with the scripts you wish to not load... define('WPCF7_LOAD_JS', false); ...and then manually enqueue them on the pages you wish to load the script.
Q: Load plugin on specific page only I have plugin I would like to use only on the contact page, however the script and css is being loaded on every page. Aside from the increased http requests, it is also causing another script to not work properly on another page. Is there a way to stop this plugin from loading anywhere else on the site? I know how to do this with normal scripts in the header, but I am not sure how to do this with a plugin that automatically injects scripts into the header. Thanks in advance. A: I have figured it out. There is a good explanation here You edit the wp.config file with the scripts you wish to not load... define('WPCF7_LOAD_JS', false); ...and then manually enqueue them on the pages you wish to load the script. A: Try using if(is_page('contact-page-slug')){ to add your functions to that page only. A: Try this CODE: if ( ! is_page('THE NAME OF THE PAGE WHERE YOU WANT CF7 TO RUN') ) { add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' ); } Source: From the official CF7 page.
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:427101", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77136" }
[ 0.060150146484375, 0.007480621337890625, -0.0160369873046875, -0.05419921875, -0.00484466552734375, -0.017913818359375, -0.0216217041015625, -0.006500244140625, -0.0188751220703125, -0.0291748046875, -0.06817626953125, 0.04205322265625, -0.060302734375, -0.00113677978515625, 0.0270233154296875, -0.06829833984375, 0.033905029296875, -0.0233001708984375, 0.00397491455078125, -0.0201568603515625, 0.0208740234375, 0.00640106201171875, -0.0080413818359375, 0.0819091796875, 0.005298614501953125, -0.0306396484375, 0.0703125, -0.00032138824462890625, -0.01074981689453125, -0.036834716796875, 0.01531219482421875, 0.0194244384765625, 0.010345458984375, 0.060394287109375, -0.07733154296875, -0.06298828125, -0.02960205078125, 0.032501220703125, -0.02874755859375, 0.0518798828125, 0.0478515625, -0.0233154296875, 0.0010738372802734375, 0.08251953125, -0.0175628662109375, -0.0516357421875, 0.030975341796875, -0.041534423828125, 0.00490570068359375, -0.051971435546875, -0.01372528076171875, 0.05169677734375, 0.02667236328125, -0.01210784912109375, -0.01351165771484375, 0.00469970703125, -0.042724609375, 0.021514892578125, -0.00057220458984375, 0.0491943359375, 0.0274505615234375, 0.037109375, -0.0157012939453125, -0.007160186767578125, 0.005462646484375, -0.01267242431640625, -0.07330322265625, 0.0178375244140625, -0.044403076171875, 0.0242462158203125, 0.0521240234375, -0.06622314453125, 0.0007429122924804688, -0.00562286376953125, -0.052001953125, -0.007724761962890625, 0.0255279541015625, -0.011322021484375, 0.0172271728515625, -0.0224609375, -0.018890380859375, -0.045135498046875, -0.044281005859375, 0.0030765533447265625, -0.004573822021484375, 0.03338623046875, -0.0243377685546875, 0.00847625732421875, -0.0114288330078125, 0.005039215087890625, -0.040252685546875, 0.044342041015625, 0.01549530029296875, -0.0281219482421875, -0.053466796875, 0.011322021484375, -0.0022449493408203125, 0.03985595703125, 0.006717681884765625, 0.0306396484375, -0.0151519775390625, -0.03570556640625, 0.0273895263671875, -0.046142578125, 0.005435943603515625, 0.1046142578125, 0.002758026123046875, 0.01181793212890625, 0.01812744140625, -0.0106658935546875, 0.03973388671875, -0.00008243322372436523, 0.0260009765625, 0.04986572265625, -0.0203399658203125, -0.05059814453125, -0.03363037109375, 0.0025806427001953125, -0.031524658203125, 0.004489898681640625, -0.0013818740844726562, 0.0213775634765625, -0.0122222900390625, -0.03167724609375, -0.0015058517456054688, -0.0391845703125, -0.00926971435546875, -0.021392822265625, -0.0131378173828125, -0.042388916015625, -0.0226287841796875, 0.0165557861328125, 0.07745361328125, 0.0732421875, 0.0447998046875, 0.004833221435546875, 0.01183319091796875, 0.0237579345703125, 0.0037097930908203125, -0.0177764892578125, -0.00714111328125, -0.0322265625, -0.00688934326171875, -0.0167999267578125, -0.0218963623046875, -0.03076171875, 0.007663726806640625, 0.0513916015625, -0.01482391357421875, -0.006900787353515625, -0.0018453598022460938, 0.033905029296875, 0.050079345703125, 0.0068206787109375, 0.032501220703125, -0.0167388916015625, 0.08123779296875, -0.046356201171875, -0.032806396484375, -0.031219482421875, -0.0018033981323242188, 0.01097869873046875, -0.0071258544921875, -0.04364013671875, -0.05181884765625, -0.05426025390625, 0.01100921630859375, -0.000019848346710205078, 0.003681182861328125, -0.02423095703125, -0.03759765625, 0.006038665771484375, 0.002254486083984375, 0.001789093017578125, 0.002910614013671875, 0.0277252197265625, 0.003662109375, 0.032745361328125, 0.018890380859375, 0.00618743896484375, -0.033172607421875, -0.0458984375, 0.07037353515625, -0.05413818359375, -0.05511474609375, 0.04345703125, 0.0088958740234375, 0.0135955810546875, -0.01214599609375, 0.0024394989013671875, 0.0738525390625, 0.054046630859375, -0.033935546875, 0.00830078125, 0.0085296630859375, -0.01812744140625, 0.0065155029296875, 0.01806640625, -0.0077056884765625, -0.0191802978515625, -0.003734588623046875, -0.0072021484375, 0.01763916015625, -0.02056884765625, -0.024078369140625, -0.016387939453125, -0.0232696533203125, 0.035186767578125, 0.020172119140625, 0.024993896484375, -0.00612640380859375, 0.0042724609375, -0.006134033203125, -0.0266876220703125, -0.0289764404296875, 0.00222015380859375, -0.026336669921875, 0.054107666015625, 0.006397247314453125, 0.0272979736328125, 0.00016629695892333984, -0.03387451171875, 0.004749298095703125, -0.015838623046875, -0.006832122802734375, 0.01116943359375, -0.045379638671875, -0.01617431640625, -0.0178985595703125, -0.01971435546875, 0.02435302734375, 0.08160400390625, 0.024932861328125, 0.08416748046875, -0.01323699951171875, -0.01033782958984375, -0.00479888916015625, -0.0033245086669921875, 0.007678985595703125, 0.01409149169921875, 0.0328369140625, 0.0026397705078125, -0.0175628662109375, 0.01491546630859375, -0.0347900390625, -0.09423828125, -0.00994873046875, 0.018218994140625, 0.020660400390625, 0.0110015869140625, -0.00780487060546875, -0.0204315185546875, 0.03497314453125, -0.06878662109375, 0.02618408203125, 0.04229736328125, 0.00042819976806640625, -0.004520416259765625, 0.0012035369873046875, -0.01125335693359375, 0.0108489990234375, 0.0361328125, -0.027984619140625, 0.016143798828125, 0.00801849365234375, -0.047760009765625, 0.00942230224609375, 0.002178192138671875, 0.0188751220703125, -0.047607421875, 0.0204315185546875, -0.031707763671875, -0.00927734375, 0.00426483154296875, 0.066162109375, 0.00914764404296875, -0.05694580078125, -0.0024013519287109375, 0.030609130859375, 0.0182952880859375, 0.00039005279541015625, -0.00026345252990722656, -0.01421356201171875, 0.0032176971435546875, -0.0006809234619140625, -0.058319091796875, 0.0200958251953125, 0.035980224609375, 0.0228118896484375, 0.018310546875, 0.01904296875, 0.02557373046875, -0.004261016845703125, 0.0323486328125, 0.01384735107421875, -0.0240631103515625, 0.01313018798828125, -0.03375244140625, 0.04315185546875, -0.045196533203125, 0.022857666015625, 0.055206298828125, -0.00531005859375, 0.01157379150390625, -0.007354736328125, 0.00788116455078125, -0.0013027191162109375, -0.01203155517578125, -0.0130615234375, 0.01036834716796875, -0.04888916015625, 0.02838134765625, 0.0246124267578125, 0.058197021484375, -0.0091552734375, -0.037353515625, -0.007709503173828125, 0.0251312255859375, -0.08038330078125, -0.1060791015625, -0.0046234130859375, -0.0382080078125, 0.0039215087890625, -0.01425933837890625, -0.002536773681640625, -0.0092315673828125, 0.004177093505859375, 0.009613037109375, -0.005374908447265625, -0.04364013671875, -0.041229248046875, -0.050384521484375, -0.054443359375, 0.0263519287109375, 0.005817413330078125, 0.0006775856018066406, -0.0019464492797851562, 0.08856201171875, 0.00804901123046875, -0.054962158203125, 0.004688262939453125, 0.022857666015625, -0.024169921875, 0.0059051513671875, -0.01263427734375, -0.044403076171875, -0.0009822845458984375, 0.0019207000732421875, -0.0175628662109375, -0.0009226799011230469, 0.0226593017578125, -0.0020618438720703125, -0.007480621337890625, -0.043182373046875, -0.00803375244140625, 0.056396484375, -0.00998687744140625, -0.04852294921875, 0.02685546875, -0.0751953125, -0.025177001953125, -0.0042877197265625, -0.036102294921875, -0.008941650390625, 0.01288604736328125, -0.0169677734375, 0.0029277801513671875, 0.0089874267578125, 0.0633544921875, 0.043853759765625, -0.00022721290588378906, 0.0096588134765625, 0.06182861328125, 0.004169464111328125, 0.036041259765625, -0.058685302734375, 0.053985595703125, -0.01538848876953125, -0.01226806640625, 0.00861358642578125, -0.00836181640625, -0.0206451416015625, -0.01617431640625, -0.044952392578125, 0.0031642913818359375, 0.003173828125, -0.0169525146484375, 0.0153045654296875, 0.00014603137969970703, 0.0086669921875, -0.0009365081787109375, 0.04437255859375, -0.0299530029296875, -0.002437591552734375, 0.0167694091796875, 0.0091705322265625, -0.034393310546875, -0.0382080078125, -0.0670166015625, -0.0160980224609375, -0.08624267578125, -0.0172271728515625, -0.027923583984375, -0.022857666015625, 0.012176513671875, 0.003711700439453125, -0.0207672119140625, -0.0626220703125, 0.0177459716796875, -0.0401611328125, -0.0254974365234375, 0.002010345458984375, -0.03448486328125, -0.032257080078125, -0.0020847320556640625, -0.0231475830078125, -0.10986328125, -0.00820159912109375, -0.033966064453125, 0.059844970703125, 0.00408935546875, 0.01129150390625, -0.033050537109375, 0.03350830078125, 0.0015459060668945312, 0.03997802734375, 0.01122283935546875, -0.00897979736328125, 0.007358551025390625, 0.0238037109375, 0.047637939453125, -0.0189971923828125, 0.004779815673828125, 0.001312255859375, -0.027923583984375, 0.00312042236328125, -0.00785064697265625, -0.0128173828125, 0.0166778564453125, -0.036773681640625, -0.01428985595703125, -0.0105438232421875, 0.01032257080078125, -0.00396728515625, 0.005092620849609375, -0.0121002197265625, 0.00567626953125, 0.01073455810546875, -0.0099029541015625, 0.0025196075439453125, -0.006439208984375, 0.0237579345703125, 0.032684326171875, 0.034637451171875, -0.01280975341796875, -0.0095367431640625, 0.0352783203125, 0.038970947265625, 0.0075225830078125, 0.07012939453125, 0.0106353759765625, -0.019683837890625, 0.08380126953125, 0.021148681640625, 0.04449462890625, -0.00844573974609375, 0.06463623046875, 0.0021305084228515625, -0.033477783203125, 0.051177978515625, 0.0183868408203125, -0.0672607421875, 0.00820159912109375, -0.0010385513305664062, -0.007244110107421875, 0.00787353515625, 0.014190673828125, -0.0118865966796875, 0.03192138671875, -0.00909423828125, -0.0033969879150390625, -0.0186920166015625, 0.03564453125, 0.053253173828125, 0.06341552734375, -0.01325225830078125, 0.052825927734375, 0.048553466796875, -0.01248931884765625, 0.034820556640625, 0.049285888671875, 0.0012521743774414062, 0.01123809814453125, 0.06549072265625, -0.0117950439453125, -0.0258026123046875, -0.009063720703125, 0.030181884765625, 0.008758544921875, -0.018951416015625, -0.007770538330078125, -0.0175323486328125, -0.0253753662109375, 0.002521514892578125, 0.038604736328125, 0.0295257568359375, -0.0179290771484375, 0.01236724853515625, -0.02166748046875, 0.019866943359375, -0.01317596435546875, -0.0151519775390625, 0.027069091796875, -0.004062652587890625, -0.0146942138671875, -0.01015472412109375, 0.053863525390625, -0.01432037353515625, 0.02001953125, -0.00215911865234375, 0.03179931640625, 0.0238494873046875, 0.0089874267578125, 0.01097869873046875, 0.01751708984375, -0.0048828125, -0.00705718994140625, 0.0134735107421875, -0.0279083251953125, -0.0013790130615234375, 0.0192718505859375, 0.024383544921875, -0.05255126953125, -0.037322998046875, 0.037139892578125, -0.00853729248046875, -0.014434814453125, 0.0347900390625, 0.0015249252319335938, -0.021484375, -0.042144775390625, -0.0142364501953125, 0.047088623046875, 0.0118408203125, 0.01837158203125, 0.004947662353515625, 0.0251617431640625, -0.003749847412109375, 0.042388916015625, -0.05914306640625, -0.0135955810546875, 0.0240478515625, 0.01690673828125, -0.0238494873046875, -0.01226043701171875, -0.04150390625, 0.01317596435546875, -0.017578125, 0.006183624267578125, -0.0118255615234375, 0.003353118896484375, 0.04913330078125, -0.01513671875, -0.05194091796875, 0.00616455078125, 0.0185089111328125, 0.01082611083984375, -0.0124053955078125, -0.06671142578125, -0.00983428955078125, -0.058807373046875, -0.0197601318359375, -0.045440673828125, -0.07220458984375, -0.041259765625, -0.0166015625, 0.0011854171752929688, 0.022247314453125, -0.060760498046875, -0.05511474609375, -0.01023101806640625, 0.0009284019470214844, 0.0278472900390625, 0.037872314453125, -0.06622314453125, 0.10040283203125, 0.01300811767578125, 0.00319671630859375, 0.00957489013671875, 0.06915283203125, 0.033294677734375, -0.0015954971313476562, -0.005100250244140625, -0.0745849609375, -0.024505615234375, 0.00426483154296875, -0.0418701171875, 0.0682373046875, 0.0684814453125, 0.01617431640625, 0.01517486572265625, -0.01129913330078125, 0.00962066650390625, -0.0092315673828125, 0.037078857421875, -0.0133209228515625, -0.0175628662109375, 0.048583984375, 0.0258026123046875, 0.0162506103515625, -0.0186767578125, -0.034210205078125, 0.035400390625, 0.0110931396484375, 0.055023193359375, -0.049072265625, -0.029632568359375, 0.0257568359375, 0.01555633544921875, 0.0019359588623046875, 0.037139892578125, 0.00458526611328125, 0.02581787109375, 0.016571044921875, 0.048187255859375, 0.0070037841796875, -0.06292724609375, 0.014984130859375, -0.009490966796875, -0.007457733154296875, -0.00780487060546875, -0.0186767578125, 0.01117706298828125, 0.04931640625, 0.057861328125, -0.093994140625, 0.03857421875, 0.026763916015625, 0.029937744140625, -0.00873565673828125, -0.02197265625, -0.01959228515625, -0.0458984375, 0.05126953125, 0.051513671875, 0.0004639625549316406, 0.03778076171875, 0.035919189453125, -0.010955810546875, -0.016326904296875, 0.0110321044921875, 0.0015668869018554688, -0.020294189453125, -0.0310821533203125, 0.01421356201171875, -0.019744873046875, -0.014984130859375, -0.0017223358154296875, 0.04217529296875, -0.0278778076171875, -0.033447265625, 0.04632568359375, -0.0050201416015625, -0.006595611572265625, -0.0047760009765625, 0.0257568359375, 0.0024394989013671875, 0.039337158203125, -0.01108551025390625, -0.0066070556640625, 0.021514892578125, -0.004215240478515625, -0.00934600830078125, -0.04803466796875, 0.0067901611328125, 0.04681396484375, -0.0252532958984375, 0.022613525390625, 0.0243377685546875, -0.048095703125, -0.0261993408203125, -0.04034423828125, 0.09649658203125, -0.01384735107421875, -0.03741455078125, 0.007472991943359375, 0.0110931396484375, -0.0184478759765625, -0.02166748046875, 0.023284912109375, -0.0167083740234375, 0.0300750732421875, -0.006031036376953125, 0.001010894775390625, -0.038909912109375, -0.047332763671875, -0.0389404296875, 0.08221435546875, -0.019378662109375, 0.01593017578125, 0.0261383056640625, 0.028076171875, -0.007541656494140625, 0.0113372802734375, -0.020233154296875, 0.069580078125, 0.012054443359375, 0.0305938720703125, -0.0222625732421875, 0.002071380615234375, 0.012664794921875, 0.01209259033203125, 0.013427734375, 0.00860595703125, -0.018035888671875, -0.007282257080078125, 0.03759765625, 0.0712890625, 0.03436279296875, -0.0007495880126953125, 0.0174102783203125, -0.0255889892578125, -0.0014734268188476562, 0.0015134811401367188, 0.0205230712890625, -0.035400390625, -0.005767822265625, 0.0250091552734375, 0.032928466796875, 0.0305633544921875, -0.0186767578125, 0.00678253173828125, -0.0443115234375, 0.002475738525390625, 0.039306640625, 0.035125732421875, 0.01316070556640625, 0.0099639892578125, 0.0180206298828125, -0.0177001953125, -0.0179901123046875, -0.00032782554626464844, 0.0277252197265625, -0.002201080322265625, -0.0221099853515625, 0.00298309326171875, 0.005229949951171875, 0.04290771484375, -0.0191497802734375, -0.01306915283203125, 0.015655517578125, -0.0032958984375, -0.001705169677734375, -0.0031108856201171875, 0.03662109375, -0.036529541015625, -0.00994873046875, 0.00804901123046875, -0.01007080078125, -0.01071929931640625, -0.0460205078125, 0.018585205078125, 0.0063629150390625, -0.0141754150390625, 0.007259368896484375, -0.00955963134765625, -0.0567626953125, 0.00394439697265625, 0.0184783935546875, 0.005218505859375, 0.004512786865234375, -0.0032100677490234375, 0.011749267578125, 0.028350830078125, -0.015838623046875, 0.0220947265625, -0.0232696533203125, -0.001941680908203125, -0.0019092559814453125, 0.042327880859375, 0.0152587890625, 0.031280517578125, -0.029876708984375, -0.0215911865234375, -0.0003440380096435547, 0.020538330078125, -0.0164947509765625, 0.01277923583984375, -0.038726806640625, -0.0234527587890625, -0.0186767578125, 0.039764404296875, -0.00495147705078125, 0.0179290771484375, 0.02056884765625, 0.0286865234375, 0.0025119781494140625, -0.0049896240234375, 0.047760009765625, -0.004764556884765625, 0.02392578125, -0.0279693603515625, 0.015960693359375, 0.0068206787109375, -0.013519287109375, -0.01471710205078125, 0.028717041015625, 0.015655517578125, -0.0101318359375, -0.01415252685546875, 0.0049285888671875, -0.05621337890625, 0.0084991455078125, -0.01380157470703125, 0.0435791015625, 0.01450347900390625, -0.03594970703125, -0.013214111328125, -0.048553466796875, 0.0439453125, 0.004425048828125, 0.019378662109375, -0.006412506103515625, 0.061248779296875, 0.0771484375, 0.005535125732421875, 0.00783538818359375, -0.01043701171875, 0.0134735107421875, -0.026763916015625, 0.02496337890625, 0.0222625732421875, -0.029144287109375, -0.024322509765625, -0.01152801513671875, 0.0060882568359375, 0.0173797607421875, 0.042816162109375, 0.0009474754333496094, 0.01088714599609375, 0.039031982421875, -0.01605224609375, 0.041473388671875, 0.0225982666015625, -0.011962890625, 0.00841522216796875, 0.00757598876953125, -0.0297393798828125, -0.0596923828125, 0.03729248046875, -0.005252838134765625, 0.0145111083984375, 0.04656982421875, -0.03839111328125, 0.00911712646484375, 0.0225372314453125, 0.02435302734375, -0.0301055908203125, -0.03692626953125, -0.044891357421875, -0.017578125, 0.0198822021484375, 0.01232147216796875, 0.0101470947265625, 0.0204925537109375, -0.0069427490234375, -0.01416015625, 0.00775146484375, -0.00921630859375, -0.026092529296875, 0.001468658447265625, 0.01313018798828125, -0.03668212890625, 0.00983428955078125, -0.0185546875, -0.004222869873046875, 0.01296234130859375, 0.051116943359375, 0.00920867919921875, -0.04400634765625, 0.002552032470703125, 0.016143798828125, 0.0330810546875, -0.002925872802734375, 0.01690673828125, 0.00496673583984375, -0.00579071044921875, -0.0357666015625, -0.044036865234375, -0.0197601318359375, -0.0382080078125, 0.0094757080078125, 0.01812744140625, 0.0008931159973144531, -0.0085601806640625, 0.00359344482421875, 0.0136871337890625, 0.008697509765625, -0.006847381591796875, -0.061920166015625, 0.03240966796875, -0.032073974609375, 0.0595703125, -0.035125732421875, 0.02117919921875, -0.01331329345703125, 0.01934814453125, -0.030120849609375, -0.045806884765625, -0.017791748046875, 0.058837890625, -0.0119476318359375, 0.02618408203125, 0.06280517578125, -0.00557708740234375, -0.013885498046875, 0.0180816650390625, -0.0151214599609375, 0.08953857421875, -0.0736083984375, -0.0006475448608398438, 0.0276641845703125, 0.01947021484375, -0.0063323974609375, -0.04248046875, -0.029876708984375, 0.039520263671875, 0.028778076171875, -0.00881195068359375, -0.02777099609375, -0.0277099609375, -0.0572509765625, -0.037628173828125, 0.0867919921875, 0.00829315185546875, -0.0257110595703125, -0.05145263671875, 0.006786346435546875, 0.0255126953125, -0.0168304443359375, -0.034423828125, -0.01442718505859375, -0.052825927734375, 0.033721923828125, 0.0144500732421875, 0.01007080078125, 0.01369476318359375, -0.007965087890625, -0.0419921875, 0.01338958740234375, 0.0189208984375, 0.0008425712585449219, -0.01641845703125, 0.032135009765625, 0.0105133056640625, 0.057037353515625, -0.000965118408203125, 0.022979736328125, 0.0017862319946289062, -0.030029296875, -0.0036163330078125, -0.011871337890625, -0.0251312255859375, -0.007343292236328125, 0.0865478515625, 0.0345458984375, 0.0308685302734375, -0.0231170654296875, 0.016510009765625, 0.01053619384765625, -0.004276275634765625, 0.033172607421875, -0.0025806427001953125, -0.0023059844970703125, 0.0252838134765625, 0.00862884521484375, -0.011932373046875, 0.0292205810546875, -0.00009709596633911133, -0.0159149169921875, -0.0019931793212890625, 0.01409912109375, -0.0102691650390625, -0.03326416015625, 0.0002808570861816406, 0.058685302734375, -0.0260772705078125, 0.0078887939453125, 0.03167724609375, -0.00024819374084472656, 0.03814697265625, 0.051055908203125, 0.00827789306640625, 0.00945281982421875, -0.052337646484375, 0.0124969482421875, -0.0099945068359375, 0.032440185546875, -0.049835205078125, -0.02960205078125, -0.0302734375, 0.030059814453125, 0.01482391357421875, 0.0243682861328125, -0.043365478515625, 0.0142974853515625, 0.0264129638671875, 0.0198822021484375, -0.0159149169921875, -0.0650634765625, -0.031951904296875, 0.015960693359375, 0.00860595703125, -0.003643035888671875, 0.058258056640625, -0.0261688232421875, -0.01666259765625, 0.031341552734375, -0.03558349609375, -0.04901123046875, 0.0273284912109375, -0.04901123046875, 0.007129669189453125, 0.0031833648681640625 ]
057542810a7d43a0b03ccd3af626a3e70a510923
Wordpress Stackexchange Q: Remove update messages for deactivated plugins Is it possible to hide just update messages for deactivated plugins in WP 3.4+? A: Yep Its possible if you hook a function to site_transient_update_plugins filter hook and check if plugin is activated using is_plugin_active like this: add_filter('site_transient_update_plugins', 'remove_update_nag_for_deactivated'); function remove_update_nag_for_deactivated($value) { foreach($value->response as $key => $val){ if (!is_plugin_active($val)) unset($value->response[ $key]); } return $value; }
Q: Remove update messages for deactivated plugins Is it possible to hide just update messages for deactivated plugins in WP 3.4+? A: Yep Its possible if you hook a function to site_transient_update_plugins filter hook and check if plugin is activated using is_plugin_active like this: add_filter('site_transient_update_plugins', 'remove_update_nag_for_deactivated'); function remove_update_nag_for_deactivated($value) { foreach($value->response as $key => $val){ if (!is_plugin_active($val)) unset($value->response[ $key]); } return $value; }
wordpress
{ "language": "en", "length": 62, "provenance": "stackexchange_00019.jsonl.gz:427105", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77148" }
[ 0.08966064453125, 0.037872314453125, 0.0301361083984375, -0.032684326171875, 0.041351318359375, -0.025421142578125, 0.04962158203125, -0.056671142578125, 0.03778076171875, 0.0285186767578125, -0.0157012939453125, -0.042083740234375, 0.002788543701171875, -0.02520751953125, -0.0546875, -0.033782958984375, 0.01215362548828125, 0.0217132568359375, 0.0172882080078125, -0.006229400634765625, -0.0171356201171875, 0.002346038818359375, 0.0076141357421875, 0.039031982421875, 0.00406646728515625, 0.019287109375, 0.11724853515625, -0.021636962890625, 0.0244903564453125, -0.007686614990234375, 0.021759033203125, -0.05621337890625, -0.0029277801513671875, 0.045013427734375, -0.038238525390625, -0.04486083984375, 0.00322723388671875, 0.01654052734375, 0.0168304443359375, -0.01113128662109375, 0.0212554931640625, 0.00030922889709472656, 0.0245513916015625, -0.017608642578125, 0.01522064208984375, -0.031951904296875, 0.045440673828125, -0.040985107421875, 0.05126953125, 0.0133819580078125, -0.0081787109375, 0.018096923828125, -0.00540924072265625, -0.03948974609375, -0.0248565673828125, -0.036834716796875, -0.046600341796875, 0.041839599609375, 0.0256805419921875, 0.06781005859375, -0.0036220550537109375, 0.015655517578125, -0.033294677734375, -0.07421875, 0.03228759765625, -0.004543304443359375, 0.0198974609375, 0.01520538330078125, -0.06451416015625, 0.031982421875, 0.059539794921875, -0.047271728515625, 0.0104522705078125, 0.017333984375, -0.01593017578125, 0.0015535354614257812, 0.01910400390625, 0.043731689453125, 0.021575927734375, -0.01561737060546875, 0.037322998046875, -0.014495849609375, -0.0157318115234375, 0.01009368896484375, 0.0174407958984375, 0.045166015625, 0.012908935546875, -0.0309295654296875, -0.05621337890625, 0.0265350341796875, -0.0268707275390625, 0.031280517578125, -0.05810546875, 0.0000743865966796875, 0.00720977783203125, -0.01204681396484375, 0.021392822265625, 0.052734375, -0.037811279296875, -0.022735595703125, -0.0217437744140625, -0.0141754150390625, -0.02520751953125, -0.0287017822265625, -0.02545166015625, 0.0264434814453125, 0.02801513671875, 0.0203094482421875, 0.0037403106689453125, 0.034515380859375, -0.0045013427734375, 0.002750396728515625, -0.01343536376953125, 0.0124359130859375, -0.0136260986328125, 0.0108489990234375, -0.060516357421875, 0.041748046875, -0.0121917724609375, 0.055908203125, 0.00859832763671875, 0.02850341796875, -0.017913818359375, -0.020538330078125, 0.0104522705078125, -0.0161590576171875, -0.03497314453125, 0.0112152099609375, 0.00916290283203125, -0.0090789794921875, -0.040008544921875, 0.0189361572265625, 0.0789794921875, 0.036712646484375, 0.00978851318359375, -0.01528167724609375, -0.020111083984375, 0.0220184326171875, 0.0153350830078125, -0.023773193359375, 0.0258026123046875, 0.007137298583984375, 0.045379638671875, 0.00733184814453125, 0.0199737548828125, 0.00537109375, -0.004062652587890625, 0.0003235340118408203, 0.026336669921875, 0.00037288665771484375, 0.0009822845458984375, -0.0400390625, 0.028656005859375, 0.0212554931640625, 0.00925445556640625, 0.006481170654296875, 0.08184814453125, -0.044891357421875, -0.034698486328125, -0.065185546875, 0.0127105712890625, -0.0258026123046875, -0.000911712646484375, -0.023956298828125, -0.041168212890625, 0.029754638671875, -0.0244140625, -0.00015413761138916016, 0.023040771484375, 0.032073974609375, 0.0280914306640625, -0.031890869140625, -0.03826904296875, 0.044586181640625, 0.0214080810546875, 0.04852294921875, -0.00597381591796875, -0.00011205673217773438, 0.047088623046875, -0.04010009765625, -0.04815673828125, -0.0267486572265625, 0.06640625, -0.0217742919921875, -0.06500244140625, 0.0188140869140625, 0.00795745849609375, 0.03131103515625, 0.016876220703125, -0.0017042160034179688, 0.08331298828125, -0.0032749176025390625, 0.0212554931640625, -0.00875091552734375, -0.01473236083984375, -0.0094451904296875, -0.0245361328125, 0.0195159912109375, -0.03448486328125, -0.02606201171875, 0.0231475830078125, 0.04302978515625, -0.0269317626953125, 0.007297515869140625, -0.058929443359375, 0.00739288330078125, -0.0191650390625, 0.036834716796875, -0.00673675537109375, 0.032440185546875, 0.01303863525390625, 0.0139617919921875, -0.0278778076171875, 0.02288818359375, 0.004528045654296875, -0.00843048095703125, -0.004283905029296875, 0.0638427734375, -0.0005278587341308594, 0.039825439453125, 0.0154571533203125, -0.05511474609375, 0.0206298828125, 0.006198883056640625, 0.0019702911376953125, -0.01467132568359375, 0.0015878677368164062, -0.005725860595703125, 0.01120758056640625, -0.004207611083984375, 0.0279998779296875, 0.003704071044921875, -0.001827239990234375, 0.01274871826171875, -0.007640838623046875, -0.00939178466796875, -0.00843048095703125, -0.09600830078125, 0.0050811767578125, 0.052398681640625, 0.044891357421875, 0.0390625, -0.0142059326171875, -0.0168304443359375, 0.06805419921875, -0.057037353515625, -0.004150390625, 0.001644134521484375, 0.028045654296875, 0.016754150390625, 0.005054473876953125, -0.032745361328125, 0.0496826171875, 0.0106964111328125, 0.01396942138671875, 0.04315185546875, 0.006282806396484375, -0.01499176025390625, -0.01493072509765625, 0.00312042236328125, 0.0257415771484375, -0.0089111328125, -0.037811279296875, 0.0116424560546875, 0.050201416015625, -0.013397216796875, 0.046356201171875, 0.046630859375, -0.002162933349609375, -0.014617919921875, 0.005382537841796875, -0.0090789794921875, 0.006244659423828125, 0.045745849609375, -0.043670654296875, 0.054229736328125, -0.0037841796875, -0.0119781494140625, -0.00005918741226196289, 0.027740478515625, -0.05535888671875, -0.049896240234375, -0.0009632110595703125, -0.01519775390625, 0.020263671875, 0.006359100341796875, 0.037445068359375, -0.07012939453125, -0.045867919921875, 0.00522613525390625, 0.02044677734375, 0.0294647216796875, -0.03369140625, 0.029083251953125, -0.005641937255859375, 0.00937652587890625, -0.05029296875, -0.049346923828125, 0.03619384765625, -0.02728271484375, 0.0169677734375, 0.06781005859375, 0.0219573974609375, -0.0014295578002929688, 0.0219268798828125, 0.01151275634765625, 0.040557861328125, 0.005931854248046875, 0.0088348388671875, 0.024932861328125, -0.0303497314453125, 0.0185089111328125, -0.01560211181640625, 0.0543212890625, -0.0733642578125, -0.08258056640625, -0.0207366943359375, -0.033721923828125, -0.08111572265625, -0.030609130859375, 0.0133056640625, -0.01189422607421875, -0.01221466064453125, 0.02593994140625, -0.01007843017578125, -0.0157012939453125, 0.04833984375, -0.00846099853515625, -0.04315185546875, 0.022247314453125, -0.03271484375, 0.00815582275390625, -0.00795745849609375, 0.06689453125, -0.0311431884765625, 0.008514404296875, 0.0023822784423828125, 0.06292724609375, 0.00554656982421875, -0.06927490234375, 0.0148162841796875, -0.014892578125, -0.005199432373046875, 0.0592041015625, 0.0011873245239257812, 0.0050506591796875, 0.00414276123046875, 0.01229095458984375, -0.041595458984375, 0.0195770263671875, -0.008087158203125, -0.02288818359375, 0.021087646484375, -0.0091705322265625, 0.031951904296875, -0.03515625, -0.026123046875, 0.012908935546875, -0.026824951171875, -0.051666259765625, -0.0001614093780517578, -0.018157958984375, -0.0301361083984375, 0.00946807861328125, 0.0032215118408203125, -0.0045013427734375, -0.0269012451171875, 0.0200042724609375, -0.00479888916015625, -0.0004246234893798828, 0.0157623291015625, -0.048370361328125, 0.0250701904296875, 0.0009512901306152344, -0.00583648681640625, -0.01419830322265625, 0.0203399658203125, -0.00498199462890625, 0.015899658203125, 0.0019817352294921875, 0.022308349609375, -0.0030651092529296875, 0.035491943359375, -0.0263671875, 0.0162353515625, -0.0005660057067871094, -0.053924560546875, -0.01617431640625, -0.0140228271484375, 0.01306915283203125, -0.0190277099609375, 0.005889892578125, -0.051849365234375, -0.050079345703125, -0.00927734375, 0.039459228515625, -0.020538330078125, -0.0218963623046875, 0.035003662109375, -0.0170745849609375, -0.0916748046875, 0.0265350341796875, -0.0146942138671875, -0.01702880859375, -0.01276397705078125, -0.01375579833984375, -0.039886474609375, -0.04364013671875, 0.05938720703125, -0.04656982421875, -0.00678253173828125, 0.01224517822265625, -0.01030731201171875, -0.0576171875, -0.04217529296875, -0.007404327392578125, -0.04132080078125, -0.006103515625, -0.01384735107421875, 0.03240966796875, 0.0172882080078125, -0.0120086669921875, -0.018463134765625, 0.0247802734375, 0.01922607421875, 0.01274871826171875, 0.00498199462890625, -0.0255584716796875, -0.00620269775390625, 0.024658203125, 0.0262451171875, -0.01299285888671875, -0.0115203857421875, -0.0196380615234375, -0.043792724609375, -0.00821685791015625, 0.01183319091796875, 0.0149688720703125, 0.038360595703125, -0.0267333984375, -0.0247650146484375, -0.035797119140625, -0.0556640625, -0.0184173583984375, -0.0244293212890625, -0.015869140625, -0.033905029296875, -0.034210205078125, 0.0216064453125, -0.035430908203125, 0.00545501708984375, 0.0185394287109375, 0.042816162109375, 0.0010356903076171875, 0.006504058837890625, -0.020751953125, -0.0267486572265625, 0.01216888427734375, 0.06036376953125, -0.0245819091796875, -0.0261383056640625, -0.0277252197265625, 0.0139312744140625, 0.0106201171875, -0.0003132820129394531, -0.0171356201171875, 0.0311126708984375, 0.007808685302734375, -0.0044403076171875, 0.0120391845703125, -0.005893707275390625, 0.0273284912109375, 0.031829833984375, -0.00008779764175415039, -0.034698486328125, -0.005390167236328125, 0.042755126953125, -0.0150299072265625, 0.015716552734375, -0.03857421875, -0.069091796875, 0.03704833984375, -0.0088653564453125, -0.0018596649169921875, 0.00591278076171875, -0.006000518798828125, 0.050872802734375, 0.01025390625, -0.0001571178436279297, -0.02410888671875, 0.0098419189453125, -0.061248779296875, 0.03729248046875, -0.0478515625, -0.048248291015625, -0.0005273818969726562, -0.0023365020751953125, 0.019256591796875, -0.03143310546875, -0.048583984375, -0.0291290283203125, 0.0008997917175292969, 0.0809326171875, 0.057769775390625, -0.026123046875, 0.06005859375, 0.029022216796875, -0.0227203369140625, -0.01201629638671875, -0.045074462890625, 0.0022563934326171875, -0.064697265625, -0.030364990234375, -0.0126190185546875, -0.0050506591796875, 0.0259246826171875, 0.042999267578125, -0.00208282470703125, 0.03436279296875, -0.029052734375, 0.00017905235290527344, -0.00040078163146972656, -0.0025157928466796875, 0.0293426513671875, 0.0140228271484375, -0.017608642578125, -0.018218994140625, 0.0170135498046875, -0.031494140625, 0.007755279541015625, 0.00977325439453125, 0.0037994384765625, 0.030242919921875, -0.0015039443969726562, 0.007396697998046875, -0.00058746337890625, -0.02069091796875, 0.07525634765625, 0.0426025390625, -0.0435791015625, -0.04107666015625, 0.009735107421875, 0.047149658203125, -0.021820068359375, -0.0087738037109375, -0.01293182373046875, -0.0310821533203125, -0.04083251953125, -0.0015211105346679688, -0.07305908203125, -0.0089874267578125, 0.03662109375, -0.001163482666015625, -0.005359649658203125, 0.00015556812286376953, -0.062744140625, -0.034210205078125, -0.004772186279296875, -0.00231170654296875, 0.054901123046875, -0.00484466552734375, 0.01861572265625, -0.03717041015625, -0.00873565673828125, 0.0207061767578125, -0.0055389404296875, 0.06317138671875, 0.0218658447265625, -0.03948974609375, 0.01032257080078125, -0.040863037109375, -0.034515380859375, -0.0902099609375, -0.056304931640625, -0.063720703125, 0.00847625732421875, 0.01129150390625, 0.032684326171875, -0.01174163818359375, -0.0263214111328125, 0.0170440673828125, -0.0011568069458007812, -0.006298065185546875, 0.020904541015625, 0.036895751953125, 0.045379638671875, -0.0025081634521484375, 0.0657958984375, 0.051025390625, 0.0311279296875, -0.038177490234375, -0.044189453125, 0.028472900390625, 0.027801513671875, -0.0147857666015625, -0.03765869140625, 0.02056884765625, -0.049774169921875, 0.0140838623046875, -0.01605224609375, -0.029296875, -0.0126800537109375, 0.00931549072265625, -0.032745361328125, 0.061492919921875, -0.002285003662109375, -0.04339599609375, 0.00494384765625, -0.074951171875, -0.07867431640625, 0.0006194114685058594, 0.018096923828125, 0.01358795166015625, -0.0117340087890625, -0.03338623046875, 0.0221099853515625, -0.0025463104248046875, 0.05706787109375, 0.04974365234375, -0.028656005859375, 0.0304718017578125, 0.00946044921875, 0.003688812255859375, 0.0191192626953125, -0.032196044921875, 0.034088134765625, 0.01079559326171875, 0.0771484375, 0.010467529296875, -0.024261474609375, 0.06304931640625, -0.039398193359375, 0.036285400390625, 0.045166015625, 0.0712890625, -0.0792236328125, 0.01413726806640625, 0.0000718832015991211, -0.0237579345703125, 0.058197021484375, -0.01152801513671875, -0.0240631103515625, -0.06951904296875, 0.0140380859375, 0.016937255859375, -0.01226806640625, -0.01561737060546875, 0.0005116462707519531, -0.0189971923828125, -0.0106201171875, -0.00516510009765625, 0.00585174560546875, -0.002109527587890625, -0.00229644775390625, 0.0159149169921875, -0.00566864013671875, -0.038909912109375, -0.011016845703125, 0.03338623046875, -0.0245208740234375, -0.1181640625, -0.01036834716796875, -0.00017714500427246094, -0.027252197265625, 0.0036716461181640625, -0.002735137939453125, 0.0068511962890625, 0.047027587890625, -0.022735595703125, -0.00719451904296875, 0.037139892578125, -0.049041748046875, -0.037322998046875, -0.04949951171875, 0.021026611328125, 0.0107574462890625, -0.05010986328125, 0.027374267578125, -0.002384185791015625, -0.051666259765625, -0.0203399658203125, 0.00037217140197753906, 0.0831298828125, 0.004261016845703125, -0.04302978515625, 0.0239105224609375, 0.0279541015625, -0.0245513916015625, -0.0121917724609375, 0.037322998046875, -0.03741455078125, -0.0019273757934570312, 0.0012063980102539062, -0.005767822265625, -0.024627685546875, -0.02398681640625, -0.0919189453125, 0.127197265625, 0.031402587890625, 0.03662109375, -0.00836181640625, 0.044525146484375, -0.057098388671875, 0.0012674331665039062, -0.01120758056640625, 0.0565185546875, -0.041534423828125, 0.05572509765625, -0.00200653076171875, 0.02545166015625, 0.0282135009765625, -0.0126953125, 0.0087432861328125, 0.0080718994140625, 0.03533935546875, -0.0122222900390625, -0.0010662078857421875, 0.0016641616821289062, -0.0294189453125, -0.006595611572265625, -0.010955810546875, -0.007114410400390625, 0.0136260986328125, -0.0296478271484375, 0.036041259765625, -0.058685302734375, -0.01499176025390625, 0.0035724639892578125, 0.0282135009765625, 0.036529541015625, -0.0037250518798828125, 0.08331298828125, 0.0364990234375, -0.0220184326171875, -0.00804901123046875, 0.0282745361328125, 0.0262603759765625, 0.0162200927734375, -0.03033447265625, 0.0206298828125, 0.003116607666015625, -0.00885772705078125, 0.0262451171875, -0.0222625732421875, 0.00240325927734375, 0.056671142578125, 0.026611328125, 0.0250244140625, -0.01172637939453125, -0.0016727447509765625, -0.0008554458618164062, -0.015655517578125, 0.0009946823120117188, 0.0168609619140625, 0.0208282470703125, -0.006290435791015625, -0.0019855499267578125, 0.0087890625, -0.007518768310546875, 0.003170013427734375, -0.06591796875, 0.008270263671875, -0.01061248779296875, 0.0034313201904296875, 0.002094268798828125, -0.005626678466796875, -0.0121917724609375, 0.036224365234375, 0.0144805908203125, -0.0005373954772949219, 0.003063201904296875, 0.020843505859375, 0.010223388671875, 0.023773193359375, -0.038360595703125, -0.0175628662109375, -0.062255859375, 0.031005859375, 0.0200958251953125, 0.023223876953125, 0.00885009765625, 0.025787353515625, 0.039398193359375, -0.00542449951171875, -0.01611328125, 0.01468658447265625, -0.00592803955078125, 0.0256805419921875, -0.047943115234375, -0.040069580078125, 0.024932861328125, 0.04791259765625, 0.0195159912109375, 0.01340484619140625, 0.07183837890625, 0.08038330078125, -0.00992584228515625, -0.006801605224609375, 0.045135498046875, 0.00579071044921875, 0.0182952880859375, -0.0237579345703125, 0.0189666748046875, 0.013153076171875, 0.0008230209350585938, -0.0277557373046875, 0.005084991455078125, 0.03863525390625, -0.028564453125, 0.006122589111328125, 0.00971221923828125, -0.0377197265625, 0.00679779052734375, -0.01517486572265625, 0.0246734619140625, -0.017974853515625, -0.0316162109375, -0.0308685302734375, -0.005313873291015625, 0.023406982421875, 0.0135345458984375, 0.031524658203125, 0.0157318115234375, 0.0197906494140625, -0.00214385986328125, 0.0262298583984375, -0.0283660888671875, -0.01172637939453125, 0.004329681396484375, 0.0058746337890625, 0.0269927978515625, 0.01084136962890625, -0.02392578125, -0.01435089111328125, 0.000560760498046875, 0.0280609130859375, 0.01073455810546875, 0.043243408203125, 0.005706787109375, 0.01279449462890625, -0.0253448486328125, 0.0024318695068359375, -0.0154266357421875, -0.007694244384765625, -0.05108642578125, 0.007541656494140625, 0.0005173683166503906, 0.0099334716796875, -0.031158447265625, 0.05584716796875, 0.01361083984375, 0.00409698486328125, 0.04425048828125, -0.00408172607421875, 0.0057525634765625, -0.0166015625, -0.0115203857421875, -0.0252838134765625, -0.0233001708984375, 0.0271453857421875, 0.01369476318359375, -0.0108184814453125, -0.01611328125, -0.005954742431640625, 0.0120086669921875, 0.02044677734375, 0.01021575927734375, 0.00714111328125, 0.0279083251953125, 0.004913330078125, 0.0257720947265625, -0.0196533203125, 0.00176239013671875, 0.009368896484375, -0.0161895751953125, 0.032562255859375, 0.0040283203125, 0.0281524658203125, 0.013763427734375, 0.02764892578125, -0.001422882080078125, 0.00189971923828125, 0.01424407958984375, -0.029388427734375, -0.01451873779296875, 0.00838470458984375, -0.004291534423828125, 0.0030975341796875, 0.0222320556640625, -0.02490234375, -0.03216552734375, -0.0213623046875, -0.004344940185546875, -0.03955078125, -0.04803466796875, -0.042877197265625, 0.0121612548828125, 0.031158447265625, 0.0161285400390625, -0.06488037109375, 0.03997802734375, -0.0167999267578125, 0.01058197021484375, 0.01328277587890625, -0.0105438232421875, -0.003841400146484375, 0.004398345947265625, -0.03460693359375, -0.042388916015625, -0.043487548828125, 0.0390625, -0.0203399658203125, -0.0191192626953125, -0.017730712890625, 0.00604248046875, 0.003421783447265625, -0.01678466796875, 0.007965087890625, 0.02099609375, -0.01549530029296875, -0.0187225341796875, 0.0127105712890625, -0.0199127197265625, -0.00372314453125, -0.0240020751953125, 0.00603485107421875, -0.060760498046875, -0.040771484375, -0.013092041015625, -0.0016012191772460938, 0.004344940185546875, -0.043792724609375, -0.0838623046875, 0.0653076171875, -0.0127716064453125, -0.032012939453125, -0.004871368408203125, 0.0108489990234375, 0.0013151168823242188, 0.005779266357421875, 0.00897979736328125, -0.03436279296875, -0.023284912109375, 0.0011034011840820312, -0.015106201171875, 0.0645751953125, -0.01212310791015625, 0.00963592529296875, 0.0207061767578125, 0.0301055908203125, 0.00942230224609375, -0.012298583984375, -0.0296783447265625, -0.02789306640625, 0.04742431640625, 0.0177001953125, -0.022918701171875, 0.0285797119140625, 0.056304931640625, 0.011810302734375, -0.01222991943359375, -0.054046630859375, -0.011932373046875, -0.011962890625, 0.0694580078125, 0.04840087890625, 0.01247406005859375, -0.04058837890625, -0.0036869049072265625, -0.05267333984375, 0.0008268356323242188, 0.0113067626953125, 0.01165771484375, -0.06280517578125, 0.01416778564453125, 0.05841064453125, -0.0005016326904296875, -0.0256195068359375, -0.01233673095703125, -0.019012451171875, -0.018035888671875, 0.0102996826171875, 0.0013494491577148438, 0.0016508102416992188, -0.01230621337890625, -0.008514404296875, 0.0046539306640625, 0.006999969482421875, -0.001621246337890625, 0.0005693435668945312, -0.0027751922607421875, 0.0655517578125, 0.00034046173095703125, 0.013763427734375, -0.038543701171875, 0.0245513916015625, -0.01238250732421875, 0.031005859375, -0.04412841796875, -0.0038890838623046875, -0.036407470703125, 0.0067901611328125, 0.03155517578125, 0.01000213623046875, -0.059417724609375, 0.022186279296875, 0.036163330078125, 0.0012722015380859375, 0.0182647705078125, -0.00324249267578125, -0.0227203369140625, 0.035247802734375, 0.0124969482421875, -0.0287017822265625, 0.0164031982421875, -0.00846099853515625, 0.0149993896484375, 0.01134490966796875, 0.056243896484375, -0.05816650390625, 0.05670166015625, -0.028961181640625, 0.028076171875, 0.03173828125 ]
a3cbc37b762469cd12ec28bfe5b7386d99e8fb05
Wordpress Stackexchange Q: Programmatically publish a post (custom post type) with custom fields I have a custom post type 'Participant' with many custom fields. I also have a form with corresponding input fields for the user to fill out. When he submits the form, I want a new post to be generated with each custom fields containing the value chosen by the user. Is it possible to do and if so, how? A: Use wp_insert_post() and add_post_meta(), like this: // insert the post and set the category $post_id = wp_insert_post(array ( 'post_type' => 'your_post_type', 'post_title' => $your_title, 'post_content' => $your_content, 'post_status' => 'publish', 'comment_status' => 'closed', // if you prefer 'ping_status' => 'closed', // if you prefer )); if ($post_id) { // insert post meta add_post_meta($post_id, '_your_custom_1', $custom1); add_post_meta($post_id, '_your_custom_2', $custom2); add_post_meta($post_id, '_your_custom_3', $custom3); }
Q: Programmatically publish a post (custom post type) with custom fields I have a custom post type 'Participant' with many custom fields. I also have a form with corresponding input fields for the user to fill out. When he submits the form, I want a new post to be generated with each custom fields containing the value chosen by the user. Is it possible to do and if so, how? A: Use wp_insert_post() and add_post_meta(), like this: // insert the post and set the category $post_id = wp_insert_post(array ( 'post_type' => 'your_post_type', 'post_title' => $your_title, 'post_content' => $your_content, 'post_status' => 'publish', 'comment_status' => 'closed', // if you prefer 'ping_status' => 'closed', // if you prefer )); if ($post_id) { // insert post meta add_post_meta($post_id, '_your_custom_1', $custom1); add_post_meta($post_id, '_your_custom_2', $custom2); add_post_meta($post_id, '_your_custom_3', $custom3); } A: This can be achieved quite easily using the Gravity Forms plugin. You can build a form which populates a Custom Post Type in the backend. This post can be set to appear as a draft or as published. No problem adding custom fields. In my case, I used it to gather client testimonials. A: In addition to the great answer of @webaware above, this can be handled since wordpress 4.4.0 all via the wp_insert_post call: $post_id = wp_insert_post(array ( 'post_content' => $content, 'post_title' => $title, 'post_type' => 'your_custom_post_type', 'post_status' => 'publish', // some simple key / value array 'meta_input' => array( 'your_custom_key1' => 'your_custom_value1', 'your_custom_key2' => 'your_custom_value2' // and so on ;) ) )); if ($post_id) { // it worked :) }
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:427121", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77201" }
[ 0.0478515625, 0.01078033447265625, -0.005680084228515625, -0.033782958984375, 0.01131439208984375, -0.005016326904296875, 0.0080108642578125, -0.02783203125, -0.0238494873046875, -0.0029468536376953125, 0.0148468017578125, -0.004154205322265625, -0.048797607421875, -0.041107177734375, 0.00641632080078125, -0.043365478515625, 0.026641845703125, 0.0121612548828125, 0.024932861328125, -0.0092315673828125, 0.01531982421875, -0.01238250732421875, 0.0203399658203125, 0.01334381103515625, 0.0279693603515625, 0.005352020263671875, -0.005462646484375, -0.0229949951171875, 0.02801513671875, 0.016754150390625, 0.0240631103515625, -0.0146942138671875, 0.0160369873046875, -0.0033283233642578125, -0.0139007568359375, 0.0312042236328125, 0.034942626953125, -0.013641357421875, -0.005382537841796875, 0.0380859375, 0.0272369384765625, -0.00728607177734375, -0.0016956329345703125, 0.002010345458984375, -0.0007882118225097656, -0.038787841796875, 0.0219879150390625, -0.04254150390625, 0.017486572265625, 0.00743865966796875, 0.005443572998046875, 0.0019016265869140625, 0.01715087890625, -0.0228424072265625, -0.005451202392578125, -0.006908416748046875, -0.035614013671875, -0.005916595458984375, 0.053619384765625, -0.0101165771484375, -0.021484375, -0.060150146484375, 0.0228118896484375, -0.0207672119140625, 0.0138702392578125, 0.00016629695892333984, 0.020416259765625, 0.0203704833984375, -0.0126953125, -0.01123809814453125, 0.013153076171875, -0.0193634033203125, 0.0005078315734863281, -0.0004405975341796875, -0.00592803955078125, -0.035736083984375, 0.0236663818359375, -0.03399658203125, 0.00011926889419555664, 0.0200958251953125, 0.01467132568359375, 0.0150909423828125, 0.021148681640625, -0.030975341796875, -0.004474639892578125, -0.0198211669921875, -0.0196990966796875, -0.0013189315795898438, -0.005382537841796875, -0.01552581787109375, -0.006649017333984375, -0.055145263671875, -0.027313232421875, 0.03619384765625, 0.0260162353515625, -0.031463623046875, 0.0101776123046875, 0.048095703125, 0.003143310546875, 0.0246734619140625, 0.0089111328125, -0.0467529296875, 0.058746337890625, -0.05535888671875, 0.007801055908203125, 0.028472900390625, -0.03533935546875, -0.055084228515625, 0.0080413818359375, 0.03045654296875, -0.0008220672607421875, -0.0406494140625, -0.01556396484375, 0.0003161430358886719, -0.0330810546875, 0.0240478515625, -0.01806640625, -0.0164031982421875, -0.0298309326171875, 0.022430419921875, 0.0028228759765625, 0.014068603515625, 0.036102294921875, -0.04071044921875, 0.017608642578125, -0.0010061264038085938, -0.03851318359375, -0.0305328369140625, -0.00266265869140625, 0.0027141571044921875, -0.0621337890625, 0.033935546875, 0.12249755859375, 0.0282440185546875, 0.0247039794921875, -0.0186920166015625, 0.01036834716796875, -0.0528564453125, -0.031646728515625, 0.032196044921875, -0.0217132568359375, -0.0325927734375, 0.023284912109375, -0.0182952880859375, 0.001651763916015625, 0.0309906005859375, 0.0146636962890625, 0.005222320556640625, -0.005641937255859375, -0.0225677490234375, -0.036407470703125, -0.0026092529296875, 0.0185394287109375, -0.0042572021484375, -0.005374908447265625, -0.01467132568359375, 0.0157928466796875, -0.0200958251953125, 0.0107421875, -0.02362060546875, 0.049407958984375, 0.00609588623046875, 0.005237579345703125, -0.027496337890625, -0.022125244140625, -0.0261077880859375, -0.07080078125, -0.0016851425170898438, 0.0197906494140625, 0.00705718994140625, 0.0055084228515625, 0.00986480712890625, 0.00994110107421875, -0.01436614990234375, -0.01319122314453125, -0.01059722900390625, 0.00026988983154296875, 0.00848388671875, 0.0219268798828125, 0.0186309814453125, -0.0243072509765625, -0.02911376953125, 0.047088623046875, -0.0223846435546875, -0.06390380859375, 0.05145263671875, 0.0163116455078125, 0.06866455078125, 0.00988006591796875, 0.01177215576171875, 0.047821044921875, 0.01018524169921875, -0.0023040771484375, -0.01320648193359375, 0.0132904052734375, -0.009002685546875, -0.031402587890625, -0.005382537841796875, -0.005054473876953125, 0.0077362060546875, -0.0289154052734375, 0.0248870849609375, -0.00630950927734375, 0.048919677734375, 0.00824737548828125, 0.032135009765625, -0.0164642333984375, 0.0294952392578125, -0.03192138671875, -0.0181427001953125, 0.0230712890625, -0.03558349609375, 0.014739990234375, -0.060516357421875, -0.032501220703125, -0.01259613037109375, 0.01033782958984375, 0.00676727294921875, -0.008209228515625, 0.0330810546875, -0.0264892578125, -0.021331787109375, -0.045989990234375, 0.0088958740234375, 0.077392578125, -0.021026611328125, 0.0104522705078125, -0.0272979736328125, 0.08837890625, 0.0000470280647277832, -0.005825042724609375, 0.0156097412109375, 0.004085540771484375, -0.0202178955078125, -0.0159912109375, 0.0195465087890625, 0.00467681884765625, -0.084716796875, -0.00933837890625, 0.0535888671875, 0.0245208740234375, 0.0162353515625, -0.012908935546875, 0.02874755859375, 0.0654296875, 0.0188751220703125, 0.0179290771484375, 0.001766204833984375, 0.046600341796875, 0.08489990234375, -0.051300048828125, -0.0023441314697265625, 0.0260467529296875, -0.093505859375, 0.043975830078125, 0.03857421875, -0.00826263427734375, -0.003391265869140625, 0.011993408203125, -0.0306396484375, 0.0223846435546875, -0.0579833984375, -0.041961669921875, -0.01212310791015625, 0.050323486328125, 0.006580352783203125, 0.0491943359375, 0.036895751953125, -0.0219573974609375, -0.006511688232421875, 0.006221771240234375, -0.01036834716796875, 0.0006508827209472656, -0.04510498046875, -0.04510498046875, 0.019744873046875, -0.0275115966796875, 0.032623291015625, 0.00896453857421875, -0.0306396484375, -0.0017871856689453125, 0.045257568359375, -0.0159759521484375, -0.01058197021484375, -0.01491546630859375, -0.0401611328125, -0.0161590576171875, -0.00847625732421875, 0.0270233154296875, -0.02215576171875, 0.003948211669921875, 0.016693115234375, -0.02935791015625, 0.041595458984375, 0.032440185546875, -0.0374755859375, -0.00400543212890625, -0.06976318359375, 0.0684814453125, -0.06610107421875, -0.0164794921875, 0.06561279296875, -0.00844573974609375, 0.020843505859375, -0.019866943359375, 0.021575927734375, -0.03314208984375, 0.036590576171875, -0.00736236572265625, -0.08050537109375, -0.0023441314697265625, -0.01404571533203125, 0.046478271484375, 0.06365966796875, 0.0341796875, -0.0261383056640625, 0.0290985107421875, 0.06341552734375, -0.02313232421875, -0.06365966796875, 0.0258026123046875, -0.0227203369140625, -0.012908935546875, -0.0390625, -0.0158843994140625, 0.001415252685546875, -0.035675048828125, -0.0013685226440429688, 0.005504608154296875, -0.00275421142578125, 0.0008807182312011719, 0.00936126708984375, -0.020782470703125, 0.00849151611328125, 0.0026950836181640625, -0.00273895263671875, 0.003143310546875, 0.08709716796875, 0.01126861572265625, -0.043487548828125, -0.0087127685546875, 0.0095062255859375, -0.029571533203125, 0.006916046142578125, 0.01207733154296875, -0.0360107421875, 0.058502197265625, -0.0038089752197265625, 0.004222869873046875, 0.028533935546875, -0.0182647705078125, -0.0243377685546875, -0.00518035888671875, -0.01470947265625, 0.0155487060546875, -0.005863189697265625, -0.009552001953125, 0.0187835693359375, 0.0219573974609375, -0.025787353515625, 0.01094818115234375, 0.0226898193359375, 0.005619049072265625, -0.0285491943359375, -0.034088134765625, -0.01509857177734375, -0.019195556640625, 0.03375244140625, 0.0018634796142578125, 0.0112152099609375, 0.016998291015625, -0.0031261444091796875, -0.0003566741943359375, -0.005741119384765625, -0.02197265625, -0.0196685791015625, -0.022857666015625, -0.026092529296875, 0.05877685546875, 0.0026397705078125, 0.032379150390625, -0.01218414306640625, 0.048004150390625, -0.05487060546875, -0.06787109375, 0.037506103515625, -0.0352783203125, 0.0111541748046875, -0.005016326904296875, -0.0305328369140625, 0.02203369140625, 0.100341796875, -0.034942626953125, -0.0097808837890625, -0.01532745361328125, -0.0053558349609375, -0.03179931640625, -0.006580352783203125, -0.043487548828125, 0.013458251953125, 0.0016069412231445312, 0.00586700439453125, 0.00200653076171875, -0.021209716796875, -0.020965576171875, 0.032684326171875, -0.0211334228515625, -0.0007753372192382812, 0.0205078125, -0.0033473968505859375, 0.0013885498046875, 0.00841522216796875, -0.0106048583984375, 0.006805419921875, 0.002368927001953125, -0.0174407958984375, -0.06475830078125, -0.0126190185546875, -0.01088714599609375, 0.021453857421875, 0.006237030029296875, -0.01277923583984375, -0.00899505615234375, 0.031494140625, -0.0017862319946289062, 0.03668212890625, -0.025238037109375, 0.004215240478515625, 0.007171630859375, 0.004962921142578125, -0.00254058837890625, 0.00604248046875, -0.00141143798828125, -0.00218963623046875, 0.006404876708984375, 0.031646728515625, -0.033416748046875, -0.03131103515625, -0.01012420654296875, -0.0225067138671875, 0.0290069580078125, -0.010040283203125, -0.024932861328125, 0.0279083251953125, -0.02215576171875, -0.0095977783203125, -0.02362060546875, -0.0003428459167480469, 0.034637451171875, -0.041748046875, 0.00501251220703125, 0.01021575927734375, 0.12646484375, 0.00841522216796875, 0.007843017578125, -0.08880615234375, 0.0133819580078125, 0.0350341796875, 0.0028705596923828125, 0.00506591796875, -0.005680084228515625, -0.022369384765625, 0.04150390625, -0.0006923675537109375, -0.021484375, -0.01178741455078125, 0.06646728515625, -0.0034732818603515625, -0.007335662841796875, 0.0008978843688964844, -0.01335906982421875, 0.020721435546875, 0.020538330078125, -0.0132598876953125, -0.00794219970703125, -0.027252197265625, 0.05267333984375, -0.01003265380859375, 0.0088653564453125, -0.053375244140625, -0.060455322265625, 0.024810791015625, 0.0169677734375, -0.00650787353515625, 0.0022716522216796875, 0.0122222900390625, 0.01727294921875, -0.04168701171875, -0.0036373138427734375, 0.00408172607421875, -0.03790283203125, 0.036468505859375, 0.0033016204833984375, 0.01727294921875, 0.00829315185546875, -0.0076141357421875, 0.01062774658203125, 0.0206298828125, -0.0167236328125, -0.042510986328125, -0.0548095703125, 0.00553131103515625, 0.0218658447265625, 0.0016775131225585938, -0.00447845458984375, 0.033294677734375, 0.080810546875, 0.0214385986328125, 0.0199127197265625, -0.003475189208984375, 0.0821533203125, -0.0291595458984375, -0.0194854736328125, 0.01332855224609375, -0.027496337890625, -0.01465606689453125, 0.056488037109375, -0.0037059783935546875, 0.0189361572265625, -0.0239715576171875, 0.09100341796875, 0.07025146484375, 0.01396942138671875, 0.00922393798828125, 0.00498199462890625, 0.0000540614128112793, -0.0372314453125, -0.05230712890625, -0.0180511474609375, 0.023193359375, 0.00662994384765625, 0.0023212432861328125, 0.01012420654296875, -0.0156097412109375, 0.0234832763671875, -0.01538848876953125, -0.0035800933837890625, -0.04180908203125, -0.04095458984375, 0.0104827880859375, 0.0012750625610351562, 0.010009765625, 0.01378631591796875, 0.012298583984375, 0.0105438232421875, -0.040863037109375, -0.033294677734375, -0.018890380859375, -0.030303955078125, 0.0083770751953125, -0.03515625, -0.0323486328125, -0.0099945068359375, -0.01528167724609375, 0.01080322265625, -0.050384521484375, -0.01776123046875, -0.01168060302734375, -0.0204925537109375, 0.0287322998046875, -0.028289794921875, 0.0207061767578125, -0.03643798828125, 0.0264434814453125, -0.0237579345703125, 0.00717926025390625, 0.02642822265625, 0.004730224609375, 0.02691650390625, -0.005199432373046875, -0.0165863037109375, -0.0218048095703125, -0.017669677734375, -0.036376953125, -0.0009431838989257812, -0.01320648193359375, 0.056365966796875, 0.0433349609375, -0.0007314682006835938, -0.0684814453125, -0.01302337646484375, -0.0313720703125, 0.04119873046875, 0.03155517578125, 0.0123748779296875, 0.06219482421875, -0.022369384765625, 0.080810546875, 0.01522064208984375, 0.020721435546875, -0.043670654296875, -0.0313720703125, -0.033843994140625, -0.08770751953125, 0.00799560546875, 0.042510986328125, -0.000988006591796875, 0.039520263671875, -0.0197296142578125, 0.0123291015625, -0.0088348388671875, -0.010009765625, 0.007236480712890625, -0.0282440185546875, 0.0231170654296875, 0.0017566680908203125, -0.01392364501953125, 0.0335693359375, -0.04071044921875, 0.0042877197265625, 0.041107177734375, 0.0299072265625, -0.0109405517578125, -0.017242431640625, -0.005016326904296875, 0.01354217529296875, -0.0218658447265625, -0.011474609375, 0.020843505859375, 0.01558685302734375, 0.037994384765625, -0.007518768310546875, 0.0261077880859375, 0.0300140380859375, 0.0021572113037109375, 0.005767822265625, -0.0117950439453125, 0.065673828125, 0.00576019287109375, -0.0325927734375, 0.056884765625, -0.034698486328125, 0.0233917236328125, 0.0533447265625, 0.059814453125, -0.0775146484375, 0.0116424560546875, -0.0037250518798828125, -0.01313018798828125, 0.0467529296875, 0.01800537109375, -0.00009518861770629883, 0.01465606689453125, -0.00806427001953125, -0.0079803466796875, -0.0247039794921875, 0.0028209686279296875, 0.009765625, 0.001323699951171875, -0.01468658447265625, 0.002216339111328125, -0.0031280517578125, 0.020477294921875, -0.004619598388671875, -0.021820068359375, 0.01922607421875, -0.0028743743896484375, 0.00244140625, -0.010589599609375, 0.007282257080078125, -0.041351318359375, 0.013946533203125, -0.0645751953125, 0.014862060546875, 0.0297088623046875, 0.045318603515625, 0.048431396484375, 0.05841064453125, 0.020355224609375, 0.004062652587890625, 0.03314208984375, 0.004573822021484375, -0.06231689453125, -0.02423095703125, 0.00876617431640625, 0.04376220703125, -0.042388916015625, 0.03900146484375, -0.022186279296875, -0.01177978515625, -0.006290435791015625, 0.023590087890625, 0.11053466796875, -0.049530029296875, -0.028961181640625, 0.0135040283203125, 0.011627197265625, 0.0003917217254638672, -0.01332855224609375, -0.019439697265625, -0.06304931640625, -0.026092529296875, -0.019500732421875, -0.0467529296875, 0.01690673828125, -0.006618499755859375, -0.0924072265625, 0.1065673828125, 0.0374755859375, 0.0229339599609375, -0.01079559326171875, 0.040802001953125, -0.03662109375, 0.00307464599609375, -0.048065185546875, 0.06695556640625, -0.0050048828125, 0.050933837890625, -0.07489013671875, -0.027587890625, 0.00868988037109375, 0.055084228515625, 0.053070068359375, 0.01474761962890625, -0.039337158203125, -0.0164031982421875, 0.037078857421875, 0.02886962890625, -0.0109100341796875, 0.025909423828125, -0.0054931640625, 0.04241943359375, 0.058258056640625, -0.0321044921875, 0.025238037109375, 0.0279998779296875, -0.0273284912109375, 0.0131683349609375, -0.001461029052734375, -0.0016994476318359375, -0.0192108154296875, 0.0039215087890625, -0.02862548828125, -0.0158843994140625, 0.00835418701171875, 0.0252685546875, 0.0225830078125, 0.00994873046875, 0.0362548828125, -0.004611968994140625, 0.0166778564453125, -0.02117919921875, 0.055145263671875, 0.0244140625, 0.033538818359375, -0.00635528564453125, 0.008636474609375, 0.039794921875, -0.01233673095703125, 0.001522064208984375, 0.017333984375, -0.0027866363525390625, 0.0885009765625, 0.0167999267578125, 0.00775909423828125, -0.059356689453125, 0.0157623291015625, 0.0306243896484375, 0.08953857421875, -0.06884765625, -0.03521728515625, 0.007904052734375, 0.021759033203125, 0.0232391357421875, 0.00597381591796875, 0.04022216796875, -0.021026611328125, 0.000820159912109375, -0.034271240234375, 0.018280029296875, 0.0024204254150390625, 0.01024627685546875, -0.015472412109375, 0.00811767578125, -0.0190582275390625, 0.00797271728515625, -0.060089111328125, -0.0022907257080078125, 0.0010690689086914062, 0.0670166015625, 0.05120849609375, 0.060821533203125, 0.0186004638671875, -0.043670654296875, 0.0146026611328125, -0.017242431640625, 0.044097900390625, -0.031341552734375, 0.01309967041015625, -0.005901336669921875, 0.0287933349609375, 0.024139404296875, -0.016448974609375, 0.047515869140625, 0.050811767578125, 0.043060302734375, -0.015777587890625, -0.018798828125, 0.03729248046875, -0.0298919677734375, -0.02093505859375, -0.0310821533203125, -0.0138397216796875, 0.00775146484375, -0.0032825469970703125, 0.0164947509765625, 0.006229400634765625, 0.00627899169921875, 0.0019969940185546875, 0.0093231201171875, 0.01151275634765625, -0.028411865234375, 0.06561279296875, -0.0076141357421875, 0.0850830078125, 0.022308349609375, -0.09698486328125, 0.0024890899658203125, -0.041778564453125, -0.0679931640625, 0.02447509765625, 0.03656005859375, -0.034576416015625, 0.0268096923828125, 0.01099395751953125, -0.01555633544921875, 0.0263214111328125, -0.0012598037719726562, 0.00870513916015625, 0.00975799560546875, 0.0078125, -0.004985809326171875, -0.0726318359375, -0.0302734375, -0.033172607421875, 0.03131103515625, -0.00007325410842895508, 0.07275390625, -0.00858306884765625, 0.025421142578125, -0.04510498046875, 0.0258026123046875, -0.036834716796875, -0.03759765625, 0.024871826171875, 0.028472900390625, 0.01493072509765625, -0.01259613037109375, 0.03729248046875, 0.00982666015625, 0.032623291015625, -0.02899169921875, -0.019439697265625, -0.027435302734375, 0.040313720703125, 0.01367950439453125, -0.0188140869140625, -0.0264739990234375, 0.0245361328125, -0.0357666015625, -0.0428466796875, 0.05548095703125, 0.000507354736328125, 0.00292205810546875, 0.0377197265625, 0.04296875, -0.01629638671875, 0.0265960693359375, -0.0311126708984375, 0.043060302734375, 0.039581298828125, 0.0176239013671875, -0.0016164779663085938, 0.0106201171875, -0.0200653076171875, 0.0184783935546875, -0.0021686553955078125, 0.041015625, 0.022918701171875, -0.047576904296875, -0.005001068115234375, 0.0230865478515625, 0.03851318359375, -0.022552490234375, 0.018280029296875, -0.01354217529296875, -0.00556182861328125, 0.01202392578125, -0.01107025146484375, -0.01387786865234375, -0.013885498046875, -0.00202178955078125, 0.00803375244140625, -0.00287628173828125, -0.059356689453125, -0.051666259765625, -0.006389617919921875, 0.01409149169921875, -0.019317626953125, -0.01520538330078125, -0.00910186767578125, -0.003200531005859375, 0.0250396728515625, -0.01055145263671875, 0.0015115737915039062, 0.024322509765625, 0.0565185546875, -0.0226287841796875, 0.00655364990234375, -0.007358551025390625, -0.00005733966827392578, 0.007762908935546875, 0.0213165283203125, 0.054962158203125, -0.020416259765625, -0.047271728515625, -0.0005102157592773438, -0.007572174072265625, 0.040557861328125, 0.0098876953125, -0.017486572265625, -0.00012576580047607422, -0.00037670135498046875, -0.01336669921875, -0.058563232421875, 0.0216217041015625, -0.0677490234375, -0.0413818359375, -0.016632080078125, 0.027557373046875, 0.052276611328125, -0.003307342529296875, -0.08209228515625, 0.044464111328125, -0.0251312255859375, -0.030548095703125, -0.033721923828125, 0.0152130126953125, 0.01395416259765625, -0.00949859619140625, 0.003787994384765625, -0.044708251953125, -0.040313720703125, -0.004917144775390625, -0.01250457763671875, 0.006931304931640625, 0.04083251953125, -0.02520751953125, -0.06768798828125, -0.04266357421875, -0.0270538330078125, -0.0172576904296875, 0.0160980224609375, -0.01561737060546875, 0.01143646240234375, -0.000797271728515625, -0.057647705078125, -0.036285400390625, -0.00954437255859375, 0.0438232421875, -0.03765869140625, -0.050811767578125, -0.002223968505859375, 0.000514984130859375, 0.0811767578125, 0.03509521484375, 0.0077972412109375, -0.0400390625, 0.021942138671875, -0.01131439208984375, -0.060760498046875, -0.00499725341796875, 0.0194549560546875, -0.051788330078125, -0.0111541748046875, 0.00798797607421875, -0.01702880859375, 0.0005955696105957031, -0.01287078857421875, -0.026123046875, 0.007572174072265625, 0.019195556640625, 0.00000947713851928711, -0.0191650390625, -0.002010345458984375, 0.060272216796875, -0.04107666015625, -0.0212249755859375, 0.01322174072265625, 0.003459930419921875, 0.01189422607421875, 0.00849151611328125, 0.0117034912109375, -0.0185699462890625, -0.053466796875, 0.0181732177734375, -0.0186004638671875, 0.06121826171875, -0.05023193359375, -0.0222625732421875, -0.0003802776336669922, 0.02984619140625, -0.0180511474609375, 0.0179595947265625, -0.0125579833984375, 0.06658935546875, 0.005039215087890625, 0.0765380859375, -0.032135009765625, -0.017425537109375, -0.03033447265625, 0.00777435302734375, -0.0188446044921875, 0.01251983642578125, 0.034637451171875, -0.0200347900390625, 0.0031280517578125, -0.01373291015625, -0.042755126953125, -0.0223541259765625, -0.018829345703125, 0.034423828125, -0.03515625, 0.00542449951171875 ]
45b27fe24135f41e674c8275ea17c286a29a0f14
Wordpress Stackexchange Q: Allowing more elements in comments via functions.php I would like to allow certain HTML elements in my comments and have edited kses.php directly in the past. However, I have been hacked recently and replaced all the core Wordpress files and feel I would like to avoid editing those files. Is it possible to allow more elements via the functions.php file? A: Here is an example how to allow a commenter to insert HTML5 video into the comment. Both <video> and <source> elements has two allowed attributes. preprocess_comment filter is applied when saving the comment to the DB. See /wp-includes/kses.php for $allowedtags array structure. function myAllowHtmlComments($comment) { global $allowedtags; $allowedtags['video'] = array( 'width' => true, 'height' => true ); $allowedtags['source'] = array( 'src' => true, 'type' => true ); return $comment; } add_filter('preprocess_comment','myAllowHtmlComments');
Q: Allowing more elements in comments via functions.php I would like to allow certain HTML elements in my comments and have edited kses.php directly in the past. However, I have been hacked recently and replaced all the core Wordpress files and feel I would like to avoid editing those files. Is it possible to allow more elements via the functions.php file? A: Here is an example how to allow a commenter to insert HTML5 video into the comment. Both <video> and <source> elements has two allowed attributes. preprocess_comment filter is applied when saving the comment to the DB. See /wp-includes/kses.php for $allowedtags array structure. function myAllowHtmlComments($comment) { global $allowedtags; $allowedtags['video'] = array( 'width' => true, 'height' => true ); $allowedtags['source'] = array( 'src' => true, 'type' => true ); return $comment; } add_filter('preprocess_comment','myAllowHtmlComments');
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:427125", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77214" }
[ 0.08013916015625, -0.00698089599609375, -0.00846099853515625, -0.03271484375, 0.0282440185546875, -0.024871826171875, 0.06158447265625, -0.01959228515625, -0.0210418701171875, 0.0224151611328125, -0.05230712890625, 0.004360198974609375, 0.0008268356323242188, -0.005756378173828125, -0.0005707740783691406, -0.053253173828125, 0.03564453125, -0.018280029296875, 0.043548583984375, -0.003570556640625, 0.032745361328125, 0.0149993896484375, 0.0202178955078125, 0.0232086181640625, -0.0061492919921875, -0.034027099609375, 0.096435546875, -0.0113372802734375, 0.002071380615234375, -0.011016845703125, 0.008392333984375, -0.01117706298828125, 0.026153564453125, 0.066162109375, -0.10650634765625, -0.0280914306640625, 0.0108489990234375, 0.00860595703125, -0.0285797119140625, 0.05413818359375, 0.0200653076171875, -0.0055389404296875, 0.0207672119140625, 0.031402587890625, -0.007770538330078125, -0.03521728515625, 0.0303802490234375, -0.034271240234375, -0.02105712890625, -0.02099609375, 0.021759033203125, 0.01146697998046875, 0.050201416015625, -0.052734375, -0.0093231201171875, 0.0016231536865234375, -0.05462646484375, 0.00611114501953125, 0.01210784912109375, 0.056060791015625, 0.02130126953125, -0.006103515625, -0.00799560546875, -0.0241546630859375, -0.0197296142578125, 0.0030345916748046875, 0.049163818359375, 0.0161895751953125, -0.018768310546875, -0.03741455078125, 0.0113067626953125, 0.0114593505859375, 0.015380859375, -0.053253173828125, 0.037841796875, -0.01499176025390625, -0.043975830078125, -0.043121337890625, 0.035888671875, -0.007694244384765625, 0.043426513671875, -0.008209228515625, 0.0037841796875, -0.036407470703125, 0.006183624267578125, -0.045318603515625, -0.002719879150390625, 0.0023632049560546875, -0.0306243896484375, -0.0012063980102539062, -0.023345947265625, -0.03857421875, -0.020050048828125, 0.01253509521484375, 0.00628662109375, -0.00832366943359375, 0.006504058837890625, 0.0023040771484375, -0.01849365234375, 0.01302337646484375, 0.01015472412109375, -0.04437255859375, 0.04620361328125, -0.0284423828125, 0.024658203125, 0.060821533203125, -0.0016622543334960938, -0.027435302734375, 0.04156494140625, -0.0108642578125, 0.01218414306640625, 0.0273284912109375, -0.0101165771484375, -0.0184478759765625, -0.03546142578125, 0.023895263671875, -0.006885528564453125, -0.0111236572265625, 0.00441741943359375, -0.0004038810729980469, -0.01100921630859375, 0.01384735107421875, 0.005527496337890625, -0.029876708984375, -0.0005517005920410156, -0.0161895751953125, -0.00469970703125, -0.0167083740234375, 0.00323486328125, 0.01904296875, -0.016754150390625, 0.036834716796875, 0.0106353759765625, -0.0106048583984375, -0.0250396728515625, -0.00783538818359375, -0.00782012939453125, 0.00835418701171875, -0.01238250732421875, 0.035980224609375, -0.003635406494140625, -0.0438232421875, -0.0011339187622070312, -0.0192413330078125, -0.0284881591796875, -0.0036773681640625, 0.01262664794921875, 0.030609130859375, -0.00933074951171875, -0.056365966796875, 0.0271148681640625, -0.01183319091796875, 0.048614501953125, -0.0122222900390625, -0.0063018798828125, -0.08990478515625, -0.0005822181701660156, -0.061553955078125, 0.051544189453125, -0.05279541015625, -0.01053619384765625, 0.006107330322265625, 0.0262298583984375, -0.055938720703125, -0.049041748046875, -0.01007843017578125, -0.0248870849609375, -0.00414276123046875, 0.0185089111328125, 0.07891845703125, -0.064697265625, -0.029541015625, 0.018798828125, 0.03204345703125, -0.024505615234375, 0.0379638671875, -0.0010213851928710938, 0.0254364013671875, -0.0118408203125, 0.06683349609375, 0.0234375, -0.035369873046875, 0.055267333984375, -0.0155181884765625, -0.042205810546875, 0.014984130859375, 0.0188751220703125, 0.046112060546875, 0.023651123046875, 0.021240234375, 0.038848876953125, -0.0116424560546875, 0.02850341796875, -0.004924774169921875, 0.01316070556640625, -0.05120849609375, -0.012420654296875, -0.0259552001953125, -0.01361846923828125, 0.0009813308715820312, 0.05462646484375, -0.0361328125, 0.051116943359375, -0.002368927001953125, 0.0139617919921875, -0.007312774658203125, -0.004077911376953125, 0.018646240234375, 0.01421356201171875, 0.043182373046875, 0.0179595947265625, -0.00829315185546875, -0.030548095703125, -0.0017232894897460938, -0.017913818359375, -0.02545166015625, 0.002460479736328125, 0.0634765625, -0.0028476715087890625, 0.06280517578125, -0.0032520294189453125, -0.0479736328125, 0.006946563720703125, -0.0038318634033203125, 0.055023193359375, -0.0180511474609375, -0.0227813720703125, -0.03436279296875, 0.0382080078125, 0.0180206298828125, -0.045745849609375, 0.01500701904296875, 0.0186767578125, 0.0421142578125, 0.022705078125, -0.0085601806640625, 0.036376953125, -0.0780029296875, 0.0305023193359375, 0.0303192138671875, 0.043670654296875, 0.04559326171875, 0.0106658935546875, -0.01479339599609375, 0.0919189453125, -0.015594482421875, 0.028045654296875, -0.047515869140625, -0.01080322265625, -0.0014657974243164062, 0.0067138671875, -0.0007462501525878906, 0.0338134765625, -0.0245361328125, 0.00008046627044677734, 0.0207366943359375, -0.0003800392150878906, 0.0068817138671875, -0.0546875, 0.04461669921875, 0.01064300537109375, -0.007282257080078125, -0.0244903564453125, -0.01146697998046875, 0.04974365234375, -0.0260772705078125, 0.0195770263671875, 0.0006456375122070312, -0.0280914306640625, -0.002323150634765625, 0.01242828369140625, -0.005626678466796875, -0.007007598876953125, 0.0367431640625, -0.0209808349609375, 0.04705810546875, 0.00478363037109375, -0.0038967132568359375, -0.01611328125, 0.0250396728515625, -0.016021728515625, 0.03594970703125, -0.0257415771484375, -0.01611328125, -0.024261474609375, -0.033111572265625, -0.00223541259765625, 0.0033931732177734375, -0.041229248046875, -0.0170440673828125, 0.01806640625, 0.0277862548828125, -0.00957489013671875, -0.00441741943359375, 0.03594970703125, 0.0034027099609375, 0.0234375, -0.08160400390625, 0.06842041015625, -0.0301971435546875, 0.07196044921875, 0.08642578125, 0.00417327880859375, -0.0009050369262695312, 0.005008697509765625, -0.0001308917999267578, 0.01317596435546875, 0.018829345703125, -0.01319122314453125, -0.01207733154296875, -0.05255126953125, -0.016571044921875, 0.01474761962890625, -0.0153961181640625, 0.0247802734375, -0.0013103485107421875, -0.015869140625, 0.025634765625, -0.0290985107421875, -0.006168365478515625, 0.0899658203125, -0.039794921875, -0.014434814453125, -0.009552001953125, -0.037750244140625, -0.020599365234375, 0.01277923583984375, -0.031982421875, -0.035186767578125, -0.023529052734375, -0.037841796875, -0.0281524658203125, -0.04534912109375, 0.06719970703125, 0.00836181640625, 0.0195770263671875, 0.006824493408203125, 0.052703857421875, 0.0126953125, -0.038482666015625, 0.00635528564453125, -0.0203857421875, -0.0148468017578125, -0.01629638671875, 0.0301666259765625, -0.033599853515625, -0.0202789306640625, -0.005100250244140625, -0.03106689453125, 0.025604248046875, -0.00760650634765625, -0.0038318634033203125, -0.010589599609375, 0.037322998046875, 0.037506103515625, 0.03875732421875, 0.005245208740234375, 0.03607177734375, 0.0611572265625, -0.007083892822265625, -0.016448974609375, 0.0303955078125, -0.021759033203125, -0.0335693359375, 0.013214111328125, -0.024169921875, -0.0010881423950195312, -0.0194549560546875, 0.01036834716796875, 0.0178070068359375, 0.044891357421875, -0.01006317138671875, -0.035675048828125, -0.0170440673828125, -0.017730712890625, -0.03631591796875, 0.01593017578125, -0.020416259765625, -0.01445770263671875, -0.0218963623046875, -0.0116424560546875, -0.0179595947265625, -0.0181121826171875, -0.046844482421875, -0.015594482421875, 0.026336669921875, -0.0014133453369140625, 0.036773681640625, -0.035125732421875, -0.028533935546875, -0.023284912109375, 0.054412841796875, -0.0006690025329589844, -0.012603759765625, -0.0256500244140625, -0.00044465065002441406, -0.039947509765625, -0.0282135009765625, -0.0269622802734375, 0.005931854248046875, 0.0167388916015625, 0.0309906005859375, -0.01806640625, 0.019500732421875, -0.033172607421875, -0.012908935546875, 0.00035309791564941406, -0.01180267333984375, 0.0214385986328125, -0.0014190673828125, -0.019287109375, 0.041748046875, -0.039642333984375, 0.038818359375, -0.013885498046875, -0.020782470703125, -0.054779052734375, -0.0173492431640625, -0.042388916015625, 0.065673828125, 0.02850341796875, -0.0294952392578125, -0.034637451171875, 0.0244140625, -0.013336181640625, 0.041656494140625, 0.0151214599609375, 0.03607177734375, -0.0147705078125, -0.03857421875, 0.0248260498046875, -0.051422119140625, -0.0047760009765625, 0.028167724609375, 0.0350341796875, 0.09033203125, -0.0229034423828125, -0.01290130615234375, -0.0091705322265625, -0.0184326171875, -0.0007944107055664062, -0.031494140625, -0.048583984375, -0.00470733642578125, -0.0213623046875, -0.0305938720703125, -0.0209197998046875, -0.0140838623046875, 0.0271148681640625, -0.0023956298828125, -0.005008697509765625, 0.0005774497985839844, 0.035797119140625, 0.02178955078125, -0.032012939453125, -0.021453857421875, -0.01068878173828125, 0.04705810546875, -0.002140045166015625, 0.024566650390625, 0.01824951171875, -0.0221405029296875, 0.0250091552734375, 0.01241302490234375, 0.0296478271484375, 0.00971221923828125, 0.01337432861328125, 0.015716552734375, -0.004955291748046875, 0.0248260498046875, 0.044281005859375, -0.022552490234375, -0.06512451171875, -0.03216552734375, 0.0287017822265625, -0.0180816650390625, 0.011749267578125, 0.032623291015625, 0.0098419189453125, -0.032806396484375, -0.013427734375, -0.0041046142578125, -0.020263671875, 0.08245849609375, 0.037078857421875, 0.004070281982421875, 0.031707763671875, 0.0352783203125, 0.018096923828125, 0.0017299652099609375, -0.027069091796875, -0.0244903564453125, 0.0421142578125, -0.004085540771484375, 0.00769805908203125, 0.0277252197265625, 0.0006170272827148438, 0.046844482421875, 0.033447265625, -0.01213836669921875, -0.0307769775390625, 0.0253448486328125, -0.00009292364120483398, -0.005939483642578125, 0.020599365234375, -0.003368377685546875, 0.000980377197265625, -0.01007080078125, 0.024200439453125, -0.00258636474609375, -0.0171661376953125, -0.0164947509765625, -0.036529541015625, 0.0233612060546875, -0.035491943359375, 0.01003265380859375, 0.0413818359375, 0.0049285888671875, 0.02532958984375, -0.0282745361328125, 0.046875, 0.018829345703125, 0.0290069580078125, 0.01500701904296875, 0.00036907196044921875, -0.0101470947265625, -0.0031337738037109375, -0.0308685302734375, 0.01166534423828125, -0.0234375, 0.029632568359375, -0.013275146484375, 0.024505615234375, 0.0394287109375, -0.026702880859375, 0.0161590576171875, -0.0002448558807373047, -0.005706787109375, 0.002895355224609375, -0.0127410888671875, 0.00783538818359375, 0.003662109375, -0.0072479248046875, -0.0018625259399414062, 0.008941650390625, 0.0243377685546875, -0.0066986083984375, 0.00661468505859375, 0.055023193359375, -0.0279083251953125, -0.023223876953125, -0.0198516845703125, -0.031646728515625, -0.005611419677734375, -0.004817962646484375, -0.0623779296875, -0.0357666015625, -0.006832122802734375, -0.015716552734375, 0.036956787109375, -0.01374053955078125, 0.0189208984375, -0.008270263671875, -0.0189208984375, 0.0197906494140625, 0.0095062255859375, -0.00492095947265625, -0.025238037109375, -0.00909423828125, 0.00437164306640625, -0.0328369140625, -0.0362548828125, -0.04144287109375, -0.037750244140625, -0.052032470703125, -0.007076263427734375, 0.0090789794921875, 0.0322265625, -0.0160980224609375, 0.0015535354614257812, 0.026702880859375, 0.0438232421875, -0.01544952392578125, 0.08013916015625, -0.03173828125, 0.01263427734375, 0.032958984375, -0.02947998046875, 0.01050567626953125, 0.007965087890625, 0.01496124267578125, -0.01151275634765625, 0.01302337646484375, -0.0556640625, -0.0421142578125, -0.01018524169921875, -0.034637451171875, 0.046417236328125, 0.044769287109375, -0.0019197463989257812, 0.038787841796875, -0.04156494140625, 0.00627899169921875, -0.018798828125, 0.050933837890625, -0.063720703125, -0.0006542205810546875, 0.018798828125, -0.01454925537109375, -0.00737762451171875, -0.0197906494140625, 0.01146697998046875, 0.011627197265625, 0.01219940185546875, 0.005008697509765625, -0.007442474365234375, -0.0195465087890625, 0.006305694580078125, 0.05194091796875, -0.0014743804931640625, 0.05303955078125, -0.014312744140625, 0.0207061767578125, 0.047698974609375, 0.045928955078125, -0.01345062255859375, -0.01849365234375, 0.0111846923828125, 0.0009241104125976562, 0.0105133056640625, -0.006618499755859375, -0.00677490234375, 0.02593994140625, 0.038726806640625, 0.044281005859375, -0.054443359375, 0.00975799560546875, -0.01432037353515625, -0.035491943359375, 0.046783447265625, -0.034820556640625, 0.03497314453125, -0.046600341796875, 0.06561279296875, 0.03289794921875, -0.002422332763671875, 0.0162200927734375, -0.0298614501953125, -0.00616455078125, -0.0211639404296875, 0.0194854736328125, -0.01152801513671875, -0.0183258056640625, -0.040496826171875, 0.01513671875, -0.045318603515625, -0.0081787109375, 0.0026035308837890625, 0.0017366409301757812, -0.037445068359375, -0.056732177734375, -0.00759124755859375, -0.027313232421875, 0.007434844970703125, 0.059967041015625, 0.005146026611328125, 0.00942230224609375, 0.0423583984375, -0.022247314453125, 0.0301666259765625, 0.007373809814453125, -0.00319671630859375, -0.0310211181640625, -0.004375457763671875, 0.03466796875, -0.0016117095947265625, 0.0276947021484375, 0.0286407470703125, 0.005657196044921875, -0.050628662109375, 0.00037670135498046875, 0.01537322998046875, 0.001171112060546875, 0.0286712646484375, -0.033905029296875, 0.055389404296875, 0.0092620849609375, -0.0285797119140625, 0.01419830322265625, -0.0103912353515625, -0.0550537109375, -0.031951904296875, 0.006103515625, -0.061614990234375, 0.0195159912109375, 0.02679443359375, -0.076171875, 0.0872802734375, 0.044769287109375, 0.037384033203125, 0.015838623046875, 0.00856781005859375, -0.05499267578125, -0.0158233642578125, 0.01465606689453125, -0.029449462890625, -0.027557373046875, -0.006916046142578125, -0.02752685546875, -0.0217132568359375, -0.021636962890625, 0.0838623046875, -0.003841400146484375, -0.0118255615234375, 0.0032558441162109375, 0.0134735107421875, 0.043060302734375, 0.028961181640625, 0.007404327392578125, 0.0031719207763671875, 0.0038242340087890625, 0.0181427001953125, 0.05877685546875, -0.0232696533203125, 0.0283355712890625, -0.02496337890625, -0.0037078857421875, 0.0055999755859375, -0.0104827880859375, -0.042510986328125, -0.01457977294921875, 0.0147552490234375, 0.00821685791015625, -0.01812744140625, -0.0295562744140625, -0.0158538818359375, -0.0177001953125, 0.05401611328125, 0.04290771484375, -0.06292724609375, -0.0298004150390625, -0.026611328125, 0.037689208984375, 0.0182952880859375, 0.01497650146484375, 0.059478759765625, 0.022125244140625, 0.006725311279296875, 0.027008056640625, 0.031890869140625, -0.0002608299255371094, 0.00791168212890625, -0.01433563232421875, -0.01055908203125, 0.001453399658203125, -0.0496826171875, -0.0226898193359375, 0.0361328125, 0.0169219970703125, -0.0124664306640625, 0.0275115966796875, 0.00997161865234375, 0.039276123046875, 0.007598876953125, -0.015869140625, 0.05828857421875, 0.052490234375, 0.02685546875, -0.01087188720703125, -0.0191650390625, 0.0093994140625, 0.040924072265625, 0.012603759765625, 0.015380859375, -0.01369476318359375, -0.04296875, -0.044525146484375, -0.01355743408203125, 0.008544921875, 0.05401611328125, 0.020843505859375, 0.082275390625, 0.018829345703125, -0.0153656005859375, 0.0191650390625, 0.031463623046875, -0.0010929107666015625, -0.036468505859375, 0.01248931884765625, -0.033447265625, 0.002429962158203125, 0.007503509521484375, 0.002758026123046875, 0.018463134765625, 0.009796142578125, -0.0179901123046875, -0.01120758056640625, -0.0010633468627929688, 0.005321502685546875, -0.03131103515625, -0.0018987655639648438, -0.046142578125, -0.0031375885009765625, 0.039154052734375, -0.018646240234375, 0.01751708984375, -0.043426513671875, 0.08526611328125, 0.0084686279296875, -0.0160369873046875, 0.0160675048828125, -0.0216217041015625, 0.03814697265625, 0.0316162109375, -0.005641937255859375, 0.039703369140625, -0.047943115234375, -0.01142120361328125, 0.01154327392578125, -0.0396728515625, 0.021484375, 0.03717041015625, -0.046478271484375, 0.046295166015625, 0.0404052734375, -0.030792236328125, 0.04376220703125, 0.003467559814453125, 0.0011167526245117188, 0.042724609375, 0.031982421875, 0.01364898681640625, -0.042572021484375, -0.01433563232421875, -0.017120361328125, 0.039337158203125, 0.01313018798828125, 0.0721435546875, -0.0155487060546875, 0.0306549072265625, -0.03424072265625, -0.0179443359375, 0.020538330078125, -0.028533935546875, 0.0797119140625, 0.043304443359375, -0.0207366943359375, -0.0253143310546875, -0.036041259765625, 0.076171875, 0.01013946533203125, 0.01318359375, 0.0743408203125, -0.029937744140625, -0.012542724609375, -0.02105712890625, 0.0296630859375, -0.01177978515625, -0.06500244140625, -0.06640625, -0.002803802490234375, 0.01177978515625, 0.0316162109375, 0.006084442138671875, 0.042999267578125, -0.0121917724609375, 0.0289154052734375, 0.0061798095703125, -0.003814697265625, -0.009002685546875, 0.0183563232421875, -0.032562255859375, -0.013763427734375, 0.0188446044921875, -0.0239105224609375, -0.0011539459228515625, 0.0042877197265625, 0.010894775390625, 0.00847625732421875, -0.049163818359375, -0.00004750490188598633, 0.06219482421875, 0.0618896484375, 0.00502777099609375, 0.0250396728515625, 0.024627685546875, -0.035797119140625, 0.01436614990234375, -0.0148773193359375, -0.0482177734375, -0.047576904296875, 0.007770538330078125, 0.0216827392578125, -0.0209503173828125, -0.05584716796875, -0.0672607421875, -0.0136260986328125, 0.03790283203125, 0.0129852294921875, -0.042388916015625, -0.00891876220703125, 0.0023860931396484375, 0.069091796875, -0.01201629638671875, -0.0035037994384765625, -0.00688934326171875, -0.01209259033203125, -0.0306243896484375, -0.0286712646484375, -0.033966064453125, 0.038818359375, -0.021087646484375, 0.060089111328125, 0.051025390625, -0.046661376953125, 0.0242462158203125, 0.086669921875, 0.0667724609375, 0.1334228515625, 0.0077056884765625, -0.002941131591796875, 0.031463623046875, -0.002651214599609375, -0.037078857421875, -0.06982421875, 0.01111602783203125, -0.06982421875, 0.005615234375, 0.030975341796875, -0.01371002197265625, 0.0261688232421875, -0.04718017578125, -0.1278076171875, 0.050994873046875, -0.020416259765625, -0.05462646484375, -0.0010919570922851562, -0.035400390625, -0.0220184326171875, 0.039306640625, 0.01291656494140625, -0.024261474609375, -0.013153076171875, 0.0257568359375, -0.0019435882568359375, 0.009063720703125, 0.0242919921875, -0.038360595703125, -0.051116943359375, -0.00457763671875, 0.0029392242431640625, 0.01126861572265625, -0.018707275390625, 0.0031795501708984375, 0.02459716796875, 0.023773193359375, -0.0297698974609375, 0.01113128662109375, 0.01537322998046875, 0.0259552001953125, -0.01032257080078125, -0.046905517578125, -0.036224365234375, -0.038848876953125, 0.032470703125, 0.052459716796875, 0.00855255126953125, -0.00873565673828125, 0.044708251953125, -0.017059326171875, -0.036224365234375, -0.0017900466918945312, 0.00693511962890625, -0.034393310546875, -0.018218994140625, 0.00818634033203125, 0.0147552490234375, 0.036102294921875, -0.0176849365234375, -0.0002732276916503906, -0.0140380859375, -0.0016841888427734375, -0.00916290283203125, -0.006435394287109375, 0.0186004638671875, 0.05096435546875, -0.054443359375, -0.0184326171875, -0.005062103271484375, -0.0112457275390625, 0.0129852294921875, -0.0267333984375, -0.031494140625, -0.09051513671875, 0.04022216796875, 0.03497314453125, -0.0127410888671875, 0.06719970703125, 0.008880615234375, -0.058563232421875, -0.0081939697265625, 0.007556915283203125, -0.0047149658203125, 0.007465362548828125, -0.0021953582763671875, 0.01036834716796875, -0.0009446144104003906, 0.0291595458984375, -0.021728515625, 0.0129241943359375, -0.00876617431640625, 0.01044464111328125, -0.019927978515625, -0.006099700927734375, 0.01497650146484375, -0.029266357421875, -0.0034008026123046875, 0.006641387939453125, -0.00995635986328125, -0.049102783203125, 0.040496826171875, 0.041046142578125, 0.0169219970703125, 0.022491455078125 ]
acd9d1297b0d53e1e201a59a0dfc83b4907d97d0
Wordpress Stackexchange Q: WordPress Internal @ Mentions I'm looking for a way to link to author pages within one WordPress install simply by putting the @ symbol in front of a person's username in a post.... just like on twitter. Example: If the username is "Bill256" and I write "@Bill256" it will be linked to his author page. A: Look at the P2 theme. It does this, calling them "Mentions". http://themes.svn.wordpress.org/p2/1.4.2/inc/mentions.php
Q: WordPress Internal @ Mentions I'm looking for a way to link to author pages within one WordPress install simply by putting the @ symbol in front of a person's username in a post.... just like on twitter. Example: If the username is "Bill256" and I write "@Bill256" it will be linked to his author page. A: Look at the P2 theme. It does this, calling them "Mentions". http://themes.svn.wordpress.org/p2/1.4.2/inc/mentions.php A: This is a little tricky because sanitize_user allows spaces in usernames, meaning it difficult to avoid grabbing the whole phrase '@johndoe said that ... ' as opposed to just the actual username '@johndoe' and you have no separator at the end that would help. To avoid that I imposed a requirement that spaces in the username be replaced with '+'. function look_for_author($login) { if (!empty($login[1])) { $lname = str_replace('+',' ',$login[1]); $user = get_user_by('login',$lname); if (!empty($user)) return ' <a href="'.get_author_posts_url($user->ID).'">'.$lname.'</a> '; } return ' '.$login[0].' '; } function hyperlink_authors( $content ){ $content = preg_replace_callback( '/[\s>]+@([A-Za-z0-9_.\-*@\+]+)[^A-Za-z0-9_.\-*@\+]/', 'look_for_author', $content ); return $content; } add_filter( 'the_content', 'hyperlink_authors', 1 ); I would not expect this solution to be very robust, not without a lot of tweaking of the regex. And I think you would be better off with a shortcode, but there you go. Note: It occurred to me that this site has a similar mention-like functionality. When writing a comment, you can notify other users by writing "@username" but usernames here can have spaces as with WordPress. The "spaces" problem here was solved by requiring that spaces just be removed, rather than substituted with "+" signs. That could be another way to solve approach the problem.
wordpress
{ "language": "en", "length": 272, "provenance": "stackexchange_00019.jsonl.gz:427134", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77234" }
[ 0.041046142578125, -0.0020732879638671875, 0.0219573974609375, -0.0024166107177734375, -0.0081634521484375, -0.017333984375, 0.0236663818359375, -0.038421630859375, -0.0316162109375, 0.056365966796875, 0.0211181640625, 0.0290679931640625, 0.028472900390625, -0.015472412109375, 0.00751495361328125, -0.004177093505859375, 0.00551605224609375, 0.0271148681640625, 0.015899658203125, 0.00641632080078125, -0.00372314453125, 0.01081085205078125, -0.01497650146484375, -0.0333251953125, 0.04119873046875, 0.01129150390625, 0.10296630859375, -0.058135986328125, 0.06585693359375, -0.0029125213623046875, 0.031768798828125, -0.07159423828125, -0.0137939453125, 0.04736328125, -0.01288604736328125, -0.020416259765625, -0.043304443359375, 0.0460205078125, 0.02789306640625, -0.020599365234375, 0.011016845703125, 0.00966644287109375, -0.00499725341796875, 0.0418701171875, -0.0187225341796875, -0.060394287109375, 0.019775390625, -0.0433349609375, 0.025299072265625, -0.022796630859375, 0.006572723388671875, 0.03424072265625, 0.01922607421875, -0.013214111328125, 0.00015783309936523438, 0.0208282470703125, 0.038604736328125, -0.006191253662109375, 0.01371002197265625, -0.05792236328125, -0.0201263427734375, 0.037322998046875, 0.0228424072265625, 0.050567626953125, 0.038818359375, -0.0177764892578125, 0.01291656494140625, 0.030059814453125, -0.00313568115234375, 0.027099609375, 0.009918212890625, -0.01221466064453125, -0.0275115966796875, 0.006694793701171875, -0.02996826171875, -0.031768798828125, 0.027313232421875, -0.05438232421875, -0.01438140869140625, 0.039215087890625, -0.0260772705078125, 0.01233673095703125, -0.058624267578125, -0.0038433074951171875, 0.0224761962890625, 0.036163330078125, -0.01319122314453125, -0.028717041015625, -0.0400390625, 0.0023746490478515625, -0.020660400390625, -0.0231475830078125, -0.0301666259765625, 0.0272064208984375, -0.00789642333984375, 0.0146942138671875, 0.041595458984375, 0.04833984375, 0.02178955078125, 0.00789642333984375, -0.0222320556640625, -0.0206146240234375, -0.01049041748046875, -0.039764404296875, 0.0010766983032226562, 0.1029052734375, 0.0215606689453125, 0.059173583984375, 0.031829833984375, -0.004730224609375, 0.02935791015625, -0.01531982421875, -0.0117340087890625, -0.01123809814453125, -0.023101806640625, 0.007080078125, -0.03704833984375, 0.0177459716796875, 0.00577545166015625, -0.0013780593872070312, 0.006618499755859375, 0.01534271240234375, -0.01580810546875, 0.01511383056640625, -0.01381683349609375, -0.004940032958984375, 0.00628662109375, -0.032196044921875, -0.0035533905029296875, 0.0302734375, -0.038116455078125, 0.021148681640625, 0.0498046875, -0.0142364501953125, -0.0140533447265625, -0.036407470703125, 0.003734588623046875, 0.00604248046875, -0.0294189453125, 0.01415252685546875, -0.041015625, -0.006725311279296875, 0.0498046875, -0.054656982421875, -0.0106658935546875, -0.003814697265625, 0.01514434814453125, 0.039215087890625, -0.0218963623046875, -0.030731201171875, 0.0322265625, -0.01776123046875, -0.002475738525390625, -0.01256561279296875, 0.05194091796875, -0.04083251953125, 0.02728271484375, -0.04351806640625, 0.034881591796875, -0.00368499755859375, 0.040924072265625, 0.00782012939453125, -0.0038890838623046875, 0.010406494140625, -0.029083251953125, 0.004314422607421875, -0.01061248779296875, -0.0078125, 0.005725860595703125, -0.040252685546875, -0.0240478515625, -0.0289306640625, 0.0223236083984375, 0.0032749176025390625, 0.0005016326904296875, 0.0469970703125, -0.011138916015625, 0.028656005859375, 0.0170440673828125, 0.062286376953125, 0.0235595703125, -0.03057861328125, 0.07220458984375, -0.0163726806640625, -0.05670166015625, 0.007305145263671875, 0.022979736328125, 0.07861328125, 0.01070404052734375, 0.01258087158203125, 0.026885986328125, -0.01206207275390625, -0.0192718505859375, -0.012054443359375, -0.025909423828125, -0.0117950439453125, 0.0478515625, 0.0305633544921875, -0.0018062591552734375, 0.002101898193359375, -0.015625, -0.01593017578125, 0.0074920654296875, 0.027923583984375, -0.06463623046875, 0.034576416015625, -0.045379638671875, 0.02838134765625, 0.00958251953125, -0.0043182373046875, 0.0004532337188720703, -0.02825927734375, 0.050567626953125, -0.104248046875, -0.036224365234375, 0.0293731689453125, 0.0187530517578125, -0.0200958251953125, 0.0452880859375, 0.00708770751953125, 0.035430908203125, 0.050689697265625, 0.002552032470703125, -0.004192352294921875, 0.006229400634765625, -0.0574951171875, -0.01275634765625, -0.054779052734375, -0.04937744140625, -0.00335693359375, -0.07086181640625, 0.05206298828125, 0.042724609375, 0.01473236083984375, -0.01031494140625, 0.0094757080078125, 0.033447265625, -0.022857666015625, -0.0012540817260742188, 0.028564453125, 0.0151214599609375, -0.029632568359375, -0.00690460205078125, 0.040191650390625, 0.007617950439453125, 0.035858154296875, 0.036285400390625, 0.00841522216796875, 0.01456451416015625, 0.050140380859375, -0.01300048828125, 0.0192718505859375, 0.0222320556640625, -0.09368896484375, 0.024261474609375, 0.07928466796875, -0.0026092529296875, -0.0036468505859375, -0.01174163818359375, 0.024627685546875, 0.00220489501953125, 0.0131072998046875, -0.008819580078125, -0.005039215087890625, 0.0355224609375, -0.0200347900390625, 0.0219879150390625, 0.01904296875, -0.0170745849609375, -0.0305023193359375, 0.009368896484375, 0.039794921875, -0.01151275634765625, 0.0199737548828125, 0.050201416015625, -0.003711700439453125, -0.0225982666015625, 0.004589080810546875, -0.0136871337890625, 0.00458526611328125, -0.0059967041015625, -0.0284576416015625, 0.04388427734375, 0.0154571533203125, 0.00649261474609375, -0.01367950439453125, 0.068603515625, 0.0189208984375, -0.051025390625, -0.0275726318359375, -0.003082275390625, 0.05560302734375, -0.005756378173828125, 0.0090179443359375, 0.018218994140625, 0.00472259521484375, 0.03179931640625, -0.04302978515625, 0.0296783447265625, -0.019775390625, 0.0484619140625, 0.0673828125, 0.0343017578125, -0.0140533447265625, -0.000060617923736572266, -0.046356201171875, -0.004638671875, 0.03570556640625, 0.01611328125, -0.0264892578125, -0.003475189208984375, 0.041473388671875, 0.026947021484375, 0.04046630859375, -0.0045013427734375, -0.033447265625, -0.0176544189453125, 0.0287322998046875, -0.0814208984375, -0.053131103515625, 0.04339599609375, -0.056121826171875, -0.004039764404296875, -0.0028743743896484375, -0.043609619140625, -0.0146942138671875, 0.02587890625, -0.0157623291015625, -0.0170135498046875, -0.05908203125, -0.03143310546875, -0.0946044921875, -0.072998046875, -0.04632568359375, 0.000553131103515625, 0.0013790130615234375, 0.016448974609375, 0.00021886825561523438, 0.018768310546875, -0.0236358642578125, 0.024993896484375, 0.0284271240234375, 0.00482177734375, -0.002063751220703125, -0.004791259765625, 0.0181427001953125, -0.01271820068359375, 0.01568603515625, 0.0216827392578125, 0.029205322265625, -0.0426025390625, -0.0085601806640625, -0.011932373046875, 0.0017414093017578125, 0.039581298828125, -0.007068634033203125, -0.01418304443359375, 0.03692626953125, 0.07275390625, -0.007785797119140625, 0.0041351318359375, -0.005123138427734375, -0.027130126953125, -0.06378173828125, 0.0181884765625, -0.0214385986328125, -0.033111572265625, -0.025787353515625, -0.00968170166015625, 0.0157012939453125, -0.0225677490234375, 0.00276947021484375, -0.0021305084228515625, -0.00940704345703125, -0.005031585693359375, 0.019073486328125, -0.005889892578125, -0.005733489990234375, 0.050537109375, 0.00733184814453125, 0.033477783203125, -0.03228759765625, 0.06658935546875, -0.038360595703125, -0.011138916015625, 0.0302734375, -0.0222320556640625, -0.0003075599670410156, 0.0002181529998779297, -0.00335693359375, 0.01525115966796875, 0.038543701171875, -0.002780914306640625, -0.01629638671875, 0.01090240478515625, -0.0030155181884765625, -0.03521728515625, 0.00055694580078125, -0.04949951171875, -0.0100555419921875, -0.004795074462890625, 0.000060677528381347656, 0.0125885009765625, -0.00438690185546875, -0.03680419921875, 0.08148193359375, -0.01557159423828125, 0.004505157470703125, 0.00833892822265625, -0.040435791015625, 0.008941650390625, 0.0300140380859375, -0.01500701904296875, 0.0286712646484375, -0.008880615234375, -0.047576904296875, -0.0511474609375, -0.0145721435546875, -0.0035381317138671875, 0.05474853515625, -0.00255584716796875, 0.0031280517578125, -0.025970458984375, 0.033782958984375, -0.00722503662109375, 0.039398193359375, -0.01849365234375, 0.005664825439453125, -0.009307861328125, -0.0075225830078125, -0.0120849609375, -0.0181427001953125, 0.0126190185546875, 0.00356292724609375, -0.0643310546875, 0.01239776611328125, -0.0203399658203125, 0.0184326171875, 0.0295257568359375, -0.050933837890625, -0.03076171875, -0.01306915283203125, -0.004421234130859375, 0.072509765625, 0.003902435302734375, -0.00711822509765625, -0.0614013671875, -0.06500244140625, 0.03131103515625, -0.0026988983154296875, 0.0016183853149414062, 0.01910400390625, 0.06439208984375, 0.01174163818359375, -0.006526947021484375, -0.043792724609375, 0.04583740234375, 0.03985595703125, -0.006977081298828125, 0.07525634765625, 0.05926513671875, -0.005001068115234375, 0.0299224853515625, 0.0108184814453125, 0.0099029541015625, -0.012420654296875, 0.01021575927734375, -0.002330780029296875, -0.023223876953125, 0.0216522216796875, -0.01751708984375, 0.03955078125, 0.038421630859375, -0.0162200927734375, -0.0191497802734375, -0.020477294921875, 0.04815673828125, -0.035675048828125, 0.02947998046875, -0.056396484375, -0.0229339599609375, 0.007015228271484375, -0.0295257568359375, 0.02777099609375, 0.0033721923828125, 0.0033855438232421875, -0.01727294921875, 0.01369476318359375, -0.01194000244140625, 0.00016248226165771484, -0.037078857421875, -0.01983642578125, 0.003635406494140625, -0.015869140625, -0.0245819091796875, 0.017547607421875, -0.0249786376953125, 0.10107421875, 0.038055419921875, -0.051544189453125, 0.0140228271484375, -0.0159759521484375, -0.0133056640625, -0.0185546875, 0.027008056640625, -0.01294708251953125, -0.0201568603515625, 0.01287841796875, 0.032257080078125, 0.0056915283203125, 0.018707275390625, 0.0017499923706054688, 0.01508331298828125, -0.01250457763671875, 0.01251220703125, -0.01348114013671875, 0.09552001953125, -0.0142364501953125, 0.043914794921875, -0.0102386474609375, 0.043243408203125, 0.01214599609375, 0.007541656494140625, 0.0294952392578125, 0.007244110107421875, 0.009063720703125, -0.0283203125, -0.0213165283203125, -0.00970458984375, 0.03570556640625, 0.035186767578125, 0.07220458984375, 0.0287933349609375, -0.01062774658203125, -0.0197296142578125, -0.069580078125, -0.0229339599609375, 0.00496673583984375, 0.0006623268127441406, -0.03363037109375, 0.00022852420806884766, 0.01210784912109375, -0.004116058349609375, 0.00730133056640625, -0.0026569366455078125, -0.0188751220703125, -0.0302734375, -0.0096588134765625, 0.0019969940185546875, 0.007732391357421875, -0.0259246826171875, -0.031158447265625, 0.0215301513671875, -0.0217437744140625, -0.01343536376953125, -0.01505279541015625, -0.0013933181762695312, -0.034393310546875, -0.0081787109375, 0.063232421875, 0.01314544677734375, 0.054718017578125, -0.051116943359375, -0.005809783935546875, -0.0035572052001953125, -0.01934814453125, 0.058990478515625, 0.00853729248046875, -0.08935546875, 0.0316162109375, -0.040252685546875, 0.011474609375, 0.0194549560546875, -0.03277587890625, -0.045379638671875, -0.043701171875, 0.0167999267578125, 0.0158538818359375, -0.00984954833984375, -0.048919677734375, -0.038482666015625, 0.0164642333984375, 0.048095703125, 0.0150604248046875, 0.016448974609375, 0.04669189453125, -0.023040771484375, 0.048431396484375, 0.037139892578125, 0.043701171875, -0.00266265869140625, -0.041748046875, 0.020111083984375, -0.037872314453125, -0.0137939453125, -0.007259368896484375, -0.0271453857421875, -0.03143310546875, -0.0166778564453125, -0.00888824462890625, 0.008941650390625, -0.0191192626953125, 0.00974273681640625, -0.00960540771484375, -0.0106201171875, -0.00594329833984375, -0.041717529296875, 0.0382080078125, -0.005474090576171875, -0.007091522216796875, -0.0162200927734375, -0.00408172607421875, -0.028228759765625, 0.01971435546875, -0.0350341796875, 0.01244354248046875, -0.050567626953125, 0.02044677734375, 0.07781982421875, 0.042877197265625, 0.0628662109375, 0.01032257080078125, 0.033416748046875, 0.033935546875, 0.003429412841796875, 0.034423828125, -0.025970458984375, 0.029144287109375, 0.001316070556640625, 0.00504302978515625, 0.04205322265625, -0.01873779296875, -0.010650634765625, 0.0207366943359375, 0.021392822265625, -0.0504150390625, -0.008819580078125, -0.007648468017578125, -0.006908416748046875, 0.0190887451171875, -0.011932373046875, -0.0229949951171875, -0.05072021484375, 0.06048583984375, -0.0276031494140625, -0.006744384765625, 0.005939483642578125, -0.0161590576171875, 0.004428863525390625, -0.0022602081298828125, 0.05047607421875, 0.01450347900390625, 0.0191650390625, -0.0538330078125, -0.01508331298828125, -0.00955963134765625, -0.0272064208984375, -0.03143310546875, 0.0274810791015625, -0.02056884765625, -0.0087738037109375, 0.056793212890625, -0.0634765625, 0.0396728515625, -0.013275146484375, -0.01293182373046875, 0.0241851806640625, 0.020233154296875, -0.019073486328125, -0.0091094970703125, -0.00693511962890625, 0.0046844482421875, 0.059814453125, 0.004467010498046875, 0.00000852346420288086, 0.0187225341796875, -0.00850677490234375, 0.004154205322265625, -0.0097198486328125, 0.006488800048828125, -0.01763916015625, 0.0272674560546875, 0.0936279296875, -0.00623321533203125, -0.045745849609375, 0.0174407958984375, 0.0037841796875, -0.01702880859375, 0.0286407470703125, -0.026092529296875, -0.06488037109375, -0.06512451171875, 0.004070281982421875, -0.10357666015625, 0.0104217529296875, -0.0104522705078125, -0.0477294921875, 0.06878662109375, 0.0013332366943359375, 0.006153106689453125, -0.004238128662109375, 0.0306549072265625, -0.0106964111328125, 0.01114654541015625, -0.044342041015625, 0.072265625, 0.05535888671875, 0.047607421875, -0.050933837890625, -0.0249176025390625, 0.014190673828125, 0.033172607421875, 0.036346435546875, 0.0207672119140625, -0.0767822265625, -0.023590087890625, 0.01273345947265625, -0.00453948974609375, -0.01097869873046875, 0.0989990234375, 0.01200103759765625, -0.0187835693359375, 0.046112060546875, 0.006702423095703125, 0.049163818359375, -0.0260162353515625, 0.0026264190673828125, 0.0011463165283203125, 0.027740478515625, 0.0352783203125, -0.009429931640625, -0.0016727447509765625, -0.041961669921875, -0.005817413330078125, 0.0187530517578125, 0.003658294677734375, 0.0394287109375, 0.028228759765625, 0.05340576171875, 0.019134521484375, -0.0201873779296875, -0.00815582275390625, 0.042938232421875, 0.02227783203125, 0.004299163818359375, 0.0163421630859375, -0.01444244384765625, 0.00504302978515625, 0.00011867284774780273, -0.01024627685546875, 0.00981903076171875, 0.025665283203125, 0.043701171875, -0.00798797607421875, 0.0173492431640625, -0.0941162109375, -0.0372314453125, 0.0361328125, 0.07843017578125, -0.035980224609375, -0.0229034423828125, 0.007228851318359375, -0.0167083740234375, 0.00804901123046875, -0.02142333984375, 0.002994537353515625, 0.0178070068359375, -0.0102996826171875, -0.01132965087890625, -0.000027954578399658203, 0.05364990234375, 0.028594970703125, 0.01473236083984375, -0.036956787109375, -0.0635986328125, 0.004100799560546875, -0.0162811279296875, -0.0107269287109375, 0.0117950439453125, -0.01739501953125, 0.00390625, 0.02362060546875, 0.06494140625, 0.022186279296875, -0.018402099609375, -0.0025806427001953125, 0.0032558441162109375, 0.019195556640625, -0.01406097412109375, 0.0119171142578125, 0.006832122802734375, 0.033966064453125, -0.01006317138671875, 0.0238800048828125, 0.0170745849609375, 0.01678466796875, -0.0257720947265625, -0.007793426513671875, 0.01251220703125, -0.03216552734375, 0.0080413818359375, -0.03411865234375, -0.0032253265380859375, 0.0028076171875, -0.024993896484375, -0.00431060791015625, -0.0291595458984375, 0.0516357421875, -0.0097808837890625, 0.0161285400390625, 0.00604248046875, -0.0012607574462890625, 0.0037403106689453125, 0.00146484375, -0.029510498046875, 0.0213165283203125, -0.0489501953125, 0.0035858154296875, -0.0283050537109375, -0.050628662109375, 0.027984619140625, 0.048614501953125, -0.0125885009765625, -0.01422882080078125, 0.00029778480529785156, 0.01389312744140625, -0.0007648468017578125, -0.0142059326171875, 0.0015506744384765625, 0.05224609375, 0.049957275390625, 0.0292510986328125, -0.05572509765625, -0.027252197265625, -0.0160675048828125, 0.013763427734375, -0.003925323486328125, 0.0188751220703125, 0.0184173583984375, 0.00994873046875, -0.034820556640625, 0.006855010986328125, -0.051483154296875, -0.051025390625, 0.07073974609375, -0.02581787109375, -0.0345458984375, 0.020751953125, -0.1060791015625, 0.035125732421875, 0.007091522216796875, 0.018646240234375, 0.02862548828125, 0.006519317626953125, 0.01084136962890625, 0.006786346435546875, 0.01476287841796875, -0.038604736328125, -0.034027099609375, -0.007904052734375, -0.007965087890625, -0.004547119140625, -0.017120361328125, -0.01407623291015625, 0.0162353515625, 0.0233917236328125, -0.049957275390625, 0.020294189453125, -0.0272064208984375, -0.0118865966796875, 0.007526397705078125, 0.068115234375, -0.033660888671875, -0.020599365234375, -0.034454345703125, 0.017181396484375, -0.02459716796875, 0.053436279296875, -0.018157958984375, -0.040802001953125, -0.0007538795471191406, 0.025909423828125, 0.060211181640625, 0.01739501953125, 0.017303466796875, -0.0201263427734375, -0.0016298294067382812, 0.00634002685546875, -0.0157012939453125, -0.00983428955078125, -0.0265045166015625, -0.00025844573974609375, 0.0236968994140625, -0.01155853271484375, -0.00606536865234375, -0.0611572265625, -0.027252197265625, 0.029327392578125, 0.012420654296875, -0.03778076171875, 0.0080413818359375, 0.009765625, 0.0003821849822998047, 0.0003085136413574219, -0.01381683349609375, 0.01264190673828125, 0.03778076171875, -0.05572509765625, -0.01386260986328125, -0.026397705078125, -0.020965576171875, -0.035400390625, 0.0435791015625, 0.0694580078125, -0.033447265625, 0.0242767333984375, 0.03851318359375, 0.040252685546875, 0.089111328125, -0.0286102294921875, -0.040435791015625, 0.0156402587890625, -0.0186767578125, 0.0012693405151367188, -0.0631103515625, -0.0031528472900390625, -0.0615234375, 0.0149383544921875, -0.027679443359375, 0.01297760009765625, 0.00823211669921875, -0.038482666015625, -0.058349609375, 0.088134765625, -0.0142669677734375, -0.0294952392578125, -0.059722900390625, -0.0131378173828125, -0.01024627685546875, 0.01421356201171875, 0.0005664825439453125, -0.03411865234375, -0.0484619140625, 0.04547119140625, 0.0014514923095703125, -0.01110076904296875, 0.041748046875, -0.004852294921875, -0.018524169921875, -0.00506591796875, 0.00262451171875, -0.04931640625, 0.03729248046875, -0.0156402587890625, 0.029296875, 0.043487548828125, -0.0555419921875, -0.01342010498046875, -0.05029296875, -0.018890380859375, -0.0025272369384765625, -0.0416259765625, 0.0008325576782226562, -0.0263824462890625, 0.007503509521484375, -0.005260467529296875, -0.014862060546875, 0.0147705078125, 0.01349639892578125, -0.0170440673828125, 0.02178955078125, -0.0164337158203125, -0.01377105712890625, -0.0265960693359375, -0.01172637939453125, -0.00830841064453125, -0.031280517578125, 0.01088714599609375, -0.01085662841796875, -0.031280517578125, 0.01561737060546875, -0.00177764892578125, -0.03521728515625, 0.0280914306640625, 0.0051727294921875, 0.0267181396484375, -0.040283203125, -0.020751953125, 0.0027313232421875, -0.0002503395080566406, -0.003986358642578125, -0.0294342041015625, -0.01198577880859375, -0.017730712890625, 0.0022983551025390625, 0.017578125, 0.0005517005920410156, 0.0200042724609375, -0.0050201416015625, -0.017425537109375, -0.0289306640625, 0.0171661376953125, -0.0091400146484375, 0.01186370849609375, 0.00725555419921875, 0.0266571044921875, 0.00543975830078125, 0.0745849609375, -0.038177490234375, -0.01461029052734375, -0.03863525390625, 0.0338134765625, -0.026275634765625, 0.007099151611328125, 0.0281524658203125, -0.007244110107421875, 0.005023956298828125, 0.038787841796875, -0.017913818359375, -0.00635528564453125, 0.0005064010620117188, 0.037139892578125, 0.019500732421875, -0.0023193359375 ]
a3a76a01ae13eef21d606bd2e3c4d67350817f24
Wordpress Stackexchange Q: Advantages and disadvantages of using automatic-feed-links What are the advantages and disadvantages of using add_theme_support('automatic-feed-links') in my functions.php file? A: Hopefully someone will expand on this a bit more, but here goes: add_theme_support('automatic-feed-links') in your functions.php file, adds code (<link rel="alternate"...) to the <head> of your pages which links to the relevant RSS feed for that pages content. This is generally preferred to add code like this in WordPress than to put it in manually. Having such a link provides an "alternate" format for the content on the page. From: http://www.w3.org/QA/Tips/use-links It gives the possibility to RSS Readers to find the Web site updates feed. Googling about this myself, I share your frustration - it's difficult to find a good description of the pros/cons of including these links, and the relevant wordpress codex page is currently pretty weak.
Q: Advantages and disadvantages of using automatic-feed-links What are the advantages and disadvantages of using add_theme_support('automatic-feed-links') in my functions.php file? A: Hopefully someone will expand on this a bit more, but here goes: add_theme_support('automatic-feed-links') in your functions.php file, adds code (<link rel="alternate"...) to the <head> of your pages which links to the relevant RSS feed for that pages content. This is generally preferred to add code like this in WordPress than to put it in manually. Having such a link provides an "alternate" format for the content on the page. From: http://www.w3.org/QA/Tips/use-links It gives the possibility to RSS Readers to find the Web site updates feed. Googling about this myself, I share your frustration - it's difficult to find a good description of the pros/cons of including these links, and the relevant wordpress codex page is currently pretty weak. A: A long time ago WordPress did not put feed links into the head element automatically. Theme or plugin authors had to do that. In 2009 automatic_feed_links() was introduced, a function that should be used in themes or plugins to let WordPress do the hard work. One year later it was added to Twenty Ten, and it became a de facto standard. Not much later add_theme_support() was implemented and the first function was deprecated in favor of this new super-function which is now part of the theme review guidelines. But all this happens still to avoid conflicts with pre-2009 themes: WordPress does never create duplicate feed links, unless the author asks for that. I have questioned this practice. This functionality is not about presentation, and old themes should not have such an impact on the current development. Chip Bennett brought the issue up in his latest discussion about the theme review guidelines. I guess we can expect some progress here in the near future. So the advantage is: you get feed links. The disadvantage: you mix non-presentational functionality into the theme.
wordpress
{ "language": "en", "length": 320, "provenance": "stackexchange_00019.jsonl.gz:427136", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77247" }
[ 0.11346435546875, -0.008819580078125, 0.04815673828125, -0.0189971923828125, 0.0144500732421875, -0.040679931640625, 0.082275390625, -0.036041259765625, 0.0109405517578125, 0.0301513671875, -0.0218658447265625, 0.01605224609375, 0.0142669677734375, -0.019256591796875, -0.0111541748046875, -0.0053863525390625, 0.045745849609375, -0.0277099609375, 0.007228851318359375, 0.0106201171875, -0.01074981689453125, 0.048492431640625, 0.01383209228515625, 0.0165557861328125, 0.04278564453125, -0.035919189453125, 0.040130615234375, -0.004360198974609375, 0.02471923828125, 0.00453948974609375, 0.0191192626953125, -0.0197296142578125, 0.0257110595703125, 0.003597259521484375, -0.0173797607421875, -0.04302978515625, -0.0016756057739257812, -0.015167236328125, -0.02740478515625, 0.041015625, -0.010223388671875, 0.0164031982421875, 0.07635498046875, 0.01220703125, 0.00780487060546875, -0.00424957275390625, -0.01708984375, -0.0706787109375, -0.036529541015625, 0.0054168701171875, 0.018157958984375, -0.0146484375, 0.03167724609375, 0.0029239654541015625, 0.0009655952453613281, -0.00885772705078125, -0.0159912109375, 0.025787353515625, 0.0268096923828125, -0.047119140625, -0.03472900390625, -0.002925872802734375, 0.027496337890625, 0.016937255859375, -0.027313232421875, 0.0179901123046875, -0.00662994384765625, 0.0083770751953125, -0.0230560302734375, -0.045166015625, 0.0085601806640625, -0.0275726318359375, -0.00015056133270263672, 0.003238677978515625, -0.007793426513671875, -0.015716552734375, 0.0071563720703125, -0.01873779296875, 0.0211029052734375, 0.0166015625, -0.047698974609375, 0.0012521743774414062, -0.053375244140625, -0.06170654296875, 0.0160980224609375, -0.031463623046875, -0.025665283203125, 0.0094146728515625, -0.011138916015625, -0.0194854736328125, -0.027435302734375, -0.02484130859375, -0.018035888671875, 0.01294708251953125, -0.0142364501953125, -0.01464080810546875, 0.007724761962890625, 0.0158538818359375, -0.003143310546875, 0.024932861328125, -0.000006496906280517578, -0.032562255859375, 0.06024169921875, -0.045166015625, -0.01216888427734375, 0.06756591796875, 0.0010824203491210938, -0.024658203125, 0.01070404052734375, 0.00490570068359375, 0.0186920166015625, 0.0027332305908203125, 0.031982421875, -0.0278167724609375, -0.01221466064453125, -0.004985809326171875, -0.01849365234375, 0.03253173828125, 0.018035888671875, 0.01496124267578125, 0.0221099853515625, 0.048828125, -0.062744140625, -0.006542205810546875, -0.027923583984375, -0.03082275390625, -0.006229400634765625, 0.01441192626953125, -0.0282745361328125, 0.043670654296875, -0.027618408203125, -0.01459503173828125, 0.05596923828125, 0.038299560546875, 0.01203155517578125, -0.04046630859375, 0.007572174072265625, -0.00469207763671875, -0.0157318115234375, 0.02410888671875, 0.010986328125, -0.05572509765625, -0.01500701904296875, 0.0090484619140625, 0.002437591552734375, -0.004589080810546875, 0.0125274658203125, 0.0289154052734375, 0.008148193359375, -0.006130218505859375, 0.01236724853515625, 0.00885009765625, 0.0287933349609375, 0.0042877197265625, -0.0042877197265625, -0.03521728515625, -0.001323699951171875, -0.030426025390625, 0.01097869873046875, -0.0300750732421875, -0.0228118896484375, -0.035491943359375, -0.026153564453125, -0.08148193359375, -0.10504150390625, 0.0240020751953125, -0.020050048828125, 0.00007915496826171875, 0.0218048095703125, -0.0023517608642578125, 0.0023174285888671875, -0.03741455078125, 0.03277587890625, 0.0152740478515625, 0.0018739700317382812, 0.037200927734375, 0.003265380859375, 0.06390380859375, 0.030120849609375, -0.0143890380859375, -0.0079498291015625, -0.0291595458984375, 0.1162109375, -0.035308837890625, -0.0595703125, 0.06463623046875, 0.00325775146484375, 0.110107421875, 0.0191192626953125, 0.033416748046875, 0.0011425018310546875, -0.006855010986328125, -0.0066986083984375, 0.047576904296875, -0.0113067626953125, -0.058135986328125, 0.0318603515625, -0.005313873291015625, -0.0070953369140625, -0.0160064697265625, -0.01459503173828125, 0.00021541118621826172, -0.0089569091796875, 0.0024662017822265625, -0.075439453125, 0.01036834716796875, -0.040008544921875, 0.043701171875, -0.01149749755859375, -0.015228271484375, -0.0032825469970703125, -0.03662109375, 0.021331787109375, -0.056793212890625, -0.020172119140625, 0.023651123046875, -0.0323486328125, 0.0266265869140625, -0.007061004638671875, 0.02874755859375, -0.0172119140625, -0.0206451416015625, -0.0249176025390625, -0.00780487060546875, 0.0191650390625, -0.0008511543273925781, -0.035675048828125, -0.0237579345703125, -0.0277099609375, -0.0031070709228515625, -0.0255584716796875, 0.08154296875, -0.005451202392578125, 0.004505157470703125, -0.01611328125, -0.0011396408081054688, -0.01422119140625, -0.06256103515625, 0.0024318695068359375, 0.05517578125, 0.0308685302734375, 0.0034008026123046875, -0.00949859619140625, -0.01425933837890625, 0.02978515625, -0.02093505859375, 0.0207366943359375, -0.0306854248046875, -0.00252532958984375, 0.035369873046875, 0.0187530517578125, 0.0027484893798828125, 0.0248565673828125, 0.005870819091796875, -0.04461669921875, 0.051544189453125, 0.005001068115234375, 0.00981903076171875, -0.02685546875, 0.0263519287109375, -0.0064544677734375, 0.0208740234375, 0.00017940998077392578, -0.00263214111328125, 0.0606689453125, -0.01381683349609375, 0.05322265625, 0.029266357421875, -0.0150299072265625, -0.01503753662109375, 0.002593994140625, 0.01222991943359375, -0.006938934326171875, 0.031463623046875, 0.01233673095703125, -0.040252685546875, 0.0193328857421875, -0.01403045654296875, -0.0443115234375, -0.001461029052734375, -0.046783447265625, 0.003955841064453125, -0.013427734375, -0.0187225341796875, -0.017364501953125, -0.048187255859375, 0.01300048828125, -0.0284423828125, 0.0193634033203125, 0.0180816650390625, 0.019378662109375, 0.02520751953125, -0.042572021484375, 0.034454345703125, 0.0205535888671875, -0.0203704833984375, 0.028350830078125, -0.032684326171875, 0.0240020751953125, -0.01406097412109375, 0.061431884765625, 0.053436279296875, -0.006389617919921875, 0.006801605224609375, -0.0017938613891601562, -0.00147247314453125, -0.0211944580078125, 0.0041351318359375, -0.013641357421875, -0.00982666015625, -0.0180511474609375, 0.02850341796875, 0.0242462158203125, 0.01947021484375, -0.018035888671875, -0.032196044921875, -0.0248565673828125, 0.01959228515625, -0.07501220703125, -0.0309906005859375, 0.0024623870849609375, -0.0640869140625, -0.01497650146484375, 0.0182952880859375, -0.044647216796875, -0.004138946533203125, 0.04327392578125, 0.006229400634765625, -0.0298614501953125, -0.047393798828125, -0.050018310546875, -0.09490966796875, -0.0716552734375, -0.004253387451171875, 0.0038509368896484375, 0.00460052490234375, 0.00846099853515625, 0.0181732177734375, 0.01229095458984375, -0.0286102294921875, 0.0189971923828125, 0.04962158203125, -0.0185546875, -0.0203857421875, 0.0174713134765625, -0.03570556640625, 0.00997161865234375, 0.0008807182312011719, 0.035675048828125, 0.025482177734375, -0.0257568359375, -0.0074005126953125, -0.01947021484375, 0.0241851806640625, 0.01111602783203125, 0.0202484130859375, 0.030059814453125, 0.048431396484375, 0.03802490234375, 0.0017824172973632812, -0.00574493408203125, -0.0157928466796875, -0.04486083984375, -0.053436279296875, 0.0565185546875, -0.00434112548828125, -0.04571533203125, -0.0191192626953125, -0.026702880859375, 0.00289154052734375, 0.01255035400390625, -0.0266571044921875, 0.045135498046875, -0.0194091796875, -0.01514434814453125, -0.017852783203125, 0.0208587646484375, -0.004138946533203125, 0.032012939453125, 0.00693511962890625, 0.0218505859375, -0.005352020263671875, 0.041717529296875, -0.052490234375, -0.025238037109375, 0.04632568359375, -0.0245513916015625, -0.026702880859375, -0.003803253173828125, 0.01525115966796875, -0.0143280029296875, 0.0235748291015625, 0.005523681640625, -0.0245361328125, -0.00994110107421875, 0.0188751220703125, -0.0289154052734375, -0.062469482421875, 0.0248870849609375, -0.0021228790283203125, -0.025421142578125, 0.00453948974609375, -0.02685546875, 0.0172882080078125, -0.028900146484375, 0.04498291015625, 0.0152740478515625, -0.0244293212890625, 0.0291900634765625, -0.0295257568359375, -0.0043182373046875, 0.0268402099609375, -0.007221221923828125, -0.015289306640625, -0.01235198974609375, -0.020477294921875, -0.045166015625, -0.01024627685546875, -0.038726806640625, 0.04962158203125, 0.0494384765625, -0.04669189453125, 0.0135345458984375, 0.037872314453125, 0.0360107421875, 0.016937255859375, 0.010650634765625, -0.044189453125, 0.046783447265625, 0.03277587890625, 0.026031494140625, -0.0158843994140625, 0.021881103515625, -0.0090179443359375, -0.0919189453125, 0.0244293212890625, -0.00904083251953125, 0.038909912109375, 0.0234222412109375, -0.041778564453125, -0.0261383056640625, -0.0301666259765625, -0.031890869140625, 0.03265380859375, 0.01479339599609375, -0.018951416015625, -0.0615234375, -0.0487060546875, 0.0251922607421875, -0.026641845703125, -0.006534576416015625, 0.005657196044921875, 0.061370849609375, 0.0266571044921875, -0.0127716064453125, 0.0095977783203125, 0.041229248046875, 0.026947021484375, -0.05145263671875, 0.045440673828125, 0.004711151123046875, -0.00882720947265625, 0.041656494140625, -0.0287322998046875, 0.015838623046875, -0.0294189453125, 0.033416748046875, -0.0169525146484375, -0.01538848876953125, 0.0173187255859375, -0.0338134765625, 0.040313720703125, 0.014190673828125, 0.0020198822021484375, -0.01441192626953125, 0.0163421630859375, 0.0172271728515625, -0.01369476318359375, 0.042144775390625, -0.01139068603515625, 0.0294342041015625, -0.00753021240234375, 0.021636962890625, 0.03265380859375, 0.049041748046875, -0.02789306640625, -0.04058837890625, -0.041107177734375, 0.0276947021484375, -0.0108795166015625, -0.033447265625, -0.0285186767578125, 0.03387451171875, -0.01922607421875, 0.00652313232421875, 0.020233154296875, -0.00539398193359375, 0.029754638671875, -0.0013523101806640625, -0.04815673828125, -0.026214599609375, 0.0189361572265625, 0.0175933837890625, 0.0256500244140625, 0.05120849609375, 0.09112548828125, 0.01507568359375, -0.02606201171875, -0.0169830322265625, -0.0021648406982421875, 0.00302886962890625, -0.06878662109375, -0.01215362548828125, -0.01513671875, -0.01201629638671875, 0.03753662109375, 0.015960693359375, -0.018768310546875, 0.03851318359375, -0.024993896484375, 0.009613037109375, 0.0279083251953125, -0.0014028549194335938, 0.0198974609375, 0.046661376953125, -0.0159912109375, -0.005985260009765625, 0.0105133056640625, -0.030517578125, -0.00885009765625, 0.0213470458984375, 0.01078033447265625, -0.01126861572265625, -0.010650634765625, 0.019500732421875, 0.005985260009765625, -0.0248565673828125, 0.0616455078125, 0.06488037109375, -0.01416015625, -0.04534912109375, -0.01116180419921875, 0.03564453125, 0.0254058837890625, -0.000046253204345703125, 0.018096923828125, -0.0028858184814453125, 0.024566650390625, -0.003173828125, -0.0074005126953125, -0.0150299072265625, -0.0102081298828125, -0.006622314453125, -0.01467132568359375, -0.0066070556640625, -0.07275390625, -0.036468505859375, -0.01401519775390625, 0.0005431175231933594, 0.04718017578125, -0.0002655982971191406, 0.004695892333984375, -0.0300140380859375, -0.0105743408203125, -0.04022216796875, 0.0017919540405273438, 0.037933349609375, 0.0062408447265625, -0.0877685546875, 0.004032135009765625, -0.04254150390625, -0.01247406005859375, -0.0823974609375, -0.055084228515625, -0.05889892578125, 0.0033931732177734375, -0.00659942626953125, 0.01012420654296875, -0.02081298828125, 0.003765106201171875, 0.006877899169921875, 0.05731201171875, 0.00685882568359375, 0.0662841796875, 0.0213165283203125, -0.0423583984375, 0.00960540771484375, 0.0304718017578125, 0.0299072265625, -0.0236968994140625, -0.0206146240234375, -0.062225341796875, -0.00463104248046875, -0.050933837890625, -0.01861572265625, -0.007305145263671875, 0.00270843505859375, 0.0308074951171875, 0.0205841064453125, 0.0013980865478515625, -0.00951385498046875, 0.0025501251220703125, 0.0084228515625, -0.0301055908203125, 0.0213165283203125, 0.0090789794921875, 0.0024890899658203125, 0.002971649169921875, 0.0079345703125, -0.01071929931640625, -0.01233673095703125, -0.0071868896484375, -0.0112457275390625, 0.025299072265625, -0.0164642333984375, -0.0207672119140625, -0.0767822265625, 0.09765625, 0.10699462890625, -0.0231475830078125, 0.041412353515625, 0.028778076171875, -0.00896453857421875, 0.03924560546875, 0.05120849609375, -0.037322998046875, -0.048828125, 0.03717041015625, 0.023284912109375, -0.01025390625, 0.0244903564453125, -0.0125579833984375, -0.0095062255859375, 0.0478515625, 0.030609130859375, -0.0487060546875, -0.009735107421875, -0.01103973388671875, -0.0189208984375, 0.0249786376953125, -0.0110321044921875, -0.026397705078125, -0.02178955078125, 0.039764404296875, -0.03521728515625, -0.0218505859375, -0.00373077392578125, -0.015899658203125, 0.003452301025390625, 0.0239410400390625, 0.0074310302734375, -0.01151275634765625, -0.039764404296875, -0.051605224609375, 0.046234130859375, -0.032684326171875, 0.016021728515625, -0.01373291015625, 0.0157318115234375, -0.053802490234375, -0.053924560546875, -0.03375244140625, -0.027984619140625, -0.01280975341796875, 0.0056915283203125, -0.020660400390625, 0.04290771484375, 0.0208892822265625, -0.02520751953125, 0.023345947265625, -0.0240020751953125, 0.036865234375, -0.011993408203125, -0.0274505615234375, 0.028594970703125, 0.044342041015625, 0.0136260986328125, 0.025177001953125, 0.0259552001953125, -0.0682373046875, -0.01235198974609375, -0.040924072265625, 0.09375, -0.03338623046875, -0.0246124267578125, -0.0066680908203125, -0.018218994140625, 0.00679779052734375, -0.007366180419921875, 0.022369384765625, -0.07000732421875, -0.04327392578125, -0.0086212158203125, -0.06103515625, -0.00217437744140625, -0.023956298828125, -0.017974853515625, 0.085205078125, -0.0538330078125, -0.004627227783203125, 0.0249176025390625, 0.048065185546875, 0.007740020751953125, 0.0498046875, -0.0035648345947265625, 0.033721923828125, 0.0213165283203125, -0.02020263671875, 0.0037555694580078125, 0.007335662841796875, -0.00745391845703125, -0.0003833770751953125, 0.037261962890625, 0.01451873779296875, -0.00024330615997314453, -0.01064300537109375, 0.0284271240234375, 0.0318603515625, -0.016326904296875, 0.00557708740234375, -0.0215911865234375, 0.052734375, 0.0273590087890625, -0.0736083984375, 0.0019588470458984375, 0.016815185546875, -0.025115966796875, 0.01220703125, 0.01404571533203125, -0.0028076171875, -0.0166015625, -0.0018301010131835938, -0.055023193359375, 0.0020160675048828125, 0.026947021484375, 0.03057861328125, 0.02191162109375, 0.020111083984375, 0.02655029296875, -0.03131103515625, -0.02508544921875, -0.0279693603515625, 0.036468505859375, 0.0005903244018554688, 0.04229736328125, 0.0276336669921875, 0.0099029541015625, 0.07171630859375, -0.00872802734375, 0.0176239013671875, 0.0206298828125, -0.0037288665771484375, -0.01364898681640625, -0.00467681884765625, 0.0374755859375, -0.055023193359375, -0.0655517578125, 0.035797119140625, 0.0221710205078125, 0.022491455078125, -0.04998779296875, 0.0011472702026367188, -0.02899169921875, 0.01708984375, 0.015777587890625, 0.03424072265625, -0.00928497314453125, -0.016357421875, -0.024505615234375, -0.02520751953125, 0.024871826171875, 0.0016469955444335938, 0.000865936279296875, 0.011566162109375, 0.01369476318359375, -0.0180816650390625, -0.0199432373046875, 0.00772857666015625, 0.007099151611328125, 0.0307159423828125, 0.00598907470703125, 0.04425048828125, -0.025482177734375, -0.0008630752563476562, -0.00665283203125, 0.042999267578125, -0.005107879638671875, 0.0067138671875, -0.0294647216796875, -0.046875, 0.0135345458984375, 0.02557373046875, -0.01097869873046875, -0.022003173828125, 0.00952911376953125, -0.004238128662109375, -0.06304931640625, -0.0106964111328125, -0.0037212371826171875, -0.040008544921875, -0.00258636474609375, -0.0298309326171875, 0.005321502685546875, 0.031890869140625, 0.0009684562683105469, 0.0134429931640625, -0.0282440185546875, 0.07220458984375, -0.0214691162109375, -0.0035247802734375, -0.0014181137084960938, -0.005035400390625, 0.01216888427734375, -0.01229095458984375, -0.0134735107421875, 0.01029205322265625, -0.06072998046875, -0.033050537109375, 0.004566192626953125, -0.03814697265625, 0.0362548828125, 0.043365478515625, -0.0257720947265625, 0.00957489013671875, -0.00576019287109375, 0.040802001953125, 0.0120086669921875, -0.066162109375, -0.01039886474609375, 0.01332855224609375, 0.035064697265625, 0.018524169921875, 0.0207061767578125, 0.0018405914306640625, -0.017730712890625, 0.06005859375, 0.0181121826171875, 0.09173583984375, -0.0445556640625, 0.031341552734375, 0.035614013671875, -0.040863037109375, 0.030120849609375, 0.01317596435546875, -0.03240966796875, -0.03375244140625, 0.01800537109375, -0.0018863677978515625, -0.018280029296875, 0.004772186279296875, 0.041046142578125, -0.034149169921875, 0.01250457763671875, -0.0266876220703125, 0.0101318359375, -0.0159912109375, 0.01468658447265625, -0.054107666015625, -0.06341552734375, -0.083251953125, -0.0127716064453125, -0.0030765533447265625, -0.0157012939453125, -0.005321502685546875, 0.0237884521484375, -0.0125274658203125, 0.04705810546875, -0.0010080337524414062, 0.031707763671875, -0.0278167724609375, 0.01328277587890625, -0.03564453125, 0.035003662109375, 0.0284881591796875, -0.01910400390625, 0.060791015625, 0.002307891845703125, 0.0115814208984375, 0.0189666748046875, 0.00942230224609375, -0.0013208389282226562, 0.06634521484375, 0.05517578125, -0.0287322998046875, 0.01641845703125, 0.037628173828125, -0.0234375, 0.035308837890625, 0.0287322998046875, -0.00804901123046875, -0.03167724609375, -0.00409698486328125, 0.006717681884765625, -0.018463134765625, -0.0074310302734375, -0.0293121337890625, 0.0149993896484375, 0.037750244140625, -0.0063629150390625, -0.039276123046875, 0.004985809326171875, -0.032623291015625, 0.06524658203125, -0.0194549560546875, 0.0032901763916015625, -0.01343536376953125, 0.02081298828125, -0.0162811279296875, -0.032257080078125, -0.042999267578125, 0.05999755859375, -0.0357666015625, 0.007808685302734375, 0.01139068603515625, -0.0199737548828125, 0.033843994140625, 0.019073486328125, 0.024444580078125, 0.063720703125, 0.0321044921875, -0.018951416015625, 0.01904296875, -0.02490234375, -0.02142333984375, -0.0206451416015625, 0.0204620361328125, -0.050811767578125, -0.0308074951171875, -0.0154571533203125, -0.0009379386901855469, 0.0136566162109375, -0.05181884765625, -0.10943603515625, 0.061492919921875, -0.0230865478515625, -0.0443115234375, -0.0302886962890625, 0.002429962158203125, -0.007701873779296875, -0.027008056640625, -0.0159149169921875, -0.031280517578125, -0.0206756591796875, 0.0219268798828125, -0.01134490966796875, 0.06365966796875, 0.0032672882080078125, 0.002666473388671875, -0.0034694671630859375, 0.0035610198974609375, -0.007541656494140625, -0.0262298583984375, 0.01172637939453125, -0.020172119140625, 0.028564453125, 0.00981903076171875, -0.076171875, -0.03021240234375, -0.019073486328125, 0.06561279296875, -0.00543975830078125, -0.01959228515625, -0.03192138671875, -0.0390625, 0.05377197265625, 0.036376953125, 0.013702392578125, -0.005146026611328125, -0.0014095306396484375, -0.0273590087890625, -0.0204925537109375, -0.0012445449829101562, 0.00853729248046875, -0.058258056640625, -0.00975799560546875, 0.0201416015625, -0.00992584228515625, 0.01551055908203125, -0.051910400390625, -0.038421630859375, 0.003337860107421875, -0.025390625, 0.022796630859375, -0.02655029296875, 0.0022907257080078125, 0.054229736328125, -0.0311737060546875, 0.02691650390625, 0.008056640625, 0.00086212158203125, 0.033782958984375, 0.01209259033203125, 0.0026569366455078125, -0.013824462890625, -0.015960693359375, 0.032470703125, 0.0007276535034179688, 0.0304412841796875, -0.0284576416015625, -0.045928955078125, 0.021820068359375, 0.0160675048828125, -0.0108489990234375, 0.00908660888671875, -0.0175018310546875, 0.060272216796875, -0.0181121826171875, 0.06036376953125, -0.023681640625, 0.0236663818359375, -0.00928497314453125, 0.0244903564453125, -0.056854248046875, 0.0193328857421875, -0.0212554931640625, -0.0255126953125, 0.0133514404296875, 0.00333404541015625, 0.02508544921875, -0.0158538818359375, 0.01496124267578125, -0.0482177734375, -0.00295257568359375, 0.0176544189453125 ]
46af8d16e5810d31c6feff51ec856f46b9c27b46
Wordpress Stackexchange Q: Is it possible to bold certain words in a post title? I guess I would like to be able to include HTML tags within the title so that when the title is listed certain words are bolded. Is this possible? When I try to put HTML into the title, the tag itself is output (escaped) in the final page list. A: Yes, you can use HTML elements in post titles by default. If your output is escaped a plugin or theme might have touched that. Disable all plugins and switch to TwentyEleven. This will help you to identify the source. Note that markup is stripped in some places where it is not allowed: title attributes and elements, feed markup, nav menus. You should not break that. Also make sure your markup is valid and allowed for your user role. The kses filter will try to remove it otherwise.
Q: Is it possible to bold certain words in a post title? I guess I would like to be able to include HTML tags within the title so that when the title is listed certain words are bolded. Is this possible? When I try to put HTML into the title, the tag itself is output (escaped) in the final page list. A: Yes, you can use HTML elements in post titles by default. If your output is escaped a plugin or theme might have touched that. Disable all plugins and switch to TwentyEleven. This will help you to identify the source. Note that markup is stripped in some places where it is not allowed: title attributes and elements, feed markup, nav menus. You should not break that. Also make sure your markup is valid and allowed for your user role. The kses filter will try to remove it otherwise.
wordpress
{ "language": "en", "length": 149, "provenance": "stackexchange_00019.jsonl.gz:427138", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77250" }
[ 0.035186767578125, 0.004390716552734375, 0.01043701171875, 0.0185546875, 0.00600433349609375, -0.016754150390625, 0.0662841796875, -0.0443115234375, -0.03515625, 0.0260772705078125, 0.0307769775390625, 0.01141357421875, 0.005405426025390625, -0.03936767578125, 0.0115814208984375, -0.00966644287109375, -0.004535675048828125, 0.0301055908203125, 0.02740478515625, -0.00685882568359375, 0.004199981689453125, -0.01053619384765625, 0.0005841255187988281, -0.02484130859375, 0.03814697265625, -0.0165557861328125, 0.09088134765625, -0.0278778076171875, 0.038055419921875, -0.0239105224609375, 0.0460205078125, -0.04473876953125, 0.04443359375, 0.00821685791015625, -0.04949951171875, 0.030548095703125, 0.006313323974609375, -0.004734039306640625, -0.01165008544921875, 0.053131103515625, 0.004802703857421875, 0.011016845703125, 0.062103271484375, 0.0237274169921875, 0.02410888671875, -0.010406494140625, 0.0161895751953125, -0.0496826171875, 0.00884246826171875, -0.0426025390625, 0.0264739990234375, -0.01157379150390625, 0.032989501953125, -0.053314208984375, -0.02947998046875, 0.01313018798828125, -0.0007281303405761719, -0.03399658203125, 0.0283966064453125, -0.0045166015625, -0.00902557373046875, -0.020050048828125, 0.0163116455078125, -0.01132965087890625, 0.01029205322265625, 0.0113677978515625, 0.093505859375, 0.007221221923828125, 0.004337310791015625, -0.004207611083984375, 0.0022449493408203125, 0.0164947509765625, 0.003505706787109375, -0.040130615234375, -0.0218353271484375, 0.0189666748046875, -0.042724609375, -0.062286376953125, 0.036712646484375, -0.018157958984375, 0.045745849609375, -0.01009368896484375, 0.06622314453125, -0.050140380859375, 0.021331787109375, -0.0307464599609375, -0.007537841796875, -0.0014486312866210938, -0.006557464599609375, -0.0246734619140625, -0.019775390625, 0.003448486328125, -0.036346435546875, 0.021026611328125, -0.002941131591796875, -0.021728515625, -0.00640106201171875, 0.042510986328125, -0.001781463623046875, 0.06964111328125, -0.037017822265625, -0.0203094482421875, 0.0604248046875, -0.054290771484375, 0.0076751708984375, 0.028106689453125, -0.011871337890625, 0.032379150390625, 0.032745361328125, 0.0297393798828125, 0.0016012191772460938, -0.02447509765625, 0.0177154541015625, -0.0212249755859375, -0.0285491943359375, 0.042877197265625, 0.01465606689453125, 0.00411224365234375, 0.0009446144104003906, 0.047393798828125, 0.0205078125, 0.028045654296875, 0.018218994140625, -0.0164031982421875, -0.036224365234375, -0.0091400146484375, -0.0286407470703125, -0.041015625, -0.048614501953125, 0.028350830078125, 0.00972747802734375, 0.028076171875, 0.012481689453125, 0.030517578125, -0.032135009765625, -0.0062255859375, -0.00620269775390625, -0.0172119140625, -0.0240936279296875, -0.0005946159362792969, -0.005214691162109375, -0.0103302001953125, 0.01258087158203125, -0.045562744140625, -0.003604888916015625, 0.0096282958984375, -0.00800323486328125, 0.036163330078125, 0.00968170166015625, -0.08294677734375, 0.0892333984375, -0.07049560546875, 0.01055908203125, 0.005649566650390625, -0.004268646240234375, -0.056915283203125, -0.00312042236328125, -0.0284271240234375, 0.040771484375, -0.037384033203125, 0.0057830810546875, 0.0026607513427734375, 0.0286865234375, 0.00751495361328125, 0.003360748291015625, -0.002742767333984375, -0.024017333984375, 0.0011234283447265625, 0.01424407958984375, -0.0108489990234375, -0.03289794921875, -0.005191802978515625, 0.03155517578125, -0.004795074462890625, -0.01763916015625, 0.0219268798828125, 0.0209503173828125, -0.0235595703125, 0.015899658203125, 0.0601806640625, -0.003734588623046875, -0.0138397216796875, 0.0487060546875, -0.034515380859375, -0.03240966796875, -0.0198974609375, 0.000011444091796875, 0.037689208984375, 0.049957275390625, 0.0318603515625, -0.0013704299926757812, -0.043975830078125, 0.0019464492797851562, 0.0100860595703125, 0.012542724609375, -0.041839599609375, -0.01053619384765625, -0.0264129638671875, 0.0032253265380859375, -0.005279541015625, 0.040130615234375, -0.0093231201171875, 0.0233917236328125, 0.0035839080810546875, 0.001140594482421875, -0.0003464221954345703, -0.004058837890625, 0.0244293212890625, -0.004302978515625, 0.0064849853515625, 0.01007080078125, -0.0272216796875, 0.01800537109375, -0.064697265625, -0.02947998046875, 0.004116058349609375, -0.0011415481567382812, -0.0157470703125, 0.007266998291015625, -0.0299224853515625, 0.045440673828125, 0.005123138427734375, 0.0248260498046875, 0.05572509765625, 0.04351806640625, -0.01131439208984375, -0.00818634033203125, -0.017181396484375, 0.001987457275390625, 0.04217529296875, -0.0775146484375, 0.0020771026611328125, 0.040069580078125, 0.0565185546875, -0.0305023193359375, -0.0202789306640625, -0.01495361328125, -0.04852294921875, 0.0150909423828125, 0.06396484375, 0.04803466796875, 0.039886474609375, 0.0232696533203125, -0.0027027130126953125, 0.0538330078125, -0.036529541015625, 0.022003173828125, -0.039947509765625, 0.0026607513427734375, 0.0307159423828125, -0.0138702392578125, -0.0150299072265625, 0.022674560546875, -0.06121826171875, -0.016448974609375, 0.041015625, -0.0012969970703125, -0.01019287109375, -0.00991058349609375, -0.00986480712890625, 0.0186004638671875, -0.013153076171875, -0.05010986328125, 0.00841522216796875, 0.030242919921875, 0.004138946533203125, 0.036834716796875, 0.0172119140625, -0.01580810546875, 0.0031261444091796875, 0.0141143798828125, 0.0117034912109375, -0.00013554096221923828, 0.061248779296875, 0.0269622802734375, 0.023223876953125, -0.021728515625, -0.0304412841796875, -0.0015583038330078125, 0.03033447265625, 0.0155792236328125, 0.033233642578125, 0.01971435546875, -0.017486572265625, 0.000762939453125, -0.04638671875, 0.016204833984375, 0.0167694091796875, 0.0100250244140625, 0.0122528076171875, 0.01010894775390625, 0.039947509765625, -0.00926971435546875, 0.054473876953125, -0.004016876220703125, 0.01201629638671875, -0.007282257080078125, -0.07061767578125, 0.07110595703125, -0.045684814453125, 0.0655517578125, 0.0955810546875, -0.012420654296875, 0.033660888671875, 0.0060272216796875, 0.00665283203125, 0.0223846435546875, -0.0017461776733398438, -0.0211181640625, -0.03369140625, -0.054473876953125, -0.03717041015625, 0.0316162109375, 0.051055908203125, -0.0056610107421875, -0.017242431640625, -0.01374053955078125, 0.0284271240234375, -0.049530029296875, -0.048797607421875, 0.044830322265625, -0.0443115234375, -0.0404052734375, 0.007289886474609375, -0.031951904296875, -0.00839996337890625, 0.040313720703125, -0.0227813720703125, -0.0128631591796875, -0.03863525390625, -0.004695892333984375, -0.052581787109375, -0.051239013671875, -0.04888916015625, 0.007415771484375, -0.00742340087890625, 0.005413055419921875, 0.046112060546875, 0.00783538818359375, -0.063720703125, 0.01107025146484375, 0.055511474609375, -0.0181121826171875, 0.027862548828125, 0.036529541015625, -0.034210205078125, -0.034515380859375, 0.0163421630859375, -0.0369873046875, -0.00046706199645996094, 0.002105712890625, -0.0086212158203125, -0.01641845703125, 0.03802490234375, 0.0029277801513671875, -0.001300811767578125, 0.021697998046875, 0.036590576171875, -0.01483917236328125, -0.0169830322265625, -0.035064697265625, 0.0224456787109375, -0.04583740234375, -0.02166748046875, 0.0219573974609375, -0.0209197998046875, -0.031646728515625, 0.006977081298828125, 0.0105133056640625, 0.0159149169921875, 0.01788330078125, -0.014801025390625, -0.0158233642578125, -0.01055145263671875, 0.007297515869140625, -0.0265045166015625, -0.05255126953125, -0.031219482421875, 0.049591064453125, -0.038970947265625, 0.0394287109375, -0.02117919921875, 0.055694580078125, -0.033843994140625, -0.048919677734375, 0.0243988037109375, -0.10369873046875, -0.0278778076171875, -0.034210205078125, -0.0016298294067382812, 0.00618743896484375, 0.06719970703125, -0.04315185546875, -0.0239105224609375, -0.01079559326171875, 0.020416259765625, -0.022216796875, -0.02838134765625, -0.007144927978515625, -0.0241546630859375, -0.044525146484375, 0.0182952880859375, -0.0218353271484375, 0.0035953521728515625, -0.0266265869140625, 0.0185394287109375, -0.0062408447265625, -0.022003173828125, 0.01340484619140625, -0.002109527587890625, -0.004665374755859375, 0.01235198974609375, -0.034271240234375, 0.01605224609375, -0.004669189453125, -0.03424072265625, -0.0462646484375, 0.00041365623474121094, -0.024139404296875, 0.017608642578125, -0.00394439697265625, -0.0024929046630859375, -0.0011959075927734375, 0.03741455078125, 0.00350189208984375, 0.060150146484375, 0.018890380859375, 0.0206451416015625, -0.005584716796875, -0.023162841796875, 0.035308837890625, -0.047576904296875, 0.006870269775390625, 0.032135009765625, 0.0027370452880859375, 0.0767822265625, -0.008270263671875, 0.00066375732421875, 0.020660400390625, -0.035308837890625, -0.03472900390625, -0.0279541015625, 0.0251312255859375, 0.006298065185546875, 0.0189971923828125, -0.0034198760986328125, -0.039703369140625, 0.0029468536376953125, 0.0654296875, 0.06512451171875, 0.01477813720703125, -0.00643157958984375, 0.06658935546875, -0.007312774658203125, -0.045440673828125, -0.0092620849609375, 0.00679779052734375, 0.04510498046875, -0.016143798828125, 0.033599853515625, 0.0227508544921875, -0.045257568359375, 0.07635498046875, 0.01483917236328125, -0.0041046142578125, -0.038726806640625, 0.045806884765625, 0.001617431640625, -0.0225982666015625, 0.0311279296875, 0.004913330078125, 0.017913818359375, 0.01348114013671875, 0.01947021484375, -0.0103607177734375, -0.0053558349609375, 0.014678955078125, 0.030242919921875, -0.03021240234375, -0.02069091796875, -0.0177764892578125, -0.0006113052368164062, 0.0670166015625, 0.005855560302734375, 0.0311431884765625, 0.01500701904296875, -0.01197052001953125, -0.012451171875, -0.0033969879150390625, -0.035308837890625, -0.051025390625, -0.0168914794921875, 0.010223388671875, -0.0297393798828125, -0.01273345947265625, 0.0187835693359375, -0.01187896728515625, 0.043731689453125, -0.01198577880859375, -0.046417236328125, 0.0213470458984375, -0.01239776611328125, 0.05059814453125, 0.035247802734375, 0.0472412109375, -0.0108795166015625, 0.0183258056640625, 0.033538818359375, 0.01230621337890625, 0.036651611328125, 0.04095458984375, 0.01210784912109375, 0.004665374755859375, 0.047271728515625, -0.041473388671875, 0.0159759521484375, 0.014068603515625, 0.0206756591796875, -0.002483367919921875, -0.018768310546875, 0.0205078125, 0.03167724609375, -0.02215576171875, 0.002552032470703125, 0.050323486328125, -0.0308837890625, -0.006256103515625, 0.0025577545166015625, -0.0210113525390625, 0.0212554931640625, 0.0040740966796875, 0.03851318359375, 0.0130462646484375, -0.031036376953125, 0.0290069580078125, -0.04278564453125, -0.01788330078125, 0.00628662109375, -0.03802490234375, -0.0517578125, -0.0093536376953125, 0.020721435546875, 0.01470947265625, 0.0038661956787109375, -0.0009469985961914062, 0.0005092620849609375, -0.020172119140625, 0.0294647216796875, -0.050384521484375, 0.0054931640625, 0.006103515625, 0.0013875961303710938, -0.055877685546875, -0.033599853515625, -0.005954742431640625, 0.005611419677734375, 0.01474761962890625, -0.034515380859375, -0.0330810546875, 0.0655517578125, 0.0022449493408203125, 0.051025390625, -0.038909912109375, -0.0221710205078125, 0.029205322265625, 0.00034809112548828125, 0.03717041015625, 0.01535797119140625, -0.039398193359375, 0.004978179931640625, -0.0172882080078125, -0.01287841796875, 0.0097503662109375, -0.01348876953125, -0.031951904296875, -0.021148681640625, 0.03485107421875, 0.0301971435546875, 0.0008454322814941406, -0.04132080078125, -0.01247406005859375, 0.030426025390625, 0.03497314453125, 0.0816650390625, -0.0098876953125, 0.007244110107421875, 0.03253173828125, -0.001377105712890625, -0.01114654541015625, -0.018585205078125, -0.0168609619140625, -0.018463134765625, 0.0146026611328125, -0.0794677734375, -0.03082275390625, 0.006855010986328125, -0.01509857177734375, 0.0160675048828125, -0.0192718505859375, 0.0005130767822265625, 0.0197296142578125, -0.0289459228515625, 0.01166534423828125, -0.0196533203125, 0.0026340484619140625, -0.05816650390625, -0.0489501953125, 0.033233642578125, -0.01898193359375, -0.01477813720703125, -0.00644683837890625, 0.01387786865234375, 0.004364013671875, -0.0198516845703125, -0.0032329559326171875, 0.006748199462890625, -0.0082855224609375, 0.0065155029296875, 0.0006413459777832031, 0.005367279052734375, 0.016448974609375, -0.001163482666015625, 0.0174560546875, -0.006404876708984375, -0.0160980224609375, -0.0172576904296875, 0.0027256011962890625, 0.0186309814453125, -0.00902557373046875, -0.00823211669921875, 0.0036525726318359375, -0.03668212890625, 0.01503753662109375, 0.05029296875, 0.053192138671875, -0.042449951171875, -0.0003650188446044922, 0.01219940185546875, -0.0294952392578125, 0.032928466796875, -0.00732421875, 0.031402587890625, -0.00983428955078125, 0.0201416015625, 0.033905029296875, 0.0045318603515625, 0.01708984375, -0.00865936279296875, 0.004695892333984375, -0.032440185546875, 0.068603515625, 0.0017642974853515625, -0.062744140625, -0.0214385986328125, 0.03021240234375, -0.035675048828125, -0.0361328125, 0.01045989990234375, 0.01474761962890625, -0.0205535888671875, -0.07537841796875, 0.0144805908203125, 0.00472259521484375, -0.005214691162109375, 0.01186370849609375, 0.05706787109375, 0.010833740234375, 0.06280517578125, 0.007366180419921875, 0.00693511962890625, 0.041046142578125, -0.015777587890625, 0.006778717041015625, -0.0063629150390625, 0.00859832763671875, 0.013092041015625, -0.03363037109375, 0.006317138671875, -0.032440185546875, 0.0016336441040039062, -0.0013885498046875, -0.010467529296875, 0.0113525390625, 0.0611572265625, -0.0679931640625, -0.023895263671875, 0.0018930435180664062, 0.041900634765625, -0.0193023681640625, -0.02252197265625, -0.01123809814453125, 0.0540771484375, -0.04473876953125, 0.0044403076171875, 0.006763458251953125, -0.03839111328125, -0.088623046875, 0.079345703125, 0.03863525390625, 0.044342041015625, -0.014556884765625, 0.018218994140625, -0.02264404296875, -0.00977325439453125, -0.0130615234375, 0.049224853515625, -0.0292205810546875, 0.0203857421875, -0.034149169921875, 0.0029506683349609375, 0.00946807861328125, 0.03369140625, -0.01739501953125, -0.00890350341796875, -0.0016231536865234375, 0.0057373046875, 0.07666015625, 0.037200927734375, 0.0277862548828125, 0.017333984375, 0.0159759521484375, 0.0411376953125, -0.0071868896484375, -0.01383209228515625, 0.050048828125, -0.059356689453125, -0.031494140625, 0.0289154052734375, 0.026336669921875, 0.005084991455078125, 0.0173797607421875, -0.0163421630859375, -0.040802001953125, 0.02313232421875, 0.01216888427734375, 0.0233001708984375, -0.0133056640625, 0.04547119140625, 0.07513427734375, -0.128662109375, -0.053131103515625, -0.048431396484375, 0.054534912109375, 0.041259765625, 0.0185089111328125, 0.0103912353515625, 0.00882720947265625, -0.016632080078125, -0.00847625732421875, 0.017852783203125, 0.0212249755859375, -0.031768798828125, 0.033294677734375, -0.023468017578125, 0.01306915283203125, -0.08343505859375, -0.0222320556640625, 0.051788330078125, 0.0665283203125, -0.03424072265625, 0.041015625, 0.0159912109375, 0.015899658203125, -0.035430908203125, -0.049591064453125, -0.025543212890625, 0.033599853515625, 0.0260009765625, -0.036956787109375, -0.01230621337890625, 0.038421630859375, 0.0311431884765625, 0.0088348388671875, 0.0020122528076171875, -0.00968170166015625, -0.032684326171875, -0.0247344970703125, -0.007305145263671875, -0.0234832763671875, 0.0406494140625, 0.032257080078125, 0.0272979736328125, -0.04168701171875, -0.0227813720703125, -0.009124755859375, 0.01441192626953125, 0.0010166168212890625, -0.005702972412109375, -0.00733184814453125, -0.0145416259765625, 0.0158843994140625, 0.019195556640625, 0.0218353271484375, -0.0217437744140625, 0.0273590087890625, 0.0205841064453125, -0.034698486328125, -0.0221710205078125, -0.03289794921875, -0.017730712890625, -0.00800323486328125, -0.017913818359375, -0.013885498046875, 0.022125244140625, -0.023681640625, 0.034576416015625, -0.019134521484375, 0.053253173828125, -0.03302001953125, 0.006298065185546875, 0.01149749755859375, -0.0112762451171875, 0.0024738311767578125, -0.0030612945556640625, -0.0173187255859375, 0.0031070709228515625, -0.05987548828125, -0.0012674331665039062, -0.01161956787109375, -0.057525634765625, 0.00615692138671875, 0.0310821533203125, -0.03466796875, 0.0245513916015625, 0.0089569091796875, -0.008392333984375, 0.0181884765625, 0.002079010009765625, 0.0225982666015625, 0.049652099609375, 0.01012420654296875, 0.0266265869140625, -0.0210113525390625, 0.002197265625, 0.0070953369140625, 0.035430908203125, 0.01220703125, 0.01123809814453125, -0.002475738525390625, 0.0394287109375, -0.0229339599609375, 0.0265350341796875, -0.02996826171875, -0.03497314453125, 0.024688720703125, -0.0028514862060546875, 0.01407623291015625, -0.00875091552734375, -0.048187255859375, 0.0511474609375, -0.0123443603515625, 0.00139617919921875, 0.026336669921875, -0.0202789306640625, -0.0005269050598144531, 0.037689208984375, 0.07342529296875, 0.01715087890625, 0.0219268798828125, -0.0179901123046875, -0.0294952392578125, 0.06182861328125, 0.058319091796875, 0.0271759033203125, 0.071044921875, -0.0006322860717773438, -0.01055145263671875, 0.01279449462890625, -0.07806396484375, -0.005397796630859375, 0.0251922607421875, 0.01910400390625, -0.010650634765625, 0.03265380859375, 0.0034465789794921875, -0.0081939697265625, 0.019500732421875, 0.002658843994140625, 0.0225982666015625, -0.06256103515625, -0.04766845703125, -0.0010709762573242188, 0.0237579345703125, -0.0010099411010742188, 0.025665283203125, -0.035888671875, -0.019439697265625, 0.008026123046875, -0.01849365234375, -0.033416748046875, -0.0151824951171875, -0.0141448974609375, 0.029022216796875, -0.0223846435546875, -0.052154541015625, -0.10009765625, -0.039581298828125, 0.0010623931884765625, -0.03704833984375, 0.048309326171875, -0.04302978515625, -0.01433563232421875, -0.0169830322265625, -0.0294952392578125, -0.041748046875, 0.01507568359375, 0.0309600830078125, -0.0185546875, -0.034576416015625, -0.022705078125, 0.0028171539306640625, -0.0377197265625, 0.0269622802734375, 0.044708251953125, -0.0286407470703125, -0.0191192626953125, 0.009002685546875, 0.046142578125, 0.05438232421875, 0.0214385986328125, -0.0209197998046875, -0.02984619140625, 0.006549835205078125, -0.01129150390625, -0.034393310546875, 0.043792724609375, -0.1058349609375, -0.04296875, 0.0290679931640625, -0.0285186767578125, -0.0061798095703125, -0.06103515625, -0.12274169921875, 0.052703857421875, -0.0092620849609375, -0.04901123046875, 0.01025390625, -0.0037708282470703125, -0.0039520263671875, -0.0123748779296875, -0.0080413818359375, 0.0033512115478515625, -0.0250091552734375, 0.0091400146484375, 0.0259246826171875, -0.0014438629150390625, 0.02655029296875, 0.00995635986328125, -0.0254669189453125, 0.0445556640625, 0.0292816162109375, -0.008880615234375, -0.0169677734375, -0.001678466796875, -0.001064300537109375, 0.026702880859375, -0.050811767578125, -0.0177459716796875, -0.016265869140625, 0.0272064208984375, -0.00826263427734375, -0.04443359375, -0.0269012451171875, -0.0254669189453125, 0.031890869140625, 0.044708251953125, 0.004924774169921875, -0.020111083984375, 0.025390625, -0.049163818359375, -0.0246124267578125, 0.011627197265625, -0.012908935546875, -0.0269012451171875, 0.004795074462890625, 0.0460205078125, 0.006984710693359375, 0.0133209228515625, -0.043426513671875, -0.011444091796875, -0.0188751220703125, -0.0191192626953125, 0.0186309814453125, -0.011962890625, 0.01299285888671875, 0.0889892578125, -0.0628662109375, -0.01331329345703125, 0.0093231201171875, 0.0006170272827148438, 0.0298614501953125, -0.0045623779296875, 0.0019474029541015625, -0.054229736328125, 0.0175018310546875, 0.0145111083984375, 0.0035858154296875, 0.06585693359375, 0.00292205810546875, -0.042449951171875, -0.008636474609375, 0.0244293212890625, 0.01136016845703125, 0.023590087890625, -0.044921875, 0.0556640625, 0.0166015625, 0.0482177734375, -0.01165771484375, 0.004299163818359375, -0.025787353515625, 0.03662109375, -0.0229339599609375, -0.0078277587890625, 0.007045745849609375, -0.0285797119140625, 0.01241302490234375, 0.0019140243530273438, 0.027679443359375, -0.01837158203125, 0.024200439453125, -0.034576416015625, 0.02587890625, 0.0127105712890625 ]
dec70e0953e5e7bfad0b60edd06459e7300bd6b7
Wordpress Stackexchange Q: IP address character limit my client in his template is using <?php comment_author_IP(); ?> to display IP's of comment authors. Recently he came to me with idea of limiting whole number to several characters. Final result should be something simillar to: 192.168... How can i achieve it? I've tried with jquery but without success. It looked like it was not responding to the jquery code.. thank you! A: You can filter 'get_comment_author_IP': add_filter( 'get_comment_author_IP', 'wpse_77254_trim_comment_ip' ); function wpse_77254_trim_comment_ip( $ip ) { return implode( '.', array_slice(explode( '.', $ip ), 2) ) . '…'; } Note this will fail with IPv6 addresses.
Q: IP address character limit my client in his template is using <?php comment_author_IP(); ?> to display IP's of comment authors. Recently he came to me with idea of limiting whole number to several characters. Final result should be something simillar to: 192.168... How can i achieve it? I've tried with jquery but without success. It looked like it was not responding to the jquery code.. thank you! A: You can filter 'get_comment_author_IP': add_filter( 'get_comment_author_IP', 'wpse_77254_trim_comment_ip' ); function wpse_77254_trim_comment_ip( $ip ) { return implode( '.', array_slice(explode( '.', $ip ), 2) ) . '…'; } Note this will fail with IPv6 addresses.
wordpress
{ "language": "en", "length": 101, "provenance": "stackexchange_00019.jsonl.gz:427139", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77254" }
[ 0.0386962890625, -0.0178680419921875, 0.01045989990234375, -0.03387451171875, -0.011077880859375, -0.0031833648681640625, 0.0193023681640625, 0.000518798828125, -0.0289459228515625, 0.01506805419921875, -0.00026917457580566406, -0.0167236328125, -0.01715087890625, -0.03607177734375, -0.01520538330078125, -0.038299560546875, 0.01421356201171875, 0.005771636962890625, 0.0032672882080078125, -0.01529693603515625, 0.01081085205078125, -0.005126953125, -0.0245819091796875, 0.07440185546875, -0.009429931640625, -0.07635498046875, 0.1876220703125, -0.0303192138671875, -0.007747650146484375, -0.04833984375, 0.010711669921875, 0.01021575927734375, 0.0235443115234375, 0.047607421875, -0.05841064453125, 0.018341064453125, -0.0443115234375, 0.03955078125, -0.0225830078125, 0.03375244140625, 0.014068603515625, -0.01385498046875, 0.00864410400390625, -0.0106658935546875, -0.0188140869140625, 0.0057220458984375, -0.01220703125, -0.01183319091796875, 0.034423828125, 0.044403076171875, 0.0194549560546875, 0.0308685302734375, 0.0185546875, 0.00507354736328125, -0.0161895751953125, 0.00014126300811767578, 0.006298065185546875, -0.011627197265625, 0.0186614990234375, -0.0172576904296875, 0.0013456344604492188, 0.00600433349609375, 0.0213165283203125, 0.01395416259765625, 0.01312255859375, 0.005283355712890625, 0.051239013671875, 0.035308837890625, -0.003742218017578125, 0.00449371337890625, -0.00458526611328125, -0.006259918212890625, -0.01219940185546875, -0.02630615234375, -0.029266357421875, -0.01739501953125, -0.0224609375, -0.057403564453125, 0.0247344970703125, 0.01849365234375, 0.0143280029296875, -0.017608642578125, -0.053863525390625, 0.0278167724609375, -0.0151214599609375, 0.021575927734375, -0.0163116455078125, -0.0259857177734375, -0.04925537109375, -0.0007829666137695312, -0.020843505859375, -0.03814697265625, -0.0008883476257324219, 0.011260986328125, 0.004878997802734375, -0.0187835693359375, 0.0011129379272460938, -0.0618896484375, 0.005725860595703125, -0.03228759765625, 0.035430908203125, -0.034881591796875, 0.0139007568359375, 0.0034847259521484375, -0.0009388923645019531, 0.06134033203125, -0.0010328292846679688, 0.044708251953125, 0.057373046875, 0.0197906494140625, 0.02203369140625, 0.01198577880859375, -0.018646240234375, 0.0235443115234375, -0.044036865234375, -0.0270538330078125, -0.07666015625, 0.0072021484375, -0.02911376953125, -0.0240631103515625, -0.01763916015625, -0.045562744140625, 0.043609619140625, 0.007350921630859375, 0.0313720703125, 0.0165252685546875, -0.040557861328125, -0.000926971435546875, -0.0177154541015625, 0.044586181640625, -0.0043792724609375, -0.001377105712890625, -0.00659942626953125, 0.003253936767578125, -0.01461029052734375, -0.0188140869140625, 0.00836944580078125, -0.005504608154296875, -0.0067901611328125, 0.0188751220703125, -0.020843505859375, -0.040924072265625, 0.017974853515625, -0.00018775463104248047, -0.03997802734375, 0.03350830078125, 0.0150909423828125, -0.00518035888671875, -0.004886627197265625, -0.05255126953125, -0.01345062255859375, -0.0247344970703125, 0.05853271484375, -0.00569915771484375, -0.039276123046875, -0.02886962890625, 0.0263824462890625, -0.054443359375, -0.0408935546875, -0.055694580078125, 0.047332763671875, -0.007965087890625, -0.01499176025390625, -0.03680419921875, -0.02398681640625, -0.028045654296875, -0.03582763671875, 0.0101776123046875, 0.00576019287109375, 0.003093719482421875, -0.028717041015625, 0.0097808837890625, -0.06292724609375, -0.000568389892578125, -0.0037326812744140625, 0.009307861328125, 0.0074005126953125, -0.045166015625, -0.01258087158203125, 0.08978271484375, 0.01041412353515625, -0.0341796875, -0.06182861328125, 0.030029296875, -0.041290283203125, 0.035675048828125, 0.00029397010803222656, 0.039215087890625, 0.01153564453125, -0.0025234222412109375, 0.028167724609375, 0.0254364013671875, -0.0235137939453125, -0.0256195068359375, -0.02679443359375, -0.00785064697265625, 0.006481170654296875, -0.0006136894226074219, -0.01019287109375, 0.0478515625, 0.0169677734375, -0.03466796875, 0.043914794921875, -0.003780364990234375, -0.0207672119140625, 0.01751708984375, -0.0258636474609375, 0.018707275390625, -0.0046539306640625, -0.005542755126953125, 0.007625579833984375, -0.016204833984375, -0.0015172958374023438, -0.039703369140625, -0.0220184326171875, 0.0279693603515625, 0.0084686279296875, 0.03936767578125, 0.0139617919921875, 0.0509033203125, 0.0164337158203125, -0.03900146484375, 0.0170440673828125, -0.0082550048828125, 0.02679443359375, -0.03558349609375, -0.0097503662109375, -0.03143310546875, 0.004497528076171875, -0.0214996337890625, -0.00865936279296875, 0.0452880859375, 0.046722412109375, 0.039093017578125, 0.0039825439453125, 0.0024051666259765625, 0.0249481201171875, -0.06524658203125, 0.001682281494140625, 0.028289794921875, 0.051849365234375, -0.004573822021484375, 0.0030078887939453125, -0.0189361572265625, 0.00795745849609375, -0.05682373046875, 0.02105712890625, -0.031829833984375, 0.015594482421875, 0.0203399658203125, -0.021759033203125, -0.024932861328125, 0.04705810546875, -0.06475830078125, 0.00927734375, 0.046356201171875, 0.00632476806640625, 0.0357666015625, -0.03826904296875, 0.0394287109375, -0.00821685791015625, 0.0391845703125, 0.022796630859375, -0.0069122314453125, -0.0209808349609375, -0.018890380859375, 0.0014600753784179688, -0.00010603666305541992, -0.004596710205078125, -0.0250244140625, 0.01284027099609375, -0.0161895751953125, 0.0005698204040527344, -0.0174560546875, -0.06903076171875, -0.0213165283203125, -0.00974273681640625, 0.0462646484375, -0.02142333984375, -0.044403076171875, -0.00600433349609375, 0.033843994140625, -0.0169525146484375, -0.0162811279296875, -0.0098876953125, -0.0211029052734375, -0.012664794921875, -0.0200347900390625, -0.00879669189453125, -0.001750946044921875, 0.00891876220703125, 0.06298828125, 0.0274810791015625, -0.00023889541625976562, 0.048583984375, 0.00765228271484375, 0.06353759765625, -0.047119140625, 0.060150146484375, -0.039794921875, 0.05108642578125, 0.048583984375, -0.03851318359375, 0.034027099609375, -0.01412200927734375, 0.004901885986328125, -0.0173797607421875, -0.0018053054809570312, -0.01499176025390625, -0.031890869140625, -0.021087646484375, 0.0276031494140625, -0.0041046142578125, -0.024627685546875, -0.0000667572021484375, -0.0093994140625, -0.0021648406982421875, 0.00038933753967285156, -0.03338623046875, 0.00821685791015625, 0.0297088623046875, -0.01264190673828125, -0.056671142578125, 0.010009765625, -0.026947021484375, 0.01360321044921875, 0.00012117624282836914, -0.033599853515625, 0.005542755126953125, -0.053192138671875, -0.0677490234375, -0.047698974609375, -0.061279296875, 0.015045166015625, 0.0009641647338867188, -0.0017099380493164062, -0.0021953582763671875, 0.09442138671875, -0.004962921142578125, -0.08465576171875, -0.05078125, 0.02069091796875, -0.00962066650390625, -0.018585205078125, -0.06964111328125, 0.039398193359375, 0.029144287109375, 0.0002777576446533203, -0.06634521484375, 0.0116729736328125, 0.020904541015625, -0.02423095703125, -0.004650115966796875, 0.023590087890625, 0.037139892578125, 0.004009246826171875, -0.005828857421875, 0.0406494140625, 0.046844482421875, -0.0216827392578125, -0.0162200927734375, 0.032806396484375, 0.0035076141357421875, 0.027984619140625, -0.0399169921875, -0.02276611328125, 0.01062774658203125, 0.04083251953125, 0.00424957275390625, -0.01447296142578125, 0.021148681640625, -0.043914794921875, 0.021942138671875, 0.01611328125, 0.024322509765625, -0.01324462890625, -0.0223236083984375, -0.0250244140625, 0.011505126953125, -0.0216522216796875, 0.005828857421875, -0.0186614990234375, 0.01279449462890625, -0.0168304443359375, -0.10467529296875, 0.06707763671875, -0.0140838623046875, -0.0273590087890625, -0.0416259765625, -0.02972412109375, -0.01465606689453125, 0.08502197265625, -0.034454345703125, -0.0247955322265625, 0.004550933837890625, 0.0139312744140625, -0.0654296875, -0.0026836395263671875, -0.059112548828125, 0.007579803466796875, -0.0199127197265625, 0.0089874267578125, -0.012420654296875, -0.014312744140625, 0.00798797607421875, -0.03717041015625, 0.023895263671875, -0.037139892578125, -0.0040435791015625, -0.0218963623046875, -0.0126190185546875, -0.005237579345703125, -0.0207977294921875, -0.0170440673828125, 0.007793426513671875, -0.053497314453125, -0.004261016845703125, -0.0201263427734375, 0.0014629364013671875, 0.0168304443359375, -0.0009374618530273438, -0.01467132568359375, -0.0087432861328125, 0.044952392578125, -0.0322265625, -0.0031528472900390625, -0.00276947021484375, 0.032379150390625, -0.043121337890625, 0.028961181640625, 0.015350341796875, -0.0210113525390625, -0.00843048095703125, -0.005992889404296875, -0.03326416015625, -0.001129150390625, -0.00655364990234375, 0.006603240966796875, 0.0199127197265625, -0.035675048828125, -0.01495361328125, -0.045806884765625, -0.039031982421875, 0.0083160400390625, -0.01273345947265625, -0.018218994140625, -0.05224609375, -0.037841796875, 0.003726959228515625, -0.004810333251953125, 0.006626129150390625, 0.00904083251953125, 0.031494140625, 0.0238494873046875, -0.018646240234375, 0.0131988525390625, 0.007328033447265625, 0.020294189453125, -0.005832672119140625, 0.04150390625, 0.0280914306640625, -0.01776123046875, 0.01532745361328125, -0.007076263427734375, -0.01678466796875, -0.0018892288208007812, 0.014251708984375, 0.008514404296875, -0.0091705322265625, -0.005619049072265625, 0.0020465850830078125, 0.036529541015625, 0.003925323486328125, -0.0196380615234375, -0.00286102294921875, -0.032073974609375, 0.058135986328125, -0.00390625, 0.025146484375, -0.041961669921875, -0.0843505859375, 0.04229736328125, -0.04595947265625, 0.00441741943359375, -0.0135345458984375, 0.01165771484375, 0.033447265625, -0.002880096435546875, 0.016387939453125, 0.0235748291015625, -0.006023406982421875, -0.002643585205078125, 0.050750732421875, -0.0122833251953125, 0.007488250732421875, 0.02032470703125, -0.02398681640625, 0.08953857421875, 0.042266845703125, -0.021270751953125, 0.01959228515625, -0.00298309326171875, 0.0215606689453125, -0.0413818359375, 0.01947021484375, -0.01474761962890625, -0.0246429443359375, 0.00002580881118774414, 0.0194549560546875, 0.0198516845703125, -0.01032257080078125, -0.0043792724609375, 0.043853759765625, 0.0004489421844482422, -0.00516510009765625, -0.00481414794921875, 0.048095703125, 0.021881103515625, 0.00489044189453125, -0.0166473388671875, 0.068115234375, 0.051055908203125, 0.03594970703125, 0.0003254413604736328, 0.0121917724609375, -0.010284423828125, 0.017303466796875, -0.039398193359375, 0.0039520263671875, -0.006374359130859375, 0.039642333984375, 0.006175994873046875, 0.033172607421875, 0.0286865234375, -0.038787841796875, -0.0060577392578125, -0.0111236572265625, 0.042724609375, 0.038482666015625, -0.011444091796875, -0.019500732421875, -0.002483367919921875, 0.0124664306640625, -0.001804351806640625, -0.01837158203125, -0.0189208984375, -0.02838134765625, -0.02593994140625, 0.031982421875, -0.037689208984375, -0.0101470947265625, -0.0021953582763671875, -0.026611328125, -0.0233154296875, -0.0176849365234375, 0.027740478515625, -0.01172637939453125, 0.0027904510498046875, -0.002956390380859375, 0.005565643310546875, 0.00734710693359375, -0.001087188720703125, -0.01273345947265625, -0.0002620220184326172, -0.0010366439819335938, -0.0034542083740234375, 0.03753662109375, -0.0008168220520019531, -0.03546142578125, 0.0196685791015625, -0.047271728515625, -0.006526947021484375, 0.0277099609375, -0.03857421875, -0.038482666015625, -0.02728271484375, 0.017669677734375, 0.031829833984375, 0.005290985107421875, -0.019378662109375, 0.0056610107421875, 0.022430419921875, 0.00846099853515625, 0.05389404296875, -0.05084228515625, 0.032470703125, 0.0357666015625, -0.01236724853515625, 0.01027679443359375, 0.049713134765625, 0.059906005859375, -0.0292510986328125, 0.06585693359375, -0.01291656494140625, -0.076904296875, -0.03924560546875, -0.044281005859375, -0.060394287109375, -0.0104217529296875, -0.040863037109375, 0.02294921875, -0.01024627685546875, -0.007091522216796875, -0.023529052734375, -0.00218963623046875, -0.0037097930908203125, 0.057342529296875, -0.04656982421875, 0.0254669189453125, 0.0377197265625, -0.042816162109375, -0.00862884521484375, 0.0004754066467285156, 0.004535675048828125, 0.0010662078857421875, 0.0036525726318359375, 0.0014371871948242188, 0.0005621910095214844, 0.03875732421875, -0.01337432861328125, 0.034210205078125, 0.01525115966796875, 0.0198516845703125, 0.027923583984375, 0.0030841827392578125, -0.01212310791015625, -0.0057525634765625, 0.006072998046875, -0.010101318359375, 0.0003020763397216797, -0.0027790069580078125, -0.0101470947265625, 0.00894927978515625, 0.015838623046875, 0.055450439453125, -0.030426025390625, 0.00605010986328125, 0.018402099609375, 0.0061187744140625, 0.042449951171875, 0.0149688720703125, 0.0079498291015625, -0.04730224609375, 0.05804443359375, -0.00548553466796875, 0.01226806640625, 0.032623291015625, -0.0029449462890625, 0.0001895427703857422, -0.0105438232421875, 0.0421142578125, 0.0186614990234375, 0.007472991943359375, -0.00885772705078125, 0.0034332275390625, 0.0162811279296875, -0.05596923828125, -0.0274810791015625, 0.04351806640625, -0.031982421875, -0.048248291015625, 0.055999755859375, -0.052764892578125, 0.034088134765625, 0.0599365234375, 0.039093017578125, 0.01861572265625, 0.061309814453125, -0.0005512237548828125, -0.002452850341796875, 0.0416259765625, -0.045562744140625, 0.0187530517578125, -0.0300750732421875, -0.01482391357421875, 0.0479736328125, 0.01499176025390625, 0.0201873779296875, 0.029266357421875, -0.0228729248046875, 0.0175323486328125, 0.04132080078125, 0.053070068359375, -0.017120361328125, -0.03985595703125, 0.04022216796875, -0.05975341796875, -0.0122833251953125, 0.01334381103515625, -0.0177459716796875, 0.0106353759765625, 0.012847900390625, -0.005336761474609375, -0.042205810546875, 0.017547607421875, -0.01561737060546875, -0.029083251953125, 0.043182373046875, 0.00408935546875, 0.005916595458984375, 0.00494384765625, 0.0213623046875, 0.0109405517578125, 0.0245361328125, -0.033416748046875, 0.03656005859375, 0.0270843505859375, 0.00591278076171875, -0.0411376953125, -0.009002685546875, -0.007144927978515625, 0.0202484130859375, 0.05462646484375, 0.0106048583984375, -0.006633758544921875, -0.015869140625, -0.037109375, -0.037017822265625, -0.05352783203125, 0.0675048828125, 0.0204925537109375, 0.032196044921875, 0.06695556640625, -0.0242767333984375, 0.032379150390625, -0.0211334228515625, 0.01305389404296875, 0.02783203125, 0.00547027587890625, 0.0131988525390625, 0.00196075439453125, 0.02801513671875, -0.0282745361328125, -0.007526397705078125, 0.0260772705078125, -0.0625, -0.01110076904296875, 0.06988525390625, 0.06793212890625, -0.0059967041015625, -0.040557861328125, -0.0223541259765625, 0.061767578125, 0.02630615234375, 0.033599853515625, 0.07342529296875, 0.035400390625, 0.01513671875, 0.033477783203125, 0.03814697265625, -0.004016876220703125, -0.01279449462890625, 0.0200347900390625, 0.0163726806640625, 0.0090179443359375, -0.0267791748046875, 0.02960205078125, 0.035736083984375, 0.025726318359375, -0.04302978515625, -0.0268707275390625, 0.00856781005859375, 0.02252197265625, 0.0279388427734375, 0.00702667236328125, 0.063232421875, 0.0196685791015625, 0.0034999847412109375, 0.0124053955078125, 0.006744384765625, 0.0225982666015625, 0.02996826171875, 0.0267333984375, 0.056671142578125, -0.07574462890625, -0.012603759765625, 0.00553131103515625, -0.03643798828125, -0.004474639892578125, 0.00832366943359375, 0.0220947265625, 0.00771331787109375, 0.0092010498046875, 0.0016574859619140625, 0.0171356201171875, 0.0161590576171875, 0.0462646484375, -0.0439453125, 0.056915283203125, 0.04010009765625, -0.004184722900390625, -0.01910400390625, -0.004459381103515625, 0.0120849609375, 0.0288543701171875, -0.0036754608154296875, -0.054473876953125, -0.006328582763671875, 0.055145263671875, -0.044342041015625, 0.0330810546875, -0.055877685546875, 0.027099609375, 0.0082244873046875, -0.01136016845703125, 0.0157318115234375, -0.038360595703125, 0.0635986328125, 0.01508331298828125, -0.022796630859375, 0.0208892822265625, -0.0123748779296875, -0.02056884765625, 0.007419586181640625, -0.07269287109375, 0.03387451171875, -0.0076751708984375, 0.00391387939453125, 0.01617431640625, -0.0187530517578125, -0.014678955078125, 0.0267486572265625, -0.023345947265625, 0.039337158203125, -0.0311126708984375, -0.03887939453125, 0.0209503173828125, 0.022735595703125, -0.00887298583984375, 0.01495361328125, 0.006366729736328125, -0.034210205078125, -0.042327880859375, -0.03021240234375, -0.045623779296875, 0.054351806640625, 0.033447265625, 0.043304443359375, -0.02349853515625, 0.038055419921875, -0.004329681396484375, -0.0158538818359375, -0.01055145263671875, -0.01325225830078125, 0.023834228515625, 0.0042877197265625, -0.01055908203125, -0.01342010498046875, -0.05047607421875, 0.0294189453125, 0.0225372314453125, -0.006763458251953125, 0.052886962890625, -0.02178955078125, 0.0027523040771484375, -0.029449462890625, 0.0212249755859375, -0.0266571044921875, -0.051177978515625, -0.038787841796875, -0.01416778564453125, 0.012481689453125, 0.03173828125, -0.007144927978515625, 0.0306243896484375, -0.01483917236328125, 0.00749969482421875, 0.003322601318359375, -0.0147247314453125, -0.004695892333984375, 0.0206298828125, -0.056854248046875, -0.00614166259765625, -0.03692626953125, -0.03106689453125, -0.018798828125, -0.004848480224609375, 0.01433563232421875, -0.0242767333984375, 0.038482666015625, 0.024322509765625, -0.040374755859375, 0.0240936279296875, -0.001300811767578125, -0.0176239013671875, -0.03619384765625, 0.026092529296875, -0.0008616447448730469, -0.01053619384765625, 0.00872039794921875, -0.005542755126953125, 0.0015993118286132812, 0.018798828125, 0.0272674560546875, 0.0230560302734375, 0.0300445556640625, -0.008331298828125, -0.0014390945434570312, 0.0007119178771972656, -0.0117340087890625, 0.00836944580078125, -0.004940032958984375, -0.000020802021026611328, -0.0222320556640625, 0.045379638671875, -0.01806640625, -0.0036334991455078125, -0.039581298828125, -0.036651611328125, -0.0259552001953125, 0.07232666015625, -0.01203155517578125, 0.040771484375, 0.045440673828125, -0.0283966064453125, -0.0120697021484375, 0.08203125, 0.03155517578125, 0.1334228515625, -0.041229248046875, -0.006755828857421875, 0.03076171875, -0.0001289844512939453, -0.041259765625, -0.0970458984375, 0.006664276123046875, -0.068115234375, -0.004199981689453125, -0.025299072265625, 0.029998779296875, 0.032318115234375, -0.0277557373046875, -0.02215576171875, 0.031280517578125, 0.01123809814453125, -0.0247039794921875, -0.0005307197570800781, -0.040069580078125, -0.01320648193359375, 0.034698486328125, 0.006122589111328125, -0.0140533447265625, -0.040985107421875, 0.0259857177734375, 0.01053619384765625, -0.0038356781005859375, 0.033843994140625, -0.0214996337890625, -0.005619049072265625, 0.0209808349609375, 0.043487548828125, -0.00264739990234375, -0.01081085205078125, -0.0213623046875, 0.040679931640625, 0.05767822265625, -0.004863739013671875, -0.0074462890625, 0.0178070068359375, -0.0352783203125, -0.038177490234375, -0.00936126708984375, -0.0251617431640625, 0.015899658203125, 0.0672607421875, 0.078369140625, 0.026458740234375, -0.05657958984375, -0.01342010498046875, -0.00212860107421875, 0.0214996337890625, -0.051727294921875, 0.00681304931640625, -0.06298828125, -0.0509033203125, -0.0175018310546875, -0.001323699951171875, 0.0389404296875, -0.060211181640625, -0.017181396484375, 0.0122833251953125, 0.00936126708984375, 0.01029205322265625, -0.0094757080078125, 0.01348876953125, 0.063720703125, -0.06512451171875, -0.041778564453125, 0.006572723388671875, 0.004306793212890625, -0.015716552734375, -0.06939697265625, -0.065673828125, -0.03265380859375, -0.018096923828125, 0.036285400390625, -0.044158935546875, 0.052093505859375, -0.035614013671875, 0.0218658447265625, -0.0160064697265625, -0.001232147216796875, 0.01399993896484375, 0.01325225830078125, 0.031982421875, -0.032257080078125, -0.0025959014892578125, -0.04180908203125, -0.052215576171875, -0.005321502685546875, -0.0281219482421875, 0.016021728515625, 0.01068115234375, 0.0211029052734375, 0.062103271484375, 0.00299835205078125, 0.0083160400390625, 0.038238525390625, 0.035247802734375, -0.025634765625, 0.044403076171875, 0.0267486572265625, 0.0498046875, 0.03118896484375 ]
8f45588181cb9304417b1f2802e0b43988913720
Wordpress Stackexchange Q: Custom form that store input in database I have never used WordPress before, but have a lot of programming experience. My question is, how to create customs forms in WordPress? I need to create a form where a user fills some input fields and on submit the data should be stored in the database. I don't need any notification on saving. I also need to query the data and get the output in an HTML table. Thanks A: I got the problem solution myself. See the code below this will do that. Put the code inside your newly created custom template. <?php if (!empty($_POST)) { global $wpdb; $table = wp_achord; $data = array( 'name' => $_POST['yourname'], 'chord' => $_POST['chord'] ); $format = array( '%s', '%s' ); $success=$wpdb->insert( $table, $data, $format ); if($success){ echo 'data has been save' ; } } else { ?> <form method="post"> <input type="text" name="yourname"> <textarea name="chord"></textarea> <input type="submit"> </form> <?php } ?>
Q: Custom form that store input in database I have never used WordPress before, but have a lot of programming experience. My question is, how to create customs forms in WordPress? I need to create a form where a user fills some input fields and on submit the data should be stored in the database. I don't need any notification on saving. I also need to query the data and get the output in an HTML table. Thanks A: I got the problem solution myself. See the code below this will do that. Put the code inside your newly created custom template. <?php if (!empty($_POST)) { global $wpdb; $table = wp_achord; $data = array( 'name' => $_POST['yourname'], 'chord' => $_POST['chord'] ); $format = array( '%s', '%s' ); $success=$wpdb->insert( $table, $data, $format ); if($success){ echo 'data has been save' ; } } else { ?> <form method="post"> <input type="text" name="yourname"> <textarea name="chord"></textarea> <input type="submit"> </form> <?php } ?> A: My suggestion: Use Contact Form 7 plus Contact Form DB. You can "design" your form in the backend and putting in the frontend via a simple shortcode. The Contact Form DB extension let you put your data in the database and offers to you shortcodes to display it (or you can query the data directly from the database if you prefer) A: I am going to use this solution, but it seams to be very customize and can that be a problem with themes and upgrades? * *Link to solution A: It give different ways. For store data, like options is the options table, the options API, the right place with a entry and a array as store element. But for store data to use it like posts and each request from the form is it better to save also like post. But also here different possibilities. You can save for different post types. The default is 'post' and also you can save in a custom post type. Use the function wp_insert_post() to save for all post type after send Form from users. You find very fine answers here to this function, this topic ans also in the wild of www. You can also see a small example in this answer 73653, inlcude attachments in the form. A: You could also use the excellent Contact Form 7 plugin along with the Post My CF7 Form extension plugin which will allow you to save any custom forms to a post, including images as featured attachments, and select/checkbox/radio inputs as taxonomies. The Post My CF7 Form plugin has a rich functionality that can be leveraged to further customise and tweak the way your forms should be saved. There is a detailed documentation section too. A: Your solution is good and may work very well. But, there are few limitations. eg: 1) What about searching and sorting entries which are posted through your form? 2) What about exporting the data filled into your form to Excel or CSV or PDF? 3) What if you want to print the inserted data. All that can be achieved with Contact Form 7 + Save Contact Form 7 plugins. both are free widely used plugins: http://savecontactform7.com/ http://contactform7.com/ A: <?php /** Use these line of codes, its working more than 100% */ get_header();?> <?php if (!empty($_POST)) { global $wpdb; $table = wp_contact; $data = array( 'name' => $_POST['aname'], 'email' => $_POST['aemail'], 'subject' => $_POST['asubject'], 'msg' => $_POST['amsg'] ); $format = array( '%s', '%s' ); $success=$wpdb->insert( $table, $data, $format ); if($success){ echo 'data has been saved' ; } } else { ?> <form action="<?php echo get_option('siteurl'); ?>/form/" method="post"> <input type="text" name="aname"> <input type="text" name="aemail"> <input type="text" name="asubject"> <textarea type="text" name="amsg"></textarea> <input type="submit"> </form> <?php } ?>
wordpress
{ "language": "en", "length": 615, "provenance": "stackexchange_00019.jsonl.gz:427140", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77258" }
[ 0.045440673828125, 0.0016241073608398438, -0.015472412109375, -0.047332763671875, 0.0130615234375, -0.027313232421875, 0.02789306640625, -0.0006465911865234375, 0.00957489013671875, -0.0018911361694335938, -0.041473388671875, -0.0114593505859375, -0.042633056640625, -0.0267791748046875, -0.007175445556640625, -0.06298828125, 0.0192413330078125, -0.0126495361328125, 0.01248931884765625, -0.01143646240234375, 0.0132904052734375, -0.0013418197631835938, 0.00015807151794433594, -0.004558563232421875, 0.035125732421875, -0.0224609375, 0.01016998291015625, 0.012359619140625, 0.019989013671875, 0.005130767822265625, 0.0234832763671875, -0.024871826171875, 0.0165252685546875, 0.00977325439453125, -0.006015777587890625, 0.01042938232421875, 0.023773193359375, 0.00260162353515625, 0.007602691650390625, 0.042694091796875, 0.0438232421875, -0.02239990234375, -0.014495849609375, -0.03125, -0.01161956787109375, -0.054840087890625, 0.060028076171875, -0.02374267578125, 0.01090240478515625, 0.0272064208984375, -0.00539398193359375, 0.0469970703125, 0.012542724609375, -0.0264129638671875, -0.0033702850341796875, -0.02435302734375, -0.035858154296875, -0.048248291015625, 0.0309295654296875, 0.0477294921875, 0.0174713134765625, -0.046112060546875, 0.011871337890625, -0.0252838134765625, 0.003406524658203125, 0.00653076171875, 0.044189453125, 0.0310211181640625, -0.021270751953125, -0.020416259765625, 0.005626678466796875, 0.0013380050659179688, -0.004852294921875, -0.0095062255859375, 0.00616455078125, 0.00374603271484375, 0.0157470703125, 0.017730712890625, -0.01325225830078125, 0.0257415771484375, -0.060638427734375, -0.026458740234375, -0.0229949951171875, -0.06304931640625, 0.0111846923828125, -0.01806640625, -0.0299835205078125, 0.0234832763671875, 0.0214080810546875, -0.01291656494140625, -0.00009554624557495117, -0.0245208740234375, -0.004520416259765625, 0.027801513671875, -0.0097503662109375, -0.029327392578125, 0.0005292892456054688, -0.0180206298828125, 0.0255889892578125, -0.00603485107421875, 0.045257568359375, -0.04254150390625, 0.03466796875, -0.01544952392578125, 0.0216522216796875, 0.04144287109375, -0.03759765625, -0.07769775390625, 0.0167083740234375, 0.006214141845703125, 0.0016307830810546875, -0.01157379150390625, -0.0186309814453125, -0.04852294921875, -0.0027313232421875, 0.057373046875, -0.010589599609375, 0.004764556884765625, 0.0039520263671875, 0.00417327880859375, -0.0181121826171875, 0.01515960693359375, -0.01019287109375, -0.06512451171875, -0.0134429931640625, -0.047760009765625, -0.0116424560546875, -0.0113067626953125, -0.07373046875, 0.0244598388671875, -0.053802490234375, 0.01371002197265625, 0.1107177734375, 0.08111572265625, 0.043426513671875, -0.0253143310546875, 0.038787841796875, -0.02569580078125, -0.0130462646484375, 0.042083740234375, -0.0250396728515625, -0.041656494140625, -0.01322174072265625, -0.0119476318359375, -0.0297698974609375, 0.0206298828125, 0.0166778564453125, 0.009857177734375, -0.028839111328125, -0.0595703125, -0.0208740234375, 0.0048828125, 0.017578125, -0.001125335693359375, -0.0288848876953125, -0.0026874542236328125, -0.01509857177734375, 0.00617218017578125, -0.008880615234375, 0.0017385482788085938, -0.01910400390625, -0.01004791259765625, 0.01316070556640625, -0.059600830078125, -0.045684814453125, -0.00341033935546875, -0.038177490234375, 0.005428314208984375, 0.03424072265625, -0.0140380859375, 0.005359649658203125, -0.0111846923828125, 0.0379638671875, 0.029296875, 0.0029697418212890625, 0.0430908203125, -0.00969696044921875, -0.006618499755859375, 0.0278778076171875, 0.03826904296875, 0.004512786865234375, -0.01190948486328125, 0.037750244140625, -0.006023406982421875, -0.045013427734375, 0.06146240234375, 0.008544921875, 0.07489013671875, -0.00040912628173828125, 0.017822265625, -0.0276031494140625, 0.031768798828125, -0.011566162109375, 0.03582763671875, -0.00876617431640625, -0.031890869140625, -0.026397705078125, -0.0001373291015625, -0.02069091796875, 0.00830078125, -0.035369873046875, 0.0019931793212890625, 0.0186309814453125, 0.010589599609375, -0.00872802734375, 0.017425537109375, -0.0256195068359375, 0.02325439453125, -0.036773681640625, -0.0037994384765625, 0.03790283203125, 0.005298614501953125, -0.032623291015625, -0.0009236335754394531, 0.0032367706298828125, 0.00042700767517089844, -0.006343841552734375, 0.0283203125, -0.0157470703125, 0.050872802734375, -0.03253173828125, -0.038177490234375, -0.0272216796875, -0.006072998046875, 0.004749298095703125, -0.0101318359375, -0.01580810546875, -0.01366424560546875, -0.01026153564453125, -0.00615692138671875, -0.00737762451171875, 0.0264739990234375, 0.03961181640625, -0.005931854248046875, -0.052032470703125, -0.0179290771484375, -0.0377197265625, -0.06842041015625, -0.01092529296875, 0.07061767578125, 0.004184722900390625, 0.0305938720703125, -0.02569580078125, 0.057373046875, 0.016204833984375, -0.030670166015625, -0.006420135498046875, 0.04364013671875, 0.0111236572265625, 0.040985107421875, -0.015838623046875, 0.0080413818359375, 0.0234222412109375, -0.0264892578125, 0.022491455078125, 0.041900634765625, -0.04693603515625, -0.01763916015625, 0.0291748046875, -0.0299224853515625, 0.0020580291748046875, -0.0190887451171875, 0.0197906494140625, -0.025970458984375, 0.037445068359375, 0.0245513916015625, 0.051727294921875, 0.04351806640625, -0.01580810546875, 0.03631591796875, -0.01247406005859375, -0.041259765625, 0.0015106201171875, -0.0455322265625, -0.033721923828125, 0.04034423828125, -0.047943115234375, 0.0341796875, 0.022491455078125, -0.01259613037109375, -0.02105712890625, 0.03350830078125, -0.017486572265625, -0.0016384124755859375, -0.01419830322265625, -0.07177734375, 0.0003581047058105469, 0.005153656005859375, 0.0281982421875, -0.012847900390625, 0.01169586181640625, 0.0489501953125, -0.0310211181640625, 0.06231689453125, 0.0229339599609375, -0.026336669921875, 0.00457763671875, -0.0203399658203125, 0.01239013671875, -0.0140533447265625, 0.0298309326171875, 0.07135009765625, 0.0108642578125, -0.01025390625, -0.0158538818359375, -0.0229644775390625, -0.02197265625, 0.02325439453125, -0.0023326873779296875, -0.0758056640625, 0.0028629302978515625, -0.0010824203491210938, 0.03375244140625, 0.053314208984375, 0.0158538818359375, -0.0251617431640625, 0.010833740234375, 0.045867919921875, -0.031402587890625, -0.06524658203125, 0.0035648345947265625, -0.02984619140625, -0.009124755859375, -0.0261688232421875, -0.0233917236328125, 0.006160736083984375, -0.0284423828125, -0.0026531219482421875, -0.0265045166015625, -0.01806640625, 0.0010843276977539062, -0.0328369140625, -0.037445068359375, -0.0301513671875, 0.00945281982421875, 0.010162353515625, 0.0020275115966796875, 0.031341552734375, -0.0016279220581054688, -0.0343017578125, -0.0036182403564453125, -0.0604248046875, 0.00335693359375, 0.01226043701171875, 0.0130157470703125, -0.061309814453125, 0.0701904296875, -0.004985809326171875, 0.03607177734375, 0.03497314453125, 0.00807952880859375, -0.004192352294921875, 0.0147857666015625, -0.0214996337890625, -0.0029354095458984375, 0.040191650390625, -0.018280029296875, -0.0159759521484375, 0.02252197265625, -0.0615234375, -0.004119873046875, 0.01482391357421875, -0.013702392578125, -0.037689208984375, -0.018310546875, -0.0250701904296875, -0.0225830078125, 0.0262603759765625, 0.02752685546875, 0.0308380126953125, 0.00261688232421875, 0.0099639892578125, -0.00566864013671875, -0.004566192626953125, -0.001476287841796875, -0.00554656982421875, 0.050872802734375, -0.0017271041870117188, 0.0269622802734375, 0.02984619140625, -0.0007042884826660156, -0.0006322860717773438, -0.021453857421875, -0.03369140625, -0.1021728515625, 0.06427001953125, -0.00769805908203125, 0.021026611328125, -0.0523681640625, -0.02978515625, 0.01015472412109375, 0.12841796875, -0.034759521484375, 0.00835418701171875, 0.018218994140625, 0.01352691650390625, -0.048858642578125, -0.0021686553955078125, -0.08984375, 0.0134124755859375, -0.026947021484375, 0.0035266876220703125, -0.01239013671875, -0.004364013671875, -0.0039005279541015625, -0.031494140625, -0.009033203125, -0.0273590087890625, 0.031494140625, -0.054107666015625, 0.043731689453125, -0.02386474609375, 0.03387451171875, -0.0300750732421875, 0.035430908203125, -0.06982421875, -0.07452392578125, -0.00466156005859375, -0.0229034423828125, 0.033416748046875, 0.0083770751953125, 0.0087890625, 0.00020778179168701172, 0.04718017578125, 0.00510406494140625, 0.051788330078125, 0.003997802734375, 0.03277587890625, -0.01216888427734375, -0.04901123046875, 0.00760650634765625, -0.054290771484375, -0.01971435546875, -0.01131439208984375, 0.029205322265625, 0.0335693359375, -0.041839599609375, -0.03582763671875, -0.038330078125, 0.0003757476806640625, -0.00713348388671875, -0.01922607421875, -0.033935546875, 0.0175628662109375, -0.039794921875, -0.00063323974609375, -0.0037097930908203125, -0.032318115234375, 0.0295867919921875, -0.0197906494140625, 0.032562255859375, 0.0194244384765625, 0.09649658203125, 0.005161285400390625, -0.01494598388671875, -0.08258056640625, 0.007099151611328125, 0.06494140625, 0.01406097412109375, -0.02325439453125, -0.003936767578125, -0.06591796875, 0.0384521484375, 0.042144775390625, -0.00893402099609375, -0.01204681396484375, 0.061859130859375, 0.0121002197265625, 0.0030956268310546875, -0.005657196044921875, 0.0002849102020263672, -0.005664825439453125, 0.014984130859375, -0.015106201171875, -0.005619049072265625, 0.0123748779296875, 0.0116729736328125, -0.03057861328125, 0.0250396728515625, -0.0087432861328125, -0.050506591796875, 0.0162200927734375, -0.0477294921875, 0.0303497314453125, -0.005126953125, 0.01483917236328125, 0.0280303955078125, 0.0032291412353515625, -0.00579071044921875, -0.00667572021484375, -0.01373291015625, 0.019073486328125, 0.02679443359375, 0.016326904296875, 0.0132598876953125, -0.0030364990234375, 0.005878448486328125, 0.0051727294921875, 0.0027217864990234375, -0.04046630859375, -0.01403045654296875, -0.0025177001953125, 0.0095977783203125, -0.0072784423828125, 0.01209259033203125, 0.0177459716796875, 0.03289794921875, 0.035064697265625, 0.03582763671875, 0.01812744140625, 0.035858154296875, 0.006591796875, 0.00226593017578125, 0.01448822021484375, -0.02972412109375, -0.01540374755859375, 0.0352783203125, 0.007083892822265625, 0.01088714599609375, -0.0024852752685546875, 0.05078125, 0.05780029296875, 0.02679443359375, 0.01432037353515625, -0.0023708343505859375, -0.00682830810546875, -0.0000896453857421875, -0.0165557861328125, -0.040069580078125, 0.007415771484375, -0.0009622573852539062, 0.037994384765625, -0.03466796875, -0.036590576171875, 0.044830322265625, -0.039642333984375, 0.005222320556640625, -0.018524169921875, -0.024810791015625, -0.0242919921875, -0.0030307769775390625, 0.0131683349609375, 0.01174163818359375, -0.022552490234375, 0.009002685546875, -0.0027065277099609375, -0.0343017578125, 0.0194854736328125, -0.017364501953125, 0.030853271484375, -0.0247344970703125, -0.0406494140625, 0.01018524169921875, 0.00722503662109375, -0.008636474609375, -0.031982421875, -0.027618408203125, -0.00980377197265625, -0.0011043548583984375, 0.00821685791015625, -0.042572021484375, -0.007404327392578125, -0.036651611328125, 0.046661376953125, -0.0650634765625, 0.005889892578125, 0.055908203125, 0.0191802978515625, 0.01369476318359375, -0.0290679931640625, -0.00884246826171875, -0.0273895263671875, -0.0202484130859375, -0.0034999847412109375, -0.01343536376953125, 0.0025959014892578125, -0.006282806396484375, 0.013946533203125, 0.0007596015930175781, -0.014404296875, -0.02813720703125, -0.0033779144287109375, 0.01354217529296875, -0.014862060546875, -0.0096588134765625, 0.06610107421875, -0.034423828125, 0.08306884765625, 0.0142974853515625, 0.01387786865234375, -0.0350341796875, -0.01479339599609375, 0.0195465087890625, -0.04144287109375, -0.054534912109375, -0.02569580078125, -0.0298309326171875, 0.04180908203125, 0.042572021484375, -0.0147857666015625, 0.01690673828125, -0.00360870361328125, 0.0005168914794921875, -0.005939483642578125, 0.022979736328125, 0.00856781005859375, -0.01280975341796875, 0.040496826171875, -0.0174407958984375, 0.0232391357421875, 0.00666046142578125, 0.00804901123046875, 0.012115478515625, -0.024871826171875, 0.0275115966796875, -0.0009832382202148438, -0.07354736328125, 0.042205810546875, 0.0269927978515625, 0.0220947265625, 0.027435302734375, -0.0107269287109375, 0.00901031494140625, -0.004039764404296875, 0.0256805419921875, -0.0295867919921875, -0.0193939208984375, 0.08843994140625, 0.02294921875, -0.043670654296875, 0.0682373046875, -0.0318603515625, 0.00711822509765625, 0.0966796875, 0.0810546875, -0.1055908203125, -0.004848480224609375, -0.00676727294921875, -0.0345458984375, 0.00012046098709106445, -0.0240631103515625, -0.00604248046875, -0.035888671875, 0.02044677734375, 0.03179931640625, -0.032501220703125, -0.01312255859375, 0.0129852294921875, 0.0100555419921875, -0.00799560546875, 0.07275390625, -0.016357421875, -0.017425537109375, -0.043304443359375, -0.0145263671875, -0.0103302001953125, -0.005718231201171875, 0.0201263427734375, 0.0080108642578125, -0.01171112060546875, -0.049560546875, 0.002590179443359375, -0.0181427001953125, -0.0192718505859375, 0.0279541015625, 0.004856109619140625, 0.07720947265625, 0.04705810546875, 0.01513671875, 0.0018949508666992188, 0.004016876220703125, 0.028289794921875, -0.031768798828125, -0.0340576171875, -0.027069091796875, 0.0177154541015625, -0.059295654296875, 0.01488494873046875, -0.043365478515625, 0.01534271240234375, -0.0194854736328125, 0.0024433135986328125, 0.0748291015625, 0.0170135498046875, -0.05322265625, 0.0152740478515625, 0.0106964111328125, -0.004741668701171875, -0.048583984375, 0.00875091552734375, -0.0672607421875, -0.01154327392578125, -0.0281829833984375, -0.031524658203125, 0.006847381591796875, -0.06243896484375, -0.0777587890625, 0.0972900390625, 0.0230865478515625, 0.0192413330078125, -0.0166778564453125, 0.043212890625, -0.0292205810546875, 0.0223541259765625, -0.0439453125, 0.001300811767578125, 0.0021514892578125, 0.02703857421875, -0.042205810546875, -0.00885009765625, -0.00716400146484375, 0.0396728515625, 0.06939697265625, 0.0056304931640625, 0.0024127960205078125, 0.01111602783203125, 0.05865478515625, 0.03167724609375, -0.0211944580078125, 0.021820068359375, -0.0035076141357421875, 0.033721923828125, 0.096435546875, -0.03302001953125, 0.032501220703125, 0.030029296875, 0.0104522705078125, 0.039337158203125, 0.006732940673828125, 0.003795623779296875, -0.035400390625, 0.00463104248046875, -0.0011243820190429688, -0.026214599609375, 0.004283905029296875, -0.024688720703125, -0.01287078857421875, 0.034820556640625, 0.04840087890625, -0.05621337890625, 0.0010986328125, -0.040069580078125, 0.050506591796875, 0.019561767578125, 0.015289306640625, 0.0223846435546875, 0.0127105712890625, -0.004314422607421875, 0.0250244140625, 0.0011844635009765625, 0.01284027099609375, 0.0002944469451904297, 0.06915283203125, 0.0222930908203125, 0.0081024169921875, -0.063720703125, -0.0024433135986328125, 0.04217529296875, 0.1038818359375, -0.07049560546875, -0.039794921875, 0.00348663330078125, 0.019195556640625, 0.0283355712890625, 0.018402099609375, 0.04022216796875, 0.0211181640625, 0.05029296875, 0.0004410743713378906, 0.00830078125, -0.012115478515625, -0.01849365234375, -0.0157470703125, 0.020782470703125, 0.0213775634765625, 0.038482666015625, -0.0100555419921875, -0.0418701171875, 0.00605010986328125, 0.0232391357421875, 0.0187835693359375, 0.0195770263671875, 0.034454345703125, -0.0005807876586914062, -0.004192352294921875, 0.01021575927734375, 0.00392913818359375, 0.00641632080078125, -0.0075836181640625, -0.004474639892578125, -0.0017185211181640625, 0.0108795166015625, 0.01361846923828125, 0.060272216796875, 0.058135986328125, -0.00524139404296875, -0.026092529296875, 0.005855560302734375, 0.019195556640625, -0.04766845703125, -0.02105712890625, -0.040130615234375, -0.01177215576171875, 0.0218505859375, 0.007091522216796875, 0.0022144317626953125, -0.0009093284606933594, 0.04400634765625, -0.02386474609375, 0.037750244140625, -0.011749267578125, -0.034881591796875, 0.02557373046875, -0.0482177734375, 0.0789794921875, -0.013458251953125, -0.049041748046875, -0.017333984375, -0.016387939453125, -0.035736083984375, 0.0204620361328125, 0.05096435546875, 0.005611419677734375, 0.0024566650390625, 0.0171356201171875, -0.03240966796875, 0.027374267578125, 0.018798828125, 0.00867462158203125, 0.006702423095703125, 0.004817962646484375, -0.0187225341796875, -0.0714111328125, -0.023834228515625, -0.0077972412109375, 0.0208282470703125, -0.01800537109375, 0.0455322265625, 0.00804901123046875, 0.01447296142578125, -0.00981903076171875, 0.0240936279296875, -0.0111083984375, -0.0286407470703125, 0.054229736328125, 0.01363372802734375, 0.0054931640625, -0.01142120361328125, -0.00643157958984375, 0.0025653839111328125, 0.01165008544921875, -0.04876708984375, -0.050933837890625, 0.01306915283203125, 0.0404052734375, 0.03143310546875, -0.01041412353515625, -0.01922607421875, -0.0039215087890625, 0.0269622802734375, 0.0024623870849609375, 0.0267181396484375, 0.01543426513671875, -0.010101318359375, 0.06365966796875, -0.0269927978515625, 0.0091400146484375, 0.020599365234375, -0.08673095703125, 0.047149658203125, 0.037139892578125, -0.034820556640625, -0.041015625, -0.0037975311279296875, -0.0224761962890625, -0.004756927490234375, 0.0010461807250976562, 0.040557861328125, 0.00168609619140625, -0.0192718505859375, 0.007373809814453125, 0.0262603759765625, 0.045806884765625, 0.0039825439453125, 0.0280609130859375, 0.00395965576171875, -0.003887176513671875, 0.01334381103515625, -0.042449951171875, -0.034393310546875, -0.03680419921875, 0.01078033447265625, 0.0300140380859375, -0.00484466552734375, -0.023895263671875, -0.062744140625, 0.01322174072265625, 0.0272216796875, -0.01348114013671875, -0.035003662109375, 0.0003857612609863281, -0.05767822265625, 0.055389404296875, -0.0130462646484375, 0.0019550323486328125, 0.011474609375, 0.034149169921875, -0.000048041343688964844, -0.019989013671875, -0.002483367919921875, 0.02154541015625, 0.034576416015625, 0.012908935546875, 0.028106689453125, -0.01445770263671875, -0.041046142578125, 0.01380157470703125, 0.01027679443359375, 0.0523681640625, 0.0333251953125, -0.033416748046875, 0.0261993408203125, -0.0229339599609375, -0.0009260177612304688, -0.027862548828125, 0.015716552734375, -0.0947265625, 0.009765625, -0.038116455078125, 0.02764892578125, 0.0265960693359375, -0.036590576171875, -0.0794677734375, -0.0124053955078125, -0.016571044921875, -0.041473388671875, -0.008331298828125, 0.01403045654296875, 0.0034770965576171875, 0.006740570068359375, 0.001064300537109375, -0.027374267578125, -0.034210205078125, -0.0215301513671875, -0.01232147216796875, -0.01390838623046875, 0.037689208984375, -0.00785064697265625, -0.091064453125, -0.0254974365234375, -0.032196044921875, -0.0211944580078125, 0.0287322998046875, -0.0217437744140625, 0.0241851806640625, 0.016937255859375, -0.054473876953125, -0.01125335693359375, -0.0139312744140625, -0.007213592529296875, -0.0266265869140625, -0.027435302734375, -0.0018949508666992188, -0.009429931640625, 0.0248565673828125, 0.06512451171875, -0.0015382766723632812, -0.0289459228515625, -0.011383056640625, -0.0028839111328125, -0.038482666015625, 0.0097808837890625, 0.00582122802734375, -0.02783203125, 0.010650634765625, -0.0120849609375, -0.03717041015625, 0.022552490234375, 0.01702880859375, -0.014862060546875, 0.01493072509765625, 0.03277587890625, -0.0286712646484375, -0.0215606689453125, -0.00542449951171875, 0.05499267578125, -0.042755126953125, -0.0268402099609375, 0.00005441904067993164, 0.0033130645751953125, 0.0043487548828125, -0.00641632080078125, 0.016632080078125, 0.019805908203125, -0.0404052734375, 0.0159759521484375, 0.0100860595703125, 0.01280975341796875, -0.041046142578125, -0.02069091796875, -0.005199432373046875, 0.014862060546875, -0.0034770965576171875, 0.0006518363952636719, -0.0301666259765625, 0.027557373046875, -0.0142059326171875, 0.076171875, -0.01073455810546875, -0.1075439453125, -0.037750244140625, 0.0173797607421875, -0.00936126708984375, -0.00794219970703125, 0.0247650146484375, -0.047119140625, 0.010498046875, -0.022735595703125, -0.0204315185546875, -0.01322174072265625, -0.007526397705078125, -0.01396942138671875, -0.0230560302734375, 0.00920867919921875 ]
e3a6879ae5a0810edee8cb62fb24491f902d6c48
Wordpress Stackexchange Q: Turn off ms-files.php after network setup I have a multisite that was set up on WordPress 3.4. That means that uploads for sub-sites are stored in wp-content/blogs.dir/{blog_id}/files and are served through ms-files.php. In WordPress 3.5, ms-files.php was disbanded completely for new installs and uploads are stored and accessed at wp-content/uploads/sites/{blog_id}. Is there anyway I can switch my install from the pre-3.5 way of serving/uploading files to the new way? I would like to continue serving uploads through files/ for current blogs, if possible. A: In theory: * *Move images from blogs.dir/SITENUM/files/ to /uploads/SITENUM/ (or make an alias) *Edit all sites so they don't look in /files/ but in /uploads/SITENUM/ *.htaccess, remove the ms-files.php line *Search/replace each posts table for each site, changing /files/ to /uploads/SITENUM/ A walk-through can be found here (dumping ms-files), this is not a trivial hack! It involves command-line usage, sql, and using a mu-plugin. Resources * *wp.org/support/removing-ms-filesphp-after-upgrading-existing-multisite-to-35 *wp.org/support/remove-ms-files-rewriting *Dumping ms-files
Q: Turn off ms-files.php after network setup I have a multisite that was set up on WordPress 3.4. That means that uploads for sub-sites are stored in wp-content/blogs.dir/{blog_id}/files and are served through ms-files.php. In WordPress 3.5, ms-files.php was disbanded completely for new installs and uploads are stored and accessed at wp-content/uploads/sites/{blog_id}. Is there anyway I can switch my install from the pre-3.5 way of serving/uploading files to the new way? I would like to continue serving uploads through files/ for current blogs, if possible. A: In theory: * *Move images from blogs.dir/SITENUM/files/ to /uploads/SITENUM/ (or make an alias) *Edit all sites so they don't look in /files/ but in /uploads/SITENUM/ *.htaccess, remove the ms-files.php line *Search/replace each posts table for each site, changing /files/ to /uploads/SITENUM/ A walk-through can be found here (dumping ms-files), this is not a trivial hack! It involves command-line usage, sql, and using a mu-plugin. Resources * *wp.org/support/removing-ms-filesphp-after-upgrading-existing-multisite-to-35 *wp.org/support/remove-ms-files-rewriting *Dumping ms-files A: I just opened a ticket about supporting old /files/ links: http://core.trac.wordpress.org/ticket/23755#comment:1 There is a solution in that ticket which requiring editing ms-files. I am not happy with editing core but i dont wanna break any working sites with defining BLOGUPLOADDIR networkwide. I hope it helps for old /files/ link and i hope we can find a better way without editing core.
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:427143", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77270" }
[ 0.0308380126953125, -0.0139007568359375, -0.00901031494140625, -0.03302001953125, -0.004909515380859375, -0.0226593017578125, 0.04974365234375, -0.0034656524658203125, 0.054718017578125, 0.0177764892578125, -0.04425048828125, -0.01605224609375, 0.0123291015625, -0.010711669921875, -0.0300445556640625, -0.01377105712890625, 0.045135498046875, -0.00469207763671875, 0.058013916015625, 0.01474761962890625, -0.0128631591796875, 0.06915283203125, 0.039215087890625, -0.00504302978515625, 0.0222625732421875, -0.0312042236328125, -0.0105743408203125, 0.004810333251953125, -0.008148193359375, -0.0229949951171875, 0.0120391845703125, 0.034820556640625, 0.00669097900390625, 0.040496826171875, -0.039337158203125, -0.003299713134765625, -0.019134521484375, 0.01525115966796875, -0.00010466575622558594, 0.03076171875, 0.005489349365234375, -0.001644134521484375, 0.0545654296875, -0.0582275390625, 0.01739501953125, -0.002964019775390625, -0.00429534912109375, -0.053131103515625, 0.0243682861328125, -0.040771484375, -0.0213775634765625, 0.01702880859375, 0.0111846923828125, -0.06341552734375, -0.0264739990234375, -0.0278167724609375, -0.03228759765625, 0.047027587890625, 0.003414154052734375, 0.030029296875, 0.0030975341796875, 0.031890869140625, -0.00958251953125, -0.0096893310546875, -0.005619049072265625, -0.015045166015625, -0.027740478515625, 0.0322265625, -0.09393310546875, -0.0224761962890625, 0.05242919921875, -0.06365966796875, 0.0247802734375, -0.049957275390625, 0.0023670196533203125, 0.038848876953125, -0.0203857421875, 0.009185791015625, 0.032257080078125, -0.05224609375, 0.0178985595703125, -0.043609619140625, -0.0291900634765625, -0.017974853515625, 0.019134521484375, 0.01248931884765625, 0.007106781005859375, -0.01171875, -0.0164337158203125, 0.046783447265625, -0.0219573974609375, 0.021759033203125, 0.006805419921875, 0.0225982666015625, -0.0232086181640625, 0.001552581787109375, 0.0229644775390625, 0.04779052734375, -0.02685546875, -0.02923583984375, -0.0146484375, -0.01224517822265625, -0.052490234375, 0.0011625289916992188, 0.0005326271057128906, 0.0152587890625, -0.023345947265625, -0.064208984375, 0.01503753662109375, 0.0233306884765625, -0.01309967041015625, 0.005374908447265625, -0.00946044921875, -0.031768798828125, -0.031768798828125, 0.03863525390625, -0.005779266357421875, -0.0214691162109375, 0.008026123046875, -0.0013227462768554688, -0.01393890380859375, 0.0296630859375, -0.06561279296875, -0.0194244384765625, 0.01317596435546875, -0.0261993408203125, -0.0137176513671875, 0.029144287109375, -0.062103271484375, 0.046173095703125, -0.049652099609375, 0.00934600830078125, 0.0865478515625, 0.0185394287109375, -0.01441192626953125, -0.0259246826171875, 0.02288818359375, -0.0200042724609375, 0.0017061233520507812, 0.0312347412109375, 0.01299285888671875, -0.05126953125, -0.035247802734375, 0.004840850830078125, -0.01416015625, 0.00730133056640625, 0.048004150390625, 0.035736083984375, -0.03863525390625, -0.0377197265625, -0.0110321044921875, 0.03485107421875, 0.08111572265625, -0.01270294189453125, -0.0450439453125, -0.058135986328125, 0.0206146240234375, -0.05096435546875, -0.010711669921875, -0.07196044921875, 0.01108551025390625, -0.0174102783203125, 0.005889892578125, -0.037506103515625, -0.061279296875, 0.013153076171875, -0.04547119140625, -0.02301025390625, 0.0283355712890625, 0.0014820098876953125, 0.01445770263671875, -0.07861328125, -0.005634307861328125, 0.0070343017578125, -0.00475311279296875, 0.05731201171875, 0.015716552734375, 0.047882080078125, -0.0035552978515625, 0.0792236328125, 0.048187255859375, -0.035980224609375, 0.05926513671875, -0.006198883056640625, -0.0792236328125, 0.01531219482421875, 0.005413055419921875, 0.04193115234375, 0.0184326171875, -0.0014410018920898438, 0.09686279296875, 0.01486968994140625, -0.0185546875, -0.00734710693359375, -0.01454925537109375, 0.0118408203125, -0.034515380859375, 0.0178375244140625, -0.0152130126953125, -0.0098419189453125, -0.01239776611328125, 0.037841796875, -0.01056671142578125, 0.021148681640625, -0.00021708011627197266, 0.0369873046875, -0.0181121826171875, 0.04339599609375, 0.007205963134765625, 0.00597381591796875, 0.01068878173828125, -0.005443572998046875, -0.0236968994140625, 0.010894775390625, -0.01036834716796875, 0.0170135498046875, -0.00705718994140625, 0.0704345703125, -0.006744384765625, 0.0633544921875, -0.013702392578125, -0.021881103515625, -0.00830841064453125, -0.024169921875, -0.006008148193359375, -0.0300445556640625, -0.029022216796875, -0.02398681640625, -0.0003478527069091797, -0.041961669921875, 0.049896240234375, 0.0703125, 0.00957489013671875, 0.0301055908203125, -0.00249481201171875, -0.0008206367492675781, 0.01026153564453125, -0.06085205078125, 0.006671905517578125, 0.022552490234375, 0.03778076171875, 0.003997802734375, -0.01052093505859375, -0.01288604736328125, -0.014312744140625, -0.03228759765625, 0.030364990234375, -0.033477783203125, 0.0199737548828125, 0.0287322998046875, -0.0026988983154296875, -0.01535797119140625, 0.0185699462890625, -0.0068359375, 0.0012998580932617188, 0.0235137939453125, -0.00980377197265625, -0.039031982421875, -0.0013751983642578125, 0.0149078369140625, 0.02325439453125, 0.006534576416015625, -0.036712646484375, 0.0177154541015625, 0.05755615234375, 0.0277557373046875, 0.049835205078125, 0.0384521484375, -0.02435302734375, 0.033538818359375, -0.00914764404296875, -0.039947509765625, 0.005481719970703125, 0.0014944076538085938, 0.00981903076171875, -0.002536773681640625, -0.005550384521484375, 0.001636505126953125, -0.005474090576171875, -0.0098876953125, -0.040069580078125, -0.0092620849609375, -0.03485107421875, -0.00615692138671875, -0.0170440673828125, 0.0012807846069335938, 0.0264739990234375, 0.00519561767578125, -0.0179901123046875, -0.005687713623046875, 0.01812744140625, 0.03216552734375, -0.00988006591796875, 0.01507568359375, 0.03839111328125, -0.004314422607421875, 0.041534423828125, -0.0369873046875, 0.045196533203125, -0.025360107421875, 0.0230255126953125, 0.065673828125, 0.0086212158203125, -0.01142120361328125, 0.007144927978515625, 0.001361846923828125, 0.01416778564453125, 0.02947998046875, 0.013671875, 0.00555419921875, -0.0404052734375, -0.02191162109375, 0.0191802978515625, -0.03118896484375, 0.0084228515625, -0.01458740234375, -0.023681640625, 0.004230499267578125, -0.09625244140625, -0.052154541015625, -0.0184173583984375, -0.0396728515625, 0.01457977294921875, 0.002838134765625, -0.026641845703125, -0.01064300537109375, 0.023284912109375, 0.0139312744140625, -0.0152130126953125, 0.0003590583801269531, -0.035614013671875, -0.034271240234375, -0.048919677734375, -0.01488494873046875, -0.01175689697265625, 0.016876220703125, 0.005245208740234375, 0.05645751953125, 0.0160675048828125, -0.03326416015625, 0.01367950439453125, 0.02996826171875, -0.00933074951171875, 0.0025424957275390625, 0.002315521240234375, -0.060516357421875, 0.0251617431640625, -0.01404571533203125, 0.0355224609375, 0.012451171875, 0.0094757080078125, -0.003082275390625, 0.006195068359375, -0.009674072265625, 0.0034961700439453125, -0.01181793212890625, -0.003879547119140625, -0.0299835205078125, -0.053863525390625, -0.076171875, -0.0087890625, 0.0004248619079589844, -0.0277099609375, 0.007350921630859375, 0.028839111328125, -0.0235595703125, -0.0017747879028320312, 0.0007796287536621094, 0.04254150390625, 0.0236663818359375, 0.016448974609375, -0.01666259765625, 0.031707763671875, -0.00434112548828125, 0.0243988037109375, -0.0439453125, 0.026275634765625, -0.0246124267578125, -0.005584716796875, -0.00945281982421875, 0.0034923553466796875, -0.0115509033203125, -0.0291900634765625, -0.05230712890625, -0.01904296875, 0.0226287841796875, -0.085205078125, 0.03094482421875, -0.087890625, 0.006923675537109375, -0.073486328125, 0.054534912109375, -0.00868988037109375, -0.020233154296875, -0.0090484619140625, 0.01267242431640625, -0.006923675537109375, -0.043365478515625, -0.006526947021484375, -0.01262664794921875, -0.087158203125, 0.01922607421875, -0.0051727294921875, -0.004795074462890625, -0.003597259521484375, -0.030548095703125, -0.013397216796875, -0.0599365234375, 0.0178070068359375, -0.050384521484375, 0.0169677734375, 0.0009684562683105469, 0.018310546875, -0.0357666015625, 0.0015411376953125, -0.0506591796875, -0.10595703125, -0.0227508544921875, -0.00986480712890625, 0.060302734375, -0.0051422119140625, -0.0158233642578125, -0.03033447265625, 0.053863525390625, 0.004619598388671875, -0.02166748046875, 0.0086212158203125, -0.007083892822265625, -0.025177001953125, 0.0330810546875, 0.006824493408203125, -0.013275146484375, -0.0162353515625, -0.038665771484375, -0.05377197265625, -0.050445556640625, -0.0005469322204589844, -0.00716400146484375, 0.04736328125, -0.02716064453125, 0.0142364501953125, -0.002513885498046875, -0.03582763671875, 0.004085540771484375, -0.0192718505859375, -0.01800537109375, 0.01096343994140625, -0.0088043212890625, 0.0211181640625, -0.0181427001953125, -0.014129638671875, 0.0103302001953125, 0.05645751953125, 0.015716552734375, -0.01422119140625, -0.003772735595703125, -0.006008148193359375, 0.0215606689453125, -0.005878448486328125, 0.0672607421875, 0.037261962890625, 0.01043701171875, 0.0145721435546875, -0.009979248046875, -0.00021219253540039062, -0.0012493133544921875, 0.007183074951171875, 0.00583648681640625, -0.0087890625, 0.0045928955078125, -0.0029296875, 0.0257415771484375, 0.00027370452880859375, 0.015625, -0.0096588134765625, 0.0187835693359375, 0.0275726318359375, 0.040802001953125, -0.052459716796875, -0.04473876953125, -0.07098388671875, 0.034454345703125, -0.0159149169921875, 0.0309295654296875, -0.019256591796875, 0.01474761962890625, 0.058135986328125, 0.028472900390625, -0.01271820068359375, 0.0005407333374023438, -0.01557159423828125, 0.0008487701416015625, 0.0298309326171875, -0.0285186767578125, -0.02099609375, -0.003971099853515625, -0.00457763671875, 0.0269927978515625, -0.0228271484375, -0.026275634765625, -0.0382080078125, 0.0031566619873046875, 0.025299072265625, 0.023773193359375, -0.019866943359375, 0.05462646484375, 0.0264739990234375, -0.035125732421875, -0.01183319091796875, -0.06451416015625, -0.01352691650390625, -0.06982421875, -0.052398681640625, -0.02276611328125, -0.0248870849609375, 0.0167083740234375, -0.022308349609375, -0.033966064453125, -0.00455474853515625, 0.00289154052734375, -0.007282257080078125, -0.00975799560546875, 0.0026340484619140625, 0.007366180419921875, 0.03448486328125, 0.010833740234375, -0.0087127685546875, 0.054412841796875, -0.0330810546875, -0.0261688232421875, 0.039520263671875, 0.052703857421875, -0.00913238525390625, -0.0238494873046875, -0.0024433135986328125, -0.027679443359375, -0.00862884521484375, 0.0350341796875, 0.004909515380859375, -0.0501708984375, -0.013916015625, -0.00406646728515625, 0.034637451171875, -0.0367431640625, 0.01415252685546875, 0.01039886474609375, -0.03607177734375, -0.050079345703125, 0.0469970703125, -0.05487060546875, -0.0295562744140625, -0.01161956787109375, 0.0142822265625, 0.0174407958984375, 0.013763427734375, -0.08807373046875, -0.034149169921875, -0.026275634765625, -0.01053619384765625, 0.05609130859375, -0.022125244140625, -0.012725830078125, -0.00966644287109375, 0.0187835693359375, -0.0283660888671875, 0.018707275390625, 0.0038890838623046875, -0.01186370849609375, -0.02569580078125, 0.01806640625, -0.0215606689453125, -0.01434326171875, 0.0065765380859375, -0.004070281982421875, -0.037689208984375, -0.03399658203125, -0.006839752197265625, 0.017486572265625, -0.0194091796875, 0.005687713623046875, 0.007778167724609375, 0.0177001953125, -0.0205535888671875, 0.035064697265625, -0.00021696090698242188, 0.038543701171875, -0.02166748046875, 0.03839111328125, 0.0211944580078125, 0.06854248046875, 0.04058837890625, -0.05975341796875, 0.00652313232421875, -0.07586669921875, -0.0282440185546875, 0.010467529296875, -0.033966064453125, 0.0341796875, 0.02752685546875, 0.000058770179748535156, -0.005924224853515625, 0.01531219482421875, 0.019317626953125, -0.0296173095703125, -0.0221099853515625, -0.004730224609375, 0.0177459716796875, -0.054962158203125, 0.00412750244140625, 0.025482177734375, -0.0257110595703125, -0.004428863525390625, 0.00052642822265625, -0.0011806488037109375, -0.0090789794921875, 0.0123443603515625, 0.00490570068359375, 0.0088958740234375, 0.048919677734375, -0.0032501220703125, 0.0226898193359375, 0.0019321441650390625, -0.0028743743896484375, -0.004985809326171875, -0.017608642578125, 0.033111572265625, -0.0026798248291015625, 0.0308990478515625, -0.00002384185791015625, 0.030975341796875, 0.03753662109375, -0.01358795166015625, 0.0318603515625, 0.0194091796875, 0.057891845703125, -0.041259765625, 0.0210418701171875, 0.004093170166015625, -0.02301025390625, 0.04766845703125, -0.004230499267578125, -0.00887298583984375, -0.0321044921875, 0.004291534423828125, 0.0213775634765625, -0.02423095703125, -0.0147247314453125, 0.0232086181640625, -0.028533935546875, 0.023895263671875, 0.0236053466796875, 0.00899505615234375, -0.01068115234375, -0.0244598388671875, -0.007598876953125, 0.0018568038940429688, -0.0131378173828125, 0.0185089111328125, -0.0126953125, -0.0308074951171875, -0.044403076171875, -0.0160675048828125, 0.01369476318359375, -0.040191650390625, 0.02728271484375, -0.006519317626953125, 0.032745361328125, 0.06683349609375, -0.0145416259765625, 0.00846099853515625, 0.039031982421875, 0.01012420654296875, -0.01422882080078125, -0.0234527587890625, 0.0245208740234375, 0.00731658935546875, -0.0291748046875, 0.0160675048828125, -0.0231781005859375, -0.028411865234375, 0.0160675048828125, 0.03125, -0.0160064697265625, -0.0210113525390625, -0.004016876220703125, 0.08197021484375, 0.015899658203125, -0.049591064453125, 0.009033203125, 0.0018749237060546875, -0.0833740234375, -0.0870361328125, 0.015350341796875, -0.08770751953125, 0.014129638671875, 0.012664794921875, -0.0543212890625, 0.11138916015625, -0.00777435302734375, 0.02728271484375, 0.01152801513671875, 0.041656494140625, -0.0271453857421875, 0.0229034423828125, -0.011474609375, 0.02581787109375, -0.0187225341796875, 0.0243072509765625, -0.0254364013671875, 0.0038204193115234375, 0.00812530517578125, 0.04547119140625, -0.00543212890625, -0.0047760009765625, -0.01751708984375, 0.007396697998046875, 0.041412353515625, 0.050750732421875, 0.03887939453125, -0.0007505416870117188, -0.00980377197265625, 0.0032634735107421875, -0.006870269775390625, -0.04339599609375, 0.0063323974609375, -0.0138397216796875, -0.0247039794921875, 0.01739501953125, 0.017364501953125, 0.01177978515625, -0.01480865478515625, 0.022186279296875, -0.049530029296875, 0.0079345703125, 0.032318115234375, 0.040985107421875, 0.0298004150390625, -0.003681182861328125, -0.0205230712890625, 0.0011262893676757812, 0.041656494140625, -0.017578125, 0.04144287109375, -0.018829345703125, 0.034149169921875, 0.018707275390625, 0.0188446044921875, 0.0567626953125, -0.030364990234375, 0.007526397705078125, 0.0038776397705078125, -0.027191162109375, 0.031097412109375, 0.01117706298828125, 0.042449951171875, -0.0008940696716308594, 0.011962890625, -0.01187896728515625, 0.0249481201171875, -0.0194549560546875, -0.00945281982421875, 0.01169586181640625, -0.0198211669921875, -0.004741668701171875, -0.00214385986328125, -0.0012302398681640625, 0.01268768310546875, 0.004306793212890625, -0.032012939453125, 0.0096588134765625, 0.007152557373046875, 0.00006085634231567383, 0.004528045654296875, 0.0220489501953125, -0.0081634521484375, 0.016357421875, -0.0084381103515625, 0.023681640625, 0.002109527587890625, -0.0006551742553710938, -0.0213623046875, 0.045196533203125, -0.011871337890625, 0.0125274658203125, 0.0001914501190185547, 0.051910400390625, -0.043914794921875, 0.009490966796875, -0.0809326171875, -0.1112060546875, 0.0199127197265625, 0.06378173828125, 0.034149169921875, 0.037506103515625, 0.06243896484375, 0.01326751708984375, -0.07781982421875, 0.005954742431640625, 0.042236328125, -0.04132080078125, 0.0113525390625, -0.0078582763671875, -0.037689208984375, 0.0022754669189453125, -0.03564453125, -0.0250701904296875, -0.00847625732421875, 0.038909912109375, -0.00104522705078125, 0.0301055908203125, 0.0012903213500976562, -0.026458740234375, -0.007091522216796875, -0.01290130615234375, 0.038604736328125, 0.01447296142578125, -0.03509521484375, -0.0221405029296875, -0.006145477294921875, 0.036468505859375, -0.0223541259765625, 0.016571044921875, 0.031097412109375, 0.00856781005859375, -0.017791748046875, 0.017791748046875, 0.0196685791015625, -0.03350830078125, -0.019317626953125, 0.001132965087890625, 0.04400634765625, -0.00262451171875, -0.0555419921875, -0.03271484375, -0.0231781005859375, 0.057647705078125, 0.0109405517578125, 0.1181640625, -0.037933349609375, 0.02777099609375, -0.0013437271118164062, -0.0094451904296875, 0.01190948486328125, 0.0142364501953125, -0.0313720703125, 0.01500701904296875, 0.01102447509765625, -0.012939453125, -0.0108642578125, 0.038726806640625, 0.0205230712890625, -0.020751953125, 0.025299072265625, -0.006832122802734375, -0.0028858184814453125, -0.00044226646423339844, -0.042938232421875, -0.036895751953125, -0.0318603515625, -0.044158935546875, -0.0106201171875, 0.032440185546875, -0.007080078125, -0.049957275390625, 0.044342041015625, 0.042938232421875, 0.01465606689453125, 0.0306396484375, -0.013916015625, 0.0631103515625, 0.04681396484375, -0.0304718017578125, -0.055908203125, 0.02783203125, -0.000408172607421875, -0.00630950927734375, 0.00943756103515625, 0.037353515625, 0.05035400390625, -0.10198974609375, -0.01548004150390625, 0.023345947265625, 0.00949859619140625, -0.0142822265625, -0.0032634735107421875, -0.001800537109375, -0.0259552001953125, -0.0153656005859375, 0.0022258758544921875, -0.01248931884765625, -0.0095367431640625, -0.02850341796875, 0.02276611328125, -0.01513671875, -0.0087738037109375, -0.04669189453125, -0.02142333984375, 0.061767578125, 0.035003662109375, -0.0987548828125, 0.0389404296875, -0.0227508544921875, 0.0209808349609375, 0.0235748291015625, 0.0156097412109375, -0.04498291015625, -0.0146484375, -0.029937744140625, -0.07568359375, -0.07122802734375, 0.07427978515625, -0.0689697265625, -0.01036834716796875, 0.0079498291015625, -0.006740570068359375, 0.01041412353515625, -0.02191162109375, 0.005916595458984375, 0.0239715576171875, 0.0007467269897460938, -0.01617431640625, 0.00250244140625, 0.003231048583984375, -0.012451171875, -0.032073974609375, 0.00542449951171875, -0.040374755859375, -0.0145416259765625, 0.0280609130859375, -0.005672454833984375, 0.01258087158203125, -0.0249176025390625, -0.04022216796875, -0.00780487060546875, 0.027099609375, -0.038665771484375, -0.03863525390625, -0.0382080078125, -0.0122833251953125, 0.040252685546875, -0.006526947021484375, -0.0192718505859375, -0.0221405029296875, 0.059326171875, 0.0024566650390625, 0.0238494873046875, 0.0100555419921875, -0.005084991455078125, 0.0161895751953125, 0.018829345703125, 0.021636962890625, -0.0233612060546875, 0.04327392578125, -0.0188446044921875, 0.06878662109375, 0.07318115234375, 0.0010166168212890625, 0.0948486328125, 0.015045166015625, -0.07135009765625, 0.01446533203125, 0.0211334228515625, -0.0606689453125, -0.0098876953125, 0.06646728515625, 0.06341552734375, 0.035369873046875, -0.02398681640625, 0.0209197998046875, -0.0163116455078125, 0.0010900497436523438, 0.00616455078125, 0.005016326904296875, -0.0286865234375, -0.010406494140625, 0.0140228271484375, -0.021942138671875, -0.004985809326171875, -0.01117706298828125, -0.043731689453125, 0.0017671585083007812, -0.024627685546875, -0.0181884765625, -0.0048980712890625, -0.0014467239379882812, 0.055511474609375, -0.03369140625, 0.0045166015625, -0.0195159912109375, 0.01611328125, 0.0121917724609375, -0.0247344970703125, -0.025482177734375, 0.01293182373046875, -0.015899658203125, 0.053558349609375, -0.00009196996688842773, -0.0143890380859375, -0.04486083984375, 0.0243072509765625, 0.01617431640625, 0.00412750244140625, -0.003753662109375, -0.0027561187744140625, 0.007755279541015625, 0.0003485679626464844, -0.01082611083984375, 0.019805908203125, -0.0227508544921875, -0.02105712890625, -0.034423828125, 0.02703857421875, -0.023895263671875, -0.005161285400390625, 0.021270751953125, -0.03369140625, 0.0015058517456054688, 0.00637054443359375, 0.0017681121826171875, -0.06158447265625, 0.0260009765625, 0.00595855712890625, 0.009857177734375, 0.024871826171875 ]
08ede63218b588683edf43f14ad1367cc4383e20
Wordpress Stackexchange Q: WordPress settings API error when checkbox unchecked I am trying to creating some custom options for a template I am developing but I am getting an error when the checkbox (Line 130) is unchecked: Warning: Illegal string offset 'show_admin_dev' in E:\composite-cms\WordPress-Settings-Sandbox-master\lib\admin\pages\dev-page.php on line 11 This is the line that seems to be throwing the error: if ( $options['show_admin_dev'] == 1 ) The entire code can be found on GitHub. A: Your problem is that you haven't included a sanitization function as the third parameter to register_settings on line 111. When no sanitization provided WordPress deletes the value of the option and creates a new one based only on what is passed in $_POST. Since unchecked checkboxes are not sent by the browser at all you end up with $options['show_admin_dev'] being not set. You should try to add sanitization which adds the value if it is not in the option register_setting( 'ccms_developer_options', 'ccms_developer_options', 'ccms_developer_sanit' ); function ccms_developer_sanit($newval) { if (!isset($newval['show_admin_dev'])) $newval['show_admin_dev'] = 0; return $newval; }
Q: WordPress settings API error when checkbox unchecked I am trying to creating some custom options for a template I am developing but I am getting an error when the checkbox (Line 130) is unchecked: Warning: Illegal string offset 'show_admin_dev' in E:\composite-cms\WordPress-Settings-Sandbox-master\lib\admin\pages\dev-page.php on line 11 This is the line that seems to be throwing the error: if ( $options['show_admin_dev'] == 1 ) The entire code can be found on GitHub. A: Your problem is that you haven't included a sanitization function as the third parameter to register_settings on line 111. When no sanitization provided WordPress deletes the value of the option and creates a new one based only on what is passed in $_POST. Since unchecked checkboxes are not sent by the browser at all you end up with $options['show_admin_dev'] being not set. You should try to add sanitization which adds the value if it is not in the option register_setting( 'ccms_developer_options', 'ccms_developer_options', 'ccms_developer_sanit' ); function ccms_developer_sanit($newval) { if (!isset($newval['show_admin_dev'])) $newval['show_admin_dev'] = 0; return $newval; } A: It appears that $options['show_admin_dev'] is actually a string, not an integer. You're trying to compare a string to an integer, which really annoys newer versions of PHP. When setting the default option (line 69), you have show_admin_dev set to '0'. Removing the quotes around this should prevent the error. You can also convert $options['show_admin_dev'] to an integer in the comparison using the intval() function: if ( intval( $options['show_admin_dev'] ) == 1 )
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:427165", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77347" }
[ 0.054107666015625, 0.0191192626953125, 0.026092529296875, -0.059661865234375, -0.004608154296875, -0.0085601806640625, -0.046356201171875, -0.0465087890625, 0.0242767333984375, 0.0192718505859375, -0.0091400146484375, -0.0165557861328125, -0.02679443359375, -0.037689208984375, -0.0306549072265625, -0.031402587890625, 0.01175689697265625, -0.0012712478637695312, 0.007389068603515625, -0.041168212890625, 0.02386474609375, -0.0391845703125, -0.0119476318359375, 0.0006194114685058594, -0.002407073974609375, -0.0177154541015625, 0.0198211669921875, -0.052978515625, -0.0202178955078125, -0.0557861328125, -0.0147705078125, 0.0657958984375, 0.037872314453125, 0.00229644775390625, -0.025238037109375, 0.03143310546875, 0.01467132568359375, -0.006275177001953125, -0.0014867782592773438, 0.02008056640625, 0.0197296142578125, -0.0175018310546875, 0.001987457275390625, -0.018524169921875, -0.0030574798583984375, -0.030364990234375, 0.02545166015625, -0.017730712890625, -0.003398895263671875, -0.002674102783203125, 0.007511138916015625, -0.0498046875, 0.0234222412109375, 0.0012731552124023438, -0.0227508544921875, -0.019989013671875, -0.00118255615234375, -0.035003662109375, 0.0195159912109375, 0.060760498046875, 0.00882720947265625, 0.0138702392578125, -0.0052490234375, -0.05767822265625, 0.03582763671875, -0.007282257080078125, 0.060638427734375, 0.030731201171875, -0.044769287109375, 0.0173187255859375, 0.0202178955078125, -0.00881195068359375, 0.0164947509765625, -0.0197601318359375, -0.040191650390625, -0.01021575927734375, -0.0013675689697265625, -0.0157012939453125, 0.0235595703125, -0.0002837181091308594, 0.020111083984375, 0.0287017822265625, -0.01439666748046875, -0.007495880126953125, 0.0199127197265625, 0.034881591796875, -0.0104827880859375, -0.03472900390625, -0.00765228271484375, -0.0009279251098632812, -0.01509857177734375, -0.0213470458984375, 0.039276123046875, -0.012908935546875, -0.0162353515625, -0.035614013671875, 0.05633544921875, 0.10650634765625, -0.00583648681640625, 0.0050811767578125, -0.002414703369140625, -0.0287322998046875, -0.007381439208984375, -0.04351806640625, 0.0077056884765625, 0.03399658203125, -0.018585205078125, -0.04644775390625, 0.0277252197265625, 0.01959228515625, 0.0029735565185546875, -0.00406646728515625, -0.04595947265625, -0.0179443359375, -0.018768310546875, 0.0032749176025390625, -0.051025390625, -0.020538330078125, -0.017730712890625, -0.031707763671875, 0.0074462890625, 0.0310516357421875, 0.0119781494140625, -0.016143798828125, -0.018707275390625, -0.024658203125, -0.01824951171875, -0.030853271484375, -0.0290069580078125, 0.019866943359375, -0.02239990234375, -0.0112762451171875, 0.018218994140625, 0.06561279296875, 0.026519775390625, -0.0200958251953125, 0.0239410400390625, -0.0020008087158203125, -0.0012578964233398438, 0.02471923828125, 0.01336669921875, -0.02716064453125, 0.0103759765625, 0.01369476318359375, 0.00994873046875, 0.05511474609375, 0.036041259765625, -0.01190185546875, -0.0234527587890625, -0.0460205078125, -0.047760009765625, 0.030426025390625, 0.01715087890625, -0.020355224609375, 0.0025844573974609375, -0.0128631591796875, -0.01262664794921875, -0.0087432861328125, -0.017791748046875, -0.01541900634765625, -0.0021686553955078125, 0.0123443603515625, 0.035491943359375, -0.03997802734375, -0.036102294921875, -0.0165252685546875, -0.0302886962890625, -0.013336181640625, 0.0294036865234375, 0.059356689453125, 0.043182373046875, -0.042449951171875, -0.0236053466796875, 0.013641357421875, -0.00687408447265625, 0.0228271484375, -0.0021343231201171875, 0.01497650146484375, 0.055999755859375, 0.002696990966796875, -0.01021575927734375, -0.034942626953125, 0.075439453125, -0.01806640625, -0.053466796875, 0.015777587890625, 0.010589599609375, 0.00772857666015625, 0.012451171875, -0.013824462890625, 0.067626953125, 0.042938232421875, 0.00030994415283203125, 0.0178985595703125, -0.00630950927734375, -0.047607421875, 0.01502227783203125, -0.0096282958984375, -0.0009751319885253906, 0.0188446044921875, 0.01044464111328125, 0.01151275634765625, 0.0101318359375, 0.002681732177734375, -0.021636962890625, 0.01317596435546875, -0.01904296875, 0.0263671875, -0.0149688720703125, 0.0157470703125, 0.0128326416015625, -0.0232696533203125, -0.0247344970703125, 0.029510498046875, 0.019775390625, 0.0033721923828125, 0.01169586181640625, 0.075439453125, -0.01503753662109375, 0.0225830078125, -0.01666259765625, -0.050079345703125, 0.0128173828125, 0.0306549072265625, 0.0223236083984375, 0.01259613037109375, -0.00661468505859375, 0.0119171142578125, 0.068359375, -0.00263214111328125, 0.08758544921875, -0.01251983642578125, 0.013580322265625, -0.0146026611328125, -0.033355712890625, 0.00748443603515625, -0.022247314453125, -0.056976318359375, -0.00951385498046875, 0.062408447265625, 0.0285186767578125, 0.044464111328125, -0.012969970703125, -0.0068511962890625, 0.10382080078125, -0.035888671875, -0.0266265869140625, 0.0016908645629882812, -0.024993896484375, -0.0601806640625, -0.0035991668701171875, -0.031829833984375, 0.039215087890625, -0.0306549072265625, 0.00760650634765625, 0.017822265625, -0.07598876953125, -0.0377197265625, 0.00588226318359375, -0.04461669921875, 0.03106689453125, -0.05877685546875, -0.0099029541015625, -0.0170135498046875, -0.0010614395141601562, -0.008514404296875, -0.01146697998046875, -0.022491455078125, -0.0181732177734375, -0.007259368896484375, 0.0240478515625, -0.056182861328125, -0.01323699951171875, -0.032806396484375, 0.02203369140625, -0.013519287109375, -0.057220458984375, 0.0177001953125, 0.045928955078125, -0.01534271240234375, -0.02813720703125, 0.00908660888671875, -0.0182037353515625, -0.003093719482421875, 0.001819610595703125, -0.007457733154296875, 0.01042938232421875, -0.0196380615234375, 0.00971221923828125, -0.0238800048828125, 0.037994384765625, -0.004940032958984375, -0.00860595703125, 0.01445770263671875, -0.0160980224609375, -0.038604736328125, 0.026336669921875, -0.0115509033203125, 0.0035533905029296875, 0.0004911422729492188, 0.05413818359375, 0.055877685546875, 0.0080718994140625, 0.02587890625, -0.01605224609375, 0.01476287841796875, -0.023162841796875, 0.02984619140625, -0.006153106689453125, -0.072509765625, 0.003055572509765625, -0.00478363037109375, 0.020355224609375, 0.01617431640625, 0.017242431640625, -0.0244598388671875, -0.006855010986328125, 0.00850677490234375, -0.021270751953125, -0.0323486328125, -0.0145263671875, -0.040435791015625, 0.0103607177734375, -0.00225067138671875, -0.0118560791015625, -0.00656890869140625, 0.004314422607421875, 0.012939453125, 0.01995849609375, -0.0362548828125, -0.0267181396484375, -0.0261383056640625, -0.055938720703125, -0.03692626953125, 0.005352020263671875, -0.01398468017578125, 0.0005230903625488281, 0.068603515625, 0.01001739501953125, -0.0888671875, 0.0010986328125, 0.0008420944213867188, 0.012420654296875, 0.0487060546875, -0.01507568359375, 0.008544921875, 0.0231781005859375, 0.01763916015625, -0.04315185546875, 0.0017423629760742188, 0.0100250244140625, -0.04962158203125, -0.014923095703125, -0.054656982421875, -0.002483367919921875, -0.036895751953125, 0.00789642333984375, -0.00322723388671875, 0.0046844482421875, -0.0218963623046875, -0.021270751953125, 0.01788330078125, -0.039703369140625, 0.039337158203125, 0.0309906005859375, -0.036163330078125, 0.00885772705078125, 0.00959014892578125, 0.04156494140625, 0.0301971435546875, 0.035247802734375, -0.005832672119140625, 0.01247406005859375, 0.00304412841796875, 0.0217132568359375, -0.041046142578125, 0.025299072265625, -0.031036376953125, -0.0312042236328125, -0.010467529296875, -0.032501220703125, -0.0167999267578125, -0.00952911376953125, -0.02667236328125, -0.038543701171875, 0.05255126953125, -0.020599365234375, -0.0186309814453125, -0.0108642578125, -0.02801513671875, 0.0037250518798828125, 0.07183837890625, -0.06689453125, 0.00788116455078125, -0.004642486572265625, 0.005939483642578125, -0.033233642578125, -0.01470947265625, -0.06396484375, 0.003818511962890625, -0.0965576171875, -0.0015535354614257812, -0.018768310546875, -0.03607177734375, -0.02142333984375, 0.0246124267578125, -0.037689208984375, -0.045654296875, 0.0545654296875, -0.04010009765625, 0.0082855224609375, -0.0008177757263183594, 0.00946044921875, -0.0477294921875, -0.0263214111328125, -0.006717681884765625, -0.10748291015625, -0.037811279296875, -0.00443267822265625, 0.100830078125, 0.0006556510925292969, 0.003444671630859375, -0.037841796875, 0.054229736328125, -0.033599853515625, -0.024383544921875, -0.01947021484375, 0.0156707763671875, -0.04254150390625, 0.031982421875, -0.02001953125, -0.001667022705078125, -0.026031494140625, -0.0078125, -0.0247955322265625, 0.0201263427734375, -0.0165863037109375, -0.025238037109375, 0.0034923553466796875, -0.0265045166015625, -0.05255126953125, -0.0394287109375, -0.0107574462890625, 0.01387786865234375, -0.0245819091796875, 0.0092926025390625, -0.045196533203125, -0.041229248046875, 0.043121337890625, -0.028472900390625, -0.01457977294921875, -0.00505828857421875, 0.087158203125, 0.0268402099609375, -0.0163116455078125, 0.0244293212890625, -0.033538818359375, 0.017608642578125, 0.014404296875, 0.0304412841796875, 0.01241302490234375, -0.0256195068359375, 0.047332763671875, -0.0174407958984375, -0.021484375, -0.001293182373046875, 0.037841796875, 0.017974853515625, -0.008697509765625, 0.0015974044799804688, 0.00606536865234375, -0.0118255615234375, -0.01605224609375, -0.00931549072265625, 0.01244354248046875, -0.01788330078125, 0.0155181884765625, 0.0006170272827148438, 0.03399658203125, -0.01031494140625, -0.031402587890625, 0.0195465087890625, -0.0032901763916015625, 0.050323486328125, 0.034088134765625, -0.006992340087890625, 0.01169586181640625, -0.021514892578125, -0.020965576171875, -0.036651611328125, 0.00714111328125, 0.00832366943359375, 0.031524658203125, -0.033172607421875, -0.010894775390625, -0.04241943359375, -0.0141143798828125, 0.03424072265625, -0.006168365478515625, -0.062255859375, 0.016937255859375, 0.00017499923706054688, -0.003604888916015625, 0.0194244384765625, 0.0260772705078125, 0.048797607421875, 0.055816650390625, -0.0028171539306640625, -0.00716400146484375, 0.0235443115234375, 0.041046142578125, -0.03265380859375, -0.031402587890625, 0.01082611083984375, -0.01328277587890625, 0.0277252197265625, 0.031341552734375, 0.04425048828125, 0.020843505859375, -0.045654296875, 0.037078857421875, 0.00820159912109375, 0.028289794921875, 0.0170440673828125, -0.003101348876953125, -0.005191802978515625, 0.011016845703125, -0.014373779296875, -0.0160369873046875, -0.005016326904296875, -0.0139923095703125, 0.013031005859375, 0.04547119140625, 0.0280609130859375, 0.015777587890625, 0.00714874267578125, -0.01326751708984375, 0.04046630859375, -0.0016651153564453125, -0.02520751953125, -0.050201416015625, -0.01343536376953125, 0.04150390625, 0.004962921142578125, -0.0214080810546875, 0.017974853515625, -0.0557861328125, -0.004283905029296875, 0.0204925537109375, -0.0204010009765625, -0.00817108154296875, -0.004261016845703125, -0.03839111328125, -0.0254364013671875, 0.006359100341796875, -0.0455322265625, -0.0203704833984375, 0.004344940185546875, -0.01274871826171875, -0.015350341796875, -0.0226593017578125, 0.0072479248046875, 0.0008678436279296875, -0.00553131103515625, 0.02447509765625, 0.005588531494140625, 0.056610107421875, 0.0213775634765625, 0.020416259765625, 0.001552581787109375, -0.037841796875, -0.04620361328125, -0.03131103515625, -0.00563812255859375, -0.054534912109375, -0.0021610260009765625, 0.0029735565185546875, 0.024169921875, -0.038177490234375, -0.044158935546875, 0.013031005859375, 0.0298309326171875, 0.01910400390625, 0.0577392578125, -0.00688934326171875, 0.036895751953125, -0.03179931640625, 0.0149993896484375, -0.01027679443359375, -0.0093994140625, 0.01561737060546875, -0.006107330322265625, -0.011566162109375, 0.01294708251953125, -0.0157012939453125, 0.0175628662109375, 0.0238494873046875, 0.0017328262329101562, 0.04229736328125, -0.00946044921875, 0.032196044921875, 0.0092010498046875, 0.0142669677734375, -0.011016845703125, -0.03570556640625, -0.0009603500366210938, 0.019683837890625, 0.01904296875, -0.018707275390625, 0.0019512176513671875, 0.0258331298828125, 0.005634307861328125, 0.0022716522216796875, -0.017303466796875, 0.024444580078125, -0.006103515625, -0.060577392578125, 0.0731201171875, 0.05523681640625, 0.0036144256591796875, 0.0364990234375, 0.00039076805114746094, 0.0201568603515625, 0.0110931396484375, -0.006195068359375, -0.0300750732421875, -0.01273345947265625, 0.012237548828125, 0.00586700439453125, 0.004215240478515625, 0.0225677490234375, -0.01050567626953125, 0.004123687744140625, 0.075439453125, 0.0307769775390625, -0.109375, -0.00324249267578125, 0.00949859619140625, 0.003612518310546875, 0.01378631591796875, -0.027801513671875, 0.01560211181640625, -0.059814453125, 0.03436279296875, 0.0072479248046875, -0.0187530517578125, -0.01084136962890625, -0.0521240234375, -0.0036411285400390625, -0.0244598388671875, 0.0265350341796875, 0.004123687744140625, -0.0101776123046875, 0.03363037109375, 0.0113525390625, 0.01154327392578125, 0.03656005859375, 0.0019969940185546875, -0.0136871337890625, -0.057586669921875, -0.045166015625, -0.04315185546875, -0.02362060546875, -0.0662841796875, -0.01506805419921875, -0.001842498779296875, 0.0364990234375, 0.00771331787109375, -0.0215301513671875, 0.01293182373046875, -0.0230560302734375, 0.0306396484375, 0.013946533203125, -0.013763427734375, 0.01517486572265625, 0.062347412109375, 0.0007867813110351562, 0.0187225341796875, 0.037078857421875, -0.040618896484375, 0.0014934539794921875, 0.05853271484375, 0.057037353515625, 0.0240020751953125, -0.03326416015625, 0.079345703125, -0.0020961761474609375, -0.06317138671875, -0.0011930465698242188, 0.0262451171875, -0.0721435546875, -0.06719970703125, 0.01361083984375, -0.0611572265625, -0.00384521484375, -0.0037364959716796875, 0.014251708984375, 0.05706787109375, 0.0152587890625, -0.040802001953125, 0.052215576171875, 0.0439453125, -0.06964111328125, 0.01104736328125, -0.02734375, 0.0234222412109375, 0.02764892578125, -0.01187896728515625, -0.05548095703125, -0.03326416015625, -0.0255584716796875, 0.0576171875, 0.03814697265625, 0.00919342041015625, 0.00986480712890625, 0.0138092041015625, 0.03546142578125, -0.039154052734375, -0.06298828125, 0.0379638671875, 0.0181732177734375, 0.0243377685546875, 0.02734375, -0.01377105712890625, 0.02716064453125, -0.012176513671875, -0.0177459716796875, 0.0305023193359375, 0.0038299560546875, 0.00543975830078125, -0.034942626953125, -0.01824951171875, -0.00337982177734375, -0.033843994140625, -0.007152557373046875, -0.00960540771484375, -0.0197906494140625, -0.016571044921875, -0.029266357421875, -0.03045654296875, -0.0018253326416015625, -0.0198211669921875, 0.020965576171875, -0.0010595321655273438, -0.0135498046875, -0.0164031982421875, 0.0028324127197265625, -0.042510986328125, 0.01181793212890625, -0.000507354736328125, 0.043121337890625, -0.03533935546875, -0.00414276123046875, 0.0208892822265625, 0.027496337890625, 0.033599853515625, 0.04583740234375, -0.00701141357421875, -0.01319122314453125, -0.0170135498046875, -0.04071044921875, 0.0113525390625, 0.033172607421875, 0.00634765625, 0.003856658935546875, 0.0118560791015625, 0.033843994140625, 0.0789794921875, -0.048736572265625, 0.028289794921875, 0.03814697265625, -0.016357421875, -0.00861358642578125, 0.00893402099609375, -0.038787841796875, 0.035125732421875, -0.07421875, 0.018890380859375, 0.03570556640625, 0.11224365234375, 0.047943115234375, 0.032012939453125, -0.0135498046875, -0.06610107421875, -0.032958984375, 0.029266357421875, 0.030731201171875, 0.020965576171875, -0.024261474609375, 0.0034999847412109375, 0.039581298828125, 0.025726318359375, 0.00753021240234375, -0.006526947021484375, 0.0245513916015625, 0.0142822265625, -0.015045166015625, -0.0220489501953125, 0.0904541015625, -0.0140533447265625, -0.0263671875, -0.007419586181640625, -0.0259857177734375, 0.023468017578125, -0.0105438232421875, 0.008392333984375, -0.0012664794921875, 0.03350830078125, -0.031890869140625, 0.0169677734375, -0.0008969306945800781, -0.0218353271484375, -0.01183319091796875, -0.0091552734375, 0.0222320556640625, -0.0007982254028320312, 0.042510986328125, 0.027435302734375, 0.0135955810546875, 0.001956939697265625, -0.0288238525390625, 0.0086822509765625, -0.0169219970703125, 0.064697265625, 0.00350189208984375, -0.002902984619140625, -0.041229248046875, 0.035858154296875, 0.005199432373046875, -0.00763702392578125, 0.0306243896484375, 0.007556915283203125, -0.0169219970703125, -0.01806640625, 0.0023021697998046875, 0.0308074951171875, -0.0214691162109375, 0.0970458984375, -0.041259765625, 0.00403594970703125, -0.0030307769775390625, 0.039947509765625, -0.044677734375, -0.0211181640625, 0.02880859375, 0.012725830078125, 0.0193023681640625, 0.000194549560546875, 0.026031494140625, 0.05096435546875, 0.0408935546875, -0.00855255126953125, 0.0592041015625, -0.01555633544921875, 0.004489898681640625, -0.0484619140625, 0.053253173828125, -0.02398681640625, -0.06756591796875, -0.04608154296875, 0.04376220703125, -0.00109100341796875, 0.056732177734375, -0.036102294921875, 0.0011987686157226562, 0.00615692138671875, -0.0183563232421875, -0.0030918121337890625, 0.0062103271484375, -0.000011026859283447266, 0.032379150390625, 0.004352569580078125, -0.01409149169921875, -0.016815185546875, -0.00559234619140625, -0.029815673828125, 0.013336181640625, -0.030487060546875, -0.01001739501953125, 0.00670623779296875, -0.0299072265625, -0.001140594482421875, 0.01280975341796875, -0.035614013671875, 0.003749847412109375, 0.01540374755859375, -0.015625, -0.0030422210693359375, 0.007343292236328125, -0.0369873046875, -0.0369873046875, -0.005329132080078125, -0.004100799560546875, -0.0105438232421875, -0.040496826171875, -0.0132293701171875, 0.014984130859375, 0.028076171875, -0.0023708343505859375, -0.0555419921875, -0.009490966796875, -0.0256195068359375, 0.09783935546875, -0.034454345703125, 0.03546142578125, -0.0171051025390625, 0.007030487060546875, -0.0242767333984375, -0.025177001953125, -0.0044097900390625, 0.026580810546875, -0.007602691650390625, -0.0105438232421875, -0.008941650390625, 0.01538848876953125, -0.0305023193359375, 0.0130615234375, -0.017333984375, 0.0516357421875, -0.01459503173828125, 0.016510009765625, 0.0236968994140625, 0.006542205810546875, -0.058837890625, -0.138671875, 0.005336761474609375, -0.0828857421875, 0.00701141357421875, 0.0117645263671875, -0.01523590087890625, 0.0399169921875, -0.0252838134765625, -0.10516357421875, -0.039276123046875, 0.00826263427734375, -0.049346923828125, -0.0156402587890625, 0.009033203125, -0.019012451171875, 0.058868408203125, -0.0014257431030273438, -0.01406097412109375, 0.01284027099609375, 0.0233001708984375, -0.004940032958984375, 0.0021762847900390625, 0.040252685546875, -0.0270538330078125, -0.0357666015625, -0.022918701171875, -0.0169677734375, -0.025360107421875, 0.00789642333984375, -0.004810333251953125, 0.01052093505859375, 0.051971435546875, 0.004474639892578125, -0.0928955078125, -0.026214599609375, -0.06756591796875, -0.0323486328125, -0.0338134765625, -0.005504608154296875, -0.01458740234375, 0.04803466796875, 0.048248291015625, 0.00579833984375, -0.021148681640625, -0.048980712890625, -0.052764892578125, 0.004024505615234375, -0.034454345703125, 0.0149688720703125, -0.09332275390625, -0.0145721435546875, 0.01343536376953125, 0.00823211669921875, 0.0121002197265625, 0.01378631591796875, 0.00209808349609375, -0.0087432861328125, 0.0075531005859375, -0.0384521484375, -0.0330810546875, -0.05706787109375, -0.007640838623046875, -0.00572967529296875, -0.019378662109375, -0.0095977783203125, 0.032012939453125, -0.0241241455078125, 0.04437255859375, -0.01291656494140625, -0.00662994384765625, -0.027587890625, 0.004589080810546875, -0.009979248046875, 0.0694580078125, -0.0263671875, -0.0273895263671875, 0.01552581787109375, -0.00978851318359375, -0.0272064208984375, -0.041961669921875, 0.0151824951171875, 0.03369140625, -0.037261962890625, 0.0711669921875, -0.0190582275390625, 0.033660888671875, -0.01995849609375, 0.037017822265625, 0.008209228515625, -0.00634765625, 0.036865234375, -0.00913238525390625, -0.005268096923828125, 0.0038852691650390625, -0.003021240234375, -0.055511474609375, 0.03851318359375, 0.0369873046875, 0.00623321533203125, 0.034332275390625 ]
14a585e2ba8a6def732fa10e7c04a3b40acef12b
Wordpress Stackexchange Q: How does admin-ajax.php work? We are having some issues with an external developer. We want to limit access to the wp-admin site to internal access only (via VPN). Simply so it will not be attacked by external users. We can enumerate the admins from the site and do not want them to be phished. Our developer is saying we can't do that because the site needs to have the admin page accessible externally so the page will function. specifically the admin-ajax page. What does the admin-ajax.php page do? It is located in the admin section of WordPress. Is it accessed unauthenticated by end users? Is it an unsafe practice to have this available to external users? A: For unauthenticated and untrusted users, you'll want to make two specific exceptions to your VPN / Firewall / Apache .htaccess, which are: * *example.com/wp-admin/admin-post.php *example.com/wp-admin/admin-ajax.php These are two auto-magic endpoints used by a lot by both internal WP and also various plugins. Here's some explanation of what admin-post.php does: * *https://www.sitepoint.com/handling-post-requests-the-wordpress-way/ admin-ajax.php works in a very similar way, and a helpful explanation is here.
Q: How does admin-ajax.php work? We are having some issues with an external developer. We want to limit access to the wp-admin site to internal access only (via VPN). Simply so it will not be attacked by external users. We can enumerate the admins from the site and do not want them to be phished. Our developer is saying we can't do that because the site needs to have the admin page accessible externally so the page will function. specifically the admin-ajax page. What does the admin-ajax.php page do? It is located in the admin section of WordPress. Is it accessed unauthenticated by end users? Is it an unsafe practice to have this available to external users? A: For unauthenticated and untrusted users, you'll want to make two specific exceptions to your VPN / Firewall / Apache .htaccess, which are: * *example.com/wp-admin/admin-post.php *example.com/wp-admin/admin-ajax.php These are two auto-magic endpoints used by a lot by both internal WP and also various plugins. Here's some explanation of what admin-post.php does: * *https://www.sitepoint.com/handling-post-requests-the-wordpress-way/ admin-ajax.php works in a very similar way, and a helpful explanation is here. A: If you want to limit access to the WP backend (ex: wp-admin), just use a .htaccess rule on the wp-admin directory. Check out this article for a general overview: Password Protect a Directory Using .htaccess Also check out this topic for your specific case: Password protecting /wp-admin/ A: admin-ajax.php is part of the WordPress AJAX API, and yes, it does handle requests from both backend and front. Try not to worry about the fact that it is in wp-admin. I think that is a strange place for it too, but it is not a security problem in itself. How this relates to "enumerate the admins", I don't know. A: My personal opinion is that this is a god awful idea. About two months ago our director of development insisted we do just this, much against the advice of the Dev team. It's a genuine nightmare and an incredible pain for us, not only does it kill ajax all together it presents so many administration issues for us. We have 40 regular staff and 4 devs trying to use the vpn at times and it just stutters, along with that all users now require two sets of passwords one for wp and one for vpn and that's not just a shared password it's individual ones, I mean how else would you do a security audit. It's hard enough to remember one secure password, let alone two. Add to the issue that a lot of people do not know how to use a vpn and often that just causes more issues. Ultimately it's a terrible idea and it's often put forward by management or higher who do not know or understand WordPress. They see it in a terrible light, that because it's open source it must also be a security issue, filled with easily tapped exploits and so on.... its getting old. WordPress is secure and sticking wp-admin behind a vpn is not only fear mongering it presents a nightmare for every member of the team Why is it that management types have no trust when it comes to WordPress, they seem to forget major sites use WordPress and don't use vpns, look at mashable for example. So to recap: Ajax won't work behind a vpn. Vpn is a terrible idea for reasons mentioned above WordPress is secure and will remain so if you keep it and plugins up to date. Listen to your Dev, you pay them for their expertise. I can promise you, that nothing undermines a working relationship like not putting your trust into an individual and having to check up on their knowledge. If you do go with vpn, be sure to buy enough user licenses.
wordpress
{ "language": "en", "length": 631, "provenance": "stackexchange_00019.jsonl.gz:427181", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77407" }
[ 0.09765625, -0.0239105224609375, 0.02301025390625, -0.053924560546875, 0.028717041015625, -0.031280517578125, 0.058380126953125, -0.01043701171875, -0.0196990966796875, 0.0170135498046875, -0.039886474609375, 0.020233154296875, -0.035369873046875, -0.01439666748046875, 0.006664276123046875, -0.052276611328125, 0.020294189453125, 0.01043701171875, 0.0184326171875, -0.005100250244140625, -0.007549285888671875, 0.00937652587890625, 0.002285003662109375, -0.005672454833984375, -0.022125244140625, 0.03094482421875, 0.04608154296875, -0.0285491943359375, -0.006595611572265625, -0.01013946533203125, -0.0015478134155273438, -0.0208892822265625, 0.014434814453125, 0.037384033203125, -0.04949951171875, -0.036376953125, -0.0194091796875, 0.0254974365234375, -0.0120086669921875, 0.022216796875, 0.025604248046875, -0.015289306640625, 0.033538818359375, 0.0308837890625, -0.00218963623046875, -0.004688262939453125, 0.015228271484375, -0.04168701171875, 0.0173187255859375, 0.010040283203125, -0.00634002685546875, 0.014404296875, 0.0107269287109375, 0.0192108154296875, -0.019775390625, -0.020263671875, 0.0140838623046875, -0.046478271484375, 0.06658935546875, 0.010345458984375, -0.058837890625, -0.08428955078125, 0.0300140380859375, -0.07769775390625, 0.005710601806640625, 0.0027179718017578125, 0.039825439453125, 0.022613525390625, -0.06671142578125, -0.0198974609375, 0.027923583984375, -0.016448974609375, -0.024505615234375, -0.01148223876953125, -0.021820068359375, -0.0167999267578125, 0.03143310546875, -0.028564453125, -0.0189666748046875, 0.0299835205078125, -0.0013227462768554688, 0.014556884765625, -0.033966064453125, -0.0167694091796875, 0.00640869140625, 0.014892578125, -0.0223541259765625, -0.031036376953125, -0.00934600830078125, -0.0199737548828125, -0.0175628662109375, -0.0303497314453125, -0.0162200927734375, 0.02069091796875, -0.005329132080078125, -0.00640106201171875, 0.0187835693359375, -0.01157379150390625, 0.00859832763671875, -0.01080322265625, 0.0109100341796875, -0.03985595703125, 0.013641357421875, -0.0016345977783203125, -0.0017271041870117188, 0.0173797607421875, 0.01214599609375, 0.009124755859375, 0.01439666748046875, 0.014892578125, -0.0193939208984375, 0.00713348388671875, 0.004077911376953125, -0.017364501953125, -0.003299713134765625, -0.00991058349609375, -0.0271148681640625, 0.0211944580078125, -0.004367828369140625, -0.004230499267578125, -0.0204010009765625, -0.004253387451171875, -0.0311737060546875, -0.02056884765625, 0.03936767578125, 0.00606536865234375, -0.0149383544921875, 0.0308380126953125, 0.02362060546875, 0.03985595703125, -0.041717529296875, 0.0014581680297851562, 0.06793212890625, 0.02105712890625, 0.0216064453125, -0.02593994140625, 0.0219268798828125, -0.0103607177734375, 0.0129547119140625, -0.0211334228515625, 0.048431396484375, -0.0360107421875, -0.035430908203125, 0.025054931640625, -0.0283660888671875, 0.01514434814453125, 0.0036792755126953125, 0.00380706787109375, 0.010101318359375, -0.0025997161865234375, -0.0458984375, -0.017425537109375, 0.0229034423828125, 0.033905029296875, 0.034210205078125, 0.034454345703125, 0.09521484375, -0.0145721435546875, -0.0638427734375, -0.022369384765625, 0.0153656005859375, 0.0176239013671875, 0.042572021484375, 0.04736328125, 0.024932861328125, -0.0031871795654296875, -0.04296875, -0.01007080078125, 0.0258636474609375, 0.0201873779296875, 0.035064697265625, -0.0096588134765625, -0.0066680908203125, 0.00788116455078125, 0.01079559326171875, -0.0028820037841796875, -0.02764892578125, 0.022308349609375, 0.0535888671875, -0.0186920166015625, -0.01216888427734375, -0.0168304443359375, 0.07244873046875, -0.0006504058837890625, -0.0157318115234375, 0.02398681640625, 0.01410675048828125, 0.040924072265625, -0.0113983154296875, 0.033233642578125, 0.0005307197570800781, 0.0252532958984375, 0.0205841064453125, 0.049285888671875, -0.02947998046875, -0.051483154296875, -0.04071044921875, 0.00848388671875, -0.053863525390625, 0.0035839080810546875, 0.0201568603515625, -0.005664825439453125, 0.0191802978515625, -0.0294952392578125, -0.03570556640625, -0.0032100677490234375, -0.006805419921875, 0.0328369140625, 0.041259765625, 0.01678466796875, 0.00160980224609375, 0.0233306884765625, -0.01226806640625, -0.040924072265625, -0.05316162109375, 0.00460052490234375, -0.031951904296875, 0.072021484375, -0.0087890625, 0.0811767578125, -0.026092529296875, -0.083984375, -0.01515960693359375, -0.029998779296875, 0.0243682861328125, 0.01467132568359375, -0.020965576171875, 0.0188446044921875, 0.04449462890625, 0.00830841064453125, 0.0340576171875, -0.01038360595703125, 0.0289764404296875, 0.021240234375, -0.041229248046875, -0.025726318359375, -0.03167724609375, -0.09173583984375, 0.004894256591796875, 0.0697021484375, 0.0305938720703125, 0.031585693359375, -0.016265869140625, 0.0168609619140625, 0.01971435546875, -0.10565185546875, -0.0294036865234375, 0.025146484375, -0.0258331298828125, -0.02099609375, -0.0034236907958984375, -0.028350830078125, 0.038177490234375, -0.0433349609375, -0.0322265625, 0.043853759765625, 0.00638580322265625, 0.0040435791015625, -0.022918701171875, -0.005504608154296875, 0.01399993896484375, -0.035186767578125, -0.031463623046875, -0.006183624267578125, 0.0235443115234375, -0.03814697265625, 0.040771484375, 0.03472900390625, 0.0167388916015625, -0.07501220703125, 0.007389068603515625, 0.03173828125, -0.006076812744140625, 0.0189361572265625, 0.04150390625, -0.028167724609375, -0.050689697265625, -0.0020046234130859375, 0.035186767578125, 0.01219940185546875, -0.0195465087890625, 0.03570556640625, -0.0159149169921875, -0.0157623291015625, -0.0181884765625, -0.036468505859375, 0.01480865478515625, 0.02032470703125, 0.026092529296875, -0.0017709732055664062, 0.01293182373046875, 0.008209228515625, -0.0168304443359375, 0.04119873046875, -0.007274627685546875, -0.027618408203125, -0.0205230712890625, -0.036102294921875, 0.035888671875, -0.0277099609375, 0.06549072265625, 0.07501220703125, 0.00836181640625, 0.016632080078125, 0.00824737548828125, -0.0232086181640625, -0.005146026611328125, 0.0350341796875, 0.0022830963134765625, -0.0175933837890625, -0.048858642578125, 0.004302978515625, 0.0135650634765625, 0.0146942138671875, -0.01062774658203125, -0.061431884765625, -0.0196990966796875, 0.008270263671875, -0.111328125, -0.07489013671875, -0.057159423828125, -0.0633544921875, 0.041778564453125, -0.0292205810546875, -0.011016845703125, 0.0036411285400390625, -0.00323486328125, 0.0183563232421875, -0.032684326171875, -0.0173492431640625, -0.0299224853515625, -0.06304931640625, -0.03875732421875, 0.0019369125366210938, -0.00800323486328125, -0.005279541015625, -0.004638671875, 0.053314208984375, -0.0172119140625, -0.08477783203125, -0.0369873046875, 0.041015625, -0.01500701904296875, -0.00939178466796875, 0.007778167724609375, -0.020751953125, -0.036590576171875, 0.01641845703125, -0.007419586181640625, -0.0298004150390625, 0.01068115234375, -0.034912109375, -0.016845703125, -0.0221405029296875, 0.017547607421875, -0.006832122802734375, 0.0009293556213378906, 0.01213836669921875, 0.0281829833984375, -0.0272064208984375, 0.004016876220703125, 0.0224761962890625, -0.01371002197265625, -0.0136260986328125, -0.01739501953125, -0.0333251953125, 0.046142578125, -0.0229034423828125, 0.042205810546875, 0.0106353759765625, -0.020263671875, 0.0025615692138671875, 0.0416259765625, 0.00553131103515625, 0.0399169921875, -0.016693115234375, 0.0017461776733398438, -0.024810791015625, 0.0053253173828125, -0.00766754150390625, -0.0134735107421875, -0.00804901123046875, 0.006927490234375, 0.0141448974609375, -0.049407958984375, 0.03851318359375, -0.0133209228515625, 0.0041046142578125, -0.0193939208984375, -0.021087646484375, -0.00858306884765625, 0.06109619140625, -0.0186004638671875, -0.00318145751953125, -0.018157958984375, 0.013031005859375, -0.06103515625, -0.05010986328125, -0.049163818359375, 0.0130157470703125, -0.050323486328125, -0.006938934326171875, 0.00797271728515625, -0.0267486572265625, -0.003833770751953125, 0.0271759033203125, -0.0357666015625, -0.016693115234375, 0.053436279296875, -0.0596923828125, 0.04150390625, -0.0214080810546875, 0.03900146484375, -0.0653076171875, -0.00311279296875, -0.0249786376953125, -0.051361083984375, -0.022308349609375, -0.0157470703125, 0.054595947265625, 0.00829315185546875, -0.005535125732421875, -0.01788330078125, 0.0167236328125, 0.00043773651123046875, 0.006046295166015625, -0.02838134765625, -0.01035308837890625, -0.0225067138671875, 0.0102386474609375, -0.0160064697265625, 0.0010061264038085938, -0.0133514404296875, 0.00019884109497070312, -0.021820068359375, -0.0189666748046875, -0.0241241455078125, -0.06146240234375, 0.0182647705078125, -0.03253173828125, -0.07354736328125, -0.04742431640625, -0.055633544921875, 0.00661468505859375, -0.0255584716796875, -0.0007882118225097656, -0.059417724609375, -0.0830078125, 0.0406494140625, 0.0009860992431640625, 0.018280029296875, -0.005741119384765625, 0.030609130859375, 0.000797271728515625, -0.0264892578125, -0.034759521484375, 0.0022068023681640625, 0.018829345703125, -0.02276611328125, 0.09637451171875, 0.03240966796875, 0.003025054931640625, 0.07586669921875, -0.0104522705078125, 0.03131103515625, -0.026519775390625, 0.0304107666015625, 0.0238189697265625, 0.0163726806640625, -0.0056915283203125, 0.036041259765625, -0.027679443359375, 0.00820159912109375, -0.018157958984375, -0.0169677734375, -0.0007777214050292969, 0.04107666015625, -0.036834716796875, 0.051849365234375, -0.018890380859375, -0.0141754150390625, 0.01418304443359375, -0.05108642578125, 0.036651611328125, 0.016021728515625, 0.0005736351013183594, -0.00298309326171875, 0.00806427001953125, 0.006656646728515625, 0.00919342041015625, 0.043548583984375, -0.004894256591796875, 0.016845703125, 0.0384521484375, 0.0013837814331054688, -0.0231170654296875, -0.01288604736328125, 0.050872802734375, -0.0087432861328125, -0.060699462890625, -0.021759033203125, 0.00762176513671875, 0.045440673828125, 0.030548095703125, -0.00905609130859375, -0.0030231475830078125, -0.007015228271484375, -0.023681640625, 0.015380859375, 0.041015625, -0.0460205078125, -0.00904083251953125, 0.050567626953125, 0.037841796875, 0.0029125213623046875, 0.0152587890625, 0.0731201171875, 0.05255126953125, 0.033477783203125, -0.043182373046875, 0.090087890625, 0.061309814453125, 0.031494140625, -0.00817108154296875, -0.0078887939453125, 0.0421142578125, -0.0269775390625, -0.01202392578125, -0.036468505859375, -0.0283355712890625, 0.0234527587890625, 0.035003662109375, 0.033721923828125, 0.021331787109375, -0.0222930908203125, 0.0015621185302734375, -0.0279693603515625, 0.051422119140625, 0.035736083984375, -0.041717529296875, -0.0182952880859375, 0.0084381103515625, 0.0247955322265625, -0.01044464111328125, -0.0103607177734375, 0.041015625, -0.0296783447265625, 0.019744873046875, -0.007732391357421875, 0.0041961669921875, -0.00942230224609375, -0.00786590576171875, 0.00931549072265625, -0.0073699951171875, -0.01788330078125, -0.02789306640625, -0.0216064453125, 0.0018634796142578125, 0.0133819580078125, 0.0178985595703125, 0.0020084381103515625, 0.0221710205078125, -0.0185546875, -0.0104522705078125, -0.0053863525390625, 0.0108642578125, 0.0268096923828125, 0.0005841255187988281, -0.06268310546875, -0.0174407958984375, -0.052398681640625, -0.0201416015625, 0.0022678375244140625, 0.01056671142578125, -0.02099609375, 0.0044403076171875, 0.0168304443359375, 0.00296783447265625, 0.004268646240234375, -0.004695892333984375, -0.022308349609375, 0.03228759765625, 0.0224456787109375, 0.03582763671875, -0.02740478515625, 0.1241455078125, -0.044097900390625, 0.06622314453125, -0.01385498046875, 0.043426513671875, -0.042022705078125, 0.022979736328125, 0.0185089111328125, -0.0562744140625, -0.0093994140625, -0.0099334716796875, -0.0124359130859375, -0.0286712646484375, -0.015777587890625, -0.0152740478515625, -0.01776123046875, -0.007587432861328125, -0.002613067626953125, -0.02215576171875, 0.02392578125, 0.0170135498046875, 0.01110076904296875, -0.005489349365234375, 0.0013885498046875, 0.062103271484375, -0.022186279296875, -0.06402587890625, 0.04290771484375, -0.005794525146484375, 0.0421142578125, 0.042724609375, -0.00510406494140625, 0.007778167724609375, 0.1005859375, 0.026611328125, 0.0753173828125, 0.050994873046875, 0.034149169921875, 0.041229248046875, -0.00428009033203125, -0.015655517578125, -0.0103302001953125, 0.044830322265625, 0.00673675537109375, -0.01036834716796875, 0.044403076171875, -0.018341064453125, 0.0015344619750976562, 0.053131103515625, 0.049530029296875, -0.073486328125, 0.0010728836059570312, -0.0112152099609375, -0.0192108154296875, 0.0002944469451904297, -0.00909423828125, -0.02459716796875, -0.04852294921875, 0.03729248046875, 0.0125579833984375, 0.00627899169921875, 0.0273284912109375, 0.0036106109619140625, 0.01043701171875, -0.00554656982421875, 0.06585693359375, 0.007293701171875, -0.0156097412109375, -0.01332855224609375, 0.0029277801513671875, 0.005962371826171875, -0.0235595703125, -0.0006046295166015625, -0.005298614501953125, -0.035736083984375, -0.061126708984375, -0.0294952392578125, -0.00506591796875, -0.01296234130859375, 0.01824951171875, 0.037353515625, 0.034637451171875, 0.05950927734375, -0.005588531494140625, 0.014678955078125, 0.008544921875, 0.0312042236328125, 0.00493621826171875, -0.040679931640625, -0.0045166015625, 0.01456451416015625, -0.05242919921875, 0.0109710693359375, -0.0042572021484375, -0.036712646484375, 0.0011138916015625, 0.005420684814453125, 0.06353759765625, -0.00792694091796875, -0.034393310546875, 0.02789306640625, -0.0244598388671875, -0.021636962890625, 0.005084991455078125, -0.0141754150390625, -0.0012464523315429688, 0.0087738037109375, -0.0067596435546875, -0.039459228515625, 0.038604736328125, -0.00699615478515625, -0.0595703125, 0.08868408203125, -0.00971221923828125, 0.0190887451171875, 0.0143890380859375, 0.031524658203125, -0.044189453125, 0.0008568763732910156, -0.0178680419921875, 0.029449462890625, -0.0074462890625, -0.0114898681640625, -0.04345703125, 0.003147125244140625, -0.03533935546875, 0.017669677734375, 0.048919677734375, 0.0182952880859375, -0.043121337890625, -0.019287109375, 0.0296630859375, 0.02545166015625, 0.005306243896484375, 0.045806884765625, 0.036712646484375, 0.025390625, 0.06036376953125, -0.018218994140625, 0.0247344970703125, -0.00762176513671875, 0.025146484375, 0.064453125, 0.0190887451171875, 0.0160064697265625, 0.02813720703125, 0.0227508544921875, -0.048614501953125, 0.022064208984375, 0.055267333984375, -0.051788330078125, -0.043609619140625, 0.005428314208984375, -0.0179595947265625, 0.001995086669921875, -0.02130126953125, -0.0220947265625, 0.01129150390625, 0.025970458984375, 0.01070404052734375, 0.007236480712890625, 0.024383544921875, -0.0022563934326171875, -0.0020198822021484375, 0.0149688720703125, 0.051971435546875, -0.062408447265625, 0.007793426513671875, 0.0252838134765625, 0.0173492431640625, -0.031463623046875, -0.037933349609375, 0.0257568359375, 0.03485107421875, -0.0079803466796875, -0.0156097412109375, 0.0146942138671875, 0.01715087890625, -0.00945281982421875, 0.026031494140625, 0.023956298828125, 0.062042236328125, 0.058990478515625, 0.0108642578125, -0.007381439208984375, 0.00019872188568115234, 0.008941650390625, -0.000518798828125, 0.00940704345703125, -0.0153656005859375, 0.0032024383544921875, -0.0258941650390625, -0.0271759033203125, 0.031341552734375, 0.037872314453125, 0.024261474609375, 0.0196685791015625, -0.006778717041015625, -0.0185546875, 0.00689697265625, 0.0265655517578125, -0.01447296142578125, -0.00423431396484375, -0.01042938232421875, -0.039031982421875, -0.00899505615234375, 0.031402587890625, -0.01004791259765625, 0.01611328125, 0.01788330078125, 0.023651123046875, 0.01168060302734375, -0.01268768310546875, -0.0008935928344726562, -0.0234222412109375, -0.0106658935546875, -0.0195770263671875, 0.02374267578125, 0.0178985595703125, 0.003437042236328125, 0.01380157470703125, 0.031982421875, 0.00946807861328125, -0.05621337890625, 0.05535888671875, -0.016387939453125, -0.033050537109375, 0.04119873046875, -0.0396728515625, 0.07470703125, -0.042694091796875, -0.0576171875, -0.016876220703125, 0.0091705322265625, -0.05474853515625, 0.0305328369140625, 0.04217529296875, -0.02447509765625, 0.004055023193359375, 0.001468658447265625, -0.01220703125, 0.01088714599609375, -0.023651123046875, 0.02227783203125, -0.025299072265625, -0.00890350341796875, -0.0025730133056640625, 0.00945281982421875, -0.00376129150390625, 0.01092529296875, 0.043121337890625, 0.00609588623046875, 0.033905029296875, -0.022064208984375, 0.0180511474609375, -0.0227508544921875, 0.00904083251953125, -0.03021240234375, -0.0181121826171875, 0.00664520263671875, -0.0005116462707519531, -0.01107025146484375, 0.00279998779296875, -0.0670166015625, 0.0338134765625, 0.006259918212890625, -0.0017461776733398438, 0.01338958740234375, 0.0022716522216796875, 0.00818634033203125, 0.01113128662109375, 0.04046630859375, -0.0109710693359375, -0.043182373046875, -0.044219970703125, 0.0131072998046875, 0.027496337890625, 0.07879638671875, 0.002422332763671875, 0.00823974609375, -0.0770263671875, -0.0310516357421875, 0.0124664306640625, -0.0399169921875, -0.004436492919921875, 0.01529693603515625, -0.06396484375, -0.004787445068359375, 0.01528167724609375, -0.0296173095703125, 0.01561737060546875, 0.01396942138671875, 0.0198516845703125, 0.004558563232421875, -0.030548095703125, -0.06414794921875, 0.0022735595703125, 0.01824951171875, -0.00809478759765625, 0.01432037353515625, -0.037322998046875, -0.0280609130859375, 0.01436614990234375, 0.03875732421875, -0.040679931640625, -0.005863189697265625, 0.004974365234375, 0.0111846923828125, -0.008880615234375, -0.058502197265625, -0.11676025390625, 0.036773681640625, 0.0153045654296875, -0.007781982421875, -0.033111572265625, 0.02911376953125, -0.046875, 0.051116943359375, -0.007724761962890625, 0.0679931640625, -0.0264892578125, -0.0034389495849609375, -0.06573486328125, -0.0278778076171875, -0.049285888671875, 0.0291748046875, -0.0276947021484375, 0.00530242919921875, 0.022430419921875, -0.0228424072265625, 0.0073394775390625, 0.002277374267578125, -0.008087158203125, 0.045166015625, -0.00814056396484375, -0.007659912109375, -0.01497650146484375, 0.0396728515625, -0.01519012451171875, -0.06060791015625, 0.0021419525146484375, -0.005374908447265625, -0.0105133056640625, 0.0065765380859375, 0.0207672119140625, 0.03363037109375, -0.01788330078125, -0.037811279296875, 0.00431060791015625, 0.00782012939453125, -0.033233642578125, -0.0232391357421875, 0.00858306884765625, 0.01029205322265625, -0.020538330078125, -0.016510009765625, -0.03448486328125, -0.037078857421875, -0.00004100799560546875, 0.021881103515625, 0.003772735595703125, 0.0274505615234375, 0.06390380859375, -0.026092529296875, 0.045135498046875, 0.0006318092346191406, -0.002132415771484375, 0.0169830322265625, -0.00852203369140625, 0.060272216796875, 0.07421875, 0.0035686492919921875, 0.06982421875, 0.0045166015625, -0.048858642578125, 0.002506256103515625, -0.0241241455078125, -0.0186614990234375, -0.007083892822265625, 0.00504302978515625, 0.05731201171875, -0.00658416748046875, -0.03216552734375, -0.014556884765625, -0.029296875, 0.00780487060546875, -0.0246734619140625, -0.0012216567993164062, -0.05303955078125, -0.00885772705078125, 0.0032215118408203125, 0.00524139404296875, -0.00202178955078125, 0.0297698974609375, -0.01629638671875, -0.0134735107421875, 0.033172607421875, -0.021575927734375, 0.0067596435546875, -0.03973388671875, 0.05853271484375, -0.04803466796875, -0.038055419921875, 0.038177490234375, 0.014678955078125, -0.004009246826171875, 0.04327392578125, 0.01654052734375, 0.03240966796875, -0.0478515625, 0.011444091796875, 0.006168365478515625, 0.03033447265625, -0.0379638671875, -0.005374908447265625, -0.0129547119140625, 0.0232696533203125, 0.0004839897155761719, 0.037017822265625, 0.0029888153076171875, 0.01428985595703125, 0.0081787109375, 0.005859375, -0.01001739501953125, -0.01444244384765625, -0.018157958984375, 0.0293121337890625, 0.020263671875, -0.023223876953125, 0.056610107421875, -0.03277587890625, 0.0083770751953125, 0.042938232421875, 0.00339508056640625, 0.005680084228515625, -0.01934814453125, 0.028717041015625, 0.01403045654296875, -0.00974273681640625 ]
77b4619818187fde6943868ca6fe161554abd78c
Wordpress Stackexchange Q: How to get comments with mixed status using get_comments? Is there a way to get comments with more than one status using get_comments function? Let's say I would like to get both trash and hold comments. It is possible to do the same with posts: get_posts(array('post_status' => 'draft,private,trash')); get_posts(array('post_status' => array('draft', 'private', 'trash'))); What I want to do is: get_comments(array('status' => 'hold,trash')); get_comments(array('status' => array('hold', 'trash'))); A: As of the Wordpress codex there is no such option. But you could just combine two or more comment arrays using plain PHP: array_merge( get_comments( array( 'status' => 'hold' ) ), get_comments( array( 'status' => 'trash' ) ) ); http://codex.wordpress.org/Function_Reference/get_comments http://php.net/array_merge
Q: How to get comments with mixed status using get_comments? Is there a way to get comments with more than one status using get_comments function? Let's say I would like to get both trash and hold comments. It is possible to do the same with posts: get_posts(array('post_status' => 'draft,private,trash')); get_posts(array('post_status' => array('draft', 'private', 'trash'))); What I want to do is: get_comments(array('status' => 'hold,trash')); get_comments(array('status' => array('hold', 'trash'))); A: As of the Wordpress codex there is no such option. But you could just combine two or more comment arrays using plain PHP: array_merge( get_comments( array( 'status' => 'hold' ) ), get_comments( array( 'status' => 'trash' ) ) ); http://codex.wordpress.org/Function_Reference/get_comments http://php.net/array_merge A: Not possible. You have to filter comments_clauses: add_filter( 'comments_clauses', 'wpse_77415_comment_clauses_filter' ); function wpse_77415_comment_clauses_filter( $clauses ) { $clauses['where'] .= " ( comment_approved = 'hold' OR comment_approved = 'trash' )"; // maybe remove the original 'comment_approved' statement … return $clauses; } More examples: * *Get comments for more than one post *Get a variable field of all comments of current post *How to display only logged in user's post comments in comments area
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:427184", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77415" }
[ 0.057891845703125, -0.006420135498046875, -0.0048065185546875, -0.0614013671875, 0.0016546249389648438, -0.0233306884765625, 0.01141357421875, -0.005382537841796875, 0.0012178421020507812, 0.020172119140625, -0.08905029296875, 0.014495849609375, -0.040679931640625, 0.01284027099609375, -0.020751953125, -0.0791015625, 0.037750244140625, -0.01030731201171875, 0.0302581787109375, -0.004611968994140625, 0.01467132568359375, 0.019989013671875, 0.004291534423828125, 0.04583740234375, 0.017364501953125, -0.05059814453125, 0.1014404296875, -0.01309967041015625, 0.01485443115234375, -0.027679443359375, 0.012176513671875, 0.010162353515625, 0.029449462890625, 0.01064300537109375, -0.0229339599609375, 0.01432037353515625, 0.0002541542053222656, -0.0101776123046875, -0.01371002197265625, 0.04791259765625, 0.004421234130859375, -0.0020923614501953125, -0.03125, 0.01067352294921875, -0.036529541015625, -0.027587890625, -0.0031070709228515625, -0.0171661376953125, 0.0283966064453125, 0.0058441162109375, 0.0266571044921875, -0.00609588623046875, 0.04901123046875, -0.012359619140625, -0.0300445556640625, -0.0207977294921875, 0.00911712646484375, 0.0220794677734375, 0.0261688232421875, -0.0250091552734375, -0.0212249755859375, 0.015716552734375, 0.0078582763671875, -0.012847900390625, -0.01395416259765625, 0.0172119140625, 0.027252197265625, 0.0163726806640625, -0.01236724853515625, -0.03619384765625, -0.01091766357421875, -0.0168304443359375, 0.0057373046875, -0.0350341796875, 0.004978179931640625, -0.0053863525390625, -0.009002685546875, -0.0219879150390625, 0.0163116455078125, 0.00449371337890625, 0.01548004150390625, -0.005069732666015625, -0.06390380859375, -0.008148193359375, 0.020904541015625, 0.02252197265625, 0.00333404541015625, -0.0250701904296875, -0.0192413330078125, 0.00907135009765625, -0.0086212158203125, -0.0999755859375, 0.01207733154296875, 0.06268310546875, 0.0018320083618164062, -0.00787353515625, 0.050567626953125, 0.0462646484375, -0.0287628173828125, -0.02325439453125, -0.0124053955078125, -0.0297393798828125, -0.01477813720703125, -0.01114654541015625, 0.0146331787109375, -0.0374755859375, -0.004123687744140625, -0.029815673828125, 0.037506103515625, 0.048828125, -0.0234222412109375, 0.05682373046875, -0.017486572265625, -0.02734375, 0.0237274169921875, -0.002941131591796875, -0.048828125, 0.048187255859375, -0.005016326904296875, -0.005603790283203125, 0.035491943359375, 0.0697021484375, -0.0258636474609375, 0.0065155029296875, -0.020050048828125, -0.0038051605224609375, 0.023529052734375, -0.05474853515625, -0.042877197265625, 0.0386962890625, 0.01389312744140625, 0.0279083251953125, 0.01537322998046875, -0.0015611648559570312, -0.0396728515625, -0.008514404296875, 0.016510009765625, -0.00997161865234375, -0.033447265625, 0.03863525390625, -0.0010766983032226562, -0.0264892578125, 0.0043182373046875, -0.01580810546875, -0.05517578125, 0.0238037109375, 0.03680419921875, -0.006198883056640625, -0.025665283203125, -0.06622314453125, -0.03717041015625, 0.04058837890625, 0.0211029052734375, 0.0019588470458984375, 0.0116424560546875, -0.040069580078125, -0.01267242431640625, -0.0297088623046875, 0.027130126953125, -0.0251617431640625, 0.032012939453125, -0.00533294677734375, -0.01190948486328125, 0.012298583984375, -0.035491943359375, -0.0005812644958496094, -0.0080718994140625, -0.0161590576171875, 0.0136260986328125, -0.0099639892578125, -0.01248931884765625, 0.0159759521484375, -0.004116058349609375, -0.02813720703125, -0.01412200927734375, -0.00445556640625, 0.0113067626953125, -0.00830078125, -0.0034275054931640625, 0.00815582275390625, -0.040740966796875, -0.054046630859375, -0.0059661865234375, -0.0099639892578125, -0.0321044921875, 0.036529541015625, 0.0211639404296875, 0.06829833984375, -0.0167388916015625, 0.0270233154296875, 0.00485992431640625, 0.0330810546875, 0.019287109375, 0.0255889892578125, -0.025726318359375, -0.05450439453125, -0.0263519287109375, -0.0007243156433105469, -0.038238525390625, 0.011016845703125, 0.0215911865234375, 0.0098419189453125, -0.01384735107421875, 0.0174560546875, -0.0809326171875, 0.0310516357421875, -0.039886474609375, 0.042572021484375, -0.061553955078125, 0.0200958251953125, 0.043548583984375, -0.0301361083984375, -0.0771484375, 0.087646484375, 0.02984619140625, -0.032928466796875, -0.034393310546875, 0.0216064453125, -0.01389312744140625, 0.037109375, -0.015228271484375, -0.0175323486328125, -0.0209808349609375, 0.01080322265625, 0.046417236328125, -0.0401611328125, 0.009735107421875, -0.0236358642578125, 0.055999755859375, 0.01043701171875, -0.026580810546875, -0.0032062530517578125, 0.05853271484375, 0.056640625, 0.01497650146484375, 0.01434326171875, 0.042236328125, -0.07977294921875, -0.005153656005859375, 0.030670166015625, 0.024658203125, 0.006763458251953125, 0.004924774169921875, 0.040802001953125, 0.05194091796875, 0.001556396484375, 0.0178680419921875, 0.0167236328125, 0.006191253662109375, 0.038543701171875, -0.006656646728515625, 0.0157012939453125, 0.014373779296875, -0.0063018798828125, 0.002880096435546875, 0.04071044921875, -0.0352783203125, -0.02435302734375, 0.0019683837890625, 0.0003581047058105469, 0.01313018798828125, -0.082275390625, -0.0230865478515625, -0.0394287109375, -0.003452301025390625, -0.0196990966796875, -0.0107421875, 0.000698089599609375, -0.00847625732421875, -0.0035762786865234375, 0.0115966796875, -0.04681396484375, -0.00438690185546875, 0.04364013671875, -0.01763916015625, 0.056610107421875, -0.0003871917724609375, -0.0208587646484375, -0.007312774658203125, 0.02587890625, -0.0181427001953125, -0.003368377685546875, -0.0102386474609375, -0.0186767578125, 0.0183563232421875, 0.00799560546875, 0.0098724365234375, -0.0247650146484375, -0.044952392578125, -0.03314208984375, -0.01358795166015625, 0.059234619140625, 0.012786865234375, -0.006076812744140625, 0.043670654296875, 0.003589630126953125, 0.04144287109375, -0.06103515625, 0.0615234375, -0.03363037109375, 0.02825927734375, 0.0643310546875, 0.01776123046875, -0.026580810546875, 0.01013946533203125, -0.0007224082946777344, 0.0281524658203125, -0.0200347900390625, -0.004924774169921875, 0.01178741455078125, -0.0173492431640625, 0.0677490234375, 0.03179931640625, 0.0750732421875, 0.006229400634765625, -0.0201416015625, 0.0084075927734375, 0.0601806640625, 0.028411865234375, 0.008575439453125, 0.01319122314453125, -0.034881591796875, 0.002231597900390625, -0.017333984375, -0.01373291015625, -0.01389312744140625, -0.0050811767578125, 0.003383636474609375, -0.000058531761169433594, 0.01157379150390625, -0.0782470703125, 0.0030059814453125, -0.05755615234375, 0.054779052734375, -0.0294342041015625, 0.0186767578125, 0.00860595703125, 0.10003662109375, 0.0127410888671875, -0.0322265625, -0.01432037353515625, 0.035186767578125, -0.0194244384765625, -0.01280975341796875, -0.0084991455078125, -0.00908660888671875, 0.0097503662109375, -0.00588226318359375, -0.0297088623046875, 0.02362060546875, -0.00925445556640625, -0.01450347900390625, -0.036651611328125, 0.0157928466796875, 0.0222320556640625, -0.00592803955078125, 0.0259552001953125, 0.08050537109375, 0.067626953125, 0.024810791015625, -0.032562255859375, 0.01445770263671875, -0.037933349609375, -0.048126220703125, 0.0285186767578125, -0.015350341796875, -0.02813720703125, -0.00902557373046875, 0.0158843994140625, 0.02362060546875, 0.01250457763671875, 0.002124786376953125, 0.01654052734375, -0.002044677734375, -0.01788330078125, -0.0276031494140625, -0.0262908935546875, -0.0335693359375, 0.0100555419921875, -0.033905029296875, 0.00885009765625, -0.027435302734375, 0.0252227783203125, -0.042510986328125, -0.0256500244140625, 0.0223388671875, -0.0595703125, -0.0035152435302734375, -0.070068359375, 0.0081787109375, -0.05255126953125, 0.042816162109375, -0.03228759765625, -0.02618408203125, -0.044525146484375, 0.0237274169921875, -0.052764892578125, -0.078369140625, 0.00830841064453125, -0.00202178955078125, -0.033721923828125, 0.03875732421875, -0.01189422607421875, 0.0018062591552734375, -0.043426513671875, -0.01448822021484375, -0.0235595703125, -0.031982421875, 0.0162506103515625, -0.0199737548828125, 0.01432037353515625, 0.0181427001953125, 0.008056640625, 0.01123809814453125, 0.0289764404296875, -0.062255859375, -0.010711669921875, -0.0237884521484375, 0.0278778076171875, 0.02813720703125, 0.0001697540283203125, -0.018707275390625, 0.036163330078125, 0.070068359375, -0.00824737548828125, 0.0214691162109375, -0.020050048828125, 0.00836944580078125, -0.0247650146484375, -0.0005955696105957031, -0.00605010986328125, -0.0231475830078125, -0.00983428955078125, -0.0183868408203125, 0.005428314208984375, 0.028778076171875, -0.0362548828125, 0.002956390380859375, -0.0333251953125, -0.01605224609375, -0.0167999267578125, -0.01708984375, 0.0167999267578125, 0.0195770263671875, -0.0135955810546875, 0.020416259765625, -0.0192718505859375, -0.011749267578125, 0.01006317138671875, 0.00392913818359375, -0.0164337158203125, 0.00467681884765625, 0.037200927734375, 0.03326416015625, -0.026031494140625, -0.0272674560546875, -0.041351318359375, 0.0294952392578125, -0.0250396728515625, 0.06591796875, 0.0584716796875, -0.0093841552734375, 0.0340576171875, -0.0004165172576904297, -0.0066070556640625, 0.0297698974609375, -0.0229644775390625, 0.002490997314453125, -0.04595947265625, 0.009735107421875, -0.00860595703125, -0.004276275634765625, -0.00600433349609375, -0.037994384765625, 0.0152740478515625, -0.035003662109375, 0.04522705078125, 0.0015573501586914062, 0.0100250244140625, -0.0576171875, -0.05938720703125, 0.006378173828125, -0.07159423828125, 0.062744140625, 0.0391845703125, -0.01009368896484375, 0.07244873046875, 0.0623779296875, -0.020416259765625, -0.0195159912109375, -0.013427734375, -0.01788330078125, 0.023712158203125, -0.01953125, -0.0418701171875, 0.004711151123046875, -0.00971221923828125, 0.0843505859375, -0.00803375244140625, -0.06689453125, 0.013641357421875, -0.024932861328125, 0.0380859375, 0.037567138671875, 0.00904083251953125, 0.0269317626953125, -0.00911712646484375, -0.01168060302734375, 0.017181396484375, -0.005336761474609375, -0.0131683349609375, -0.02911376953125, 0.0241851806640625, 0.00960540771484375, 0.0007715225219726562, 0.00341033935546875, 0.08599853515625, -0.0129852294921875, 0.069091796875, -0.0260162353515625, 0.0242919921875, -0.01123046875, 0.04248046875, 0.0019168853759765625, 0.0162811279296875, 0.025787353515625, 0.01983642578125, 0.002529144287109375, -0.0072479248046875, -0.006740570068359375, 0.023529052734375, 0.0103607177734375, 0.0313720703125, 0.0218963623046875, -0.010772705078125, -0.009002685546875, -0.020904541015625, 0.031890869140625, 0.08343505859375, 0.0008554458618164062, 0.00010114908218383789, 0.02471923828125, 0.01456451416015625, 0.035400390625, -0.01036834716796875, -0.0136566162109375, -0.01047515869140625, 0.0037555694580078125, -0.00937652587890625, -0.040191650390625, 0.007617950439453125, 0.03692626953125, -0.0056610107421875, -0.03192138671875, 0.0032978057861328125, -0.08380126953125, 0.00930023193359375, -0.0163421630859375, -0.00717926025390625, 0.0298004150390625, 0.017333984375, 0.0009226799011230469, -0.034942626953125, -0.00353240966796875, -0.006549835205078125, -0.02191162109375, 0.0662841796875, 0.0103912353515625, 0.007099151611328125, -0.0174560546875, -0.054412841796875, -0.03680419921875, -0.03369140625, -0.041351318359375, -0.045501708984375, 0.0011129379272460938, 0.0238037109375, 0.036163330078125, 0.038604736328125, -0.00011342763900756836, -0.00621795654296875, -0.014373779296875, -0.0049591064453125, 0.033721923828125, 0.0062713623046875, 0.0265350341796875, 0.0278167724609375, 0.03570556640625, 0.051788330078125, 0.041229248046875, -0.033294677734375, -0.0439453125, 0.00028252601623535156, -0.055206298828125, -0.007030487060546875, 0.000004827976226806641, -0.01517486572265625, 0.01031494140625, 0.0024566650390625, 0.005718231201171875, -0.00356292724609375, -0.001850128173828125, 0.0067596435546875, -0.030426025390625, 0.007415771484375, 0.01476287841796875, -0.003376007080078125, 0.0120391845703125, -0.021728515625, 0.00702667236328125, -0.00972747802734375, 0.0233001708984375, -0.021514892578125, -0.0172119140625, -0.0212249755859375, 0.03173828125, -0.0574951171875, 0.037689208984375, 0.0428466796875, 0.03057861328125, 0.043853759765625, -0.0222320556640625, 0.032928466796875, 0.0137786865234375, 0.014404296875, 0.01230621337890625, 0.0128173828125, 0.043609619140625, 0.00536346435546875, 0.022796630859375, 0.035858154296875, -0.0116729736328125, 0.022705078125, 0.0023555755615234375, 0.043426513671875, -0.0538330078125, 0.033966064453125, 0.021392822265625, -0.0131683349609375, 0.039794921875, -0.002536773681640625, 0.0022525787353515625, -0.06134033203125, 0.051116943359375, -0.02752685546875, -0.007434844970703125, 0.01021575927734375, -0.04351806640625, -0.0003199577331542969, -0.01544952392578125, -0.0151519775390625, -0.0270843505859375, -0.06756591796875, 0.00470733642578125, 0.0419921875, -0.0187225341796875, -0.0029773712158203125, -0.0006003379821777344, -0.007137298583984375, -0.03277587890625, -0.08355712890625, -0.031341552734375, -0.0153350830078125, -0.029510498046875, 0.0042266845703125, 0.000904083251953125, 0.0094451904296875, 0.05096435546875, -0.0200042724609375, -0.003368377685546875, 0.036834716796875, -0.059478759765625, -0.0543212890625, 0.0016202926635742188, 0.049285888671875, -0.017120361328125, 0.0258026123046875, 0.0248870849609375, -0.025360107421875, -0.048736572265625, -0.0029354095458984375, 0.007495880126953125, 0.0286102294921875, -0.0293426513671875, -0.0011186599731445312, 0.05401611328125, 0.0280914306640625, -0.0238037109375, 0.01465606689453125, 0.04254150390625, -0.02978515625, -0.0297088623046875, 0.0266571044921875, -0.042572021484375, -0.033294677734375, -0.004978179931640625, -0.07061767578125, 0.0256500244140625, 0.018707275390625, 0.04522705078125, 0.00171661376953125, -0.01515960693359375, -0.020416259765625, -0.0269317626953125, -0.02972412109375, 0.0537109375, -0.0306396484375, 0.026763916015625, -0.05023193359375, -0.006626129150390625, 0.01287841796875, 0.0283355712890625, 0.025054931640625, 0.00510406494140625, -0.0298004150390625, 0.0007328987121582031, 0.054412841796875, 0.045989990234375, 0.0256500244140625, 0.0255279541015625, 0.04852294921875, 0.016387939453125, 0.056884765625, -0.01678466796875, 0.029632568359375, -0.0341796875, 0.030670166015625, 0.055511474609375, 0.01076507568359375, -0.00017189979553222656, -0.0229949951171875, 0.06219482421875, -0.05267333984375, -0.00426483154296875, 0.03057861328125, 0.003971099853515625, 0.0024776458740234375, 0.061431884765625, 0.0572509765625, 0.01120758056640625, 0.005176544189453125, -0.0323486328125, 0.053497314453125, 0.0186004638671875, 0.0223541259765625, 0.06524658203125, 0.0306854248046875, 0.0219573974609375, 0.004425048828125, 0.021270751953125, -0.01143646240234375, -0.006359100341796875, 0.0272216796875, 0.013885498046875, 0.03265380859375, -0.01470184326171875, 0.007328033447265625, 0.00946044921875, 0.035980224609375, -0.02545166015625, -0.0160675048828125, 0.0201263427734375, 0.00948333740234375, 0.004711151123046875, -0.01739501953125, 0.0225982666015625, -0.0099945068359375, 0.0389404296875, -0.0217437744140625, -0.0179290771484375, -0.0098876953125, 0.035614013671875, -0.005954742431640625, -0.00959014892578125, 0.00142669677734375, -0.0289459228515625, -0.04412841796875, 0.0165863037109375, 0.0118560791015625, 0.040008544921875, -0.0205078125, 0.0948486328125, -0.00913238525390625, -0.01123809814453125, 0.04632568359375, 0.01235198974609375, 0.007350921630859375, -0.06695556640625, 0.0096282958984375, -0.055389404296875, -0.0095672607421875, 0.0199432373046875, 0.039581298828125, -0.0235137939453125, 0.0212249755859375, 0.01087188720703125, -0.040740966796875, -0.0007829666137695312, 0.041595458984375, -0.0160369873046875, -0.0206451416015625, -0.062225341796875, -0.03167724609375, 0.0241851806640625, -0.0302581787109375, 0.034088134765625, -0.09466552734375, 0.0721435546875, -0.00006365776062011719, -0.0178680419921875, 0.0171356201171875, -0.00872039794921875, 0.006885528564453125, 0.0011434555053710938, -0.048675537109375, 0.00007516145706176758, -0.0140533447265625, -0.01380157470703125, 0.01380157470703125, -0.00102996826171875, -0.013153076171875, 0.0286407470703125, 0.006099700927734375, 0.01776123046875, -0.00902557373046875, -0.019500732421875, 0.0189208984375, 0.0006775856018066406, 0.0082550048828125, 0.0231781005859375, 0.0031909942626953125, -0.00019538402557373047, -0.0675048828125, -0.046722412109375, -0.0411376953125, 0.0421142578125, 0.0330810546875, 0.0038433074951171875, 0.03363037109375, 0.04010009765625, -0.03021240234375, 0.036956787109375, -0.043914794921875, -0.017578125, -0.01062774658203125, -0.0017442703247070312, 0.0012178421020507812, 0.01345062255859375, 0.00936126708984375, 0.0372314453125, 0.037567138671875, -0.0189361572265625, 0.0226593017578125, -0.01412200927734375, -0.007595062255859375, -0.0221405029296875, 0.02386474609375, -0.032806396484375, -0.04119873046875, -0.046173095703125, -0.01428985595703125, 0.01345062255859375, -0.0073699951171875, -0.0029354095458984375, 0.0189666748046875, 0.0130767822265625, 0.01108551025390625, 0.0229949951171875, -0.00579071044921875, 0.031982421875, 0.0277252197265625, -0.04473876953125, 0.03363037109375, -0.0225372314453125, -0.0198974609375, 0.02880859375, 0.0013208389282226562, 0.01195526123046875, -0.01776123046875, 0.0899658203125, 0.00612640380859375, -0.00957489013671875, 0.055023193359375, -0.002727508544921875, 0.011138916015625, -0.00789642333984375, 0.022125244140625, 0.01351165771484375, -0.0211944580078125, -0.02252197265625, -0.04852294921875, -0.01302337646484375, -0.01007843017578125, -0.028961181640625, -0.0584716796875, 0.0018482208251953125, -0.042999267578125, -0.0127716064453125, 0.00714111328125, -0.020721435546875, -0.0040130615234375, 0.03863525390625, -0.0262451171875, -0.0134124755859375, -0.0149383544921875, 0.018096923828125, -0.01044464111328125, -0.03594970703125, -0.0258636474609375, -0.01483154296875, 0.037109375, 0.0068511962890625, 0.01959228515625, 0.012359619140625, -0.03509521484375, 0.00514984130859375, 0.041717529296875, 0.047119140625, 0.07647705078125, 0.024444580078125, 0.0126190185546875, 0.017913818359375, 0.00785064697265625, -0.0428466796875, -0.0943603515625, 0.034027099609375, -0.06927490234375, -0.013916015625, 0.00830841064453125, 0.01187896728515625, 0.046783447265625, -0.0200042724609375, -0.05224609375, 0.0938720703125, -0.0296630859375, -0.0247650146484375, -0.08465576171875, 0.0005879402160644531, 0.01209259033203125, 0.017059326171875, -0.00966644287109375, -0.0244598388671875, -0.043609619140625, 0.0220947265625, -0.0287933349609375, 0.04736328125, -0.00823211669921875, -0.01654052734375, -0.008270263671875, 0.0178070068359375, 0.036102294921875, -0.02197265625, -0.0157470703125, 0.005367279052734375, 0.004138946533203125, 0.04833984375, -0.0194244384765625, -0.0235595703125, 0.0018405914306640625, -0.00839996337890625, 0.0211029052734375, -0.04962158203125, -0.04327392578125, -0.045989990234375, 0.0135650634765625, 0.0179290771484375, 0.005321502685546875, 0.00574493408203125, 0.0224151611328125, -0.04510498046875, -0.043914794921875, -0.0234832763671875, 0.0187225341796875, -0.0572509765625, -0.0128173828125, 0.01617431640625, 0.01067352294921875, 0.00621795654296875, -0.034393310546875, -0.01082611083984375, -0.0181732177734375, -0.0032138824462890625, 0.006160736083984375, 0.004413604736328125, -0.01617431640625, 0.0209503173828125, -0.0108184814453125, 0.0021533966064453125, 0.0022258758544921875, 0.01263427734375, 0.016998291015625, 0.023468017578125, 0.00640869140625, 0.004364013671875, 0.010467529296875, 0.01297760009765625, 0.0124053955078125, -0.01248931884765625, 0.0110931396484375, -0.0232696533203125, -0.01117706298828125, -0.001132965087890625, -0.0032215118408203125, -0.0035152435302734375, -0.0005540847778320312, -0.0104217529296875, -0.0184173583984375, 0.03399658203125, -0.00885772705078125, 0.06787109375, 0.01047515869140625, 0.0295257568359375, -0.01611328125, -0.014617919921875, 0.0261688232421875, -0.042877197265625, -0.01448822021484375, 0.019012451171875, 0.0122833251953125, -0.10308837890625, 0.09735107421875, 0.049652099609375, 0.04840087890625, 0.054290771484375 ]
52e02d4fd5f23331a4cbe0560b99d7f37c08b1d3
Wordpress Stackexchange Q: Hide "Add media", HTML editor from TinyMCE I have a custom post type which supports editor. (WordPress version 3.5) I want to customize the editor for it. * *Make it readonly *Hide "Add Media" button *Hide HTML editor *Remove status bar showing word count I am using the following code: add_filter( 'tiny_mce_before_init', function( $args ) { $args['readonly'] = 1; $args['media_buttons'] = 0; $args['theme_advanced_disable'] = "code"; return $args; }); Only readonly is working. Is it not possible to do other customization using tiny_mce_before_init? A: It should be 'media_buttons' => FALSE. array ( 'textarea_rows' => 5, 'media_buttons' => FALSE, 'teeny' => TRUE, 'tinymce' => TRUE ) … creates this editor:
Q: Hide "Add media", HTML editor from TinyMCE I have a custom post type which supports editor. (WordPress version 3.5) I want to customize the editor for it. * *Make it readonly *Hide "Add Media" button *Hide HTML editor *Remove status bar showing word count I am using the following code: add_filter( 'tiny_mce_before_init', function( $args ) { $args['readonly'] = 1; $args['media_buttons'] = 0; $args['theme_advanced_disable'] = "code"; return $args; }); Only readonly is working. Is it not possible to do other customization using tiny_mce_before_init? A: It should be 'media_buttons' => FALSE. array ( 'textarea_rows' => 5, 'media_buttons' => FALSE, 'teeny' => TRUE, 'tinymce' => TRUE ) … creates this editor: A: If you want to hide/disable/prevent/remove the "Add Media"-button in 2018 you can do the following (in essence): // probably in your functions.php remove_action('media_buttons', 'media_buttons'); A: In WordPress ver 4.9 it does not seem media buttons can be turned off using the 'tiny_mce_before_init' hook. Instead I was able to remove this using 'wp_editor_settings', like so: add_filter( 'wp_editor_settings', function($settings) { $settings['media_buttons']=FALSE; return $settings; });
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:427188", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77432" }
[ 0.0172271728515625, 0.01212310791015625, 0.00502777099609375, 0.00777435302734375, -0.0030651092529296875, -0.017974853515625, 0.03094482421875, -0.040496826171875, -0.006061553955078125, 0.038818359375, 0.0214996337890625, 0.0100860595703125, -0.0005946159362792969, -0.0301361083984375, -0.0017156600952148438, 0.006076812744140625, 0.01529693603515625, 0.02899169921875, 0.060028076171875, -0.0085296630859375, 0.006679534912109375, -0.00936126708984375, 0.066162109375, -0.0308990478515625, 0.0049285888671875, 0.02008056640625, 0.0643310546875, -0.049407958984375, 0.0035800933837890625, -0.0196380615234375, 0.01267242431640625, -0.00732421875, 0.005908966064453125, 0.06689453125, -0.0709228515625, 0.05029296875, 0.002483367919921875, 0.02850341796875, 0.0266265869140625, 0.009552001953125, 0.01222991943359375, -0.0013580322265625, -0.0022029876708984375, -0.0075836181640625, -0.0233917236328125, -0.040374755859375, 0.0252532958984375, -0.0290985107421875, 0.01291656494140625, -0.0242767333984375, -0.01013946533203125, 0.00814056396484375, 0.01236724853515625, -0.05914306640625, -0.01557159423828125, -0.003997802734375, 0.0160369873046875, -0.0017795562744140625, 0.006168365478515625, 0.042877197265625, -0.0002429485321044922, 0.0565185546875, -0.0218505859375, -0.02545166015625, -0.0020236968994140625, 0.0023441314697265625, -0.022125244140625, 0.00403594970703125, -0.02716064453125, -0.0160675048828125, 0.0284576416015625, -0.046630859375, 0.056304931640625, -0.03350830078125, 0.0004048347473144531, -0.01346588134765625, -0.0185546875, -0.016082763671875, 0.044189453125, -0.048583984375, 0.006439208984375, 0.0163116455078125, 0.0021953582763671875, -0.039947509765625, 0.0235137939453125, -0.0185699462890625, -0.0062103271484375, -0.017974853515625, 0.021697998046875, 0.01168060302734375, 0.01788330078125, -0.049285888671875, 0.04803466796875, 0.051025390625, 0.004482269287109375, -0.027313232421875, -0.0008730888366699219, -0.01375579833984375, -0.0120849609375, -0.00843048095703125, 0.021087646484375, -0.042205810546875, 0.0224456787109375, -0.0036907196044921875, 0.0131988525390625, -0.004726409912109375, -0.015533447265625, 0.01023101806640625, 0.05889892578125, 0.0303192138671875, -0.0035419464111328125, 0.056304931640625, -0.008544921875, 0.0038661956787109375, -0.0217742919921875, -0.0006785392761230469, -0.02740478515625, 0.0304107666015625, -0.0020236968994140625, 0.040740966796875, -0.0167694091796875, 0.004505157470703125, 0.0079193115234375, 0.0014495849609375, -0.0162506103515625, -0.0312042236328125, -0.0025081634521484375, 0.00934600830078125, -0.00466156005859375, 0.03485107421875, -0.038909912109375, 0.013946533203125, 0.05841064453125, 0.0310516357421875, 0.0182037353515625, -0.021331787109375, -0.01296234130859375, -0.01178741455078125, 0.01314544677734375, 0.0100555419921875, -0.0186004638671875, -0.032135009765625, 0.0251312255859375, 0.0034160614013671875, -0.042724609375, 0.044464111328125, 0.03173828125, -0.01043701171875, -0.033782958984375, -0.09881591796875, 0.01094818115234375, -0.0237579345703125, 0.044830322265625, 0.01763916015625, -0.017730712890625, -0.0157623291015625, 0.035552978515625, -0.029205322265625, -0.0137786865234375, -0.04827880859375, 0.0269775390625, 0.00135040283203125, 0.015777587890625, -0.03997802734375, -0.041900634765625, -0.013946533203125, -0.051177978515625, -0.00592041015625, 0.02752685546875, 0.0408935546875, -0.01296234130859375, -0.0296783447265625, -0.0026874542236328125, 0.0243988037109375, -0.01183319091796875, 0.031707763671875, -0.01104736328125, 0.03460693359375, 0.0308990478515625, 0.0172119140625, 0.00894927978515625, -0.038818359375, 0.093017578125, -0.0190887451171875, -0.07476806640625, 0.06109619140625, -0.01763916015625, 0.04803466796875, 0.01450347900390625, 0.0012788772583007812, 0.0205078125, 0.045318603515625, 0.0069732666015625, -0.0261993408203125, 0.02996826171875, -0.035186767578125, -0.0135650634765625, -0.0303802490234375, 0.0029010772705078125, -0.003017425537109375, 0.032562255859375, 0.0007815361022949219, 0.01306915283203125, -0.006610870361328125, -0.07135009765625, 0.0278472900390625, -0.01303863525390625, 0.02874755859375, 0.0122222900390625, -0.0266876220703125, -0.0005345344543457031, -0.029327392578125, -0.0019502639770507812, 0.0126190185546875, -0.04046630859375, 0.0202484130859375, -0.0203094482421875, 0.05926513671875, 0.0084228515625, 0.046234130859375, 0.0196075439453125, -0.015869140625, 0.0428466796875, 0.037109375, 0.04302978515625, -0.024017333984375, -0.0066375732421875, -0.02130126953125, 0.054901123046875, -0.01514434814453125, 0.01800537109375, 0.01438140869140625, 0.04144287109375, 0.0228118896484375, -0.03436279296875, -0.0305023193359375, -0.0269012451171875, -0.08001708984375, 0.00691986083984375, 0.0780029296875, 0.0260467529296875, 0.01873779296875, -0.00940704345703125, 0.039794921875, 0.06597900390625, -0.007228851318359375, 0.0012502670288085938, 0.0222930908203125, 0.0277557373046875, 0.05035400390625, 0.006420135498046875, -0.020294189453125, 0.0027904510498046875, -0.032623291015625, 0.023223876953125, 0.0191802978515625, -0.0118560791015625, 0.0289459228515625, 0.0254364013671875, -0.037078857421875, 0.005016326904296875, 0.022308349609375, 0.010406494140625, 0.0028972625732421875, 0.0181427001953125, 0.05474853515625, 0.0256195068359375, 0.040435791015625, -0.0589599609375, 0.04913330078125, 0.0159759521484375, 0.02996826171875, -0.0091552734375, -0.0008244514465332031, 0.0016241073608398438, -0.0008640289306640625, -0.049346923828125, 0.02178955078125, 0.017120361328125, 0.0035305023193359375, -0.024505615234375, -0.00812530517578125, -0.049560546875, -0.01419830322265625, 0.0220489501953125, -0.028533935546875, -0.006072998046875, -0.03240966796875, 0.036651611328125, -0.0012664794921875, 0.01018524169921875, 0.0218658447265625, -0.007720947265625, 0.03387451171875, 0.0127105712890625, -0.01544189453125, -0.0027217864990234375, -0.0286865234375, 0.047088623046875, -0.01160430908203125, 0.0621337890625, 0.079833984375, -0.0006966590881347656, 0.0174407958984375, 0.019378662109375, -0.0302276611328125, -0.027923583984375, 0.056610107421875, 0.0259857177734375, -0.0029754638671875, -0.058319091796875, -0.00469207763671875, 0.0210113525390625, -0.040557861328125, 0.0095672607421875, 0.0015764236450195312, -0.034210205078125, 0.002285003662109375, -0.016845703125, 0.04327392578125, 0.034088134765625, -0.0721435546875, -0.01303863525390625, -0.01340484619140625, -0.038970947265625, -0.017822265625, 0.03021240234375, -0.0049896240234375, -0.054168701171875, 0.01055908203125, 0.003498077392578125, -0.023162841796875, 0.0016317367553710938, -0.018310546875, -0.0163726806640625, -0.00848388671875, 0.0232696533203125, 0.10406494140625, 0.0243682861328125, -0.0560302734375, 0.03277587890625, -0.07635498046875, -0.02923583984375, 0.08258056640625, 0.01090240478515625, -0.020294189453125, -0.021514892578125, 0.000606536865234375, 0.00788116455078125, 0.005657196044921875, -0.0084686279296875, -0.027984619140625, -0.0135040283203125, -0.01284027099609375, 0.004627227783203125, 0.0650634765625, 0.01021575927734375, 0.006595611572265625, 0.059783935546875, -0.02105712890625, -0.007373809814453125, 0.00469970703125, -0.01039886474609375, 0.043304443359375, -0.01050567626953125, -0.0258331298828125, 0.0118255615234375, 0.03900146484375, 0.0264739990234375, 0.036041259765625, 0.047149658203125, -0.0011415481567382812, 0.0174713134765625, -0.00548553466796875, -0.0036468505859375, -0.048370361328125, 0.007080078125, -0.024444580078125, -0.01323699951171875, -0.0231170654296875, 0.0013971328735351562, -0.00850677490234375, -0.00868988037109375, -0.0360107421875, 0.00048804283142089844, 0.02777099609375, -0.00888824462890625, 0.031829833984375, -0.03985595703125, -0.00855255126953125, -0.0311737060546875, 0.042938232421875, -0.0189208984375, 0.0009469985961914062, -0.01641845703125, -0.0078887939453125, 0.004428863525390625, -0.0125732421875, -0.030914306640625, -0.01201629638671875, -0.033721923828125, 0.0181732177734375, -0.0263824462890625, 0.01526641845703125, -0.0648193359375, 0.031158447265625, -0.04150390625, -0.032684326171875, 0.032562255859375, 0.006114959716796875, 0.006069183349609375, -0.00679779052734375, -0.01470184326171875, -0.022674560546875, -0.00528717041015625, -0.026031494140625, -0.08270263671875, -0.0145721435546875, -0.0056304931640625, 0.0511474609375, -0.00799560546875, 0.006313323974609375, -0.0299072265625, 0.04425048828125, -0.002254486083984375, 0.01198577880859375, 0.00656890869140625, 0.0214080810546875, -0.00304412841796875, -0.00943756103515625, -0.004749298095703125, -0.024627685546875, -0.01126861572265625, 0.0172271728515625, -0.00843048095703125, 0.034759521484375, -0.036590576171875, -0.06658935546875, 0.01186370849609375, -0.04034423828125, -0.040130615234375, -0.0625, -0.044189453125, -0.00856781005859375, -0.03302001953125, 0.01468658447265625, -0.044464111328125, -0.049713134765625, 0.0079345703125, -0.03515625, -0.005615234375, 0.007049560546875, 0.06964111328125, 0.032196044921875, 0.01250457763671875, -0.0133514404296875, -0.035919189453125, 0.00807952880859375, 0.001796722412109375, -0.005390167236328125, -0.01861572265625, -0.024017333984375, 0.0231475830078125, -0.015625, 0.0178070068359375, -0.045135498046875, 0.0770263671875, -0.00782012939453125, -0.01153564453125, 0.029632568359375, -0.0168304443359375, -0.0022792816162109375, -0.0323486328125, -0.0166473388671875, 0.020599365234375, 0.0149688720703125, 0.0027408599853515625, 0.003437042236328125, 0.01255035400390625, 0.0089569091796875, -0.0199737548828125, -0.005069732666015625, 0.03887939453125, 0.04351806640625, 0.0316162109375, -0.00018393993377685547, 0.0056610107421875, 0.0165252685546875, -0.00836181640625, 0.0205535888671875, 0.03338623046875, -0.032379150390625, 0.040985107421875, 0.0019464492797851562, -0.0266876220703125, -0.0013561248779296875, 0.0009908676147460938, -0.02691650390625, 0.01136016845703125, -0.040924072265625, -0.024993896484375, 0.01319122314453125, 0.0462646484375, -0.01024627685546875, -0.0168609619140625, 0.02960205078125, 0.050262451171875, -0.0087127685546875, 0.0029659271240234375, -0.0063629150390625, 0.021270751953125, -0.03143310546875, -0.06500244140625, 0.0001214146614074707, -0.03253173828125, 0.0281219482421875, 0.021759033203125, 0.0029296875, 0.00937652587890625, -0.00579071044921875, 0.0545654296875, 0.0198211669921875, 0.02410888671875, 0.001171112060546875, 0.030548095703125, -0.0032825469970703125, 0.015106201171875, -0.0147857666015625, -0.007801055908203125, -0.0157318115234375, 0.01340484619140625, 0.0211029052734375, -0.003910064697265625, -0.0002372264862060547, -0.0022830963134765625, -0.032562255859375, -0.036773681640625, 0.01898193359375, -0.009307861328125, -0.07623291015625, 0.00841522216796875, 0.043060302734375, -0.015869140625, -0.01323699951171875, -0.0053863525390625, 0.0008015632629394531, -0.046234130859375, -0.02032470703125, 0.025146484375, -0.05438232421875, 0.0004930496215820312, 0.01035308837890625, 0.003658294677734375, 0.0030498504638671875, -0.01326751708984375, -0.07080078125, -0.07366943359375, 0.0116729736328125, 0.01568603515625, 0.039825439453125, -0.0206146240234375, 0.00799560546875, -0.0258941650390625, 0.00909423828125, -0.0330810546875, 0.02545166015625, 0.0037899017333984375, -0.00122833251953125, 0.001255035400390625, -0.012939453125, -0.039886474609375, -0.030609130859375, -0.06610107421875, -0.047149658203125, -0.0426025390625, 0.0079803466796875, 0.00885009765625, 0.0217437744140625, -0.009979248046875, -0.034881591796875, 0.0036258697509765625, 0.006458282470703125, 0.007579803466796875, 0.0401611328125, 0.019927978515625, 0.01184844970703125, -0.01261138916015625, 0.07611083984375, 0.0084228515625, -0.01308441162109375, -0.021270751953125, -0.039337158203125, 0.0152740478515625, -0.040863037109375, -0.0310821533203125, 0.01265716552734375, -0.03338623046875, -0.0121917724609375, 0.000002384185791015625, -0.0217742919921875, 0.0286102294921875, -0.0173187255859375, -0.018280029296875, -0.01226806640625, -0.002285003662109375, -0.0214385986328125, 0.051605224609375, -0.033782958984375, -0.0439453125, 0.0022907257080078125, 0.02325439453125, -0.00858306884765625, 0.012939453125, -0.026275634765625, 0.009857177734375, 0.0195159912109375, -0.032135009765625, 0.0594482421875, 0.05987548828125, -0.0269012451171875, 0.0309600830078125, 0.0224151611328125, -0.0111236572265625, 0.032501220703125, -0.0209197998046875, 0.0036487579345703125, 0.01419830322265625, 0.041168212890625, 0.005718231201171875, 0.0064849853515625, 0.05072021484375, -0.01523590087890625, 0.035430908203125, 0.071533203125, 0.0858154296875, -0.06707763671875, -0.00528717041015625, 0.00893402099609375, -0.05133056640625, 0.0248260498046875, -0.03314208984375, -0.03594970703125, -0.07867431640625, 0.07965087890625, -0.02490234375, -0.0218505859375, 0.01114654541015625, -0.027252197265625, -0.01213836669921875, 0.002651214599609375, 0.031585693359375, 0.0066680908203125, -0.005847930908203125, -0.0143585205078125, 0.00814056396484375, 0.002262115478515625, 0.016082763671875, 0.0168609619140625, -0.017578125, -0.032379150390625, -0.0538330078125, -0.0300445556640625, -0.011749267578125, -0.04327392578125, 0.0277862548828125, -0.0003333091735839844, -0.0251007080078125, 0.040679931640625, -0.060302734375, 0.07501220703125, 0.0156402587890625, -0.050262451171875, -0.020538330078125, -0.04119873046875, 0.0177001953125, -0.0194854736328125, -0.0226898193359375, 0.020050048828125, -0.0013570785522460938, -0.042755126953125, 0.01629638671875, 0.054443359375, 0.02099609375, -0.006786346435546875, -0.0328369140625, 0.047637939453125, -0.0035991668701171875, -0.016510009765625, -0.04766845703125, -0.0098419189453125, -0.066162109375, -0.00960540771484375, -0.0418701171875, -0.021759033203125, 0.03387451171875, -0.045013427734375, -0.0711669921875, 0.1258544921875, -0.0184326171875, 0.0589599609375, 0.01386260986328125, 0.040771484375, -0.038055419921875, 0.0155487060546875, -0.0016021728515625, 0.0033473968505859375, -0.04010009765625, 0.0169219970703125, -0.013824462890625, 0.00301361083984375, 0.01140594482421875, 0.03411865234375, 0.030853271484375, 0.0013341903686523438, -0.0226593017578125, -0.0244140625, 0.0277252197265625, 0.070556640625, 0.0211334228515625, 0.01251220703125, -0.0108489990234375, -0.0176849365234375, 0.0005774497985839844, -0.022369384765625, 0.036895751953125, -0.06158447265625, -0.0298004150390625, -0.01183319091796875, 0.002044677734375, -0.0146636962890625, 0.003604888916015625, 0.01067352294921875, -0.0022945404052734375, -0.01263427734375, 0.006748199462890625, -0.0494384765625, -0.02496337890625, 0.050140380859375, -0.0023174285888671875, -0.042388916015625, -0.01021575927734375, -0.0447998046875, 0.03271484375, -0.016876220703125, -0.0021495819091796875, 0.0020694732666015625, 0.01496124267578125, -0.04364013671875, -0.0355224609375, -0.01186370849609375, -0.0034332275390625, -0.022216796875, -0.01507568359375, -0.021820068359375, 0.0035114288330078125, -0.04998779296875, -0.004695892333984375, 0.035186767578125, -0.00982666015625, -0.003902435302734375, -0.0166778564453125, 0.00679779052734375, -0.02960205078125, -0.0321044921875, -0.040985107421875, -0.048675537109375, 0.0263824462890625, 0.04345703125, 0.0169830322265625, -0.01212310791015625, -0.0013818740844726562, 0.03857421875, -0.0015687942504882812, 0.0029354095458984375, -0.01139068603515625, -0.0208892822265625, -0.038116455078125, -0.053253173828125, -0.012451171875, 0.040252685546875, 0.07965087890625, 0.014617919921875, 0.0325927734375, -0.027374267578125, -0.053741455078125, 0.0281219482421875, 0.01593017578125, 0.060272216796875, -0.06170654296875, 0.01142120361328125, 0.03021240234375, 0.0248565673828125, 0.029388427734375, 0.0518798828125, 0.038421630859375, 0.0251007080078125, 0.007617950439453125, 0.004085540771484375, 0.0259857177734375, -0.00827789306640625, -0.023345947265625, -0.046142578125, 0.0173187255859375, 0.0174407958984375, 0.00882720947265625, 0.01340484619140625, 0.0243988037109375, 0.0268096923828125, -0.0040130615234375, 0.00609588623046875, 0.00991058349609375, -0.037628173828125, 0.041473388671875, -0.0218963623046875, 0.05767822265625, 0.0204925537109375, -0.0206756591796875, 0.00926971435546875, 0.02569580078125, -0.07635498046875, 0.01136016845703125, 0.039154052734375, -0.049591064453125, 0.034271240234375, 0.00911712646484375, -0.0026226043701171875, -0.0211181640625, -0.0036411285400390625, 0.022064208984375, 0.006809234619140625, 0.01202392578125, 0.0189666748046875, -0.029632568359375, -0.0223236083984375, -0.0274810791015625, 0.0517578125, 0.05206298828125, 0.058258056640625, -0.01201629638671875, 0.043731689453125, -0.036712646484375, 0.0218353271484375, -0.044677734375, -0.026947021484375, 0.0071563720703125, 0.05242919921875, 0.01477813720703125, -0.016082763671875, 0.0207977294921875, 0.050628662109375, -0.00830078125, -0.038818359375, 0.0255889892578125, -0.00884246826171875, -0.016448974609375, -0.0064544677734375, -0.006702423095703125, -0.0253753662109375, -0.0298309326171875, -0.0273590087890625, -0.003231048583984375, -0.0006318092346191406, -0.00536346435546875, -0.011810302734375, -0.00930023193359375, 0.0155487060546875, -0.029693603515625, 0.0379638671875, 0.0049285888671875, 0.04022216796875, 0.03485107421875, -0.01015472412109375, -0.0313720703125, 0.0036296844482421875, -0.007694244384765625, -0.00927734375, 0.03741455078125, -0.0039043426513671875, 0.01222991943359375, -0.0731201171875, 0.019561767578125, 0.044097900390625, 0.045379638671875, -0.0205841064453125, 0.01043701171875, 0.05145263671875, -0.0106353759765625, -0.0166778564453125, -0.0095367431640625, -0.032440185546875, -0.043365478515625, -0.0033855438232421875, 0.0184478759765625, -0.035980224609375, -0.059356689453125, -0.09686279296875, 0.0102691650390625, 0.0390625, 0.002410888671875, -0.06365966796875, 0.0455322265625, -0.04095458984375, 0.055511474609375, -0.009674072265625, 0.0361328125, -0.0240936279296875, -0.0303497314453125, -0.04840087890625, -0.02972412109375, -0.051483154296875, 0.03887939453125, -0.0169219970703125, 0.0101318359375, 0.0265960693359375, -0.01213836669921875, -0.01026153564453125, 0.0078277587890625, -0.003383636474609375, 0.0494384765625, -0.047882080078125, -0.0229949951171875, 0.041748046875, -0.034423828125, -0.0264434814453125, -0.044586181640625, 0.0183868408203125, -0.1029052734375, -0.01434326171875, 0.00585174560546875, -0.036224365234375, -0.021453857421875, -0.05364990234375, -0.058441162109375, -0.0128631591796875, 0.0261077880859375, -0.04229736328125, -0.0068359375, 0.0164337158203125, -0.029998779296875, 0.01226806640625, 0.01413726806640625, -0.0221710205078125, 0.04559326171875, 0.0161590576171875, 0.004482269287109375, 0.0187225341796875, 0.005748748779296875, -0.008636474609375, -0.0692138671875, -0.0102691650390625, -0.0255279541015625, 0.0067901611328125, 0.0116729736328125, -0.00312042236328125, 0.006549835205078125, 0.01374053955078125, -0.036834716796875, -0.057403564453125, -0.01364898681640625, -0.00878143310546875, 0.0005917549133300781, -0.048065185546875, -0.06915283203125, -0.04730224609375, 0.1141357421875, 0.060333251953125, 0.0355224609375, -0.016082763671875, 0.01006317138671875, -0.038543701171875, -0.03778076171875, -0.028350830078125, 0.0260009765625, -0.080322265625, -0.0205841064453125, 0.027923583984375, 0.01116180419921875, -0.0115203857421875, 0.022430419921875, -0.0163726806640625, -0.02276611328125, 0.00032711029052734375, 0.00408172607421875, -0.064208984375, 0.0234832763671875, 0.0672607421875, -0.048095703125, -0.0240478515625, 0.014495849609375, -0.0158843994140625, 0.0232391357421875, 0.006710052490234375, -0.03936767578125, -0.007663726806640625, -0.034637451171875, 0.03472900390625, -0.03082275390625, 0.0262603759765625, -0.039703369140625, 0.0162506103515625, -0.00836181640625, -0.0025787353515625, 0.00836944580078125, 0.0052642822265625, 0.0018243789672851562, 0.01287078857421875, 0.017547607421875, -0.0013074874877929688, -0.02838134765625, 0.004947662353515625, -0.021392822265625, -0.0028476715087890625, -0.0009355545043945312, 0.030609130859375, 0.042236328125, 0.0079498291015625, 0.0267486572265625, -0.00337982177734375, 0.0266571044921875, 0.00046324729919433594, -0.00838470458984375, -0.0260009765625, -0.0287933349609375, -0.007205963134765625 ]
6415ae40ba8971f8aeb3e5fecee0e8adf78c0c58
Wordpress Stackexchange Q: WP_Query ordered by custom field that is a date string? Each of my posts have a single custom field that is a string of a date (not the date of the post). Instead of my theme's current query, which orders by published date, I want to order by this custom field date. How can I change this query (the theme's query) to instead use my custom field (a string representation of a date)? $timeline_query = new WP_Query(array( 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => -1 )); A: The WP_Query page on the Codex has a section on Order & Orderby Parameters. If you want to order the query by a custom field you should add 'orderby' => 'meta_value' AND you must also specify the custom field (called your_date_field in the above example) using the meta_key key in the query. $timeline_query = new WP_Query(array( 'post_type' => 'post', 'orderby' => 'meta_value', 'meta_key' => 'your_date_field' 'posts_per_page' => -1 ));
Q: WP_Query ordered by custom field that is a date string? Each of my posts have a single custom field that is a string of a date (not the date of the post). Instead of my theme's current query, which orders by published date, I want to order by this custom field date. How can I change this query (the theme's query) to instead use my custom field (a string representation of a date)? $timeline_query = new WP_Query(array( 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => -1 )); A: The WP_Query page on the Codex has a section on Order & Orderby Parameters. If you want to order the query by a custom field you should add 'orderby' => 'meta_value' AND you must also specify the custom field (called your_date_field in the above example) using the meta_key key in the query. $timeline_query = new WP_Query(array( 'post_type' => 'post', 'orderby' => 'meta_value', 'meta_key' => 'your_date_field' 'posts_per_page' => -1 )); A: Just a note for those using the HTML5 type="date" field, the format is recorded in yyyy-mm-dd. I was using 'orderby' => 'meta_value-num' because I thought the date was numeric, and didn't get why the order was off. Then I saw this thread and used 'meta_value' instead and it worked! NOTE I wanted to add this as a comment to RRikesh's answer, but can't comment because my account doesn't have a high enough reputation yet, so I had to add a new answer.
wordpress
{ "language": "en", "length": 244, "provenance": "stackexchange_00019.jsonl.gz:427199", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77475" }
[ 0.050201416015625, -0.020538330078125, -0.0230560302734375, -0.042510986328125, 0.00232696533203125, -0.030853271484375, 0.027130126953125, 0.0205230712890625, 0.029205322265625, 0.015838623046875, 0.0150146484375, -0.0156707763671875, -0.02532958984375, -0.04058837890625, -0.0218505859375, -0.024078369140625, 0.038055419921875, -0.0308990478515625, 0.0120391845703125, -0.00946807861328125, 0.0307769775390625, 0.01323699951171875, 0.016082763671875, 0.00579833984375, 0.03851318359375, 0.01763916015625, 0.0469970703125, -0.035430908203125, 0.06512451171875, 0.007198333740234375, 0.031585693359375, -0.07073974609375, 0.0135345458984375, -0.007007598876953125, 0.041656494140625, 0.0215301513671875, 0.04168701171875, -0.0125885009765625, 0.00763702392578125, 0.038421630859375, 0.037139892578125, -0.01580810546875, -0.047698974609375, -0.0050811767578125, -0.03265380859375, -0.0428466796875, 0.04766845703125, -0.004283905029296875, 0.02801513671875, 0.016204833984375, -0.0188446044921875, 0.0033855438232421875, -0.002414703369140625, -0.00441741943359375, -0.032989501953125, -0.0538330078125, -0.0152587890625, 0.01406097412109375, 0.0115509033203125, -0.0181732177734375, -0.006103515625, 0.0265960693359375, 0.01479339599609375, 0.0220794677734375, -0.0019855499267578125, 0.00830841064453125, 0.032318115234375, 0.0074615478515625, -0.035064697265625, -0.0164947509765625, 0.03985595703125, -0.007785797119140625, 0.0006022453308105469, -0.035247802734375, 0.0101318359375, -0.00447845458984375, -0.0250091552734375, -0.03851318359375, 0.032073974609375, 0.01529693603515625, -0.01055145263671875, -0.00818634033203125, -0.029205322265625, -0.024932861328125, 0.01007843017578125, -0.0262908935546875, -0.0196990966796875, 0.006893157958984375, -0.0295867919921875, -0.0289764404296875, -0.0209808349609375, -0.0190582275390625, -0.0310211181640625, -0.009429931640625, -0.01556396484375, -0.0208587646484375, 0.0281219482421875, 0.0474853515625, -0.0170135498046875, -0.0261077880859375, -0.0206298828125, -0.0189056396484375, -0.03851318359375, -0.004283905029296875, 0.01629638671875, -0.0102691650390625, 0.01119232177734375, 0.0037326812744140625, 0.029693603515625, 0.031402587890625, -0.0229034423828125, 0.00899505615234375, -0.00505828857421875, -0.0194244384765625, -0.0224151611328125, 0.0237884521484375, -0.00991058349609375, -0.01416778564453125, 0.00983428955078125, -0.030029296875, 0.0220184326171875, 0.0252685546875, 0.01154327392578125, -0.03985595703125, -0.006072998046875, -0.020172119140625, -0.0498046875, -0.0159759521484375, -0.0274505615234375, 0.0219879150390625, -0.0172271728515625, 0.010589599609375, 0.04510498046875, 0.040252685546875, -0.0015392303466796875, -0.01316070556640625, 0.05780029296875, -0.043914794921875, -0.0020389556884765625, 0.034027099609375, -0.00196075439453125, -0.036407470703125, -0.0090789794921875, -0.0045318603515625, 0.0002028942108154297, 0.001758575439453125, 0.023406982421875, 0.0170440673828125, -0.006183624267578125, -0.0419921875, 0.007808685302734375, 0.023590087890625, 0.028656005859375, 0.0006079673767089844, -0.036712646484375, -0.033721923828125, 0.018280029296875, -0.042327880859375, 0.00833892822265625, -0.043304443359375, 0.00008815526962280273, -0.0016469955444335938, -0.0047454833984375, -0.050079345703125, -0.046173095703125, -0.013458251953125, -0.0457763671875, -0.01184844970703125, 0.013397216796875, -0.0090484619140625, 0.01247406005859375, -0.013092041015625, 0.04638671875, -0.00469970703125, -0.016510009765625, 0.0032176971435546875, 0.005268096923828125, -0.0224456787109375, -0.0082244873046875, 0.0262603759765625, -0.020721435546875, -0.043701171875, -0.0293121337890625, 0.002166748046875, -0.040313720703125, 0.041900634765625, -0.00572967529296875, 0.002414703369140625, -0.00870513916015625, -0.00037598609924316406, 0.0281524658203125, 0.06353759765625, -0.062255859375, 0.03271484375, 0.0199432373046875, -0.0035343170166015625, -0.03582763671875, -0.00726318359375, 0.0008988380432128906, -0.0228271484375, -0.025848388671875, 0.04248046875, -0.04437255859375, 0.0274810791015625, -0.03668212890625, 0.0162506103515625, -0.002246856689453125, 0.026031494140625, 0.0012989044189453125, 0.02813720703125, 0.0229644775390625, 0.0247039794921875, -0.03411865234375, -0.017913818359375, -0.042816162109375, -0.025726318359375, 0.02386474609375, 0.033905029296875, -0.013702392578125, 0.0006895065307617188, -0.0225677490234375, -0.045440673828125, -0.0277252197265625, 0.050048828125, 0.06866455078125, -0.033721923828125, 0.0008702278137207031, -0.031219482421875, 0.08209228515625, -0.01416778564453125, 0.00797271728515625, 0.0156097412109375, 0.0274200439453125, 0.017730712890625, -0.03900146484375, 0.01161956787109375, 0.0144195556640625, -0.01922607421875, -0.004489898681640625, 0.03857421875, 0.02801513671875, 0.0180511474609375, 0.0142822265625, 0.0148468017578125, 0.02215576171875, -0.033843994140625, 0.0197906494140625, -0.0096435546875, 0.0148773193359375, 0.059600830078125, -0.0121612548828125, -0.00696563720703125, 0.00689697265625, -0.0119476318359375, -0.0029144287109375, 0.0183563232421875, 0.029449462890625, 0.0175323486328125, -0.0034351348876953125, 0.012908935546875, -0.004161834716796875, 0.004756927490234375, -0.026031494140625, 0.0193634033203125, 0.006740570068359375, -0.01039886474609375, 0.033111572265625, 0.0176849365234375, -0.003662109375, -0.0225067138671875, 0.0160064697265625, 0.01097869873046875, 0.016265869140625, -0.0282440185546875, -0.0677490234375, -0.00521087646484375, 0.003871917724609375, 0.0205841064453125, 0.01702880859375, -0.044830322265625, 0.0113372802734375, 0.0311737060546875, -0.0089874267578125, 0.0015010833740234375, -0.021087646484375, -0.058502197265625, 0.020965576171875, 0.0660400390625, -0.0186309814453125, -0.0218048095703125, 0.022857666015625, 0.0025501251220703125, -0.04522705078125, 0.0281219482421875, -0.0080718994140625, -0.035308837890625, -0.04034423828125, -0.0506591796875, 0.0433349609375, -0.052886962890625, -0.00821685791015625, 0.0660400390625, -0.004398345947265625, 0.013916015625, -0.019866943359375, -0.00888824462890625, -0.019989013671875, 0.005664825439453125, -0.0175323486328125, -0.019989013671875, -0.048095703125, 0.01125335693359375, 0.058990478515625, 0.04376220703125, 0.046661376953125, 0.01044464111328125, 0.020263671875, 0.06280517578125, -0.052642822265625, -0.131103515625, -0.0250091552734375, -0.062225341796875, -0.0122528076171875, -0.004138946533203125, -0.0248565673828125, 0.0180816650390625, -0.0039043426513671875, 0.00144195556640625, 0.00508880615234375, 0.000028431415557861328, -0.0272064208984375, -0.015838623046875, -0.04425048828125, 0.0208892822265625, 0.00861358642578125, 0.0182037353515625, 0.004306793212890625, 0.1219482421875, 0.0286102294921875, -0.09014892578125, -0.004695892333984375, 0.00783538818359375, -0.034088134765625, 0.037353515625, 0.046478271484375, -0.0419921875, 0.00785064697265625, -0.0064544677734375, 0.06024169921875, 0.039642333984375, -0.043060302734375, 0.00533294677734375, -0.016082763671875, -0.004425048828125, 0.0286407470703125, 0.00753021240234375, -0.01029205322265625, 0.019866943359375, 0.03948974609375, -0.031005859375, -0.02008056640625, -0.003963470458984375, -0.0177154541015625, 0.03271484375, -0.00984954833984375, 0.00952911376953125, -0.004421234130859375, 0.048736572265625, 0.0171966552734375, 0.003177642822265625, 0.01995849609375, -0.0157623291015625, 0.02471923828125, 0.0178070068359375, 0.031951904296875, -0.0196380615234375, 0.0183868408203125, -0.03472900390625, 0.0266876220703125, 0.01468658447265625, 0.00099945068359375, 0.0133209228515625, -0.010101318359375, -0.005855560302734375, -0.044189453125, 0.035491943359375, -0.034210205078125, 0.021026611328125, -0.035919189453125, -0.0236968994140625, -0.004978179931640625, 0.08245849609375, -0.0216522216796875, -0.019256591796875, 0.004039764404296875, 0.00823974609375, -0.02642822265625, 0.0013723373413085938, -0.0224456787109375, -0.010650634765625, -0.0726318359375, 0.010772705078125, 0.00684356689453125, -0.03643798828125, -0.034393310546875, 0.018890380859375, -0.07244873046875, -0.0233306884765625, 0.034820556640625, -0.032806396484375, -0.0200347900390625, 0.06597900390625, -0.046417236328125, 0.035491943359375, -0.037750244140625, -0.00710296630859375, -0.07269287109375, -0.016571044921875, 0.0186920166015625, 0.03619384765625, -0.0026149749755859375, -0.0355224609375, -0.010162353515625, 0.04412841796875, 0.0180816650390625, 0.0298004150390625, 0.0374755859375, -0.017608642578125, 0.0474853515625, 0.028167724609375, 0.03778076171875, -0.018524169921875, -0.0064544677734375, -0.020904541015625, 0.01103973388671875, 0.00890350341796875, -0.037689208984375, -0.00469207763671875, -0.0440673828125, -0.0072784423828125, 0.01568603515625, 0.0014209747314453125, -0.041656494140625, 0.0205535888671875, -0.0285491943359375, -0.01552581787109375, 0.0005025863647460938, -0.0217437744140625, 0.049285888671875, 0.0144805908203125, -0.014312744140625, 0.0038318634033203125, 0.08453369140625, 0.0198516845703125, -0.0296478271484375, -0.076904296875, 0.005092620849609375, 0.0147705078125, 0.0168304443359375, 0.03326416015625, -0.024932861328125, -0.00556182861328125, 0.05694580078125, -0.01922607421875, -0.0160064697265625, -0.0101165771484375, 0.04150390625, 0.0029430389404296875, -0.00475311279296875, 0.00494384765625, -0.024017333984375, 0.028472900390625, 0.033538818359375, 0.005962371826171875, -0.05047607421875, 0.023345947265625, 0.066162109375, -0.0247039794921875, 0.01361846923828125, -0.03472900390625, -0.04248046875, 0.019256591796875, -0.0105133056640625, -0.01169586181640625, -0.00005513429641723633, 0.0069732666015625, -0.0119171142578125, -0.0005526542663574219, 0.02032470703125, -0.02374267578125, 0.006481170654296875, -0.046875, 0.0243377685546875, -0.0031414031982421875, 0.00217437744140625, 0.0021076202392578125, -0.00846099853515625, 0.06903076171875, 0.003223419189453125, -0.0249786376953125, -0.03387451171875, -0.0157928466796875, 0.0026092529296875, 0.00531005859375, -0.0193939208984375, 0.0016145706176757812, 0.037200927734375, 0.0004410743713378906, 0.015716552734375, -0.0219268798828125, 0.03436279296875, -0.0125885009765625, 0.040008544921875, 0.0250396728515625, -0.0028514862060546875, 0.0029754638671875, 0.060821533203125, -0.0010213851928710938, 0.0256195068359375, -0.03375244140625, 0.01531219482421875, 0.0124053955078125, 0.0189361572265625, 0.024627685546875, -0.002758026123046875, 0.004863739013671875, -0.00736236572265625, 0.00617218017578125, 0.00878143310546875, 0.015228271484375, -0.0283203125, -0.04937744140625, -0.033355712890625, 0.003955841064453125, 0.07470703125, 0.0169525146484375, -0.0279693603515625, -0.006107330322265625, 0.032806396484375, 0.0267333984375, -0.0087738037109375, -0.065185546875, -0.0286407470703125, 0.04901123046875, 0.003360748291015625, 0.04107666015625, -0.0233917236328125, 0.0599365234375, -0.0201263427734375, 0.068603515625, -0.03656005859375, -0.05804443359375, 0.0204925537109375, -0.019622802734375, -0.0171356201171875, 0.01448822021484375, 0.0158843994140625, -0.02264404296875, -0.0203704833984375, 0.036102294921875, -0.02252197265625, 0.0400390625, -0.04638671875, 0.012542724609375, -0.048492431640625, 0.0047760009765625, 0.048919677734375, 0.0206756591796875, -0.0191192626953125, -0.0194549560546875, -0.055419921875, -0.021697998046875, -0.0279998779296875, -0.04541015625, -0.0193328857421875, 0.00655364990234375, 0.00302886962890625, 0.04827880859375, -0.00815582275390625, -0.042572021484375, -0.0177154541015625, -0.0169830322265625, -0.0154571533203125, 0.01406097412109375, 0.00627899169921875, 0.08673095703125, -0.0245361328125, 0.08233642578125, 0.01375579833984375, 0.01947021484375, -0.033233642578125, -0.01806640625, 0.030792236328125, -0.04608154296875, -0.045440673828125, -0.021026611328125, -0.046417236328125, -0.0187530517578125, -0.00835418701171875, -0.0113067626953125, 0.05548095703125, -0.0209808349609375, 0.0009112358093261719, -0.00664520263671875, -0.01190948486328125, -0.036163330078125, 0.04962158203125, 0.0191802978515625, -0.006927490234375, 0.034423828125, -0.00992584228515625, 0.0113372802734375, -0.004489898681640625, -0.01416015625, 0.022552490234375, -0.0204010009765625, -0.036102294921875, 0.0430908203125, 0.064453125, 0.026611328125, 0.042938232421875, -0.01531982421875, 0.02069091796875, 0.006732940673828125, 0.019256591796875, -0.0023860931396484375, -0.01242828369140625, 0.050750732421875, 0.004547119140625, -0.0210113525390625, 0.01568603515625, -0.0212860107421875, 0.0294036865234375, 0.0161590576171875, 0.054656982421875, -0.053985595703125, 0.031280517578125, 0.01079559326171875, 0.0019397735595703125, 0.058380126953125, -0.009246826171875, 0.01198577880859375, 0.0367431640625, 0.01239013671875, -0.0236663818359375, -0.02264404296875, 0.01244354248046875, -0.01508331298828125, -0.00458526611328125, -0.029327392578125, 0.00260162353515625, -0.0105133056640625, -0.0257415771484375, -0.004459381103515625, 0.00800323486328125, -0.00445556640625, -0.02276611328125, -0.00432586669921875, -0.0017108917236328125, 0.006683349609375, -0.058837890625, 0.006351470947265625, -0.0538330078125, 0.017578125, 0.0045928955078125, 0.0031452178955078125, 0.033599853515625, 0.04461669921875, 0.00429534912109375, -0.029815673828125, 0.020660400390625, -0.0269927978515625, -0.0056304931640625, -0.04327392578125, 0.017852783203125, 0.046600341796875, -0.0228424072265625, 0.0208740234375, 0.02813720703125, -0.03826904296875, -0.01366424560546875, -0.0234527587890625, 0.073974609375, -0.038299560546875, -0.0016794204711914062, 0.025543212890625, 0.050628662109375, -0.01922607421875, 0.010528564453125, 0.0269775390625, -0.027618408203125, -0.0116424560546875, 0.0192718505859375, 0.00545501708984375, -0.00377655029296875, 0.01174163818359375, -0.047821044921875, 0.11761474609375, 0.000027239322662353516, 0.0170440673828125, 0.00875091552734375, 0.044952392578125, -0.033782958984375, 0.0258636474609375, -0.044677734375, 0.06842041015625, 0.0018529891967773438, 0.07049560546875, -0.093505859375, -0.0291290283203125, 0.0042266845703125, 0.0684814453125, 0.0694580078125, 0.00843048095703125, -0.0662841796875, -0.0010852813720703125, 0.1075439453125, 0.0694580078125, 0.038726806640625, 0.052276611328125, -0.0026416778564453125, 0.0570068359375, 0.038330078125, -0.003101348876953125, 0.04473876953125, 0.0032367706298828125, -0.07147216796875, 0.02288818359375, 0.02508544921875, 0.022552490234375, -0.0154571533203125, -0.0274505615234375, -0.03631591796875, -0.00798797607421875, 0.039520263671875, 0.0033092498779296875, 0.0300445556640625, 0.0227813720703125, 0.051849365234375, -0.06207275390625, -0.056182861328125, -0.00720977783203125, 0.033294677734375, 0.0232086181640625, 0.004978179931640625, 0.035888671875, 0.0254364013671875, 0.03338623046875, -0.04266357421875, -0.003032684326171875, -0.0152435302734375, -0.0215606689453125, 0.06634521484375, -0.00511932373046875, 0.015838623046875, -0.04962158203125, 0.017181396484375, 0.0377197265625, 0.06689453125, -0.042022705078125, 0.00830841064453125, 0.0230865478515625, -0.0226898193359375, -0.028533935546875, -0.059539794921875, -0.0513916015625, -0.0178680419921875, -0.018035888671875, -0.0228271484375, 0.01190185546875, 0.0306549072265625, 0.01194000244140625, 0.00536346435546875, 0.03582763671875, -0.0545654296875, -0.0008478164672851562, -0.050994873046875, 0.0197906494140625, 0.01910400390625, 0.021575927734375, -0.00438690185546875, 0.060211181640625, 0.02386474609375, -0.0038852691650390625, -0.01641845703125, 0.01064300537109375, 0.003177642822265625, 0.0194854736328125, -0.01221466064453125, 0.005283355712890625, -0.001186370849609375, 0.0135955810546875, -0.006855010986328125, 0.0238800048828125, 0.039276123046875, 0.054046630859375, 0.00011539459228515625, -0.01494598388671875, 0.035552978515625, -0.00788116455078125, -0.058502197265625, -0.031646728515625, -0.00572967529296875, 0.029205322265625, 0.0088653564453125, 0.033935546875, 0.0174407958984375, 0.0187530517578125, -0.01171875, 0.028839111328125, -0.0020732879638671875, -0.0013484954833984375, 0.046966552734375, -0.0147247314453125, 0.043243408203125, 0.00185394287109375, -0.02630615234375, 0.00525665283203125, -0.04278564453125, -0.047393798828125, 0.02520751953125, 0.045501708984375, 0.0191650390625, -0.01708984375, -0.004909515380859375, -0.0196685791015625, 0.002979278564453125, -0.005138397216796875, 0.021392822265625, 0.0143280029296875, -0.00409698486328125, 0.0048370361328125, -0.05523681640625, -0.0241241455078125, 0.01074981689453125, 0.0020751953125, -0.004558563232421875, 0.01251220703125, 0.03619384765625, 0.003055572509765625, 0.00678253173828125, -0.01171875, -0.0035114288330078125, -0.00811767578125, 0.0609130859375, -0.03179931640625, -0.02606201171875, 0.0018901824951171875, 0.01183319091796875, -0.022674560546875, 0.058258056640625, -0.06695556640625, -0.017303466796875, -0.01352691650390625, 0.0250244140625, -0.0465087890625, -0.0169677734375, -0.03564453125, 0.005245208740234375, 0.0254669189453125, -0.007007598876953125, -0.0015153884887695312, -0.020111083984375, -0.004970550537109375, 0.00995635986328125, 0.0257110595703125, -0.05255126953125, 0.061126708984375, -0.05072021484375, 0.10931396484375, 0.0616455078125, -0.002811431884765625, 0.0335693359375, -0.004131317138671875, -0.0249176025390625, 0.040863037109375, 0.0177154541015625, -0.0191192626953125, 0.0200653076171875, -0.01467132568359375, -0.022918701171875, 0.0033359527587890625, 0.02813720703125, 0.00928497314453125, 0.00008386373519897461, -0.0066375732421875, -0.018096923828125, -0.021942138671875, -0.0084991455078125, -0.0338134765625, -0.0149688720703125, 0.0168914794921875, 0.02093505859375, 0.015228271484375, 0.008087158203125, -0.0297393798828125, -0.0225830078125, 0.01666259765625, 0.00281524658203125, -0.01476287841796875, 0.009063720703125, -0.0168304443359375, -0.04620361328125, 0.003360748291015625, -0.04376220703125, 0.003856658935546875, 0.00548553466796875, -0.0006756782531738281, -0.0160064697265625, -0.04376220703125, 0.0153656005859375, -0.01221466064453125, -0.00980377197265625, 0.004123687744140625, 0.01189422607421875, -0.007030487060546875, 0.00850677490234375, -0.0238037109375, 0.033416748046875, -0.03741455078125, 0.0077362060546875, 0.048126220703125, -0.00006401538848876953, -0.051116943359375, -0.07220458984375, 0.01837158203125, -0.037017822265625, 0.0256805419921875, 0.00846099853515625, 0.006748199462890625, 0.04449462890625, -0.01959228515625, -0.09814453125, 0.039337158203125, -0.0147552490234375, -0.040771484375, -0.0217132568359375, -0.00428009033203125, -0.0038318634033203125, 0.025360107421875, 0.0151519775390625, -0.056793212890625, -0.03924560546875, -0.0010690689086914062, 0.01529693603515625, 0.040374755859375, 0.003032684326171875, 0.0555419921875, -0.10650634765625, 0.006931304931640625, -0.0439453125, 0.020751953125, -0.003780364990234375, 0.0023403167724609375, 0.004703521728515625, 0.01141357421875, -0.048492431640625, -0.0168609619140625, -0.00023806095123291016, 0.036102294921875, -0.017913818359375, -0.01287841796875, -0.037261962890625, -0.0102386474609375, 0.04840087890625, 0.10498046875, 0.0178375244140625, -0.045623779296875, 0.00864410400390625, -0.024261474609375, -0.0180816650390625, -0.0219879150390625, 0.016754150390625, -0.059356689453125, -0.03607177734375, 0.0194854736328125, -0.0155181884765625, 0.0179595947265625, 0.01934814453125, -0.02557373046875, 0.01300048828125, 0.01947021484375, -0.0076751708984375, -0.09881591796875, 0.053955078125, 0.03814697265625, -0.052978515625, -0.0227508544921875, -0.004596710205078125, -0.0191650390625, -0.004856109619140625, -0.033660888671875, -0.0010709762573242188, 0.005100250244140625, -0.0010614395141601562, 0.004360198974609375, 0.018280029296875, 0.006618499755859375, 0.0105133056640625, -0.00045490264892578125, -0.0178375244140625, -0.0024127960205078125, -0.01308441162109375, -0.0297698974609375, -0.01549530029296875, 0.0159912109375, -0.005489349365234375, 0.07891845703125, -0.0031681060791015625, 0.06732177734375, 0.00428009033203125, 0.0160369873046875, -0.00890350341796875, 0.003543853759765625, 0.0257415771484375, -0.0247344970703125, 0.01276397705078125, 0.00206756591796875, -0.017425537109375, 0.0173492431640625, -0.032684326171875, -0.0268096923828125, -0.0286102294921875, -0.0142364501953125 ]
f4e9f98c0723ce7c0b0c379b4562df57044df1a8
Wordpress Stackexchange Q: How to add the category ID to admin page I want to add the categories ID to admin page. I call it for my functions.php: require_once('includes/categories_custom_id.php'); The part of code: function categoriesColumnsHeader($columns) { $columns['catID'] = __('ID'); return $columns; } add_filter( 'manage_categories_columns', 'categoriesColumnsHeader' ); function categoriesColumnsRow($argument, $columnName, $categoryID){ if($columnName == 'catID'){ return $categoryID; } } add_filter( 'manage_categories_custom_column', 'categoriesColumnsRow', 10, 3 ); But it doesn't work. Any idea, how to do that? Thanks in advance. A: The hooks for taxonomies are: * *"manage_edit-${taxonomy}_columns" for the header *"manage_edit-${taxonomy}_sortable_columns" to make columns sortable *"manage_${taxonomy}_custom_column" for the cell content To catch all taxonomies write: foreach ( get_taxonomies() as $taxonomy ) { add_action( "manage_edit-${taxonomy}_columns", 't5_add_col' ); add_filter( "manage_edit-${taxonomy}_sortable_columns", 't5_add_col' ); add_filter( "manage_${taxonomy}_custom_column", 't5_show_id', 10, 3 ); } add_action( 'admin_print_styles-edit-tags.php', 't5_tax_id_style' ); function t5_add_col( $columns ) { return $columns + array ( 'tax_id' => 'ID' ); } function t5_show_id( $v, $name, $id ) { return 'tax_id' === $name ? $id : $v; } function t5_tax_id_style() { print '<style>#tax_id{width:4em}</style>'; }
Q: How to add the category ID to admin page I want to add the categories ID to admin page. I call it for my functions.php: require_once('includes/categories_custom_id.php'); The part of code: function categoriesColumnsHeader($columns) { $columns['catID'] = __('ID'); return $columns; } add_filter( 'manage_categories_columns', 'categoriesColumnsHeader' ); function categoriesColumnsRow($argument, $columnName, $categoryID){ if($columnName == 'catID'){ return $categoryID; } } add_filter( 'manage_categories_custom_column', 'categoriesColumnsRow', 10, 3 ); But it doesn't work. Any idea, how to do that? Thanks in advance. A: The hooks for taxonomies are: * *"manage_edit-${taxonomy}_columns" for the header *"manage_edit-${taxonomy}_sortable_columns" to make columns sortable *"manage_${taxonomy}_custom_column" for the cell content To catch all taxonomies write: foreach ( get_taxonomies() as $taxonomy ) { add_action( "manage_edit-${taxonomy}_columns", 't5_add_col' ); add_filter( "manage_edit-${taxonomy}_sortable_columns", 't5_add_col' ); add_filter( "manage_${taxonomy}_custom_column", 't5_show_id', 10, 3 ); } add_action( 'admin_print_styles-edit-tags.php', 't5_tax_id_style' ); function t5_add_col( $columns ) { return $columns + array ( 'tax_id' => 'ID' ); } function t5_show_id( $v, $name, $id ) { return 'tax_id' === $name ? $id : $v; } function t5_tax_id_style() { print '<style>#tax_id{width:4em}</style>'; } A: You had it almost all right, but the hook names, where did you get those from? The following are the correct ones. I'm adding two extra functions, one will add our column as the first one (instead of being the last, I guess it makes more sense for an ID column). And the second is a simple CSS fix for the column width. Code based in this Q&A: Multisite - Protect categories from deletion? add_filter( 'manage_edit-category_columns', 'wpse_77532_cat_edit_columns' ); add_filter( 'manage_category_custom_column', 'wpse_77532_cat_custom_columns', 10, 3 ); add_action( 'admin_head-edit-tags.php', 'wpse_77532_column_width' ); /** * Register the ID column */ function wpse_77532_cat_edit_columns( $columns ) { $in = array( "cat_id" => "ID" ); $columns = wpse_77532_array_push_after( $columns, $in, 0 ); return $columns; } /** * Print the ID column */ function wpse_77532_cat_custom_columns( $value, $name, $cat_id ) { if( 'cat_id' == $name ) echo $cat_id; } /** * CSS to reduce the column width */ function wpse_77532_column_width() { // Tags page, exit earlier if( 'category' != $_GET['taxonomy'] ) return; echo '<style>.column-cat_id {width:3%}</style>'; } /** * Insert an element at the beggining of the array */ function wpse_77532_array_push_after( $src, $in, $pos ) { if ( is_int( $pos ) ) $R = array_merge( array_slice( $src, 0, $pos + 1 ), $in, array_slice( $src, $pos + 1 ) ); else { foreach ( $src as $k => $v ) { $R[$k] = $v; if ( $k == $pos ) $R = array_merge( $R, $in ); } } return $R; } Result:
wordpress
{ "language": "en", "length": 405, "provenance": "stackexchange_00019.jsonl.gz:427217", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77532" }
[ 0.04937744140625, 0.0131683349609375, 0.00983428955078125, -0.056610107421875, 0.029205322265625, -0.013092041015625, -0.005859375, -0.01406097412109375, -0.0010442733764648438, -0.007053375244140625, -0.0088348388671875, -0.01763916015625, -0.01099395751953125, -0.042083740234375, 0.01153564453125, -0.030670166015625, 0.02606201171875, -0.043426513671875, -0.0009255409240722656, 0.0022735595703125, 0.0019407272338867188, 0.007564544677734375, 0.024169921875, 0.0020771026611328125, 0.019195556640625, -0.0174102783203125, 0.0146331787109375, -0.029693603515625, 0.021270751953125, -0.02227783203125, 0.0036144256591796875, 0.014190673828125, 0.00666046142578125, 0.0083770751953125, 0.01442718505859375, 0.0165863037109375, 0.05682373046875, -0.0135650634765625, 0.03717041015625, 0.003559112548828125, 0.05133056640625, -0.023773193359375, -0.000885009765625, 0.0085296630859375, -0.00632476806640625, -0.035430908203125, 0.0460205078125, -0.0236053466796875, -0.0022678375244140625, -0.0223846435546875, 0.0106353759765625, 0.03924560546875, 0.0284423828125, -0.02777099609375, 0.0008106231689453125, 0.010772705078125, -0.0186920166015625, -0.01454925537109375, 0.0355224609375, 0.01360321044921875, -0.0241241455078125, -0.0380859375, 0.01934814453125, -0.055908203125, 0.0132904052734375, 0.0197601318359375, 0.064697265625, 0.0085906982421875, -0.028472900390625, -0.01043701171875, -0.0005359649658203125, -0.02227783203125, 0.004669189453125, -0.0029048919677734375, -0.034759521484375, -0.0200347900390625, 0.031585693359375, -0.01678466796875, 0.01468658447265625, -0.0033893585205078125, 0.0230712890625, -0.046783447265625, 0.005741119384765625, 0.00848388671875, 0.013275146484375, 0.041046142578125, -0.004787445068359375, -0.025543212890625, -0.017181396484375, -0.0210723876953125, -0.01306915283203125, -0.060760498046875, -0.0214691162109375, 0.00543975830078125, -0.0038852691650390625, -0.026641845703125, 0.00571441650390625, 0.06756591796875, -0.00335693359375, 0.01983642578125, -0.0028514862060546875, -0.03564453125, 0.0240020751953125, -0.0604248046875, 0.0199737548828125, 0.0144500732421875, -0.0291290283203125, -0.007450103759765625, 0.032928466796875, 0.0198974609375, -0.005245208740234375, -0.003814697265625, 0.0181427001953125, 0.01800537109375, -0.0249786376953125, -0.0165252685546875, -0.00634765625, -0.021270751953125, -0.039031982421875, -0.01446533203125, 0.0004284381866455078, 0.007450103759765625, -0.00873565673828125, -0.009521484375, 0.0088348388671875, -0.0201263427734375, -0.0322265625, 0.004734039306640625, 0.033477783203125, -0.0196533203125, -0.054351806640625, 0.01824951171875, 0.11297607421875, 0.05181884765625, 0.04736328125, -0.0127410888671875, 0.0159149169921875, -0.0249176025390625, 0.0011138916015625, -0.0149383544921875, 0.0189666748046875, 0.01262664794921875, 0.016387939453125, -0.00152587890625, -0.0308837890625, 0.0159759521484375, 0.0179901123046875, -0.00011205673217773438, -0.0208892822265625, -0.03643798828125, -0.0159759521484375, -0.0158233642578125, 0.0751953125, -0.01531982421875, -0.0726318359375, 0.02886962890625, 0.0076141357421875, -0.01337432861328125, -0.08660888671875, -0.04437255859375, 0.0264434814453125, 0.005397796630859375, 0.008148193359375, -0.0426025390625, -0.072998046875, 0.01210784912109375, -0.056671142578125, -0.0192108154296875, 0.01534271240234375, 0.026092529296875, 0.0390625, 0.0301361083984375, 0.0019121170043945312, 0.01026153564453125, 0.002498626708984375, -0.02264404296875, -0.031341552734375, -0.010986328125, 0.0285491943359375, 0.0274505615234375, -0.0130615234375, -0.03582763671875, 0.00048279762268066406, 0.0098724365234375, -0.04534912109375, 0.0330810546875, 0.0224761962890625, 0.11614990234375, 0.0004887580871582031, 0.0361328125, 0.007965087890625, -0.0214385986328125, -0.03680419921875, -0.0179595947265625, 0.0156097412109375, 0.0032978057861328125, -0.0249176025390625, -0.0105743408203125, 0.00296783447265625, 0.01552581787109375, -0.0128021240234375, 0.0155029296875, -0.006504058837890625, 0.0084075927734375, -0.043853759765625, 0.013946533203125, -0.031646728515625, 0.05035400390625, -0.0291748046875, -0.010833740234375, 0.01020050048828125, -0.04132080078125, 0.0128936767578125, -0.022552490234375, -0.0172882080078125, 0.015045166015625, 0.003528594970703125, -0.021484375, -0.0052337646484375, -0.01488494873046875, 0.0017910003662109375, 0.0179443359375, -0.0225830078125, 0.0214996337890625, -0.0005359649658203125, -0.0032329559326171875, -0.02459716796875, -0.016510009765625, -0.0284576416015625, 0.0158538818359375, -0.036773681640625, 0.03387451171875, 0.042144775390625, 0.003780364990234375, -0.0260772705078125, -0.001102447509765625, -0.0156707763671875, -0.11041259765625, 0.0011396408081054688, 0.07073974609375, 0.031585693359375, -0.00017976760864257812, -0.0021343231201171875, 0.0058746337890625, 0.032684326171875, -0.007537841796875, 0.02191162109375, -0.015869140625, -0.0029926300048828125, 0.043365478515625, 0.019561767578125, 0.0251007080078125, 0.00473785400390625, -0.004764556884765625, 0.023162841796875, 0.032135009765625, -0.035552978515625, -0.031036376953125, 0.0185089111328125, -0.0172271728515625, 0.01285552978515625, -0.06561279296875, -0.0328369140625, -0.016571044921875, 0.0233612060546875, 0.046600341796875, 0.0408935546875, 0.031768798828125, -0.041900634765625, 0.0236053466796875, 0.0254058837890625, 0.01580810546875, -0.01113128662109375, 0.0023746490478515625, -0.0010194778442382812, -0.0037899017333984375, -0.0265960693359375, 0.0162811279296875, -0.007801055908203125, -0.0019550323486328125, -0.0104827880859375, 0.06488037109375, -0.00858306884765625, -0.0141448974609375, -0.0245819091796875, -0.030029296875, -0.00586700439453125, -0.0194091796875, -0.0197906494140625, -0.044952392578125, 0.0007848739624023438, 0.01238250732421875, -0.047393798828125, 0.03778076171875, 0.0005130767822265625, -0.034149169921875, 0.023834228515625, 0.00121307373046875, 0.012054443359375, -0.03204345703125, 0.041595458984375, 0.0345458984375, -0.024688720703125, 0.0084991455078125, 0.00394439697265625, 0.0026874542236328125, 0.0257110595703125, 0.0139312744140625, 0.005573272705078125, -0.017333984375, 0.01983642578125, 0.06402587890625, 0.03131103515625, 0.053070068359375, -0.025634765625, -0.056640625, -0.0214385986328125, 0.0143280029296875, -0.0701904296875, -0.052886962890625, 0.011199951171875, 0.004482269287109375, -0.0115814208984375, 0.0005207061767578125, -0.013275146484375, 0.00029730796813964844, 0.0011587142944335938, -0.003734588623046875, 0.023162841796875, -0.04241943359375, -0.04608154296875, -0.051116943359375, -0.0640869140625, -0.0428466796875, 0.001026153564453125, -0.0050048828125, 0.01200103759765625, 0.06170654296875, 0.01111602783203125, -0.07257080078125, 0.037139892578125, -0.036163330078125, -0.021209716796875, 0.0655517578125, 0.0231781005859375, -0.0517578125, 0.02679443359375, -0.007709503173828125, 0.0196075439453125, 0.0430908203125, -0.032073974609375, -0.00411224365234375, -0.04156494140625, 0.006328582763671875, -0.0069427490234375, 0.002346038818359375, 0.052581787109375, 0.0123138427734375, 0.0159912109375, -0.024505615234375, 0.0159912109375, -0.007762908935546875, 0.01267242431640625, 0.044921875, -0.00820159912109375, -0.039642333984375, -0.0015001296997070312, 0.03448486328125, -0.0003502368927001953, -0.00238037109375, 0.01544189453125, -0.0293426513671875, -0.014129638671875, 0.0106964111328125, 0.0221405029296875, 0.008270263671875, 0.004192352294921875, -0.004222869873046875, -0.03057861328125, -0.0115203857421875, 0.0418701171875, 0.0029811859130859375, 0.0305938720703125, -0.0267486572265625, -0.0697021484375, 0.038604736328125, -0.0300140380859375, -0.02520751953125, -0.028411865234375, -0.0124969482421875, 0.01451873779296875, 0.0699462890625, -0.02337646484375, -0.03375244140625, 0.003803253173828125, 0.0149078369140625, 0.0014495849609375, -0.031097412109375, 0.0016880035400390625, -0.0276947021484375, -0.0908203125, 0.0194091796875, -0.012115478515625, -0.01407623291015625, -0.02691650390625, 0.040313720703125, -0.056732177734375, -0.0391845703125, 0.04443359375, 0.002349853515625, -0.0226593017578125, 0.052947998046875, -0.029754638671875, 0.025909423828125, -0.0290374755859375, 0.0068817138671875, -0.09613037109375, -0.020172119140625, -0.023468017578125, 0.069580078125, -0.0011053085327148438, 0.01214599609375, -0.03912353515625, 0.03363037109375, 0.0240325927734375, 0.022064208984375, 0.007076263427734375, 0.0260162353515625, -0.0162200927734375, -0.07275390625, -0.0016069412231445312, -0.06396484375, -0.03704833984375, -0.03216552734375, 0.0079193115234375, 0.040191650390625, -0.009979248046875, 0.00762176513671875, -0.0092010498046875, 0.0054931640625, -0.057891845703125, -0.04638671875, -0.03302001953125, -0.0281982421875, -0.05078125, 0.004791259765625, -0.00983428955078125, -0.035736083984375, 0.055511474609375, -0.002094268798828125, 0.017120361328125, -0.006687164306640625, 0.103271484375, 0.0234222412109375, -0.02447509765625, -0.02349853515625, 0.0268096923828125, 0.0391845703125, -0.0421142578125, 0.053680419921875, 0.0220184326171875, -0.03155517578125, 0.07501220703125, -0.0018100738525390625, -0.013946533203125, -0.05401611328125, 0.080322265625, -0.0122833251953125, -0.02496337890625, 0.0260009765625, -0.040435791015625, 0.048614501953125, -0.004627227783203125, -0.030426025390625, -0.01137542724609375, -0.035888671875, 0.034271240234375, 0.0050201416015625, 0.043243408203125, -0.0249176025390625, -0.003143310546875, 0.00981903076171875, -0.047943115234375, 0.04400634765625, 0.0088958740234375, 0.0009908676147460938, -0.006031036376953125, -0.0168304443359375, 0.006557464599609375, 0.011688232421875, 0.003932952880859375, -0.004146575927734375, 0.03314208984375, 0.005512237548828125, 0.0012960433959960938, 0.0029201507568359375, -0.004791259765625, 0.04730224609375, -0.005733489990234375, -0.01197052001953125, -0.025238037109375, -0.01071929931640625, 0.005397796630859375, 0.0023860931396484375, -0.01355743408203125, 0.00955963134765625, 0.006649017333984375, 0.007686614990234375, 0.005504608154296875, -0.051849365234375, 0.0295867919921875, -0.0217742919921875, -0.014678955078125, 0.0040130615234375, -0.0241241455078125, 0.0251312255859375, -0.005817413330078125, 0.0309600830078125, -0.01447296142578125, -0.023956298828125, 0.048797607421875, 0.033905029296875, 0.0182647705078125, 0.00415802001953125, -0.0123748779296875, -0.0013704299926757812, 0.01085662841796875, -0.0161285400390625, -0.0303955078125, 0.034332275390625, -0.0178070068359375, 0.024993896484375, -0.00592041015625, -0.03619384765625, 0.035736083984375, -0.042755126953125, -0.0216064453125, -0.0021514892578125, -0.01509857177734375, -0.043060302734375, -0.0190582275390625, -0.00030541419982910156, 0.001659393310546875, -0.00727081298828125, -0.0024776458740234375, 0.0160980224609375, -0.0184173583984375, 0.0177764892578125, -0.027496337890625, 0.0283050537109375, -0.03106689453125, -0.03662109375, -0.03253173828125, -0.01416015625, 0.002880096435546875, -0.04742431640625, -0.03515625, 0.01090240478515625, -0.0091400146484375, 0.0213775634765625, 0.00030803680419921875, 0.06817626953125, 0.00981903076171875, -0.07489013671875, 0.0204925537109375, 0.005733489990234375, 0.04071044921875, 0.025360107421875, 0.00029158592224121094, -0.0178680419921875, -0.040771484375, -0.01885986328125, -0.0230560302734375, -0.01473236083984375, -0.0024509429931640625, 0.0168609619140625, -0.00196075439453125, 0.0017557144165039062, -0.006641387939453125, -0.027313232421875, -0.046844482421875, 0.018157958984375, 0.059539794921875, 0.0211029052734375, -0.004993438720703125, 0.04827880859375, 0.022491455078125, 0.040863037109375, 0.0275115966796875, 0.0252838134765625, -0.01507568359375, -0.0291595458984375, -0.00748443603515625, -0.0092010498046875, -0.0145111083984375, 0.0037136077880859375, -0.04034423828125, -0.002147674560546875, 0.06732177734375, -0.005474090576171875, 0.02252197265625, -0.026885986328125, -0.0008454322814941406, -0.03009033203125, -0.028961181640625, -0.042724609375, -0.01038360595703125, 0.032745361328125, -0.038543701171875, 0.0247955322265625, -0.00197601318359375, 0.0068511962890625, 0.052337646484375, -0.054107666015625, 0.0665283203125, 0.01303863525390625, -0.06378173828125, 0.0906982421875, 0.06573486328125, 0.0325927734375, 0.038330078125, 0.01523590087890625, 0.0260467529296875, -0.043121337890625, -0.01552581787109375, 0.050537109375, 0.0112152099609375, 0.04052734375, -0.01849365234375, 0.0259857177734375, 0.033721923828125, -0.0178985595703125, -0.002544403076171875, 0.0272674560546875, 0.031890869140625, -0.052154541015625, -0.0006937980651855469, -0.0014066696166992188, -0.01505279541015625, 0.004390716552734375, 0.01751708984375, -0.0150604248046875, -0.012237548828125, 0.006824493408203125, -0.004360198974609375, -0.0178070068359375, 0.013458251953125, 0.0195770263671875, -0.008331298828125, -0.023101806640625, -0.004825592041015625, -0.0041351318359375, 0.0303497314453125, -0.02569580078125, -0.03289794921875, -0.0028896331787109375, 0.0174713134765625, 0.043243408203125, -0.041290283203125, -0.0093841552734375, -0.01525115966796875, 0.0059814453125, 0.002178192138671875, -0.0325927734375, 0.041290283203125, -0.0142364501953125, 0.012176513671875, 0.0182647705078125, -0.0040740966796875, 0.01313018798828125, -0.028533935546875, -0.015838623046875, 0.032958984375, -0.01531982421875, 0.001514434814453125, -0.008026123046875, -0.03857421875, 0.000007450580596923828, -0.0181732177734375, -0.016357421875, -0.0007758140563964844, -0.0018529891967773438, 0.051300048828125, -0.0220794677734375, -0.0222930908203125, 0.035247802734375, -0.004261016845703125, -0.012115478515625, -0.0009202957153320312, 0.048828125, -0.050079345703125, -0.050201416015625, 0.0238800048828125, -0.039031982421875, -0.02874755859375, -0.0011777877807617188, -0.06536865234375, 0.08306884765625, 0.0021648406982421875, 0.01898193359375, -0.0169830322265625, 0.035308837890625, -0.0191497802734375, 0.01239776611328125, -0.0142669677734375, 0.01531219482421875, -0.00905609130859375, 0.007526397705078125, -0.0177764892578125, 0.0029163360595703125, 0.006572723388671875, 0.027496337890625, 0.0855712890625, 0.0164794921875, -0.0268707275390625, -0.00830078125, 0.0452880859375, 0.0223388671875, -0.01380157470703125, 0.0330810546875, -0.0305328369140625, -0.0025997161865234375, 0.0214080810546875, 0.016693115234375, 0.040557861328125, 0.003948211669921875, -0.06396484375, 0.005794525146484375, 0.0096282958984375, 0.035888671875, 0.0216827392578125, -0.010101318359375, -0.01151275634765625, 0.0004258155822753906, 0.0210113525390625, -0.0732421875, -0.0191802978515625, 0.036834716796875, 0.0185546875, -0.02288818359375, -0.0179595947265625, -0.0241241455078125, 0.039794921875, 0.0118408203125, 0.041473388671875, 0.01434326171875, -0.00034308433532714844, 0.07684326171875, 0.006439208984375, 0.011688232421875, 0.029571533203125, 0.000850677490234375, 0.055267333984375, 0.039947509765625, 0.02520751953125, -0.0183868408203125, 0.002460479736328125, 0.0097198486328125, 0.04931640625, -0.03411865234375, -0.03155517578125, 0.01190185546875, 0.021514892578125, 0.0090789794921875, 0.01904296875, 0.0226287841796875, 0.00897216796875, 0.0455322265625, -0.0631103515625, 0.00907135009765625, 0.041229248046875, 0.030242919921875, -0.0006899833679199219, -0.0032634735107421875, -0.053314208984375, -0.00649261474609375, -0.07403564453125, 0.0406494140625, 0.03131103515625, 0.08038330078125, -0.0031585693359375, 0.08184814453125, -0.0116119384765625, -0.0301666259765625, -0.031951904296875, 0.035125732421875, 0.004634857177734375, 0.0295562744140625, -0.02545166015625, -0.0077362060546875, -0.016357421875, 0.034332275390625, -0.0221405029296875, 0.017059326171875, 0.028961181640625, 0.0297088623046875, -0.0208740234375, -0.01256561279296875, 0.0343017578125, -0.034393310546875, 0.0081939697265625, -0.055084228515625, 0.043060302734375, 0.038818359375, 0.012939453125, -0.0034465789794921875, -0.0186004638671875, 0.075927734375, -0.0272064208984375, 0.01110076904296875, 0.001575469970703125, -0.0494384765625, -0.00638580322265625, -0.0125885009765625, 0.034088134765625, 0.00850677490234375, -0.11285400390625, -0.0161590576171875, -0.049530029296875, -0.057769775390625, 0.06201171875, 0.056549072265625, -0.03607177734375, 0.01922607421875, 0.007190704345703125, -0.0302734375, -0.002498626708984375, 0.0138397216796875, 0.006107330322265625, -0.0155029296875, 0.00566864013671875, -0.01473236083984375, -0.0030193328857421875, 0.00785064697265625, 0.000013113021850585938, 0.01348876953125, 0.0278167724609375, 0.037689208984375, -0.007213592529296875, 0.0246124267578125, -0.024627685546875, 0.0188140869140625, -0.0292510986328125, -0.040191650390625, 0.07708740234375, 0.00670623779296875, -0.01229095458984375, 0.00011587142944335938, 0.00215911865234375, 0.01428985595703125, 0.035308837890625, -0.046875, -0.012237548828125, 0.01125335693359375, 0.021240234375, -0.01213836669921875, 0.053375244140625, -0.01349639892578125, -0.034942626953125, -0.060211181640625, -0.0185546875, 0.042877197265625, 0.04571533203125, -0.01206207275390625, 0.009521484375, -0.0004544258117675781, -0.00034427642822265625, 0.0172882080078125, 0.005237579345703125, 0.034637451171875, 0.03692626953125, -0.06268310546875, 0.0016021728515625, 0.040008544921875, -0.0027294158935546875, 0.00968170166015625, 0.0158233642578125, 0.01177215576171875, 0.03424072265625, -0.059295654296875, 0.03253173828125, 0.06298828125, 0.051239013671875, -0.031280517578125, 0.0163116455078125, 0.047576904296875, -0.0236053466796875, 0.024566650390625, 0.0013427734375, -0.04541015625, -0.055206298828125, 0.0101318359375, 0.01113128662109375, -0.0224609375, -0.037689208984375, -0.09063720703125, 0.021820068359375, 0.0094451904296875, -0.004955291748046875, -0.0321044921875, 0.0458984375, -0.033447265625, 0.0287628173828125, -0.0224609375, 0.04595947265625, 0.00249481201171875, 0.039215087890625, -0.05560302734375, -0.004852294921875, -0.016326904296875, -0.006504058837890625, -0.022125244140625, 0.003910064697265625, 0.01019287109375, -0.02447509765625, 0.01070404052734375, 0.01386260986328125, 0.0133209228515625, 0.059844970703125, 0.0122528076171875, -0.0110931396484375, 0.0289306640625, -0.005084991455078125, -0.01351165771484375, -0.042205810546875, -0.00920867919921875, -0.0164337158203125, 0.005146026611328125, 0.00891876220703125, -0.003265380859375, 0.0233306884765625, -0.0260467529296875, -0.0703125, 0.033966064453125, -0.008087158203125, -0.02886962890625, -0.03326416015625, -0.007144927978515625, -0.00965118408203125, -0.01165008544921875, -0.01568603515625, -0.0253448486328125, -0.0183258056640625, 0.03363037109375, 0.002010345458984375, -0.0139312744140625, 0.032928466796875, -0.010711669921875, -0.060638427734375, 0.00865936279296875, 0.0091552734375, 0.0002608299255371094, 0.0239410400390625, -0.040679931640625, 0.0285186767578125, 0.00635528564453125, -0.0645751953125, -0.040283203125, -0.003810882568359375, 0.027557373046875, 0.011810302734375, -0.051727294921875, -0.035858154296875, -0.0345458984375, 0.06610107421875, 0.01678466796875, 0.018798828125, -0.0034198760986328125, -0.02471923828125, -0.052886962890625, -0.039154052734375, -0.013458251953125, 0.0250244140625, -0.08355712890625, 0.00991058349609375, 0.044921875, 0.00803375244140625, -0.01065826416015625, 0.004180908203125, 0.00848388671875, -0.006244659423828125, 0.0626220703125, 0.01348114013671875, -0.032440185546875, 0.034423828125, -0.004222869873046875, -0.044189453125, -0.062408447265625, -0.0132598876953125, -0.00487518310546875, -0.05718994140625, -0.0596923828125, -0.065673828125, -0.0418701171875, -0.0038547515869140625, 0.049560546875, -0.041717529296875, 0.036041259765625, -0.03302001953125, 0.0284423828125, 0.0030364990234375, 0.0269012451171875, -0.01312255859375, 0.015869140625, -0.00176239013671875, 0.017822265625, -0.038421630859375, 0.1209716796875, -0.015625, 0.060546875, -0.0224151611328125, 0.04522705078125, -0.004131317138671875, -0.0021038055419921875, 0.00774383544921875, 0.0164337158203125, 0.0025806427001953125, -0.006378173828125, 0.005153656005859375, -0.051849365234375, 0.0172882080078125, -0.031982421875, 0.00872039794921875, 0.0268707275390625 ]
3c2edcbd0c1bfe2dc05168144a6600c5295edc2f
Wordpress Stackexchange Q: Allow contributor role to upload images and not edit already published articles I have the following two requirements: * *I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones before submitting it for review. *I want to make sure once an article is published that it can't be edited by the contributor (the writer of the plugin with user role contributor) or if it can be edited the newer version isn't updated before going through a submission process. I was recommended the Role Scoper plugin but I couldn't figure out how to do it. Any information about any other plugin or how to do this in Role Scoper would be great. A: You can do all of this using the User Role Editor plugin. I normally tend to avoid answering questions by linking directly to a plugin but in this case, what you need comes in this package.
Q: Allow contributor role to upload images and not edit already published articles I have the following two requirements: * *I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones before submitting it for review. *I want to make sure once an article is published that it can't be edited by the contributor (the writer of the plugin with user role contributor) or if it can be edited the newer version isn't updated before going through a submission process. I was recommended the Role Scoper plugin but I couldn't figure out how to do it. Any information about any other plugin or how to do this in Role Scoper would be great. A: You can do all of this using the User Role Editor plugin. I normally tend to avoid answering questions by linking directly to a plugin but in this case, what you need comes in this package. A: For image upload option to contributors Add this code in your current theme's functions.php if ( current_user_can('contributor') && !current_user_can('upload_files') ) add_action('admin_init', 'allow_contributor_uploads'); function allow_contributor_uploads() { $contributor = get_role('contributor'); $contributor->add_cap('upload_files'); }
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:427238", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77613" }
[ 0.039794921875, 0.002399444580078125, 0.01025390625, -0.0029468536376953125, 0.004802703857421875, -0.0229644775390625, 0.0207366943359375, -0.059661865234375, 0.00135040283203125, 0.0299530029296875, 0.01503753662109375, 0.00373077392578125, -0.007205963134765625, -0.0238494873046875, -0.0265655517578125, -0.009613037109375, 0.0292816162109375, -0.012298583984375, 0.01177215576171875, -0.0198516845703125, 0.006435394287109375, 0.01215362548828125, 0.0047149658203125, 0.028045654296875, 0.025482177734375, 0.049713134765625, -0.0295867919921875, 0.006938934326171875, -0.00812530517578125, 0.0034465789794921875, 0.0199737548828125, -0.034881591796875, 0.01056671142578125, 0.002033233642578125, 0.001758575439453125, 0.00927734375, 0.0211334228515625, -0.001995086669921875, 0.01049041748046875, -0.009307861328125, 0.0188140869140625, 0.01250457763671875, -0.01471710205078125, 0.030487060546875, -0.016326904296875, -0.054931640625, 0.03533935546875, -0.0308990478515625, 0.023193359375, 0.0217742919921875, -0.007717132568359375, -0.003505706787109375, 0.003391265869140625, -0.0026149749755859375, -0.004276275634765625, -0.037506103515625, -0.0061798095703125, 0.02825927734375, 0.03759765625, 0.0181732177734375, -0.0181732177734375, -0.0050811767578125, 0.008453369140625, -0.033355712890625, 0.003875732421875, 0.007579803466796875, 0.038970947265625, 0.0298309326171875, -0.0966796875, -0.0274505615234375, 0.03436279296875, -0.05950927734375, 0.01183319091796875, -0.003620147705078125, -0.021575927734375, -0.0173187255859375, -0.0121002197265625, -0.043121337890625, 0.04766845703125, -0.01142120361328125, 0.0019855499267578125, -0.0265045166015625, 0.0171966552734375, -0.02362060546875, -0.0028171539306640625, -0.0037403106689453125, -0.00678253173828125, -0.000036716461181640625, -0.02081298828125, 0.025421142578125, -0.017852783203125, -0.0261993408203125, -0.023834228515625, 0.05474853515625, 0.01107025146484375, 0.00576019287109375, 0.036224365234375, 0.053070068359375, -0.00527191162109375, -0.0296478271484375, 0.0199127197265625, -0.0526123046875, 0.00200653076171875, -0.027374267578125, 0.029998779296875, 0.03375244140625, -0.042694091796875, -0.08282470703125, 0.028076171875, 0.03277587890625, 0.00019156932830810547, 0.003726959228515625, 0.0092620849609375, -0.023712158203125, -0.00981903076171875, 0.00583648681640625, -0.00843048095703125, 0.0120086669921875, 0.00920867919921875, 0.0276336669921875, -0.0259857177734375, -0.0139312744140625, -0.0002732276916503906, -0.03765869140625, 0.047210693359375, 0.0036296844482421875, -0.044952392578125, 0.0262298583984375, -0.006580352783203125, 0.0263214111328125, -0.03411865234375, 0.01235198974609375, 0.10845947265625, 0.027435302734375, 0.01450347900390625, -0.0305938720703125, -0.0009927749633789062, 0.001010894775390625, -0.01413726806640625, 0.007076263427734375, -0.0115203857421875, 0.004619598388671875, 0.033294677734375, -0.03485107421875, -0.004070281982421875, 0.030792236328125, 0.00646209716796875, 0.012786865234375, 0.0167999267578125, -0.037689208984375, -0.02947998046875, -0.03143310546875, 0.03082275390625, -0.0293121337890625, 0.0268707275390625, -0.06915283203125, 0.017303466796875, -0.04132080078125, 0.0423583984375, -0.028656005859375, 0.0186920166015625, 0.0167388916015625, 0.04595947265625, -0.019287109375, -0.038330078125, -0.0306854248046875, -0.044342041015625, -0.0164947509765625, 0.041839599609375, -0.0219879150390625, 0.055877685546875, -0.037628173828125, 0.027557373046875, 0.017547607421875, 0.00308990478515625, 0.035430908203125, 0.0003838539123535156, 0.0302886962890625, -0.01898193359375, 0.0177764892578125, 0.0201263427734375, -0.03253173828125, 0.02374267578125, 0.004131317138671875, -0.0211944580078125, -0.040557861328125, -0.0130615234375, -0.021575927734375, 0.061767578125, 0.010833740234375, 0.01373291015625, -0.01531219482421875, -0.0024700164794921875, -0.035980224609375, 0.0068206787109375, -0.040283203125, 0.04412841796875, -0.0201568603515625, 0.009918212890625, 0.01605224609375, 0.050872802734375, -0.0033359527587890625, -0.0079498291015625, -0.031524658203125, -0.028350830078125, -0.044677734375, 0.003993988037109375, 0.006595611572265625, -0.0165863037109375, 0.034088134765625, 0.01027679443359375, 0.0357666015625, -0.022186279296875, -0.06689453125, 0.0107574462890625, 0.0302734375, -0.0135498046875, 0.0235748291015625, -0.010833740234375, 0.0194244384765625, 0.0022830963134765625, -0.04010009765625, -0.01125335693359375, 0.0019159317016601562, 0.03680419921875, 0.002513885498046875, 0.0046844482421875, 0.0022487640380859375, 0.04974365234375, 0.017791748046875, 0.00112152099609375, -0.0150299072265625, 0.0188140869140625, 0.007335662841796875, -0.00774383544921875, 0.00499725341796875, 0.01097869873046875, -0.10784912109375, 0.0179901123046875, 0.0616455078125, 0.0162811279296875, 0.0154571533203125, 0.0009813308715820312, 0.027862548828125, 0.012359619140625, 0.013671875, 0.05078125, -0.0028972625732421875, -0.0025272369384765625, 0.041412353515625, 0.00579833984375, 0.00406646728515625, -0.00231170654296875, -0.050994873046875, -0.01392364501953125, 0.03472900390625, -0.041351318359375, -0.0216827392578125, -0.01067352294921875, 0.004299163818359375, -0.00038361549377441406, -0.015350341796875, 0.0183868408203125, -0.0300445556640625, 0.0018358230590820312, -0.0257568359375, 0.005191802978515625, 0.01177978515625, -0.0172119140625, -0.023284912109375, 0.0299530029296875, 0.0093841552734375, 0.00940704345703125, 0.061614990234375, 0.0474853515625, -0.0010967254638671875, -0.03173828125, -0.026519775390625, 0.016845703125, 0.047393798828125, -0.0166168212890625, -0.0123291015625, 0.030181884765625, -0.0149688720703125, 0.0015621185302734375, -0.0110015869140625, 0.04656982421875, -0.0103607177734375, 0.02093505859375, -0.0160675048828125, 0.044921875, -0.035247802734375, -0.025848388671875, 0.0294189453125, -0.00457000732421875, -0.043365478515625, -0.0233917236328125, -0.07159423828125, 0.0443115234375, -0.043365478515625, 0.0645751953125, 0.075927734375, -0.01195526123046875, 0.0197906494140625, 0.01128387451171875, -0.015716552734375, 0.005245208740234375, 0.036895751953125, 0.0170440673828125, -0.0081787109375, -0.01947021484375, 0.0156402587890625, 0.0180511474609375, -0.049896240234375, 0.0300750732421875, 0.004802703857421875, -0.0157623291015625, -0.00702667236328125, -0.0204010009765625, 0.00919342041015625, 0.049591064453125, -0.046630859375, 0.00612640380859375, 0.0284423828125, -0.029998779296875, -0.040802001953125, 0.08489990234375, -0.008880615234375, -0.0232696533203125, 0.0034656524658203125, -0.0148468017578125, 0.00223541259765625, -0.02862548828125, 0.013885498046875, -0.004150390625, 0.01641845703125, -0.007328033447265625, 0.0479736328125, -0.0147857666015625, -0.048553466796875, -0.0124969482421875, -0.02056884765625, -0.002765655517578125, -0.0005021095275878906, 0.03631591796875, -0.005710601806640625, -0.0118255615234375, 0.00363922119140625, 0.01067352294921875, 0.032501220703125, -0.036956787109375, -0.0229034423828125, -0.010528564453125, -0.01174163818359375, 0.00244903564453125, 0.02587890625, 0.01050567626953125, 0.040863037109375, 0.049102783203125, -0.00135040283203125, 0.01544952392578125, -0.0361328125, -0.037261962890625, -0.0011529922485351562, 0.0201416015625, -0.0008168220520019531, -0.03765869140625, 0.006328582763671875, 0.035186767578125, 0.05133056640625, 0.0022411346435546875, 0.01322174072265625, -0.005340576171875, -0.00041866302490234375, 0.00276947021484375, -0.01374053955078125, 0.01184844970703125, -0.021270751953125, 0.0241851806640625, -0.0170135498046875, 0.0240325927734375, -0.033233642578125, 0.04791259765625, -0.065185546875, -0.031890869140625, 0.032745361328125, -0.043060302734375, 0.0269775390625, -0.045928955078125, -0.0043487548828125, -0.038330078125, 0.053314208984375, 0.005687713623046875, -0.00583648681640625, -0.04022216796875, -0.006988525390625, -0.022430419921875, -0.02239990234375, -0.0009832382202148438, -0.002899169921875, 0.0071563720703125, -0.004486083984375, -0.031585693359375, 0.0021648406982421875, -0.026123046875, 0.0153656005859375, 0.0126800537109375, -0.025909423828125, 0.04632568359375, -0.0703125, 0.02362060546875, 0.028289794921875, -0.005809783935546875, -0.01385498046875, -0.05133056640625, -0.032257080078125, -0.12127685546875, -0.01568603515625, -0.0280609130859375, 0.06829833984375, -0.0179595947265625, 0.04193115234375, -0.0242919921875, 0.0648193359375, 0.0084686279296875, -0.0027713775634765625, -0.02838134765625, -0.0046539306640625, 0.008331298828125, -0.0192718505859375, -0.03253173828125, -0.0157012939453125, -0.00768280029296875, -0.034576416015625, -0.00789642333984375, -0.00803375244140625, -0.051055908203125, -0.032928466796875, -0.042449951171875, -0.0126190185546875, -0.0273590087890625, -0.005218505859375, -0.00969696044921875, 0.0302581787109375, 0.0009965896606445312, -0.004039764404296875, -0.02508544921875, -0.056793212890625, 0.0093994140625, -0.07562255859375, 0.0156707763671875, 0.0248565673828125, 0.0845947265625, 0.0205535888671875, 0.0305938720703125, -0.012481689453125, 0.0006394386291503906, 0.0270538330078125, 0.0210723876953125, 0.054595947265625, 0.04840087890625, -0.01328277587890625, 0.033447265625, 0.0174713134765625, 0.0013151168823242188, -0.01512908935546875, 0.002689361572265625, -0.004230499267578125, -0.036468505859375, 0.018829345703125, 0.0015954971313476562, 0.0184478759765625, -0.0164337158203125, -0.01314544677734375, 0.01065826416015625, 0.007472991943359375, 0.0086822509765625, -0.024169921875, 0.057891845703125, 0.01904296875, -0.038604736328125, 0.0132598876953125, -0.021331787109375, 0.0445556640625, 0.0136871337890625, -0.0020465850830078125, 0.0265655517578125, 0.033905029296875, -0.0249481201171875, -0.03802490234375, -0.04327392578125, -0.01123809814453125, 0.025177001953125, -0.0596923828125, -0.0233917236328125, -0.005565643310546875, 0.004802703857421875, 0.00989532470703125, 0.006740570068359375, -0.038116455078125, -0.0225677490234375, 0.005207061767578125, 0.015350341796875, -0.0028133392333984375, 0.00124359130859375, 0.040924072265625, 0.037017822265625, 0.00811767578125, -0.016326904296875, -0.0165863037109375, 0.0260772705078125, -0.0406494140625, -0.024932861328125, 0.00897216796875, -0.042388916015625, 0.028900146484375, -0.026947021484375, -0.0016107559204101562, -0.0133056640625, -0.005168914794921875, 0.06781005859375, 0.0362548828125, -0.03558349609375, -0.00472259521484375, 0.08172607421875, -0.005950927734375, -0.051666259765625, 0.0053863525390625, -0.02288818359375, 0.018218994140625, -0.0027217864990234375, 0.018463134765625, -0.03125, -0.042572021484375, 0.034210205078125, -0.0369873046875, 0.0165557861328125, 0.0019521713256835938, -0.0294952392578125, -0.0237579345703125, -0.01322174072265625, 0.00380706787109375, 0.018768310546875, -0.033599853515625, -0.01380157470703125, -0.038330078125, -0.024444580078125, -0.0355224609375, 0.004070281982421875, -0.07647705078125, 0.0161895751953125, 0.035003662109375, -0.02545166015625, -0.024261474609375, -0.00771331787109375, 0.0024623870849609375, 0.00450897216796875, -0.021240234375, -0.0272064208984375, 0.03924560546875, -0.0036754608154296875, 0.0101776123046875, -0.0293731689453125, -0.0014886856079101562, -0.0310821533203125, 0.0086212158203125, 0.0303192138671875, 0.004611968994140625, -0.04608154296875, -0.032073974609375, -0.060150146484375, 0.000022172927856445312, -0.012725830078125, -0.0252532958984375, 0.004398345947265625, 0.00858306884765625, 0.023284912109375, 0.052886962890625, -0.0186004638671875, -0.06396484375, -0.01059722900390625, -0.024993896484375, 0.026947021484375, 0.05120849609375, 0.0098876953125, 0.006832122802734375, -0.005138397216796875, 0.0316162109375, 0.0007987022399902344, -0.0165863037109375, -0.0157012939453125, -0.02130126953125, -0.0455322265625, -0.07659912109375, 0.0259246826171875, 0.031341552734375, 0.0002758502960205078, 0.06195068359375, 0.0283966064453125, 0.031402587890625, 0.0146636962890625, -0.006473541259765625, 0.0235443115234375, -0.0242156982421875, -0.0018463134765625, -0.03936767578125, -0.024871826171875, 0.022705078125, -0.0192108154296875, 0.0589599609375, -0.00836944580078125, -0.004489898681640625, 0.0205535888671875, -0.0186614990234375, 0.026275634765625, 0.01788330078125, 0.003292083740234375, -0.0094146728515625, 0.0200958251953125, -0.037567138671875, 0.0014638900756835938, 0.033203125, -0.0021076202392578125, 0.0199737548828125, -0.009857177734375, 0.00334930419921875, 0.005817413330078125, 0.010711669921875, -0.016632080078125, 0.0012655258178710938, -0.01096343994140625, -0.01739501953125, 0.043731689453125, 0.03125, 0.054931640625, -0.0623779296875, 0.03521728515625, 0.00025844573974609375, 0.0124053955078125, 0.08441162109375, -0.0008907318115234375, 0.0169525146484375, -0.00937652587890625, 0.036834716796875, -0.0268707275390625, -0.00762939453125, 0.0248260498046875, -0.031585693359375, -0.0206298828125, 0.00218963623046875, 0.0062713623046875, 0.0223846435546875, 0.0013799667358398438, 0.005096435546875, 0.00981903076171875, -0.01018524169921875, 0.0103607177734375, 0.031707763671875, -0.0182342529296875, 0.0053863525390625, -0.0347900390625, 0.0087738037109375, -0.0027980804443359375, -0.030029296875, 0.0517578125, -0.0282745361328125, 0.0256500244140625, 0.0537109375, -0.0270233154296875, 0.022430419921875, 0.03173828125, -0.042755126953125, -0.0491943359375, -0.060272216796875, 0.01180267333984375, 0.01953125, -0.03717041015625, 0.042816162109375, 0.00937652587890625, -0.0533447265625, 0.003253936767578125, -0.01342010498046875, 0.04559326171875, -0.0170745849609375, -0.0184326171875, -0.0014963150024414062, 0.0048370361328125, 0.0018739700317382812, -0.0106048583984375, -0.0011110305786132812, -0.06756591796875, -0.040771484375, -0.020751953125, -0.057220458984375, 0.005306243896484375, 0.002048492431640625, -0.09967041015625, 0.1156005859375, -0.0178375244140625, 0.08251953125, 0.03558349609375, 0.019744873046875, -0.020416259765625, -0.016876220703125, -0.0343017578125, 0.051483154296875, -0.03619384765625, 0.034149169921875, -0.05194091796875, 0.0142364501953125, -0.017120361328125, 0.016693115234375, 0.09796142578125, 0.047119140625, -0.087646484375, -0.035369873046875, -0.01261138916015625, -0.009857177734375, -0.023284912109375, 0.10040283203125, -0.0037364959716796875, -0.01270294189453125, 0.029571533203125, -0.0085906982421875, 0.036346435546875, -0.0250091552734375, -0.00972747802734375, 0.006504058837890625, 0.019439697265625, 0.02764892578125, -0.0093536376953125, 0.03466796875, -0.0264739990234375, -0.0013227462768554688, 0.0226898193359375, 0.00650787353515625, 0.0335693359375, -0.005218505859375, 0.0238494873046875, -0.0096588134765625, 0.0077362060546875, 0.00661468505859375, 0.03887939453125, 0.0072784423828125, 0.0188140869140625, 0.0262603759765625, 0.016693115234375, 0.00920867919921875, 0.01401519775390625, 0.0252532958984375, 0.0274810791015625, -0.01517486572265625, -0.034912109375, -0.01122283935546875, 0.0210113525390625, -0.035614013671875, -0.0014629364013671875, 0.071044921875, -0.011077880859375, -0.00209808349609375, 0.0024890899658203125, 0.01885986328125, 0.035064697265625, -0.00876617431640625, -0.023590087890625, -0.02020263671875, -0.055267333984375, 0.0165252685546875, -0.043731689453125, 0.013824462890625, 0.00995635986328125, 0.005481719970703125, -0.01861572265625, -0.003299713134765625, -0.003734588623046875, 0.022064208984375, -0.0218048095703125, -0.0020236968994140625, -0.005886077880859375, -0.005191802978515625, 0.007171630859375, 0.02020263671875, 0.0360107421875, 0.01361846923828125, -0.004390716552734375, 0.047882080078125, -0.0127105712890625, -0.006008148193359375, -0.02862548828125, -0.080810546875, 0.0252227783203125, 0.022979736328125, 0.01416015625, -0.036529541015625, 0.010589599609375, 0.03411865234375, -0.0113372802734375, -0.013427734375, 0.00415802001953125, -0.0055694580078125, 0.01493072509765625, -0.0229644775390625, 0.0164947509765625, 0.0210723876953125, -0.0186004638671875, -0.01465606689453125, -0.016998291015625, 0.07342529296875, -0.0306549072265625, 0.0209503173828125, -0.013153076171875, -0.07159423828125, 0.0411376953125, -0.03643798828125, 0.103515625, -0.02679443359375, -0.040496826171875, 0.040374755859375, -0.08984375, -0.10101318359375, 0.0284576416015625, 0.0221405029296875, -0.070556640625, 0.04595947265625, -0.0097808837890625, -0.001678466796875, 0.021026611328125, -0.024993896484375, -0.0005092620849609375, -0.01416015625, -0.0027980804443359375, -0.026702880859375, 0.01287078857421875, 0.010101318359375, 0.00103759765625, 0.042236328125, 0.0288848876953125, 0.0611572265625, -0.03729248046875, 0.037994384765625, -0.016143798828125, 0.01541900634765625, -0.035308837890625, -0.03271484375, 0.03179931640625, 0.0022373199462890625, 0.01190185546875, -0.002231597900390625, -0.02679443359375, 0.01806640625, 0.015899658203125, -0.0123748779296875, 0.0126190185546875, -0.025390625, 0.006801605224609375, 0.00998687744140625, 0.01549530029296875, -0.01062774658203125, 0.03125, 0.004425048828125, -0.0252227783203125, 0.037200927734375, -0.00431060791015625, -0.0137786865234375, 0.047576904296875, -0.026641845703125, -0.0288238525390625, -0.00859832763671875, -0.045379638671875, -0.05352783203125, 0.00678253173828125, 0.00945281982421875, 0.0106048583984375, 0.0243682861328125, -0.0001049041748046875, -0.01800537109375, 0.031280517578125, -0.0187225341796875, 0.0276031494140625, -0.041229248046875, 0.0266265869140625, 0.0192108154296875, 0.06683349609375, -0.01435089111328125, 0.0229949951171875, -0.0009393692016601562, 0.01087188720703125, -0.0094451904296875, -0.01467132568359375, -0.01114654541015625, -0.007007598876953125, -0.0306549072265625, 0.003917694091796875, 0.00162506103515625, -0.08636474609375, -0.051483154296875, -0.006725311279296875, 0.045928955078125, 0.0252838134765625, -0.12237548828125, 0.0570068359375, -0.002338409423828125, 0.04901123046875, 0.0004222393035888672, -0.0279388427734375, 0.006618499755859375, -0.0013837814331054688, -0.037872314453125, 0.005275726318359375, -0.032806396484375, -0.01361083984375, -0.0208587646484375, 0.04522705078125, 0.049102783203125, -0.03277587890625, 0.013580322265625, 0.0650634765625, 0.0229034423828125, 0.1259765625, -0.050079345703125, 0.0014934539794921875, 0.0013093948364257812, 0.003704071044921875, -0.0071258544921875, -0.032470703125, -0.0034198760986328125, 0.004169464111328125, -0.0296630859375, -0.023529052734375, 0.0019931793212890625, -0.0110931396484375, -0.0462646484375, -0.0787353515625, 0.05560302734375, -0.031219482421875, -0.04315185546875, 0.0037555694580078125, 0.01216888427734375, -0.003917694091796875, 0.0157470703125, 0.020843505859375, -0.03851318359375, -0.005107879638671875, -0.0018281936645507812, -0.014068603515625, -0.0418701171875, 0.03167724609375, -0.0433349609375, -0.06085205078125, -0.0133514404296875, 0.01226806640625, -0.03717041015625, 0.0022869110107421875, 0.0038738250732421875, 0.035247802734375, 0.050262451171875, -0.008697509765625, -0.02923583984375, 0.00616455078125, -0.0523681640625, -0.04150390625, -0.0196990966796875, -0.0006241798400878906, 0.0054931640625, 0.054962158203125, 0.0897216796875, 0.00740814208984375, -0.04901123046875, 0.051849365234375, -0.048187255859375, -0.056488037109375, 0.00278472900390625, 0.0134735107421875, -0.026947021484375, 0.006633758544921875, 0.0181121826171875, -0.0275726318359375, -0.012542724609375, -0.001544952392578125, -0.051055908203125, -0.00872039794921875, -0.0296630859375, 0.00530242919921875, -0.047271728515625, 0.05230712890625, 0.014495849609375, -0.033172607421875, 0.01308441162109375, -0.007720947265625, -0.020477294921875, 0.0029010772705078125, -0.0007162094116210938, -0.007495880126953125, -0.00255584716796875, -0.04571533203125, 0.0479736328125, -0.007720947265625, 0.013763427734375, -0.065673828125, 0.0022735595703125, 0.02459716796875, 0.01422119140625, -0.0133514404296875, 0.006458282470703125, -0.0284881591796875, 0.03466796875, -0.041229248046875, 0.05755615234375, -0.053985595703125, -0.040069580078125, -0.0175323486328125, -0.00414276123046875, -0.0303955078125, 0.0222930908203125, 0.0556640625, -0.0479736328125, 0.01071929931640625, 0.0119476318359375, 0.0277099609375, 0.006671905517578125, 0.0106964111328125, -0.0017547607421875, 0.00814056396484375, 0.0006303787231445312 ]
172b0b8d1bad06670f07009b8576c5914a50c497
Wordpress Stackexchange Q: Custom columns for taxonomy list table I have the following code to add a new column to my taxonomy edit screen (edit-tags.php?taxonomy=book_place&post_type=books) function add_book_place_columns( $columns ) { $columns['foo'] = 'Foo'; return $columns; } add_filter( 'manage_edit-book_place_columns', 'add_book_place_columns' ); function add_book_place_column_content( $content ) { content = 'test'; return $content; } add_filter( 'manage_book_place_custom_column', 'add_book_place_column_content' ); It's working, but I need to access the current term id in the add_book_place_column_content function. How can I do that? A: The manage_{TAXONOMY}_custom_column filter hook passes 3 arguments: * *$content *$column_name *$term_id So try this: function add_book_place_column_content( $content, $column_name, $term_id ) { $term= get_term( $term_id, 'book_place' ); switch ( $column_name ) { case 'foo': // Do your stuff here with $term or $term_id $content = 'test'; break; default: break; } return $content; } add_filter( 'manage_book_place_custom_column', 'add_book_place_column_content', 10, 3 );
Q: Custom columns for taxonomy list table I have the following code to add a new column to my taxonomy edit screen (edit-tags.php?taxonomy=book_place&post_type=books) function add_book_place_columns( $columns ) { $columns['foo'] = 'Foo'; return $columns; } add_filter( 'manage_edit-book_place_columns', 'add_book_place_columns' ); function add_book_place_column_content( $content ) { content = 'test'; return $content; } add_filter( 'manage_book_place_custom_column', 'add_book_place_column_content' ); It's working, but I need to access the current term id in the add_book_place_column_content function. How can I do that? A: The manage_{TAXONOMY}_custom_column filter hook passes 3 arguments: * *$content *$column_name *$term_id So try this: function add_book_place_column_content( $content, $column_name, $term_id ) { $term= get_term( $term_id, 'book_place' ); switch ( $column_name ) { case 'foo': // Do your stuff here with $term or $term_id $content = 'test'; break; default: break; } return $content; } add_filter( 'manage_book_place_custom_column', 'add_book_place_column_content', 10, 3 );
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:427248", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77658" }
[ 0.0213623046875, -0.018890380859375, 0.003139495849609375, -0.042083740234375, 0.005817413330078125, -0.0064239501953125, 0.0024623870849609375, 0.00592803955078125, 0.02288818359375, -0.0171966552734375, -0.0406494140625, -0.021728515625, -0.038848876953125, -0.02850341796875, -0.005214691162109375, -0.05377197265625, 0.017364501953125, -0.027130126953125, 0.00946807861328125, 0.002185821533203125, 0.0010862350463867188, 0.015716552734375, 0.0267333984375, -0.0002837181091308594, 0.035888671875, -0.05975341796875, 0.053009033203125, -0.01084136962890625, 0.034149169921875, -0.005855560302734375, 0.027191162109375, -0.0181884765625, 0.0230865478515625, -0.0143585205078125, 0.002170562744140625, 0.0133819580078125, 0.0209503173828125, -0.01178741455078125, -0.0174560546875, 0.03265380859375, 0.054840087890625, -0.0218963623046875, -0.0751953125, 0.05316162109375, -0.04254150390625, -0.0543212890625, 0.02471923828125, -0.0246734619140625, -0.00970458984375, -0.03082275390625, 0.0284423828125, 0.046173095703125, 0.04364013671875, -0.06390380859375, 0.01076507568359375, 0.02606201171875, 0.0219879150390625, -0.06256103515625, 0.02362060546875, -0.01776123046875, -0.01009368896484375, -0.0142669677734375, 0.03948974609375, 0.008087158203125, -0.0131072998046875, 0.0233001708984375, -0.013916015625, 0.022979736328125, -0.04180908203125, -0.032928466796875, 0.0025196075439453125, -0.04608154296875, 0.0006632804870605469, -0.023345947265625, -0.032562255859375, -0.0128631591796875, 0.03192138671875, -0.02874755859375, 0.0042877197265625, 0.0087432861328125, -0.0301666259765625, -0.040130615234375, 0.00351715087890625, -0.032196044921875, -0.000255584716796875, 0.005218505859375, -0.0251312255859375, 0.0183868408203125, -0.0211944580078125, -0.0184783935546875, 0.00024962425231933594, -0.04736328125, -0.036773681640625, 0.0013246536254882812, 0.0142974853515625, -0.04095458984375, -0.0014934539794921875, 0.0404052734375, -0.03448486328125, 0.0160675048828125, 0.0303955078125, -0.02752685546875, 0.037994384765625, -0.06005859375, 0.0122528076171875, 0.037139892578125, -0.02532958984375, -0.03790283203125, 0.0198516845703125, 0.018829345703125, 0.01447296142578125, -0.022216796875, 0.022918701171875, 0.0012865066528320312, -0.032073974609375, -0.0142974853515625, -0.007598876953125, -0.01245880126953125, -0.00830078125, -0.0202178955078125, -0.0216827392578125, -0.0194091796875, -0.0012493133544921875, -0.0234832763671875, 0.057037353515625, -0.00179290771484375, -0.0267181396484375, 0.04229736328125, -0.005962371826171875, -0.0006971359252929688, -0.04534912109375, 0.00467681884765625, 0.08990478515625, 0.06768798828125, 0.055084228515625, -0.0090789794921875, 0.0130615234375, -0.0215911865234375, 0.0097503662109375, -0.01201629638671875, -0.0016641616821289062, -0.002407073974609375, 0.003932952880859375, -0.006313323974609375, -0.0013761520385742188, -0.00518798828125, 0.01312255859375, 0.032867431640625, -0.00009626150131225586, -0.009429931640625, 0.004673004150390625, 0.00563812255859375, 0.06396484375, 0.006092071533203125, -0.071533203125, -0.02166748046875, -0.0016031265258789062, -0.04168701171875, -0.033782958984375, -0.06610107421875, 0.0174713134765625, -0.01204681396484375, -0.013763427734375, -0.05157470703125, -0.0723876953125, 0.01751708984375, -0.03778076171875, -0.01776123046875, -0.0015125274658203125, -0.03826904296875, -0.00249481201171875, 0.0071258544921875, -0.043060302734375, -0.0261383056640625, 0.0065765380859375, 0.004032135009765625, -0.0276947021484375, 0.032562255859375, 0.0202484130859375, 0.03302001953125, 0.006832122802734375, -0.039337158203125, 0.053497314453125, 0.004833221435546875, -0.039764404296875, 0.02679443359375, 0.006687164306640625, 0.07171630859375, 0.005405426025390625, 0.0011854171752929688, 0.021087646484375, -0.0036869049072265625, -0.09588623046875, -0.0138702392578125, 0.00559234619140625, 0.0034313201904296875, -0.01116180419921875, -0.0299835205078125, 0.0186614990234375, 0.0283050537109375, 0.005237579345703125, -0.007442474365234375, 0.01432037353515625, -0.0097808837890625, -0.019683837890625, -0.000553131103515625, -0.01033782958984375, 0.03564453125, -0.03826904296875, -0.0107421875, 0.0213165283203125, -0.01235198974609375, -0.019500732421875, -0.019622802734375, -0.0203857421875, 0.0193939208984375, -0.019683837890625, -0.040496826171875, -0.01486968994140625, -0.007183074951171875, -0.014801025390625, -0.0089874267578125, -0.0251617431640625, 0.02618408203125, 0.0206146240234375, -0.0164794921875, -0.0276336669921875, -0.019989013671875, -0.001117706298828125, 0.0149993896484375, -0.045196533203125, 0.01971435546875, 0.02947998046875, 0.005390167236328125, -0.027984619140625, -0.00209808349609375, 0.008453369140625, -0.05938720703125, 0.01068878173828125, 0.045623779296875, 0.0341796875, 0.024505615234375, -0.0051727294921875, -0.01436614990234375, 0.02789306640625, -0.024017333984375, 0.01611328125, -0.03656005859375, 0.0190277099609375, 0.0587158203125, -0.01215362548828125, 0.0214691162109375, 0.01155853271484375, -0.030853271484375, 0.02679443359375, 0.034088134765625, -0.042999267578125, -0.0101318359375, 0.029205322265625, -0.05023193359375, 0.00975799560546875, -0.0692138671875, -0.0064239501953125, -0.0285186767578125, 0.05328369140625, 0.0162506103515625, 0.041259765625, 0.031219482421875, -0.0469970703125, 0.002986907958984375, 0.016326904296875, 0.003387451171875, -0.0036373138427734375, 0.0091400146484375, -0.0369873046875, 0.00555419921875, -0.01291656494140625, 0.0180511474609375, -0.01468658447265625, -0.00897979736328125, -0.01708984375, 0.0260467529296875, -0.03533935546875, -0.0204010009765625, -0.0216827392578125, -0.05157470703125, -0.01168060302734375, 0.0036773681640625, -0.02471923828125, -0.05914306640625, -0.031219482421875, 0.01458740234375, -0.0257720947265625, 0.0256805419921875, 0.042999267578125, -0.037109375, 0.04052734375, -0.0016937255859375, 0.026580810546875, -0.0308074951171875, 0.0161590576171875, 0.038665771484375, -0.036407470703125, 0.0168914794921875, 0.01561737060546875, 0.00191497802734375, -0.004917144775390625, 0.0267791748046875, 0.01526641845703125, 0.00479888916015625, -0.016204833984375, 0.0401611328125, 0.02490234375, 0.042144775390625, 0.002960205078125, -0.0192413330078125, -0.004787445068359375, 0.039154052734375, -0.005596160888671875, -0.01499176025390625, 0.08642578125, 0.0201263427734375, -0.004718780517578125, -0.0197906494140625, 0.0087432861328125, -0.0246429443359375, -0.04034423828125, -0.031646728515625, 0.0287933349609375, -0.02691650390625, -0.08392333984375, -0.01499176025390625, -0.047027587890625, 0.03314208984375, -0.0149688720703125, 0.005741119384765625, 0.00435638427734375, 0.0850830078125, 0.006641387939453125, -0.043121337890625, 0.006439208984375, -0.049713134765625, -0.0029659271240234375, 0.0379638671875, 0.0123443603515625, -0.01187896728515625, 0.015960693359375, -0.0022068023681640625, 0.021331787109375, 0.04144287109375, -0.0361328125, -0.0308380126953125, -0.041595458984375, 0.02239990234375, -0.0028400421142578125, 0.005352020263671875, 0.0297393798828125, 0.007568359375, 0.0181884765625, -0.034423828125, -0.0259857177734375, -0.001934051513671875, -0.0034770965576171875, 0.00672149658203125, 0.0008063316345214844, -0.0159454345703125, -0.036529541015625, 0.059722900390625, -0.00855255126953125, -0.010345458984375, 0.021392822265625, -0.017059326171875, 0.006862640380859375, -0.002780914306640625, -0.0170745849609375, -0.023956298828125, 0.0231170654296875, -0.006481170654296875, 0.00812530517578125, 0.020660400390625, 0.04412841796875, 0.00998687744140625, 0.0076446533203125, -0.043060302734375, -0.08685302734375, 0.048553466796875, -0.052093505859375, 0.00872802734375, -0.05987548828125, -0.0166015625, -0.0192718505859375, 0.096435546875, -0.07501220703125, -0.0215606689453125, 0.0108489990234375, 0.01824951171875, -0.00830841064453125, -0.035552978515625, -0.0262298583984375, -0.038726806640625, -0.055755615234375, 0.017913818359375, -0.00331878662109375, -0.0091552734375, -0.0243072509765625, 0.0246429443359375, -0.03045654296875, -0.02545166015625, 0.0287628173828125, -0.033905029296875, -0.01282501220703125, 0.073486328125, -0.0279083251953125, 0.04144287109375, -0.0174713134765625, -0.033416748046875, -0.09954833984375, -0.0266571044921875, 0.01074981689453125, 0.055572509765625, -0.0166015625, 0.0012292861938476562, -0.016998291015625, 0.059661865234375, 0.0287017822265625, 0.021942138671875, 0.0248870849609375, 0.006805419921875, -0.00888824462890625, -0.0294342041015625, 0.013153076171875, -0.048126220703125, -0.0140380859375, -0.0233612060546875, -0.01422882080078125, 0.031280517578125, -0.015655517578125, 0.00669097900390625, 0.0027313232421875, -0.0286407470703125, -0.0290069580078125, -0.0435791015625, -0.01042938232421875, -0.01324462890625, -0.055694580078125, 0.0304718017578125, -0.01468658447265625, -0.01139068603515625, 0.045440673828125, 0.004161834716796875, -0.005855560302734375, 0.002838134765625, 0.09161376953125, 0.02410888671875, -0.034576416015625, -0.025054931640625, 0.0260772705078125, 0.049652099609375, 0.003864288330078125, 0.04254150390625, 0.03375244140625, -0.035369873046875, 0.050506591796875, 0.0235595703125, 0.028961181640625, -0.032745361328125, 0.06317138671875, -0.0028209686279296875, 0.0192413330078125, -0.0017900466918945312, -0.022796630859375, 0.0037250518798828125, -0.00650787353515625, -0.018829345703125, -0.025390625, -0.0164337158203125, 0.0576171875, -0.024627685546875, 0.059844970703125, -0.01509857177734375, -0.01849365234375, 0.0013532638549804688, -0.025238037109375, 0.049072265625, 0.01465606689453125, 0.017364501953125, -0.010498046875, -0.0216827392578125, 0.00920867919921875, 0.03271484375, -0.00830078125, -0.00252532958984375, 0.0298004150390625, 0.0143585205078125, 0.00560760498046875, 0.02093505859375, -0.0023345947265625, 0.044403076171875, -0.0267181396484375, -0.069580078125, 0.01108551025390625, -0.0208282470703125, 0.0129852294921875, 0.042236328125, -0.01406097412109375, -0.0144805908203125, 0.00876617431640625, -0.0019626617431640625, 0.00940704345703125, -0.004169464111328125, 0.00632476806640625, -0.0166015625, -0.00225067138671875, -0.00012922286987304688, -0.0084991455078125, -0.0034275054931640625, 0.039306640625, -0.005756378173828125, -0.0037994384765625, -0.02252197265625, 0.0506591796875, 0.04058837890625, 0.0241241455078125, 0.0198974609375, -0.018585205078125, -0.0033245086669921875, 0.01177978515625, -0.033294677734375, -0.02020263671875, -0.01172637939453125, -0.024566650390625, 0.004512786865234375, -0.035736083984375, -0.00563812255859375, 0.0650634765625, -0.01385498046875, -0.0289764404296875, -0.006008148193359375, -0.0167236328125, -0.04071044921875, -0.0178680419921875, 0.0218963623046875, 0.01690673828125, 0.0119476318359375, -0.0081329345703125, 0.010650634765625, -0.05523681640625, 0.0124664306640625, -0.0157470703125, 0.03582763671875, -0.041259765625, -0.04901123046875, -0.025634765625, -0.01395416259765625, -0.02105712890625, -0.01357269287109375, -0.042236328125, 0.0008931159973144531, 0.0117950439453125, 0.0247955322265625, -0.0229644775390625, 0.05975341796875, -0.01153564453125, -0.03204345703125, 0.0413818359375, 0.01300811767578125, 0.03485107421875, 0.022674560546875, -0.00196075439453125, -0.0005087852478027344, -0.047393798828125, 0.00481414794921875, -0.04193115234375, -0.060272216796875, 0.00461578369140625, 0.003269195556640625, 0.0167083740234375, -0.0001767873764038086, 0.0047149658203125, -0.0501708984375, -0.01386260986328125, -0.003749847412109375, 0.048309326171875, -0.0467529296875, -0.0204925537109375, 0.051300048828125, 0.02203369140625, 0.044342041015625, 0.01580810546875, -0.0020198822021484375, -0.0267791748046875, -0.0220794677734375, -0.0166015625, -0.045196533203125, 0.0164794921875, 0.0196533203125, -0.044189453125, 0.009796142578125, 0.05517578125, 0.0092315673828125, 0.0489501953125, -0.015655517578125, -0.005573272705078125, -0.00021255016326904297, -0.0203399658203125, -0.035247802734375, 0.033355712890625, 0.0275421142578125, -0.00707244873046875, 0.06622314453125, -0.01482391357421875, -0.0023956298828125, 0.0238494873046875, -0.040924072265625, 0.053955078125, 0.026611328125, -0.03521728515625, 0.0299224853515625, 0.036590576171875, 0.016754150390625, 0.04443359375, -0.0035915374755859375, 0.0306549072265625, 0.0110015869140625, -0.0286712646484375, 0.01073455810546875, 0.0316162109375, 0.05426025390625, -0.00897979736328125, -0.024139404296875, 0.038818359375, -0.0300140380859375, -0.0005021095275878906, 0.0219573974609375, 0.028717041015625, -0.06585693359375, 0.0202484130859375, 0.0017805099487304688, 0.0008592605590820312, 0.0212554931640625, 0.00746917724609375, -0.005443572998046875, -0.0054168701171875, -0.04290771484375, -0.007549285888671875, -0.03973388671875, -0.028594970703125, 0.018646240234375, -0.00931549072265625, -0.02532958984375, -0.0050201416015625, 0.007663726806640625, 0.0192718505859375, 0.011566162109375, -0.023712158203125, 0.023590087890625, 0.0225677490234375, 0.03369140625, -0.030670166015625, -0.0269927978515625, -0.0162200927734375, -0.0114593505859375, -0.0242156982421875, -0.02496337890625, -0.005390167236328125, -0.0098876953125, 0.01470184326171875, 0.0222015380859375, -0.00775909423828125, -0.003177642822265625, 0.01247406005859375, -0.058013916015625, -0.023406982421875, -0.009765625, 0.007015228271484375, 0.003406524658203125, -0.042724609375, 0.019622802734375, -0.05413818359375, -0.0006418228149414062, -0.0055999755859375, -0.0032405853271484375, 0.051116943359375, -0.0255126953125, -0.0231781005859375, 0.03204345703125, -0.027191162109375, -0.0215606689453125, 0.0313720703125, 0.0316162109375, -0.05523681640625, -0.0750732421875, 0.035003662109375, -0.0728759765625, -0.0269775390625, 0.0259857177734375, -0.070068359375, 0.06549072265625, 0.0213623046875, 0.0007810592651367188, -0.01434326171875, 0.0241851806640625, -0.04498291015625, 0.0069427490234375, -0.031646728515625, 0.03326416015625, -0.0002849102020263672, 0.05987548828125, -0.0386962890625, -0.01450347900390625, 0.0135650634765625, 0.04486083984375, 0.03729248046875, -0.007633209228515625, 0.0081634521484375, -0.02691650390625, 0.03314208984375, 0.03436279296875, -0.003948211669921875, 0.006504058837890625, -0.019378662109375, 0.0230255126953125, 0.0280609130859375, -0.022247314453125, 0.03118896484375, -0.0273895263671875, -0.034759521484375, 0.003879547119140625, 0.02471923828125, 0.0374755859375, -0.0016765594482421875, 0.00717926025390625, -0.0169830322265625, -0.01548004150390625, 0.01485443115234375, -0.0057373046875, -0.016510009765625, 0.0241241455078125, 0.025543212890625, -0.015655517578125, 0.01126861572265625, -0.0175628662109375, 0.047332763671875, 0.0185394287109375, 0.0880126953125, 0.050567626953125, 0.01873779296875, 0.06927490234375, 0.02069091796875, 0.056671142578125, 0.01556396484375, -0.01100921630859375, 0.06365966796875, 0.03314208984375, 0.034942626953125, 0.00970458984375, 0.061492919921875, 0.01407623291015625, 0.05401611328125, -0.05364990234375, -0.010986328125, 0.0082855224609375, 0.00554656982421875, -0.00872802734375, -0.022857666015625, -0.01253509521484375, 0.044677734375, 0.049835205078125, -0.05841064453125, -0.01137542724609375, 0.034210205078125, 0.0250244140625, -0.010467529296875, -0.01320648193359375, -0.024993896484375, -0.017669677734375, -0.06536865234375, 0.024932861328125, 0.0009293556213378906, 0.0479736328125, 0.01282501220703125, 0.06134033203125, 0.01335906982421875, -0.0191192626953125, -0.02996826171875, 0.02044677734375, -0.01042938232421875, 0.038604736328125, -0.056732177734375, -0.007305145263671875, -0.020355224609375, 0.054534912109375, 0.00624847412109375, 0.01047515869140625, 0.01203155517578125, -0.00350189208984375, -0.0013141632080078125, 0.0008006095886230469, 0.059295654296875, -0.025054931640625, -0.0188140869140625, -0.0587158203125, 0.0380859375, 0.0511474609375, 0.0170440673828125, 0.0236968994140625, -0.025299072265625, 0.0826416015625, -0.01082611083984375, -0.0032863616943359375, -0.002773284912109375, -0.049346923828125, -0.0038928985595703125, 0.006633758544921875, 0.0443115234375, 0.0088958740234375, -0.114501953125, -0.004276275634765625, -0.0634765625, -0.07672119140625, 0.0704345703125, 0.0667724609375, -0.005107879638671875, -0.016845703125, -0.022125244140625, -0.01446533203125, 0.01171112060546875, -0.0132598876953125, 0.0018396377563476562, 0.00861358642578125, 0.00855255126953125, -0.006198883056640625, -0.0027713775634765625, -0.0106353759765625, 0.015655517578125, 0.0203704833984375, 0.0269775390625, 0.04864501953125, -0.00725555419921875, 0.026885986328125, -0.005428314208984375, 0.0206146240234375, -0.01013946533203125, 0.0020732879638671875, 0.046661376953125, 0.024749755859375, -0.0014295578002929688, -0.025390625, 0.0052642822265625, 0.00434112548828125, 0.032928466796875, -0.069580078125, -0.0241241455078125, -0.01288604736328125, 0.0113372802734375, -0.0198516845703125, 0.034698486328125, -0.022705078125, -0.02435302734375, -0.046722412109375, -0.032806396484375, 0.040679931640625, 0.0173187255859375, 0.0002827644348144531, 0.0275726318359375, 0.0017576217651367188, 0.001163482666015625, 0.03985595703125, -0.0196990966796875, 0.04180908203125, 0.0283660888671875, -0.04913330078125, -0.0212249755859375, 0.06475830078125, 0.00241851806640625, -0.011962890625, 0.04400634765625, 0.025634765625, 0.039520263671875, -0.06878662109375, 0.05157470703125, 0.0085601806640625, 0.0299530029296875, -0.0261688232421875, -0.004718780517578125, 0.0175628662109375, 0.01169586181640625, 0.0016803741455078125, -0.0174713134765625, -0.0287628173828125, -0.023529052734375, -0.023193359375, 0.0095367431640625, -0.0160064697265625, -0.07958984375, -0.076416015625, 0.0008635520935058594, 0.028045654296875, 0.00388336181640625, -0.0267181396484375, 0.0185699462890625, -0.0180511474609375, 0.019989013671875, 0.0087890625, -0.044281005859375, 0.02227783203125, 0.042327880859375, -0.01036834716796875, 0.00701141357421875, -0.0302734375, -0.03759765625, -0.0185546875, 0.01137542724609375, 0.0296173095703125, -0.025115966796875, -0.0000521540641784668, 0.013092041015625, 0.030609130859375, 0.054718017578125, -0.0163116455078125, -0.048980712890625, 0.02215576171875, -0.0229644775390625, 0.00958251953125, -0.0452880859375, 0.00875091552734375, -0.08758544921875, -0.001949310302734375, -0.01558685302734375, 0.0210418701171875, 0.0244598388671875, -0.028350830078125, -0.059783935546875, -0.0110015869140625, -0.01265716552734375, -0.033477783203125, -0.065185546875, -0.00803375244140625, -0.0158538818359375, 0.043853759765625, 0.00972747802734375, -0.045867919921875, -0.0170440673828125, 0.04833984375, -0.02301025390625, 0.01538848876953125, 0.0261077880859375, -0.034698486328125, -0.06158447265625, -0.03692626953125, -0.0318603515625, -0.0186920166015625, 0.0316162109375, -0.06915283203125, 0.036163330078125, 0.005054473876953125, -0.0679931640625, -0.064453125, -0.00795745849609375, 0.00742340087890625, 0.0005311965942382812, -0.03961181640625, -0.020965576171875, -0.0258941650390625, 0.0545654296875, 0.0007748603820800781, 0.015655517578125, -0.01285552978515625, -0.0253753662109375, -0.04205322265625, -0.029052734375, -0.0268707275390625, 0.0236663818359375, -0.0826416015625, 0.003047943115234375, 0.00780487060546875, -0.00909423828125, -0.027984619140625, 0.039764404296875, -0.0162811279296875, 0.002376556396484375, 0.0545654296875, -0.0029544830322265625, -0.03387451171875, 0.0198822021484375, 0.0204925537109375, -0.03204345703125, -0.0254058837890625, -0.01331329345703125, 0.0020904541015625, -0.02142333984375, -0.039337158203125, -0.06658935546875, -0.05877685546875, 0.0321044921875, 0.033477783203125, -0.028472900390625, 0.02056884765625, 0.004512786865234375, 0.024078369140625, 0.004131317138671875, 0.01483917236328125, -0.0171051025390625, -0.0001283884048461914, 0.00409698486328125, 0.0222930908203125, -0.0194091796875, 0.0877685546875, -0.00464630126953125, 0.04730224609375, -0.006877899169921875, 0.02178955078125, 0.00896453857421875, 0.00232696533203125, 0.023406982421875, -0.006702423095703125, -0.0025081634521484375, -0.0335693359375, -0.0254058837890625, -0.053985595703125, -0.00981903076171875, -0.03668212890625, -0.0204010009765625, 0.024322509765625 ]
aa5e8ff0d173867f1fc81df7326d86f82aea8a9e
Wordpress Stackexchange Q: Remove the columns in media library How can i disable/remove the columns for Media Library? I want for author and comments column. Thanks in advance. A: The hook for these columns is manage_media_columns. So just filter the columns here: add_filter( 'manage_media_columns', 'wpse_77687_remove_media_columns' ); function wpse_77687_remove_media_columns( $columns ) { unset( $columns['author'] ); unset( $columns['comments'] ); return $columns; }
Q: Remove the columns in media library How can i disable/remove the columns for Media Library? I want for author and comments column. Thanks in advance. A: The hook for these columns is manage_media_columns. So just filter the columns here: add_filter( 'manage_media_columns', 'wpse_77687_remove_media_columns' ); function wpse_77687_remove_media_columns( $columns ) { unset( $columns['author'] ); unset( $columns['comments'] ); return $columns; }
wordpress
{ "language": "en", "length": 58, "provenance": "stackexchange_00019.jsonl.gz:427255", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77687" }
[ -0.025390625, -0.007602691650390625, -0.019744873046875, 0.0216522216796875, -0.00580596923828125, -0.020782470703125, 0.0423583984375, -0.00690460205078125, 0.0267181396484375, 0.01313018798828125, 0.0041351318359375, -0.03826904296875, 0.004146575927734375, -0.038970947265625, -0.03765869140625, -0.0267486572265625, 0.020538330078125, -0.00756072998046875, 0.0158538818359375, -0.007778167724609375, 0.0250701904296875, -0.005596160888671875, 0.01849365234375, 0.076416015625, -0.010345458984375, -0.02508544921875, 0.0670166015625, 0.0183258056640625, -0.0018482208251953125, -0.026153564453125, 0.016693115234375, 0.023468017578125, -0.0003361701965332031, 0.037078857421875, -0.0285797119140625, 0.01458740234375, -0.0048370361328125, 0.029205322265625, 0.0179595947265625, -0.00970458984375, 0.001522064208984375, 0.0035858154296875, -0.045196533203125, -0.01474761962890625, -0.0297698974609375, 0.0022411346435546875, -0.029449462890625, -0.0259857177734375, 0.00778961181640625, 0.033447265625, 0.006885528564453125, 0.010406494140625, 0.0198211669921875, -0.0234527587890625, -0.013641357421875, -0.0269317626953125, 0.032928466796875, -0.01788330078125, 0.0147247314453125, -0.011077880859375, -0.031524658203125, 0.032745361328125, 0.013275146484375, -0.011627197265625, 0.0160675048828125, -0.0008368492126464844, -0.005092620849609375, 0.048309326171875, -0.053680419921875, 0.00342559814453125, 0.0206756591796875, -0.05303955078125, 0.00518798828125, -0.03759765625, -0.0197296142578125, 0.025054931640625, -0.00264739990234375, -0.0098724365234375, 0.01947021484375, -0.0189208984375, 0.0065460205078125, 0.0160369873046875, -0.01666259765625, -0.033721923828125, 0.04180908203125, 0.01274871826171875, -0.0081329345703125, -0.0311279296875, -0.0273590087890625, 0.0189361572265625, -0.017730712890625, -0.054840087890625, 0.0079803466796875, 0.021759033203125, 0.0182342529296875, -0.008331298828125, 0.04986572265625, 0.06402587890625, 0.0038356781005859375, -0.01012420654296875, -0.0016107559204101562, -0.0323486328125, -0.03814697265625, -0.0282440185546875, 0.0225372314453125, 0.0004296302795410156, -0.06805419921875, -0.06256103515625, 0.047454833984375, 0.061553955078125, -0.00809478759765625, -0.00417327880859375, -0.00091552734375, 0.0254058837890625, -0.042022705078125, -0.0122833251953125, -0.0294952392578125, 0.0008440017700195312, -0.0271759033203125, 0.0101165771484375, -0.04010009765625, -0.031585693359375, -0.0301513671875, -0.0272216796875, 0.048095703125, -0.01433563232421875, -0.04254150390625, 0.08306884765625, -0.00379180908203125, 0.0195465087890625, -0.037689208984375, -0.0063934326171875, 0.06512451171875, 0.045654296875, 0.036163330078125, -0.03533935546875, 0.00457763671875, -0.00621795654296875, 0.0203094482421875, 0.009857177734375, 0.0202484130859375, -0.05615234375, -0.019287109375, 0.05029296875, 0.004100799560546875, 0.00006210803985595703, 0.02581787109375, 0.01123046875, -0.00540924072265625, -0.01464080810546875, -0.035003662109375, 0.041839599609375, 0.031158447265625, 0.020355224609375, 0.022979736328125, -0.0007829666137695312, 0.07452392578125, -0.02880859375, -0.0234222412109375, -0.0440673828125, 0.01244354248046875, -0.003719329833984375, 0.025665283203125, -0.03863525390625, -0.057769775390625, -0.0033016204833984375, -0.03997802734375, -0.0159149169921875, 0.0223236083984375, 0.0005459785461425781, -0.00943756103515625, -0.0450439453125, -0.00396728515625, 0.0206298828125, 0.004276275634765625, 0.052703857421875, -0.034210205078125, 0.00507354736328125, 0.01465606689453125, 0.03765869140625, 0.01012420654296875, -0.03375244140625, -0.018524169921875, 0.025054931640625, -0.040985107421875, 0.0447998046875, 0.020660400390625, 0.0665283203125, -0.005550384521484375, 0.0182037353515625, 0.044677734375, 0.0290985107421875, 0.003925323486328125, -0.06451416015625, 0.0220184326171875, -0.03466796875, 0.01377105712890625, -0.034698486328125, 0.029266357421875, 0.0341796875, 0.06640625, 0.03668212890625, -0.01024627685546875, 0.0035572052001953125, -0.096435546875, 0.0400390625, -0.036834716796875, 0.0340576171875, -0.046112060546875, 0.0114898681640625, 0.0433349609375, -0.0023746490478515625, -0.06829833984375, 0.05828857421875, -0.0019779205322265625, -0.0199127197265625, 0.001300811767578125, 0.005565643310546875, -0.00412750244140625, -0.00047135353088378906, -0.01053619384765625, -0.007843017578125, 0.0074310302734375, 0.021759033203125, 0.02740478515625, -0.0264892578125, -0.004718780517578125, -0.0377197265625, 0.04913330078125, -0.0293426513671875, 0.042999267578125, 0.04693603515625, 0.0041351318359375, 0.0118255615234375, -0.00732421875, 0.01239776611328125, 0.006793975830078125, -0.0611572265625, -0.007732391357421875, 0.038726806640625, 0.024658203125, -0.00400543212890625, -0.0189361572265625, 0.00589752197265625, 0.063720703125, 0.031494140625, 0.01357269287109375, 0.0079803466796875, 0.023406982421875, 0.0284881591796875, -0.016326904296875, -0.01297760009765625, 0.028656005859375, -0.0283050537109375, 0.04248046875, 0.0268096923828125, -0.0295562744140625, 0.005611419677734375, 0.0297698974609375, -0.009063720703125, 0.0002269744873046875, 0.01169586181640625, 0.0130157470703125, -0.008270263671875, 0.0313720703125, 0.002674102783203125, 0.0162353515625, 0.01309967041015625, -0.037017822265625, 0.00980377197265625, 0.0209197998046875, -0.00868988037109375, -0.0034313201904296875, 0.0706787109375, -0.00634002685546875, -0.0096588134765625, -0.0095977783203125, -0.01190185546875, -0.044403076171875, 0.0256805419921875, 0.00145721435546875, 0.0250244140625, -0.0289459228515625, -0.01183319091796875, -0.005863189697265625, -0.027374267578125, -0.0006127357482910156, 0.00955963134765625, -0.060455322265625, -0.036346435546875, -0.01424407958984375, 0.046905517578125, 0.01544189453125, -0.0202178955078125, 0.0258331298828125, 0.0067138671875, 0.032958984375, -0.0250091552734375, 0.03564453125, -0.0174102783203125, 0.054534912109375, 0.0567626953125, -0.0275115966796875, 0.03094482421875, 0.0122833251953125, -0.0112762451171875, 0.0299530029296875, 0.00881195068359375, 0.0107574462890625, -0.005443572998046875, -0.008392333984375, 0.02972412109375, 0.009765625, 0.002376556396484375, -0.0006227493286132812, -0.0260467529296875, -0.03582763671875, -0.006565093994140625, -0.0423583984375, 0.00518798828125, 0.09197998046875, -0.01206207275390625, -0.00887298583984375, -0.01337432861328125, -0.024932861328125, -0.0430908203125, 0.01016998291015625, -0.025848388671875, 0.0282135009765625, -0.00786590576171875, -0.054046630859375, 0.0198974609375, -0.03253173828125, 0.03472900390625, -0.01007843017578125, 0.011962890625, -0.0026836395263671875, 0.0987548828125, -0.00440216064453125, -0.036956787109375, 0.002231597900390625, -0.0928955078125, -0.0018606185913085938, 0.0308990478515625, 0.02294921875, 0.03570556640625, -0.003692626953125, 0.03472900390625, 0.01026153564453125, 0.04046630859375, -0.060760498046875, -0.04498291015625, -0.0026569366455078125, 0.0088958740234375, 0.01348114013671875, 0.01042938232421875, -0.0031986236572265625, -0.008758544921875, -0.00943756103515625, -0.048248291015625, -0.060394287109375, -0.000036597251892089844, -0.042755126953125, 0.0251007080078125, 0.005466461181640625, 0.016998291015625, -0.0220184326171875, 0.059967041015625, 0.01535797119140625, 0.020721435546875, -0.003116607666015625, -0.026947021484375, 0.054229736328125, 0.026947021484375, 0.038330078125, -0.016937255859375, 0.005916595458984375, -0.0190582275390625, -0.0178985595703125, -0.01348876953125, 0.017059326171875, -0.00550079345703125, 0.01064300537109375, -0.019775390625, -0.02020263671875, 0.040496826171875, -0.00899505615234375, -0.03216552734375, 0.0223388671875, 0.0040283203125, 0.033050537109375, 0.03692626953125, -0.063232421875, -0.01654052734375, 0.018157958984375, 0.0204620361328125, -0.01248931884765625, -0.0408935546875, -0.0457763671875, -0.0307769775390625, -0.055999755859375, 0.016204833984375, 0.0023136138916015625, -0.0235748291015625, -0.0164642333984375, 0.00846099853515625, -0.01512908935546875, -0.0297393798828125, 0.018585205078125, 0.0297393798828125, -0.03497314453125, 0.01245880126953125, -0.05755615234375, 0.019378662109375, -0.0323486328125, -0.0048675537109375, -0.11944580078125, -0.022552490234375, -0.00662994384765625, 0.07196044921875, -0.033233642578125, 0.040924072265625, -0.045684814453125, 0.04266357421875, 0.0175018310546875, -0.0080108642578125, 0.0213623046875, -0.0025691986083984375, 0.00998687744140625, 0.0149993896484375, 0.01120758056640625, -0.0105133056640625, -0.0011539459228515625, -0.040283203125, -0.007030487060546875, 0.05975341796875, -0.020233154296875, 0.11248779296875, -0.032928466796875, 0.003253936767578125, 0.00809478759765625, -0.03228759765625, -0.03387451171875, 0.033538818359375, -0.049163818359375, 0.03936767578125, -0.032379150390625, -0.0022430419921875, 0.02117919921875, 0.0418701171875, -0.00595855712890625, -0.01020050048828125, 0.0628662109375, 0.0271453857421875, -0.018829345703125, -0.00023233890533447266, -0.0186767578125, 0.003948211669921875, -0.033538818359375, 0.051666259765625, 0.0301666259765625, -0.00940704345703125, 0.038177490234375, -0.036712646484375, -0.00782012939453125, -0.0330810546875, 0.044708251953125, -0.0123748779296875, -0.004184722900390625, 0.0125579833984375, -0.036865234375, 0.04168701171875, -0.025299072265625, 0.0274658203125, -0.0151824951171875, 0.00870513916015625, 0.033233642578125, 0.0357666015625, -0.0224151611328125, -0.0166778564453125, -0.050811767578125, 0.01300048828125, -0.049072265625, 0.0513916015625, 0.0206756591796875, -0.0003178119659423828, 0.020843505859375, 0.0014667510986328125, 0.003963470458984375, 0.0089874267578125, -0.0369873046875, -0.049041748046875, 0.0318603515625, -0.0478515625, -0.037078857421875, 0.0528564453125, -0.00968170166015625, 0.04083251953125, -0.004825592041015625, -0.057159423828125, 0.020843505859375, -0.01462554931640625, 0.039459228515625, 0.033843994140625, 0.005512237548828125, 0.0416259765625, 0.0181732177734375, -0.0172882080078125, -0.004032135009765625, -0.03857421875, 0.01030731201171875, -0.0614013671875, 0.0335693359375, 0.0173492431640625, -0.000050067901611328125, 0.01763916015625, 0.03656005859375, 0.0173797607421875, 0.0136871337890625, -0.014007568359375, 0.066650390625, 0.042449951171875, 0.02911376953125, -0.0014162063598632812, -0.0024433135986328125, -0.0017919540405273438, 0.011444091796875, -0.0233154296875, -0.020050048828125, 0.02423095703125, 0.03411865234375, 0.0159912109375, 0.02362060546875, -0.023773193359375, -0.01169586181640625, -0.03460693359375, 0.0189666748046875, 0.030242919921875, -0.031219482421875, -0.07135009765625, 0.004241943359375, 0.0289764404296875, 0.001720428466796875, -0.07122802734375, -0.010589599609375, -0.02899169921875, -0.04241943359375, -0.0242919921875, 0.05615234375, -0.05126953125, -0.00196075439453125, 0.00908660888671875, 0.000942230224609375, -0.00501251220703125, 0.01055908203125, -0.07403564453125, -0.045379638671875, -0.020599365234375, 0.01560211181640625, 0.053375244140625, -0.0305633544921875, 0.0308990478515625, -0.007015228271484375, 0.0080413818359375, 0.01097869873046875, 0.01702880859375, 0.035614013671875, 0.0191650390625, -0.0022144317626953125, -0.0238189697265625, -0.04443359375, -0.019500732421875, -0.0399169921875, -0.045684814453125, -0.004184722900390625, 0.0148162841796875, -0.0011548995971679688, 0.005634307861328125, -0.006481170654296875, -0.035797119140625, -0.015625, 0.009429931640625, 0.0281829833984375, 0.0021686553955078125, -0.00551605224609375, 0.068115234375, 0.01331329345703125, 0.026702880859375, 0.048187255859375, 0.0633544921875, -0.01381683349609375, -0.035491943359375, 0.0236053466796875, -0.0170440673828125, -0.052825927734375, 0.0105438232421875, -0.06988525390625, -0.0244293212890625, 0.0248565673828125, -0.01861572265625, 0.0039825439453125, -0.042449951171875, -0.0166473388671875, -0.0287017822265625, 0.036529541015625, -0.05035400390625, 0.02978515625, -0.03289794921875, 0.01352691650390625, 0.08343505859375, -0.06939697265625, -0.0728759765625, 0.0628662109375, -0.016082763671875, 0.0623779296875, 0.04864501953125, -0.00479888916015625, 0.04779052734375, 0.025482177734375, -0.0191802978515625, 0.01934814453125, 0.0184478759765625, 0.0015001296997070312, 0.0031299591064453125, -0.0273284912109375, 0.0230560302734375, 0.02288818359375, 0.04632568359375, 0.0009741783142089844, 0.0189971923828125, 0.056549072265625, -0.019775390625, 0.01085662841796875, 0.0147247314453125, 0.0548095703125, -0.04510498046875, 0.008209228515625, 0.0101776123046875, 0.0029582977294921875, 0.058135986328125, -0.0323486328125, 0.003753662109375, -0.0511474609375, 0.04119873046875, 0.01983642578125, -0.038360595703125, -0.013916015625, -0.00910186767578125, -0.0286712646484375, -0.006877899169921875, 0.0156097412109375, 0.01226806640625, 0.001628875732421875, -0.02130126953125, 0.00502777099609375, -0.0117340087890625, 0.020904541015625, 0.0177459716796875, -0.0296173095703125, -0.0167694091796875, -0.029937744140625, -0.0020751953125, -0.0400390625, -0.0237274169921875, 0.01471710205078125, 0.031524658203125, -0.0210418701171875, 0.03076171875, -0.01287841796875, 0.0182037353515625, 0.000713348388671875, -0.07415771484375, -0.0623779296875, -0.035369873046875, 0.03271484375, 0.0242767333984375, -0.01019287109375, 0.04559326171875, 0.0003495216369628906, -0.0697021484375, -0.0019817352294921875, 0.01445770263671875, 0.043487548828125, -0.02032470703125, -0.01548004150390625, 0.0271453857421875, 0.0107421875, -0.0024318695068359375, -0.0091705322265625, 0.060943603515625, -0.0323486328125, 0.00048661231994628906, 0.015472412109375, -0.008514404296875, -0.022186279296875, -0.018310546875, -0.053741455078125, 0.0440673828125, -0.00949859619140625, 0.034088134765625, 0.024871826171875, -0.005290985107421875, -0.0282135009765625, -0.01849365234375, -0.02301025390625, 0.045745849609375, 0.029876708984375, 0.04296875, -0.0400390625, -0.0272064208984375, 0.0262451171875, 0.055084228515625, 0.054229736328125, -0.005214691162109375, 0.0302734375, -0.02862548828125, 0.01355743408203125, 0.04730224609375, -0.01904296875, -0.022308349609375, -0.0386962890625, 0.00812530517578125, 0.026947021484375, -0.0550537109375, 0.0360107421875, -0.042724609375, -0.044952392578125, -0.029022216796875, 0.0252838134765625, 0.04144287109375, -0.0002536773681640625, 0.056732177734375, 0.0189056396484375, -0.0218353271484375, 0.01337432861328125, -0.0223388671875, -0.0004622936248779297, 0.048980712890625, 0.043487548828125, 0.01065826416015625, 0.01389312744140625, -0.0232086181640625, 0.058990478515625, 0.0173492431640625, 0.045013427734375, 0.054962158203125, 0.03521728515625, 0.031890869140625, -0.00855255126953125, 0.0255584716796875, -0.004306793212890625, -0.02392578125, 0.0144805908203125, 0.00405120849609375, 0.01480865478515625, -0.00891876220703125, 0.055999755859375, -0.01409149169921875, -0.00441741943359375, -0.0306549072265625, -0.0164794921875, 0.0231781005859375, 0.0003008842468261719, -0.0098876953125, -0.0160675048828125, -0.005828857421875, -0.0261077880859375, 0.0087127685546875, -0.0184173583984375, -0.0325927734375, -0.0027027130126953125, 0.061431884765625, -0.0010776519775390625, 0.00815582275390625, -0.026031494140625, -0.06597900390625, -0.021514892578125, 0.01227569580078125, 0.0173187255859375, 0.0191802978515625, -0.0014514923095703125, 0.041900634765625, 0.01488494873046875, -0.008697509765625, -0.018951416015625, 0.049407958984375, -0.0010614395141601562, 0.026824951171875, -0.08074951171875, -0.061248779296875, 0.0185089111328125, 0.053192138671875, 0.05157470703125, 0.03814697265625, 0.0312347412109375, -0.001445770263671875, -0.00011491775512695312, 0.0235595703125, 0.043304443359375, -0.019134521484375, -0.0129241943359375, -0.0293731689453125, 0.0252838134765625, 0.0282135009765625, -0.0009369850158691406, 0.00690460205078125, 0.01094818115234375, 0.0292205810546875, -0.006008148193359375, -0.01287078857421875, 0.00975799560546875, -0.0241851806640625, 0.00695037841796875, 0.0289154052734375, -0.0164031982421875, 0.0228729248046875, -0.060272216796875, 0.001674652099609375, -0.023223876953125, -0.04766845703125, 0.015289306640625, 0.03948974609375, -0.04705810546875, 0.038665771484375, -0.0293426513671875, -0.0027332305908203125, 0.022186279296875, -0.0253753662109375, 0.0031223297119140625, 0.0135650634765625, 0.0108184814453125, -0.006748199462890625, -0.048736572265625, -0.036651611328125, -0.0321044921875, 0.038330078125, 0.0185089111328125, 0.06976318359375, -0.012969970703125, 0.037811279296875, -0.0176544189453125, -0.0301055908203125, 0.033966064453125, 0.00435638427734375, -0.019134521484375, 0.044464111328125, 0.0042877197265625, -0.02825927734375, 0.0264892578125, 0.0660400390625, 0.0204925537109375, -0.00916290283203125, 0.05706787109375, -0.0396728515625, -0.00930023193359375, -0.0210723876953125, -0.0266876220703125, -0.02325439453125, -0.005504608154296875, 0.033233642578125, 0.0207977294921875, 0.00482177734375, -0.041412353515625, -0.0467529296875, 0.0075531005859375, -0.0048980712890625, -0.0206146240234375, 0.005756378173828125, 0.0129852294921875, -0.0151214599609375, 0.0220947265625, 0.00927734375, -0.0193328857421875, 0.04638671875, -0.0034809112548828125, -0.009979248046875, 0.0309295654296875, 0.03045654296875, 0.0205841064453125, -0.053680419921875, 0.01824951171875, 0.00695037841796875, 0.0263519287109375, -0.0155487060546875, -0.0097198486328125, 0.01568603515625, 0.0037860870361328125, -0.0241546630859375, -0.017852783203125, -0.01422882080078125, -0.0145263671875, -0.0226593017578125, 0.03460693359375, -0.0241851806640625, -0.052886962890625, -0.084228515625, -0.021331787109375, 0.00856781005859375, 0.002674102783203125, -0.034576416015625, 0.028594970703125, -0.01161956787109375, 0.0024433135986328125, -0.025054931640625, -0.0002067089080810547, -0.00916290283203125, 0.0159454345703125, -0.050384521484375, -0.0391845703125, -0.032440185546875, 0.021484375, -0.038421630859375, 0.04180908203125, 0.04150390625, -0.045166015625, 0.0250091552734375, 0.060760498046875, 0.059844970703125, 0.09967041015625, -0.0013113021850585938, -0.04608154296875, -0.0152130126953125, 0.016998291015625, 0.01739501953125, -0.026123046875, -0.0102691650390625, -0.0229949951171875, 0.003116607666015625, -0.0010995864868164062, -0.00677490234375, 0.004474639892578125, -0.032379150390625, -0.031707763671875, 0.0306854248046875, 0.0018415451049804688, -0.0261993408203125, -0.02215576171875, 0.016326904296875, -0.0015316009521484375, 0.015869140625, 0.012237548828125, -0.01317596435546875, -0.01197052001953125, -0.01081085205078125, 0.0026187896728515625, 0.032135009765625, -0.01227569580078125, 0.00852203369140625, -0.05072021484375, 0.0155029296875, -0.00719451904296875, 0.003963470458984375, -0.0177764892578125, -0.0159759521484375, 0.005245208740234375, -0.00240325927734375, -0.04766845703125, 0.00798797607421875, 0.0094146728515625, 0.029876708984375, -0.0174102783203125, 0.0023212432861328125, -0.0128326416015625, 0.016204833984375, 0.035614013671875, 0.07745361328125, 0.0087738037109375, -0.0472412109375, -0.010894775390625, 0.007564544677734375, 0.00933837890625, -0.04071044921875, 0.01143646240234375, -0.07916259765625, -0.043792724609375, -0.000896453857421875, 0.01519012451171875, -0.0150909423828125, -0.046112060546875, 0.00894927978515625, -0.01183319091796875, 0.0063323974609375, 0.01617431640625, 0.05010986328125, 0.040618896484375, -0.0167083740234375, -0.007709503173828125, 0.016754150390625, -0.0382080078125, 0.01058197021484375, -0.005451202392578125, -0.01666259765625, -0.057373046875, -0.06976318359375, 0.03692626953125, 0.054443359375, -0.0256195068359375, 0.0386962890625, -0.0235595703125, 0.0179595947265625, -0.01177215576171875, 0.0180511474609375, 0.01297760009765625, 0.021575927734375, -0.003376007080078125, 0.0289306640625, 0.009796142578125, 0.0035610198974609375, -0.0142364501953125, 0.0157470703125, -0.0129241943359375, 0.0216217041015625, 0.019805908203125, -0.0029048919677734375, 0.044952392578125, -0.00946044921875, -0.007472991943359375, 0.016754150390625, -0.0474853515625, -0.0810546875, 0.05584716796875, -0.014739990234375, 0.01367950439453125, 0.0390625 ]
83f85c171f21204ed2c50ac4c7c6b10fa0223431
Wordpress Stackexchange Q: How do I use the WP image functions in a page template? Wordpress has tons of mature code for image editing on the admin side, but I would like to provide a form inside of a custom page template for my visitors to drag and drop, crop and save a thumbnail image as part of a new draft post. I can do the page template, form, and draft post part, but am getting pretty frustrated trying to integrate the plupload, jcrop and gd library parts. I can do bits and pieces using each of those libraries but can't get them to play nice and it's getting way too complicated for me. Then it hit me: WordPress can do all that magic stuff on the admin side already (having "bundled" those common libraries), so if I can leverage those wp core functions from the front-end, I will be done. Can anyone give me an example or two on how to use those wp core media functions from inside a user-facing page template? Please see my similar post on wp.org A: There are several drag and drop WordPress themes, plugins and frameworks available. Maybe you could pick apart http://wordpress.org/extend/themes/presswork
Q: How do I use the WP image functions in a page template? Wordpress has tons of mature code for image editing on the admin side, but I would like to provide a form inside of a custom page template for my visitors to drag and drop, crop and save a thumbnail image as part of a new draft post. I can do the page template, form, and draft post part, but am getting pretty frustrated trying to integrate the plupload, jcrop and gd library parts. I can do bits and pieces using each of those libraries but can't get them to play nice and it's getting way too complicated for me. Then it hit me: WordPress can do all that magic stuff on the admin side already (having "bundled" those common libraries), so if I can leverage those wp core functions from the front-end, I will be done. Can anyone give me an example or two on how to use those wp core media functions from inside a user-facing page template? Please see my similar post on wp.org A: There are several drag and drop WordPress themes, plugins and frameworks available. Maybe you could pick apart http://wordpress.org/extend/themes/presswork A: The two key things I was missing was the realization that those javascript libs must be literally enqueued on the user-facing page that I intend to use them, and just experience on the mechanics of sending data between javascript and php by means of ajax and json.
wordpress
{ "language": "en", "length": 246, "provenance": "stackexchange_00019.jsonl.gz:427261", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77706" }
[ 0.02288818359375, 0.0004177093505859375, 0.009552001953125, 0.0014905929565429688, 0.0058746337890625, -0.03155517578125, 0.0643310546875, -0.03912353515625, 0.0618896484375, 0.0123443603515625, -0.04681396484375, -0.011962890625, 0.006069183349609375, -0.0063018798828125, -0.038665771484375, -0.00533294677734375, 0.051300048828125, -0.05194091796875, 0.0183868408203125, -0.00350189208984375, -0.008758544921875, 0.0255279541015625, 0.0360107421875, 0.0025634765625, 0.0066680908203125, 0.0152587890625, 0.006458282470703125, 0.0073089599609375, -0.011016845703125, -0.0180206298828125, 0.01190185546875, 0.0312042236328125, 0.00728607177734375, 0.0139617919921875, 0.00028014183044433594, 0.0352783203125, -0.0212249755859375, 0.0233917236328125, 0.024932861328125, 0.003124237060546875, -0.0052032470703125, 0.0164947509765625, -0.0205078125, 0.0179290771484375, -0.04071044921875, -0.0269317626953125, -0.021514892578125, -0.0256805419921875, -0.002285003662109375, 0.0280609130859375, 0.017974853515625, -0.0201416015625, 0.03399658203125, 0.0102386474609375, -0.01290130615234375, -0.035614013671875, -0.023529052734375, 0.052337646484375, 0.0287322998046875, 0.04034423828125, -0.031219482421875, 0.0196685791015625, -0.0039520263671875, -0.048248291015625, 0.00620269775390625, -0.00843048095703125, -0.0328369140625, 0.0158538818359375, -0.006381988525390625, -0.01467132568359375, 0.0002238750457763672, -0.01561737060546875, -0.01413726806640625, -0.065673828125, 0.0278167724609375, 0.049346923828125, -0.0126495361328125, 0.01300811767578125, -0.02239990234375, 0.0279388427734375, -0.011322021484375, -0.03790283203125, -0.0101776123046875, -0.01438140869140625, 0.0190887451171875, 0.02838134765625, -0.006439208984375, -0.01198577880859375, -0.018463134765625, 0.0204925537109375, -0.01505279541015625, -0.01015472412109375, -0.0222930908203125, 0.0200042724609375, 0.0030345916748046875, -0.0211944580078125, 0.009185791015625, 0.004962921142578125, 0.0008320808410644531, 0.03839111328125, 0.01171875, -0.06365966796875, 0.08868408203125, -0.038055419921875, 0.006740570068359375, 0.04449462890625, 0.006786346435546875, -0.0024547576904296875, 0.020050048828125, 0.01210784912109375, 0.003734588623046875, 0.00811767578125, -0.008819580078125, -0.02337646484375, -0.02587890625, 0.0267486572265625, -0.0257720947265625, 0.004398345947265625, 0.010406494140625, 0.0024356842041015625, 0.0017299652099609375, 0.0159149169921875, 0.052825927734375, -0.024932861328125, 0.01042938232421875, 0.0343017578125, -0.002307891845703125, -0.0802001953125, 0.017181396484375, 0.0030231475830078125, -0.0310211181640625, 0.02581787109375, 0.056365966796875, 0.0103302001953125, 0.000629425048828125, -0.0013113021850585938, 0.0135650634765625, -0.0206756591796875, 0.019500732421875, 0.00014138221740722656, 0.017974853515625, -0.02618408203125, -0.00257110595703125, 0.021392822265625, 0.013397216796875, -0.0051116943359375, 0.012603759765625, 0.03509521484375, 0.017913818359375, -0.03839111328125, 0.0447998046875, -0.0004513263702392578, -0.01163482666015625, 0.01611328125, 0.060394287109375, -0.0219268798828125, 0.05706787109375, -0.0274658203125, 0.037811279296875, -0.0229034423828125, 0.02886962890625, 0.005115509033203125, 0.0318603515625, -0.014739990234375, -0.01497650146484375, -0.0032863616943359375, -0.07525634765625, -0.00745391845703125, 0.0347900390625, 0.0241546630859375, 0.0031032562255859375, -0.034881591796875, 0.0218505859375, 0.045684814453125, 0.0132598876953125, 0.056182861328125, 0.05078125, 0.02001953125, 0.00377655029296875, 0.06640625, 0.004741668701171875, -0.029449462890625, 0.07330322265625, -0.047271728515625, -0.0232696533203125, -0.034515380859375, 0.017578125, 0.037506103515625, 0.0168609619140625, 0.04388427734375, 0.0152435302734375, 0.00714874267578125, -0.00821685791015625, 0.05352783203125, -0.01544952392578125, -0.03216552734375, -0.047454833984375, 0.017364501953125, -0.03564453125, -0.00324249267578125, 0.02520751953125, 0.00930023193359375, 0.0175933837890625, -0.020660400390625, 0.004787445068359375, 0.005458831787109375, -0.00925445556640625, 0.0240936279296875, -0.0382080078125, 0.007801055908203125, 0.044097900390625, 0.006534576416015625, -0.043243408203125, 0.0015497207641601562, -0.005413055419921875, 0.0155792236328125, -0.00457000732421875, 0.035430908203125, 0.0131072998046875, 0.055938720703125, 0.0027904510498046875, -0.04412841796875, -0.004680633544921875, 0.0014858245849609375, 0.0274200439453125, 0.0188751220703125, -0.03790283203125, -0.0037689208984375, -0.03619384765625, 0.0318603515625, -0.0789794921875, 0.047210693359375, -0.0223541259765625, 0.0284576416015625, 0.0025653839111328125, -0.01436614990234375, -0.004150390625, -0.04437255859375, 0.02978515625, 0.032318115234375, 0.024169921875, 0.043243408203125, 0.00975799560546875, 0.018646240234375, 0.0975341796875, 0.056732177734375, 0.034027099609375, -0.0143890380859375, 0.02685546875, 0.0190277099609375, -0.01117706298828125, -0.0224761962890625, 0.0164031982421875, -0.06781005859375, 0.03240966796875, 0.033599853515625, -0.028594970703125, 0.01543426513671875, 0.018218994140625, -0.009735107421875, 0.01180267333984375, -0.00469970703125, -0.004581451416015625, -0.0222930908203125, -0.0009016990661621094, 0.0149688720703125, 0.0293426513671875, 0.01192474365234375, -0.0286102294921875, 0.0080108642578125, 0.01776123046875, -0.0158233642578125, 0.01157379150390625, 0.042877197265625, -0.019866943359375, 0.0010242462158203125, -0.01509857177734375, -0.00988006591796875, 0.0078887939453125, 0.01055145263671875, -0.007205963134765625, 0.039398193359375, -0.048828125, -0.0111541748046875, -0.0312042236328125, -0.053375244140625, -0.0025196075439453125, 0.03948974609375, 0.035430908203125, 0.0283966064453125, 0.04766845703125, 0.035736083984375, 0.003925323486328125, 0.04779052734375, -0.0430908203125, -0.006221771240234375, 0.0294342041015625, -0.04010009765625, 0.04241943359375, -0.0199737548828125, 0.052978515625, 0.072021484375, -0.017852783203125, 0.031463623046875, -0.0017147064208984375, -0.018707275390625, -0.01117706298828125, 0.017974853515625, 0.01432037353515625, -0.035400390625, 0.0225067138671875, 0.068603515625, 0.0126190185546875, 0.0105133056640625, -0.024322509765625, -0.036407470703125, -0.0276641845703125, -0.0007939338684082031, -0.0648193359375, -0.026885986328125, -0.0196685791015625, -0.06976318359375, -0.0084686279296875, -0.0004086494445800781, -0.037353515625, 0.00910186767578125, 0.0288848876953125, 0.0038623809814453125, -0.046356201171875, 0.0019969940185546875, -0.0299530029296875, -0.06793212890625, -0.06396484375, -0.032470703125, -0.016082763671875, 0.031494140625, 0.005695343017578125, 0.04046630859375, 0.009429931640625, -0.054962158203125, 0.00615692138671875, 0.04119873046875, -0.0177459716796875, -0.006053924560546875, 0.0439453125, -0.03564453125, -0.0063629150390625, 0.004669189453125, 0.003936767578125, 0.035003662109375, -0.031524658203125, 0.0086517333984375, -0.031463623046875, -0.033782958984375, -0.039642333984375, 0.03179931640625, 0.046173095703125, -0.060394287109375, -0.019287109375, -0.076416015625, -0.020477294921875, -0.020904541015625, -0.043304443359375, 0.03558349609375, 0.047760009765625, -0.0174713134765625, -0.017578125, 0.006450653076171875, 0.03045654296875, 0.02728271484375, -0.00469207763671875, 0.00930023193359375, 0.0152130126953125, 0.002140045166015625, 0.00847625732421875, -0.03216552734375, 0.00966644287109375, -0.0225982666015625, 0.021392822265625, -0.01007080078125, 0.021026611328125, -0.0066375732421875, -0.00720977783203125, -0.045989990234375, -0.060089111328125, 0.035797119140625, 0.0014886856079101562, -0.0113067626953125, 0.0025615692138671875, -0.007114410400390625, 0.04327392578125, 0.07415771484375, 0.0107269287109375, -0.0228271484375, -0.044158935546875, -0.006572723388671875, -0.0149688720703125, -0.0216827392578125, -0.0006780624389648438, 0.00836944580078125, -0.0528564453125, -0.00701904296875, -0.0037975311279296875, -0.031829833984375, -0.0026988983154296875, 0.01273345947265625, -0.02935791015625, -0.0362548828125, 0.037567138671875, -0.0033512115478515625, 0.00008231401443481445, 0.0254669189453125, -0.0262603759765625, 0.0250244140625, -0.0191650390625, -0.01229095458984375, -0.09979248046875, -0.01044464111328125, -0.0293731689453125, 0.088134765625, 0.00397491455078125, -0.0006842613220214844, -0.0533447265625, 0.0177764892578125, 0.0035343170166015625, 0.03460693359375, -0.0272064208984375, 0.016082763671875, -0.00713348388671875, -0.0509033203125, -0.007843017578125, -0.042266845703125, -0.0009531974792480469, -0.048614501953125, -0.056365966796875, -0.057708740234375, -0.0193328857421875, -0.0013179779052734375, -0.0033550262451171875, -0.00860595703125, -0.005428314208984375, -0.0122833251953125, -0.00711822509765625, 0.035858154296875, -0.0042572021484375, -0.01605224609375, -0.03826904296875, -0.00792694091796875, 0.04058837890625, 0.01512908935546875, 0.01219940185546875, 0.0028514862060546875, 0.06915283203125, 0.01085662841796875, -0.0234527587890625, -0.0628662109375, 0.00981903076171875, 0.043212890625, -0.021697998046875, 0.036468505859375, 0.0298919677734375, -0.02923583984375, 0.034698486328125, 0.013458251953125, -0.005401611328125, -0.034912109375, 0.02081298828125, -0.00360107421875, -0.0216827392578125, 0.01213836669921875, -0.0159454345703125, 0.045440673828125, 0.006740570068359375, -0.03729248046875, -0.0223846435546875, -0.043487548828125, 0.059600830078125, -0.02862548828125, 0.05694580078125, -0.06109619140625, -0.042999267578125, 0.0142364501953125, -0.0537109375, 0.041656494140625, 0.023345947265625, -0.021881103515625, 0.0263519287109375, 0.018798828125, 0.0029888153076171875, 0.0133514404296875, -0.0059051513671875, -0.0007243156433105469, 0.03863525390625, 0.00966644287109375, 0.008056640625, 0.002590179443359375, -0.01611328125, 0.017486572265625, 0.00809478759765625, -0.02972412109375, -0.04876708984375, -0.0017795562744140625, -0.001796722412109375, -0.010772705078125, 0.0006418228149414062, 0.017425537109375, 0.0206298828125, 0.005786895751953125, 0.007785797119140625, -0.00745391845703125, 0.0115203857421875, -0.041595458984375, -0.029205322265625, 0.0159759521484375, -0.0295562744140625, 0.0272674560546875, 0.0017614364624023438, 0.024169921875, -0.007373809814453125, -0.0140838623046875, 0.043365478515625, 0.031707763671875, 0.0181732177734375, -0.00748443603515625, 0.04644775390625, 0.003307342529296875, -0.0174407958984375, 0.00499725341796875, -0.024017333984375, -0.00037169456481933594, 0.01287841796875, 0.0203094482421875, -0.005840301513671875, -0.01337432861328125, 0.01258087158203125, -0.00882720947265625, -0.0031604766845703125, 0.0206146240234375, 0.006793975830078125, -0.020233154296875, 0.0000998377799987793, 0.050048828125, 0.024658203125, -0.0086212158203125, -0.0123138427734375, 0.0033435821533203125, 0.013519287109375, 0.031768798828125, -0.007305145263671875, -0.0038852691650390625, 0.0341796875, 0.01178741455078125, -0.0185394287109375, -0.01404571533203125, -0.01354217529296875, -0.00801849365234375, 0.01183319091796875, -0.017120361328125, -0.0204315185546875, 0.045684814453125, -0.047821044921875, -0.0031890869140625, -0.042572021484375, 0.0498046875, -0.033660888671875, 0.01409149169921875, 0.05279541015625, 0.019500732421875, -0.00438690185546875, -0.037139892578125, -0.028076171875, -0.021240234375, -0.01395416259765625, -0.038055419921875, -0.03314208984375, -0.005035400390625, -0.0026836395263671875, 0.0297393798828125, 0.0016002655029296875, 0.001873016357421875, -0.0102691650390625, 0.01303863525390625, -0.01751708984375, 0.04669189453125, 0.0283203125, 0.0069580078125, -0.0106964111328125, 0.051483154296875, 0.0159454345703125, -0.006072998046875, -0.038665771484375, -0.024749755859375, -0.0018215179443359375, -0.05908203125, -0.0258331298828125, -0.017974853515625, -0.049224853515625, 0.088623046875, 0.0926513671875, 0.006092071533203125, 0.025421142578125, -0.02093505859375, 0.006397247314453125, -0.0204315185546875, 0.026397705078125, -0.049591064453125, -0.0221099853515625, 0.046234130859375, -0.042144775390625, 0.0173187255859375, -0.002658843994140625, -0.023468017578125, 0.04583740234375, -0.033447265625, 0.02178955078125, 0.06884765625, 0.003292083740234375, 0.01052093505859375, 0.059814453125, -0.008056640625, 0.03363037109375, 0.0322265625, 0.0026187896728515625, 0.01027679443359375, 0.038116455078125, -0.024993896484375, -0.05810546875, 0.0258636474609375, 0.01363372802734375, -0.003871917724609375, 0.0263671875, -0.01776123046875, 0.02581787109375, 0.04296875, 0.07257080078125, -0.04315185546875, 0.019134521484375, 0.0198822021484375, -0.03643798828125, 0.0159912109375, 0.005245208740234375, -0.0242919921875, -0.034393310546875, 0.041839599609375, -0.023956298828125, -0.00934600830078125, 0.0110321044921875, -0.0019664764404296875, -0.006343841552734375, -0.0148468017578125, 0.032806396484375, 0.010772705078125, -0.03924560546875, -0.01171875, 0.035003662109375, -0.0191497802734375, -0.0190277099609375, 0.0457763671875, -0.0506591796875, 0.006977081298828125, 0.0009679794311523438, 0.0221099853515625, 0.005855560302734375, -0.0132293701171875, 0.0498046875, 0.013702392578125, 0.041015625, 0.05780029296875, 0.007747650146484375, 0.00836944580078125, 0.02484130859375, -0.0004849433898925781, 0.0161895751953125, -0.019287109375, 0.01312255859375, -0.038909912109375, -0.07745361328125, 0.0012664794921875, -0.051483154296875, 0.01146697998046875, -0.01158905029296875, -0.002849578857421875, 0.08331298828125, -0.030120849609375, -0.0143890380859375, 0.053436279296875, -0.0029010772705078125, -0.039825439453125, -0.01157379150390625, 0.036712646484375, -0.0689697265625, -0.0606689453125, 0.00904083251953125, -0.081298828125, -0.0236358642578125, -0.0251617431640625, -0.06951904296875, 0.09393310546875, 0.00640869140625, 0.044708251953125, 0.00371551513671875, 0.0287628173828125, -0.013946533203125, 0.002742767333984375, -0.023406982421875, 0.013427734375, -0.0263214111328125, 0.04736328125, -0.0477294921875, 0.0220184326171875, -0.004650115966796875, 0.025421142578125, 0.060150146484375, 0.00946044921875, -0.0191650390625, -0.007579803466796875, 0.06353759765625, 0.0511474609375, 0.0155181884765625, 0.00969696044921875, -0.01442718505859375, -0.01971435546875, 0.00827789306640625, -0.00897216796875, 0.0164642333984375, -0.033294677734375, -0.00788116455078125, 0.006847381591796875, -0.01312255859375, -0.0116119384765625, -0.00506591796875, -0.02978515625, -0.06243896484375, -0.0026264190673828125, 0.043487548828125, -0.0286102294921875, -0.004486083984375, 0.01139068603515625, 0.0025177001953125, -0.032867431640625, -0.0257110595703125, -0.0236358642578125, 0.0206298828125, -0.0008130073547363281, 0.054290771484375, -0.007965087890625, 0.0257568359375, 0.006740570068359375, -0.00637054443359375, 0.032745361328125, 0.03302001953125, -0.05670166015625, 0.0250091552734375, -0.0171356201171875, -0.00400543212890625, -0.057525634765625, 0.034149169921875, 0.042510986328125, 0.0203094482421875, -0.048797607421875, -0.00537109375, 0.010711669921875, 0.00013911724090576172, 0.005615234375, -0.0012578964233398438, 0.033416748046875, -0.031402587890625, -0.032073974609375, 0.01393890380859375, -0.032745361328125, 0.01366424560546875, 0.005825042724609375, 0.01224517822265625, -0.0023326873779296875, 0.0274505615234375, -0.019744873046875, -0.01525115966796875, 0.007904052734375, -0.01053619384765625, 0.0270538330078125, 0.017181396484375, 0.0262908935546875, -0.01425933837890625, -0.00954437255859375, -0.01419830322265625, 0.0380859375, -0.0075225830078125, 0.0215606689453125, -0.0106201171875, -0.0206298828125, 0.004344940185546875, 0.01904296875, 0.003997802734375, 0.01898193359375, 0.039642333984375, 0.003665924072265625, -0.0693359375, -0.013916015625, 0.0157318115234375, -0.03729248046875, -0.0041046142578125, -0.024322509765625, -0.0108489990234375, -0.001373291015625, -0.01396942138671875, -0.0072174072265625, 0.0049896240234375, 0.0150299072265625, -0.0626220703125, 0.04510498046875, -0.01641845703125, -0.024200439453125, 0.0560302734375, -0.0390625, 0.0701904296875, -0.034637451171875, -0.126708984375, -0.0037403106689453125, -0.07427978515625, -0.071533203125, 0.047393798828125, 0.03875732421875, -0.040374755859375, 0.0284271240234375, 0.0289306640625, 0.01116943359375, 0.0032825469970703125, -0.0278472900390625, 0.0230560302734375, -0.04913330078125, 0.004901885986328125, -0.009307861328125, -0.00669097900390625, -0.01050567626953125, -0.010467529296875, 0.043212890625, 0.0023708343505859375, 0.10296630859375, -0.0626220703125, 0.0173187255859375, 0.045013427734375, 0.0021114349365234375, 0.01358795166015625, 0.037628173828125, 0.030792236328125, 0.005390167236328125, 0.00739288330078125, -0.033477783203125, 0.0006737709045410156, 0.01071929931640625, 0.01256561279296875, -0.03204345703125, -0.047210693359375, 0.0167999267578125, 0.0167999267578125, 0.044830322265625, 0.0284423828125, -0.0217437744140625, -0.004154205322265625, -0.0157470703125, -0.0186767578125, 0.0357666015625, 0.003337860107421875, -0.0020046234130859375, 0.0308837890625, 0.0023670196533203125, -0.00850677490234375, -0.014190673828125, -0.037750244140625, -0.0011072158813476562, 0.038330078125, -0.002532958984375, -0.05096435546875, 0.021697998046875, -0.00920867919921875, -0.0287628173828125, 0.006320953369140625, 0.0411376953125, 0.01149749755859375, -0.0596923828125, 0.010498046875, -0.01983642578125, 0.0106201171875, -0.0240936279296875, -0.0175323486328125, 0.007617950439453125, 0.007205963134765625, -0.044342041015625, -0.0360107421875, -0.0168914794921875, -0.030487060546875, -0.0221405029296875, 0.029083251953125, -0.036834716796875, -0.0096282958984375, -0.069580078125, 0.0020771026611328125, 0.0227203369140625, 0.025482177734375, -0.07177734375, 0.056304931640625, -0.006366729736328125, 0.00251007080078125, 0.00605010986328125, -0.016204833984375, 0.0005116462707519531, 0.05126953125, -0.0110931396484375, -0.05389404296875, -0.0322265625, 0.03515625, -0.033355712890625, 0.053619384765625, 0.077392578125, -0.055755615234375, -0.029449462890625, 0.06805419921875, 0.04705810546875, 0.11334228515625, -0.0089874267578125, -0.042083740234375, -0.028472900390625, 0.011077880859375, 0.03302001953125, -0.00785064697265625, -0.0007410049438476562, -0.0029010772705078125, -0.00734710693359375, -0.0153656005859375, 0.0054473876953125, 0.019287109375, -0.040740966796875, -0.09539794921875, 0.0191497802734375, -0.0196685791015625, -0.045623779296875, -0.035430908203125, 0.023834228515625, 0.0024242401123046875, -0.003360748291015625, -0.004261016845703125, -0.0175323486328125, -0.017608642578125, -0.0011529922485351562, 0.01163482666015625, 0.0273895263671875, 0.0302734375, 0.0261688232421875, -0.04449462890625, 0.0054473876953125, -0.020660400390625, 0.004764556884765625, 0.02520751953125, -0.0379638671875, 0.0220947265625, 0.034820556640625, -0.037811279296875, -0.06268310546875, -0.012176513671875, -0.01161956787109375, -0.0257110595703125, -0.0275726318359375, -0.034942626953125, -0.0082550048828125, 0.083740234375, 0.055908203125, 0.0288848876953125, -0.0304412841796875, 0.0267791748046875, -0.0019207000732421875, -0.050537109375, 0.007320404052734375, 0.0186004638671875, -0.03497314453125, 0.00717926025390625, 0.01727294921875, -0.01557159423828125, -0.0051727294921875, -0.0137481689453125, -0.048828125, -0.0082244873046875, -0.032562255859375, -0.0168304443359375, -0.0372314453125, 0.01110076904296875, 0.078125, -0.0548095703125, 0.0181884765625, -0.020477294921875, 0.0205230712890625, 0.040283203125, -0.03955078125, 0.000059604644775390625, 0.0310211181640625, -0.078125, -0.005229949951171875, -0.017242431640625, 0.000270843505859375, -0.052398681640625, 0.005889892578125, 0.00959014892578125, 0.01171875, -0.01486968994140625, 0.0092315673828125, -0.020355224609375, 0.0555419921875, -0.013458251953125, 0.050445556640625, -0.018829345703125, 0.0199432373046875, -0.016845703125, 0.01065826416015625, -0.0139617919921875, -0.0014467239379882812, 0.016815185546875, -0.02520751953125, 0.004436492919921875, -0.0173492431640625, -0.0390625, -0.01033782958984375, -0.0277862548828125, -0.028961181640625, -0.0263671875, -0.0009517669677734375 ]
d2231e0b7398589a0073956716218188880c9538
Wordpress Stackexchange Q: Is it possible to use object in add_action? So is it possible to do something like this with add_action? class class{} $my_class = new class; add_action('init', 'my_class'); A: You can do this: class testclass { function test() { echo 'howdy'; } } add_action('wp_head',array('testclass','test')); Or this: $t = new testclass(); add_action('wp_head',array($t,'test')); It doesn't work like... $t = new testclass(); add_action('wp_head','t'); // or this either, for good measure $t = new testclass(); add_action('wp_head',array('t')); .. but I am not sure what you are trying to accomplish by using that pattern. You've already instantiated the class so the constructor, if present, has already ran. Without a callback method, I don't know what you expect to happen.
Q: Is it possible to use object in add_action? So is it possible to do something like this with add_action? class class{} $my_class = new class; add_action('init', 'my_class'); A: You can do this: class testclass { function test() { echo 'howdy'; } } add_action('wp_head',array('testclass','test')); Or this: $t = new testclass(); add_action('wp_head',array($t,'test')); It doesn't work like... $t = new testclass(); add_action('wp_head','t'); // or this either, for good measure $t = new testclass(); add_action('wp_head',array('t')); .. but I am not sure what you are trying to accomplish by using that pattern. You've already instantiated the class so the constructor, if present, has already ran. Without a callback method, I don't know what you expect to happen. A: In the (accepted) answer the first example is incorrect: class testclass() { function test() { echo 'howdy'; } } add_action( 'wp_head', array( 'testclass', 'test' ) ); It is incorrect because method test is not static. The correct use for the static call in the action would be: class testclass() { function static test() { echo 'howdy'; } } add_action( 'wp_head', array( 'testclass', 'test' ) ); you could also write it then as: add_action( 'wp_head', 'testclass::test' ); A: class MyPluginClass { public function __construct() { add_action( 'save_post', array( $this, 'myplugin_save_posts' ) ); } public function myplugin_save_posts() { // do stuff here... } } $mypluginclass = new MyPluginClass(); check in Using Add Action In Your Class in WordPress Codex
wordpress
{ "language": "en", "length": 231, "provenance": "stackexchange_00019.jsonl.gz:427262", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77709" }
[ 0.080322265625, 0.006786346435546875, -0.01064300537109375, -0.04522705078125, 0.0443115234375, -0.0374755859375, 0.07373046875, -0.005802154541015625, -0.033477783203125, 0.004673004150390625, -0.0693359375, 0.0509033203125, -0.021392822265625, 0.00823974609375, 0.01534271240234375, -0.045440673828125, 0.05126953125, -0.01323699951171875, 0.0771484375, 0.0233001708984375, -0.00063323974609375, 0.05853271484375, 0.06341552734375, -0.0012331008911132812, 0.033477783203125, -0.035400390625, 0.0266571044921875, 0.015167236328125, 0.0169677734375, 0.006504058837890625, 0.01343536376953125, -0.0228118896484375, 0.02069091796875, 0.05084228515625, -0.042724609375, 0.0230255126953125, 0.004871368408203125, 0.01520538330078125, 0.000055789947509765625, 0.045135498046875, 0.0260162353515625, -0.002490997314453125, -0.0255889892578125, 0.012420654296875, -0.027923583984375, -0.055694580078125, 0.06072998046875, 0.00949859619140625, 0.0166168212890625, -0.047882080078125, -0.0035495758056640625, 0.0238037109375, 0.01392364501953125, -0.041046142578125, 0.005306243896484375, 0.0294342041015625, -0.020538330078125, 0.041412353515625, 0.04547119140625, 0.02484130859375, -0.038177490234375, -0.0012607574462890625, -0.0009388923645019531, -0.046661376953125, 0.03277587890625, 0.0079193115234375, 0.0006089210510253906, 0.014190673828125, -0.032745361328125, 0.045166015625, 0.037017822265625, -0.035919189453125, -0.005359649658203125, -0.034423828125, 0.00971221923828125, -0.0180511474609375, 0.005039215087890625, -0.0259246826171875, -0.00872802734375, 0.022308349609375, 0.031280517578125, -0.01367950439453125, -0.0120697021484375, -0.0118408203125, 0.0017976760864257812, 0.0140533447265625, -0.0045166015625, -0.0243988037109375, -0.0200347900390625, -0.030517578125, -0.0178375244140625, -0.0540771484375, 0.022125244140625, -0.023712158203125, -0.01702880859375, -0.036834716796875, -0.007110595703125, -0.00775146484375, 0.0289306640625, 0.05023193359375, 0.01174163818359375, -0.06439208984375, 0.07940673828125, -0.041107177734375, 0.0006737709045410156, 0.0168609619140625, -0.01209259033203125, -0.00740814208984375, 0.016571044921875, 0.037689208984375, -0.0086517333984375, -0.0210418701171875, 0.04473876953125, -0.01007080078125, 0.01971435546875, -0.02838134765625, -0.01110076904296875, 0.064208984375, 0.011993408203125, 0.00228118896484375, -0.0004839897155761719, -0.005733489990234375, 0.040679931640625, -0.003124237060546875, 0.002529144287109375, 0.0005588531494140625, -0.013092041015625, -0.027801513671875, 0.060455322265625, -0.05029296875, 0.0016546249389648438, 0.0241851806640625, 0.025543212890625, 0.0179901123046875, -0.004489898681640625, 0.01416778564453125, 0.03826904296875, 0.011688232421875, 0.00015723705291748047, 0.006366729736328125, 0.0196685791015625, -0.039031982421875, -0.041168212890625, 0.019866943359375, 0.031158447265625, 0.0290985107421875, 0.02447509765625, 0.0008759498596191406, -0.009490966796875, -0.04058837890625, 0.0570068359375, -0.078369140625, -0.016510009765625, 0.043121337890625, 0.0310211181640625, 0.060150146484375, 0.0088348388671875, 0.001567840576171875, -0.005222320556640625, 0.0208587646484375, 0.0345458984375, 0.0009889602661132812, 0.0029144287109375, -0.02642822265625, -0.053558349609375, -0.00902557373046875, -0.0176849365234375, -0.00481414794921875, 0.0253753662109375, 0.0105133056640625, -0.0098876953125, 0.021392822265625, 0.070556640625, 0.0286865234375, -0.01593017578125, 0.0036525726318359375, -0.0128173828125, 0.05426025390625, 0.006988525390625, -0.01064300537109375, -0.00716400146484375, -0.04156494140625, 0.03399658203125, -0.005428314208984375, -0.0163116455078125, 0.0230865478515625, 0.00809478759765625, 0.00655364990234375, -0.002033233642578125, 0.013092041015625, 0.0028629302978515625, 0.0299072265625, -0.041778564453125, 0.00647735595703125, -0.01328277587890625, 0.00569915771484375, -0.01381683349609375, 0.004180908203125, -0.0144500732421875, 0.01052093505859375, 0.04669189453125, 0.003215789794921875, 0.0131378173828125, -0.0035037994384765625, -0.048065185546875, 0.0153045654296875, -0.0116119384765625, 0.0362548828125, -0.042144775390625, -0.010894775390625, 0.0269775390625, -0.01983642578125, -0.0032863616943359375, -0.06817626953125, -0.01373291015625, 0.029571533203125, -0.03717041015625, 0.0162811279296875, 0.005130767822265625, 0.0064544677734375, 0.01364898681640625, -0.00496673583984375, 0.011322021484375, -0.01032257080078125, 0.0219573974609375, -0.00446319580078125, -0.01380157470703125, -0.015869140625, -0.01110076904296875, 0.0148468017578125, -0.0531005859375, 0.0298919677734375, -0.0157470703125, 0.021575927734375, -0.0241241455078125, -0.032470703125, -0.03948974609375, -0.0740966796875, 0.0157012939453125, 0.06109619140625, 0.03155517578125, 0.0145416259765625, 0.00045108795166015625, 0.003177642822265625, 0.045806884765625, 0.0202484130859375, 0.04144287109375, -0.040252685546875, -0.034149169921875, 0.01324462890625, -0.01184844970703125, 0.01556396484375, 0.02569580078125, -0.0092620849609375, -0.005825042724609375, 0.05609130859375, -0.0307769775390625, -0.051971435546875, -0.0226287841796875, 0.0059814453125, 0.039947509765625, -0.054534912109375, -0.0565185546875, 0.0020618438720703125, 0.042388916015625, 0.0036640167236328125, 0.016357421875, -0.00025844573974609375, -0.0178985595703125, 0.0223388671875, 0.01070404052734375, -0.0753173828125, 0.0233001708984375, 0.050079345703125, -0.0249176025390625, -0.00501251220703125, 0.002597808837890625, -0.01435089111328125, -0.009979248046875, 0.00623321533203125, -0.01496124267578125, 0.036224365234375, 0.027496337890625, -0.0236053466796875, -0.01270294189453125, 0.0118408203125, 0.0206146240234375, -0.047454833984375, 0.0233306884765625, -0.0213775634765625, 0.018707275390625, 0.01320648193359375, -0.045074462890625, 0.047332763671875, 0.0220794677734375, -0.038543701171875, 0.02532958984375, 0.043182373046875, 0.011016845703125, 0.00447845458984375, 0.0092926025390625, 0.0278472900390625, -0.037933349609375, 0.04107666015625, -0.0012750625610351562, -0.027069091796875, -0.015869140625, 0.009521484375, -0.005062103271484375, -0.0323486328125, -0.048065185546875, 0.0220794677734375, 0.039093017578125, 0.09033203125, 0.039642333984375, -0.049957275390625, 0.040191650390625, 0.060821533203125, -0.016143798828125, -0.0540771484375, 0.042816162109375, -0.07861328125, -0.0287017822265625, 0.005306243896484375, -0.0648193359375, -0.00960540771484375, 0.050079345703125, 0.006481170654296875, -0.0002834796905517578, -0.00731658935546875, 0.06884765625, 0.004131317138671875, 0.01117706298828125, -0.06573486328125, 0.0261383056640625, -0.0263214111328125, 0.0119171142578125, 0.0295257568359375, 0.007080078125, -0.00594329833984375, 0.036895751953125, 0.033111572265625, -0.004352569580078125, 0.0108184814453125, 0.0209503173828125, -0.0077362060546875, -0.004238128662109375, -0.00852203369140625, 0.028076171875, 0.02825927734375, -0.03973388671875, -0.005115509033203125, -0.0018939971923828125, -0.004131317138671875, 0.028411865234375, 0.040771484375, -0.0066375732421875, -0.003993988037109375, 0.0303955078125, -0.05633544921875, 0.0217742919921875, 0.047119140625, 0.01290130615234375, -0.057159423828125, -0.0377197265625, -0.0322265625, 0.00011134147644042969, -0.01120758056640625, -0.036590576171875, 0.0115203857421875, 0.018341064453125, -0.0011463165283203125, 0.010589599609375, -0.0280609130859375, -0.03741455078125, 0.003818511962890625, -0.0004372596740722656, -0.0220794677734375, 0.0184783935546875, -0.0084228515625, 0.020538330078125, -0.0167236328125, 0.0171966552734375, -0.07330322265625, -0.0316162109375, 0.0287628173828125, -0.05316162109375, 0.0306396484375, -0.0469970703125, -0.007503509521484375, 0.0026397705078125, 0.0921630859375, -0.016937255859375, -0.0144805908203125, 0.01026153564453125, 0.024169921875, -0.07830810546875, -0.057403564453125, -0.034881591796875, -0.006496429443359375, -0.00799560546875, -0.0196685791015625, -0.01038360595703125, -0.02679443359375, -0.0301971435546875, 0.005390167236328125, -0.0303802490234375, -0.0167999267578125, 0.015869140625, -0.0270843505859375, 0.0182952880859375, -0.0109405517578125, 0.017425537109375, -0.030181884765625, 0.0023860931396484375, -0.03662109375, -0.08441162109375, -0.0010919570922851562, -0.046295166015625, 0.07708740234375, 0.016571044921875, -0.007049560546875, -0.0267486572265625, 0.037872314453125, 0.022247314453125, 0.049407958984375, 0.04730224609375, 0.023529052734375, 0.043487548828125, -0.005931854248046875, 0.054290771484375, -0.02459716796875, 0.0328369140625, 0.0031585693359375, -0.0228271484375, 0.01256561279296875, -0.08428955078125, -0.00963592529296875, -0.054107666015625, -0.029296875, 0.042633056640625, -0.047210693359375, -0.031341552734375, 0.058837890625, -0.051483154296875, 0.0469970703125, -0.063232421875, 0.0213165283203125, -0.0294036865234375, -0.0430908203125, -0.01027679443359375, 0.035186767578125, 0.051055908203125, 0.034454345703125, 0.00847625732421875, 0.004364013671875, 0.00653076171875, 0.004489898681640625, 0.0068359375, 0.0273590087890625, -0.0200958251953125, 0.00402069091796875, -0.003292083740234375, -0.0250396728515625, -0.001750946044921875, -0.024658203125, 0.06878662109375, 0.020477294921875, 0.00865936279296875, 0.005336761474609375, 0.01168060302734375, 0.00380706787109375, -0.00588226318359375, -0.01183319091796875, -0.032562255859375, 0.027252197265625, 0.046417236328125, -0.05706787109375, 0.09429931640625, -0.007434844970703125, -0.01117706298828125, 0.00916290283203125, -0.05743408203125, 0.0184173583984375, 0.03839111328125, -0.0053558349609375, -0.0185546875, -0.03271484375, 0.0159149169921875, 0.055877685546875, 0.0265655517578125, -0.01418304443359375, 0.044403076171875, 0.0209503173828125, -0.0202789306640625, 0.0198822021484375, -0.016204833984375, 0.061065673828125, 0.01959228515625, -0.030059814453125, 0.024261474609375, -0.005519866943359375, 0.0260772705078125, -0.017852783203125, -0.02264404296875, 0.025787353515625, 0.036895751953125, -0.005462646484375, -0.0010690689086914062, -0.0261383056640625, 0.0299224853515625, -0.015350341796875, 0.038726806640625, 0.009002685546875, -0.0098876953125, 0.00506591796875, 0.0242462158203125, 0.022247314453125, -0.00001615285873413086, -0.018035888671875, 0.0501708984375, 0.0186309814453125, 0.048797607421875, 0.0224609375, -0.053466796875, 0.018951416015625, 0.0124664306640625, -0.0347900390625, -0.041229248046875, -0.01428985595703125, 0.020965576171875, 0.0526123046875, -0.025421142578125, -0.0202178955078125, 0.0284423828125, 0.005340576171875, -0.0250091552734375, 0.0086822509765625, 0.0234527587890625, 0.0002989768981933594, 0.007137298583984375, 0.0155181884765625, -0.0011434555053710938, 0.0156402587890625, 0.0205230712890625, 0.022613525390625, 0.032501220703125, 0.051544189453125, -0.03729248046875, 0.034912109375, -0.0273895263671875, -0.0216064453125, -0.05419921875, -0.0244293212890625, -0.004974365234375, 0.00632476806640625, -0.03656005859375, -0.0109100341796875, -0.047943115234375, 0.048858642578125, -0.002033233642578125, 0.0005412101745605469, -0.037353515625, 0.010772705078125, -0.047821044921875, 0.0025177001953125, 0.0345458984375, 0.0108489990234375, 0.00650787353515625, -0.021697998046875, -0.0237579345703125, 0.0027141571044921875, -0.0428466796875, -0.0609130859375, -0.008514404296875, -0.0017042160034179688, -0.0279693603515625, 0.002780914306640625, -0.01081085205078125, 0.018890380859375, 0.00589752197265625, 0.033538818359375, -0.01605224609375, 0.0017452239990234375, -0.0057373046875, 0.09503173828125, -0.004268646240234375, 0.07598876953125, 0.04010009765625, 0.061370849609375, -0.00753021240234375, -0.039947509765625, 0.01549530029296875, -0.03363037109375, -0.01042938232421875, 0.0020046234130859375, -0.041229248046875, -0.0225982666015625, 0.026580810546875, -0.021331787109375, -0.0001575946807861328, -0.00858306884765625, -0.0028018951416015625, -0.017578125, 0.007659912109375, -0.02099609375, -0.00884246826171875, -0.025054931640625, -0.0298919677734375, -0.0024471282958984375, -0.0029010772705078125, 0.0094146728515625, 0.030029296875, -0.032928466796875, 0.01351165771484375, -0.0015897750854492188, -0.0207977294921875, 0.0192413330078125, 0.0662841796875, 0.013580322265625, 0.064453125, 0.02264404296875, 0.0273590087890625, 0.05047607421875, 0.036224365234375, -0.03656005859375, -0.04266357421875, 0.049346923828125, 0.0270233154296875, -0.0249786376953125, 0.03997802734375, -0.0240478515625, 0.07049560546875, 0.01053619384765625, 0.066650390625, -0.055755615234375, 0.054473876953125, 0.003833770751953125, -0.0182952880859375, 0.08758544921875, -0.0009908676147460938, 0.0299530029296875, -0.00699615478515625, 0.007686614990234375, 0.020050048828125, -0.022369384765625, 0.005924224853515625, -0.0096893310546875, -0.01230621337890625, -0.00862884521484375, -0.030792236328125, 0.01384735107421875, -0.0236358642578125, 0.05657958984375, 0.01641845703125, 0.02923583984375, -0.021209716796875, 0.043731689453125, -0.00033545494079589844, 0.0294342041015625, -0.00980377197265625, 0.0618896484375, -0.03582763671875, 0.006534576416015625, 0.019500732421875, -0.006641387939453125, 0.0177459716796875, 0.04193115234375, -0.006381988525390625, 0.0141448974609375, 0.0007214546203613281, 0.017974853515625, -0.081298828125, 0.0018749237060546875, 0.01849365234375, 0.048675537109375, -0.07989501953125, 0.0406494140625, -0.0753173828125, 0.0218048095703125, 0.033935546875, 0.01020050048828125, 0.0009469985961914062, -0.05755615234375, 0.00046181678771972656, 0.037353515625, -0.07916259765625, 0.0005669593811035156, -0.0059356689453125, -0.0406494140625, -0.01068878173828125, 0.0085601806640625, -0.0274200439453125, -0.0275726318359375, 0.04937744140625, -0.02862548828125, -0.03167724609375, 0.07867431640625, 0.01157379150390625, -0.01519012451171875, -0.01534271240234375, 0.0489501953125, 0.002349853515625, 0.0372314453125, -0.043914794921875, 0.037506103515625, 0.00901031494140625, 0.0267486572265625, -0.029296875, 0.01325225830078125, 0.006195068359375, -0.0004451274871826172, 0.00299835205078125, -0.005146026611328125, -0.024261474609375, 0.003910064697265625, 0.016845703125, 0.0008168220520019531, -0.005096435546875, 0.03704833984375, -0.00823211669921875, -0.033538818359375, 0.02484130859375, 0.0093536376953125, 0.0248260498046875, 0.0019445419311523438, -0.01064300537109375, 0.0204315185546875, -0.0264434814453125, -0.03466796875, 0.01117706298828125, 0.05908203125, -0.029998779296875, -0.0026912689208984375, 0.019378662109375, -0.00618743896484375, -0.022491455078125, 0.0260162353515625, 0.0030307769775390625, 0.00920867919921875, -0.034515380859375, -0.01551055908203125, 0.0263671875, 0.01209259033203125, -0.01294708251953125, 0.0150604248046875, 0.0020580291748046875, -0.043121337890625, 0.01189422607421875, -0.01385498046875, 0.03515625, -0.00675201416015625, 0.05145263671875, 0.03863525390625, 0.03466796875, -0.0199127197265625, -0.005397796630859375, 0.03997802734375, 0.075927734375, -0.038726806640625, -0.018402099609375, -0.009002685546875, -0.0037631988525390625, 0.0291595458984375, -0.0106048583984375, 0.04150390625, -0.012847900390625, -0.004390716552734375, -0.031585693359375, 0.0113983154296875, 0.0220794677734375, 0.004116058349609375, 0.00655364990234375, 0.037994384765625, -0.06317138671875, 0.0005350112915039062, -0.0294952392578125, 0.0101776123046875, 0.00243377685546875, 0.056304931640625, 0.01230621337890625, 0.06622314453125, -0.0352783203125, -0.02923583984375, -0.009613037109375, -0.0012178421020507812, 0.002262115478515625, 0.0249481201171875, 0.00832366943359375, 0.0226287841796875, -0.0267791748046875, 0.016845703125, 0.0157318115234375, 0.04608154296875, 0.0411376953125, 0.0222930908203125, -0.0029582977294921875, 0.010406494140625, 0.0221710205078125, -0.0264892578125, -0.005191802978515625, -0.006160736083984375, -0.034027099609375, -0.01432037353515625, -0.038787841796875, -0.001331329345703125, 0.0191192626953125, 0.00034165382385253906, -0.020111083984375, -0.002140045166015625, -0.005126953125, -0.04736328125, 0.0211944580078125, 0.007801055908203125, 0.0880126953125, 0.019378662109375, -0.0276336669921875, -0.018402099609375, -0.003292083740234375, -0.06396484375, 0.049591064453125, 0.054046630859375, -0.01435089111328125, 0.007160186767578125, 0.006351470947265625, -0.000904083251953125, -0.0011663436889648438, 0.0168914794921875, -0.0218658447265625, -0.0209503173828125, 0.046051025390625, -0.00392913818359375, -0.005138397216796875, 0.0014410018920898438, 0.00861358642578125, 0.019317626953125, 0.020599365234375, 0.02899169921875, 0.0018243789672851562, 0.026580810546875, -0.0284423828125, 0.01641845703125, -0.034088134765625, -0.01824951171875, 0.00409698486328125, 0.0009150505065917969, 0.00615692138671875, 0.006710052490234375, -0.0419921875, 0.0215301513671875, 0.035797119140625, -0.01177978515625, 0.008514404296875, 0.0136260986328125, 0.0232391357421875, -0.024749755859375, 0.055572509765625, 0.0036678314208984375, -0.0066986083984375, -0.03363037109375, -0.01123046875, 0.05328369140625, 0.0297698974609375, -0.0052337646484375, -0.01398468017578125, -0.0020885467529296875, -0.04681396484375, 0.01318359375, -0.00252532958984375, -0.03338623046875, 0.00904083251953125, 0.04193115234375, -0.0240325927734375, 0.0413818359375, -0.004169464111328125, 0.00952911376953125, 0.023468017578125, 0.040435791015625, 0.034271240234375, -0.05902099609375, 0.0305633544921875, 0.0234222412109375, 0.04949951171875, -0.030548095703125, 0.0153656005859375, 0.034637451171875, 0.0024623870849609375, -0.01152801513671875, -0.0269622802734375, -0.02178955078125, -0.0357666015625, -0.01232147216796875, 0.01194000244140625, -0.023681640625, -0.025543212890625, -0.03570556640625, -0.01103973388671875, 0.038604736328125, 0.017730712890625, -0.0361328125, -0.0006418228149414062, -0.005580902099609375, 0.013946533203125, 0.01678466796875, -0.0209808349609375, 0.0195465087890625, 0.033355712890625, -0.0302581787109375, -0.036407470703125, -0.032012939453125, 0.033172607421875, -0.038818359375, 0.052978515625, 0.0667724609375, -0.03900146484375, 0.039306640625, 0.0413818359375, 0.043487548828125, 0.0892333984375, -0.0203094482421875, -0.012237548828125, 0.01433563232421875, 0.002758026123046875, -0.00922393798828125, -0.01233673095703125, 0.0168609619140625, -0.0212860107421875, -0.040557861328125, 0.00833892822265625, -0.015045166015625, -0.0018253326416015625, -0.043304443359375, -0.035369873046875, 0.052276611328125, 0.000042498111724853516, -0.0302734375, -0.10186767578125, 0.0302581787109375, 0.0085296630859375, 0.0229949951171875, -0.025848388671875, -0.0138397216796875, -0.020751953125, 0.040863037109375, 0.0072479248046875, 0.038787841796875, 0.0195159912109375, -0.004177093505859375, -0.001819610595703125, 0.01222991943359375, 0.00652313232421875, -0.0160675048828125, -0.006500244140625, -0.016571044921875, 0.053680419921875, 0.0433349609375, -0.0023899078369140625, 0.0246124267578125, 0.02752685546875, -0.0183258056640625, 0.01235198974609375, -0.03564453125, -0.052001953125, -0.0247955322265625, 0.0386962890625, 0.000301361083984375, 0.0182037353515625, -0.020477294921875, 0.0241241455078125, -0.00240325927734375, -0.052947998046875, -0.0221099853515625, 0.0177764892578125, -0.038909912109375, -0.03485107421875, -0.005779266357421875, 0.0175933837890625, -0.01378631591796875, -0.0111236572265625, -0.004650115966796875, -0.0211334228515625, 0.051910400390625, 0.037384033203125, -0.0177001953125, -0.0035419464111328125, 0.04876708984375, -0.019561767578125, 0.0168609619140625, 0.0122528076171875, 0.01085662841796875, 0.0283966064453125, 0.03436279296875, 0.0030307769775390625, 0.003162384033203125, -0.018218994140625, 0.00833892822265625, 0.0007410049438476562, 0.0211944580078125, -0.01666259765625, -0.01280975341796875, -0.009613037109375, 0.038787841796875, 0.00948333740234375, 0.03564453125, -0.0185546875, 0.0770263671875, 0.0086517333984375, 0.044647216796875, 0.005878448486328125, 0.032684326171875, -0.0169525146484375, 0.0506591796875, 0.019287109375, -0.0308380126953125, 0.04632568359375, -0.05224609375, -0.01715087890625, 0.025482177734375, 0.0055694580078125, -0.065673828125, 0.06689453125, 0.031494140625, 0.0264434814453125, 0.042449951171875 ]
370b2badd49416ae993f8e1d7d354d76c90e95f7
Wordpress Stackexchange Q: Change Label for field used in Woo Commerce I'm using WooCommerce, and using a BACS Payment method which is actually Bank Trasnfer. The fields account details are fine, but for Indian context.. i need to change following two fields labels to something else. For example: Change IBAN label to MICR Code, and BIC to IFSC. And also need to disable Sort Code. However, please note that I don't to make chanegs into plugin's code itself. So looking for some function that can help change the label from my theme function file. Any help is appreciated. A: It gets its label using a localisation call, __('IBAN', 'woocommerce'), so you could always just intercept that and change the text: /** * filter translations, to replace some WooCommerce text with our own * @param string $translation the translated text * @param string $text the text before translation * @param string $domain the gettext domain for translation * @return string */ function wpse_77783_woo_bacs_ibn($translation, $text, $domain) { if ($domain == 'woocommerce') { switch ($text) { case 'IBAN': $translation = 'MICR'; break; case 'BIC': $translation = 'IFSC'; break; } } return $translation; } add_filter('gettext', 'wpse_77783_woo_bacs_ibn', 10, 3);
Q: Change Label for field used in Woo Commerce I'm using WooCommerce, and using a BACS Payment method which is actually Bank Trasnfer. The fields account details are fine, but for Indian context.. i need to change following two fields labels to something else. For example: Change IBAN label to MICR Code, and BIC to IFSC. And also need to disable Sort Code. However, please note that I don't to make chanegs into plugin's code itself. So looking for some function that can help change the label from my theme function file. Any help is appreciated. A: It gets its label using a localisation call, __('IBAN', 'woocommerce'), so you could always just intercept that and change the text: /** * filter translations, to replace some WooCommerce text with our own * @param string $translation the translated text * @param string $text the text before translation * @param string $domain the gettext domain for translation * @return string */ function wpse_77783_woo_bacs_ibn($translation, $text, $domain) { if ($domain == 'woocommerce') { switch ($text) { case 'IBAN': $translation = 'MICR'; break; case 'BIC': $translation = 'IFSC'; break; } } return $translation; } add_filter('gettext', 'wpse_77783_woo_bacs_ibn', 10, 3);
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:427286", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77783" }
[ -0.04986572265625, -0.0167388916015625, -0.046112060546875, 0.007289886474609375, -0.01152801513671875, -0.017486572265625, -0.01184844970703125, 0.01212310791015625, 0.005130767822265625, 0.0214691162109375, -0.0214996337890625, -0.02020263671875, -0.00791168212890625, -0.0198516845703125, -0.022979736328125, -0.040802001953125, -0.01056671142578125, 0.0308837890625, 0.00514984130859375, -0.016754150390625, -0.0087738037109375, -0.0178680419921875, -0.01226806640625, -0.0172271728515625, 0.0251312255859375, -0.047515869140625, 0.0819091796875, -0.01947021484375, 0.036376953125, 0.01849365234375, 0.0266265869140625, -0.048919677734375, 0.013702392578125, 0.01995849609375, -0.01053619384765625, -0.02813720703125, 0.01462554931640625, -0.0057373046875, -0.006732940673828125, 0.021820068359375, 0.036407470703125, -0.031219482421875, -0.012481689453125, 0.01387786865234375, -0.001007080078125, -0.0306396484375, 0.0347900390625, -0.040740966796875, 0.01329803466796875, 0.02813720703125, 0.006412506103515625, 0.031890869140625, 0.0108642578125, -0.0005698204040527344, -0.010406494140625, -0.0084075927734375, -0.09832763671875, 0.042633056640625, 0.0216217041015625, 0.067138671875, 0.03399658203125, -0.01800537109375, -0.023406982421875, -0.028900146484375, 0.0015516281127929688, 0.01029205322265625, 0.00461578369140625, -0.00685882568359375, -0.0121917724609375, 0.0130462646484375, 0.021575927734375, -0.0212249755859375, -0.001895904541015625, -0.026458740234375, -0.01055145263671875, 0.02197265625, 0.006412506103515625, 0.002716064453125, 0.01001739501953125, -0.01300811767578125, 0.055206298828125, -0.0066986083984375, 0.012176513671875, 0.018280029296875, -0.0178375244140625, 0.016845703125, 0.007801055908203125, -0.0235595703125, -0.06707763671875, -0.00576019287109375, -0.032135009765625, -0.047637939453125, -0.07861328125, 0.0270538330078125, 0.007480621337890625, -0.00496673583984375, 0.00774383544921875, 0.023895263671875, -0.0302886962890625, -0.006038665771484375, 0.00861358642578125, -0.022369384765625, 0.00936126708984375, -0.0129547119140625, 0.00788116455078125, 0.007465362548828125, -0.0421142578125, 0.005615234375, 0.0684814453125, 0.045928955078125, 0.0116729736328125, 0.0075836181640625, -0.0171966552734375, -0.02325439453125, -0.0245819091796875, 0.0153350830078125, -0.0225830078125, -0.00885009765625, -0.00508880615234375, -0.0196380615234375, -0.0169525146484375, -0.025970458984375, 0.058868408203125, -0.0273284912109375, 0.0183563232421875, -0.0108489990234375, -0.044952392578125, -0.0057830810546875, -0.01361846923828125, -0.0246124267578125, -0.0190887451171875, 0.01291656494140625, 0.040008544921875, 0.06524658203125, 0.02581787109375, 0.0018186569213867188, 0.0096282958984375, 0.04302978515625, 0.0171051025390625, -0.00872039794921875, 0.029327392578125, -0.00390625, 0.00006186962127685547, 0.031982421875, 0.0030269622802734375, 0.010528564453125, 0.0256500244140625, 0.0299224853515625, -0.01678466796875, -0.037750244140625, 0.02703857421875, -0.0135498046875, 0.0380859375, 0.028961181640625, -0.036407470703125, 0.0557861328125, 0.057464599609375, -0.006984710693359375, -0.09246826171875, -0.052825927734375, 0.017120361328125, -0.034912109375, -0.0025787353515625, -0.02593994140625, -0.05560302734375, 0.04058837890625, -0.037872314453125, -0.01476287841796875, 0.0221405029296875, 0.0305938720703125, 0.0218353271484375, 0.01265716552734375, 0.0333251953125, 0.00693511962890625, -0.01090240478515625, -0.007740020751953125, -0.0178680419921875, 0.0626220703125, 0.0122833251953125, -0.01141357421875, -0.01023101806640625, -0.060028076171875, 0.043792724609375, -0.00562286376953125, -0.017333984375, 0.006343841552734375, 0.01477813720703125, 0.00867462158203125, -0.005321502685546875, 0.01409912109375, 0.0159912109375, 0.038848876953125, -0.003093719482421875, -0.036224365234375, -0.0033855438232421875, -0.0167694091796875, 0.03936767578125, 0.01166534423828125, 0.005634307861328125, 0.02001953125, 0.04815673828125, -0.00986480712890625, 0.01277923583984375, -0.0078887939453125, 0.004596710205078125, -0.01148223876953125, 0.00543212890625, -0.00821685791015625, -0.0268402099609375, 0.0097503662109375, 0.023101806640625, -0.00720977783203125, -0.0198974609375, -0.014068603515625, -0.0180206298828125, -0.045166015625, -0.0164031982421875, 0.0533447265625, 0.0096435546875, 0.0186920166015625, 0.037841796875, -0.067626953125, 0.043487548828125, 0.046783447265625, 0.01416778564453125, 0.00890350341796875, -0.0032367706298828125, 0.0025577545166015625, 0.0645751953125, -0.0012540817260742188, 0.053955078125, 0.00646209716796875, 0.024444580078125, -0.04254150390625, -0.02947998046875, 0.0036563873291015625, -0.0126800537109375, -0.1280517578125, -0.016448974609375, 0.08062744140625, 0.0419921875, 0.002254486083984375, 0.00319671630859375, -0.00638580322265625, 0.031494140625, -0.007656097412109375, 0.02813720703125, -0.0272979736328125, 0.00412750244140625, 0.034210205078125, -0.0242919921875, -0.00005435943603515625, 0.01445770263671875, -0.036224365234375, -0.001544952392578125, 0.0323486328125, -0.01010894775390625, -0.0092010498046875, 0.0245208740234375, 0.006122589111328125, -0.0121307373046875, -0.0291748046875, -0.0260162353515625, -0.0163726806640625, -0.003421783447265625, 0.0178985595703125, 0.0157012939453125, 0.00872039794921875, -0.049530029296875, 0.0069122314453125, 0.047393798828125, 0.061370849609375, -0.0195159912109375, -0.0220489501953125, -0.047393798828125, -0.00659942626953125, -0.046142578125, 0.06207275390625, -0.0406494140625, -0.048553466796875, 0.01482391357421875, 0.038604736328125, -0.038299560546875, -0.0181121826171875, 0.0166168212890625, -0.0084228515625, -0.043731689453125, 0.0011167526245117188, -0.034637451171875, -0.054473876953125, -0.01371002197265625, 0.0185699462890625, -0.037628173828125, 0.016754150390625, -0.015655517578125, -0.0328369140625, 0.031585693359375, 0.002185821533203125, 0.005886077880859375, -0.0279388427734375, 0.017181396484375, 0.031707763671875, 0.0004482269287109375, -0.0279083251953125, 0.01221466064453125, -0.041778564453125, 0.00481414794921875, 0.01025390625, -0.00487518310546875, 0.0097198486328125, -0.047393798828125, 0.035003662109375, -0.005779266357421875, -0.01580810546875, -0.0306396484375, -0.049530029296875, -0.0206298828125, -0.02874755859375, -0.079345703125, -0.04632568359375, -0.062103271484375, -0.01317596435546875, -0.031890869140625, 0.03515625, -0.0035991668701171875, 0.0229034423828125, 0.0264739990234375, 0.006134033203125, 0.04840087890625, -0.00809478759765625, -0.048492431640625, 0.009735107421875, -0.061737060546875, -0.0008220672607421875, -0.005313873291015625, 0.00015079975128173828, 0.01406097412109375, -0.0227813720703125, 0.0191192626953125, -0.005115509033203125, 0.044830322265625, 0.102294921875, -0.0098876953125, -0.006561279296875, 0.01995849609375, -0.0633544921875, 0.0033397674560546875, -0.00878143310546875, 0.001209259033203125, 0.00626373291015625, 0.00540924072265625, 0.00505828857421875, 0.0023899078369140625, 0.066650390625, 0.00592041015625, -0.026153564453125, 0.0171966552734375, 0.038909912109375, -0.054595947265625, -0.046844482421875, -0.0531005859375, 0.036041259765625, -0.02801513671875, 0.02899169921875, -0.025146484375, -0.0092620849609375, 0.039520263671875, 0.037628173828125, 0.031982421875, 0.0002510547637939453, 0.0115814208984375, -0.03607177734375, 0.00878143310546875, 0.034912109375, 0.0535888671875, -0.0238037109375, 0.0233154296875, -0.01190948486328125, 0.00232696533203125, 0.00534820556640625, 0.025177001953125, -0.01136016845703125, 0.0188446044921875, -0.041839599609375, -0.061370849609375, 0.04052734375, -0.07183837890625, -0.033660888671875, -0.0201263427734375, -0.00702667236328125, -0.0033817291259765625, 0.06903076171875, 0.0020313262939453125, -0.0240936279296875, 0.004131317138671875, 0.0066986083984375, -0.03460693359375, -0.03106689453125, -0.01152801513671875, -0.004962921142578125, -0.0548095703125, 0.01453399658203125, -0.0002605915069580078, -0.0196990966796875, -0.00684356689453125, -0.01285552978515625, -0.0204010009765625, -0.0296478271484375, 0.0300750732421875, 0.005466461181640625, -0.0184326171875, 0.0300140380859375, -0.032806396484375, 0.01071929931640625, -0.047576904296875, 0.004749298095703125, -0.057647705078125, -0.0239715576171875, 0.0191650390625, 0.047576904296875, 0.0017480850219726562, -0.00624847412109375, -0.0110015869140625, 0.051116943359375, 0.004924774169921875, 0.048126220703125, -0.0228118896484375, -0.010467529296875, 0.03863525390625, 0.0017976760864257812, -0.00392913818359375, 0.0009560585021972656, 0.0153656005859375, 0.00787353515625, -0.050018310546875, 0.046295166015625, 0.007549285888671875, 0.051177978515625, 0.042816162109375, -0.050506591796875, -0.0888671875, -0.043060302734375, -0.031158447265625, -0.033233642578125, -0.013885498046875, -0.0311126708984375, -0.0188751220703125, -0.076171875, 0.053955078125, -0.00939178466796875, -0.017730712890625, 0.0106658935546875, 0.06951904296875, 0.0018262863159179688, -0.01922607421875, -0.047454833984375, -0.0129852294921875, 0.03521728515625, 0.0014390945434570312, 0.0153350830078125, -0.0006313323974609375, -0.043853759765625, 0.10272216796875, 0.003662109375, -0.00911712646484375, 0.021240234375, 0.0197296142578125, 0.0203094482421875, -0.01934814453125, -0.002796173095703125, -0.0036487579345703125, -0.0062713623046875, 0.00777435302734375, 0.006999969482421875, -0.03265380859375, -0.0014390945434570312, 0.03289794921875, 0.007656097412109375, 0.0038909912109375, -0.0215606689453125, 0.00228118896484375, -0.0019159317016601562, 0.05462646484375, -0.0259857177734375, 0.004642486572265625, 0.00588226318359375, -0.05731201171875, -0.026947021484375, 0.0014476776123046875, -0.047271728515625, -0.04156494140625, -0.01508331298828125, 0.022491455078125, -0.00934600830078125, 0.017608642578125, -0.007110595703125, -0.007740020751953125, 0.054290771484375, -0.0199737548828125, -0.0204315185546875, -0.037750244140625, -0.033477783203125, -0.0144500732421875, 0.0295257568359375, -0.03363037109375, 0.02001953125, 0.0135345458984375, -0.030426025390625, 0.03369140625, 0.0006256103515625, -0.03948974609375, -0.035308837890625, -0.0197296142578125, 0.00045561790466308594, -0.01085662841796875, 0.0032367706298828125, 0.05535888671875, -0.0096893310546875, 0.02392578125, -0.0191650390625, 0.018890380859375, 0.006603240966796875, 0.04351806640625, 0.03350830078125, -0.033416748046875, -0.003543853759765625, 0.01224517822265625, -0.027984619140625, -0.04656982421875, -0.0012445449829101562, 0.0290679931640625, 0.03668212890625, -0.016693115234375, -0.0271453857421875, 0.02789306640625, 0.00447845458984375, -0.0118408203125, 0.01812744140625, 0.0079345703125, -0.0212554931640625, -0.024993896484375, -0.0014162063598632812, 0.0232086181640625, 0.01143646240234375, 0.016448974609375, -0.04449462890625, -0.0306396484375, -0.03009033203125, -0.0179595947265625, 0.014129638671875, -0.04290771484375, -0.045013427734375, 0.005336761474609375, -0.0338134765625, 0.00611114501953125, 0.017974853515625, 0.049957275390625, -0.0521240234375, -0.0313720703125, 0.058929443359375, 0.0024814605712890625, 0.055938720703125, -0.0162200927734375, -0.058929443359375, -0.00494384765625, -0.01343536376953125, 0.07781982421875, 0.04217529296875, -0.063232421875, -0.0178985595703125, -0.041351318359375, -0.0068206787109375, -0.034423828125, -0.051300048828125, -0.0112762451171875, 0.0086669921875, -0.0209197998046875, 0.03192138671875, -0.03497314453125, -0.006702423095703125, 0.023773193359375, -0.0032405853271484375, -0.0302276611328125, 0.043914794921875, -0.03369140625, 0.0538330078125, -0.0003859996795654297, 0.008056640625, -0.003833770751953125, 0.044342041015625, 0.02459716796875, -0.01175689697265625, -0.02532958984375, -0.0224761962890625, -0.01264190673828125, 0.01140594482421875, -0.0183563232421875, 0.052581787109375, 0.0653076171875, 0.01395416259765625, 0.05169677734375, -0.0037021636962890625, 0.0026645660400390625, -0.02288818359375, -0.0416259765625, -0.035858154296875, 0.0174560546875, 0.04473876953125, -0.00778961181640625, 0.03460693359375, -0.020416259765625, -0.018768310546875, 0.0118255615234375, -0.019378662109375, 0.0300140380859375, 0.01218414306640625, -0.00274658203125, 0.0197906494140625, -0.0018339157104492188, -0.000942230224609375, 0.0009450912475585938, -0.005275726318359375, 0.01325225830078125, -0.0189056396484375, -0.0012884140014648438, -0.0169677734375, 0.00365447998046875, -0.022735595703125, -0.0345458984375, -0.017303466796875, -0.03289794921875, -0.00751495361328125, 0.019500732421875, 0.054779052734375, 0.08172607421875, -0.06781005859375, -0.00473785400390625, 0.043914794921875, -0.0151214599609375, 0.0035762786865234375, 0.0404052734375, -0.030303955078125, -0.045166015625, 0.00794219970703125, -0.0748291015625, -0.007781982421875, 0.002887725830078125, -0.0035762786865234375, -0.001312255859375, 0.007511138916015625, 0.042816162109375, -0.016265869140625, -0.038604736328125, -0.06695556640625, 0.022491455078125, -0.05938720703125, -0.0032558441162109375, 0.0214996337890625, 0.01418304443359375, -0.0189361572265625, -0.052215576171875, 0.006015777587890625, 0.005626678466796875, -0.03594970703125, 0.0017604827880859375, -0.00336456298828125, 0.06768798828125, 0.05810546875, 0.0025424957275390625, -0.0247955322265625, 0.031585693359375, 0.01134490966796875, -0.00959014892578125, -0.0198822021484375, 0.0020198822021484375, 0.069580078125, -0.06060791015625, 0.025787353515625, -0.0303497314453125, 0.022003173828125, -0.01100921630859375, -0.06341552734375, 0.0022182464599609375, 0.0155487060546875, -0.01739501953125, 0.018310546875, -0.0003914833068847656, 0.0016384124755859375, -0.01358795166015625, 0.038909912109375, -0.06451416015625, -0.08099365234375, 0.004573822021484375, -0.066162109375, -0.0139617919921875, -0.05169677734375, -0.09429931640625, 0.06103515625, 0.02618408203125, 0.0587158203125, -0.005558013916015625, 0.01401519775390625, -0.01947021484375, -0.0196685791015625, -0.033355712890625, 0.03985595703125, -0.003681182861328125, 0.0311431884765625, -0.0285491943359375, -0.0036602020263671875, 0.009765625, 0.0302276611328125, -0.033935546875, -0.001659393310546875, 0.005401611328125, 0.0225830078125, 0.040802001953125, 0.01364898681640625, 0.00958251953125, 0.009368896484375, 0.006214141845703125, -0.035430908203125, -0.00031375885009765625, -0.01177215576171875, 0.0209197998046875, -0.042999267578125, 0.00714874267578125, 0.0179595947265625, -0.0088653564453125, -0.01227569580078125, 0.0124664306640625, 0.0108184814453125, -0.02691650390625, -0.004344940185546875, 0.0180511474609375, -0.05694580078125, -0.0025691986083984375, -0.010406494140625, -0.0156402587890625, 0.005359649658203125, 0.0272979736328125, -0.020721435546875, 0.024444580078125, -0.005626678466796875, 0.021270751953125, 0.055572509765625, 0.007617950439453125, 0.08221435546875, -0.0021038055419921875, 0.01166534423828125, -0.00766754150390625, 0.03533935546875, -0.0217437744140625, 0.005924224853515625, 0.0103607177734375, 0.0439453125, 0.11798095703125, -0.00893402099609375, -0.048309326171875, -0.0360107421875, -0.0005898475646972656, 0.00519561767578125, -0.0120697021484375, 0.016357421875, -0.033477783203125, 0.025787353515625, -0.058685302734375, -0.042999267578125, 0.0012693405151367188, 0.0045623779296875, 0.01381683349609375, 0.05499267578125, 0.020660400390625, 0.04718017578125, -0.08489990234375, -0.03857421875, -0.028045654296875, 0.0287322998046875, -0.00420379638671875, 0.042083740234375, -0.00975799560546875, 0.0843505859375, -0.030853271484375, -0.01496124267578125, 0.01558685302734375, -0.0063629150390625, 0.01294708251953125, -0.039703369140625, -0.01160430908203125, -0.02496337890625, 0.005218505859375, 0.0237274169921875, -0.004955291748046875, 0.0246124267578125, 0.032928466796875, 0.0158843994140625, -0.013092041015625, -0.0019073486328125, 0.054962158203125, -0.0258941650390625, -0.004009246826171875, 0.0082244873046875, -0.0270843505859375, 0.01080322265625, -0.0206298828125, -0.0181427001953125, 0.0287017822265625, 0.0047607421875, -0.00042366981506347656, 0.032257080078125, 0.005931854248046875, -0.005977630615234375, 0.03265380859375, 0.0146331787109375, 0.0401611328125, 0.04339599609375, -0.01467132568359375, 0.0171356201171875, -0.0596923828125, 0.01114654541015625, -0.0190582275390625, 0.01076507568359375, -0.0118865966796875, 0.050750732421875, 0.0195159912109375, -0.03851318359375, 0.045745849609375, -0.01222991943359375, 0.0006375312805175781, -0.041107177734375, -0.011749267578125, -0.04132080078125, 0.00943756103515625, -0.002140045166015625, 0.005725860595703125, 0.0401611328125, 0.02880859375, -0.01027679443359375, 0.005970001220703125, 0.037506103515625, -0.043182373046875, -0.039947509765625, 0.017242431640625, -0.049346923828125, 0.0289154052734375, 0.0207672119140625, -0.0150604248046875, -0.006626129150390625, -0.0077972412109375, -0.01605224609375, 0.04693603515625, -0.0286712646484375, -0.00833892822265625, -0.01230621337890625, 0.03302001953125, -0.003841400146484375, 0.053497314453125, -0.028839111328125, -0.049224853515625, -0.0357666015625, 0.00830078125, 0.0014972686767578125, -0.011016845703125, -0.0239410400390625, 0.01306915283203125, 0.01041412353515625, -0.000579833984375, 0.0222015380859375, 0.0024566650390625, 0.03253173828125, 0.0313720703125, -0.039947509765625, 0.0007767677307128906, -0.0228729248046875, -0.037200927734375, -0.00832366943359375, -0.01100921630859375, 0.0179290771484375, -0.033111572265625, 0.00095367431640625, -0.0177764892578125, 0.01549530029296875, 0.0032196044921875, -0.02197265625, 0.01558685302734375, 0.01142120361328125, -0.0245819091796875, -0.013275146484375, 0.0290374755859375, -0.00908660888671875, 0.0237884521484375, -0.0082244873046875, -0.0214385986328125, 0.057586669921875, -0.02996826171875, 0.0276031494140625, -0.0242919921875, 0.01788330078125, -0.0005364418029785156, -0.017120361328125, -0.0222930908203125, -0.0010128021240234375, 0.016876220703125, 0.0023860931396484375, -0.03289794921875, -0.006130218505859375, -0.0167083740234375, -0.02032470703125, -0.041748046875, -0.06640625, 0.00896453857421875, -0.058563232421875, -0.02142333984375, 0.0152435302734375, 0.0018253326416015625, -0.060882568359375, -0.033477783203125, -0.0230560302734375, 0.00786590576171875, 0.028076171875, -0.0391845703125, 0.00701141357421875, -0.0123138427734375, 0.004474639892578125, -0.076171875, 0.0112762451171875, -0.118408203125, -0.0001283884048461914, -0.031646728515625, -0.0274658203125, -0.037750244140625, -0.04888916015625, -0.0322265625, 0.0576171875, 0.0087890625, -0.007602691650390625, -0.069091796875, 0.014312744140625, -0.0217132568359375, 0.0809326171875, -0.0018854141235351562, -0.03228759765625, -0.018524169921875, 0.031951904296875, 0.0050506591796875, 0.020355224609375, 0.02764892578125, -0.0176239013671875, -0.0272216796875, -0.01342010498046875, -0.006969451904296875, 0.006134033203125, 0.0262603759765625, -0.032135009765625, -0.01031494140625, -0.0102081298828125, -0.06768798828125, -0.1181640625, -0.03192138671875, 0.01108551025390625, 0.01097869873046875, -0.055572509765625, -0.007152557373046875, -0.03851318359375, 0.044158935546875, -0.031494140625, 0.0026226043701171875, 0.0149078369140625, -0.00513458251953125, 0.0238037109375, 0.04071044921875, 0.01471710205078125, -0.0240631103515625, -0.017669677734375, -0.0256500244140625, -0.00986480712890625, -0.01375579833984375, 0.007904052734375, 0.03143310546875, -0.03875732421875, 0.013427734375, 0.0238189697265625, -0.0217437744140625, -0.062042236328125, -0.033050537109375, 0.04351806640625, -0.0218353271484375, 0.01091766357421875, -0.01239776611328125, 0.033355712890625, 0.0229034423828125, -0.01983642578125, -0.060150146484375, -0.0511474609375, 0.0255126953125, 0.039886474609375, -0.0199127197265625, 0.04571533203125, -0.002986907958984375, 0.025665283203125, -0.009002685546875, 0.032684326171875, -0.01031494140625, 0.03076171875, -0.0011034011840820312, 0.038116455078125, 0.00445556640625, 0.043182373046875, -0.017547607421875, 0.0288848876953125, -0.00156402587890625, 0.005443572998046875, -0.021148681640625, 0.0172882080078125, 0.0178375244140625, -0.0176239013671875, 0.0213775634765625, 0.007083892822265625, 0.0009527206420898438, -0.0200042724609375, 0.0220184326171875, -0.018890380859375, -0.00254058837890625, 0.01418304443359375 ]
269c13a83f578d05d93c98a43d3864fbbca9961c
Wordpress Stackexchange Q: Display user registration date I want to show user registration date like Member since: 15,dec 2012. I have a code <?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> but it show same date in all users profiles. Can some one please tell me how I fix that. A: $udata = get_userdata( $user->ID ); $registered = $udata->user_registered; printf( $table, 'Registered', date( "M Y", strtotime( $registered ) ) );
Q: Display user registration date I want to show user registration date like Member since: 15,dec 2012. I have a code <?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> but it show same date in all users profiles. Can some one please tell me how I fix that. A: $udata = get_userdata( $user->ID ); $registered = $udata->user_registered; printf( $table, 'Registered', date( "M Y", strtotime( $registered ) ) ); A: get_current_user_id() give you the user id of the logged in user. And that is: you. You have to get all users: <?php $users = get_users(); foreach( $users as $user ) { $udata = get_userdata( $user->ID ); $registered = $udata->user_registered; printf( '%s member since %s<br>', $udata->data->display_name, date( "M Y", strtotime( $registered ) ) ); } A: If you want to use it for front-end, this is the best example: //Get post author ID $post_author_id = get_post_field( 'post_author', $post->ID ); //Get the registration date $registered_date = get_the_author_meta( 'user_registered', $post_author_id ); //Convert to desired format $output = date( 'F j, Y', strtotime($registered_date)); //Echo echo $output;
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:427314", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77876" }
[ 0.06707763671875, 0.0190887451171875, -0.01380157470703125, -0.058197021484375, 0.031890869140625, -0.035736083984375, -0.008209228515625, -0.029998779296875, 0.0288848876953125, 0.03118896484375, 0.01317596435546875, 0.004756927490234375, -0.03912353515625, -0.0207977294921875, -0.0673828125, -0.021240234375, 0.031341552734375, 0.0012559890747070312, 0.0235595703125, -0.0026988983154296875, -0.0125579833984375, 0.020660400390625, 0.0297393798828125, -0.0283355712890625, 0.0189208984375, -0.042327880859375, 0.0968017578125, -0.024932861328125, 0.045684814453125, -0.0144805908203125, 0.015045166015625, -0.032501220703125, -0.01064300537109375, 0.03472900390625, 0.01102447509765625, 0.0222320556640625, 0.037109375, 0.01141357421875, 0.0256195068359375, 0.0300140380859375, 0.0226898193359375, -0.016998291015625, 0.019775390625, -0.060455322265625, 0.00299072265625, -0.042633056640625, 0.07373046875, 0.0044097900390625, 0.007724761962890625, 0.05072021484375, 0.0300445556640625, 0.0184173583984375, 0.0279083251953125, 0.020660400390625, -0.005817413330078125, -0.016143798828125, -0.0299224853515625, 0.04486083984375, 0.0279388427734375, 0.0258636474609375, -0.0166473388671875, 0.01947021484375, 0.00313568115234375, -0.03167724609375, -0.0016794204711914062, -0.01971435546875, 0.041595458984375, 0.0229339599609375, -0.050018310546875, -0.030181884765625, 0.044219970703125, 0.002079010009765625, -0.019866943359375, -0.017730712890625, -0.038482666015625, 0.01218414306640625, -0.0221099853515625, -0.040740966796875, 0.0196075439453125, 0.010345458984375, -0.037628173828125, -0.032958984375, -0.0557861328125, 0.014434814453125, -0.0292510986328125, 0.0177459716796875, -0.0228118896484375, -0.002109527587890625, -0.03314208984375, -0.0143890380859375, -0.034820556640625, -0.0209503173828125, -0.0170440673828125, -0.01094818115234375, -0.0066070556640625, -0.011383056640625, 0.057952880859375, 0.07647705078125, -0.034698486328125, -0.054443359375, -0.0185699462890625, 0.0034942626953125, -0.09991455078125, 0.0091400146484375, 0.003993988037109375, 0.081787109375, 0.0217132568359375, 0.0117645263671875, 0.0090484619140625, -0.01184844970703125, 0.0273590087890625, -0.01140594482421875, -0.033111572265625, -0.037445068359375, -0.033294677734375, 0.05364990234375, -0.0007762908935546875, -0.048797607421875, 0.01812744140625, -0.016387939453125, 0.043182373046875, 0.061920166015625, -0.0012569427490234375, -0.0193328857421875, 0.01290130615234375, 0.021453857421875, -0.0162506103515625, -0.057586669921875, -0.020965576171875, -0.01495361328125, -0.006076812744140625, 0.0263671875, 0.01064300537109375, 0.0270538330078125, -0.01012420654296875, 0.00728607177734375, 0.0252227783203125, -0.03472900390625, -0.054107666015625, 0.0753173828125, -0.06866455078125, -0.045013427734375, 0.006000518798828125, -0.06768798828125, -0.040191650390625, 0.040771484375, 0.0304107666015625, 0.0050048828125, -0.019134521484375, -0.06976318359375, -0.0149078369140625, -0.0200958251953125, -0.013519287109375, 0.023651123046875, -0.0002340078353881836, 0.0261383056640625, -0.022552490234375, 0.00394439697265625, -0.0035037994384765625, 0.0219879150390625, 0.05419921875, -0.0068511962890625, -0.043609619140625, -0.00736236572265625, -0.048797607421875, -0.003948211669921875, -0.01074981689453125, 0.005279541015625, 0.0227203369140625, -0.01214599609375, 0.022430419921875, -0.004573822021484375, 0.0640869140625, 0.0045013427734375, -0.025115966796875, 0.0183258056640625, -0.0139617919921875, 0.0088043212890625, 0.0098114013671875, 0.0161285400390625, -0.0009446144104003906, -0.031341552734375, 0.0196685791015625, -0.00217437744140625, -0.0313720703125, 0.043487548828125, -0.0201263427734375, -0.007007598876953125, 0.045562744140625, -0.0232086181640625, 0.01367950439453125, 0.042938232421875, -0.01214599609375, 0.023101806640625, 0.00505828857421875, -0.0313720703125, 0.011199951171875, -0.005748748779296875, -0.0010595321655273438, -0.0258636474609375, -0.032318115234375, 0.0010061264038085938, -0.007495880126953125, -0.0012197494506835938, -0.07891845703125, 0.0305633544921875, -0.043914794921875, 0.0509033203125, -0.0286865234375, 0.041015625, 0.02972412109375, 0.0171966552734375, -0.057464599609375, -0.00991058349609375, -0.004428863525390625, 0.0009722709655761719, -0.02227783203125, 0.031402587890625, 0.0176544189453125, 0.0211334228515625, 0.0028820037841796875, 0.005939483642578125, 0.01078033447265625, -0.0257110595703125, 0.01372528076171875, -0.0176544189453125, -0.006381988525390625, -0.0293426513671875, 0.0343017578125, -0.00865936279296875, 0.0154571533203125, 0.0269622802734375, -0.04010009765625, 0.006526947021484375, -0.050537109375, -0.0308990478515625, -0.01837158203125, -0.003093719482421875, 0.042144775390625, 0.04156494140625, 0.0198822021484375, 0.0125732421875, 0.0160675048828125, 0.036956787109375, 0.05035400390625, -0.006801605224609375, 0.0286407470703125, 0.004810333251953125, -0.026123046875, -0.0000133514404296875, 0.0294036865234375, 0.01497650146484375, 0.01154327392578125, -0.006866455078125, 0.00017058849334716797, 0.0419921875, -0.00021326541900634766, 0.004398345947265625, -0.0158233642578125, 0.014556884765625, -0.00965118408203125, -0.0606689453125, -0.011199951171875, -0.037139892578125, -0.05859375, 0.0092620849609375, 0.0003707408905029297, 0.0138092041015625, 0.003635406494140625, -0.00829315185546875, 0.00844573974609375, -0.01413726806640625, 0.0221099853515625, -0.01183319091796875, -0.047607421875, 0.0204315185546875, -0.06451416015625, 0.036163330078125, 0.0244140625, -0.0138092041015625, 0.00463104248046875, -0.0226593017578125, 0.0037784576416015625, 0.0030517578125, 0.060546875, -0.0239715576171875, 0.018707275390625, 0.021942138671875, -0.0235748291015625, -0.0253753662109375, 0.00799560546875, 0.04559326171875, -0.0224151611328125, 0.03179931640625, -0.00965118408203125, -0.0006356239318847656, -0.053985595703125, -0.0033435821533203125, 0.007526397705078125, -0.0221405029296875, -0.00569915771484375, 0.049560546875, 0.019927978515625, -0.006404876708984375, -0.0006699562072753906, -0.0212249755859375, 0.017547607421875, -0.02435302734375, -0.033782958984375, -0.026275634765625, -0.0127716064453125, 0.04046630859375, 0.0212860107421875, 0.0248870849609375, -0.01154327392578125, -0.051971435546875, -0.041717529296875, 0.00992584228515625, -0.094482421875, -0.06390380859375, -0.1201171875, -0.040863037109375, 0.01053619384765625, 0.01393890380859375, -0.0036373138427734375, 0.0247650146484375, 0.0222320556640625, 0.05010986328125, 0.0107574462890625, -0.017852783203125, -0.037017822265625, -0.041656494140625, -0.044891357421875, -0.012451171875, -0.0010986328125, -0.0034046173095703125, -0.0206451416015625, 0.07861328125, -0.00624847412109375, -0.066650390625, -0.06964111328125, 0.004726409912109375, -0.0170745849609375, -0.023681640625, -0.01242828369140625, -0.005733489990234375, 0.01367950439453125, 0.006175994873046875, 0.000217437744140625, 0.0167083740234375, -0.01629638671875, -0.01629638671875, 0.0307464599609375, -0.0186309814453125, 0.0439453125, -0.005558013916015625, -0.055999755859375, 0.0235137939453125, 0.042205810546875, -0.031982421875, -0.0008511543273925781, 0.035858154296875, -0.020172119140625, 0.0009670257568359375, -0.0038967132568359375, -0.047027587890625, 0.00469207763671875, 0.002895355224609375, -0.034576416015625, -0.0168304443359375, 0.00010639429092407227, -0.05078125, 0.04498291015625, 0.00489044189453125, -0.004467010498046875, 0.020782470703125, -0.004947662353515625, -0.0245361328125, 0.01001739501953125, -0.01087188720703125, 0.0177154541015625, -0.01117706298828125, 0.030914306640625, 0.003997802734375, -0.08734130859375, 0.05865478515625, -0.0139007568359375, -0.02972412109375, -0.050262451171875, -0.03363037109375, -0.0116729736328125, 0.09521484375, -0.0298919677734375, -0.0063934326171875, 0.0232086181640625, 0.009521484375, -0.0433349609375, 0.027069091796875, -0.07958984375, 0.01515960693359375, -0.04669189453125, 0.00814056396484375, 0.0032196044921875, -0.015838623046875, -0.02532958984375, -0.0117645263671875, -0.052032470703125, -0.0217742919921875, 0.0261993408203125, 0.05987548828125, -0.032379150390625, 0.0226593017578125, -0.016876220703125, 0.0024585723876953125, -0.024261474609375, 0.0249786376953125, -0.05615234375, -0.0241546630859375, -0.00872802734375, 0.0672607421875, 0.03448486328125, -0.055999755859375, -0.0002732276916503906, 0.0377197265625, 0.033203125, 0.00554656982421875, 0.00957489013671875, -0.050140380859375, 0.018585205078125, 0.0202178955078125, 0.014923095703125, 0.0014438629150390625, -0.04095458984375, -0.072509765625, -0.0106048583984375, 0.0140228271484375, -0.0017805099487304688, 0.0821533203125, -0.02703857421875, 0.0399169921875, 0.021087646484375, 0.022857666015625, -0.0129852294921875, 0.0322265625, -0.038330078125, 0.0023365020751953125, 0.029022216796875, -0.0246124267578125, 0.043792724609375, 0.01412200927734375, -0.014801025390625, -0.0036334991455078125, 0.050262451171875, 0.0098419189453125, -0.03680419921875, -0.0211639404296875, 0.005828857421875, 0.035858154296875, -0.01239013671875, 0.03765869140625, 0.00843048095703125, -0.03436279296875, 0.07415771484375, -0.01309967041015625, 0.01216888427734375, -0.0201263427734375, 0.0102691650390625, 0.0152130126953125, -0.0146636962890625, 0.01548004150390625, 0.01216888427734375, 0.0123291015625, 0.0148162841796875, -0.005146026611328125, -0.004909515380859375, -0.00716400146484375, 0.0228118896484375, -0.00237274169921875, 0.016265869140625, -0.033477783203125, -0.02679443359375, 0.0193023681640625, -0.06597900390625, -0.0229949951171875, -0.0224761962890625, 0.0032672882080078125, -0.037994384765625, 0.0233612060546875, -0.02655029296875, -0.00945281982421875, -0.047454833984375, 0.02447509765625, 0.0115814208984375, -0.02874755859375, -0.0138702392578125, -0.006267547607421875, 0.01036834716796875, -0.005954742431640625, 0.02410888671875, -0.0228729248046875, 0.0233001708984375, -0.00862884521484375, -0.035980224609375, 0.0145416259765625, -0.027557373046875, 0.04803466796875, 0.04522705078125, 0.0222625732421875, 0.016387939453125, -0.03448486328125, 0.033660888671875, -0.0204010009765625, 0.0211944580078125, 0.003787994384765625, -0.015411376953125, 0.0194854736328125, 0.0304718017578125, 0.0018377304077148438, 0.02362060546875, -0.0196075439453125, 0.07269287109375, 0.01165008544921875, 0.038482666015625, 0.013153076171875, 0.014404296875, -0.0238037109375, 0.029266357421875, -0.055145263671875, -0.0024166107177734375, 0.05511474609375, 0.004932403564453125, -0.0194244384765625, 0.04547119140625, -0.005352020263671875, 0.02349853515625, -0.017364501953125, -0.0236053466796875, 0.01690673828125, -0.013275146484375, -0.033966064453125, -0.0203704833984375, -0.00958251953125, 0.01557159423828125, -0.006565093994140625, 0.0188140869140625, -0.0284576416015625, -0.01210784912109375, 0.003894805908203125, -0.01436614990234375, 0.032562255859375, -0.06134033203125, -0.054046630859375, 0.023834228515625, -0.039337158203125, -0.03997802734375, 0.042388916015625, 0.041961669921875, -0.0262603759765625, -0.01511383056640625, 0.042724609375, -0.0236053466796875, 0.01561737060546875, -0.05706787109375, 0.01241302490234375, -0.08203125, 0.00037479400634765625, 0.0693359375, 0.055267333984375, -0.05230712890625, 0.0115509033203125, -0.0250701904296875, -0.00707244873046875, -0.01641845703125, -0.0615234375, -0.02374267578125, -0.034332275390625, 0.024017333984375, 0.0333251953125, -0.0189208984375, -0.037384033203125, 0.007114410400390625, 0.03460693359375, 0.018035888671875, 0.09246826171875, 0.002307891845703125, 0.051422119140625, 0.006927490234375, 0.05621337890625, 0.0189056396484375, 0.02978515625, -0.037445068359375, -0.0162811279296875, 0.0097198486328125, 0.001861572265625, -0.007556915283203125, -0.000583648681640625, -0.02716064453125, -0.055145263671875, 0.03759765625, -0.0150299072265625, -0.003429412841796875, 0.0016012191772460938, 0.005329132080078125, -0.0237884521484375, 0.0238037109375, 0.00775146484375, 0.044281005859375, -0.021820068359375, -0.00473785400390625, -0.029327392578125, 0.0088958740234375, 0.050506591796875, -0.038330078125, -0.0030689239501953125, -0.03985595703125, -0.03228759765625, 0.016387939453125, -0.01557159423828125, 0.03057861328125, 0.00579071044921875, 0.03448486328125, -0.01404571533203125, 0.033538818359375, 0.022796630859375, 0.007694244384765625, -0.0308685302734375, -0.0013666152954101562, 0.03533935546875, -0.0012903213500976562, -0.025726318359375, 0.013641357421875, -0.0175323486328125, 0.01409912109375, 0.0615234375, 0.052642822265625, -0.07623291015625, 0.002483367919921875, 0.0009737014770507812, 0.00878143310546875, 0.036224365234375, 0.0179901123046875, -0.0229034423828125, 0.0026531219482421875, 0.003879547119140625, -0.0142364501953125, -0.0271148681640625, -0.003078460693359375, 0.037384033203125, 0.0252685546875, 0.00044345855712890625, 0.0819091796875, 0.007450103759765625, -0.005817413330078125, -0.039031982421875, -0.023101806640625, 0.026031494140625, -0.017913818359375, 0.00536346435546875, 0.0013322830200195312, 0.00832366943359375, -0.045501708984375, 0.0258941650390625, -0.0211181640625, 0.007083892822265625, -0.02276611328125, 0.002796173095703125, 0.051483154296875, 0.010589599609375, -0.006687164306640625, -0.0034313201904296875, -0.0043182373046875, 0.0012769699096679688, -0.003772735595703125, -0.036834716796875, -0.0347900390625, 0.023956298828125, -0.003536224365234375, 0.0211639404296875, 0.01245880126953125, -0.0222930908203125, -0.01517486572265625, -0.0172271728515625, 0.08331298828125, -0.036529541015625, -0.0271453857421875, -0.00011354684829711914, -0.011383056640625, 0.00460052490234375, 0.0205078125, -0.033477783203125, -0.01439666748046875, 0.00547027587890625, 0.0013036727905273438, -0.0226898193359375, 0.038543701171875, 0.035186767578125, -0.0215606689453125, 0.04266357421875, -0.0267486572265625, 0.0190887451171875, 0.0081024169921875, 0.006671905517578125, 0.032470703125, 0.0067138671875, -0.028564453125, 0.04248046875, 0.00200653076171875, 0.0303955078125, -0.0151824951171875, 0.0182037353515625, 0.02349853515625, -0.004730224609375, 0.01416015625, 0.00714111328125, -0.0219879150390625, -0.00839996337890625, 0.018768310546875, 0.012420654296875, -0.007049560546875, 0.026031494140625, -0.028594970703125, 0.0267486572265625, 0.01399993896484375, -0.052642822265625, 0.022735595703125, -0.00026416778564453125, -0.054718017578125, 0.00319671630859375, -0.009857177734375, -0.010711669921875, 0.0008573532104492188, -0.031768798828125, -0.0382080078125, -0.000026226043701171875, 0.0166778564453125, -0.0091400146484375, -0.01483154296875, 0.029327392578125, 0.04022216796875, -0.055877685546875, 0.0215911865234375, -0.040740966796875, 0.05584716796875, 0.0269317626953125, -0.01067352294921875, 0.0335693359375, 0.007724761962890625, 0.0151214599609375, 0.0088043212890625, -0.0093841552734375, 0.024810791015625, 0.0104827880859375, 0.034515380859375, 0.0136871337890625, 0.026336669921875, -0.07281494140625, -0.07928466796875, 0.068603515625, 0.07977294921875, -0.0129241943359375, -0.0068206787109375, 0.0228271484375, 0.014312744140625, -0.00426483154296875, -0.0007023811340332031, 0.00925445556640625, -0.05645751953125, 0.0076751708984375, -0.026275634765625, -0.023193359375, 0.004425048828125, 0.044677734375, 0.0035800933837890625, -0.00528717041015625, 0.005466461181640625, -0.031707763671875, -0.057159423828125, 0.0545654296875, 0.0455322265625, 0.0119476318359375, -0.034027099609375, 0.04901123046875, 0.0361328125, 0.0033550262451171875, 0.0166778564453125, -0.01348876953125, 0.04461669921875, -0.0634765625, 0.0091400146484375, -0.004730224609375, 0.022918701171875, 0.01001739501953125, -0.034454345703125, -0.0177459716796875, 0.037353515625, 0.038848876953125, -0.0653076171875, -0.0396728515625, 0.040557861328125, -0.03155517578125, -0.022186279296875, -0.0260009765625, 0.01800537109375, 0.0154876708984375, 0.017608642578125, -0.0027866363525390625, 0.02276611328125, 0.033355712890625, -0.0623779296875, 0.07318115234375, -0.0244903564453125, -0.00849151611328125, -0.006061553955078125, -0.0538330078125, 0.0394287109375, -0.043304443359375, -0.0229644775390625, -0.0115966796875, -0.003147125244140625, -0.027099609375, 0.022247314453125, 0.032318115234375, -0.025054931640625, 0.022308349609375, -0.0250244140625, 0.01058197021484375, 0.043487548828125, -0.046234130859375, -0.00605010986328125, 0.005092620849609375, 0.01390838623046875, -0.0209197998046875, -0.046234130859375, 0.0039825439453125, -0.0135345458984375, -0.002399444580078125, -0.00902557373046875, 0.043731689453125, 0.0104217529296875, -0.01806640625, -0.01953125, 0.031768798828125, -0.0654296875, -0.04278564453125, 0.06829833984375, -0.0439453125, -0.0212249755859375, 0.003856658935546875, -0.021453857421875, 0.06036376953125, 0.02337646484375, -0.026702880859375, 0.040283203125, 0.02520751953125, -0.012298583984375, -0.0274505615234375, -0.00958251953125, -0.037078857421875, -0.00899505615234375, 0.0183563232421875, -0.004245758056640625, 0.0035266876220703125, -0.00968170166015625, 0.01073455810546875, 0.0037555694580078125, 0.004611968994140625, -0.05615234375, 0.02197265625, -0.021820068359375, 0.02557373046875, 0.02874755859375, 0.01410675048828125, 0.04791259765625, -0.0328369140625, -0.0203094482421875, 0.0168914794921875, 0.0066070556640625, -0.031768798828125, -0.01934814453125, 0.03729248046875, 0.03564453125, 0.05120849609375, 0.038421630859375, -0.0181427001953125, 0.005168914794921875, 0.060821533203125, -0.037628173828125, 0.0188751220703125, -0.04620361328125, -0.039794921875, -0.050201416015625, 0.0194854736328125, 0.0287628173828125, -0.01104736328125, -0.01311492919921875, -0.0574951171875, 0.00765228271484375, 0.00846099853515625, -0.00708770751953125, -0.031646728515625, 0.0210418701171875, -0.0051727294921875, 0.0164794921875, -0.0310211181640625, -0.045074462890625, 0.01531982421875, 0.006710052490234375, -0.020538330078125, 0.0015392303466796875, -0.0276947021484375, 0.00421142578125, -0.0016412734985351562, -0.0158538818359375, 0.01085662841796875, 0.029052734375, -0.0261688232421875, -0.007251739501953125, -0.045684814453125, 0.0390625, -0.04449462890625, -0.01763916015625, -0.020751953125, 0.0245513916015625, -0.03662109375, -0.037750244140625, 0.024200439453125, -0.0283966064453125, -0.034515380859375, -0.02789306640625, 0.00897216796875, 0.024566650390625, -0.0211029052734375, -0.074462890625, 0.09124755859375, -0.039764404296875, -0.022216796875, -0.0191497802734375, 0.0572509765625, -0.01129150390625, 0.00304412841796875, 0.01183319091796875, -0.01259613037109375, 0.037750244140625, 0.012237548828125, 0.035186767578125, 0.0205078125, 0.01006317138671875, 0.03924560546875, -0.04107666015625, 0.018463134765625, -0.0174407958984375, 0.00249481201171875, 0.0275726318359375, 0.005542755126953125, 0.02093505859375, 0.055419921875, -0.0220794677734375, -0.00209808349609375, -0.0146026611328125, -0.0291900634765625, -0.052947998046875, -0.04302978515625, -0.0189361572265625, -0.01953125, 0.06884765625, 0.07073974609375, 0.0107879638671875, -0.0428466796875, -0.0060577392578125, -0.0204315185546875, 0.00031757354736328125, -0.041900634765625, 0.014801025390625, -0.09027099609375, -0.04180908203125, 0.018341064453125, -0.02630615234375, -0.01032257080078125, 0.0335693359375, -0.030181884765625, 0.0112762451171875, 0.046142578125, -0.00997161865234375, -0.0390625, 0.0302734375, -0.0235443115234375, -0.0177001953125, -0.043609619140625, -0.00003165006637573242, -0.0184173583984375, -0.0614013671875, -0.0205535888671875, 0.02203369140625, 0.02239990234375, -0.0325927734375, -0.0101470947265625, 0.0144805908203125, -0.01531982421875, -0.0137481689453125, -0.0188446044921875, -0.00942230224609375, 0.0103607177734375, -0.004177093505859375, 0.01499176025390625, 0.048248291015625, -0.0003294944763183594, -0.0007290840148925781, 0.005649566650390625, 0.00637054443359375, 0.0244140625, -0.02783203125, 0.061187744140625, 0.0107574462890625, -0.032989501953125, 0.0188751220703125, -0.003223419189453125, -0.006763458251953125, -0.0102691650390625, -0.01227569580078125, -0.025909423828125, -0.01354217529296875, -0.03509521484375, -0.00946044921875, 0.01091766357421875 ]
5edde6aa2b49f4d3e77b6d76eb840da1e40a4be3
Wordpress Stackexchange Q: Disable WooCommerce action I'm customizing a WooCommerce theme and am going to be moving the title. There is an action in content-single-product.php called: do_action( 'woocommerce_single_product_summary' ); in the woocommerce_hooks.php file the title action is: add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); I can easily comment this out and place the title function where I need to. I'd prefer to disable the title using a function in my themes functions.php file so I don't have to worry about modifying core files. What would the function be to disable this title action? A: That would be: remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); You can read about it here: remove_action Codex
Q: Disable WooCommerce action I'm customizing a WooCommerce theme and am going to be moving the title. There is an action in content-single-product.php called: do_action( 'woocommerce_single_product_summary' ); in the woocommerce_hooks.php file the title action is: add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); I can easily comment this out and place the title function where I need to. I'd prefer to disable the title using a function in my themes functions.php file so I don't have to worry about modifying core files. What would the function be to disable this title action? A: That would be: remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); You can read about it here: remove_action Codex A: Sometimes I got problems removing an action just using remove_action (it is also stated within the documentation to use it not directly). So I just remove it within the action itself, but with a very low priority. add_action('woocommerce_single_product_summary', function () { remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title', 5); }, -1000);
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:427316", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77881" }
[ 0.0657958984375, -0.024261474609375, -0.0007915496826171875, -0.0229644775390625, -0.017547607421875, -0.043212890625, 0.052947998046875, 0.006877899169921875, 0.009002685546875, 0.05291748046875, 0.0208282470703125, -0.01021575927734375, 0.034271240234375, -0.0164642333984375, -0.002582550048828125, 0.0110626220703125, 0.028594970703125, 0.02587890625, 0.054901123046875, 0.0137481689453125, -0.01312255859375, 0.0302734375, 0.020416259765625, -0.0135955810546875, 0.01203155517578125, -0.04241943359375, 0.13427734375, -0.03570556640625, 0.054229736328125, -0.016815185546875, 0.03656005859375, -0.0161590576171875, 0.0174407958984375, -0.0137939453125, 0.0167388916015625, 0.01409912109375, 0.00273895263671875, -0.001705169677734375, 0.00982666015625, 0.0045013427734375, 0.056243896484375, -0.0283355712890625, -0.04437255859375, -0.004261016845703125, -0.0237884521484375, -0.050262451171875, 0.06988525390625, -0.01080322265625, 0.036468505859375, -0.00531768798828125, -0.018829345703125, 0.034759521484375, 0.00005716085433959961, -0.055450439453125, -0.0248870849609375, -0.027923583984375, -0.07342529296875, 0.03045654296875, 0.0160675048828125, 0.047149658203125, 0.019500732421875, -0.0064239501953125, -0.00732421875, -0.0279083251953125, 0.03839111328125, 0.01220703125, 0.0223541259765625, 0.024322509765625, -0.032196044921875, 0.048004150390625, 0.034942626953125, -0.051239013671875, 0.0189666748046875, 0.0202789306640625, -0.0186767578125, -0.040771484375, -0.0083770751953125, -0.0290985107421875, 0.04296875, 0.00116729736328125, 0.007080078125, -0.0274658203125, -0.01119232177734375, -0.0386962890625, 0.044219970703125, -0.0057220458984375, -0.0004940032958984375, 0.005847930908203125, -0.0239410400390625, -0.0108489990234375, -0.0299224853515625, 0.006683349609375, -0.016571044921875, 0.00354766845703125, -0.034027099609375, -0.003635406494140625, 0.01267242431640625, 0.022186279296875, -0.013580322265625, -0.0178680419921875, 0.043304443359375, -0.049957275390625, 0.0016660690307617188, -0.01309967041015625, -0.0186309814453125, -0.0005426406860351562, -0.00043272972106933594, 0.0019626617431640625, 0.006805419921875, 0.015960693359375, -0.0212249755859375, -0.03704833984375, -0.034423828125, -0.01158905029296875, -0.009307861328125, -0.00299072265625, -0.08160400390625, 0.051422119140625, 0.0015544891357421875, 0.019989013671875, 0.0121002197265625, 0.0275726318359375, 0.0313720703125, 0.005001068115234375, -0.01413726806640625, 0.0008115768432617188, -0.01216888427734375, -0.0478515625, 0.0207061767578125, -0.010528564453125, -0.025177001953125, -0.0127716064453125, 0.032379150390625, 0.07806396484375, 0.042755126953125, -0.009613037109375, 0.01154327392578125, 0.053802490234375, 0.006561279296875, -0.005474090576171875, 0.019073486328125, -0.01220703125, 0.002368927001953125, 0.005634307861328125, 0.00821685791015625, -0.0200347900390625, -0.00791168212890625, 0.035186767578125, 0.035400390625, 0.007343292236328125, 0.01947021484375, -0.004009246826171875, 0.0161590576171875, 0.0306243896484375, -0.01166534423828125, 0.0433349609375, 0.029388427734375, 0.005481719970703125, -0.033111572265625, -0.029815673828125, -0.00429534912109375, -0.009429931640625, 0.006805419921875, -0.0098876953125, -0.0513916015625, 0.0245513916015625, 0.0105743408203125, -0.0167999267578125, 0.016143798828125, 0.041473388671875, -0.02325439453125, -0.0102081298828125, 0.00289154052734375, -0.0149078369140625, -0.0178680419921875, 0.0011796951293945312, -0.031341552734375, 0.0207977294921875, 0.0211334228515625, 0.0232391357421875, -0.0030422210693359375, -0.03741455078125, 0.040313720703125, -0.00563812255859375, -0.054351806640625, 0.038330078125, 0.0150299072265625, 0.006305694580078125, -0.0212860107421875, -0.0007500648498535156, 0.0748291015625, 0.06719970703125, -0.017547607421875, -0.0166778564453125, 0.0291900634765625, -0.03826904296875, -0.0033473968505859375, -0.045867919921875, 0.00885009765625, 0.035064697265625, 0.038848876953125, -0.0028839111328125, -0.00620269775390625, -0.022705078125, -0.040985107421875, -0.0083465576171875, -0.005954742431640625, 0.02276611328125, -0.0828857421875, 0.0212860107421875, 0.052032470703125, 0.011749267578125, -0.045654296875, -0.0026836395263671875, 0.038055419921875, -0.040771484375, -0.0284576416015625, 0.0372314453125, 0.0035381317138671875, 0.03271484375, 0.02789306640625, -0.0152435302734375, 0.0280303955078125, 0.023193359375, 0.052581787109375, -0.003131866455078125, -0.011444091796875, -0.017181396484375, 0.052764892578125, 0.007694244384765625, -0.03033447265625, 0.01323699951171875, 0.0133514404296875, -0.0246124267578125, -0.042449951171875, 0.0204010009765625, -0.021881103515625, -0.0633544921875, -0.029632568359375, 0.065673828125, 0.031707763671875, 0.02093505859375, -0.015838623046875, 0.020599365234375, 0.0390625, -0.0156097412109375, -0.003002166748046875, 0.0192413330078125, 0.012481689453125, 0.019317626953125, -0.0186767578125, 0.00037741661071777344, 0.03338623046875, -0.0191802978515625, 0.0057525634765625, 0.046539306640625, -0.0625, -0.0731201171875, 0.025970458984375, 0.004840850830078125, 0.016021728515625, -0.013671875, 0.01555633544921875, -0.01702880859375, 0.02679443359375, 0.036376953125, 0.022613525390625, 0.017974853515625, -0.02545166015625, 0.03912353515625, 0.01116943359375, -0.03912353515625, -0.00893402099609375, 0.0218658447265625, 0.02886962890625, -0.0576171875, -0.0306854248046875, 0.0024089813232421875, -0.0238800048828125, -0.01378631591796875, 0.0083160400390625, 0.036346435546875, -0.0068817138671875, -0.0185699462890625, -0.003787994384765625, -0.0697021484375, -0.00037789344787597656, 0.0112762451171875, -0.019073486328125, -0.0291595458984375, -0.011993408203125, 0.008209228515625, -0.042022705078125, 0.0235443115234375, 0.01360321044921875, -0.0340576171875, 0.028076171875, -0.0110626220703125, 0.0209197998046875, -0.01397705078125, 0.08343505859375, 0.058807373046875, -0.049957275390625, 0.05169677734375, 0.01788330078125, -0.038482666015625, 0.034271240234375, -0.01441192626953125, -0.02459716796875, 0.038330078125, -0.11346435546875, -0.012237548828125, 0.011474609375, 0.0194091796875, 0.00563812255859375, -0.0291748046875, 0.01511383056640625, 0.02667236328125, -0.0119781494140625, -0.01325225830078125, 0.01325225830078125, -0.055328369140625, 0.03814697265625, -0.005218505859375, -0.00312042236328125, -0.048095703125, 0.036956787109375, 0.01525115966796875, -0.0040130615234375, -0.0030040740966796875, 0.0103759765625, 0.00914764404296875, -0.0152740478515625, 0.0009851455688476562, 0.01497650146484375, 0.0026950836181640625, -0.003849029541015625, 0.048583984375, 0.0025768280029296875, -0.0360107421875, 0.024078369140625, -0.0102996826171875, -0.00284576416015625, 0.032318115234375, 0.0214691162109375, -0.016632080078125, -0.0094451904296875, 0.0214385986328125, -0.043609619140625, 0.0035037994384765625, -0.004177093505859375, -0.044921875, 0.0186309814453125, 0.0217132568359375, 0.01224517822265625, 0.04669189453125, -0.003086090087890625, -0.00989532470703125, -0.0052337646484375, -0.0679931640625, -0.08990478515625, -0.019500732421875, -0.085693359375, 0.0206451416015625, 0.07061767578125, 0.0116424560546875, -0.033294677734375, 0.0200653076171875, 0.03594970703125, 0.0017604827880859375, 0.016143798828125, 0.0029964447021484375, -0.00406646728515625, 0.0225372314453125, 0.036163330078125, -0.020751953125, 0.03558349609375, -0.005046844482421875, 0.0304718017578125, 0.03265380859375, 0.0255584716796875, -0.00913238525390625, 0.01508331298828125, -0.0484619140625, -0.022247314453125, 0.034912109375, -0.0592041015625, 0.01934814453125, -0.0347900390625, -0.0155487060546875, -0.0023250579833984375, 0.077880859375, -0.03912353515625, -0.03594970703125, -0.00521087646484375, 0.0228271484375, -0.01364898681640625, -0.034088134765625, 0.006587982177734375, -0.0158538818359375, -0.1060791015625, 0.0206756591796875, -0.0304412841796875, -0.01488494873046875, 0.005832672119140625, -0.03167724609375, -0.03631591796875, -0.06427001953125, 0.0036983489990234375, 0.0036602020263671875, -0.00806427001953125, 0.06549072265625, -0.0653076171875, 0.0760498046875, -0.03814697265625, -0.0233917236328125, -0.029083251953125, -0.004795074462890625, 0.02447509765625, 0.0023345947265625, -0.01137542724609375, 0.0179290771484375, -0.0343017578125, 0.00925445556640625, -0.00022459030151367188, 0.040496826171875, 0.006099700927734375, 0.01271820068359375, 0.025909423828125, -0.0032024383544921875, 0.0036792755126953125, -0.01800537109375, -0.002086639404296875, 0.0022907257080078125, -0.00372314453125, 0.0132293701171875, -0.017669677734375, -0.01568603515625, 0.019775390625, -0.038543701171875, -0.1181640625, -0.0640869140625, 0.0242156982421875, 0.0171051025390625, 0.00786590576171875, 0.0130767822265625, -0.056121826171875, -0.0882568359375, 0.042633056640625, -0.04425048828125, -0.008544921875, 0.004306793212890625, 0.0484619140625, 0.01457977294921875, -0.0091705322265625, 0.0224151611328125, 0.032379150390625, 0.0291290283203125, -0.01290130615234375, 0.01439666748046875, -0.037353515625, -0.02728271484375, 0.060272216796875, -0.030975341796875, -0.0036640167236328125, 0.0062255859375, 0.051055908203125, -0.031951904296875, -0.029205322265625, 0.010986328125, -0.05987548828125, 0.0098724365234375, -0.0008435249328613281, -0.005786895751953125, -0.0267791748046875, 0.00905609130859375, 0.029998779296875, -0.022064208984375, 0.0457763671875, 0.0017652511596679688, -0.0245513916015625, 0.0031795501708984375, 0.018096923828125, -0.0172271728515625, 0.0276031494140625, 0.01285552978515625, -0.007518768310546875, -0.03411865234375, -0.0031032562255859375, -0.0286102294921875, -0.024627685546875, -0.033050537109375, 0.004241943359375, -0.0229034423828125, -0.0185699462890625, -0.0007786750793457031, -0.0055999755859375, 0.006641387939453125, -0.00826263427734375, -0.01360321044921875, -0.047698974609375, -0.017486572265625, 0.0299072265625, -0.00730133056640625, 0.0102996826171875, 0.042236328125, 0.0275726318359375, -0.01568603515625, -0.006656646728515625, -0.0452880859375, 0.0335693359375, -0.045684814453125, 0.0035953521728515625, 0.00792694091796875, -0.019927978515625, 0.041473388671875, 0.01727294921875, 0.0418701171875, 0.0116119384765625, -0.0345458984375, 0.0140380859375, 0.015594482421875, 0.044647216796875, 0.034271240234375, -0.0565185546875, -0.0173187255859375, 0.01236724853515625, -0.01334381103515625, -0.03411865234375, -0.00722503662109375, 0.0250091552734375, 0.012725830078125, -0.002544403076171875, -0.019927978515625, 0.0213165283203125, 0.00862884521484375, -0.0189056396484375, 0.030731201171875, 0.0228424072265625, -0.02923583984375, -0.0223236083984375, 0.00592803955078125, 0.01361846923828125, 0.00592803955078125, 0.007030487060546875, -0.0161895751953125, -0.0455322265625, -0.035888671875, 0.043853759765625, -0.0299072265625, -0.0221405029296875, -0.01018524169921875, -0.0361328125, -0.027008056640625, 0.01727294921875, -0.0252227783203125, -0.01314544677734375, -0.01541900634765625, -0.0210113525390625, -0.00318145751953125, -0.0144195556640625, 0.048797607421875, -0.0220794677734375, -0.0272674560546875, -0.012847900390625, 0.01508331298828125, 0.053955078125, 0.035247802734375, -0.048828125, -0.01016998291015625, -0.0207366943359375, -0.017242431640625, -0.0323486328125, -0.032806396484375, -0.038238525390625, 0.004566192626953125, -0.0191497802734375, -0.0036163330078125, 0.014984130859375, 0.0174713134765625, -0.01088714599609375, 0.0276336669921875, -0.01496124267578125, 0.00769805908203125, -0.03924560546875, 0.05194091796875, 0.044952392578125, 0.045318603515625, 0.002338409423828125, 0.022674560546875, 0.0167236328125, -0.01678466796875, 0.0022430419921875, -0.005008697509765625, -0.0168304443359375, 0.0025234222412109375, -0.0251922607421875, 0.035247802734375, 0.0830078125, -0.0014142990112304688, -0.01090240478515625, -0.00844573974609375, 0.0027980804443359375, -0.0309600830078125, 0.006351470947265625, -0.022918701171875, -0.018829345703125, -0.01007080078125, -0.044036865234375, 0.022613525390625, 0.00033402442932128906, -0.008148193359375, 0.0506591796875, -0.04718017578125, 0.0287628173828125, 0.053558349609375, -0.01166534423828125, 0.0272979736328125, 0.0244140625, 0.00022149085998535156, 0.032379150390625, -0.00945281982421875, 0.01129150390625, 0.005962371826171875, 0.034820556640625, -0.0272064208984375, -0.03826904296875, 0.023223876953125, 0.006256103515625, -0.00984954833984375, 0.0167694091796875, -0.00986480712890625, 0.044769287109375, 0.068603515625, 0.08935546875, -0.1185302734375, 0.0070343017578125, 0.0149078369140625, 0.021514892578125, 0.07818603515625, -0.036865234375, 0.0285186767578125, -0.043212890625, 0.0496826171875, 0.041900634765625, -0.0108795166015625, -0.0020084381103515625, -0.03863525390625, 0.0146026611328125, 0.033538818359375, 0.03778076171875, 0.005420684814453125, -0.08489990234375, -0.0299835205078125, 0.07196044921875, -0.0318603515625, -0.060821533203125, -0.031158447265625, 0.049468994140625, -0.0313720703125, -0.06646728515625, 0.054931640625, -0.0121612548828125, 0.0462646484375, 0.0177459716796875, 0.0198211669921875, -0.036956787109375, 0.0633544921875, -0.039947509765625, 0.032562255859375, 0.0294647216796875, -0.04534912109375, -0.06341552734375, -0.022918701171875, 0.024444580078125, 0.0285797119140625, -0.06884765625, 0.034149169921875, -0.044281005859375, -0.00588226318359375, 0.0091705322265625, 0.01282501220703125, -0.005672454833984375, 0.006526947021484375, -0.032135009765625, 0.0250701904296875, -0.005451202392578125, 0.01418304443359375, -0.02593994140625, 0.056671142578125, -0.019012451171875, 0.0278778076171875, 0.01453399658203125, 0.018402099609375, -0.024169921875, -0.0120391845703125, -0.05914306640625, 0.0751953125, -0.047760009765625, 0.0184173583984375, 0.006946563720703125, 0.0263824462890625, -0.0032958984375, 0.00009328126907348633, -0.0181732177734375, 0.0543212890625, -0.0203704833984375, 0.0794677734375, 0.0096588134765625, 0.0130462646484375, 0.06298828125, 0.0080108642578125, 0.0633544921875, 0.0075836181640625, 0.0007472038269042969, 0.002208709716796875, 0.059661865234375, 0.032958984375, -0.0245361328125, 0.0142059326171875, -0.0265045166015625, -0.04351806640625, -0.00696563720703125, -0.005706787109375, 0.0115814208984375, -0.0171966552734375, -0.03436279296875, -0.005153656005859375, 0.00988006591796875, 0.0001304149627685547, -0.00652313232421875, 0.05084228515625, -0.0149078369140625, 0.0020732879638671875, 0.01540374755859375, -0.0091552734375, -0.03521728515625, 0.03424072265625, -0.004383087158203125, 0.0170440673828125, 0.05181884765625, -0.04559326171875, 0.045745849609375, 0.00617218017578125, 0.041107177734375, 0.038360595703125, 0.017303466796875, 0.0302276611328125, 0.0178070068359375, 0.0360107421875, 0.02099609375, -0.0261383056640625, 0.01044464111328125, -0.00969696044921875, 0.002704620361328125, -0.0031948089599609375, 0.05645751953125, 0.01318359375, -0.00376129150390625, -0.0218353271484375, 0.006298065185546875, 0.010528564453125, -0.0168609619140625, -0.0048675537109375, -0.06890869140625, -0.035858154296875, -0.046356201171875, -0.01995849609375, -0.0258941650390625, 0.01155853271484375, 0.06182861328125, 0.036590576171875, 0.01094818115234375, 0.035858154296875, -0.09716796875, -0.028076171875, -0.038787841796875, 0.019439697265625, -0.0258636474609375, 0.06463623046875, 0.037445068359375, 0.0579833984375, -0.053375244140625, -0.044921875, 0.00830841064453125, 0.03106689453125, -0.0254364013671875, -0.006534576416015625, -0.0704345703125, -0.0843505859375, 0.00826263427734375, 0.046661376953125, 0.049346923828125, 0.033721923828125, 0.04107666015625, 0.0531005859375, 0.045654296875, 0.00978851318359375, 0.049560546875, 0.01366424560546875, 0.00519561767578125, -0.00659942626953125, 0.032196044921875, 0.016387939453125, 0.0005869865417480469, -0.024658203125, 0.05157470703125, 0.02154541015625, -0.03363037109375, -0.0133819580078125, -0.0018291473388671875, -0.05987548828125, 0.0190277099609375, 0.0124053955078125, 0.053009033203125, 0.00323486328125, -0.0643310546875, -0.023895263671875, 0.007808685302734375, -0.035125732421875, -0.0006422996520996094, 0.036651611328125, -0.050628662109375, 0.058013916015625, -0.01904296875, 0.022552490234375, -0.002674102783203125, -0.032684326171875, 0.0079498291015625, -0.005207061767578125, 0.00783538818359375, 0.0121002197265625, -0.01343536376953125, 0.00439453125, -0.00009888410568237305, 0.0213470458984375, 0.033172607421875, 0.0287628173828125, -0.0096893310546875, 0.036468505859375, -0.0221405029296875, 0.0062408447265625, -0.01055908203125, -0.031829833984375, 0.047882080078125, -0.00982666015625, -0.0177001953125, -0.0106353759765625, -0.055419921875, 0.01103973388671875, 0.051727294921875, 0.0008411407470703125, 0.0276947021484375, -0.005741119384765625, 0.0285491943359375, -0.03314208984375, 0.015380859375, -0.0249481201171875, -0.024078369140625, -0.023956298828125, -0.012786865234375, 0.00691986083984375, -0.018829345703125, 0.001789093017578125, 0.0085601806640625, 0.019134521484375, -0.0194854736328125, 0.0035877227783203125, -0.0010833740234375, 0.017669677734375, 0.03704833984375, -0.00836181640625, 0.01276397705078125, 0.01312255859375, -0.003734588623046875, 0.0093536376953125, 0.0276641845703125, -0.0253753662109375, 0.0269775390625, -0.043243408203125, -0.040618896484375, -0.0011701583862304688, -0.0015420913696289062, 0.00513458251953125, 0.0029697418212890625, 0.01012420654296875, -0.031463623046875, -0.051361083984375, -0.0251312255859375, -0.01263427734375, -0.037109375, -0.0007643699645996094, 0.01702880859375, -0.007965087890625, 0.0028629302978515625, 0.0156707763671875, -0.03375244140625, 0.0132598876953125, -0.006336212158203125, -0.00876617431640625, 0.009613037109375, -0.025390625, -0.02142333984375, -0.006534576416015625, -0.021087646484375, -0.00897979736328125, 0.0187530517578125, -0.0278167724609375, -0.052276611328125, -0.0477294921875, 0.0154876708984375, -0.06365966796875, -0.00457763671875, 0.0285186767578125, -0.0009646415710449219, -0.0278167724609375, -0.024444580078125, -0.0176239013671875, 0.033355712890625, -0.03387451171875, -0.030731201171875, 0.004756927490234375, 0.005767822265625, 0.0172576904296875, -0.0162353515625, -0.0006351470947265625, -0.029205322265625, -0.015228271484375, -0.01763916015625, -0.0239715576171875, -0.0018014907836914062, -0.032135009765625, 0.0012264251708984375, 0.0059967041015625, 0.0305023193359375, -0.00931549072265625, -0.0030517578125, 0.0170440673828125, -0.01346588134765625, 0.01953125, -0.003082275390625, -0.0119781494140625, 0.006610870361328125, 0.02362060546875, -0.0036983489990234375, 0.019989013671875, 0.0139617919921875, 0.01519775390625, 0.006633758544921875, 0.038055419921875, 0.028472900390625, -0.032073974609375, 0.01224517822265625, -0.0377197265625, 0.04510498046875, 0.0081634521484375, -0.04669189453125, 0.0234832763671875, 0.0256195068359375, 0.0296478271484375, 0.0034351348876953125, 0.01434326171875, -0.030853271484375, -0.0340576171875, 0.0236663818359375, 0.0465087890625, 0.0112457275390625, 0.004497528076171875, 0.01045989990234375, -0.00452423095703125, 0.003124237060546875, 0.0416259765625, 0.0080718994140625, -0.017578125, 0.0218048095703125, 0.037139892578125, -0.0223846435546875, 0.0183258056640625, 0.043914794921875, -0.038421630859375, 0.006256103515625, 0.01546478271484375, -0.007595062255859375, -0.07867431640625, 0.007205963134765625, 0.0139007568359375, -0.03656005859375, -0.023529052734375, 0.0017213821411132812, 0.0023136138916015625, -0.0154571533203125, -0.0202484130859375, -0.0006666183471679688, 0.01107025146484375, -0.028228759765625, 0.023712158203125, -0.01081085205078125, 0.047271728515625, -0.035675048828125, 0.0091552734375, -0.0178680419921875, 0.025421142578125, 0.00640106201171875, 0.0181884765625, -0.01033782958984375, 0.024383544921875, 0.01540374755859375, 0.04266357421875, -0.0014028549194335938, 0.07476806640625, -0.012664794921875, 0.0518798828125, 0.006313323974609375, -0.00403594970703125, 0.011871337890625, -0.005863189697265625, 0.02130126953125, 0.0200347900390625, 0.038665771484375, -0.0233917236328125, 0.037506103515625, -0.033782958984375, 0.0133209228515625, 0.0022907257080078125 ]
4d83e39400606444bac891d3c392f62829a745c6
Wordpress Stackexchange Q: How to validate the file name of the Media File Uploads? I want to validate the file name of the files to be uploaded from the Media Library. CASE study: I want to restrict the file name containing '%', '. .', '/' etc..from uploading to the media library. I can restrict the file types but not able to restrict as per the file names. Suggest me any wordpress filter or any procedure to accomplish the solution. A: The filter is sanitize_file_name. You get the $filename as parameter. Sample code: add_filter( 'sanitize_file_name', 'wpse_77892_filter_filename' ); function wpse_77892_filter_filename( $filename ) { return str_replace( '%', '-', $filename ); } See my plugin Germanix URL for an extended example.
Q: How to validate the file name of the Media File Uploads? I want to validate the file name of the files to be uploaded from the Media Library. CASE study: I want to restrict the file name containing '%', '. .', '/' etc..from uploading to the media library. I can restrict the file types but not able to restrict as per the file names. Suggest me any wordpress filter or any procedure to accomplish the solution. A: The filter is sanitize_file_name. You get the $filename as parameter. Sample code: add_filter( 'sanitize_file_name', 'wpse_77892_filter_filename' ); function wpse_77892_filter_filename( $filename ) { return str_replace( '%', '-', $filename ); } See my plugin Germanix URL for an extended example.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:427320", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77892" }
[ 0.00164794921875, 0.006256103515625, -0.040008544921875, -0.0178680419921875, -0.0028076171875, -0.0111236572265625, 0.00783538818359375, 0.00321197509765625, -0.016357421875, 0.0338134765625, 0.0106353759765625, 0.0097503662109375, 0.0584716796875, -0.033294677734375, 0.030670166015625, -0.00728607177734375, -0.0081024169921875, 0.01904296875, 0.035125732421875, -0.02862548828125, 0.0095672607421875, -0.02484130859375, 0.046630859375, -0.05584716796875, -0.03594970703125, -0.0166168212890625, 0.11077880859375, -0.0316162109375, -0.0124359130859375, -0.03863525390625, 0.006122589111328125, 0.01093292236328125, 0.0064239501953125, 0.0246734619140625, -0.0158843994140625, 0.034759521484375, 0.0430908203125, -0.005130767822265625, 0.0221405029296875, 0.02288818359375, 0.0230560302734375, -0.007572174072265625, 0.00087738037109375, 0.0281829833984375, -0.015960693359375, -0.048065185546875, 0.0269927978515625, -0.02142333984375, 0.001697540283203125, 0.0595703125, 0.0086212158203125, -0.007564544677734375, 0.0164947509765625, 0.008758544921875, -0.006805419921875, -0.01520538330078125, -0.017059326171875, 0.035003662109375, 0.01183319091796875, -0.0037078857421875, -0.021392822265625, 0.0256805419921875, 0.0024890899658203125, -0.021484375, -0.007556915283203125, -0.00439453125, -0.030303955078125, 0.0227813720703125, -0.01373291015625, -0.02996826171875, -0.002513885498046875, -0.0311279296875, 0.00527191162109375, -0.0132904052734375, 0.0016965866088867188, 0.017364501953125, -0.019927978515625, -0.0055999755859375, 0.039154052734375, -0.00899505615234375, 0.0382080078125, -0.04986572265625, -0.043304443359375, 0.06024169921875, -0.0028076171875, 0.08953857421875, 0.00021588802337646484, -0.035003662109375, 0.01140594482421875, 0.01654052734375, -0.01288604736328125, 0.030181884765625, 0.02191162109375, 0.0204925537109375, -0.0118560791015625, -0.0106201171875, 0.0361328125, 0.06744384765625, -0.0032196044921875, -0.00933074951171875, 0.01166534423828125, -0.043701171875, -0.01380157470703125, -0.0276641845703125, 0.0069122314453125, 0.043731689453125, 0.01149749755859375, -0.01227569580078125, 0.0175323486328125, -0.0079345703125, -0.004833221435546875, 0.009185791015625, -0.0222625732421875, -0.0509033203125, -0.025543212890625, 0.05413818359375, -0.01155853271484375, -0.006610870361328125, 0.00970458984375, -0.0082550048828125, 0.005664825439453125, -0.0027904510498046875, 0.0013561248779296875, -0.030670166015625, 0.0291900634765625, -0.0018253326416015625, -0.055908203125, 0.0193939208984375, -0.01207733154296875, 0.07781982421875, -0.01288604736328125, -0.0048828125, -0.0098114013671875, -0.0306854248046875, -0.04296875, -0.038055419921875, 0.01715087890625, 0.012908935546875, 0.0027027130126953125, 0.007701873779296875, -0.0005412101745605469, -0.0203704833984375, -0.001407623291015625, 0.0079345703125, 0.01776123046875, 0.0275726318359375, 0.016693115234375, 0.0076446533203125, -0.01123809814453125, -0.04925537109375, 0.0256500244140625, -0.01288604736328125, 0.06536865234375, -0.02362060546875, -0.0650634765625, -0.06787109375, -0.0218505859375, -0.047088623046875, -0.0016832351684570312, -0.05816650390625, 0.0201263427734375, 0.0018177032470703125, 0.003963470458984375, -0.021514892578125, -0.01190948486328125, -0.022003173828125, -0.044891357421875, 0.0012950897216796875, 0.01342010498046875, 0.031036376953125, -0.024993896484375, 0.0052490234375, -0.03631591796875, -0.00763702392578125, -0.00458526611328125, -0.0033321380615234375, 0.01157379150390625, 0.046539306640625, -0.007648468017578125, 0.0848388671875, 0.04327392578125, -0.0255889892578125, 0.062225341796875, -0.01032257080078125, -0.0360107421875, -0.0216827392578125, 0.0270843505859375, 0.00772857666015625, 0.016082763671875, -0.0034942626953125, 0.08380126953125, 0.00815582275390625, 0.0033092498779296875, -0.03961181640625, -0.0112762451171875, -0.04071044921875, 0.0254058837890625, -0.0190887451171875, 0.00433349609375, 0.050506591796875, 0.035430908203125, -0.010223388671875, 0.02325439453125, -0.00942230224609375, -0.034515380859375, 0.00675201416015625, -0.0240478515625, 0.0224761962890625, -0.049835205078125, 0.002979278564453125, 0.04461669921875, -0.004497528076171875, -0.04913330078125, 0.0153656005859375, 0.013275146484375, 0.002994537353515625, -0.0276336669921875, 0.0091552734375, -0.008087158203125, 0.015106201171875, -0.0143585205078125, -0.009124755859375, -0.0093536376953125, -0.02728271484375, -0.0227508544921875, 0.0225372314453125, -0.036041259765625, 0.0169677734375, 0.004238128662109375, 0.01047515869140625, 0.0665283203125, 0.0144195556640625, 0.037811279296875, 0.031646728515625, -0.0000890493392944336, -0.03369140625, -0.0252227783203125, -0.1502685546875, 0.01447296142578125, 0.08172607421875, 0.016571044921875, 0.046417236328125, -0.002063751220703125, 0.02862548828125, 0.07147216796875, -0.004154205322265625, 0.00646209716796875, 0.017547607421875, 0.0262908935546875, 0.04656982421875, -0.06488037109375, -0.015106201171875, 0.0254364013671875, -0.08233642578125, -0.00506591796875, 0.039794921875, -0.018157958984375, -0.0174560546875, -0.02301025390625, 0.050506591796875, -0.00643157958984375, 0.00860595703125, 0.0029659271240234375, -0.00232696533203125, 0.0038661956787109375, 0.03753662109375, 0.01172637939453125, 0.0197296142578125, -0.00913238525390625, 0.04205322265625, 0.01021575927734375, -0.0760498046875, -0.00811004638671875, 0.05133056640625, 0.0501708984375, -0.017242431640625, -0.025634765625, -0.0166778564453125, -0.0072784423828125, 0.0211029052734375, -0.01276397705078125, -0.0036773681640625, -0.02288818359375, -0.017181396484375, -0.00864410400390625, -0.0626220703125, 0.028106689453125, 0.021148681640625, -0.027587890625, -0.038482666015625, -0.00983428955078125, 0.042694091796875, 0.0014543533325195312, 0.002498626708984375, 0.057708740234375, -0.019439697265625, 0.029449462890625, -0.00021648406982421875, 0.01488494873046875, -0.0357666015625, 0.044342041015625, 0.042694091796875, -0.038970947265625, 0.0218353271484375, -0.007266998291015625, 0.014892578125, 0.0162353515625, 0.0018138885498046875, -0.0140838623046875, -0.0233001708984375, -0.05078125, -0.056304931640625, -0.001483917236328125, -0.0115203857421875, -0.001033782958984375, -0.024139404296875, -0.0154266357421875, -0.010284423828125, -0.059539794921875, -0.0218353271484375, -0.01212310791015625, -0.0104217529296875, 0.036468505859375, 0.0249786376953125, 0.012908935546875, -0.030487060546875, 0.043182373046875, 0.00548553466796875, 0.002407073974609375, -0.0012664794921875, -0.016876220703125, 0.0100250244140625, -0.01110076904296875, 0.027313232421875, -0.0107269287109375, -0.0146484375, 0.003997802734375, 0.061920166015625, 0.0053558349609375, -0.03369140625, 0.0122528076171875, 0.0141143798828125, 0.01335906982421875, 0.00677490234375, -0.0164642333984375, 0.0015659332275390625, -0.01287078857421875, 0.00028586387634277344, 0.01113128662109375, 0.0207061767578125, -0.016632080078125, 0.0111846923828125, 0.007617950439453125, -0.0234832763671875, 0.007282257080078125, 0.031463623046875, -0.0012044906616210938, -0.021392822265625, 0.0030269622802734375, -0.07244873046875, -0.006351470947265625, 0.0085906982421875, -0.00540924072265625, 0.052886962890625, -0.032135009765625, -0.00994873046875, 0.018310546875, 0.05517578125, 0.018585205078125, 0.016998291015625, -0.0198516845703125, -0.032318115234375, 0.01232147216796875, 0.030914306640625, 0.07183837890625, 0.017364501953125, 0.034515380859375, -0.010589599609375, -0.01198577880859375, 0.01457977294921875, -0.01032257080078125, -0.012786865234375, 0.0142974853515625, -0.01910400390625, -0.035980224609375, 0.045379638671875, -0.047119140625, 0.00511932373046875, -0.0567626953125, -0.0208892822265625, -0.05828857421875, 0.052215576171875, -0.0026607513427734375, -0.0335693359375, -0.01119232177734375, 0.0229034423828125, -0.0283966064453125, -0.0450439453125, 0.006549835205078125, -0.0164337158203125, -0.054107666015625, 0.0145721435546875, -0.01067352294921875, -0.032562255859375, 0.010650634765625, -0.1082763671875, -0.01255035400390625, -0.049102783203125, 0.02569580078125, -0.07049560546875, 0.03271484375, -0.004291534423828125, -0.00261688232421875, -0.0165863037109375, -0.0277252197265625, -0.0479736328125, -0.10931396484375, -0.022430419921875, -0.0152130126953125, 0.07275390625, -0.01331329345703125, 0.00592803955078125, -0.044647216796875, 0.038787841796875, 0.0280609130859375, -0.01103973388671875, 0.0283203125, -0.02593994140625, 0.0299835205078125, 0.03594970703125, 0.021240234375, -0.00774383544921875, -0.0011568069458007812, -0.043975830078125, -0.06390380859375, -0.01146697998046875, -0.0189056396484375, 0.037506103515625, -0.0032196044921875, -0.01274871826171875, -0.032501220703125, -0.024383544921875, -0.0099639892578125, 0.00577545166015625, 0.01446533203125, -0.0229949951171875, -0.045806884765625, -0.0249786376953125, 0.067626953125, 0.006317138671875, 0.010986328125, -0.004940032958984375, 0.09423828125, 0.0037937164306640625, -0.0262298583984375, -0.093994140625, 0.00032329559326171875, 0.029571533203125, -0.0216064453125, 0.06463623046875, 0.010986328125, -0.0318603515625, 0.0838623046875, -0.00516510009765625, -0.005184173583984375, 0.0251922607421875, -0.0153961181640625, 0.0140228271484375, -0.0182037353515625, -0.005565643310546875, 0.0203857421875, 0.00801849365234375, 0.0135040283203125, -0.00910186767578125, -0.0002467632293701172, -0.0219268798828125, 0.004810333251953125, 0.00450897216796875, 0.01357269287109375, -0.01026153564453125, -0.06298828125, 0.01160430908203125, -0.059814453125, 0.00963592529296875, -0.028076171875, 0.01007080078125, -0.00882720947265625, 0.02264404296875, 0.010498046875, 0.0147705078125, 0.023712158203125, -0.0223846435546875, 0.040863037109375, 0.007587432861328125, -0.01473236083984375, -0.0031871795654296875, -0.00847625732421875, -0.007610321044921875, -0.006557464599609375, -0.0287322998046875, 0.001125335693359375, -0.01268768310546875, 0.020782470703125, 0.01078033447265625, 0.01271820068359375, -0.01421356201171875, 0.0273590087890625, -0.0277862548828125, 0.01424407958984375, 0.0056610107421875, 0.03338623046875, -0.0277862548828125, 0.045013427734375, 0.026275634765625, -0.0157623291015625, 0.00261688232421875, 0.024932861328125, 0.00235748291015625, -0.007289886474609375, -0.006084442138671875, 0.028533935546875, 0.0655517578125, 0.01326751708984375, 0.0308837890625, -0.030303955078125, -0.0223388671875, -0.00923919677734375, -0.00440216064453125, -0.042144775390625, 0.0084381103515625, -0.0202789306640625, 0.022552490234375, -0.038604736328125, -0.0193634033203125, 0.055084228515625, -0.032562255859375, -0.006786346435546875, -0.023590087890625, -0.06439208984375, -0.01227569580078125, -0.032012939453125, -0.028076171875, 0.03924560546875, 0.00373077392578125, 0.0011577606201171875, -0.017486572265625, -0.01538848876953125, -0.01123809814453125, 0.0587158203125, -0.050689697265625, 0.02349853515625, 0.024688720703125, 0.035186767578125, 0.00457763671875, -0.031036376953125, -0.032684326171875, -0.0223541259765625, -0.01543426513671875, -0.007450103759765625, 0.0826416015625, -0.04180908203125, 0.036224365234375, -0.032379150390625, 0.024810791015625, 0.000492095947265625, 0.034423828125, -0.0003712177276611328, 0.00170135498046875, -0.01971435546875, -0.01904296875, -0.035736083984375, -0.0254058837890625, 0.0004467964172363281, -0.005268096923828125, -0.00670623779296875, -0.00920867919921875, -0.0374755859375, 0.00710296630859375, -0.005748748779296875, 0.053070068359375, 0.0242156982421875, 0.0489501953125, -0.04327392578125, 0.0335693359375, -0.029998779296875, 0.01111602783203125, 0.05072021484375, -0.004547119140625, -0.003520965576171875, -0.017425537109375, -0.0177001953125, -0.009124755859375, -0.0250091552734375, -0.027740478515625, 0.0028629302978515625, 0.01201629638671875, 0.01099395751953125, 0.0276031494140625, 0.05010986328125, 0.0181732177734375, 0.0302734375, -0.023284912109375, 0.0009593963623046875, -0.019683837890625, -0.017425537109375, -0.046295166015625, 0.01158905029296875, -0.0302276611328125, -0.03277587890625, 0.0203704833984375, -0.0215911865234375, -0.0146484375, 0.043426513671875, -0.0224761962890625, 0.02276611328125, 0.03204345703125, -0.00025725364685058594, 0.022430419921875, 0.02874755859375, 0.01849365234375, 0.038238525390625, 0.0211181640625, 0.01251983642578125, -0.0007519721984863281, -0.010040283203125, 0.0161285400390625, -0.0228271484375, 0.043548583984375, 0.0078887939453125, 0.00494384765625, 0.0498046875, -0.0262908935546875, -0.000033795833587646484, 0.031463623046875, 0.042572021484375, -0.044708251953125, 0.0019588470458984375, 0.0177764892578125, -0.0032291412353515625, 0.0263214111328125, 0.001956939697265625, 0.01253509521484375, -0.01068878173828125, 0.0391845703125, -0.019012451171875, -0.0096893310546875, 0.02392578125, -0.0141448974609375, 0.00797271728515625, -0.005931854248046875, 0.07965087890625, 0.0138702392578125, -0.0089569091796875, -0.0687255859375, 0.0136871337890625, -0.0305938720703125, 0.0197906494140625, 0.0239410400390625, -0.046905517578125, -0.016448974609375, 0.004268646240234375, -0.0033931732177734375, -0.0272674560546875, -0.008331298828125, 0.006473541259765625, 0.0225372314453125, 0.036407470703125, 0.039703369140625, 0.006801605224609375, -0.0252685546875, 0.00775909423828125, 0.0130615234375, 0.00981903076171875, -0.0200958251953125, -0.023193359375, -0.004215240478515625, -0.0034732818603515625, -0.00165557861328125, -0.0240020751953125, -0.00872802734375, 0.00635528564453125, -0.004058837890625, 0.061798095703125, -0.0207977294921875, -0.0171966552734375, 0.021514892578125, -0.016510009765625, 0.00490570068359375, 0.0213470458984375, 0.0246124267578125, -0.07379150390625, -0.06573486328125, 0.0245819091796875, -0.07196044921875, -0.015655517578125, 0.0165863037109375, -0.07061767578125, 0.065185546875, 0.004856109619140625, 0.05712890625, 0.027618408203125, 0.0010347366333007812, -0.032684326171875, -0.036712646484375, -0.04925537109375, 0.049041748046875, -0.002285003662109375, 0.043731689453125, -0.064453125, -0.01184844970703125, -0.0029582977294921875, 0.048004150390625, -0.016754150390625, -0.01678466796875, -0.0175323486328125, -0.032318115234375, 0.0357666015625, 0.05157470703125, 0.045196533203125, 0.0036487579345703125, 0.006977081298828125, -0.00555419921875, 0.033447265625, 0.016204833984375, 0.040985107421875, -0.0439453125, -0.0167999267578125, -0.00020444393157958984, 0.0244598388671875, 0.02825927734375, 0.0001360177993774414, -0.0211029052734375, -0.001148223876953125, -0.01070404052734375, 0.01229095458984375, -0.020904541015625, 0.0191650390625, 0.05780029296875, 0.0430908203125, -0.0233154296875, -0.01232147216796875, -0.029449462890625, 0.060638427734375, -0.0185089111328125, 0.0201568603515625, 0.05950927734375, 0.0093994140625, 0.0384521484375, 0.0171356201171875, 0.01128387451171875, -0.010650634765625, 0.027587890625, 0.0108795166015625, -0.006229400634765625, 0.003070831298828125, -0.017608642578125, 0.0276947021484375, 0.0169219970703125, 0.0204010009765625, -0.020538330078125, 0.00677490234375, 0.005069732666015625, 0.0026702880859375, -0.01317596435546875, -0.0380859375, -0.01343536376953125, 0.0124664306640625, 0.0034809112548828125, -0.03326416015625, 0.0295867919921875, 0.0618896484375, 0.043975830078125, -0.001171112060546875, 0.006549835205078125, -0.08062744140625, 0.008270263671875, -0.0255126953125, 0.0246429443359375, 0.037506103515625, 0.04156494140625, -0.032379150390625, 0.050079345703125, -0.0577392578125, -0.004314422607421875, -0.0246124267578125, 0.07708740234375, 0.0096893310546875, 0.026397705078125, -0.03875732421875, -0.051361083984375, 0.04449462890625, 0.0230712890625, 0.0477294921875, 0.0498046875, 0.05181884765625, 0.01459503173828125, -0.016021728515625, 0.017303466796875, 0.0277557373046875, -0.030487060546875, -0.00193023681640625, -0.0257720947265625, 0.000046253204345703125, 0.00504302978515625, -0.01788330078125, -0.0093231201171875, 0.00592803955078125, 0.0205230712890625, -0.0217437744140625, 0.01531219482421875, -0.0111083984375, -0.04473876953125, -0.02294921875, -0.035400390625, 0.021575927734375, -0.0175018310546875, -0.07415771484375, -0.03265380859375, 0.001575469970703125, 0.0080718994140625, 0.0141754150390625, 0.033966064453125, -0.0124053955078125, 0.0310821533203125, 0.0092926025390625, -0.050384521484375, 0.0219268798828125, 0.0169219970703125, 0.01641845703125, 0.01477813720703125, -0.007801055908203125, -0.0016574859619140625, -0.0146331787109375, 0.013153076171875, -0.0027713775634765625, 0.0156707763671875, -0.0035305023193359375, 0.10504150390625, -0.04559326171875, 0.01401519775390625, 0.000052809715270996094, 0.003772735595703125, -0.0284576416015625, 0.01073455810546875, -0.01544952392578125, 0.005077362060546875, 0.0019130706787109375, -0.007572174072265625, 0.0290069580078125, 0.035858154296875, 0.0189666748046875, -0.0259552001953125, 0.018829345703125, -0.0404052734375, 0.009002685546875, 0.004245758056640625, 0.029052734375, -0.01346588134765625, -0.060302734375, -0.018035888671875, 0.0338134765625, 0.0071258544921875, 0.057647705078125, -0.00884246826171875, 0.0172271728515625, -0.02545166015625, -0.0219573974609375, 0.034271240234375, -0.027618408203125, 0.0477294921875, 0.02471923828125, -0.058380126953125, -0.043121337890625, -0.02239990234375, -0.0175933837890625, -0.04376220703125, 0.0079193115234375, 0.014678955078125, -0.0303955078125, -0.014312744140625, -0.0185394287109375, 0.0078125, 0.01326751708984375, -0.0123443603515625, 0.0011444091796875, 0.00965118408203125, -0.019561767578125, -0.006259918212890625, -0.09783935546875, -0.0211029052734375, -0.050262451171875, -0.01102447509765625, 0.044403076171875, -0.02783203125, -0.006221771240234375, 0.006221771240234375, 0.02191162109375, -0.0006413459777832031, -0.0269622802734375, -0.00743865966796875, -0.01195526123046875, -0.04052734375, 0.060791015625, -0.03497314453125, 0.036529541015625, -0.0186920166015625, 0.0035762786865234375, -0.0645751953125, -0.06640625, -0.017242431640625, 0.07086181640625, -0.033111572265625, -0.005764007568359375, 0.0010232925415039062, -0.0020236968994140625, -0.0132293701171875, 0.042633056640625, 0.002353668212890625, 0.08050537109375, -0.01032257080078125, -0.045654296875, 0.0152740478515625, -0.01273345947265625, -0.0008792877197265625, -0.05078125, -0.00531768798828125, -0.06524658203125, 0.0155487060546875, 0.035614013671875, -0.040283203125, -0.0196380615234375, -0.048248291015625, -0.07318115234375, 0.05810546875, 0.01177978515625, -0.04608154296875, -0.00787353515625, -0.0008640289306640625, -0.01509857177734375, 0.03216552734375, 0.01345062255859375, -0.035400390625, 0.0036792755126953125, 0.0216217041015625, 0.0063018798828125, 0.048736572265625, -0.004932403564453125, 0.026123046875, 0.002468109130859375, 0.029296875, 0.00921630859375, -0.01222991943359375, 0.01522064208984375, -0.0033416748046875, 0.02117919921875, 0.03717041015625, -0.0225830078125, 0.032073974609375, -0.0227813720703125, -0.024627685546875, -0.0413818359375, -0.046112060546875, -0.041900634765625, -0.0252685546875, 0.06842041015625, 0.09722900390625, 0.0184173583984375, -0.03424072265625, -0.0207977294921875, -0.00421142578125, 0.0108795166015625, -0.0102386474609375, 0.003452301025390625, -0.04217529296875, -0.005588531494140625, -0.002994537353515625, 0.0198974609375, -0.047576904296875, -0.0272369384765625, -0.0221710205078125, -0.03369140625, -0.0095977783203125, 0.0222625732421875, 0.0283966064453125, -0.05169677734375, 0.0819091796875, -0.050323486328125, -0.017242431640625, 0.003021240234375, 0.050201416015625, 0.00762176513671875, -0.02374267578125, -0.007366180419921875, 0.0284576416015625, 0.000644683837890625, 0.01403045654296875, 0.02923583984375, -0.00746917724609375, 0.006298065185546875, 0.01375579833984375, 0.0010271072387695312, 0.02783203125, -0.0002696514129638672, 0.0205078125, -0.0024547576904296875, 0.06988525390625, -0.010589599609375, 0.059173583984375, -0.0234222412109375, -0.017364501953125, -0.0170745849609375, 0.0016269683837890625, 0.01531219482421875, -0.0079193115234375, 0.08184814453125, -0.04791259765625, 0.007511138916015625, 0.00476837158203125, -0.043060302734375, -0.029144287109375, 0.0079498291015625, -0.067138671875, -0.01058197021484375, 0.01030731201171875 ]
4d2401dfae94fc1bd5cc87a0a9d77cedebab6a36
Wordpress Stackexchange Q: How to include the 'current-menu-ancestor' class on a custom post type menu in Wordpress? I need the Wordpress menu to include the 'current-menu-ancestor' class to reflect that site is currently in the recipe section. Supposing I have a recipe custom post type. I have the following code in my functions.php but it's not working: function add_active_item_classes($classes = array(), $menu_item = false){ if ( get_post_type() == 'recipe' && $menu_item->title == 'Recipes') { $classes[] = 'current-menu-ancestor'; return $menuclasses; } } Also I don't know what filter hooks I will use to have this effect? Thanks for your suggestion and assistance. A: This is the final working code: <?php function additional_active_item_classes($classes = array(), $menu_item = false){ global $wp_query; if(in_array('current-menu-item', $menu_item->classes)){ $classes[] = 'current-menu-item'; } if ( $menu_item->post_name == 'product' && is_post_type_archive('product') ) { $classes[] = 'current-menu-item'; } if ( $menu_item->post_name == 'product' && is_singular('product') ) { $classes[] = 'current-menu-item'; } return $classes; } add_filter( 'nav_menu_css_class', 'additional_active_item_classes', 10, 2 ); ?>
Q: How to include the 'current-menu-ancestor' class on a custom post type menu in Wordpress? I need the Wordpress menu to include the 'current-menu-ancestor' class to reflect that site is currently in the recipe section. Supposing I have a recipe custom post type. I have the following code in my functions.php but it's not working: function add_active_item_classes($classes = array(), $menu_item = false){ if ( get_post_type() == 'recipe' && $menu_item->title == 'Recipes') { $classes[] = 'current-menu-ancestor'; return $menuclasses; } } Also I don't know what filter hooks I will use to have this effect? Thanks for your suggestion and assistance. A: This is the final working code: <?php function additional_active_item_classes($classes = array(), $menu_item = false){ global $wp_query; if(in_array('current-menu-item', $menu_item->classes)){ $classes[] = 'current-menu-item'; } if ( $menu_item->post_name == 'product' && is_post_type_archive('product') ) { $classes[] = 'current-menu-item'; } if ( $menu_item->post_name == 'product' && is_singular('product') ) { $classes[] = 'current-menu-item'; } return $classes; } add_filter( 'nav_menu_css_class', 'additional_active_item_classes', 10, 2 ); ?> A: This code add class 'current-menu-ancestor' to parent item menu of your child CPT or custom taxonomy or default single post, in case you do not have a nested menu structure in the admin panel - only if you have 'level 0' menu. For example - if you have Page Product, which display products grid and you go to the single product - WP will not see the parent menu item. The code below improve this: function additional_active_item_classes( $classes = array(), $menu_item = false ) { // custom taxonomy if ( $menu_item->title == 'Custom Tax Name Page' && is_tax('custom_tax') ) { $classes[] = 'current-menu-ancestor'; } // custom post type single if ( $menu_item->title == 'Custom Post Type Page' && is_singular('products') ) { $classes[] = 'current-menu-ancestor'; } // blog post single if ( $menu_item->title == 'Blog Page' && is_singular('post') ) { $classes[] = 'current-menu-ancestor'; } return $classes; } add_filter( 'nav_menu_css_class', 'additional_active_item_classes', 10, 2 );
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:427330", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77931" }
[ 0.0711669921875, 0.0219573974609375, 0.01418304443359375, -0.016845703125, 0.04864501953125, -0.05059814453125, 0.08795166015625, -0.04425048828125, -0.0008511543273925781, 0.006008148193359375, -0.003910064697265625, 0.01450347900390625, -0.0097503662109375, -0.0347900390625, 0.00995635986328125, -0.024322509765625, 0.0345458984375, -0.0052490234375, 0.047149658203125, 0.005340576171875, 0.0008797645568847656, 0.0235137939453125, 0.018096923828125, 0.013031005859375, 0.044677734375, -0.06781005859375, 0.035430908203125, -0.0166473388671875, 0.0244598388671875, -0.00168609619140625, 0.020263671875, -0.0055084228515625, 0.0133056640625, 0.0030956268310546875, 0.02178955078125, 0.021484375, 0.021697998046875, -0.00467681884765625, 0.0208892822265625, 0.019927978515625, 0.0241241455078125, -0.0054168701171875, -0.006450653076171875, -0.01235198974609375, -0.0032978057861328125, -0.05279541015625, 0.0364990234375, -0.027679443359375, 0.01593017578125, -0.00286102294921875, 0.0157012939453125, -0.00997161865234375, 0.0173797607421875, -0.01238250732421875, -0.007808685302734375, 0.0074310302734375, -0.00452423095703125, -0.0311737060546875, 0.01947021484375, -0.0007319450378417969, -0.00650787353515625, -0.01666259765625, 0.01995849609375, -0.00864410400390625, -0.004596710205078125, 0.0153045654296875, 0.0635986328125, 0.00681304931640625, -0.0816650390625, -0.0189361572265625, 0.046783447265625, -0.016632080078125, -0.00543212890625, 0.0240020751953125, -0.034332275390625, -0.062164306640625, 0.01422882080078125, -0.04595947265625, 0.0065155029296875, 0.0560302734375, -0.01172637939453125, 0.05877685546875, -0.037139892578125, -0.060943603515625, 0.0012178421020507812, -0.0306549072265625, -0.0272979736328125, -0.0077972412109375, -0.007633209228515625, -0.0166473388671875, -0.00933837890625, -0.061126708984375, -0.0019550323486328125, 0.02288818359375, 0.007717132568359375, -0.033905029296875, 0.031402587890625, 0.10675048828125, -0.035064697265625, 0.026580810546875, -0.0257568359375, -0.03741455078125, 0.0638427734375, -0.072021484375, 0.00836944580078125, 0.054901123046875, 0.0005555152893066406, 0.0304718017578125, 0.055206298828125, 0.0190582275390625, 0.032135009765625, 0.00897216796875, -0.0156402587890625, -0.06695556640625, -0.00907135009765625, 0.0352783203125, -0.0202178955078125, 0.005359649658203125, 0.04107666015625, -0.0225067138671875, -0.0012502670288085938, 0.01474761962890625, 0.0301513671875, -0.01293182373046875, 0.01427459716796875, 0.020751953125, -0.023468017578125, -0.03466796875, 0.01369476318359375, 0.01265716552734375, -0.023345947265625, 0.002140045166015625, 0.046783447265625, 0.0264739990234375, -0.0005035400390625, -0.020477294921875, 0.035125732421875, -0.0188446044921875, -0.021392822265625, 0.01018524169921875, 0.037689208984375, 0.0146636962890625, -0.00934600830078125, -0.0231781005859375, 0.007144927978515625, 0.005115509033203125, 0.00820159912109375, 0.005420684814453125, 0.011444091796875, -0.0223388671875, 0.0187835693359375, -0.021087646484375, 0.053070068359375, 0.01174163818359375, -0.06439208984375, 0.0171661376953125, -0.0093841552734375, 0.003948211669921875, -0.044525146484375, -0.040802001953125, -0.00885772705078125, -0.037078857421875, -0.0138702392578125, -0.072021484375, -0.09368896484375, 0.046142578125, -0.042205810546875, -0.012054443359375, 0.023773193359375, -0.0264892578125, -0.0078582763671875, 0.006725311279296875, 0.0533447265625, 0.0276336669921875, -0.0011806488037109375, 0.036590576171875, 0.0289306640625, 0.0277099609375, 0.0166778564453125, 0.0287628173828125, -0.010986328125, -0.044677734375, 0.055633544921875, -0.039306640625, -0.042816162109375, 0.035491943359375, -0.00634002685546875, 0.03509521484375, 0.0213623046875, 0.00420379638671875, 0.041168212890625, 0.005771636962890625, -0.058258056640625, 0.023590087890625, -0.033477783203125, -0.0116119384765625, 0.0298919677734375, 0.0248260498046875, -0.0154571533203125, 0.00801849365234375, -0.006008148193359375, 0.002628326416015625, 0.0029506683349609375, -0.0304412841796875, -0.07843017578125, 0.0224456787109375, -0.032012939453125, 0.0655517578125, 0.0035266876220703125, -0.0010213851928710938, -0.00791168212890625, 0.00826263427734375, 0.0038471221923828125, -0.063232421875, -0.034912109375, 0.0330810546875, 0.00534820556640625, 0.030975341796875, -0.0005898475646972656, 0.00042247772216796875, -0.0111541748046875, -0.00615692138671875, -0.01349639892578125, -0.005950927734375, 0.0288543701171875, 0.006069183349609375, -0.018524169921875, -0.006259918212890625, 0.005519866943359375, 0.0271148681640625, -0.0306549072265625, 0.01068115234375, 0.027923583984375, -0.00554656982421875, -0.0648193359375, -0.0081939697265625, -0.0247039794921875, -0.023193359375, -0.0157928466796875, 0.06781005859375, 0.032257080078125, 0.0592041015625, 0.00714111328125, -0.004970550537109375, 0.054046630859375, -0.040313720703125, 0.00879669189453125, -0.020477294921875, -0.033721923828125, 0.02191162109375, 0.04266357421875, 0.024017333984375, 0.01192474365234375, 0.049346923828125, -0.00991058349609375, 0.0225982666015625, -0.0208587646484375, -0.007595062255859375, -0.01056671142578125, 0.0091552734375, 0.0014934539794921875, 0.00447845458984375, -0.0104522705078125, 0.0021305084228515625, 0.02667236328125, 0.01666259765625, 0.0435791015625, 0.0206756591796875, -0.0289459228515625, -0.00499725341796875, 0.03173828125, 0.04827880859375, 0.0229644775390625, 0.0020351409912109375, -0.036224365234375, 0.0174713134765625, -0.0130615234375, -0.0009541511535644531, 0.0328369140625, -0.00995635986328125, -0.01108551025390625, 0.024322509765625, -0.00695037841796875, -0.0011205673217773438, -0.018798828125, -0.07440185546875, 0.03057861328125, 0.044403076171875, 0.02764892578125, -0.0312042236328125, 0.02008056640625, -0.01367950439453125, -0.024261474609375, 0.03509521484375, -0.0014905929565429688, -0.05084228515625, 0.045135498046875, 0.0330810546875, 0.0066375732421875, 0.0001436471939086914, 0.032745361328125, 0.013885498046875, -0.042236328125, 0.0092010498046875, -0.00664520263671875, 0.0017538070678710938, -0.007659912109375, 0.0007390975952148438, -0.01751708984375, -0.0233306884765625, 0.00005030632019042969, 0.054351806640625, 0.032867431640625, 0.022705078125, -0.0074920654296875, -0.0264739990234375, -0.024810791015625, 0.01059722900390625, -0.057037353515625, -0.04901123046875, 0.0390625, -0.055389404296875, 0.0034885406494140625, -0.0034198760986328125, -0.024383544921875, -0.0238800048828125, 0.035888671875, 0.0016021728515625, -0.00942230224609375, -0.0223388671875, -0.02691650390625, -0.0305633544921875, -0.05316162109375, 0.00740814208984375, 0.00030684471130371094, 0.005279541015625, -0.00614166259765625, 0.04736328125, 0.0013341903686523438, -0.04083251953125, 0.00936126708984375, 0.037994384765625, 0.007465362548828125, 0.037384033203125, 0.0227203369140625, -0.046112060546875, 0.0228424072265625, -0.01157379150390625, -0.01366424560546875, 0.0279083251953125, -0.0035457611083984375, -0.004322052001953125, -0.0210418701171875, 0.040618896484375, 0.0193328857421875, 0.019744873046875, 0.0304412841796875, 0.08099365234375, 0.050689697265625, 0.019500732421875, -0.04486083984375, -0.030029296875, -0.06683349609375, 0.0094451904296875, 0.029815673828125, 0.0135955810546875, -0.0295867919921875, 0.032196044921875, -0.006378173828125, 0.00004953145980834961, 0.049713134765625, -0.04315185546875, 0.035125732421875, 0.0018949508666992188, -0.015533447265625, -0.0277862548828125, 0.06475830078125, -0.0017948150634765625, 0.01776123046875, 0.03363037109375, -0.006389617919921875, 0.013946533203125, -0.0148773193359375, -0.0311279296875, -0.03680419921875, 0.03924560546875, -0.00693511962890625, 0.03515625, -0.03460693359375, -0.026580810546875, 0.0021305084228515625, 0.09271240234375, -0.043060302734375, -0.0143585205078125, -0.01166534423828125, 0.0229644775390625, 0.0220794677734375, -0.0643310546875, -0.0028514862060546875, -0.0300140380859375, -0.08941650390625, 0.0308074951171875, -0.0273284912109375, -0.017120361328125, -0.021484375, -0.021514892578125, -0.047393798828125, -0.044036865234375, 0.043548583984375, -0.06866455078125, -0.0018291473388671875, 0.07061767578125, -0.04058837890625, 0.0301666259765625, -0.033111572265625, -0.037139892578125, -0.061309814453125, -0.0133056640625, -0.039398193359375, 0.0792236328125, 0.03326416015625, 0.009765625, -0.016845703125, 0.04473876953125, 0.0208282470703125, 0.0276641845703125, -0.0010938644409179688, -0.0018243789672851562, 0.0111541748046875, -0.01104736328125, -0.00345611572265625, -0.0181121826171875, 0.019561767578125, 0.01213836669921875, -0.06683349609375, -0.030059814453125, -0.044525146484375, -0.0478515625, 0.0214691162109375, -0.059722900390625, -0.05633544921875, -0.054443359375, -0.01021575927734375, 0.0230255126953125, 0.00201416015625, -0.003261566162109375, -0.061614990234375, -0.06689453125, 0.0230255126953125, -0.0338134765625, -0.0104522705078125, 0.00688934326171875, 0.038787841796875, 0.022979736328125, -0.01739501953125, 0.041351318359375, 0.03125, 0.0092315673828125, -0.040313720703125, 0.0699462890625, 0.0220794677734375, 0.004673004150390625, 0.041290283203125, -0.0153961181640625, -0.01436614990234375, -0.0017652511596679688, 0.045379638671875, 0.0164642333984375, -0.00293731689453125, -0.0085906982421875, -0.00838470458984375, 0.024627685546875, 0.0011529922485351562, -0.0102996826171875, -0.06927490234375, -0.007106781005859375, 0.101318359375, -0.002239227294921875, 0.03436279296875, -0.07781982421875, -0.0271148681640625, 0.005069732666015625, -0.0158538818359375, 0.048675537109375, 0.058502197265625, -0.0132293701171875, 0.053558349609375, 0.0164947509765625, 0.0018901824951171875, -0.05084228515625, -0.0037937164306640625, -0.0175018310546875, 0.044464111328125, -0.046630859375, 0.01091766357421875, -0.015777587890625, -0.0013103485107421875, 0.0460205078125, 0.011993408203125, -0.02801513671875, -0.0128021240234375, 0.00841522216796875, -0.021331787109375, 0.007617950439453125, -0.036102294921875, 0.04443359375, 0.03839111328125, -0.00803375244140625, -0.0180816650390625, -0.056427001953125, 0.0263214111328125, -0.0433349609375, 0.0271148681640625, 0.00798797607421875, -0.0077056884765625, -0.017242431640625, 0.0137176513671875, 0.0408935546875, -0.01395416259765625, -0.0167236328125, 0.0017871856689453125, -0.0205535888671875, 0.05596923828125, 0.036865234375, -0.04815673828125, -0.006855010986328125, 0.0552978515625, -0.00040602684020996094, -0.0197906494140625, -0.006061553955078125, 0.037261962890625, 0.026519775390625, -0.0105133056640625, -0.007694244384765625, 0.009185791015625, -0.004108428955078125, -0.035247802734375, 0.03265380859375, 0.019195556640625, -0.021087646484375, -0.0256500244140625, 0.00412750244140625, 0.016815185546875, 0.0161285400390625, -0.054229736328125, 0.0274658203125, -0.01519012451171875, 0.0224609375, 0.0240631103515625, -0.06304931640625, 0.048370361328125, 0.052032470703125, -0.03729248046875, -0.00539398193359375, 0.0124664306640625, -0.0802001953125, -0.02294921875, -0.0128326416015625, -0.0209503173828125, 0.030303955078125, -0.0174407958984375, 0.0244293212890625, -0.0406494140625, -0.0023174285888671875, -0.03338623046875, 0.00740814208984375, 0.01381683349609375, 0.0013751983642578125, 0.0029506683349609375, -0.0035610198974609375, -0.03521728515625, -0.027740478515625, -0.01654052734375, -0.024017333984375, 0.00008934736251831055, -0.006748199462890625, -0.0218505859375, 0.00904083251953125, 0.0282440185546875, 0.057525634765625, -0.0310821533203125, 0.018096923828125, -0.0195465087890625, -0.02099609375, -0.030242919921875, 0.117431640625, 0.0088958740234375, 0.045562744140625, 0.0110015869140625, 0.04217529296875, -0.035736083984375, 0.0236053466796875, 0.01100921630859375, -0.000598907470703125, -0.0196533203125, -0.0023937225341796875, -0.038726806640625, -0.0061187744140625, 0.0574951171875, -0.0162200927734375, 0.01383209228515625, -0.00020754337310791016, 0.006591796875, -0.023681640625, 0.00385284423828125, -0.0021820068359375, 0.0087738037109375, 0.01538848876953125, -0.004505157470703125, 0.03668212890625, -0.0013456344604492188, -0.00994873046875, 0.0009036064147949219, -0.00995635986328125, 0.0157012939453125, 0.0201263427734375, -0.05029296875, 0.072265625, 0.06451416015625, -0.0025787353515625, 0.03924560546875, -0.004871368408203125, 0.005451202392578125, 0.0099639892578125, -0.0185546875, -0.00652313232421875, 0.04571533203125, 0.06536865234375, -0.012054443359375, -0.004749298095703125, 0.03302001953125, -0.022369384765625, 0.00319671630859375, 0.0097808837890625, 0.04541015625, -0.036376953125, 0.0028209686279296875, 0.01229095458984375, -0.03436279296875, 0.0036716461181640625, 0.0294952392578125, 0.004535675048828125, 0.040313720703125, 0.0003609657287597656, -0.049713134765625, -0.01012420654296875, 0.021331787109375, -0.002887725830078125, -0.00017404556274414062, -0.004848480224609375, -0.00391387939453125, -0.024200439453125, 0.0205230712890625, -0.06451416015625, -0.0034027099609375, -0.0295867919921875, -0.0088653564453125, 0.003910064697265625, 0.0057373046875, 0.01505279541015625, -0.01502227783203125, 0.039520263671875, -0.0810546875, 0.0201568603515625, 0.029022216796875, -0.01030731201171875, 0.0204925537109375, 0.034454345703125, -0.02447509765625, 0.042266845703125, -0.0035610198974609375, -0.00450897216796875, -0.0188446044921875, -0.0285491943359375, 0.0014495849609375, 0.0232086181640625, -0.0521240234375, 0.01226806640625, -0.0241546630859375, -0.01232147216796875, -0.0102081298828125, -0.039031982421875, 0.07666015625, -0.0240020751953125, -0.0235595703125, 0.0195770263671875, -0.0229339599609375, -0.016082763671875, -0.001598358154296875, 0.057373046875, -0.0098114013671875, 0.016357421875, 0.02069091796875, 0.004322052001953125, -0.0302734375, -0.00948333740234375, -0.01776123046875, 0.054962158203125, -0.041748046875, 0.020904541015625, 0.05487060546875, 0.0216217041015625, 0.002475738525390625, 0.01776123046875, -0.02734375, 0.030181884765625, 0.002918243408203125, 0.029937744140625, -0.0390625, -0.00782012939453125, -0.0110626220703125, 0.03289794921875, -0.0033130645751953125, 0.0102996826171875, -0.022430419921875, -0.0095977783203125, 0.017578125, 0.025909423828125, 0.0084075927734375, 0.036865234375, -0.0229949951171875, -0.022552490234375, 0.0112152099609375, 0.0032520294189453125, 0.0439453125, -0.03472900390625, -0.03472900390625, -0.01389312744140625, 0.00989532470703125, 0.03472900390625, -0.0189056396484375, 0.0616455078125, 0.01512908935546875, -0.02569580078125, 0.0094757080078125, -0.037078857421875, -0.01421356201171875, 0.029022216796875, 0.0022735595703125, -0.0164031982421875, -0.028106689453125, -0.025146484375, 0.01279449462890625, 0.0176849365234375, 0.03619384765625, 0.029632568359375, 0.021148681640625, 0.007678985595703125, 0.009307861328125, 0.0203094482421875, 0.02447509765625, -0.035919189453125, 0.02392578125, 0.017791748046875, 0.030548095703125, 0.0021762847900390625, -0.005504608154296875, 0.0113525390625, 0.03143310546875, -0.0241851806640625, -0.03814697265625, 0.02392578125, 0.030059814453125, 0.01091766357421875, 0.0185394287109375, 0.0298614501953125, -0.034332275390625, 0.02325439453125, -0.01242828369140625, -0.00742340087890625, 0.028350830078125, 0.00598907470703125, 0.0161895751953125, 0.020904541015625, -0.0300750732421875, 0.0047760009765625, -0.048828125, 0.00864410400390625, 0.0244140625, 0.0732421875, 0.01800537109375, 0.041900634765625, -0.0267333984375, -0.0259552001953125, -0.0083770751953125, 0.0222930908203125, -0.0089569091796875, 0.0031337738037109375, -0.02056884765625, -0.0233917236328125, -0.02923583984375, 0.0259552001953125, 0.0223541259765625, 0.035858154296875, 0.0421142578125, -0.00815582275390625, -0.0323486328125, -0.0014591217041015625, 0.028533935546875, -0.037811279296875, -0.030517578125, -0.0041656494140625, -0.0163726806640625, 0.022491455078125, -0.005580902099609375, -0.0001773834228515625, 0.01287841796875, 0.03900146484375, -0.0242919921875, 0.0281524658203125, 0.004772186279296875, -0.0146636962890625, 0.009185791015625, 0.037200927734375, 0.0389404296875, 0.0238494873046875, -0.09246826171875, -0.0182952880859375, -0.0252532958984375, -0.0523681640625, 0.053253173828125, 0.0513916015625, -0.0213775634765625, 0.002971649169921875, 0.049896240234375, -0.0175323486328125, -0.0182647705078125, 0.03759765625, 0.022613525390625, 0.028778076171875, 0.029937744140625, 0.043670654296875, -0.005725860595703125, 0.00861358642578125, 0.00811767578125, 0.022491455078125, 0.0222320556640625, -0.0046844482421875, 0.005420684814453125, 0.0236358642578125, 0.0004146099090576172, 0.02447509765625, -0.055938720703125, -0.04302978515625, 0.043914794921875, -0.04986572265625, -0.0024280548095703125, 0.01241302490234375, -0.061248779296875, -0.04083251953125, 0.0894775390625, -0.04400634765625, -0.003910064697265625, 0.0110931396484375, 0.035552978515625, -0.08026123046875, 0.0027923583984375, -0.031158447265625, -0.02484130859375, -0.015533447265625, -0.005451202392578125, 0.00919342041015625, 0.00997161865234375, 0.00896453857421875, 0.035308837890625, 0.04278564453125, -0.00478363037109375, 0.01322174072265625, -0.004199981689453125, 0.049774169921875, 0.034210205078125, -0.0081787109375, 0.006603240966796875, 0.04827880859375, 0.0003018379211425781, 0.0189056396484375, 0.01030731201171875, 0.00885009765625, 0.0225067138671875, -0.08013916015625, 0.0384521484375, 0.058563232421875, 0.0701904296875, -0.0113525390625, 0.0240020751953125, 0.048126220703125, -0.021514892578125, 0.0162200927734375, -0.03955078125, -0.034576416015625, -0.0226593017578125, -0.0012063980102539062, 0.01561737060546875, -0.00255584716796875, -0.019378662109375, -0.056884765625, 0.010284423828125, 0.007732391357421875, 0.006397247314453125, -0.061248779296875, 0.042449951171875, -0.0088958740234375, 0.040008544921875, -0.03546142578125, -0.042449951171875, 0.00191497802734375, 0.022247314453125, -0.005443572998046875, 0.0019855499267578125, -0.037109375, -0.010223388671875, -0.022125244140625, -0.0005030632019042969, 0.033233642578125, -0.0237579345703125, -0.046905517578125, -0.00765228271484375, -0.0038623809814453125, 0.025482177734375, -0.004924774169921875, -0.0288543701171875, -0.00322723388671875, -0.0186614990234375, -0.01334381103515625, -0.0079803466796875, 0.04638671875, -0.07171630859375, -0.04833984375, -0.0031147003173828125, 0.00015974044799804688, 0.009674072265625, -0.036651611328125, -0.08746337890625, 0.04693603515625, -0.005527496337890625, -0.041412353515625, -0.0245208740234375, 0.022918701171875, -0.0256805419921875, 0.0217132568359375, 0.006450653076171875, -0.04705810546875, 0.024261474609375, 0.03704833984375, 0.003326416015625, 0.049835205078125, 0.01036834716796875, -0.00373077392578125, -0.0238037109375, -0.0084075927734375, -0.0166168212890625, 0.0224151611328125, 0.003833770751953125, -0.00772857666015625, 0.019195556640625, 0.02435302734375, -0.035369873046875, 0.00785064697265625, 0.0095062255859375, 0.006511688232421875, 0.025604248046875, -0.026458740234375, -0.04248046875, -0.06610107421875, 0.039337158203125, -0.0302734375, 0.0109710693359375, 0.042816162109375, -0.0097503662109375, -0.0182952880859375, -0.05145263671875, 0.01433563232421875, 0.0184326171875, -0.0369873046875, 0.007251739501953125, 0.00965118408203125, -0.015777587890625, -0.0256195068359375, 0.020294189453125, -0.046722412109375, -0.000028908252716064453, 0.006923675537109375, 0.01251220703125, -0.050994873046875, -0.025299072265625, 0.0033721923828125, -0.0188751220703125, -0.01971435546875, 0.02130126953125, 0.007686614990234375, -0.0159149169921875, 0.0521240234375, -0.0009908676147460938, -0.021697998046875, -0.009857177734375, -0.003936767578125, 0.0117034912109375, 0.01274871826171875, 0.0112457275390625, -0.021636962890625, -0.0251007080078125, 0.007167816162109375, 0.0293426513671875, 0.0212554931640625, -0.0462646484375, 0.0008511543273925781, 0.0169677734375, 0.02435302734375, -0.0013256072998046875, 0.024505615234375, 0.00940704345703125, 0.038909912109375, 0.0190887451171875, -0.05078125, 0.06085205078125, -0.058135986328125, -0.0268707275390625, -0.01068115234375, -0.0455322265625, -0.0784912109375, 0.041046142578125, -0.0004367828369140625, -0.004100799560546875, 0.03228759765625 ]
c0a9b177d0285dd8fa83880b32ff83b0bdedc5de
Wordpress Stackexchange Q: WordPress 3.5: Setting custom "full URL path to files" in the Media Library? As the recent changes in WordPress 3.5 removed the "full URL path to files" option from media library I am wondering how to set this option to a custom path now? I need to set my "full URL path to files" for my media files to a custom subdomain. Can you guys help me out with finding a solution for this problem? Regards, faxxim A: Thank you @Toscho for providing me with the name of the option. Here's another way to change it, by placing this in your functions.php file: update_option('upload_url_path', '/wp-content/uploads'); This will make WordPress embed images like src="/wp-content/uploads/file.jpg" instead of src="http://domain.com/wp-content/uploads/file.jpg"
Q: WordPress 3.5: Setting custom "full URL path to files" in the Media Library? As the recent changes in WordPress 3.5 removed the "full URL path to files" option from media library I am wondering how to set this option to a custom path now? I need to set my "full URL path to files" for my media files to a custom subdomain. Can you guys help me out with finding a solution for this problem? Regards, faxxim A: Thank you @Toscho for providing me with the name of the option. Here's another way to change it, by placing this in your functions.php file: update_option('upload_url_path', '/wp-content/uploads'); This will make WordPress embed images like src="/wp-content/uploads/file.jpg" instead of src="http://domain.com/wp-content/uploads/file.jpg" A: The option name is upload_url_path, and you can still filter it: add_filter( 'pre_option_upload_url_path', 'wpse_77960_upload_url' ); function wpse_77960_upload_url() { return 'http://subdomain.example.com/files'; }
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:427339", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77960" }
[ 0.0623779296875, -0.019439697265625, 0.018524169921875, -0.01873779296875, -0.013153076171875, -0.0350341796875, 0.0596923828125, -0.00914764404296875, 0.005710601806640625, -0.0073699951171875, 0.024932861328125, -0.01328277587890625, 0.0119476318359375, -0.05023193359375, 0.0352783203125, -0.00434112548828125, 0.038848876953125, -0.0223846435546875, 0.047119140625, -0.0034236907958984375, 0.0158538818359375, 0.0189056396484375, 0.06817626953125, 0.0305938720703125, -0.0037822723388671875, -0.00795745849609375, 0.05157470703125, -0.02203369140625, -0.0015420913696289062, -0.036041259765625, 0.007472991943359375, 0.0260467529296875, 0.0236968994140625, 0.0018053054809570312, -0.004718780517578125, 0.0092926025390625, 0.0396728515625, -0.0152130126953125, 0.00814056396484375, 0.014617919921875, 0.0245361328125, -0.01189422607421875, 0.0076904296875, 0.01690673828125, 0.0018024444580078125, -0.0406494140625, 0.0301971435546875, -0.033843994140625, 0.0227203369140625, 0.064208984375, -0.01177215576171875, -0.0207672119140625, -0.02203369140625, -0.00901031494140625, -0.0102691650390625, -0.055145263671875, -0.0160980224609375, 0.011688232421875, 0.0123748779296875, -0.0106964111328125, -0.01030731201171875, 0.0123443603515625, 0.0229339599609375, 0.0197601318359375, -0.0127105712890625, -0.01226043701171875, 0.0201263427734375, 0.02276611328125, -0.03411865234375, -0.0445556640625, 0.007762908935546875, 0.00504302978515625, 0.01430511474609375, -0.0255126953125, -0.0228271484375, 0.045135498046875, -0.007396697998046875, 0.01030731201171875, 0.0310821533203125, -0.032501220703125, 0.01299285888671875, -0.021514892578125, -0.0217132568359375, 0.0029048919677734375, 0.040069580078125, 0.0301666259765625, 0.00496673583984375, -0.0233154296875, 0.0014934539794921875, 0.01331329345703125, -0.01169586181640625, 0.0219573974609375, 0.02545166015625, 0.0186309814453125, -0.038177490234375, 0.00916290283203125, 0.01401519775390625, 0.0224609375, 0.0026645660400390625, 0.0168609619140625, 0.01116180419921875, -0.047607421875, 0.0290985107421875, -0.0357666015625, 0.01473236083984375, 0.0263214111328125, -0.002506256103515625, -0.038726806640625, 0.0153045654296875, 0.01512908935546875, -0.01397705078125, 0.0295562744140625, 0.034423828125, 0.001873016357421875, -0.021942138671875, -0.027069091796875, -0.0186004638671875, 0.01702880859375, -0.0113372802734375, -0.00458526611328125, 0.0175933837890625, 0.0462646484375, -0.044647216796875, -0.0034427642822265625, 0.0098419189453125, 0.0148162841796875, -0.01038360595703125, -0.01314544677734375, -0.04132080078125, 0.0457763671875, -0.02764892578125, 0.01171112060546875, 0.03961181640625, -0.0022830963134765625, -0.024261474609375, -0.031158447265625, 0.0031452178955078125, -0.00470733642578125, 0.0011472702026367188, 0.0231781005859375, -0.00601959228515625, -0.043487548828125, 0.0253448486328125, 0.00554656982421875, -0.0006971359252929688, 0.027801513671875, 0.01316070556640625, 0.0205535888671875, -0.00695037841796875, -0.049591064453125, 0.003833770751953125, -0.01293182373046875, 0.0322265625, 0.01861572265625, -0.0280914306640625, -0.035614013671875, 0.032379150390625, -0.04534912109375, 0.0177764892578125, -0.0576171875, -0.005794525146484375, -0.00734710693359375, 0.01428985595703125, -0.03662109375, -0.0311279296875, -0.019012451171875, -0.0203094482421875, -0.0026226043701171875, 0.0278472900390625, 0.062408447265625, 0.00545501708984375, -0.032623291015625, -0.04791259765625, 0.033843994140625, 0.0017538070678710938, 0.018524169921875, 0.053314208984375, 0.040252685546875, -0.0216064453125, 0.08984375, 0.0211029052734375, -0.031463623046875, 0.08331298828125, -0.053253173828125, -0.043426513671875, -0.0011615753173828125, 0.01166534423828125, 0.0498046875, 0.01404571533203125, 0.01378631591796875, 0.0289764404296875, -0.0078887939453125, -0.0135650634765625, 0.01507568359375, -0.0182342529296875, -0.0050811767578125, -0.039886474609375, -0.0010423660278320312, -0.031280517578125, 0.01971435546875, -0.0213775634765625, 0.0246734619140625, 0.0020503997802734375, 0.0469970703125, 0.040191650390625, 0.03936767578125, 0.0009312629699707031, 0.02276611328125, 0.00850677490234375, -0.006267547607421875, 0.0120391845703125, 0.0286102294921875, -0.0213470458984375, -0.045440673828125, -0.040283203125, 0.0232391357421875, 0.009429931640625, 0.03485107421875, -0.017242431640625, 0.03021240234375, -0.0190277099609375, -0.031005859375, -0.00879669189453125, 0.0238037109375, 0.0121917724609375, -0.01139068603515625, -0.0213165283203125, -0.01364898681640625, 0.0210113525390625, 0.01214599609375, -0.0179901123046875, 0.0086669921875, 0.008331298828125, -0.013824462890625, -0.0400390625, -0.0202789306640625, -0.0009036064147949219, -0.0579833984375, 0.011688232421875, 0.051788330078125, 0.035125732421875, -0.004375457763671875, -0.000606536865234375, -0.000058650970458984375, 0.034027099609375, -0.00119781494140625, 0.02703857421875, -0.0277252197265625, 0.03704833984375, 0.04425048828125, -0.0225830078125, -0.0219268798828125, 0.01288604736328125, -0.053192138671875, 0.01113128662109375, 0.03009033203125, -0.007404327392578125, -0.037384033203125, 0.015594482421875, 0.005893707275390625, 0.021759033203125, 0.0172119140625, -0.03289794921875, 0.019195556640625, -0.034759521484375, 0.08453369140625, 0.0312347412109375, 0.0574951171875, -0.01178741455078125, 0.0303497314453125, -0.0027408599853515625, -0.0008578300476074219, -0.01303863525390625, 0.04583740234375, 0.042816162109375, -0.0291595458984375, -0.00232696533203125, -0.006011962890625, -0.038330078125, 0.0111236572265625, -0.021820068359375, -0.018402099609375, -0.044189453125, 0.00420379638671875, 0.010040283203125, -0.059478759765625, 0.0106201171875, 0.009368896484375, -0.00041961669921875, -0.0124053955078125, 0.0290679931640625, 0.03192138671875, 0.00829315185546875, 0.0293121337890625, 0.01190185546875, -0.0147705078125, 0.034271240234375, -0.05126953125, 0.037322998046875, -0.04229736328125, 0.06890869140625, 0.05908203125, -0.032684326171875, 0.0010747909545898438, -0.0033855438232421875, 0.0224151611328125, 0.0093841552734375, 0.045745849609375, 0.016754150390625, -0.034698486328125, -0.04681396484375, -0.07275390625, 0.005084991455078125, -0.0521240234375, -0.0137786865234375, -0.012298583984375, -0.03668212890625, -0.0227203369140625, -0.089111328125, -0.0244598388671875, 0.014617919921875, -0.06256103515625, 0.013336181640625, 0.010589599609375, -0.029632568359375, -0.0274810791015625, 0.054168701171875, 0.0007014274597167969, 0.027984619140625, 0.004058837890625, -0.045654296875, 0.0018587112426757812, -0.033905029296875, -0.02838134765625, -0.0109100341796875, -0.0234832763671875, 0.005870819091796875, 0.0296478271484375, 0.0167083740234375, -0.0061187744140625, 0.033111572265625, 0.0408935546875, 0.005138397216796875, -0.0196075439453125, 0.059417724609375, -0.04327392578125, 0.003589630126953125, -0.01213836669921875, 0.050079345703125, 0.06866455078125, -0.053558349609375, -0.001102447509765625, -0.01739501953125, 0.00775909423828125, -0.0216064453125, 0.0413818359375, 0.056182861328125, -0.013702392578125, -0.02593994140625, -0.051025390625, -0.013916015625, 0.002033233642578125, -0.0265350341796875, 0.03631591796875, -0.00843048095703125, -0.0220794677734375, 0.0038909912109375, 0.04730224609375, -0.0018949508666992188, 0.006099700927734375, 0.00962066650390625, -0.045654296875, -0.0036296844482421875, 0.0121917724609375, 0.02410888671875, 0.00885772705078125, 0.069580078125, 0.01165008544921875, -0.02362060546875, 0.0191497802734375, 0.0258941650390625, -0.006011962890625, -0.010162353515625, -0.0736083984375, -0.032012939453125, 0.034088134765625, -0.06396484375, 0.006610870361328125, -0.045166015625, -0.0164031982421875, -0.023834228515625, 0.0758056640625, -0.02874755859375, -0.0014314651489257812, 0.01018524169921875, 0.0016698837280273438, -0.01479339599609375, -0.0321044921875, -0.059356689453125, -0.005352020263671875, -0.0245819091796875, -0.0004177093505859375, -0.017364501953125, 0.01837158203125, -0.002216339111328125, -0.009185791015625, 0.01381683349609375, -0.045928955078125, 0.032958984375, -0.0263214111328125, -0.0160369873046875, 0.0296173095703125, -0.004077911376953125, -0.023040771484375, -0.036376953125, -0.0019741058349609375, -0.08837890625, -0.0253448486328125, -0.0097198486328125, 0.0831298828125, 0.0170135498046875, -0.043731689453125, -0.0389404296875, 0.056640625, 0.0472412109375, 0.0034503936767578125, 0.058868408203125, -0.04754638671875, 0.03155517578125, 0.041412353515625, 0.048614501953125, -0.010589599609375, -0.01067352294921875, -0.061553955078125, -0.07470703125, -0.0633544921875, -0.01593017578125, 0.024566650390625, 0.019775390625, -0.0254058837890625, -0.04473876953125, -0.0214385986328125, -0.0264739990234375, -0.00409698486328125, 0.002239227294921875, -0.0308990478515625, -0.023681640625, -0.04736328125, 0.043365478515625, -0.01398468017578125, 0.0101776123046875, 0.01023101806640625, 0.0753173828125, -0.0007810592651367188, -0.00919342041015625, -0.044708251953125, -0.005710601806640625, 0.039642333984375, -0.0171051025390625, 0.0292205810546875, 0.0254974365234375, -0.0184783935546875, 0.02374267578125, -0.0011129379272460938, 0.01092529296875, 0.037078857421875, -0.01407623291015625, 0.01404571533203125, -0.01342010498046875, 0.0117950439453125, 0.0254058837890625, -0.029052734375, 0.0128631591796875, -0.0205841064453125, 0.0264434814453125, -0.0147705078125, 0.00821685791015625, 0.0210113525390625, -0.035675048828125, -0.038726806640625, -0.06463623046875, 0.026458740234375, -0.00765228271484375, 0.0257415771484375, -0.0158233642578125, 0.0097198486328125, 0.03411865234375, 0.0248565673828125, -0.011474609375, 0.032501220703125, 0.02105712890625, 0.00495147705078125, 0.043701171875, 0.00675201416015625, -0.0163421630859375, 0.006134033203125, -0.00031065940856933594, 0.031951904296875, 0.00452423095703125, -0.014190673828125, -0.0306854248046875, 0.01027679443359375, 0.0216217041015625, 0.005985260009765625, -0.0439453125, 0.03973388671875, 0.041168212890625, -0.0223388671875, 0.0020694732666015625, -0.07891845703125, 0.019317626953125, -0.04705810546875, 0.04779052734375, 0.022125244140625, -0.00450897216796875, -0.014129638671875, 0.044342041015625, 0.0300445556640625, -0.005413055419921875, -0.00899505615234375, -0.0086669921875, 0.0186920166015625, 0.01183319091796875, 0.02081298828125, 0.0250396728515625, -0.0390625, 0.009124755859375, 0.0225830078125, -0.0302734375, 0.0283966064453125, 0.032958984375, 0.0428466796875, -0.007228851318359375, -0.043365478515625, -0.0007004737854003906, -0.06964111328125, -0.01326751708984375, 0.001983642578125, -0.031494140625, -0.03118896484375, -0.027496337890625, -0.0217742919921875, 0.03363037109375, -0.0130615234375, -0.0225067138671875, -0.007167816162109375, -0.028717041015625, 0.00396728515625, 0.0298614501953125, -0.037933349609375, 0.01380157470703125, -0.00031447410583496094, 0.0239410400390625, -0.0005412101745605469, -0.0004954338073730469, -0.0280303955078125, -0.031158447265625, -0.031585693359375, -0.02349853515625, 0.0933837890625, -0.0285186767578125, 0.018463134765625, -0.0051422119140625, -0.0223846435546875, -0.0306549072265625, 0.04083251953125, 0.0046539306640625, 0.00931549072265625, -0.037994384765625, 0.0189361572265625, -0.0188446044921875, -0.00933837890625, 0.006061553955078125, -0.0306549072265625, -0.034912109375, -0.041473388671875, -0.00931549072265625, 0.01520538330078125, -0.01226806640625, -0.0063018798828125, -0.03167724609375, 0.0263671875, 0.016082763671875, 0.031280517578125, -0.004962921142578125, 0.006824493408203125, 0.01513671875, 0.026947021484375, -0.0007748603820800781, -0.01128387451171875, 0.00815582275390625, -0.033538818359375, -0.0242919921875, -0.03265380859375, -0.0264434814453125, 0.01030731201171875, -0.00634002685546875, 0.0753173828125, 0.0904541015625, 0.0080413818359375, 0.037109375, -0.027801513671875, -0.0098724365234375, -0.021453857421875, 0.02752685546875, -0.04339599609375, 0.043548583984375, -0.0276641845703125, 0.0006260871887207031, 0.040435791015625, -0.006134033203125, -0.0307464599609375, 0.0244598388671875, 0.001445770263671875, 0.0218353271484375, 0.0049285888671875, -0.01458740234375, 0.035888671875, 0.06329345703125, 0.006298065185546875, 0.03924560546875, 0.0177001953125, 0.005283355712890625, -0.0051116943359375, 0.00943756103515625, 0.0015344619750976562, -0.0160675048828125, 0.041717529296875, 0.00786590576171875, 0.020111083984375, 0.031890869140625, -0.0006685256958007812, 0.032623291015625, 0.02972412109375, 0.040313720703125, -0.044097900390625, 0.006946563720703125, -0.02117919921875, -0.01306915283203125, 0.08447265625, 0.00927734375, -0.00022649765014648438, 0.00701904296875, -0.0015420913696289062, -0.04571533203125, -0.0367431640625, -0.0088958740234375, -0.0037517547607421875, 0.001453399658203125, 0.0347900390625, 0.0369873046875, 0.01027679443359375, -0.007244110107421875, -0.049774169921875, 0.00782012939453125, -0.007236480712890625, 0.0285491943359375, 0.000044345855712890625, -0.0286865234375, -0.00957489013671875, 0.0031375885009765625, -0.0005803108215332031, -0.06591796875, -0.0002353191375732422, 0.045013427734375, 0.0019817352294921875, 0.034210205078125, 0.04052734375, -0.004856109619140625, 0.00006669759750366211, 0.0107879638671875, -0.040496826171875, 0.05364990234375, -0.004467010498046875, 0.00791168212890625, 0.024932861328125, -0.03668212890625, -0.00321197509765625, -0.027191162109375, 0.00879669189453125, 0.0021686553955078125, -0.004364013671875, 0.0615234375, -0.0650634765625, 0.0027923583984375, 0.036590576171875, 0.0181732177734375, -0.012847900390625, -0.0185546875, 0.032928466796875, -0.0736083984375, -0.044830322265625, 0.0015411376953125, -0.046875, -0.01500701904296875, -0.024444580078125, -0.033050537109375, 0.11688232421875, -0.038543701171875, 0.032012939453125, 0.040435791015625, 0.040740966796875, -0.01146697998046875, 0.033355712890625, -0.0081939697265625, 0.007389068603515625, -0.03582763671875, 0.0098419189453125, -0.0290374755859375, -0.0071258544921875, -0.01062774658203125, 0.042724609375, 0.03546142578125, 0.01282501220703125, -0.0208892822265625, -0.01824951171875, 0.024688720703125, 0.048492431640625, 0.0167999267578125, 0.01418304443359375, -0.0091552734375, 0.02154541015625, 0.042694091796875, -0.0221710205078125, 0.0316162109375, 0.005184173583984375, -0.02734375, 0.01300811767578125, 0.011962890625, 0.00493621826171875, 0.0005502700805664062, 0.031341552734375, -0.033660888671875, -0.01387786865234375, 0.049041748046875, -0.08270263671875, 0.038055419921875, 0.01473236083984375, 0.01422882080078125, 0.0159454345703125, 0.017059326171875, -0.0013723373413085938, 0.043121337890625, -0.02813720703125, -0.0255889892578125, 0.029083251953125, -0.004150390625, 0.0175018310546875, -0.0066375732421875, -0.03271484375, 0.0036373138427734375, 0.031585693359375, 0.05877685546875, 0.034820556640625, 0.0097198486328125, 0.0005316734313964844, 0.058258056640625, 0.0142974853515625, 0.040985107421875, -0.05438232421875, -0.0316162109375, -0.001007080078125, -0.019134521484375, 0.021697998046875, -0.01351165771484375, 0.0091705322265625, -0.0220794677734375, -0.0247802734375, -0.046478271484375, 0.0138397216796875, 0.042205810546875, 0.01558685302734375, -0.0026340484619140625, -0.0057830810546875, -0.040252685546875, 0.0037631988525390625, -0.004741668701171875, -0.031005859375, -0.0146942138671875, 0.00467681884765625, 0.0312347412109375, -0.024505615234375, -0.0116424560546875, 0.0010099411010742188, 0.0128021240234375, 0.04864501953125, -0.0229034423828125, -0.007663726806640625, -0.03570556640625, -0.09814453125, 0.035400390625, 0.038909912109375, 0.051116943359375, 0.020111083984375, 0.0533447265625, 0.0264129638671875, -0.0217437744140625, 0.01543426513671875, 0.0301666259765625, -0.0019969940185546875, 0.04974365234375, -0.039581298828125, 0.0270538330078125, -0.004924774169921875, -0.015655517578125, -0.0302581787109375, -0.00659942626953125, 0.0518798828125, -0.00974273681640625, 0.040069580078125, -0.01123046875, -0.040435791015625, -0.0019893646240234375, -0.02313232421875, 0.09991455078125, 0.004787445068359375, -0.0372314453125, 0.00821685791015625, -0.022308349609375, -0.052520751953125, -0.0181884765625, 0.0295867919921875, -0.0196380615234375, 0.0260772705078125, -0.0340576171875, -0.0106353759765625, 0.0026187896728515625, -0.0158233642578125, -0.0016660690307617188, -0.0225067138671875, 0.004512786865234375, -0.018798828125, -0.015716552734375, 0.0004456043243408203, -0.023193359375, 0.0078277587890625, 0.049560546875, 0.11590576171875, -0.038177490234375, 0.029815673828125, 0.005527496337890625, 0.0013208389282226562, -0.00585174560546875, 0.01055145263671875, -0.04046630859375, 0.0011463165283203125, 0.013092041015625, -0.005123138427734375, 0.0261077880859375, 0.047607421875, 0.01157379150390625, -0.0496826171875, 0.023406982421875, -0.02008056640625, 0.002838134765625, -0.0004968643188476562, 0.00878143310546875, -0.04376220703125, -0.06060791015625, -0.07647705078125, 0.00173187255859375, 0.0206756591796875, 0.0082550048828125, -0.06072998046875, 0.03460693359375, 0.00905609130859375, -0.0210113525390625, 0.051727294921875, -0.05133056640625, 0.09930419921875, 0.05682373046875, -0.05963134765625, -0.055633544921875, 0.0240631103515625, -0.00850677490234375, -0.005481719970703125, -0.00827789306640625, 0.06512451171875, 0.0031147003173828125, -0.0264434814453125, -0.01110076904296875, -0.0197906494140625, -0.0227508544921875, -0.0335693359375, -0.01806640625, 0.0162200927734375, -0.0155487060546875, 0.0008149147033691406, -0.0712890625, -0.0063934326171875, -0.0185089111328125, -0.026092529296875, 0.027740478515625, -0.01007080078125, -0.01268768310546875, -0.00787353515625, 0.00839996337890625, 0.0267486572265625, 0.04266357421875, -0.1334228515625, 0.071044921875, 0.0055999755859375, 0.041015625, -0.006732940673828125, -0.006107330322265625, -0.0144500732421875, 0.01497650146484375, -0.00803375244140625, -0.05828857421875, -0.0297393798828125, 0.0545654296875, -0.0225677490234375, 0.01739501953125, 0.01580810546875, -0.00850677490234375, 0.004154205322265625, 0.047882080078125, 0.007610321044921875, 0.0909423828125, -0.0283050537109375, -0.029998779296875, -0.032623291015625, 0.0179443359375, -0.01555633544921875, -0.0093231201171875, 0.015625, -0.036224365234375, -0.022705078125, 0.008758544921875, 0.004100799560546875, 0.00695037841796875, -0.0343017578125, -0.06378173828125, 0.0109405517578125, 0.00543212890625, -0.04791259765625, -0.0155792236328125, 0.0036411285400390625, -0.0164031982421875, 0.08026123046875, 0.021728515625, -0.0175933837890625, -0.001552581787109375, 0.0088043212890625, 0.01293182373046875, 0.061767578125, -0.0355224609375, 0.040679931640625, -0.01531219482421875, 0.0496826171875, 0.0225830078125, 0.00934600830078125, 0.035186767578125, -0.00885772705078125, 0.028411865234375, 0.03338623046875, -0.035430908203125, 0.0018215179443359375, -0.01617431640625, -0.0255889892578125, -0.02362060546875, -0.0155029296875, -0.01325225830078125, -0.0093231201171875, 0.06439208984375, 0.04473876953125, 0.007526397705078125, -0.012451171875, -0.030059814453125, -0.038848876953125, 0.0099945068359375, 0.00995635986328125, 0.002437591552734375, -0.046844482421875, 0.0218048095703125, 0.03228759765625, -0.01381683349609375, -0.0672607421875, 0.000217437744140625, -0.0509033203125, -0.0023975372314453125, -0.021270751953125, -0.01412200927734375, 0.01065826416015625, 0.0102386474609375, 0.08856201171875, -0.0511474609375, 0.0031566619873046875, 0.00266265869140625, 0.00997161865234375, 0.036224365234375, -0.035552978515625, 0.0252685546875, 0.034576416015625, -0.028076171875, 0.01477813720703125, 0.0268402099609375, -0.029510498046875, -0.01210784912109375, -0.0189666748046875, 0.01015472412109375, 0.003742218017578125, -0.0230712890625, 0.005344390869140625, 0.062103271484375, -0.0031147003173828125, -0.0258331298828125, 0.0498046875, -0.0287628173828125, -0.0018472671508789062, -0.0287933349609375, 0.0112152099609375, -0.0261993408203125, 0.024261474609375, 0.02655029296875, -0.00850677490234375, 0.009033203125, 0.01424407958984375, -0.010284423828125, -0.040313720703125, 0.00711822509765625, -0.050750732421875, -0.006107330322265625, 0.0011539459228515625 ]
10eeb5806697b89d61912770bf5636b478249ceb
Wordpress Stackexchange Q: Display all posts from specific categories on a page I want to display all posts from specific categories on a single page. Therefore I edited the page.php file in my theme folder. I added an 'if-clause' to check which page currently being displayed and load all posts from the following categories. <?php get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php if (is_page(26)) { query_posts('cat=2,6,9,13&showposts=-1&orderby=date'); if (have_posts()) : while (have_posts()) : the_post(); get_template_part( 'content', 'page' ); endwhile; endif; } else { while ( have_posts() ) : the_post(); get_template_part( 'content', 'page' ); endwhile; // end of the loop. } ?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?> But when I load my page 26 nothing will be displayed. A: I'd Advise adding the arg of the category in an array. And don't use query_posts. Also showposts is deprecated use posts_per_page instead. $args = array ( 'cat' => array(2,6,9,13), 'posts_per_page' => -1, //showposts is deprecated 'orderby' => 'date' //You can specify more filters to get the data ); $cat_posts = new WP_query($args); if ($cat_posts->have_posts()) : while ($cat_posts->have_posts()) : $cat_posts->the_post(); get_template_part( 'content', 'page' ); endwhile; endif;
Q: Display all posts from specific categories on a page I want to display all posts from specific categories on a single page. Therefore I edited the page.php file in my theme folder. I added an 'if-clause' to check which page currently being displayed and load all posts from the following categories. <?php get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php if (is_page(26)) { query_posts('cat=2,6,9,13&showposts=-1&orderby=date'); if (have_posts()) : while (have_posts()) : the_post(); get_template_part( 'content', 'page' ); endwhile; endif; } else { while ( have_posts() ) : the_post(); get_template_part( 'content', 'page' ); endwhile; // end of the loop. } ?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?> But when I load my page 26 nothing will be displayed. A: I'd Advise adding the arg of the category in an array. And don't use query_posts. Also showposts is deprecated use posts_per_page instead. $args = array ( 'cat' => array(2,6,9,13), 'posts_per_page' => -1, //showposts is deprecated 'orderby' => 'date' //You can specify more filters to get the data ); $cat_posts = new WP_query($args); if ($cat_posts->have_posts()) : while ($cat_posts->have_posts()) : $cat_posts->the_post(); get_template_part( 'content', 'page' ); endwhile; endif; A: This happens because you are still using query_posts(). Stop doing that. Use WP_Query instead: $extra_posts = new WP_Query( 'cat=2,6,9,13&showposts=-1&orderby=date' ); if ( $extra_posts->have_posts() ) { while( $extra_posts->have_posts() ) { $extra_posts->the_post(); get_template_part( 'content', 'page' ); } wp_reset_postdata(); }
wordpress
{ "language": "en", "length": 223, "provenance": "stackexchange_00019.jsonl.gz:427342", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/77966" }
[ 0.07574462890625, -0.0144805908203125, 0.0017824172973632812, -0.0635986328125, 0.0185089111328125, -0.043670654296875, 0.02362060546875, -0.0017251968383789062, 0.005893707275390625, 0.0085906982421875, -0.034332275390625, -0.0311279296875, -0.048583984375, -0.03387451171875, -0.026092529296875, -0.05816650390625, 0.040771484375, -0.0247650146484375, 0.0205078125, -0.006927490234375, 0.02301025390625, 0.0114593505859375, 0.01468658447265625, 0.084716796875, 0.004241943359375, -0.0172576904296875, 0.035125732421875, -0.05242919921875, -0.0050506591796875, -0.034027099609375, -0.004726409912109375, 0.054168701171875, 0.03082275390625, 0.00189971923828125, -0.00370025634765625, 0.02587890625, 0.0009760856628417969, -0.0009102821350097656, 0.02374267578125, 0.0011386871337890625, 0.00794219970703125, 0.0009899139404296875, 0.050811767578125, 0.053314208984375, 0.00396728515625, -0.04736328125, 0.0204925537109375, -0.052276611328125, -0.01059722900390625, -0.039794921875, 0.00965118408203125, -0.01438140869140625, 0.0196380615234375, -0.0215911865234375, -0.0191497802734375, 0.0185699462890625, 0.002002716064453125, -0.0207366943359375, 0.0509033203125, -0.01250457763671875, -0.058441162109375, -0.035491943359375, 0.0457763671875, -0.038543701171875, -0.0240478515625, 0.0233001708984375, 0.05926513671875, -0.0089874267578125, -0.06475830078125, -0.046783447265625, 0.0374755859375, -0.034576416015625, -0.01131439208984375, -0.0211029052734375, -0.0156402587890625, -0.006500244140625, -0.00759124755859375, -0.034576416015625, 0.00621795654296875, 0.013275146484375, -0.0167999267578125, 0.0213165283203125, -0.040985107421875, -0.0064239501953125, -0.0013265609741210938, 0.017974853515625, -0.0288848876953125, -0.0184326171875, -0.02056884765625, -0.01522064208984375, -0.020416259765625, 0.029449462890625, -0.056793212890625, -0.01267242431640625, 0.01433563232421875, -0.054290771484375, 0.00267791748046875, 0.041534423828125, -0.0164794921875, -0.00435638427734375, -0.040802001953125, 0.0008487701416015625, -0.0321044921875, -0.0235137939453125, 0.032012939453125, 0.07598876953125, -0.0177459716796875, 0.013519287109375, 0.059112548828125, 0.029327392578125, 0.042205810546875, 0.028900146484375, -0.01474761962890625, 0.00168609619140625, -0.0311431884765625, 0.038726806640625, -0.043243408203125, -0.007762908935546875, -0.0285491943359375, 0.041168212890625, 0.0141448974609375, 0.055328369140625, -0.006565093994140625, -0.0504150390625, 0.00687408447265625, -0.0010547637939453125, -0.00492095947265625, -0.04998779296875, 0.00717926025390625, 0.0162200927734375, -0.0217132568359375, -0.007526397705078125, 0.015594482421875, 0.025421142578125, 0.01117706298828125, -0.0161285400390625, 0.027618408203125, -0.0193328857421875, 0.006195068359375, 0.0213165283203125, -0.0168304443359375, -0.0207977294921875, 0.039642333984375, -0.004322052001953125, 0.006687164306640625, -0.0179595947265625, 0.00421142578125, 0.024078369140625, 0.00817108154296875, 0.020233154296875, 0.01708984375, -0.00467681884765625, 0.0447998046875, 0.0017442703247070312, -0.028411865234375, 0.01702880859375, 0.0081329345703125, 0.0010271072387695312, -0.059234619140625, -0.02032470703125, 0.032989501953125, 0.0180816650390625, 0.0106048583984375, -0.060516357421875, -0.06195068359375, -0.03887939453125, -0.046417236328125, -0.020751953125, 0.0184478759765625, -0.00844573974609375, -0.0134429931640625, -0.028045654296875, 0.0302276611328125, 0.00959014892578125, 0.01313018798828125, 0.051513671875, -0.0299224853515625, 0.0212860107421875, 0.03326416015625, 0.020172119140625, 0.00542449951171875, -0.0233917236328125, 0.0228118896484375, 0.021209716796875, -0.08221435546875, 0.032073974609375, 0.0164947509765625, 0.04595947265625, 0.00679779052734375, 0.0017290115356445312, 0.08184814453125, 0.0289306640625, -0.024078369140625, 0.050567626953125, 0.0189666748046875, -0.04736328125, -0.0204620361328125, -0.00901031494140625, 0.002162933349609375, -0.04046630859375, 0.018402099609375, 0.0028285980224609375, -0.005229949951171875, -0.0073394775390625, -0.05560302734375, 0.0026798248291015625, -0.012481689453125, 0.033416748046875, -0.00330352783203125, 0.041351318359375, 0.02337646484375, 0.03192138671875, -0.042877197265625, -0.0202178955078125, -0.0167083740234375, 0.023590087890625, -0.00582122802734375, 0.0006060600280761719, 0.0004162788391113281, -0.0088958740234375, -0.0136260986328125, -0.00936126708984375, -0.017333984375, 0.0455322265625, 0.0751953125, -0.0179443359375, 0.00872039794921875, -0.036529541015625, 0.0264739990234375, 0.0304718017578125, -0.09136962890625, 0.00959014892578125, 0.027801513671875, 0.056610107421875, -0.03607177734375, 0.00910186767578125, 0.017852783203125, 0.0281219482421875, 0.0003452301025390625, 0.0125885009765625, 0.030731201171875, 0.0008678436279296875, -0.0182647705078125, -0.0258026123046875, 0.04071044921875, -0.053680419921875, -0.0085296630859375, -0.0124969482421875, 0.0034046173095703125, 0.0297698974609375, 0.024688720703125, 0.0268402099609375, 0.0161285400390625, 0.01554107666015625, 0.01180267333984375, 0.03802490234375, 0.010223388671875, 0.021087646484375, -0.052337646484375, 0.01076507568359375, 0.01421356201171875, -0.01218414306640625, -0.038970947265625, 0.0107879638671875, 0.05670166015625, 0.007503509521484375, 0.0501708984375, 0.0219573974609375, -0.01934814453125, 0.006832122802734375, 0.00156402587890625, -0.032562255859375, -0.0007958412170410156, -0.00009965896606445312, -0.027801513671875, 0.01081085205078125, -0.0458984375, 0.0209808349609375, 0.0269012451171875, -0.01324462890625, -0.00937652587890625, 0.056121826171875, 0.0009379386901855469, -0.003124237060546875, -0.050201416015625, -0.0745849609375, 0.00591278076171875, 0.039794921875, 0.030548095703125, 0.02734375, 0.0259552001953125, 0.036224365234375, -0.0140228271484375, 0.04638671875, 0.00701904296875, -0.006626129150390625, 0.01029205322265625, -0.052459716796875, 0.04327392578125, -0.051055908203125, 0.03839111328125, 0.051513671875, -0.0278472900390625, 0.02581787109375, 0.0013456344604492188, 0.02374267578125, 0.0309295654296875, 0.0044097900390625, -0.018341064453125, -0.0252685546875, -0.0240936279296875, -0.01486968994140625, 0.0250396728515625, 0.05718994140625, 0.006633758544921875, -0.04315185546875, 0.0200042724609375, 0.0276336669921875, -0.07568359375, -0.10205078125, 0.0220794677734375, -0.044097900390625, -0.00373077392578125, -0.027557373046875, -0.0250396728515625, -0.0174407958984375, -0.01654052734375, 0.00035953521728515625, -0.016143798828125, 0.0026149749755859375, -0.06298828125, -0.0347900390625, -0.058837890625, 0.0142364501953125, -0.018341064453125, 0.01316070556640625, 0.0018634796142578125, 0.11370849609375, 0.0289154052734375, -0.04974365234375, 0.0103607177734375, 0.0196533203125, -0.0305328369140625, -0.0038166046142578125, -0.0077056884765625, 0.00689697265625, -0.005245208740234375, 0.001407623291015625, 0.0540771484375, 0.025909423828125, -0.031158447265625, 0.01548004150390625, -0.014556884765625, 0.0380859375, -0.01154327392578125, 0.0147247314453125, 0.034881591796875, 0.05523681640625, -0.01158905029296875, -0.005767822265625, -0.016754150390625, -0.017578125, -0.054931640625, -0.00954437255859375, 0.043609619140625, 0.010162353515625, -0.0164642333984375, -0.035369873046875, -0.00039649009704589844, -0.0024280548095703125, 0.0245513916015625, -0.0364990234375, 0.006916046142578125, 0.005870819091796875, 0.0166778564453125, -0.01409149169921875, -0.01251983642578125, -0.01488494873046875, 0.0093231201171875, -0.00899505615234375, 0.003826141357421875, -0.00991058349609375, 0.0303802490234375, -0.01525115966796875, -0.050811767578125, 0.035797119140625, -0.0252532958984375, -0.0149078369140625, -0.04083251953125, -0.0281829833984375, -0.0223846435546875, 0.058197021484375, -0.014190673828125, -0.006946563720703125, -0.04345703125, -0.00653076171875, -0.0035495758056640625, -0.045196533203125, -0.0236663818359375, 0.002033233642578125, -0.049407958984375, -0.016204833984375, -0.0158233642578125, -0.043670654296875, -0.0047454833984375, -0.03289794921875, -0.0341796875, -0.016937255859375, 0.051177978515625, -0.014801025390625, 0.0215911865234375, -0.0006785392761230469, 0.017120361328125, -0.004405975341796875, -0.036376953125, -0.001712799072265625, -0.060638427734375, -0.0213165283203125, 0.01270294189453125, 0.038543701171875, 0.0144805908203125, -0.047210693359375, -0.00800323486328125, 0.04400634765625, 0.0288238525390625, 0.03717041015625, 0.011016845703125, -0.0056915283203125, -0.015289306640625, -0.0126800537109375, 0.0206756591796875, -0.033294677734375, -0.0099029541015625, -0.031097412109375, 0.01629638671875, -0.007610321044921875, -0.06500244140625, -0.0289764404296875, -0.051116943359375, 0.0066070556640625, -0.01273345947265625, -0.0012350082397460938, 0.004886627197265625, 0.027008056640625, -0.01363372802734375, 0.01328277587890625, -0.0239410400390625, -0.031829833984375, 0.0209197998046875, 0.019256591796875, -0.0213623046875, 0.0021228790283203125, 0.0797119140625, 0.023223876953125, -0.019622802734375, -0.061981201171875, 0.0244140625, 0.03167724609375, -0.0272369384765625, 0.06292724609375, 0.00746917724609375, -0.01558685302734375, 0.07763671875, -0.017425537109375, 0.00507354736328125, -0.007030487060546875, 0.0218353271484375, -0.019927978515625, -0.01300811767578125, 0.0159912109375, -0.0194549560546875, 0.030670166015625, 0.037628173828125, 0.0013141632080078125, -0.020965576171875, -0.0075225830078125, 0.055572509765625, 0.00946807861328125, -0.01314544677734375, -0.0458984375, -0.0143585205078125, -0.0222930908203125, 0.0557861328125, 0.0455322265625, 0.0300445556640625, -0.0020294189453125, 0.034820556640625, 0.07159423828125, -0.0184173583984375, 0.036376953125, 0.0703125, 0.00913238525390625, 0.01030731201171875, 0.04132080078125, -0.039764404296875, -0.0251617431640625, -0.007350921630859375, -0.0140228271484375, -0.0115814208984375, -0.0435791015625, -0.005672454833984375, -0.00818634033203125, 0.022674560546875, 0.0085906982421875, -0.003223419189453125, 0.0214691162109375, 0.0036525726318359375, 0.02325439453125, -0.01351165771484375, -0.034271240234375, -0.0116424560546875, -0.0171966552734375, -0.01163482666015625, -0.005504608154296875, -0.006763458251953125, 0.025360107421875, 0.0361328125, -0.019256591796875, 0.043487548828125, -0.023406982421875, 0.017822265625, 0.022369384765625, 0.03106689453125, 0.018402099609375, -0.019195556640625, -0.021148681640625, -0.0067901611328125, 0.0009341239929199219, -0.048095703125, -0.00949859619140625, 0.0028743743896484375, 0.03497314453125, 0.006378173828125, -0.0033397674560546875, 0.01959228515625, 0.0186309814453125, -0.01904296875, 0.05291748046875, -0.001300811767578125, -0.0281982421875, -0.051727294921875, -0.0238189697265625, 0.032257080078125, 0.00711822509765625, -0.005641937255859375, -0.013671875, -0.03167724609375, 0.01378631591796875, -0.019866943359375, 0.00684356689453125, -0.00922393798828125, -0.0011348724365234375, -0.0302734375, -0.051666259765625, -0.00685882568359375, -0.008941650390625, 0.0226287841796875, -0.017547607421875, -0.034942626953125, 0.003551483154296875, 0.0145416259765625, 0.08221435546875, -0.03472900390625, -0.074951171875, 0.01849365234375, -0.00390625, 0.06890869140625, 0.04046630859375, -0.08538818359375, 0.0040130615234375, -0.048858642578125, 0.00626373291015625, 0.0022029876708984375, -0.03570556640625, -0.04052734375, -0.0199127197265625, 0.036773681640625, 0.014312744140625, 0.008392333984375, -0.0301971435546875, -0.02166748046875, 0.00524139404296875, 0.0280303955078125, 0.054443359375, -0.006988525390625, 0.04351806640625, -0.0159912109375, 0.0287017822265625, 0.00873565673828125, 0.0210723876953125, 0.0026416778564453125, -0.0212860107421875, 0.0142364501953125, -0.058197021484375, -0.0169219970703125, 0.0176544189453125, -0.067138671875, -0.0118560791015625, 0.022186279296875, 0.002124786376953125, 0.01030731201171875, -0.0089569091796875, -0.00542449951171875, -0.011322021484375, -0.0218963623046875, 0.0011262893676757812, -0.00582122802734375, 0.0538330078125, 0.0252685546875, 0.006809234619140625, -0.0362548828125, -0.04107666015625, 0.0220794677734375, 0.0027675628662109375, 0.0159759521484375, -0.004302978515625, -0.01218414306640625, 0.051361083984375, 0.10174560546875, 0.0274658203125, 0.05712890625, 0.045684814453125, 0.021820068359375, 0.0305328369140625, 0.0149688720703125, 0.04150390625, -0.009246826171875, 0.062255859375, -0.00435638427734375, -0.0017671585083007812, 0.04254150390625, -0.03839111328125, -0.0357666015625, 0.01177978515625, 0.00946044921875, -0.02294921875, -0.00806427001953125, -0.0077972412109375, -0.0157318115234375, -0.00725555419921875, 0.0121612548828125, -0.01346588134765625, 0.01398468017578125, 0.027099609375, 0.01082611083984375, -0.0155792236328125, 0.03033447265625, 0.02294921875, 0.00823211669921875, 0.0020618438720703125, 0.04974365234375, 0.0081329345703125, -0.0732421875, 0.005542755126953125, 0.041839599609375, 0.00852203369140625, -0.059967041015625, -0.0167388916015625, 0.02099609375, -0.020721435546875, -0.09222412109375, 0.0194244384765625, 0.0038280487060546875, 0.00905609130859375, 0.03546142578125, 0.0021076202392578125, 0.017120361328125, 0.052703857421875, -0.0036220550537109375, 0.022430419921875, 0.0232086181640625, -0.025238037109375, -0.052978515625, -0.0248870849609375, 0.0087432861328125, 0.049468994140625, -0.039581298828125, 0.024383544921875, -0.01239776611328125, -0.00489044189453125, -0.01027679443359375, 0.005527496337890625, 0.0631103515625, -0.046295166015625, -0.00772857666015625, 0.0177459716796875, 0.056915283203125, -0.004512786865234375, -0.0147857666015625, 0.021209716796875, -0.06634521484375, -0.026397705078125, -0.003986358642578125, -0.0088653564453125, -0.030853271484375, -0.0213775634765625, -0.0655517578125, 0.0970458984375, 0.01324462890625, 0.0275421142578125, 0.0166778564453125, 0.03216552734375, -0.05120849609375, -0.0017309188842773438, -0.043487548828125, 0.061798095703125, 0.030517578125, 0.048126220703125, -0.060455322265625, -0.0158233642578125, 0.019500732421875, 0.0443115234375, 0.01080322265625, 0.00528717041015625, -0.01485443115234375, -0.00374603271484375, 0.0190277099609375, 0.044464111328125, 0.003078460693359375, 0.006381988525390625, -0.0236968994140625, 0.0247039794921875, -0.0019817352294921875, -0.048675537109375, 0.014190673828125, -0.001659393310546875, -0.047637939453125, 0.007720947265625, 0.032501220703125, 0.056060791015625, 0.0181884765625, -0.00897216796875, -0.06500244140625, 0.0230712890625, 0.05474853515625, -0.01078033447265625, 0.029327392578125, 0.04461669921875, 0.072509765625, -0.061004638671875, -0.0379638671875, -0.0198974609375, 0.0643310546875, 0.007106781005859375, 0.01500701904296875, 0.031829833984375, 0.01971435546875, 0.1090087890625, 0.0058441162109375, 0.00934600830078125, 0.03863525390625, -0.0029296875, 0.06591796875, 0.04443359375, 0.031768798828125, -0.02435302734375, 0.012664794921875, 0.040313720703125, 0.0687255859375, -0.046051025390625, -0.0341796875, 0.0168609619140625, -0.0019664764404296875, -0.001068115234375, 0.0143280029296875, 0.01558685302734375, -0.0004355907440185547, 0.03021240234375, -0.064208984375, -0.006610870361328125, -0.0158233642578125, 0.03167724609375, -0.025543212890625, -0.0206756591796875, 0.006160736083984375, -0.00815582275390625, -0.0595703125, 0.04443359375, 0.0285186767578125, 0.053314208984375, 0.0134735107421875, 0.031951904296875, -0.0032749176025390625, -0.0255279541015625, -0.0159454345703125, 0.0292816162109375, 0.0137786865234375, 0.0103912353515625, -0.01491546630859375, -0.00534820556640625, -0.024017333984375, 0.031707763671875, 0.027374267578125, 0.00020503997802734375, 0.0282440185546875, 0.04595947265625, -0.00858306884765625, -0.0034809112548828125, 0.0537109375, -0.00423431396484375, -0.0225830078125, -0.01235198974609375, -0.02825927734375, 0.0127716064453125, -0.0191802978515625, 0.0274810791015625, 0.0035648345947265625, 0.0290679931640625, -0.01094818115234375, -0.0086212158203125, -0.00611114501953125, -0.047637939453125, 0.0357666015625, -0.0200347900390625, 0.0684814453125, -0.005268096923828125, -0.0797119140625, -0.024993896484375, -0.035552978515625, -0.0246429443359375, 0.05377197265625, 0.052154541015625, 0.00016379356384277344, 0.004581451416015625, -0.0026264190673828125, 0.007106781005859375, -0.0022525787353515625, -0.040191650390625, 0.02105712890625, -0.01203155517578125, 0.0032558441162109375, 0.005252838134765625, -0.029998779296875, -0.00936126708984375, -0.005252838134765625, 0.01367950439453125, 0.0037250518798828125, 0.045867919921875, 0.00617218017578125, 0.0093536376953125, -0.016204833984375, 0.055938720703125, -0.065185546875, -0.03271484375, 0.0679931640625, -0.0243072509765625, -0.0130615234375, -0.005718231201171875, 0.030792236328125, 0.0160980224609375, 0.05010986328125, -0.053375244140625, -0.003997802734375, -0.0103302001953125, 0.0080413818359375, -0.03564453125, 0.00437164306640625, -0.01995849609375, -0.017181396484375, -0.0457763671875, -0.029083251953125, 0.03741455078125, 0.0318603515625, 0.0262298583984375, 0.00888824462890625, 0.0159912109375, -0.01483154296875, 0.011871337890625, 0.0167999267578125, 0.024566650390625, 0.04010009765625, -0.0037479400634765625, 0.04345703125, 0.027069091796875, -0.0160675048828125, 0.034515380859375, 0.0251617431640625, -0.0244903564453125, 0.00852203369140625, 0.0186920166015625, -0.01300048828125, 0.033660888671875, 0.041229248046875, -0.0232391357421875, 0.025390625, 0.01171875, -0.0157928466796875, 0.008392333984375, 0.0095367431640625, -0.0433349609375, -0.0297698974609375, 0.00321197509765625, 0.0006709098815917969, -0.0174102783203125, -0.0238189697265625, -0.06024169921875, 0.00023508071899414062, 0.045135498046875, 0.00350189208984375, -0.019866943359375, 0.00958251953125, -0.0276947021484375, 0.03265380859375, -0.01158905029296875, -0.033782958984375, 0.0009145736694335938, 0.026702880859375, -0.0260162353515625, 0.023651123046875, -0.035400390625, -0.0276031494140625, -0.006778717041015625, -0.0017566680908203125, 0.00788116455078125, -0.0190887451171875, -0.034027099609375, 0.031524658203125, 0.01505279541015625, 0.07110595703125, 0.0301666259765625, 0.0057220458984375, 0.02154541015625, 0.034423828125, -0.0584716796875, -0.08636474609375, 0.034698486328125, -0.03839111328125, 0.00058746337890625, 0.019775390625, 0.00652313232421875, 0.036712646484375, -0.011016845703125, -0.026153564453125, 0.0750732421875, -0.016448974609375, -0.0171051025390625, -0.032073974609375, 0.0272979736328125, -0.0072021484375, -0.030487060546875, -0.000058591365814208984, -0.043182373046875, 0.00470733642578125, 0.030120849609375, 0.01351165771484375, 0.0252685546875, 0.01085662841796875, 0.03955078125, -0.05242919921875, 0.0169525146484375, -0.0194244384765625, -0.01337432861328125, -0.0021114349365234375, -0.01064300537109375, 0.03265380859375, 0.039215087890625, -0.0261993408203125, -0.0174102783203125, 0.0143280029296875, 0.028228759765625, 0.018157958984375, -0.00733184814453125, -0.0654296875, -0.035400390625, 0.0238037109375, 0.0364990234375, 0.0234527587890625, 0.00461578369140625, -0.014862060546875, -0.024383544921875, -0.00457763671875, 0.002101898193359375, 0.024993896484375, -0.05755615234375, 0.0012226104736328125, 0.0272064208984375, -0.0293731689453125, 0.0239105224609375, -0.01445770263671875, -0.053009033203125, -0.001964569091796875, -0.058380126953125, -0.0197601318359375, -0.04534912109375, 0.0270538330078125, 0.012908935546875, -0.0191650390625, -0.0309906005859375, -0.0247802734375, 0.0014753341674804688, -0.021148681640625, -0.0274200439453125, 0.01087188720703125, 0.0221710205078125, -0.0177764892578125, -0.0080108642578125, 0.028961181640625, 0.01450347900390625, 0.0157470703125, -0.000606536865234375, -0.017852783203125, 0.020751953125, 0.01384735107421875, 0.002727508544921875, -0.0179443359375, 0.03955078125, 0.01213836669921875, 0.0638427734375, -0.004772186279296875, 0.045166015625, 0.00830078125, 0.0258331298828125, -0.001430511474609375, -0.007076263427734375, 0.0256195068359375, -0.054046630859375, -0.006744384765625, -0.0176239013671875, -0.0171661376953125, -0.01153564453125, 0.0019464492797851562, -0.004184722900390625, -0.04241943359375, 0.0087432861328125 ]
d4530a6a9339660e9d2eb9c2a82adfe153ae5c19
Wordpress Stackexchange Q: What are the advantages and disadvantages of Option Tree over the Customization API? I'm relatively new to WordPress theme development, and I had to create a theme with options available. I did a Google search to see what are the possibilities, and I read articles about such, and read about frameworks, and I came across Option Tree, which was recommended as a framework to develop with. What my question is, when I'm developing themes to sell, what are the advantages and disadvantages of Option Tree over the Customization API built into WordPress? A: Why one should consider other ... options Frameworks like "Option Tree" (there're also several others) shouldn't be used anymore. The "Theme Customization API" is what you should use now, as it also adds the possibility of live editing a Theme in the Theme Customizer and binding the Theme options to the "Theme Modification API". The "Settings API", which is the underlying API for Frameworks like "Option Tree", nowadays is meant to be used with plugins and WP core instead.
Q: What are the advantages and disadvantages of Option Tree over the Customization API? I'm relatively new to WordPress theme development, and I had to create a theme with options available. I did a Google search to see what are the possibilities, and I read articles about such, and read about frameworks, and I came across Option Tree, which was recommended as a framework to develop with. What my question is, when I'm developing themes to sell, what are the advantages and disadvantages of Option Tree over the Customization API built into WordPress? A: Why one should consider other ... options Frameworks like "Option Tree" (there're also several others) shouldn't be used anymore. The "Theme Customization API" is what you should use now, as it also adds the possibility of live editing a Theme in the Theme Customizer and binding the Theme options to the "Theme Modification API". The "Settings API", which is the underlying API for Frameworks like "Option Tree", nowadays is meant to be used with plugins and WP core instead. A: disadvantage using option tree: * *Your theme depend on other work as a core *You need to always keep an eye for the plugin update ( which is really not good if you're going to use it in premium theme ) *If you're going to integrate it in your theme, then when there is update from the plugin you will need to do lot of things to update it in your theme. advantage : * *Save you the time to create your own theme options If you have lots of time I suggest you to create your own theme options which will be better if you're gonna use it in a premium theme to sell, you'll have more control over the theme options. And if you're not going to write your own script, I suggest you to use Options Framework Theme which is specially build to include in theme rather than using plugin. The author is keep updating the script itself so its safe to use it, I also use it in my premium theme.
wordpress
{ "language": "en", "length": 349, "provenance": "stackexchange_00019.jsonl.gz:427367", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78047" }
[ 0.0164642333984375, -0.057281494140625, 0.023193359375, -0.051177978515625, -0.03125, 0.01416778564453125, 0.0010538101196289062, 0.037139892578125, 0.018157958984375, 0.0196075439453125, 0.0028171539306640625, -0.005641937255859375, -0.021392822265625, -0.034912109375, -0.032562255859375, -0.030975341796875, 0.00742340087890625, 0.030120849609375, 0.0021991729736328125, -0.0211029052734375, -0.004940032958984375, -0.0270233154296875, -0.01055145263671875, 0.08087158203125, 0.0689697265625, -0.081787109375, 0.004718780517578125, -0.0012578964233398438, 0.026092529296875, -0.0065460205078125, 0.0201263427734375, 0.0014696121215820312, 0.01548004150390625, 0.00470733642578125, 0.032440185546875, 0.024169921875, 0.01154327392578125, 0.0012826919555664062, 0.03765869140625, 0.0012693405151367188, 0.00519561767578125, 0.00656890869140625, -0.0063934326171875, 0.0007405281066894531, -0.03302001953125, -0.03045654296875, 0.0009093284606933594, -0.0198974609375, -0.031646728515625, -0.0264739990234375, 0.0285186767578125, -0.060943603515625, 0.05328369140625, -0.0181427001953125, -0.02581787109375, -0.03369140625, 0.0105133056640625, 0.0340576171875, 0.020965576171875, -0.0299224853515625, -0.0367431640625, 0.03497314453125, 0.017059326171875, 0.0290374755859375, 0.0528564453125, -0.00005322694778442383, -0.0039005279541015625, 0.039703369140625, -0.0234375, 0.034027099609375, 0.0218505859375, -0.03662109375, 0.0113677978515625, -0.02197265625, -0.01605224609375, -0.00989532470703125, 0.00708770751953125, -0.038970947265625, 0.0350341796875, -0.00563812255859375, 0.00612640380859375, 0.01305389404296875, -0.026519775390625, -0.07861328125, 0.05914306640625, -0.03460693359375, -0.0004782676696777344, 0.0008854866027832031, -0.01378631591796875, -0.016357421875, -0.0284881591796875, -0.046295166015625, -0.01947021484375, 0.0219268798828125, -0.007080078125, 0.0009107589721679688, -0.008056640625, -0.069091796875, 0.011932373046875, 0.044891357421875, 0.044586181640625, -0.070068359375, 0.11700439453125, -0.00986480712890625, -0.0085906982421875, 0.04412841796875, 0.0174713134765625, -0.01071929931640625, 0.0008897781372070312, 0.011474609375, -0.0011777877807617188, -0.015899658203125, 0.061126708984375, -0.0157318115234375, -0.0027828216552734375, -0.038055419921875, 0.029327392578125, 0.0290985107421875, 0.011322021484375, -0.0215301513671875, -0.007633209228515625, -0.0144500732421875, 0.014862060546875, 0.019989013671875, 0.005977630615234375, -0.0061187744140625, -0.0478515625, 0.0164031982421875, 0.00321197509765625, 0.05694580078125, -0.0308837890625, -0.0309295654296875, 0.04681396484375, 0.039459228515625, 0.0193328857421875, -0.03857421875, 0.0007410049438476562, 0.0184783935546875, -0.007038116455078125, 0.01187896728515625, 0.0211944580078125, -0.0478515625, -0.024932861328125, 0.023529052734375, 0.00569915771484375, -0.00247955322265625, 0.0167083740234375, 0.0205535888671875, 0.0004367828369140625, -0.027374267578125, 0.0213470458984375, 0.00615692138671875, 0.01139068603515625, 0.00795745849609375, -0.00829315185546875, -0.028472900390625, 0.004913330078125, -0.03125, 0.0205535888671875, -0.041259765625, -0.032562255859375, -0.02239990234375, -0.01271820068359375, -0.01067352294921875, -0.031951904296875, 0.036865234375, 0.0338134765625, 0.007465362548828125, 0.016082763671875, 0.0015592575073242188, 0.005275726318359375, 0.0007414817810058594, 0.0090179443359375, 0.0036525726318359375, 0.0046844482421875, 0.0001093149185180664, -0.038543701171875, 0.057891845703125, 0.05426025390625, -0.05780029296875, -0.01552581787109375, -0.032135009765625, 0.10150146484375, 0.002834320068359375, -0.066162109375, 0.06396484375, 0.01120758056640625, 0.1094970703125, -0.0148468017578125, 0.034881591796875, 0.037841796875, 0.0165252685546875, -0.0276641845703125, 0.05450439453125, -0.00807952880859375, -0.037078857421875, -0.0013380050659179688, 0.004047393798828125, -0.0182342529296875, -0.018463134765625, -0.05548095703125, 0.016021728515625, -0.014068603515625, -0.003086090087890625, -0.0113677978515625, -0.0137786865234375, -0.01274871826171875, 0.03863525390625, -0.024444580078125, 0.0031261444091796875, 0.030548095703125, -0.01419830322265625, -0.0562744140625, 0.060943603515625, 0.00908660888671875, 0.0103912353515625, -0.01544189453125, 0.058380126953125, 0.004791259765625, 0.024505615234375, 0.016876220703125, -0.025848388671875, 0.018524169921875, 0.02398681640625, 0.01397705078125, 0.02069091796875, -0.0279388427734375, -0.0070648193359375, 0.02825927734375, 0.008819580078125, 0.04095458984375, 0.031646728515625, 0.00787353515625, 0.01421356201171875, -0.021759033203125, -0.017974853515625, -0.03118896484375, -0.0758056640625, 0.011627197265625, 0.0614013671875, 0.0175323486328125, 0.04083251953125, -0.01543426513671875, -0.0015411376953125, 0.04779052734375, -0.006275177001953125, 0.0186614990234375, -0.0263671875, 0.01071929931640625, 0.0203704833984375, 0.0114593505859375, -0.0133819580078125, 0.017181396484375, -0.0211639404296875, 0.0227508544921875, 0.0115203857421875, -0.037994384765625, 0.007724761962890625, 0.01425933837890625, -0.00453948974609375, -0.0169525146484375, -0.01393890380859375, 0.0192718505859375, -0.0260772705078125, 0.05133056640625, -0.0171661376953125, 0.037567138671875, 0.0206756591796875, -0.037872314453125, 0.0081787109375, 0.0217132568359375, 0.01497650146484375, 0.003742218017578125, 0.01519012451171875, 0.0225677490234375, -0.0178680419921875, -0.0165557861328125, -0.0159912109375, 0.00498199462890625, 0.005458831787109375, -0.0225677490234375, 0.03521728515625, -0.0556640625, -0.026275634765625, -0.00632476806640625, -0.034210205078125, -0.02655029296875, -0.00046706199645996094, 0.0191192626953125, 0.005035400390625, 0.039886474609375, -0.00530242919921875, -0.05645751953125, 0.03887939453125, -0.005645751953125, -0.040069580078125, -0.01910400390625, -0.0182647705078125, 0.0219879150390625, -0.029327392578125, 0.0240631103515625, 0.055694580078125, -0.0009179115295410156, -0.0011377334594726562, 0.015594482421875, -0.00762939453125, 0.03155517578125, -0.0005474090576171875, 0.0035953521728515625, -0.0011081695556640625, -0.011016845703125, 0.0298919677734375, 0.0390625, 0.0121917724609375, 0.057708740234375, -0.0008206367492675781, 0.0169830322265625, 0.0458984375, -0.008697509765625, -0.04534912109375, 0.016021728515625, -0.07403564453125, 0.003932952880859375, -0.0191192626953125, -0.037261962890625, -0.0148468017578125, -0.0021533966064453125, -0.004528045654296875, 0.0005612373352050781, -0.0526123046875, -0.0131988525390625, -0.07647705078125, -0.0714111328125, -0.03729248046875, 0.01971435546875, 0.006427764892578125, 0.0013303756713867188, 0.0860595703125, 0.01132965087890625, -0.050506591796875, -0.0012140274047851562, -0.01171875, -0.02490234375, -0.0008730888366699219, 0.0509033203125, -0.0418701171875, 0.0185394287109375, 0.01319122314453125, 0.0328369140625, 0.0289154052734375, -0.044830322265625, -0.0323486328125, -0.027435302734375, 0.0322265625, -0.0438232421875, 0.0125579833984375, 0.05084228515625, 0.0160675048828125, -0.01300048828125, -0.039947509765625, -0.04644775390625, 0.0027637481689453125, -0.04510498046875, 0.024261474609375, 0.0293121337890625, 0.0065765380859375, 0.00377655029296875, 0.004619598388671875, 0.02532958984375, -0.000047266483306884766, -0.0196533203125, -0.016357421875, 0.0936279296875, 0.002063751220703125, 0.02435302734375, -0.053436279296875, 0.004909515380859375, -0.036468505859375, -0.003520965576171875, 0.0031070709228515625, -0.032562255859375, -0.0109405517578125, -0.0227203369140625, -0.00080108642578125, -0.0215911865234375, 0.03460693359375, -0.038421630859375, -0.0255126953125, -0.01239013671875, 0.014007568359375, -0.0007567405700683594, 0.03131103515625, 0.0161285400390625, -0.01013946533203125, 0.01214599609375, -0.004619598388671875, -0.0272979736328125, 0.0205230712890625, -0.05908203125, -0.006275177001953125, -0.05438232421875, 0.0108489990234375, -0.0146636962890625, -0.00981903076171875, -0.01190185546875, 0.026641845703125, -0.0123291015625, -0.040069580078125, 0.024688720703125, -0.0114593505859375, 0.00018489360809326172, -0.00933074951171875, -0.004863739013671875, -0.030181884765625, 0.00536346435546875, -0.0140228271484375, -0.040618896484375, -0.021759033203125, 0.043792724609375, 0.009246826171875, -0.01279449462890625, -0.039764404296875, -0.01271820068359375, 0.038848876953125, -0.0306243896484375, 0.047637939453125, -0.03228759765625, 0.029754638671875, 0.0020923614501953125, -0.0260162353515625, -0.019439697265625, -0.0262298583984375, 0.00768280029296875, -0.013092041015625, -0.0474853515625, 0.0020122528076171875, -0.00829315185546875, 0.0283660888671875, 0.00405120849609375, -0.038055419921875, -0.0254669189453125, -0.01654052734375, -0.03997802734375, -0.023162841796875, -0.030029296875, -0.0058746337890625, -0.0061187744140625, -0.0185546875, 0.048553466796875, -0.03729248046875, 0.01302337646484375, 0.0050811767578125, 0.12646484375, 0.018890380859375, -0.01177215576171875, -0.00011092424392700195, -0.02691650390625, 0.0216064453125, -0.020782470703125, 0.0169525146484375, -0.00009071826934814453, -0.0192718505859375, 0.05072021484375, -0.0117340087890625, 0.0086669921875, 0.01357269287109375, -0.0012655258178710938, 0.00490570068359375, -0.02166748046875, 0.00876617431640625, 0.00844573974609375, -0.0145111083984375, 0.00022077560424804688, -0.006893157958984375, -0.0016698837280273438, -0.0360107421875, 0.0186614990234375, 0.005832672119140625, 0.028228759765625, -0.02362060546875, -0.0227813720703125, 0.0102386474609375, 0.049163818359375, 0.0229644775390625, 0.01491546630859375, 0.00861358642578125, -0.00878143310546875, -0.024749755859375, 0.0249176025390625, 0.0341796875, 0.03924560546875, -0.030242919921875, 0.041778564453125, 0.0245361328125, -0.0009369850158691406, -0.004650115966796875, -0.0094451904296875, 0.03533935546875, -0.0008320808410644531, -0.0465087890625, 0.0038928985595703125, -0.021575927734375, 0.01548004150390625, 0.0014801025390625, -0.01320648193359375, 0.07177734375, 0.001987457275390625, -0.0222625732421875, -0.024932861328125, -0.09552001953125, -0.02606201171875, -0.0755615234375, 0.0068206787109375, -0.007076263427734375, -0.0143280029296875, 0.027435302734375, -0.0128936767578125, -0.011016845703125, 0.005039215087890625, -0.0013103485107421875, -0.0128173828125, -0.02630615234375, 0.013214111328125, 0.01309967041015625, 0.01226043701171875, 0.035400390625, -0.026580810546875, 0.054931640625, -0.03997802734375, -0.01424407958984375, 0.0033512115478515625, 0.02581787109375, -0.041595458984375, -0.03271484375, 0.03704833984375, -0.002155303955078125, -0.0159759521484375, 0.01129913330078125, 0.0185394287109375, -0.01061248779296875, -0.0009412765502929688, 0.0097198486328125, 0.0111541748046875, 0.0227813720703125, 0.0052642822265625, -0.004901885986328125, 0.0026874542236328125, 0.00023436546325683594, 0.041473388671875, -0.047027587890625, 0.0027370452880859375, 0.0240936279296875, -0.052703857421875, 0.0022754669189453125, -0.00252532958984375, -0.044342041015625, -0.06103515625, 0.01001739501953125, -0.01513671875, 0.0205841064453125, -0.0020351409912109375, 0.0292816162109375, -0.0218048095703125, -0.02276611328125, -0.032684326171875, 0.00954437255859375, 0.049224853515625, 0.0161285400390625, -0.0638427734375, 0.0255889892578125, -0.052642822265625, -0.0031986236572265625, -0.09759521484375, -0.09423828125, -0.0802001953125, -0.00433349609375, -0.0051116943359375, 0.0057220458984375, -0.01434326171875, 0.01322174072265625, -0.0164642333984375, 0.04119873046875, -0.00461578369140625, 0.04266357421875, -0.0116119384765625, -0.0006537437438964844, 0.017852783203125, 0.009246826171875, 0.002254486083984375, -0.025726318359375, -0.03399658203125, -0.005352020263671875, 0.0014505386352539062, -0.067626953125, -0.024749755859375, -0.0305633544921875, 0.005748748779296875, 0.052978515625, 0.0308685302734375, -0.005641937255859375, 0.05340576171875, -0.0305023193359375, 0.016510009765625, -0.0171966552734375, 0.0120391845703125, -0.058349609375, 0.005634307861328125, 0.0625, -0.0005035400390625, 0.011993408203125, -0.026031494140625, -0.022674560546875, -0.00433349609375, 0.02093505859375, 0.01059722900390625, 0.01197052001953125, -0.0281524658203125, 0.047332763671875, 0.0296478271484375, -0.01849365234375, 0.0187835693359375, 0.00719451904296875, 0.0006756782531738281, -0.0020275115966796875, 0.0259246826171875, -0.08587646484375, -0.022308349609375, 0.039947509765625, 0.04412841796875, -0.02496337890625, 0.05108642578125, -0.0258331298828125, 0.01016998291015625, 0.07208251953125, 0.07415771484375, -0.08941650390625, 0.0168304443359375, 0.019317626953125, -0.006412506103515625, 0.00658416748046875, -0.0027828216552734375, 0.0029315948486328125, -0.01306915283203125, 0.010986328125, -0.019287109375, -0.025909423828125, -0.00791168212890625, -0.0221710205078125, -0.0167694091796875, -0.0082550048828125, 0.0028095245361328125, 0.0163116455078125, -0.0219573974609375, 0.06512451171875, -0.0019388198852539062, 0.061431884765625, -0.003925323486328125, -0.01214599609375, 0.01305389404296875, -0.03424072265625, -0.0701904296875, -0.0228271484375, -0.053070068359375, -0.0082550048828125, 0.0108489990234375, -0.02490234375, 0.00039124488830566406, 0.03961181640625, -0.046630859375, 0.032623291015625, 0.0033969879150390625, 0.0002770423889160156, 0.024200439453125, 0.01727294921875, 0.023284912109375, 0.01020050048828125, -0.01007080078125, 0.001819610595703125, -0.0299072265625, 0.0017538070678710938, -0.007221221923828125, 0.008453369140625, 0.10284423828125, -0.027587890625, -0.019134521484375, 0.051361083984375, -0.031982421875, -0.043609619140625, 0.01153564453125, 0.00936126708984375, -0.057525634765625, -0.061279296875, 0.017974853515625, -0.050872802734375, -0.0008192062377929688, 0.0248260498046875, -0.01342010498046875, 0.1053466796875, -0.030731201171875, -0.0119171142578125, 0.0223236083984375, 0.057098388671875, -0.0194854736328125, 0.03802490234375, -0.0036563873291015625, 0.0224151611328125, -0.005855560302734375, -0.036285400390625, 0.0223236083984375, 0.04229736328125, -0.0322265625, -0.0340576171875, 0.038818359375, 0.0113677978515625, -0.0168914794921875, -0.01496124267578125, -0.008270263671875, -0.0023250579833984375, -0.02117919921875, 0.045196533203125, 0.01181793212890625, -0.003688812255859375, 0.00685882568359375, -0.011932373046875, 0.01399993896484375, -0.005401611328125, -0.004852294921875, 0.027496337890625, 0.01091766357421875, 0.01244354248046875, -0.01947021484375, 0.060272216796875, -0.0225372314453125, -0.018768310546875, 0.01314544677734375, -0.00548553466796875, -0.01336669921875, 0.0269012451171875, 0.01207733154296875, 0.007701873779296875, 0.00021886825561523438, -0.0191650390625, 0.0305633544921875, 0.00212860107421875, 0.047332763671875, -0.025970458984375, 0.01042938232421875, -0.0153045654296875, 0.01287078857421875, 0.0260772705078125, 0.068359375, -0.07000732421875, -0.004119873046875, -0.0123748779296875, 0.0174560546875, -0.03118896484375, -0.0016870498657226562, 0.0207672119140625, 0.0036029815673828125, 0.000667572021484375, -0.04376220703125, -0.0017795562744140625, 0.0283355712890625, 0.01702880859375, 0.010162353515625, 0.048095703125, 0.01751708984375, 0.055328369140625, -0.04754638671875, 0.0028839111328125, 0.029876708984375, 0.0187835693359375, 0.0026111602783203125, 0.0220947265625, -0.051910400390625, -0.0110015869140625, 0.028289794921875, -0.04486083984375, 0.005146026611328125, 0.01215362548828125, -0.005603790283203125, 0.024627685546875, -0.0489501953125, -0.005290985107421875, -0.00928497314453125, 0.051483154296875, 0.031829833984375, -0.0130157470703125, -0.007904052734375, -0.04150390625, 0.01922607421875, 0.016998291015625, 0.018402099609375, 0.0239105224609375, 0.034149169921875, 0.030059814453125, 0.01050567626953125, 0.008026123046875, 0.044921875, -0.005771636962890625, -0.00006663799285888672, -0.050537109375, 0.004688262939453125, 0.00704193115234375, -0.0004858970642089844, -0.0018033981323242188, 0.0028476715087890625, 0.0289306640625, 0.004199981689453125, 0.0272979736328125, 0.0004088878631591797, -0.013916015625, -0.0008182525634765625, 0.0018339157104492188, 0.05914306640625, 0.042388916015625, -0.0291595458984375, -0.017120361328125, 0.027191162109375, -0.0264739990234375, 0.0013532638549804688, 0.035247802734375, -0.0190277099609375, 0.0285797119140625, -0.046600341796875, -0.006092071533203125, -0.00921630859375, 0.00698089599609375, -0.0256805419921875, 0.0155181884765625, 0.02996826171875, -0.015960693359375, -0.047119140625, -0.015716552734375, -0.045501708984375, 0.0516357421875, -0.00521087646484375, 0.10736083984375, -0.033477783203125, 0.035614013671875, 0.01922607421875, -0.0430908203125, 0.009796142578125, -0.005603790283203125, 0.00868988037109375, -0.0237579345703125, -0.00878143310546875, -0.000865936279296875, -0.01885986328125, -0.0269927978515625, 0.0419921875, -0.05133056640625, -0.0230255126953125, -0.0181732177734375, 0.032379150390625, -0.0033550262451171875, -0.018585205078125, -0.0271759033203125, -0.051422119140625, -0.008087158203125, 0.0206146240234375, -0.0173797607421875, -0.0015115737915039062, 0.006988525390625, -0.02008056640625, -0.006687164306640625, 0.03485107421875, -0.016387939453125, 0.0797119140625, -0.029815673828125, 0.01351165771484375, -0.0819091796875, 0.00794219970703125, 0.04376220703125, -0.0184783935546875, 0.0122833251953125, 0.01271820068359375, 0.01407623291015625, 0.0276336669921875, -0.0229949951171875, 0.028564453125, 0.06390380859375, 0.061981201171875, 0.016693115234375, 0.014862060546875, 0.029815673828125, -0.0178985595703125, 0.0008993148803710938, 0.00968170166015625, -0.001964569091796875, -0.040313720703125, 0.00971221923828125, 0.01444244384765625, -0.0267791748046875, 0.0222015380859375, -0.0064849853515625, -0.00445556640625, 0.01259613037109375, 0.0168914794921875, -0.046356201171875, 0.04913330078125, -0.007419586181640625, -0.027252197265625, -0.0111083984375, 0.00553131103515625, -0.0150146484375, -0.01235198974609375, -0.04376220703125, -0.033355712890625, -0.0401611328125, 0.0350341796875, -0.0110626220703125, 0.037139892578125, 0.012237548828125, -0.0227203369140625, -0.0062103271484375, 0.07330322265625, 0.03466796875, 0.10296630859375, -0.0073089599609375, -0.016326904296875, 0.019622802734375, 0.004528045654296875, -0.0467529296875, -0.00385284423828125, 0.03399658203125, 0.0045013427734375, -0.02996826171875, -0.032470703125, -0.00897216796875, -0.00670623779296875, -0.063720703125, -0.101806640625, 0.030670166015625, -0.02471923828125, -0.039459228515625, 0.0223388671875, -0.006488800048828125, -0.0164947509765625, 0.0545654296875, 0.0252838134765625, -0.05712890625, -0.014678955078125, -0.00942230224609375, -0.02606201171875, 0.0677490234375, 0.002346038818359375, 0.0072479248046875, -0.02081298828125, -0.0063018798828125, -0.0177459716796875, -0.0302886962890625, 0.0036716461181640625, 0.0026683807373046875, 0.0207977294921875, 0.038818359375, -0.032135009765625, 0.0146636962890625, -0.025726318359375, 0.027069091796875, -0.0022068023681640625, -0.01380157470703125, -0.0269012451171875, -0.018096923828125, 0.039703369140625, 0.061767578125, 0.01143646240234375, -0.0281219482421875, -0.057708740234375, -0.054718017578125, 0.00589752197265625, -0.0211944580078125, 0.0192718505859375, -0.08172607421875, 0.0150909423828125, 0.0299835205078125, -0.01544189453125, 0.032684326171875, -0.0176544189453125, -0.006683349609375, 0.023651123046875, 0.043548583984375, -0.005550384521484375, -0.02655029296875, 0.0009870529174804688, 0.0287017822265625, -0.0161895751953125, 0.01386260986328125, -0.017852783203125, 0.02117919921875, 0.0153961181640625, -0.0125732421875, -0.0280609130859375, 0.01058197021484375, -0.03668212890625, 0.03460693359375, -0.0265655517578125, 0.0771484375, -0.04864501953125, -0.00957489013671875, 0.0108795166015625, 0.0179290771484375, -0.0100555419921875, 0.00737762451171875, -0.04132080078125, 0.0845947265625, -0.022369384765625, 0.064453125, -0.0208587646484375, 0.047637939453125, -0.02215576171875, 0.040313720703125, -0.031219482421875, 0.012237548828125, -0.0089263916015625, -0.01238250732421875, 0.01474761962890625, -0.033843994140625, 0.011505126953125, -0.031982421875, 0.018341064453125, 0.055633544921875, -0.03424072265625, 0.039642333984375 ]
bcdb6611c0c89c83a4c8e8628b907433c8ace5ae
Wordpress Stackexchange Q: Add container to nav_menu sub menu Is there a way I can wrap a div around wp_nav_menu's ul.sub-menu So for example the markup would go from <ul class="menu"> <li><a href="/">Item 1</a></li> <li> <a href="/">Item 2</a> <ul class="sub-menu"> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> </li> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> to this <ul class="menu"> <li><a href="/">Item 1</a></li> <li> <a href="/">Item 2</a> <div class="sub-menu-wrap"> <ul class="sub-menu"> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> </div> </li> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> Where "sub-menu-wrap" is the custom div. Is this possible? A: Use a custom walker, extend the methods start_lvl() and end_lvl. Sample code, not tested: class WPSE_78121_Sublevel_Walker extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div>\n"; } } Usage in your theme: wp_nav_menu( array ( 'theme_location' => 'your-theme-location-EDIT-THIS', 'walker' => new WPSE_78121_Sublevel_Walker ) );
Q: Add container to nav_menu sub menu Is there a way I can wrap a div around wp_nav_menu's ul.sub-menu So for example the markup would go from <ul class="menu"> <li><a href="/">Item 1</a></li> <li> <a href="/">Item 2</a> <ul class="sub-menu"> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> </li> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> to this <ul class="menu"> <li><a href="/">Item 1</a></li> <li> <a href="/">Item 2</a> <div class="sub-menu-wrap"> <ul class="sub-menu"> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> </div> </li> <li><a href="/">Item 1</a></li> <li><a href="/">Item 1</a></li> </ul> Where "sub-menu-wrap" is the custom div. Is this possible? A: Use a custom walker, extend the methods start_lvl() and end_lvl. Sample code, not tested: class WPSE_78121_Sublevel_Walker extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div>\n"; } } Usage in your theme: wp_nav_menu( array ( 'theme_location' => 'your-theme-location-EDIT-THIS', 'walker' => new WPSE_78121_Sublevel_Walker ) ); A: Proposed solution does not play nice with WordPress - WordPress default code and filters are ignored. I am giving here much more elegant solution, which keeps all filters like 'nav_menu_submenu_css_class' and other WP default code functioning: <?php /** * Wraps sub-menus in div element */ class My_Menu_Walker extends Walker_Nav_Menu { public function start_lvl( &$output, $depth = 0, $args = null ) { $output .= '<div class="wrapper">'; parent::start_lvl($output, $depth, $args); } public function end_lvl( &$output, $depth = 0, $args = null ) { parent::end_lvl($output, $depth, $args); $output .= '</div>'; } }
wordpress
{ "language": "en", "length": 261, "provenance": "stackexchange_00019.jsonl.gz:427388", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78121" }
[ 0.050537109375, -0.0131072998046875, 0.01074981689453125, -0.0189971923828125, 0.01342010498046875, -0.035247802734375, 0.049835205078125, -0.0203094482421875, 0.01288604736328125, 0.005313873291015625, -0.057037353515625, -0.010894775390625, -0.02099609375, -0.024871826171875, 0.0071868896484375, -0.056304931640625, 0.033966064453125, 0.019561767578125, 0.047393798828125, -0.0035877227783203125, -0.00185394287109375, 0.0195159912109375, 0.01305389404296875, 0.069580078125, 0.031219482421875, -0.0462646484375, 0.0760498046875, -0.015838623046875, 0.007160186767578125, -0.0142364501953125, 0.0248565673828125, -0.01776123046875, 0.0247802734375, -0.00270843505859375, 0.0101470947265625, -0.014007568359375, -0.01207733154296875, -0.00566864013671875, 0.0008797645568847656, -0.007537841796875, 0.01117706298828125, -0.00811767578125, 0.005863189697265625, 0.003116607666015625, -0.01319122314453125, -0.0221405029296875, 0.0138092041015625, -0.0196075439453125, -0.004047393798828125, -0.0672607421875, 0.0206298828125, 0.023529052734375, 0.038116455078125, -0.023193359375, -0.00844573974609375, 0.03533935546875, -0.005626678466796875, -0.073486328125, 0.00824737548828125, 0.036346435546875, 0.0301971435546875, -0.0187225341796875, 0.0206756591796875, -0.004131317138671875, 0.0020236968994140625, 0.0125885009765625, 0.039581298828125, -0.001987457275390625, -0.03033447265625, 0.0139312744140625, -0.002498626708984375, -0.0328369140625, -0.0213775634765625, 0.0034465789794921875, -0.0269622802734375, -0.04443359375, 0.04559326171875, -0.037811279296875, 0.0033855438232421875, 0.025543212890625, 0.0020732879638671875, 0.0309906005859375, -0.019378662109375, -0.0173492431640625, 0.005962371826171875, 0.00011521577835083008, -0.0264129638671875, -0.0239410400390625, 0.007274627685546875, 0.00437164306640625, -0.011199951171875, 0.0018215179443359375, 0.039306640625, 0.01064300537109375, -0.042022705078125, -0.01079559326171875, -0.0091094970703125, 0.042572021484375, -0.005069732666015625, 0.057373046875, 0.002017974853515625, -0.0389404296875, 0.08319091796875, -0.0767822265625, 0.0229339599609375, 0.031646728515625, 0.00917816162109375, 0.036041259765625, 0.0711669921875, 0.0005054473876953125, 0.0161285400390625, 0.0933837890625, -0.01259613037109375, -0.0440673828125, -0.001567840576171875, 0.016326904296875, -0.03369140625, 0.02978515625, 0.0176544189453125, -0.002910614013671875, -0.0110015869140625, 0.019195556640625, -0.0155029296875, 0.0088348388671875, 0.0223388671875, 0.019927978515625, 0.0146942138671875, -0.0308074951171875, -0.0036106109619140625, -0.021331787109375, -0.033355712890625, 0.03125, 0.037322998046875, 0.04083251953125, 0.009002685546875, 0.00017201900482177734, 0.0413818359375, 0.0012178421020507812, -0.01088714599609375, -0.005390167236328125, 0.0253143310546875, 0.016510009765625, -0.0015153884887695312, -0.0278167724609375, -0.0261993408203125, 0.00835418701171875, 0.0103607177734375, 0.027862548828125, -0.0018281936645507812, -0.09246826171875, 0.065185546875, -0.0906982421875, 0.054656982421875, -0.02410888671875, -0.0528564453125, -0.035430908203125, 0.0024433135986328125, -0.016998291015625, -0.041412353515625, -0.041259765625, -0.09014892578125, 0.00597381591796875, 0.0845947265625, -0.0875244140625, -0.035064697265625, -0.01134490966796875, -0.032379150390625, -0.0008211135864257812, 0.017913818359375, 0.0714111328125, 0.0240631103515625, -0.0433349609375, -0.0406494140625, 0.018524169921875, -0.013702392578125, 0.0150299072265625, 0.00882720947265625, 0.002277374267578125, 0.018829345703125, 0.01425933837890625, -0.01629638671875, -0.0379638671875, 0.0537109375, -0.0217437744140625, -0.035064697265625, 0.00206756591796875, -0.0006122589111328125, 0.04327392578125, 0.0224151611328125, 0.0163421630859375, 0.01236724853515625, -0.0092010498046875, -0.07269287109375, -0.009063720703125, -0.0190887451171875, 0.01004791259765625, 0.0098876953125, 0.004306793212890625, -0.0163726806640625, 0.024993896484375, -0.0447998046875, -0.0130767822265625, -0.001007080078125, 0.0046539306640625, -0.020355224609375, -0.004802703857421875, -0.01617431640625, 0.0310821533203125, 0.000263214111328125, 0.0070648193359375, -0.0020904541015625, -0.006465911865234375, 0.03729248046875, -0.11639404296875, -0.03826904296875, 0.0224609375, 0.0220184326171875, 0.024139404296875, -0.006282806396484375, 0.0019464492797851562, 0.03564453125, -0.03570556640625, 0.00547027587890625, 0.036895751953125, 0.039306640625, -0.0256195068359375, -0.023529052734375, -0.0223236083984375, 0.0006647109985351562, 0.0126190185546875, -0.0745849609375, 0.0440673828125, 0.08770751953125, 0.0248870849609375, -0.05914306640625, -0.005401611328125, -0.007781982421875, -0.0723876953125, -0.0404052734375, 0.0670166015625, 0.0343017578125, 0.0374755859375, -0.003231048583984375, 0.0028667449951171875, 0.054107666015625, -0.0183868408203125, 0.016082763671875, -0.0198211669921875, -0.03912353515625, 0.0039215087890625, 0.0474853515625, 0.0189208984375, 0.01006317138671875, 0.06915283203125, 0.007904052734375, -0.0013036727905273438, -0.0116119384765625, 0.01312255859375, -0.014068603515625, 0.005222320556640625, -0.00704193115234375, 0.0018033981323242188, 0.0027103424072265625, -0.01259613037109375, 0.007633209228515625, -0.0151824951171875, 0.032562255859375, 0.0282440185546875, 0.0015611648559570312, -0.04132080078125, 0.0204620361328125, 0.06072998046875, -0.004528045654296875, 0.0131072998046875, 0.0017185211181640625, -0.01047515869140625, 0.01210784912109375, -0.0017118453979492188, -0.0237274169921875, -0.011077880859375, 0.00821685791015625, 0.0771484375, 0.04229736328125, -0.021484375, -0.0044403076171875, -0.0677490234375, -0.00792694091796875, -0.01904296875, -0.00844573974609375, -0.006763458251953125, 0.021392822265625, -0.00548553466796875, -0.031219482421875, 0.0158843994140625, 0.034088134765625, -0.028167724609375, 0.06365966796875, 0.0174407958984375, 0.034637451171875, 0.001087188720703125, 0.0080108642578125, 0.042816162109375, -0.0450439453125, 0.021026611328125, -0.01091766357421875, -0.01088714599609375, -0.029327392578125, 0.01473236083984375, -0.0045013427734375, -0.034271240234375, -0.006633758544921875, 0.038726806640625, 0.006824493408203125, 0.020111083984375, 0.00879669189453125, -0.00881195068359375, 0.0005869865417480469, 0.0030269622802734375, -0.0003604888916015625, -0.0227813720703125, 0.033935546875, -0.06402587890625, 0.04217529296875, 0.0513916015625, -0.03643798828125, -0.058258056640625, 0.11102294921875, 0.003940582275390625, -0.06463623046875, -0.038726806640625, -0.0302581787109375, -0.07537841796875, -0.060546875, 0.01250457763671875, 0.00543212890625, 0.0247039794921875, 0.01202392578125, 0.0269622802734375, 0.0042266845703125, -0.0347900390625, 0.02178955078125, 0.033782958984375, 0.0014905929565429688, 0.0234375, 0.00931549072265625, -0.0111236572265625, 0.018707275390625, 0.0186614990234375, -0.0171966552734375, 0.0032711029052734375, 0.0009617805480957031, -0.0299072265625, -0.005901336669921875, -0.01032257080078125, 0.01904296875, -0.0128631591796875, 0.0076446533203125, 0.04510498046875, 0.0335693359375, -0.0225830078125, -0.01458740234375, -0.0279998779296875, -0.045562744140625, 0.0195770263671875, 0.0284576416015625, 0.0016908645629882812, -0.01230621337890625, 0.0007033348083496094, -0.01092529296875, 0.0098114013671875, 0.028961181640625, -0.03515625, 0.006771087646484375, -0.01534271240234375, -0.01513671875, -0.0132293701171875, 0.0396728515625, -0.0010137557983398438, -0.0007781982421875, 0.01910400390625, 0.0039520263671875, -0.017913818359375, 0.014862060546875, -0.0379638671875, -0.030517578125, 0.0631103515625, 0.01171112060546875, 0.0217437744140625, -0.02313232421875, -0.0367431640625, -0.00894927978515625, 0.08038330078125, -0.06353759765625, -0.027130126953125, -0.0169830322265625, 0.0183868408203125, 0.0161285400390625, -0.0330810546875, -0.0313720703125, -0.0198822021484375, -0.094970703125, 0.01444244384765625, -0.004791259765625, -0.02099609375, -0.01203155517578125, 0.058441162109375, -0.03656005859375, -0.045196533203125, 0.0142822265625, -0.00716400146484375, -0.036285400390625, 0.019439697265625, -0.062744140625, 0.00925445556640625, -0.0110015869140625, -0.0109710693359375, -0.066650390625, -0.033782958984375, -0.01629638671875, 0.080078125, 0.022369384765625, -0.0293731689453125, -0.02813720703125, 0.05291748046875, 0.0178680419921875, -0.0103912353515625, 0.0178985595703125, 0.0037384033203125, -0.0009579658508300781, 0.005992889404296875, 0.01519775390625, -0.0187835693359375, 0.01198577880859375, -0.01288604736328125, -0.04656982421875, 0.0153350830078125, -0.007781982421875, 0.034027099609375, 0.0286407470703125, -0.023345947265625, -0.058868408203125, -0.04736328125, 0.004810333251953125, 0.0134735107421875, -0.0122833251953125, 0.03778076171875, -0.040557861328125, -0.055633544921875, -0.0030422210693359375, 0.0238189697265625, -0.015838623046875, 0.007183074951171875, 0.01239013671875, 0.025482177734375, -0.035186767578125, 0.01508331298828125, 0.02685546875, 0.01357269287109375, -0.027862548828125, 0.03839111328125, 0.005893707275390625, -0.0034885406494140625, 0.01396942138671875, -0.0291900634765625, 0.0283660888671875, 0.00928497314453125, 0.0084075927734375, 0.0261077880859375, -0.0205078125, 0.0241241455078125, 0.041717529296875, -0.0555419921875, 0.014373779296875, -0.0273284912109375, 0.01300811767578125, -0.032470703125, 0.028778076171875, 0.00850677490234375, -0.0142669677734375, -0.049957275390625, -0.02203369140625, -0.004016876220703125, -0.0179595947265625, 0.06353759765625, 0.030059814453125, 0.0007634162902832031, 0.037322998046875, 0.05181884765625, -0.0181427001953125, 0.01004791259765625, -0.0106048583984375, 0.0229644775390625, 0.0294342041015625, -0.01873779296875, 0.0018405914306640625, -0.00421142578125, -0.00711822509765625, 0.04583740234375, 0.055908203125, -0.005458831787109375, 0.00435638427734375, 0.032012939453125, -0.00167083740234375, -0.038482666015625, 0.01206207275390625, 0.01953125, -0.01529693603515625, -0.0338134765625, 0.004573822021484375, -0.0008192062377929688, -0.040924072265625, -0.037872314453125, 0.018798828125, 0.02252197265625, -0.01412200927734375, -0.0117340087890625, 0.03564453125, 0.043975830078125, -0.01523590087890625, -0.0123443603515625, -0.03326416015625, -0.0211334228515625, 0.036529541015625, 0.029022216796875, -0.00691986083984375, -0.0389404296875, 0.03350830078125, 0.0404052734375, -0.0218658447265625, -0.0004324913024902344, 0.03143310546875, 0.0182037353515625, 0.050048828125, 0.000058531761169433594, -0.0284881591796875, -0.007488250732421875, -0.00428009033203125, 0.0101470947265625, -0.013153076171875, -0.055450439453125, -0.01227569580078125, 0.0280914306640625, 0.00946807861328125, -0.033111572265625, -0.0163421630859375, 0.0231475830078125, 0.0033321380615234375, 0.011566162109375, 0.01177978515625, -0.026824951171875, 0.01441192626953125, 0.017120361328125, -0.007747650146484375, 0.0153350830078125, 0.00908660888671875, -0.054229736328125, -0.0297088623046875, -0.01499176025390625, -0.0169219970703125, 0.06427001953125, -0.031646728515625, 0.006000518798828125, -0.03240966796875, 0.01080322265625, -0.051422119140625, 0.006458282470703125, 0.0369873046875, 0.0286865234375, -0.0360107421875, 0.01213836669921875, -0.0173187255859375, -0.0035915374755859375, 0.0086822509765625, -0.020172119140625, -0.0384521484375, -0.01023101806640625, -0.028350830078125, -0.00010794401168823242, -0.002422332763671875, 0.00882720947265625, -0.0215911865234375, 0.018798828125, -0.0036602020263671875, -0.019073486328125, -0.0250396728515625, 0.060028076171875, -0.006267547607421875, 0.00597381591796875, -0.006145477294921875, 0.026824951171875, 0.0197906494140625, -0.01323699951171875, -0.01030731201171875, -0.051727294921875, -0.0247344970703125, -0.01407623291015625, -0.0136260986328125, 0.05712890625, 0.053131103515625, -0.00704193115234375, 0.037994384765625, -0.0268707275390625, 0.01300048828125, -0.02294921875, -0.0140228271484375, -0.05096435546875, -0.020965576171875, 0.040618896484375, 0.0247650146484375, 0.05694580078125, -0.039520263671875, -0.00461578369140625, -0.0243377685546875, 0.005474090576171875, 0.0175323486328125, -0.0250396728515625, -0.0010013580322265625, 0.03546142578125, 0.06011962890625, 0.005512237548828125, 0.0380859375, 0.0309906005859375, 0.01019287109375, -0.00026988983154296875, -0.0107421875, 0.036346435546875, 0.0260162353515625, 0.07757568359375, 0.0003325939178466797, -0.01122283935546875, 0.05517578125, -0.035400390625, 0.01116943359375, 0.007778167724609375, 0.046051025390625, -0.007015228271484375, -0.0135650634765625, -0.0169830322265625, -0.061126708984375, 0.03955078125, 0.0168609619140625, 0.0113525390625, 0.0034618377685546875, 0.00927734375, -0.003124237060546875, -0.0027294158935546875, 0.01163482666015625, 0.0003337860107421875, 0.002277374267578125, -0.004619598388671875, 0.00777435302734375, 0.01401519775390625, 0.0166015625, -0.01316070556640625, 0.00009012222290039062, 0.035125732421875, -0.007762908935546875, -0.007808685302734375, 0.0281524658203125, -0.0235748291015625, -0.03546142578125, 0.037750244140625, -0.017974853515625, 5.960464477539062e-7, 0.024261474609375, 0.0228729248046875, 0.0019702911376953125, 0.05010986328125, -0.0237884521484375, 0.032379150390625, 0.01195526123046875, -0.0205841064453125, 0.044891357421875, 0.0036678314208984375, 0.020477294921875, -0.0110015869140625, -0.0304412841796875, 0.003597259521484375, -0.01212310791015625, -0.005764007568359375, -0.0036754608154296875, -0.0020198822021484375, 0.1053466796875, -0.049102783203125, -0.0163116455078125, 0.0281219482421875, 0.004009246826171875, -0.00281524658203125, -0.0167694091796875, 0.0380859375, -0.033355712890625, -0.00887298583984375, 0.002643585205078125, 0.0004737377166748047, 0.0074920654296875, -0.0160064697265625, -0.0008497238159179688, 0.052001953125, -0.03460693359375, -0.0418701171875, 0.0215911865234375, 0.050689697265625, -0.01432037353515625, 0.02752685546875, -0.01611328125, 0.037078857421875, 0.005283355712890625, 0.006725311279296875, 0.024383544921875, 0.000009179115295410156, 0.01904296875, 0.01007843017578125, -0.0628662109375, -0.0005660057067871094, -0.039154052734375, 0.032806396484375, 0.03680419921875, 0.003875732421875, 0.0194549560546875, 0.039215087890625, -0.0019350051879882812, 0.01274871826171875, 0.0078887939453125, -0.037872314453125, 0.0127105712890625, -0.0236358642578125, -0.00799560546875, 0.0063018798828125, 0.0157928466796875, 0.03228759765625, 0.0173187255859375, 0.042449951171875, -0.0294647216796875, 0.00782012939453125, 0.0254974365234375, -0.006862640380859375, 0.0004146099090576172, 0.0433349609375, -0.01082611083984375, 0.00910186767578125, -0.0166168212890625, -0.02166748046875, 0.0184173583984375, -0.0156707763671875, 0.027252197265625, 0.013885498046875, 0.0016965866088867188, 0.0256805419921875, 0.054290771484375, 0.00507354736328125, 0.04608154296875, 0.01233673095703125, 0.017364501953125, 0.0221710205078125, 0.0130767822265625, -0.041778564453125, -0.0235595703125, 0.07965087890625, 0.05010986328125, -0.02410888671875, -0.030609130859375, 0.0006413459777832031, -0.008880615234375, 0.0076446533203125, 0.00984954833984375, 0.0426025390625, -0.01374053955078125, -0.0142669677734375, -0.00954437255859375, -0.0150604248046875, 0.01503753662109375, 0.0196533203125, 0.0007081031799316406, -0.00846099853515625, 0.007129669189453125, -0.0103607177734375, -0.056243896484375, 0.003589630126953125, -0.00258636474609375, 0.0703125, 0.0286712646484375, 0.036834716796875, 0.006435394287109375, -0.03204345703125, 0.041656494140625, -0.003353118896484375, 0.0085906982421875, -0.06451416015625, 0.019866943359375, -0.05126953125, 0.0164794921875, 0.0017375946044921875, 0.0004429817199707031, 0.0283966064453125, 0.0199737548828125, 0.0005946159362792969, -0.023529052734375, 0.006565093994140625, 0.028106689453125, -0.0260162353515625, -0.005580902099609375, -0.0307159423828125, 0.033935546875, 0.0474853515625, 0.017242431640625, -0.00662994384765625, 0.00156402587890625, 0.060211181640625, 0.013702392578125, 0.01081085205078125, 0.007320404052734375, -0.005855560302734375, -0.016815185546875, -0.015289306640625, -0.01209259033203125, 0.0133056640625, -0.09710693359375, -0.016357421875, -0.0230560302734375, -0.040130615234375, 0.040618896484375, 0.048187255859375, -0.0113983154296875, 0.01593017578125, 0.02276611328125, -0.009857177734375, -0.01136016845703125, 0.01428985595703125, -0.0161895751953125, 0.017486572265625, 0.0369873046875, 0.013214111328125, -0.055419921875, -0.0249786376953125, -0.03704833984375, 0.0243377685546875, 0.017364501953125, 0.03326416015625, -0.000682830810546875, 0.045745849609375, -0.028564453125, 0.0287933349609375, -0.041717529296875, -0.0256500244140625, 0.021636962890625, -0.0029621124267578125, -0.0005650520324707031, -0.0049591064453125, -0.0367431640625, 0.0036373138427734375, 0.052978515625, -0.04876708984375, -0.00543212890625, 0.025054931640625, 0.024169921875, -0.038787841796875, -0.00659942626953125, -0.027435302734375, -0.007457733154296875, 0.001857757568359375, -0.030487060546875, 0.044464111328125, 0.025970458984375, 0.0171356201171875, 0.050384521484375, -0.0006470680236816406, 0.01215362548828125, 0.02618408203125, -0.0178070068359375, 0.056884765625, 0.0298614501953125, -0.032470703125, -0.01947021484375, -0.004283905029296875, -0.0026111602783203125, 0.01409912109375, -0.00408172607421875, 0.00901031494140625, 0.0330810546875, -0.0216522216796875, 0.06378173828125, 0.06915283203125, 0.07183837890625, -0.02825927734375, 0.02545166015625, 0.061920166015625, -0.006374359130859375, -0.01256561279296875, -0.0445556640625, -0.0496826171875, -0.065185546875, 0.020538330078125, 0.044677734375, -0.048614501953125, -0.01265716552734375, -0.10028076171875, -0.00335693359375, 0.029266357421875, 0.0282745361328125, -0.08978271484375, 0.0239410400390625, 0.0222015380859375, 0.08837890625, -0.0157012939453125, 0.036346435546875, -0.007762908935546875, -0.00684356689453125, -0.02886962890625, -0.0007405281066894531, -0.011016845703125, 0.03338623046875, 0.00562286376953125, 0.00396728515625, -0.01248931884765625, -0.0158538818359375, 0.04046630859375, 0.0198822021484375, 0.0177764892578125, 0.07666015625, 0.040863037109375, -0.03216552734375, -0.03167724609375, 0.007549285888671875, 0.005023956298828125, 0.0008912086486816406, -0.0018596649169921875, -0.0161895751953125, -0.04205322265625, 0.05340576171875, -0.008392333984375, 0.0281524658203125, -0.0261383056640625, -0.08746337890625, 0.044952392578125, 0.0079803466796875, -0.048095703125, -0.0228118896484375, 0.01110076904296875, -0.0187530517578125, 0.012176513671875, -0.0035610198974609375, -0.031341552734375, 0.02545166015625, 0.0394287109375, -0.006305694580078125, 0.0718994140625, -0.0272216796875, 0.0141448974609375, -0.0115509033203125, 0.0207977294921875, -0.0015230178833007812, -0.00760650634765625, 0.0042877197265625, -0.0279083251953125, 0.042083740234375, 0.0372314453125, -0.04119873046875, 0.002811431884765625, -0.01134490966796875, 0.0160980224609375, 0.006374359130859375, -0.028350830078125, -0.01715087890625, -0.006816864013671875, 0.055145263671875, 0.0173187255859375, 0.008575439453125, -0.032867431640625, -0.0235748291015625, -0.0232391357421875, -0.0017290115356445312, 0.0194244384765625, 0.01873779296875, -0.06488037109375, -0.00600433349609375, 0.035369873046875, -0.0245513916015625, -0.03692626953125, 0.024688720703125, -0.04583740234375, -0.004852294921875, 0.0040740966796875, -0.015533447265625, -0.038665771484375, 0.0117340087890625, 0.0908203125, -0.06060791015625, -0.0019741058349609375, 0.0026035308837890625, 0.00247955322265625, 0.0465087890625, -0.0213775634765625, -0.058746337890625, -0.037811279296875, -0.018280029296875, 0.00878143310546875, -0.044647216796875, 0.047515869140625, -0.02276611328125, 0.009857177734375, -0.037628173828125, 0.01383209228515625, 0.0302276611328125, 0.023345947265625, -0.03173828125, 0.0234527587890625, 0.036346435546875, 0.016204833984375, 0.0087432861328125, 0.058258056640625, -0.00719451904296875, 0.0411376953125, 0.0023956298828125, -0.0296630859375, 0.036163330078125, -0.027130126953125, 0.0057373046875, 0.00249481201171875, -0.031890869140625, -0.05340576171875, 0.0257110595703125, 0.101806640625, -0.0141448974609375, 0.023406982421875 ]
141dc49361daf286a2dcfdd1fc6ab73d17d0c7d3
Wordpress Stackexchange Q: Trigger refresh for new media manager in 3.5 I'm trying to figure out how it's possible to 'refresh' the media library in the new media dialogue in 3.5. I'm adding images from an external image library to the WordPress library (via a tab/iFrame combo in the media dialogue) which works ok, but I have to close and reopen the dialogue in order to show the newly added images (which have successfully been aded to the library). I know there are wp.media.editor.open() and wp.media.editor.close() methods, but I can't quite manage to find a sort() or refresh() (or whatever) in the source. Truth be told, the source code is pretty intense reading and console.log doesn't seemingly help much with backbone.js. Any ideas? A: The correct way of refreshing the content of the frame, as found in the WP core, is as below: if(wp.media.frame.content.get()!==null){ wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())}); wp.media.frame.content.get().options.selection.reset(); }else{ wp.media.frame.library.props.set({ignore: (+ new Date())}); } You should always check of the content is available, else refresh the library. Cheers!
Q: Trigger refresh for new media manager in 3.5 I'm trying to figure out how it's possible to 'refresh' the media library in the new media dialogue in 3.5. I'm adding images from an external image library to the WordPress library (via a tab/iFrame combo in the media dialogue) which works ok, but I have to close and reopen the dialogue in order to show the newly added images (which have successfully been aded to the library). I know there are wp.media.editor.open() and wp.media.editor.close() methods, but I can't quite manage to find a sort() or refresh() (or whatever) in the source. Truth be told, the source code is pretty intense reading and console.log doesn't seemingly help much with backbone.js. Any ideas? A: The correct way of refreshing the content of the frame, as found in the WP core, is as below: if(wp.media.frame.content.get()!==null){ wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())}); wp.media.frame.content.get().options.selection.reset(); }else{ wp.media.frame.library.props.set({ignore: (+ new Date())}); } You should always check of the content is available, else refresh the library. Cheers! A: Took me a couple days but I finally dug my way through things enough to figure this out: wp.media.editor.get(wpActiveEditor).views._views[".media-frame-content"][0].views._views[""][1].collection.props.set({ignore:(+(new Date()))}) Seems like there must be an easier way but that works for me in the meantime! A: 2019 update. I found a better solution that doesnt break the uploader: wp.media.frame.on('open', function() { if (wp.media.frame.content.get() !== null) { // this forces a refresh of the content wp.media.frame.content.get().collection._requery(true); // optional: reset selection wp.media.frame.content.get().options.selection.reset(); } }, this); A: is it what you are looking for wp.media.editor.remove('content'); wp.media.editor.add('content');
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:427416", "question_score": "25", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78230" }
[ 0.030487060546875, 0.0023059844970703125, -0.0024566650390625, 0.00029778480529785156, 0.003620147705078125, -0.0306243896484375, 0.0264739990234375, -0.03668212890625, 0.036529541015625, 0.0157623291015625, -0.058258056640625, 0.0003972053527832031, 0.013763427734375, -0.0033721923828125, -0.0119476318359375, -0.023345947265625, 0.052459716796875, -0.058746337890625, 0.00923919677734375, -0.004207611083984375, 0.004791259765625, 0.0244598388671875, 0.02001953125, 0.03240966796875, -0.019927978515625, 0.0252227783203125, 0.0330810546875, 0.00287628173828125, -0.0171051025390625, -0.00978851318359375, 0.003971099853515625, 0.005584716796875, 0.0070953369140625, 0.039520263671875, -0.03515625, -0.011810302734375, 0.037200927734375, 0.01155853271484375, 0.015045166015625, 0.0189666748046875, -0.0223846435546875, 0.023834228515625, -0.027587890625, -0.004764556884765625, -0.036651611328125, -0.02728271484375, -0.034332275390625, -0.042449951171875, 0.0484619140625, 0.0587158203125, 0.003570556640625, -0.0261077880859375, -0.00485992431640625, 0.00743865966796875, -0.02239990234375, -0.036895751953125, -0.027587890625, -0.000052988529205322266, 0.0185699462890625, 0.0309295654296875, -0.005710601806640625, -0.019500732421875, -0.00020503997802734375, -0.0330810546875, -0.013580322265625, -0.017120361328125, 0.01213836669921875, 0.0169677734375, -0.0280914306640625, -0.0308380126953125, 0.01605224609375, 0.01248931884765625, -0.01439666748046875, -0.045257568359375, 0.004329681396484375, 0.03765869140625, 0.00897216796875, -0.01113128662109375, -0.002590179443359375, 0.01184844970703125, 0.0222015380859375, 0.017333984375, 0.0183563232421875, -0.0230712890625, 0.04803466796875, 0.029998779296875, 0.00009304285049438477, -0.026458740234375, -0.04376220703125, 0.003040313720703125, -0.03509521484375, -0.045166015625, 0.00630950927734375, 0.007663726806640625, -0.0200042724609375, 0.007625579833984375, 0.0221099853515625, 0.059173583984375, -0.016265869140625, 0.012115478515625, -0.0022602081298828125, -0.0302276611328125, 0.006134033203125, -0.031097412109375, 0.0174407958984375, 0.003406524658203125, 0.008453369140625, -0.084716796875, 0.01708984375, 0.0104522705078125, -0.034088134765625, 0.054931640625, 0.0460205078125, 0.02923583984375, -0.0253753662109375, -0.055328369140625, -0.0239715576171875, 0.01323699951171875, -0.0188751220703125, -0.0146484375, -0.0211029052734375, -0.017120361328125, -0.056884765625, 0.053680419921875, 0.051971435546875, 0.0285186767578125, -0.00466156005859375, 0.05291748046875, -0.05535888671875, -0.0195770263671875, 0.0047607421875, 0.042022705078125, 0.0209808349609375, 0.058868408203125, -0.004497528076171875, 0.0106964111328125, 0.03948974609375, 0.031463623046875, 0.0231781005859375, -0.00716400146484375, 0.01213836669921875, -0.0210723876953125, -0.005199432373046875, 0.020263671875, 0.03741455078125, 0.0272979736328125, -0.0020351409912109375, -0.00881195068359375, 0.052093505859375, -0.0153656005859375, -0.005184173583984375, -0.054962158203125, 0.030548095703125, 0.0201263427734375, 0.039794921875, -0.0030307769775390625, 0.1290283203125, -0.0506591796875, -0.0343017578125, -0.076416015625, 0.00782012939453125, -0.0015401840209960938, 0.0250396728515625, -0.03125, -0.038177490234375, 0.003177642822265625, -0.058135986328125, -0.019195556640625, 0.028106689453125, 0.11029052734375, 0.01309967041015625, -0.052642822265625, 0.003269195556640625, 0.0198516845703125, -0.04071044921875, -0.0005950927734375, 0.020111083984375, -0.001941680908203125, 0.015899658203125, 0.048248291015625, 0.007793426513671875, -0.01776123046875, 0.092529296875, -0.047515869140625, -0.0063018798828125, -0.02008056640625, 0.0185546875, 0.05657958984375, 0.01345062255859375, 0.03924560546875, 0.00543975830078125, -0.0194854736328125, -0.021087646484375, -0.028045654296875, 0.0248870849609375, 0.01004791259765625, -0.084716796875, -0.01397705078125, -0.0237579345703125, 0.024383544921875, 0.0052490234375, 0.07342529296875, -0.0184326171875, 0.00439453125, -0.055511474609375, 0.0482177734375, -0.02923583984375, 0.061126708984375, 0.0218963623046875, 0.006694793701171875, 0.020355224609375, 0.0279998779296875, -0.055084228515625, 0.0673828125, -0.0092926025390625, 0.031768798828125, -0.0435791015625, 0.0216522216796875, -0.0209503173828125, 0.050445556640625, -0.0225067138671875, -0.016143798828125, -0.016845703125, -0.0070648193359375, 0.01540374755859375, -0.0223236083984375, -0.01099395751953125, -0.0282745361328125, 0.003948211669921875, 0.01425933837890625, -0.0196533203125, 0.0070343017578125, 0.009307861328125, 0.0227508544921875, -0.040191650390625, -0.004009246826171875, -0.01641845703125, -0.020782470703125, -0.0042724609375, 0.036224365234375, 0.039337158203125, 0.021453857421875, 0.01209259033203125, 0.019378662109375, 0.06683349609375, 0.045928955078125, 0.04736328125, -0.028167724609375, 0.01629638671875, 0.01348876953125, -0.039581298828125, -0.049957275390625, 0.04742431640625, -0.03814697265625, -0.012451171875, 0.053070068359375, 0.0217132568359375, 0.0184783935546875, -0.0253448486328125, 0.01959228515625, 0.007602691650390625, 0.0312347412109375, -0.015869140625, 0.025177001953125, 0.02349853515625, 0.0198822021484375, 0.034881591796875, 0.03729248046875, -0.0042572021484375, 0.01248931884765625, 0.00615692138671875, -0.03619384765625, 0.024017333984375, 0.06201171875, -0.0179901123046875, -0.00025582313537597656, -0.01197052001953125, -0.0146484375, 0.0184326171875, 0.0240936279296875, -0.0367431640625, 0.0016651153564453125, -0.0293731689453125, -0.0172882080078125, -0.0005583763122558594, -0.0175323486328125, -0.000766754150390625, -0.04534912109375, 0.0146942138671875, 0.01238250732421875, 0.057403564453125, -0.0037403106689453125, -0.005279541015625, 0.0243072509765625, -0.0114898681640625, -0.0254669189453125, -0.0136871337890625, -0.044158935546875, 0.044708251953125, -0.02520751953125, 0.06719970703125, 0.0728759765625, -0.0164947509765625, 0.03277587890625, -0.0007009506225585938, -0.003520965576171875, 0.01435089111328125, 0.010467529296875, -0.01715087890625, -0.0276947021484375, -0.0178375244140625, 0.00557708740234375, 0.025726318359375, -0.03692626953125, -0.0013885498046875, -0.021636962890625, -0.053924560546875, -0.0178070068359375, -0.1114501953125, -0.060028076171875, 0.0035076141357421875, -0.08392333984375, 0.007701873779296875, 0.0022792816162109375, -0.053802490234375, -0.028717041015625, 0.07037353515625, 0.01041412353515625, -0.00969696044921875, 0.0096282958984375, -0.03289794921875, -0.038970947265625, -0.0284576416015625, -0.0164794921875, -0.0182647705078125, -0.01263427734375, 0.006313323974609375, 0.00893402099609375, -0.002635955810546875, -0.0158233642578125, 0.01354217529296875, -0.0011148452758789062, -0.014068603515625, -0.02386474609375, 0.03875732421875, -0.044921875, -0.0207061767578125, -0.0115203857421875, 0.0716552734375, 0.04705810546875, -0.04522705078125, 0.0252685546875, -0.01462554931640625, -0.040435791015625, -0.006053924560546875, 0.041839599609375, 0.0225982666015625, -0.007190704345703125, 0.017425537109375, -0.03143310546875, -0.0254974365234375, -0.00588226318359375, -0.05316162109375, -0.030364990234375, 0.023681640625, 0.01071929931640625, -0.0157318115234375, -0.006633758544921875, -0.0203094482421875, -0.020965576171875, 0.06597900390625, -0.0643310546875, 0.039886474609375, -0.029571533203125, -0.047882080078125, -0.037200927734375, 0.0751953125, 0.0024547576904296875, -0.08489990234375, -0.007091522216796875, -0.0243682861328125, -0.0289306640625, -0.0247802734375, -0.06854248046875, 0.019622802734375, 0.00614166259765625, -0.019927978515625, 0.008575439453125, 0.00042247772216796875, 0.0072021484375, -0.01308441162109375, 0.006763458251953125, -0.027862548828125, -0.00921630859375, -0.015167236328125, 0.01219940185546875, -0.0201873779296875, -0.04193115234375, -0.0215911865234375, -0.01104736328125, 0.0014486312866210938, 0.0178070068359375, 0.01084136962890625, 0.00960540771484375, -0.03692626953125, 0.04718017578125, -0.01678466796875, -0.0164031982421875, 0.040313720703125, -0.033538818359375, 0.026824951171875, -0.036895751953125, 0.029632568359375, -0.07763671875, -0.0088653564453125, -0.0206146240234375, -0.1337890625, -0.01503753662109375, 0.0014476776123046875, 0.06622314453125, -0.001506805419921875, -0.04083251953125, -0.0714111328125, 0.0265350341796875, 0.0204925537109375, 0.02532958984375, 0.008514404296875, -0.0064544677734375, 0.0267486572265625, -0.00782012939453125, 0.015228271484375, -0.022003173828125, -0.0186767578125, -0.043121337890625, -0.03533935546875, 0.01519775390625, -0.01538848876953125, 0.03448486328125, -0.02069091796875, 0.0043182373046875, -0.041656494140625, -0.03228759765625, -0.016326904296875, -0.0231475830078125, -0.025421142578125, 0.002765655517578125, -0.016387939453125, -0.034027099609375, 0.00046181678771972656, -0.0229644775390625, -0.009979248046875, -0.0019044876098632812, 0.06781005859375, 0.040008544921875, 0.010772705078125, 0.0295867919921875, -0.00566864013671875, 0.0093841552734375, -0.00634002685546875, 0.010162353515625, -0.0164794921875, -0.0134429931640625, 0.033355712890625, -0.027557373046875, 0.033203125, -0.0015316009521484375, 0.0063629150390625, 0.0129852294921875, -0.014739990234375, 0.02642822265625, 0.049591064453125, -0.043701171875, 0.0137176513671875, 0.003253936767578125, 0.0202178955078125, -0.010040283203125, -0.0179443359375, 0.0179901123046875, -0.027313232421875, -0.002399444580078125, -0.05255126953125, 0.020599365234375, 0.0140838623046875, 0.0216064453125, 0.0076446533203125, -0.0017757415771484375, 0.02459716796875, 0.0246124267578125, -0.005084991455078125, 0.0283966064453125, 0.035186767578125, -0.0191650390625, 0.020263671875, 0.028839111328125, -0.026458740234375, 0.00235748291015625, 0.00963592529296875, -0.01261138916015625, -0.025177001953125, -0.06121826171875, -0.0086669921875, 0.01099395751953125, 0.02020263671875, 0.047149658203125, 0.0606689453125, 0.016326904296875, -0.01055145263671875, -0.007686614990234375, -0.01532745361328125, 0.019134521484375, 0.036712646484375, -0.033660888671875, 0.01763916015625, -0.01256561279296875, 0.000789642333984375, 0.021484375, 0.029052734375, 0.022064208984375, 0.011138916015625, -0.01947021484375, 0.034454345703125, -0.00466156005859375, 0.024810791015625, 0.032470703125, -0.007541656494140625, 0.009613037109375, -0.0113372802734375, -0.027679443359375, -0.049957275390625, 0.005184173583984375, 0.024871826171875, 0.0244598388671875, 0.002399444580078125, -0.0192718505859375, 0.0178985595703125, -0.0042724609375, -0.014190673828125, 0.039825439453125, -0.01561737060546875, -0.05645751953125, -0.0291290283203125, 0.012115478515625, 0.054046630859375, -0.028076171875, -0.01012420654296875, -0.0231781005859375, 0.00341796875, -0.01241302490234375, -0.00014829635620117188, -0.05889892578125, 0.039520263671875, 0.04034423828125, -0.02685546875, -0.0182647705078125, 0.01543426513671875, -0.0233001708984375, 0.004520416259765625, -0.031494140625, -0.027618408203125, 0.07659912109375, -0.00310516357421875, 0.032379150390625, -0.035247802734375, -0.004741668701171875, -0.043609619140625, 0.01470947265625, -0.00286865234375, -0.01039886474609375, 0.033843994140625, -0.01001739501953125, -0.05487060546875, -0.058349609375, -0.09088134765625, -0.05133056640625, -0.045989990234375, 0.0220947265625, 0.01311492919921875, 0.031982421875, -0.0274810791015625, -0.043548583984375, 0.025634765625, -0.0093841552734375, -0.0096588134765625, 0.04144287109375, 0.032470703125, 0.0012912750244140625, -0.0191497802734375, 0.056854248046875, 0.024505615234375, -0.00926971435546875, -0.052001953125, -0.038116455078125, -0.02374267578125, -0.012969970703125, 0.034393310546875, 0.0184173583984375, 0.041351318359375, -0.0262908935546875, -0.0137939453125, 0.01418304443359375, 0.044586181640625, -0.04425048828125, -0.0051422119140625, -0.0222320556640625, 0.0565185546875, -0.0594482421875, 0.018280029296875, 0.035919189453125, -0.035614013671875, -0.007762908935546875, 0.0024700164794921875, -0.0002446174621582031, 0.039337158203125, -0.00998687744140625, 0.015960693359375, -0.00569915771484375, -0.0120849609375, 0.0212860107421875, 0.035797119140625, -0.0089569091796875, 0.03668212890625, -0.0002925395965576172, -0.004131317138671875, 0.0189971923828125, -0.0203704833984375, 0.07574462890625, -0.020477294921875, 0.0250244140625, -0.018768310546875, 0.017730712890625, 0.02923583984375, -0.019378662109375, 0.00821685791015625, -0.017242431640625, 0.031951904296875, 0.0338134765625, -0.00933837890625, -0.00583648681640625, -0.061981201171875, 0.00675201416015625, 0.006687164306640625, -0.01427459716796875, -0.04248046875, 0.0035724639892578125, -0.047515869140625, -0.04693603515625, -0.0207366943359375, -0.025604248046875, -0.00025773048400878906, 0.0002484321594238281, 0.01898193359375, -0.00835418701171875, -0.005832672119140625, -0.0479736328125, 0.00983428955078125, -0.039398193359375, 0.01128387451171875, -0.00009757280349731445, -0.04193115234375, -0.035675048828125, -0.03765869140625, -0.034759521484375, -0.00952911376953125, -0.0294952392578125, -0.00797271728515625, 0.02728271484375, 0.004787445068359375, 0.07122802734375, -0.01776123046875, 0.0030651092529296875, 0.04705810546875, -0.058807373046875, -0.02655029296875, -0.0083770751953125, 0.030059814453125, 0.00878143310546875, -0.04681396484375, 0.0157928466796875, -0.0298919677734375, -0.0005121231079101562, 0.005512237548828125, -0.0312042236328125, 0.01517486572265625, -0.005779266357421875, -0.009918212890625, 0.032135009765625, -0.01293182373046875, -0.0176239013671875, 0.00704193115234375, 0.05267333984375, -0.0618896484375, -0.043243408203125, 0.0272064208984375, -0.01922607421875, -0.01959228515625, 0.00516510009765625, -0.048309326171875, 0.08245849609375, -0.0039825439453125, 0.0240325927734375, 0.0273895263671875, 0.027923583984375, -0.049072265625, -0.004436492919921875, -0.0384521484375, 0.03765869140625, -0.0440673828125, 0.044647216796875, -0.093505859375, -0.01422119140625, -0.0086669921875, 0.05792236328125, -0.01297760009765625, -0.0108795166015625, 0.012969970703125, -0.0230560302734375, 0.01068115234375, 0.0304107666015625, 0.011016845703125, -0.008575439453125, -0.042694091796875, 0.0038661956787109375, 0.041015625, -0.068603515625, 0.019744873046875, -0.0239410400390625, -0.0174407958984375, -0.02783203125, 0.0031566619873046875, -0.00215911865234375, 0.01275634765625, 0.0245819091796875, -0.0301513671875, 0.01525115966796875, 0.020172119140625, 0.010040283203125, 0.038299560546875, 0.01300811767578125, 0.004924774169921875, 0.03179931640625, 0.0027256011962890625, -0.0006127357482910156, 0.0248260498046875, -0.024139404296875, -0.0022792816162109375, 0.01184844970703125, 0.00627899169921875, 0.0183258056640625, -0.015869140625, -0.024871826171875, -0.006595611572265625, 0.01332855224609375, 0.026824951171875, 0.0181732177734375, 0.0220489501953125, -0.050811767578125, -0.0193939208984375, 0.050506591796875, 0.056671142578125, -0.020965576171875, -0.026275634765625, 0.0093536376953125, 0.0195159912109375, -0.00925445556640625, -0.017852783203125, 0.0019741058349609375, -0.043426513671875, 0.0089111328125, -0.0008921623229980469, 0.00974273681640625, 0.01172637939453125, 0.0186767578125, 0.012542724609375, 0.051666259765625, -0.0423583984375, 0.00168609619140625, -0.041595458984375, 0.03302001953125, 0.0189971923828125, 0.044158935546875, -0.015838623046875, 0.059051513671875, -0.041229248046875, -0.00891876220703125, -0.0153045654296875, 0.028076171875, -0.0164642333984375, 0.0224609375, -0.034271240234375, -0.05242919921875, 0.0258941650390625, 0.04296875, 0.038818359375, 0.01202392578125, 0.03155517578125, 0.027862548828125, -0.003978729248046875, 0.0206756591796875, 0.0435791015625, 0.0001690387725830078, 0.020050048828125, -0.023193359375, -0.006168365478515625, 0.0022411346435546875, -0.01349639892578125, 0.0303192138671875, 0.005062103271484375, 0.022186279296875, -0.02032470703125, 0.050384521484375, -0.0028228759765625, -0.0213470458984375, 0.0305633544921875, 0.004703521728515625, 0.09490966796875, 0.0250244140625, -0.08038330078125, -0.0224456787109375, 0.006824493408203125, -0.004520416259765625, -0.0143585205078125, 0.0244140625, -0.03411865234375, 0.056121826171875, -0.0083465576171875, -0.0009937286376953125, -0.01311492919921875, -0.01479339599609375, 0.0260162353515625, -0.0104522705078125, 0.00479888916015625, 0.0092620849609375, -0.0743408203125, -0.0192718505859375, 0.012298583984375, -0.0079803466796875, -0.0111236572265625, 0.0208892822265625, 0.03240966796875, 0.0037746429443359375, 0.00783538818359375, 0.0172576904296875, 0.00234222412109375, 0.0031070709228515625, 0.0003750324249267578, 0.00392913818359375, 0.015625, -0.015838623046875, 0.034149169921875, 0.04583740234375, -0.002262115478515625, -0.001705169677734375, 0.033782958984375, -0.0706787109375, 0.00975799560546875, 0.01751708984375, -0.0008707046508789062, -0.03814697265625, -0.034027099609375, -0.02178955078125, 0.0211944580078125, 0.006595611572265625, -0.020172119140625, -0.0330810546875, 0.027618408203125, 0.0074310302734375, -0.01361846923828125, -0.0134124755859375, -0.00418853759765625, -0.0094451904296875, 0.0303192138671875, 0.002323150634765625, -0.005916595458984375, 0.0142822265625, -0.0152587890625, -0.01092529296875, 0.0185089111328125, 0.01145172119140625, -0.0099639892578125, 0.01024627685546875, 0.035919189453125, 0.02801513671875, 0.026092529296875, -0.036834716796875, -0.00396728515625, 0.029541015625, -0.003070831298828125, -0.01403045654296875, -0.031951904296875, -0.0227508544921875, -0.0265960693359375, -0.0177459716796875, 0.007030487060546875, -0.026092529296875, -0.0229339599609375, -0.0281524658203125, 0.031280517578125, 0.041778564453125, 0.047607421875, -0.138671875, 0.0869140625, 0.0052642822265625, 0.050506591796875, 0.0237579345703125, 0.0101318359375, -0.00681304931640625, 0.01067352294921875, -0.035797119140625, -0.05780029296875, -0.0274810791015625, 0.04229736328125, -0.02838134765625, -0.02923583984375, 0.005615234375, -0.00737762451171875, 0.00921630859375, -0.062744140625, -0.013702392578125, -0.015716552734375, 0.017303466796875, -0.00991058349609375, 0.0160675048828125, -0.00814056396484375, -0.004825592041015625, -0.0012044906616210938, -0.00312042236328125, -0.013153076171875, -0.02227783203125, -0.006885528564453125, -0.0106658935546875, -0.007633209228515625, -0.0296478271484375, -0.040313720703125, 0.0113983154296875, 0.019775390625, -0.03466796875, -0.0223388671875, 0.001049041748046875, -0.016387939453125, 0.0281524658203125, 0.01342010498046875, -0.059326171875, 0.004444122314453125, 0.036865234375, -0.011871337890625, 0.029388427734375, -0.02215576171875, 0.0018529891967773438, -0.0772705078125, -0.00531005859375, -0.0225982666015625, -0.0099639892578125, -0.01812744140625, 0.0116424560546875, -0.01727294921875, -0.0020885467529296875, -0.056976318359375, -0.042877197265625, -0.01453399658203125, 0.03985595703125, -0.030609130859375, -0.01324462890625, -0.01010894775390625, 0.0179595947265625, 0.07513427734375, 0.0557861328125, 0.009063720703125, -0.06365966796875, 0.04803466796875, 0.0176849365234375, -0.0167388916015625, 0.00463104248046875, 0.0035915374755859375, -0.022003173828125, -0.0264739990234375, -0.010650634765625, 0.01097869873046875, -0.038116455078125, -0.01220703125, -0.03216552734375, -0.027252197265625, 0.0104217529296875, 0.023956298828125, 0.001964569091796875, -0.0189361572265625, 0.07977294921875, -0.03497314453125, 0.01381683349609375, 0.015106201171875, 0.0228424072265625, 0.047637939453125, 0.01239776611328125, 0.03875732421875, 0.020751953125, -0.0187530517578125, 0.021728515625, 0.0322265625, -0.003025054931640625, -0.0264434814453125, -0.0257110595703125, -0.0030269622802734375, -0.003131866455078125, -0.0127410888671875, -0.01074981689453125, 0.0322265625, -0.0028858184814453125, -0.0290679931640625, 0.03204345703125, -0.068115234375, 0.050506591796875, -0.00775146484375, -0.0190887451171875, -0.00183868408203125, 0.0419921875, 0.08538818359375, -0.0289459228515625, 0.01351165771484375, 0.0352783203125, 0.005096435546875, -0.0243072509765625, 0.028533935546875, -0.01003265380859375, -0.0006923675537109375, 0.003177642822265625 ]
dbd55b4b2eaea76f192ebc781683c0d19355238e
Wordpress Stackexchange Q: Convert hyphen to underscore in permalinks I would like to use underscore in my permalinks instead of hyphen. Current permalink: www.example.com/2013/01/hello-this-is-a-test-post/ Desired permalink www.example.com/2013/01/hello_this_is_a_test_post/ I have tried some solutions mentioned here in stacexchange. But they were not working. A: it can be done easily without any codes or plugin just go to pages dashboard, click Quick Edit" which url you want to change. Now add underscore. Update and done
Q: Convert hyphen to underscore in permalinks I would like to use underscore in my permalinks instead of hyphen. Current permalink: www.example.com/2013/01/hello-this-is-a-test-post/ Desired permalink www.example.com/2013/01/hello_this_is_a_test_post/ I have tried some solutions mentioned here in stacexchange. But they were not working. A: it can be done easily without any codes or plugin just go to pages dashboard, click Quick Edit" which url you want to change. Now add underscore. Update and done A: Toscho advised me like this. Google treats - as word separator, but not _. You will hurt yourself. :) He was 100% true. Here is an article that explains it. So I dropped the idea. But if you still looking for a solution here is the answer. Answered by this stackoverflow user Hunt down the following file: wp-includes/formatting.php Jump down to the sanitize_title_with_dashes function. You'll find this section of code inside: $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities $title = str_replace('.', '-', $title); $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); $title = preg_replace('/\s+/', '-', $title); $title = preg_replace('|-+|', '-', $title); $title = trim($title, '-'); Swap out all of the dashes/hyphens (-) for underscores (_) like so: $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities $title = str_replace('.', '_', $title); $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); $title = preg_replace('/\s+/', '_', $title); $title = preg_replace('|-+|', '_', $title); $title = trim($title, '_'); Note that any posts you've created before this change, and rely on the %postname% permalink structure tag, will be broken. In that case you'll need to go back and republish those post so the dashes are swapped out for the underscores. Or just write yourself a little SQL to replace them. A: I initially did this but with every update to Wordpress I'd have to make the manual change again, so I made this plugin in case it helps anyone: http://wordpress.org/plugins/underscores-in-permalinks/
wordpress
{ "language": "en", "length": 307, "provenance": "stackexchange_00019.jsonl.gz:427442", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78334" }
[ 0.061859130859375, 0.007785797119140625, -0.013153076171875, 0.01514434814453125, 0.008514404296875, -0.059783935546875, 0.08721923828125, -0.041351318359375, 0.0050201416015625, 0.00426483154296875, 0.005359649658203125, -0.022186279296875, 0.04144287109375, -0.05242919921875, 0.046295166015625, -0.0076751708984375, 0.02130126953125, -0.0205535888671875, 0.005825042724609375, -0.0183563232421875, -0.0114898681640625, 0.0017919540405273438, 0.0163726806640625, 0.0006761550903320312, 0.031402587890625, -0.00084686279296875, 0.06396484375, -0.035675048828125, 0.01507568359375, -0.033355712890625, 0.0207977294921875, 0.004337310791015625, 0.02508544921875, -0.01375579833984375, 0.033233642578125, 0.07647705078125, -0.006191253662109375, 0.00624847412109375, 0.0389404296875, -0.01617431640625, 0.050872802734375, -0.03228759765625, 0.0294036865234375, 0.0220184326171875, 0.0323486328125, -0.050933837890625, 0.07049560546875, -0.06243896484375, 0.039306640625, -0.04962158203125, 0.0037784576416015625, 0.03363037109375, 0.0033473968505859375, 0.0109100341796875, -0.0274200439453125, -0.0260467529296875, -0.019622802734375, -0.020751953125, 0.0265655517578125, 0.005924224853515625, 0.0174102783203125, -0.023193359375, 0.0172119140625, 0.0154266357421875, -0.0258331298828125, -0.0183563232421875, -0.047882080078125, 0.01373291015625, -0.01629638671875, -0.02978515625, 0.01544189453125, -0.0089111328125, 0.00798797607421875, -0.041656494140625, -0.058868408203125, 0.01519012451171875, 0.0250701904296875, -0.0260467529296875, -0.006443023681640625, -0.03436279296875, 0.027557373046875, -0.01690673828125, 0.0165557861328125, -0.052978515625, 0.026123046875, -0.0163421630859375, -0.005901336669921875, -0.0124664306640625, -0.01120758056640625, -0.007221221923828125, -0.0288848876953125, 0.04400634765625, -0.03131103515625, 0.00812530517578125, -0.02294921875, -0.00215911865234375, 0.026397705078125, 0.017822265625, 0.005802154541015625, 0.018890380859375, -0.01084136962890625, -0.05419921875, 0.03326416015625, -0.037872314453125, -0.01531219482421875, -0.01427459716796875, 0.033233642578125, 0.055450439453125, 0.052459716796875, 0.0295257568359375, -0.0219573974609375, 0.08258056640625, 0.0072174072265625, -0.0350341796875, -0.0249176025390625, 0.008270263671875, -0.0077667236328125, 0.0278472900390625, 0.0165557861328125, 0.0153961181640625, -0.004299163818359375, 0.04144287109375, 0.0142059326171875, -0.014373779296875, -0.01708984375, 0.0030536651611328125, 0.0293731689453125, -0.084716796875, -0.015960693359375, 0.04296875, -0.00644683837890625, -0.004642486572265625, 0.029510498046875, 0.04278564453125, 0.002513885498046875, -0.031951904296875, 0.050750732421875, -0.0209197998046875, -0.0073394775390625, 0.035430908203125, -0.0087890625, -0.037017822265625, -0.030670166015625, -0.00421905517578125, 0.038665771484375, 0.04864501953125, 0.0017108917236328125, 0.009796142578125, 0.031524658203125, -0.022308349609375, -0.006038665771484375, -0.048828125, 0.0491943359375, -0.00756072998046875, -0.0284271240234375, -0.041473388671875, -0.0102691650390625, -0.041961669921875, 0.0011510848999023438, -0.02789306640625, -0.0102081298828125, -0.00653076171875, 0.0350341796875, -0.0146484375, -0.042449951171875, 0.0194549560546875, -0.02764892578125, -0.01233673095703125, 0.01534271240234375, -0.0246429443359375, 0.01422882080078125, -0.0247955322265625, -0.0133209228515625, -0.03192138671875, -0.01099395751953125, 0.00618743896484375, -0.050567626953125, 0.0341796875, 0.024078369140625, 0.050018310546875, 0.045562744140625, -0.0310516357421875, 0.01206207275390625, 0.047760009765625, -0.039337158203125, 0.04217529296875, 0.017333984375, 0.046722412109375, -0.01812744140625, 0.0152587890625, 0.05999755859375, 0.057220458984375, -0.041412353515625, 0.004730224609375, 0.01470184326171875, -0.0102386474609375, 0.00632476806640625, -0.002532958984375, 0.01113128662109375, -0.026092529296875, -0.02508544921875, 0.0105743408203125, -0.0284271240234375, 0.0391845703125, -0.0227813720703125, 0.00585174560546875, -0.011871337890625, 0.0202789306640625, 0.01172637939453125, 0.0286407470703125, 0.010498046875, -0.00640106201171875, -0.004974365234375, -0.10540771484375, -0.045074462890625, 0.02703857421875, -0.01318359375, -0.00408935546875, -0.0006098747253417969, -0.01070404052734375, 0.0050201416015625, 0.0289306640625, 0.006999969482421875, 0.0263671875, 0.00859832763671875, -0.026885986328125, -0.032440185546875, -0.03717041015625, -0.060272216796875, 0.003566741943359375, -0.0770263671875, 0.04949951171875, 0.0133819580078125, -0.0133819580078125, -0.03729248046875, 0.0229949951171875, -0.0010671615600585938, 0.005504608154296875, -0.02593994140625, 0.0367431640625, 0.02423095703125, 0.04949951171875, -0.01045989990234375, -0.031494140625, 0.06317138671875, 0.022613525390625, 0.0325927734375, -0.05517578125, -0.032379150390625, -0.0119476318359375, 0.00536346435546875, 0.00272369384765625, 0.03814697265625, -0.036407470703125, -0.0230255126953125, 0.059112548828125, -0.0162506103515625, 0.00933074951171875, -0.0017032623291015625, 0.006664276123046875, -0.007053375244140625, -0.006992340087890625, 0.0195770263671875, -0.0234375, -0.001903533935546875, 0.0067291259765625, 0.0005517005920410156, 0.00878143310546875, -0.005016326904296875, 0.005146026611328125, 0.01216888427734375, -0.05047607421875, -0.002712249755859375, 0.034210205078125, 0.03680419921875, -0.040802001953125, -0.043792724609375, -0.01222991943359375, 0.03692626953125, 0.01904296875, 0.01007080078125, 0.0352783203125, 0.0044403076171875, -0.01360321044921875, 0.0188140869140625, -0.035614013671875, -0.0199737548828125, -0.0156707763671875, -0.0001558065414428711, 0.0006952285766601562, 0.035430908203125, -0.0001424551010131836, -0.026275634765625, 0.0186920166015625, -0.01629638671875, -0.01308441162109375, 0.006290435791015625, -0.019805908203125, 0.0271759033203125, -0.032257080078125, 0.0175323486328125, 0.047027587890625, -0.0231170654296875, -0.0005078315734863281, 0.005970001220703125, -0.00395965576171875, 0.01210784912109375, 0.013671875, 0.002536773681640625, -0.003719329833984375, -0.09600830078125, -0.058319091796875, 0.01026153564453125, 0.01898193359375, -0.0225372314453125, -0.023712158203125, -0.00452423095703125, 0.0308685302734375, -0.03857421875, -0.0340576171875, 0.0181121826171875, -0.02783203125, -0.0285491943359375, 0.0213165283203125, -0.0223541259765625, -0.00112152099609375, 0.020904541015625, -0.0095367431640625, 0.006801605224609375, -0.0163726806640625, -0.057342529296875, -0.04901123046875, -0.061798095703125, -0.0298004150390625, -0.01113128662109375, -0.0068511962890625, 0.01436614990234375, -0.05517578125, -0.03179931640625, 0.0017824172973632812, 0.00974273681640625, 0.04345703125, 0.0258026123046875, -0.06317138671875, -0.026641845703125, -0.01910400390625, -0.0215911865234375, -0.0028438568115234375, 0.0416259765625, 0.006305694580078125, -0.005771636962890625, 0.032440185546875, -0.0026302337646484375, -0.003612518310546875, 0.0024051666259765625, 0.006458282470703125, 0.024017333984375, 0.00542449951171875, 0.025543212890625, -0.04730224609375, -0.0231781005859375, 0.0095672607421875, -0.04681396484375, 0.029815673828125, 0.004032135009765625, -0.0156097412109375, 0.01190948486328125, 0.0006732940673828125, 0.007022857666015625, -0.021942138671875, 0.039520263671875, -0.046356201171875, 0.02471923828125, -0.005374908447265625, 0.021209716796875, -0.0296630859375, -0.0133514404296875, -0.032684326171875, 0.04241943359375, 0.000568389892578125, -0.006866455078125, -0.0068511962890625, 0.050323486328125, 0.0159149169921875, -0.03961181640625, 0.049835205078125, -0.0675048828125, -0.003925323486328125, -0.04449462890625, -0.017913818359375, -0.0024433135986328125, 0.091064453125, -0.01058197021484375, -0.01465606689453125, -0.0086212158203125, 0.00548553466796875, -0.005352020263671875, -0.038726806640625, -0.0478515625, -0.024810791015625, -0.0357666015625, -0.053985595703125, -0.04248046875, -0.0321044921875, -0.00913238525390625, -0.00417327880859375, -0.0218353271484375, -0.033355712890625, 0.022552490234375, -0.036834716796875, -0.0264739990234375, 0.021270751953125, -0.035980224609375, 0.0032787322998046875, -0.0265350341796875, -0.015533447265625, -0.06878662109375, -0.04058837890625, 0.0394287109375, 0.047515869140625, -0.00872039794921875, -0.034637451171875, 0.00014078617095947266, 0.0704345703125, -0.0034942626953125, 0.025238037109375, 0.012847900390625, -0.0023746490478515625, 0.01788330078125, 0.044677734375, 0.032318115234375, 0.0094451904296875, 0.0102996826171875, -0.0254364013671875, -0.031768798828125, -0.0156097412109375, -0.0114898681640625, 0.034637451171875, 0.0249176025390625, -0.0250091552734375, -0.046234130859375, 0.00673675537109375, -0.022796630859375, 0.0099639892578125, -0.011932373046875, -0.0250396728515625, -0.0004878044128417969, -0.06964111328125, 0.032745361328125, 0.0299835205078125, -0.0174102783203125, -0.01885986328125, 0.0233001708984375, 0.0290985107421875, -0.04144287109375, 0.05523681640625, -0.01050567626953125, 0.04168701171875, -0.06390380859375, 0.0300445556640625, 0.0097198486328125, 0.002033233642578125, 0.031463623046875, -0.0294952392578125, -0.008392333984375, 0.0190277099609375, -0.022857666015625, -0.0008025169372558594, -0.038482666015625, 0.0032138824462890625, -0.003314971923828125, 0.0198516845703125, 0.028167724609375, -0.0307159423828125, -0.0104217529296875, -0.019622802734375, 0.039764404296875, 0.0024700164794921875, -0.0094757080078125, -0.06781005859375, -0.089599609375, 0.027191162109375, -0.003795623779296875, -0.036224365234375, -0.0014467239379882812, -0.0231781005859375, 0.03216552734375, 0.02386474609375, -0.01502227783203125, -0.03765869140625, -0.02764892578125, 0.0135498046875, 0.0116729736328125, -0.0294036865234375, 0.01079559326171875, -0.029449462890625, -0.00890350341796875, 0.05908203125, 0.03619384765625, 0.00738525390625, 0.0081634521484375, -0.0213165283203125, -0.032684326171875, -0.004390716552734375, 0.0178680419921875, 0.00891876220703125, -0.0021686553955078125, -0.00406646728515625, 0.0186614990234375, -0.0374755859375, -0.003284454345703125, -0.040008544921875, 0.018280029296875, 0.0009222030639648438, -0.004558563232421875, -0.02032470703125, 0.0523681640625, 0.04022216796875, -0.0007901191711425781, -0.01678466796875, -0.0118408203125, -0.0010623931884765625, 0.04150390625, 0.0145111083984375, -0.0199432373046875, -0.007534027099609375, 0.01702880859375, 0.0208892822265625, -0.004787445068359375, -0.0133514404296875, 0.033660888671875, 0.0125274658203125, -0.0121002197265625, 0.0032405853271484375, 0.000701904296875, -0.0166778564453125, 0.0024089813232421875, 0.026336669921875, -0.0263824462890625, -0.020599365234375, -0.0238037109375, -0.0210418701171875, 0.04559326171875, -0.008697509765625, 0.0085601806640625, 0.00386810302734375, -0.003673553466796875, 0.049163818359375, -0.00982666015625, 0.04400634765625, -0.0303955078125, -0.03985595703125, 0.055084228515625, 0.0003120899200439453, -0.01206207275390625, -0.00917816162109375, 0.00609588623046875, -0.031951904296875, -0.0228118896484375, 0.054595947265625, 0.0007658004760742188, 0.057891845703125, -0.0238189697265625, -0.033905029296875, 0.04937744140625, 0.0014514923095703125, 0.0496826171875, 0.01145172119140625, -0.038665771484375, 0.004055023193359375, -0.03729248046875, 0.0007462501525878906, 0.0291290283203125, -0.01861572265625, -0.036285400390625, -0.0160675048828125, 0.03729248046875, 0.03338623046875, 0.0180816650390625, -0.000911712646484375, -0.059539794921875, -0.0126190185546875, 0.0274810791015625, 0.0214996337890625, -0.0231781005859375, 0.04888916015625, 0.030487060546875, 0.0220184326171875, 0.008697509765625, 0.042327880859375, 0.0157623291015625, -0.039886474609375, -0.0167388916015625, -0.0181732177734375, -0.003116607666015625, 0.00909423828125, 0.0250396728515625, 0.0006437301635742188, 0.0274810791015625, -0.0030536651611328125, 0.0283050537109375, -0.032684326171875, -0.0004515647888183594, -0.0258636474609375, -0.020111083984375, -0.07537841796875, -0.00585174560546875, -0.002750396728515625, 0.035797119140625, 0.07904052734375, -0.022613525390625, -0.0214691162109375, -0.0374755859375, 0.02972412109375, 0.01129913330078125, 0.01464080810546875, -0.041229248046875, 0.05169677734375, 0.08056640625, -0.001983642578125, 0.0245208740234375, 0.03131103515625, -0.0080108642578125, -0.02984619140625, 0.0087738037109375, 0.006877899169921875, -0.01375579833984375, 0.057403564453125, 0.02716064453125, -0.0281829833984375, 0.05426025390625, -0.040130615234375, -0.015869140625, 0.066162109375, 0.0455322265625, -0.09576416015625, -0.008331298828125, -0.00412750244140625, 0.00344085693359375, 0.01715087890625, 0.0095672607421875, -0.017303466796875, 0.004108428955078125, 0.022613525390625, -0.06365966796875, -0.0186309814453125, 0.01125335693359375, -0.0058746337890625, -0.00037288665771484375, -0.03778076171875, 0.048919677734375, 0.004680633544921875, -0.0171356201171875, 0.0042724609375, 0.0012788772583007812, -0.00217437744140625, -0.0110626220703125, 0.00978851318359375, 0.01433563232421875, -0.0120697021484375, -0.0181121826171875, 0.048492431640625, -0.007091522216796875, 0.006801605224609375, 0.0079193115234375, 0.0172882080078125, 0.03363037109375, 0.05853271484375, -0.0160675048828125, -0.0022678375244140625, 0.029083251953125, -0.0007128715515136719, 0.07061767578125, -0.005245208740234375, -0.037139892578125, -0.005504608154296875, 0.039031982421875, -0.02239990234375, 0.0023021697998046875, 0.016998291015625, -0.01508331298828125, 0.00650787353515625, 0.08587646484375, -0.039703369140625, -0.02166748046875, 0.0261077880859375, 0.016357421875, 0.0013523101806640625, -0.0003845691680908203, -0.008270263671875, -0.031005859375, 0.003459930419921875, -0.0103759765625, -0.01556396484375, 0.034423828125, -0.0248565673828125, -0.05242919921875, 0.1307373046875, -0.06854248046875, 0.0458984375, 0.04498291015625, 0.04681396484375, -0.0265045166015625, 0.0201873779296875, -0.038665771484375, -0.0020580291748046875, -0.0300750732421875, 0.0220794677734375, -0.03515625, 0.0010986328125, -0.0194091796875, 0.002460479736328125, 0.037567138671875, 0.0136566162109375, -0.01580810546875, 0.011749267578125, 0.06036376953125, 0.051300048828125, 0.02130126953125, 0.0251007080078125, 0.007472991943359375, 0.0377197265625, 0.03399658203125, -0.017822265625, 0.0256500244140625, -0.013458251953125, -0.0335693359375, 0.0304718017578125, 0.01047515869140625, 0.0034542083740234375, 0.0271453857421875, 0.003536224365234375, -0.0158538818359375, 0.0174102783203125, 0.0262298583984375, -0.026580810546875, 0.0203399658203125, 0.0233917236328125, 0.0276947021484375, -0.00341033935546875, -0.0149688720703125, -0.01352691650390625, 0.036407470703125, 0.0148773193359375, 0.01082611083984375, 0.03424072265625, 0.00846099853515625, 0.0400390625, -0.0103912353515625, -0.0007157325744628906, 0.0097808837890625, 0.01065826416015625, 0.078369140625, 0.04486083984375, 0.034759521484375, -0.0146484375, -0.005718231201171875, 0.06341552734375, 0.08624267578125, -0.059356689453125, -0.0113677978515625, 0.00833892822265625, -0.00824737548828125, 0.00019109249114990234, -0.0283355712890625, -0.003986358642578125, -0.003753662109375, -0.0279998779296875, -0.0059051513671875, -0.0020580291748046875, 0.0312347412109375, 0.0213165283203125, 0.025634765625, 0.035369873046875, -0.024749755859375, -0.01032257080078125, -0.049346923828125, 0.0040283203125, 0.0248870849609375, 0.05364990234375, 0.0173187255859375, 0.045196533203125, 0.0267181396484375, -0.024749755859375, 0.02410888671875, 0.0122833251953125, 0.004749298095703125, -0.03179931640625, -0.0015544891357421875, -0.033355712890625, -0.00373077392578125, 0.03265380859375, -0.0118560791015625, 0.0179595947265625, 0.033935546875, 0.0007610321044921875, -0.046356201171875, -0.033905029296875, 0.01983642578125, -0.03668212890625, 0.019683837890625, -0.0546875, 0.040771484375, -0.0031833648681640625, 0.0088653564453125, -0.0234527587890625, 0.002490997314453125, 0.041473388671875, -0.036041259765625, 0.0105438232421875, -0.002079010009765625, -0.0243072509765625, 0.0665283203125, -0.00792694091796875, -0.0020618438720703125, -0.006504058837890625, -0.0026111602783203125, -0.0030612945556640625, 0.03887939453125, -0.0628662109375, 0.0037689208984375, 0.03631591796875, 0.01120758056640625, -0.010955810546875, -0.02471923828125, -0.00171661376953125, 0.07879638671875, -0.051544189453125, -0.035430908203125, 0.0458984375, 0.02667236328125, -0.01047515869140625, -0.0440673828125, -0.00611114501953125, -0.00981903076171875, 0.0069732666015625, 0.000021636486053466797, 0.08868408203125, -0.0323486328125, -0.01078033447265625, -0.0214080810546875, 0.0026683807373046875, -0.034423828125, -0.0176544189453125, 0.0141143798828125, 0.002899169921875, 0.01554107666015625, -0.01348876953125, -0.033599853515625, 0.05389404296875, 0.006244659423828125, -0.00598907470703125, 0.04296875, -0.0283050537109375, -0.002910614013671875, -0.0007352828979492188, 0.067138671875, -0.0321044921875, -0.0667724609375, -0.03887939453125, 0.0113983154296875, -0.0275115966796875, -0.00040650367736816406, -0.00864410400390625, 0.038787841796875, 0.037841796875, -0.0039215087890625, 0.0250091552734375, -0.0443115234375, 0.0280609130859375, 0.0233001708984375, 0.0506591796875, 0.05487060546875, 0.0262451171875, -0.0216064453125, 0.030426025390625, 0.002834320068359375, -0.0093994140625, 0.0251312255859375, -0.053436279296875, -0.0207061767578125, -0.036895751953125, 0.0035858154296875, -0.0292510986328125, -0.0009851455688476562, -0.02764892578125, 0.01395416259765625, 0.04779052734375, -0.006191253662109375, -0.048126220703125, -0.0565185546875, 0.0262451171875, 0.0318603515625, -0.0234375, -0.01263427734375, -0.06817626953125, 0.004138946533203125, -0.003093719482421875, -0.005584716796875, 0.00045680999755859375, 0.0279388427734375, -0.01529693603515625, -0.007160186767578125, -0.034271240234375, -0.00555419921875, -0.017852783203125, -0.006191253662109375, -0.048248291015625, -0.02655029296875, -0.0380859375, -0.001926422119140625, -0.047943115234375, 0.02166748046875, 0.05133056640625, -0.040496826171875, 0.0113067626953125, -0.0156707763671875, 0.0245361328125, 0.051177978515625, 0.01450347900390625, 0.00038123130798339844, -0.00872039794921875, 0.035369873046875, -0.041473388671875, -0.0858154296875, 0.0306854248046875, -0.0650634765625, -0.01143646240234375, -0.0147857666015625, -0.004245758056640625, 0.00865936279296875, -0.036834716796875, -0.035247802734375, 0.0287933349609375, 0.0101318359375, -0.03741455078125, -0.031890869140625, -0.028350830078125, -0.0180206298828125, 0.072021484375, 0.01441192626953125, -0.01194000244140625, -0.04705810546875, 0.0345458984375, 0.0330810546875, 0.0902099609375, -0.0203857421875, 0.06304931640625, 0.0300750732421875, 0.0557861328125, 0.0137939453125, -0.0012388229370117188, 0.020172119140625, -0.01476287841796875, 0.032501220703125, 0.06732177734375, -0.0173492431640625, -0.0224609375, -0.0203857421875, -0.075439453125, -0.01568603515625, -0.053985595703125, -0.035369873046875, -0.02886962890625, 0.052154541015625, 0.054656982421875, 0.0247955322265625, -0.0181732177734375, -0.02423095703125, -0.01320648193359375, 0.01885986328125, 0.0013608932495117188, 0.008270263671875, -0.050537109375, 0.002803802490234375, 0.0162811279296875, -0.024658203125, -0.007335662841796875, -0.031707763671875, -0.037445068359375, 0.020263671875, -0.0009694099426269531, 0.01166534423828125, 0.00566864013671875, 0.04522705078125, 0.0849609375, -0.062164306640625, -0.0141143798828125, 0.01288604736328125, -0.025360107421875, 0.00859832763671875, -0.044708251953125, 0.0257110595703125, 0.017486572265625, 0.022613525390625, -0.01087188720703125, 0.04107666015625, 0.00862884521484375, 0.03631591796875, -0.021026611328125, -0.0020999908447265625, 0.026458740234375, -0.001842498779296875, 0.0194091796875, -0.000034868717193603516, 0.0224761962890625, -0.0273590087890625, 0.07977294921875, -0.01180267333984375, 0.0478515625, -0.02496337890625, 0.06854248046875, -0.01319122314453125, -0.0063323974609375, 0.026519775390625, -0.0404052734375, 0.0010433197021484375, 0.001560211181640625, -0.01389312744140625, -0.03369140625, 0.02093505859375, 0.0032806396484375, -0.0069427490234375, 0.0185394287109375 ]
d8a27ce64e2ce1e9262a4b6bc7674310777224f7
Wordpress Stackexchange Q: How do i change the search permanent links I have 3 custom searches created using different templates. The search results page loads different results depending on the referrer: <? /* Template Name: Search Results */ $search_refer = $_GET["post_type"]; if ($search_refer == 'post') { load_template(TEMPLATEPATH . '/search/filme.php'); } elseif ($search_refer == 'persoane') { load_template(TEMPLATEPATH . '/search/actori.php'); } elseif ($search_refer == 'trailers') { load_template(TEMPLATEPATH . '/search/trailers.php'); } ?> I'd like to make the url of this page prettier. Right now it looks like this: /?s=After+Earth&post_type=post but I'd like it to look like this: /search/After+Earth/post_type/post How do I make the url more beautiful? A: This snippet should solve your problem. Just put it into your functions.php file. function my_insert_rewrite_rules( $rules ) { $newrules = array(); $newrules['search/([^/]+)/post_type/([^/]+)/?$'] = 'index.php?s=$matches[1]&post_type=$matches[2]'; return $newrules + $rules; } add_filter( 'rewrite_rules_array','my_insert_rewrite_rules' ); function my_flush_rewrite_rules() { flush_rewrite_rules(); } add_action( 'after_switch_theme', 'my_flush_rewrite_rules' ); You will have to flush rewrite rules after adding this code, before it will start to work. Just switch theme to another and back or go to Settings->Permalink Settings and push "Save" button.
Q: How do i change the search permanent links I have 3 custom searches created using different templates. The search results page loads different results depending on the referrer: <? /* Template Name: Search Results */ $search_refer = $_GET["post_type"]; if ($search_refer == 'post') { load_template(TEMPLATEPATH . '/search/filme.php'); } elseif ($search_refer == 'persoane') { load_template(TEMPLATEPATH . '/search/actori.php'); } elseif ($search_refer == 'trailers') { load_template(TEMPLATEPATH . '/search/trailers.php'); } ?> I'd like to make the url of this page prettier. Right now it looks like this: /?s=After+Earth&post_type=post but I'd like it to look like this: /search/After+Earth/post_type/post How do I make the url more beautiful? A: This snippet should solve your problem. Just put it into your functions.php file. function my_insert_rewrite_rules( $rules ) { $newrules = array(); $newrules['search/([^/]+)/post_type/([^/]+)/?$'] = 'index.php?s=$matches[1]&post_type=$matches[2]'; return $newrules + $rules; } add_filter( 'rewrite_rules_array','my_insert_rewrite_rules' ); function my_flush_rewrite_rules() { flush_rewrite_rules(); } add_action( 'after_switch_theme', 'my_flush_rewrite_rules' ); You will have to flush rewrite rules after adding this code, before it will start to work. Just switch theme to another and back or go to Settings->Permalink Settings and push "Save" button. A: first of all ,see this url http://codex.wordpress.org/Using_Permalinks ,and then goo to the admin dashboard Settings->Permalink Settings->Common Settings set the the url as you want,Have a try,just,may be it will help!
wordpress
{ "language": "en", "length": 207, "provenance": "stackexchange_00019.jsonl.gz:427443", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78335" }
[ 0.05230712890625, -0.00146484375, 0.00499725341796875, -0.0302886962890625, -0.00640869140625, -0.01534271240234375, 0.027587890625, -0.0243682861328125, -0.0139617919921875, 0.01316070556640625, -0.0018930435180664062, -0.005367279052734375, -0.0283355712890625, -0.038970947265625, 0.004932403564453125, -0.041534423828125, 0.023895263671875, -0.047760009765625, -0.008087158203125, -0.0372314453125, 0.02484130859375, -0.0272674560546875, 0.0209197998046875, 0.0289459228515625, 0.025604248046875, -0.041015625, 0.0711669921875, -0.027984619140625, 0.0041046142578125, -0.040374755859375, 0.0153350830078125, 0.01410675048828125, 0.04107666015625, 0.001773834228515625, -0.0181732177734375, 0.037994384765625, 0.041290283203125, -0.00632476806640625, 0.0168914794921875, 0.01450347900390625, 0.04620361328125, -0.0274505615234375, -0.0245361328125, -0.0058441162109375, -0.0123138427734375, -0.043212890625, 0.05975341796875, -0.0291290283203125, 0.0149078369140625, -0.0098724365234375, 0.005542755126953125, -0.0011148452758789062, 0.006793975830078125, -0.007495880126953125, -0.002277374267578125, 0.020233154296875, 0.0104827880859375, -0.05023193359375, 0.0193634033203125, -0.01171112060546875, -0.00353240966796875, -0.007427215576171875, 0.018890380859375, 0.0160675048828125, -0.0207061767578125, -0.0176544189453125, 0.005523681640625, 0.0275115966796875, -0.026336669921875, -0.051605224609375, 0.017669677734375, 0.0131988525390625, -0.0075531005859375, -0.0172271728515625, 0.01305389404296875, -0.0090179443359375, 0.011260986328125, -0.0035953521728515625, -0.01788330078125, 0.04095458984375, -0.00494384765625, -0.053070068359375, -0.01157379150390625, -0.0148773193359375, 0.01285552978515625, -0.003696441650390625, -0.00914764404296875, 0.005298614501953125, -0.028961181640625, -0.02386474609375, -0.01052093505859375, -0.045135498046875, -0.0292205810546875, -0.01177215576171875, 0.0183868408203125, -0.05865478515625, 0.002567291259765625, 0.037506103515625, 0.00799560546875, 0.03045654296875, -0.0007448196411132812, -0.04705810546875, 0.05633544921875, -0.0576171875, 0.022735595703125, 0.042236328125, 0.01288604736328125, 0.025482177734375, 0.06536865234375, -0.004451751708984375, 0.01172637939453125, 0.08013916015625, -0.0138092041015625, 0.053070068359375, -0.07733154296875, -0.0146331787109375, -0.044281005859375, -0.0289154052734375, -0.035552978515625, 0.027801513671875, 0.012298583984375, 0.041259765625, 0.0253753662109375, -0.061676025390625, -0.006744384765625, -0.0343017578125, -0.01305389404296875, -0.038360595703125, 0.01129150390625, -0.010650634765625, -0.0037631988525390625, 0.0182037353515625, 0.00949859619140625, 0.040252685546875, -0.0014066696166992188, -0.0035724639892578125, 0.01287078857421875, -0.0167388916015625, -0.031402587890625, 0.040802001953125, -0.00252532958984375, -0.069091796875, -0.019439697265625, 0.0207366943359375, 0.0338134765625, 0.01201629638671875, 0.0297088623046875, 0.02374267578125, -0.024627685546875, -0.0361328125, 0.0421142578125, -0.0157623291015625, 0.0584716796875, -0.01157379150390625, -0.05438232421875, -0.04022216796875, 0.0165252685546875, -0.0190887451171875, -0.0299835205078125, -0.06500244140625, 0.0178375244140625, 0.0023174285888671875, 0.0195159912109375, -0.01434326171875, -0.017791748046875, -0.0261077880859375, -0.05438232421875, -0.0055694580078125, 0.0031261444091796875, 0.001983642578125, 0.01873779296875, 0.023040771484375, 0.004940032958984375, -0.01473236083984375, -0.01155853271484375, -0.040802001953125, 0.00576019287109375, 0.016693115234375, -0.013214111328125, 0.036102294921875, 0.01824951171875, -0.02685546875, 0.0276641845703125, -0.01415252685546875, -0.0777587890625, 0.07177734375, 0.0213165283203125, 0.08245849609375, -0.0110626220703125, 0.00922393798828125, 0.08734130859375, 0.0221710205078125, -0.0163421630859375, 0.026458740234375, -0.009185791015625, -0.0134429931640625, -0.01898193359375, 0.003559112548828125, -0.01187896728515625, -0.0092620849609375, -0.0116729736328125, 0.041046142578125, -0.006317138671875, 0.01335906982421875, -0.038818359375, 0.049102783203125, -0.0352783203125, 0.050811767578125, -0.01837158203125, 0.0221405029296875, 0.0290985107421875, 0.0189666748046875, -0.04779052734375, -0.0095062255859375, -0.004985809326171875, 0.035369873046875, 0.0335693359375, 0.022979736328125, 0.026519775390625, -0.0179290771484375, 0.049346923828125, -0.030792236328125, 0.031829833984375, 0.043792724609375, 0.0163116455078125, -0.007091522216796875, -0.0189361572265625, -0.005077362060546875, -0.035247802734375, 0.0212860107421875, -0.051666259765625, 0.046539306640625, 0.036376953125, 0.0380859375, -0.021240234375, -0.006664276123046875, 0.0169677734375, -0.0210723876953125, 0.00522613525390625, 0.043731689453125, 0.033905029296875, 0.024444580078125, -0.033721923828125, -0.06292724609375, 0.039306640625, -0.0278472900390625, 0.01073455810546875, -0.040283203125, -0.0028820037841796875, 0.040008544921875, -0.0205078125, 0.01375579833984375, 0.0177001953125, -0.0640869140625, -0.0138397216796875, 0.052642822265625, 0.0144195556640625, 0.0253143310546875, -0.005832672119140625, 0.00763702392578125, -0.01410675048828125, 0.01361846923828125, 0.0098876953125, -0.0005850791931152344, 0.0201568603515625, -0.00981903076171875, 0.0114288330078125, -0.01123046875, -0.03387451171875, 0.0146331787109375, 0.028228759765625, 0.006877899169921875, -0.01053619384765625, 0.0162506103515625, 0.01047515869140625, -0.034576416015625, -0.004314422607421875, 0.01027679443359375, -0.007465362548828125, -0.0183868408203125, -0.0012273788452148438, 0.0341796875, -0.0298004150390625, -0.004638671875, -0.03973388671875, -0.06353759765625, 0.00926971435546875, 0.045806884765625, 0.0260162353515625, 0.043853759765625, 0.05938720703125, 0.007411956787109375, -0.0219573974609375, 0.02874755859375, -0.0077056884765625, -0.01318359375, -0.0025539398193359375, -0.033355712890625, 0.0323486328125, -0.0229339599609375, 0.01934814453125, 0.058563232421875, -0.003795623779296875, 0.022003173828125, 0.0180206298828125, 0.041107177734375, 0.031280517578125, 0.013702392578125, -0.005626678466796875, -0.01079559326171875, -0.034637451171875, -0.035308837890625, 0.02838134765625, -0.014984130859375, 0.0438232421875, 0.0022907257080078125, 0.009552001953125, 0.042083740234375, -0.0116424560546875, -0.0262298583984375, 0.0224456787109375, -0.0400390625, -0.02178955078125, 0.023193359375, -0.007152557373046875, -0.01221466064453125, 0.020294189453125, -0.0088958740234375, 0.01934814453125, -0.0177764892578125, -0.058929443359375, -0.03778076171875, -0.0682373046875, -0.006916046142578125, -0.00598907470703125, -0.00667572021484375, 0.00803375244140625, 0.0280914306640625, 0.02618408203125, -0.0295562744140625, 0.02459716796875, 0.058349609375, -0.023162841796875, -0.023162841796875, 0.02813720703125, -0.045867919921875, -0.004238128662109375, -0.010467529296875, 0.030731201171875, 0.0311279296875, -0.02734375, 0.0196990966796875, -0.015716552734375, 0.00881195068359375, -0.0011196136474609375, 0.00017511844635009766, 0.0181121826171875, 0.01334381103515625, 0.00705718994140625, -0.033477783203125, -0.05633544921875, -0.006671905517578125, -0.058197021484375, 0.0156707763671875, 0.07354736328125, -0.019744873046875, -0.024566650390625, -0.00499725341796875, 0.01352691650390625, 0.01171875, 0.022064208984375, -0.04718017578125, 0.0418701171875, 0.01006317138671875, 0.015655517578125, -0.03057861328125, 0.02947998046875, -0.0157318115234375, 0.00981903076171875, 0.01528167724609375, 0.0166778564453125, 0.036468505859375, -0.03594970703125, -0.010009765625, -0.06500244140625, 0.0246734619140625, -0.08062744140625, -0.01519012451171875, -0.070068359375, 0.00399017333984375, -0.02587890625, 0.059478759765625, -0.050140380859375, -0.00334930419921875, -0.003147125244140625, 0.003631591796875, -0.015228271484375, -0.034637451171875, -0.0163116455078125, -0.0097503662109375, -0.1002197265625, -0.011474609375, -0.023712158203125, -0.046142578125, -0.0021839141845703125, -0.014617919921875, -0.032257080078125, -0.05084228515625, 0.04119873046875, -0.02862548828125, 0.0008387565612792969, 0.0293121337890625, -0.00586700439453125, -0.004077911376953125, -0.03594970703125, -0.0191802978515625, -0.0693359375, -0.02606201171875, 0.0382080078125, 0.0440673828125, 0.02215576171875, -0.0679931640625, 0.00872802734375, 0.0733642578125, 0.037628173828125, 0.0195159912109375, -0.00785064697265625, -0.053619384765625, -0.006664276123046875, 0.038970947265625, -0.0097808837890625, 0.0170440673828125, 0.01554107666015625, -0.0009617805480957031, -0.043792724609375, 0.0192413330078125, -0.02667236328125, 0.01065826416015625, 0.005908966064453125, -0.03265380859375, -0.0433349609375, -0.0267333984375, -0.0015354156494140625, 0.00865936279296875, 0.017547607421875, -0.029296875, -0.02001953125, -0.0293731689453125, 0.04827880859375, 0.0014019012451171875, -0.002208709716796875, -0.0138702392578125, 0.040863037109375, 0.0161895751953125, -0.033599853515625, 0.033721923828125, 0.03863525390625, 0.021881103515625, 0.01464080810546875, 0.0284576416015625, 0.004825592041015625, -0.00321197509765625, 0.013031005859375, -0.0222625732421875, -0.0092315673828125, -0.00539398193359375, 0.0210723876953125, -0.002811431884765625, -0.041656494140625, 0.050811767578125, -0.031341552734375, 0.03741455078125, 0.04327392578125, -0.01140594482421875, -0.01172637939453125, -0.0303192138671875, 0.054931640625, 0.002716064453125, 0.0054779052734375, -0.0645751953125, -0.04425048828125, 0.013275146484375, 0.001163482666015625, 0.051483154296875, 0.0210723876953125, -0.004108428955078125, 0.0472412109375, 0.0248565673828125, 0.025360107421875, 0.01171875, 0.0252838134765625, -0.01934814453125, 0.0276641845703125, 0.0330810546875, 0.0082855224609375, -0.0230255126953125, 0.00960540771484375, 0.0111846923828125, 0.01267242431640625, -0.01204681396484375, -0.0293731689453125, -0.01110076904296875, -0.010589599609375, -0.017181396484375, 0.00720977783203125, 0.0255889892578125, 0.02490234375, 0.018280029296875, 0.016204833984375, -0.0185546875, 0.0309295654296875, -0.02020263671875, -0.003387451171875, 0.02593994140625, -0.017303466796875, -0.0175628662109375, 0.05426025390625, 0.01129913330078125, -0.000053822994232177734, -0.007171630859375, -0.0125732421875, -0.0025482177734375, 0.01293182373046875, -0.000025153160095214844, 0.0268096923828125, -0.0005536079406738281, 0.001247406005859375, 0.06097412109375, -0.0226287841796875, 0.003879547119140625, 0.012939453125, 0.0235748291015625, -0.0176239013671875, -0.0124664306640625, 0.0255889892578125, -0.0047454833984375, -0.01522064208984375, 0.0254058837890625, 0.0252227783203125, -0.0126800537109375, -0.0276947021484375, -0.0243377685546875, 0.01403045654296875, 0.0040435791015625, -0.017578125, 0.006378173828125, -0.047332763671875, 0.0158233642578125, 0.00783538818359375, -0.0017900466918945312, -0.019775390625, -0.021240234375, -0.0341796875, -0.037750244140625, 0.04144287109375, -0.061065673828125, 0.00704193115234375, -0.03302001953125, -0.0214996337890625, 0.038299560546875, -0.007022857666015625, 0.0176849365234375, 0.00878143310546875, -0.03155517578125, 0.035888671875, 0.028961181640625, -0.0295867919921875, -0.0594482421875, -0.0343017578125, -0.01019287109375, -0.042510986328125, -0.0014066696166992188, -0.0155029296875, -0.04296875, -0.01271820068359375, 0.00368499755859375, -0.00716400146484375, 0.0250091552734375, -0.0106048583984375, -0.0032024383544921875, 0.02130126953125, -0.0030460357666015625, -0.024078369140625, 0.0243377685546875, 0.0008792877197265625, 0.014923095703125, 0.0166778564453125, 0.027496337890625, 0.019439697265625, -0.012420654296875, -0.047607421875, -0.00228118896484375, -0.033782958984375, -0.06427001953125, 0.002513885498046875, 0.018585205078125, -0.0137481689453125, 0.0875244140625, 0.091796875, 0.0203857421875, 0.018798828125, -0.01361083984375, -0.0186920166015625, -0.036376953125, 0.04974365234375, -0.0384521484375, 0.05218505859375, -0.02117919921875, 0.033599853515625, 0.04278564453125, -0.0209197998046875, -0.0235443115234375, -0.00647735595703125, 0.0014963150024414062, 0.012176513671875, -0.01445770263671875, -0.0533447265625, 0.01071929931640625, 0.042724609375, 0.042205810546875, 0.055450439453125, -0.0090484619140625, 0.037353515625, 0.04925537109375, -0.03924560546875, 0.045989990234375, 0.06396484375, 0.049896240234375, -0.03057861328125, -0.0011262893676757812, 0.01824951171875, -0.02691650390625, -0.00347900390625, 0.024261474609375, -0.007457733154296875, -0.04052734375, -0.017181396484375, -0.03277587890625, -0.03704833984375, 0.0245513916015625, 0.0168914794921875, -0.005283355712890625, 0.00922393798828125, -0.052886962890625, 0.00942230224609375, -0.0301361083984375, -0.0274200439453125, 0.0105438232421875, -0.0013599395751953125, -0.0114593505859375, 0.047576904296875, -0.01107025146484375, -0.01476287841796875, -0.044921875, -0.004886627197265625, -0.0211639404296875, -0.008056640625, 0.0168914794921875, -0.0263214111328125, -0.00885009765625, -0.0119781494140625, 0.02130126953125, -0.043731689453125, 0.007625579833984375, 0.01519775390625, 0.0275115966796875, 0.04150390625, 0.029327392578125, 0.0212554931640625, -0.01290130615234375, 0.00110626220703125, -0.017120361328125, 0.020660400390625, -0.006885528564453125, -0.0022125244140625, 0.0194854736328125, -0.000024437904357910156, 0.015106201171875, -0.0097198486328125, -0.004375457763671875, -0.0278778076171875, -0.0382080078125, 0.06689453125, -0.03155517578125, -0.012359619140625, 0.011260986328125, 0.0196685791015625, 0.010406494140625, 0.00960540771484375, 0.0026226043701171875, -0.062164306640625, -0.059356689453125, 0.005176544189453125, -0.075439453125, -0.0297698974609375, -0.0247955322265625, -0.057861328125, 0.073486328125, 0.01113128662109375, 0.06695556640625, 0.02496337890625, 0.0100555419921875, 0.0029697418212890625, 0.00934600830078125, 0.0062103271484375, 0.023773193359375, 0.006526947021484375, 0.005657196044921875, -0.03131103515625, -0.017852783203125, 0.00916290283203125, 0.06951904296875, 0.03631591796875, 0.0130462646484375, -0.0419921875, 0.010772705078125, 0.05084228515625, 0.0184478759765625, -0.001316070556640625, 0.028472900390625, -0.02325439453125, 0.0290985107421875, 0.0026798248291015625, -0.0782470703125, -0.004444122314453125, -0.0226898193359375, -0.00604248046875, 0.0178070068359375, 0.0126495361328125, 0.018646240234375, 0.00328826904296875, -0.015777587890625, -0.063232421875, 0.006191253662109375, 0.040802001953125, 0.02301025390625, 0.020599365234375, -0.001087188720703125, 0.040313720703125, -0.060302734375, -0.0182952880859375, -0.01678466796875, 0.043914794921875, 0.0178070068359375, 0.00811004638671875, 0.0278778076171875, 0.019989013671875, 0.042022705078125, -0.006160736083984375, 0.004016876220703125, -0.0006537437438964844, 0.0031890869140625, 0.00576019287109375, 0.0740966796875, 0.03851318359375, 0.024139404296875, -0.006008148193359375, 0.0411376953125, 0.040496826171875, -0.0280303955078125, -0.052642822265625, 0.005657196044921875, -0.009857177734375, 0.004150390625, -0.00400543212890625, 0.01436614990234375, -0.0151214599609375, 0.01293182373046875, -0.0140380859375, 0.0024623870849609375, 0.0128326416015625, -0.0078125, -0.019317626953125, -0.03497314453125, 0.0137481689453125, 0.034271240234375, -0.049102783203125, 0.0187835693359375, 0.02081298828125, 0.0645751953125, 0.0139923095703125, 0.04718017578125, -0.00551605224609375, -0.0268096923828125, -0.0239410400390625, 0.00786590576171875, -0.0175628662109375, 0.03607177734375, -0.044403076171875, -0.01523590087890625, 0.007778167724609375, 0.048370361328125, 0.03375244140625, 0.041107177734375, 0.03228759765625, -0.01110076904296875, -0.005451202392578125, 0.00661468505859375, 0.0195770263671875, -0.0287933349609375, 0.04425048828125, -0.0574951171875, 0.03485107421875, -0.022369384765625, 0.00508880615234375, -0.035308837890625, 0.00704193115234375, 0.005130767822265625, 0.0040740966796875, 0.0250396728515625, 0.007709503173828125, -0.0255126953125, 0.03558349609375, -0.0038318634033203125, 0.0914306640625, 0.04638671875, -0.0187835693359375, -0.001796722412109375, -0.009613037109375, -0.062225341796875, 0.037750244140625, 0.057464599609375, -0.0033721923828125, -0.01372528076171875, 0.041168212890625, 0.02215576171875, -0.0158538818359375, -0.0034656524658203125, -0.001399993896484375, -0.0175628662109375, 0.034576416015625, 0.0146484375, -0.0435791015625, -0.0235137939453125, 0.0054779052734375, 0.00909423828125, -0.00864410400390625, 0.10205078125, -0.0325927734375, 0.000774383544921875, -0.0018949508666992188, 0.01378631591796875, -0.0093536376953125, -0.01380157470703125, 0.024871826171875, -0.0197296142578125, -0.007099151611328125, 0.004573822021484375, 0.012451171875, 0.005962371826171875, 0.01904296875, -0.0460205078125, 0.035430908203125, -0.031158447265625, 0.0069732666015625, -0.045501708984375, 0.00696563720703125, -0.0396728515625, -0.0389404296875, -0.003631591796875, -0.00629425048828125, -0.00768280029296875, -0.02459716796875, -0.0166015625, 0.06951904296875, 0.0167999267578125, 0.003509521484375, 0.0172882080078125, -0.056427001953125, 0.0556640625, 0.058074951171875, -0.0240631103515625, 0.005901336669921875, 0.0290679931640625, -0.0307769775390625, 0.02655029296875, 0.01107025146484375, -0.003337860107421875, 0.01479339599609375, -0.0521240234375, -0.034423828125, -0.058624267578125, -0.0045623779296875, -0.0129547119140625, -0.016448974609375, -0.04254150390625, -0.0007963180541992188, -0.01514434814453125, 0.007232666015625, -0.0289764404296875, 0.0095977783203125, -0.0027313232421875, 0.0013132095336914062, 0.0276031494140625, -0.0257568359375, -0.005062103271484375, -0.00518035888671875, 0.056640625, 0.05181884765625, -0.12200927734375, 0.039581298828125, 0.0093841552734375, 0.06353759765625, 0.0201263427734375, -0.06292724609375, -0.00499725341796875, 0.01055908203125, -0.00836181640625, -0.02593994140625, -0.06298828125, -0.0023212432861328125, -0.04791259765625, -0.0303955078125, 0.032196044921875, 0.012359619140625, -0.0143280029296875, -0.04315185546875, -0.0369873046875, 0.004779815673828125, -0.060394287109375, -0.007598876953125, 0.0430908203125, 0.0011959075927734375, -0.060211181640625, -0.034637451171875, 0.01093292236328125, -0.0157318115234375, 0.0028438568115234375, 0.0257110595703125, -0.00881195068359375, 0.01342010498046875, -0.0245819091796875, -0.0550537109375, 0.0494384765625, 0.0049285888671875, -0.0244293212890625, -0.07843017578125, -0.02105712890625, -0.006488800048828125, 0.039581298828125, -0.008087158203125, -0.041473388671875, -0.06988525390625, 0.03619384765625, 0.0148468017578125, 0.059661865234375, -0.00629425048828125, 0.0362548828125, -0.03173828125, 0.0198211669921875, -0.02044677734375, -0.002124786376953125, 0.0246734619140625, -0.02520751953125, 0.04449462890625, 0.02825927734375, -0.028045654296875, -0.0208892822265625, -0.0022220611572265625, -0.042816162109375, 0.00402069091796875, -0.048736572265625, -0.05853271484375, -0.03582763671875, 0.09466552734375, 0.01128387451171875, 0.01812744140625, -0.01244354248046875, 0.0303802490234375, -0.0033168792724609375, -0.046600341796875, -0.031707763671875, 0.0311431884765625, -0.05657958984375, -0.035552978515625, -0.000865936279296875, -0.0092010498046875, -0.0149688720703125, -0.00308990478515625, -0.0186004638671875, -0.005336761474609375, 0.0155487060546875, -0.00487518310546875, -0.01032257080078125, 0.04083251953125, 0.07513427734375, -0.04766845703125, -0.0236968994140625, -0.0152435302734375, 0.00460052490234375, 0.004131317138671875, -0.0804443359375, 0.013824462890625, 0.0535888671875, -0.01904296875, -0.017181396484375, 0.042877197265625, -0.009033203125, -0.004970550537109375, 0.016510009765625, 0.00556182861328125, -0.0091552734375, -0.015655517578125, -0.04278564453125, -0.0438232421875, 0.0758056640625, -0.022857666015625, 0.1282958984375, -0.039459228515625, 0.0277557373046875, -0.0016956329345703125, 0.00249481201171875, -0.04852294921875, 0.0372314453125, 0.01377105712890625, -0.01242828369140625, -0.0017614364624023438, -0.01043701171875, -0.031158447265625, -0.041107177734375, -0.005153656005859375, -0.051239013671875, -0.006969451904296875, 0.009765625 ]
3cebda69c54c4d1d5e26d45586f129f9c5849e4b
Wordpress Stackexchange Q: How to change post status in hook? I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to use wp_transition_post_status but it doesn't work for me... function myHook( $post_ID, $post ) { wp_transition_post_status('pending', $post->post_status, $post ); } add_action( 'save_post', 'myHook', 10, 2 ); Edit: I have clear wordpress installation without any plugins, additional code and similar A: You get the full post object as a second parameter on save_post. Use it to change the status just like the following code. add_action( 'save_post', 'wpse_78351_status', 10, 2 ); function wpse_78351_status( $post_ID, $post ) { remove_filter( current_filter(), __FUNCTION__ ); if ( 'trash' !== $post->post_status ) //adjust the condition { $post->post_status = 'draft'; // use any post status wp_update_post( $post ); } } See this answer for a list of post statuses.
Q: How to change post status in hook? I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to use wp_transition_post_status but it doesn't work for me... function myHook( $post_ID, $post ) { wp_transition_post_status('pending', $post->post_status, $post ); } add_action( 'save_post', 'myHook', 10, 2 ); Edit: I have clear wordpress installation without any plugins, additional code and similar A: You get the full post object as a second parameter on save_post. Use it to change the status just like the following code. add_action( 'save_post', 'wpse_78351_status', 10, 2 ); function wpse_78351_status( $post_ID, $post ) { remove_filter( current_filter(), __FUNCTION__ ); if ( 'trash' !== $post->post_status ) //adjust the condition { $post->post_status = 'draft'; // use any post status wp_update_post( $post ); } } See this answer for a list of post statuses.
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:427447", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78351" }
[ 0.0296173095703125, -0.006011962890625, -0.024566650390625, 0.016021728515625, 0.02294921875, -0.056884765625, 0.0731201171875, -0.028228759765625, 0.007190704345703125, 0.0052642822265625, -0.0033664703369140625, -0.002277374267578125, -0.028228759765625, -0.0309600830078125, -0.0024280548095703125, -0.0219268798828125, 0.0343017578125, -0.0321044921875, 0.0274200439453125, -0.0078125, -0.007350921630859375, 0.0090484619140625, 0.056793212890625, -0.00981903076171875, 0.00567626953125, 0.01320648193359375, 0.039276123046875, -0.056121826171875, 0.003765106201171875, -0.0203704833984375, 0.01806640625, 0.0013647079467773438, 0.03289794921875, 0.0235137939453125, -0.062286376953125, 0.06317138671875, 0.027130126953125, 0.00521087646484375, -0.0196533203125, 0.0628662109375, 0.016876220703125, -0.005275726318359375, 0.0006060600280761719, -0.0283355712890625, -0.00827789306640625, -0.0244903564453125, 0.0212860107421875, -0.0190582275390625, 0.0631103515625, -0.0262451171875, 0.0256500244140625, -0.0164642333984375, 0.031982421875, -0.01435089111328125, -0.04315185546875, -0.00803375244140625, -0.037933349609375, 0.036712646484375, 0.042266845703125, 0.037689208984375, -0.0224151611328125, -0.008880615234375, -0.016326904296875, -0.059967041015625, 0.0026149749755859375, -0.0068817138671875, 0.00457763671875, 0.0252838134765625, -0.031158447265625, -0.0054168701171875, 0.018829345703125, -0.038818359375, -0.00817108154296875, 0.005153656005859375, -0.00658416748046875, -0.02056884765625, 0.017822265625, -0.0147552490234375, 0.01139068603515625, 0.02630615234375, 0.060302734375, -0.0020999908447265625, 0.03717041015625, -0.0308685302734375, 0.03192138671875, -0.01056671142578125, 0.003650665283203125, -0.01029205322265625, -0.041778564453125, -0.0179443359375, -0.0307159423828125, -0.0165252685546875, -0.0280914306640625, -0.0233917236328125, 0.0006933212280273438, -0.0237884521484375, -0.01432037353515625, 0.0016918182373046875, -0.005126953125, 0.010986328125, 0.0006585121154785156, -0.0276336669921875, 0.03033447265625, -0.0279693603515625, -0.002185821533203125, 0.030670166015625, 0.022796630859375, -0.0316162109375, 0.010345458984375, 0.00617218017578125, -0.020172119140625, 0.031005859375, -0.0115814208984375, 0.0256805419921875, -0.06243896484375, -0.032562255859375, -0.06207275390625, -0.00696563720703125, -0.028839111328125, -0.00507354736328125, 0.03717041015625, 0.041290283203125, 0.0131072998046875, -0.04486083984375, -0.004180908203125, -0.01096343994140625, -0.038238525390625, -0.059478759765625, 0.00689697265625, -0.001491546630859375, -0.0263519287109375, 0.002651214599609375, 0.0986328125, 0.037841796875, 0.0215606689453125, -0.005828857421875, 0.01371002197265625, -0.0200958251953125, -0.033782958984375, 0.05120849609375, -0.039459228515625, -0.06683349609375, -0.015411376953125, -0.022796630859375, 0.0052337646484375, 0.0379638671875, 0.01447296142578125, -0.019927978515625, -0.00675201416015625, -0.039825439453125, -0.0025081634521484375, -0.048797607421875, 0.05364990234375, 0.007205963134765625, -0.011383056640625, -0.050506591796875, 0.0548095703125, -0.051544189453125, -0.0219573974609375, -0.072998046875, 0.04522705078125, -0.0103759765625, 0.01406097412109375, 0.00203704833984375, -0.03424072265625, 0.0189666748046875, -0.0828857421875, -0.01406097412109375, 0.0129852294921875, 0.005733489990234375, 0.000012218952178955078, 0.04168701171875, -0.00860595703125, -0.021820068359375, -0.0108184814453125, -0.0181884765625, -0.01308441162109375, 0.01308441162109375, 0.020294189453125, -0.0056915283203125, -0.04119873046875, -0.048919677734375, 0.0263519287109375, -0.00820159912109375, -0.02679443359375, 0.051055908203125, 0.018707275390625, 0.052337646484375, -0.03521728515625, 0.0269927978515625, 0.01238250732421875, 0.046142578125, -0.03948974609375, -0.004756927490234375, -0.0196990966796875, -0.01641845703125, -0.003467559814453125, -0.01134490966796875, 0.0008182525634765625, 0.032989501953125, 0.0102996826171875, 0.042816162109375, -0.04559326171875, 0.019866943359375, -0.06549072265625, 0.01201629638671875, -0.0254058837890625, 0.049346923828125, 0.0033321380615234375, 0.01511383056640625, 0.0229949951171875, -0.008087158203125, -0.0175933837890625, -0.0030612945556640625, -0.0218353271484375, -0.006366729736328125, -0.03192138671875, -0.0205078125, -0.0076751708984375, 0.03228759765625, -0.016021728515625, -0.0099029541015625, -0.047332763671875, -0.0300750732421875, 0.031768798828125, -0.01467132568359375, 0.007366180419921875, -0.01175689697265625, 0.0377197265625, 0.022796630859375, -0.004886627197265625, -0.010009765625, 0.0181732177734375, 0.00251007080078125, -0.005062103271484375, 0.01123046875, 0.007190704345703125, -0.11724853515625, 0.001148223876953125, 0.073486328125, 0.0181732177734375, 0.007793426513671875, -0.0189361572265625, 0.019866943359375, 0.0362548828125, 0.00937652587890625, 0.0239105224609375, 0.002056121826171875, 0.0245208740234375, 0.047027587890625, -0.0194091796875, 0.0174407958984375, 0.014190673828125, -0.0255889892578125, 0.036865234375, 0.023956298828125, -0.015655517578125, -0.017822265625, 0.029754638671875, -0.0364990234375, 0.0197296142578125, -0.03900146484375, -0.045501708984375, -0.00835418701171875, 0.0555419921875, -0.01763916015625, 0.059814453125, 0.03228759765625, -0.01140594482421875, -0.02813720703125, 0.003604888916015625, -0.02001953125, 0.009796142578125, 0.03277587890625, -0.00891876220703125, 0.05035400390625, -0.025787353515625, -0.01953125, 0.0233154296875, 0.026397705078125, -0.0253143310546875, 0.0063629150390625, -0.0129241943359375, -0.0091552734375, 0.01236724853515625, -0.0160980224609375, 0.006130218505859375, -0.00531768798828125, 0.015960693359375, -0.01434326171875, 0.0176849365234375, 0.01018524169921875, -0.0070037841796875, 0.020263671875, 0.006603240966796875, -0.034423828125, 0.006526947021484375, -0.0810546875, 0.060394287109375, -0.034820556640625, 0.034515380859375, 0.08013916015625, 0.01328277587890625, -0.0009760856628417969, 0.0043792724609375, 0.004116058349609375, -0.0167694091796875, 0.031341552734375, 0.0006422996520996094, -0.0308380126953125, -0.025787353515625, 0.0185089111328125, 0.0241851806640625, 0.06573486328125, -0.01329803466796875, -0.041595458984375, 0.005893707275390625, 0.041351318359375, -0.0260772705078125, -0.019378662109375, -0.0279541015625, -0.0496826171875, -0.01531982421875, -0.011627197265625, -0.0206756591796875, 0.0029296875, 0.0009665489196777344, 0.01300048828125, -0.042449951171875, 0.023773193359375, -0.0241546630859375, -0.0025081634521484375, -0.00992584228515625, 0.02032470703125, -0.0265655517578125, 0.00489044189453125, 0.01107025146484375, 0.10772705078125, 0.0189361572265625, -0.09228515625, -0.033050537109375, 0.06243896484375, -0.041717529296875, 0.012786865234375, -0.01258087158203125, -0.031707763671875, 0.01078033447265625, -0.0004601478576660156, 0.007232666015625, 0.006561279296875, -0.00001049041748046875, -0.00893402099609375, -0.0411376953125, -0.0036563873291015625, -0.0066070556640625, 0.0243682861328125, 0.03662109375, -0.01175689697265625, 0.0146636962890625, -0.0399169921875, -0.0054779052734375, -0.018707275390625, -0.036285400390625, -0.006134033203125, -0.0086212158203125, 0.0112152099609375, -0.006805419921875, 0.023101806640625, -0.0292205810546875, -0.00528717041015625, 0.039093017578125, -0.019012451171875, 0.0026187896728515625, -0.03857421875, -0.046722412109375, -0.01393890380859375, -0.036712646484375, -0.00907135009765625, 0.032745361328125, -0.01375579833984375, 0.0101318359375, -0.023956298828125, 0.0310821533203125, -0.029205322265625, -0.07318115234375, 0.0204620361328125, -0.1253662109375, -0.0146331787109375, -0.08160400390625, 0.01213836669921875, -0.00792694091796875, 0.09344482421875, -0.03436279296875, -0.01465606689453125, -0.0301513671875, 0.0002713203430175781, -0.0111083984375, -0.04058837890625, -0.0185546875, -0.0002321004867553711, -0.052978515625, 0.0095062255859375, -0.004192352294921875, -0.00957489013671875, -0.0362548828125, -0.00479888916015625, -0.0296173095703125, -0.01953125, 0.024444580078125, -0.02374267578125, 0.0013227462768554688, 0.0166778564453125, -0.0265350341796875, 0.021514892578125, -0.0213165283203125, -0.023895263671875, -0.0643310546875, -0.027984619140625, 0.00933074951171875, 0.0389404296875, 0.00994873046875, -0.038787841796875, 0.004322052001953125, 0.03753662109375, 0.0247344970703125, 0.05322265625, -0.0249481201171875, -0.005863189697265625, 0.00757598876953125, -0.0291595458984375, -0.002506256103515625, -0.00852203369140625, -0.0117034912109375, -0.018829345703125, -0.01116180419921875, 0.00795745849609375, -0.01532745361328125, -0.007724761962890625, 0.01776123046875, -0.023895263671875, -0.0657958984375, -0.032928466796875, -0.004322052001953125, 0.0120391845703125, -0.0163726806640625, 0.016204833984375, -0.054901123046875, -0.0650634765625, 0.0628662109375, -0.014678955078125, -0.014129638671875, -0.01021575927734375, 0.0885009765625, 0.0164642333984375, -0.01457977294921875, -0.0213775634765625, -0.046661376953125, 0.024383544921875, -0.0041656494140625, 0.00998687744140625, 0.004154205322265625, -0.0084991455078125, 0.02679443359375, -0.0088653564453125, -0.053253173828125, 0.0280914306640625, 0.028289794921875, 0.027099609375, -0.0151519775390625, -0.014892578125, -0.011749267578125, 0.037689208984375, 0.007259368896484375, -0.0245361328125, -0.0019330978393554688, -0.0013370513916015625, 0.0361328125, -0.0186614990234375, 0.035491943359375, -0.02520751953125, -0.035186767578125, 0.01146697998046875, -0.004444122314453125, -0.0279388427734375, 0.015960693359375, 0.00878143310546875, -0.01265716552734375, -0.00070953369140625, -0.006961822509765625, -0.06427001953125, -0.028594970703125, -0.01218414306640625, 0.006359100341796875, 0.00637054443359375, 0.00794219970703125, -0.038421630859375, 0.0022563934326171875, 0.0040740966796875, -0.01546478271484375, -0.056915283203125, -0.010284423828125, 0.0028285980224609375, 0.03851318359375, 0.034912109375, 0.001026153564453125, 0.029083251953125, 0.02978515625, -0.0303192138671875, -0.0177764892578125, 0.01100921630859375, 0.007328033447265625, -0.048126220703125, -0.0015821456909179688, 0.046539306640625, -0.02459716796875, 0.0384521484375, 0.01396942138671875, 0.0550537109375, 0.0006327629089355469, -0.036712646484375, 0.03399658203125, 0.032989501953125, -0.0161590576171875, 0.0233154296875, 0.0197601318359375, -0.0015659332275390625, -0.047027587890625, 0.0021343231201171875, -0.0300140380859375, 0.0246124267578125, 0.0170745849609375, -0.00032830238342285156, -0.003879547119140625, -0.0238800048828125, 0.035552978515625, -0.00908660888671875, -0.0122833251953125, 0.052520751953125, 0.044158935546875, -0.047882080078125, -0.00768280029296875, 0.0279083251953125, 0.0205078125, -0.0183258056640625, -0.0008325576782226562, -0.023529052734375, -0.01248931884765625, 0.00785064697265625, -0.042694091796875, -0.006015777587890625, 0.004314422607421875, 0.01172637939453125, -0.0206298828125, -0.03155517578125, 0.0107574462890625, -0.03509521484375, 0.01537322998046875, -0.01456451416015625, -0.01861572265625, 0.037353515625, -0.0289764404296875, -0.0084381103515625, -0.0433349609375, 0.045806884765625, -0.021728515625, -0.002422332763671875, 0.040496826171875, 0.00018596649169921875, -0.00098419189453125, -0.01294708251953125, -0.0421142578125, -0.03411865234375, 0.0028362274169921875, -0.010589599609375, -0.0377197265625, -0.0172119140625, 0.030792236328125, 0.043670654296875, -0.018829345703125, -0.06085205078125, -0.0110321044921875, -0.0165863037109375, 0.035064697265625, 0.06170654296875, 0.0028133392333984375, 0.08013916015625, -0.0165863037109375, 0.0836181640625, 0.0225830078125, 0.00861358642578125, -0.06256103515625, -0.0126190185546875, -0.01348114013671875, -0.0174102783203125, 0.015625, -0.005130767822265625, 0.02178955078125, 0.0162353515625, 0.036102294921875, 0.00925445556640625, -0.00943756103515625, 0.01519775390625, 0.024658203125, -0.01666259765625, -0.0151824951171875, 0.01491546630859375, -0.0127716064453125, 0.01507568359375, -0.01079559326171875, -0.0058746337890625, -0.00839996337890625, 0.044036865234375, -0.01336669921875, -0.041015625, -0.0167694091796875, 0.0105743408203125, -0.04803466796875, 0.0161590576171875, 0.027740478515625, 0.0428466796875, 0.03741455078125, -0.0250091552734375, 0.0316162109375, 0.0063629150390625, 0.0026226043701171875, 0.002880096435546875, 0.018341064453125, 0.06854248046875, 0.0008606910705566406, -0.018463134765625, 0.036376953125, -0.041961669921875, 0.0257110595703125, 0.054168701171875, 0.08087158203125, -0.090576171875, 0.0408935546875, 0.044525146484375, 0.004791259765625, 0.047760009765625, -0.019012451171875, -0.005702972412109375, -0.0236968994140625, 0.01348876953125, -0.0016946792602539062, -0.03369140625, -0.006397247314453125, -0.006435394287109375, -0.0027523040771484375, -0.0394287109375, 0.01788330078125, 0.0029048919677734375, -0.0562744140625, 0.0162811279296875, 0.0321044921875, 0.0008168220520019531, -0.0230255126953125, 0.018798828125, -0.00762939453125, -0.016357421875, -0.06500244140625, -0.013946533203125, 0.00418853759765625, -0.0213775634765625, 0.0092315673828125, 0.030303955078125, 0.04327392578125, 0.039031982421875, 0.02911376953125, -0.0207366943359375, 0.018157958984375, -0.00290679931640625, -0.0906982421875, 0.007476806640625, 0.01446533203125, 0.044097900390625, 0.01372528076171875, 0.039947509765625, -0.0258636474609375, -0.0141143798828125, -0.01091766357421875, -0.0307769775390625, 0.0889892578125, -0.031707763671875, -0.0185089111328125, 0.005970001220703125, -0.0017480850219726562, 0.00022232532501220703, 0.005519866943359375, 0.031005859375, -0.04949951171875, -0.033050537109375, -0.0018186569213867188, -0.06719970703125, -0.05316162109375, -0.04254150390625, -0.082763671875, 0.11981201171875, 0.04803466796875, 0.0291290283203125, -0.02374267578125, 0.048095703125, -0.06292724609375, 0.005603790283203125, -0.0723876953125, 0.07305908203125, 0.021728515625, 0.05419921875, -0.032684326171875, 0.0196075439453125, 0.0217437744140625, -0.019989013671875, 0.04766845703125, 0.017364501953125, -0.0192718505859375, -0.00420379638671875, 0.037078857421875, 0.031402587890625, -0.0077362060546875, 0.029266357421875, -0.0257720947265625, 0.04583740234375, -0.01190185546875, -0.06109619140625, 0.040618896484375, -0.0765380859375, -0.050201416015625, -0.00984954833984375, 0.0330810546875, 0.023956298828125, -0.015899658203125, 0.03515625, -0.060150146484375, -0.0023479461669921875, 0.048004150390625, 0.004730224609375, 0.027130126953125, 0.00714111328125, 0.018829345703125, -0.0177001953125, 0.015228271484375, -0.0194244384765625, 0.0450439453125, -0.0055389404296875, 0.0223236083984375, 0.0169525146484375, 0.0181884765625, 0.0484619140625, -0.021881103515625, -0.0076751708984375, 0.0143585205078125, -0.0025501251220703125, 0.04742431640625, 0.0238189697265625, 0.00830841064453125, -0.01116180419921875, 0.0904541015625, 0.02520751953125, 0.0474853515625, -0.0682373046875, -0.0242156982421875, 0.005352020263671875, 0.0205078125, 0.00670623779296875, -0.0099945068359375, 0.03521728515625, -0.0166168212890625, 0.0104217529296875, -0.0328369140625, -0.0235595703125, 0.0173797607421875, 0.035797119140625, -0.005290985107421875, 0.016021728515625, -0.036346435546875, -0.04010009765625, -0.0423583984375, -0.02178955078125, 0.035858154296875, 0.048797607421875, 0.0269775390625, 0.0347900390625, 0.040374755859375, -0.01116943359375, 0.00402069091796875, 0.0171966552734375, 0.019927978515625, -0.017669677734375, -0.01506805419921875, -0.0292510986328125, 0.02130126953125, 0.0226593017578125, -0.0036983489990234375, 0.0450439453125, 0.04949951171875, 0.0477294921875, -0.03607177734375, -0.0125732421875, 0.0489501953125, -0.0313720703125, -0.04168701171875, -0.056976318359375, 0.00665283203125, 0.0195465087890625, 0.00865936279296875, 0.04498291015625, 0.0036525726318359375, 0.022918701171875, -0.0357666015625, 0.073486328125, -0.0214385986328125, -0.011383056640625, 0.052276611328125, 0.018646240234375, 0.09552001953125, 0.01123809814453125, -0.0496826171875, -0.0095672607421875, -0.033935546875, 0.0126495361328125, 0.003543853759765625, 0.01482391357421875, -0.006412506103515625, 0.045501708984375, -0.01495361328125, -0.00858306884765625, 0.03924560546875, -0.00989532470703125, 0.0009160041809082031, 0.02471923828125, 0.008758544921875, 0.0013904571533203125, -0.043487548828125, -0.026580810546875, -0.0240631103515625, 0.03851318359375, -0.0225982666015625, 0.059234619140625, -0.0160675048828125, 0.01412200927734375, -0.053558349609375, 0.01059722900390625, -0.048980712890625, -0.0350341796875, -0.03619384765625, -0.0126190185546875, 0.01073455810546875, 0.031707763671875, 0.032073974609375, 0.034271240234375, 0.032196044921875, -0.0119476318359375, 0.00676727294921875, -0.025848388671875, 0.01092529296875, -0.004962921142578125, -0.003337860107421875, -0.02410888671875, -0.0005564689636230469, 0.01297760009765625, 0.01273345947265625, 0.00977325439453125, -0.0030975341796875, -0.00392913818359375, 0.042083740234375, -0.01020050048828125, -0.015625, 0.0081329345703125, -0.01947021484375, -0.003017425537109375, 0.0297088623046875, -0.032806396484375, 0.01442718505859375, 0.029449462890625, -0.0146942138671875, 0.031585693359375, 0.00302886962890625, 0.025665283203125, 0.00970458984375, -0.033447265625, -0.0179443359375, -0.004909515380859375, 0.01153564453125, -0.0012617111206054688, 0.003803253173828125, 0.02301025390625, -0.0185089111328125, -0.03955078125, 0.030609130859375, -0.0189361572265625, -0.01043701171875, -0.004150390625, -0.01079559326171875, 0.005718231201171875, -0.05731201171875, -0.01529693603515625, -0.0265960693359375, 0.028961181640625, -0.005153656005859375, 0.0109710693359375, -0.01898193359375, -0.028045654296875, -0.01373291015625, 0.0227813720703125, -0.0309600830078125, 0.0175018310546875, 0.045501708984375, -0.0029773712158203125, 0.0036029815673828125, -0.01318359375, 0.00927734375, -0.0031681060791015625, -0.02227783203125, 0.0189208984375, -0.01432037353515625, -0.03985595703125, -0.051361083984375, -0.01291656494140625, -0.0178375244140625, 0.0245361328125, -0.0287628173828125, -0.0243988037109375, 0.040557861328125, -0.0030460357666015625, -0.040924072265625, 0.0165863037109375, -0.0382080078125, -0.005802154541015625, -0.012969970703125, 0.016998291015625, 0.0401611328125, -0.025360107421875, -0.05029296875, 0.04864501953125, -0.01361083984375, -0.0222625732421875, -0.0537109375, 0.005252838134765625, -0.0005197525024414062, 0.0244598388671875, -0.0113983154296875, -0.0244293212890625, -0.0257110595703125, 0.0181121826171875, -0.01715087890625, 0.073486328125, -0.02740478515625, -0.006000518798828125, -0.054046630859375, 0.000025391578674316406, -0.0094451904296875, 0.003650665283203125, -0.01389312744140625, -0.0103302001953125, 0.01451873779296875, 0.0171966552734375, -0.051025390625, 0.0059051513671875, 0.0128936767578125, 0.0179443359375, 0.0185546875, -0.046905517578125, -0.038848876953125, -0.02496337890625, 0.068115234375, 0.0168609619140625, 0.0230865478515625, -0.0181732177734375, 0.04083251953125, -0.03656005859375, -0.043792724609375, -0.0037441253662109375, 0.0126953125, -0.043365478515625, -0.0214691162109375, 0.0275421142578125, 0.0258026123046875, -0.015625, -0.046356201171875, 0.0030536651611328125, -0.037811279296875, 0.00888824462890625, 0.01174163818359375, -0.0048065185546875, -0.032196044921875, 0.043304443359375, -0.014801025390625, 0.005115509033203125, 0.04156494140625, 0.014739990234375, 0.0212249755859375, 0.09771728515625, 0.01001739501953125, 0.039337158203125, -0.0292205810546875, -0.01514434814453125, 0.0215606689453125, 0.004241943359375, -0.00382232666015625, 0.004058837890625, -0.0194244384765625, -0.0188140869140625, 0.0027332305908203125, -0.037933349609375, -0.016326904296875, -0.0107879638671875, -0.0009341239929199219, 0.06866455078125, -0.026580810546875, 0.048370361328125, 0.01824951171875, -0.006320953369140625, -0.014312744140625, 0.006542205810546875, 0.054046630859375, -0.04852294921875, 0.0109405517578125, -0.006290435791015625, 0.0199737548828125, -0.0312347412109375, 0.046875, -0.027801513671875, -0.00699615478515625, 0.0273895263671875 ]
0f320006c2b0d8cb44f82f267bc24e221e510dfe
Wordpress Stackexchange Q: Admin user can't update WP I have a site running WP 3.3.2. The backend shows a bar saying "WordPress 3.5 is available! Please notify the site administrator." Funny thing is that I'm logged in with an admin user, I double checked that. When trying to access the update page (at wp-admin/update-core.php) I get this error: "You do not have sufficient permissions to access this page." Any hints on what could be going on here? Thanks. A: For anyone else with this problem, there is another line that you may have to find in your wp-config or functions file and change to false: define('DISALLOW_FILE_EDIT', true);
Q: Admin user can't update WP I have a site running WP 3.3.2. The backend shows a bar saying "WordPress 3.5 is available! Please notify the site administrator." Funny thing is that I'm logged in with an admin user, I double checked that. When trying to access the update page (at wp-admin/update-core.php) I get this error: "You do not have sufficient permissions to access this page." Any hints on what could be going on here? Thanks. A: For anyone else with this problem, there is another line that you may have to find in your wp-config or functions file and change to false: define('DISALLOW_FILE_EDIT', true); A: I had this problem once. You should check your wp-config.php file and if you find this line define('DISALLOW_FILE_MODS',true); change its value to false: define('DISALLOW_FILE_MODS',false); A: Try to make a new admin user in the db. Follow these steps you should be able to create a new admin user, then update and then you can give your old user admin rights again. Or use the new user. Your old user might have wrong setting in the DB http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database A: WordPress was telling me I didn't have 'sufficient permissions' to update my own install even when logged in as the Administrator. I had the following line in my wp-config.php file: define('DISALLOW_FILE_MODS',true); I was able to apply updates once again after I changed this line to: define('DISALLOW_FILE_MODS',false); A: Add the following code to a file in your wordpress root and go to that page. <?php define('WP_USE_THEMES', false); require('wp-blog-header.php'); $role = get_role('administrator'); echo '<pre>'; print_r($role); echo '</pre>'; Now, look for [update_core] in the text displayed. It's value should be 1. If not, add the following line after the $role = get_role('administrator') line to add the update_core capability to the administrator. $role->add_cap( 'update_core' ); Reload the page to see if the value of [update_core] is 1. If it is 1, you can try to do the update. Don't forget to delete the file you've added afterwards. Method 2: Get on PHPMyadmin and go to the wp_users table. Look for your user ID. Now go to wp_usermeta and change the wp_capabilities of your user ID to a:1:{s:13:"administrator";b:1;}. Do a backup before touching the database, just in case. A: I encountered this issue once when updating a 3.9.19 installation. I followed @RRikesh answer and everything seemed to be normal but still I can't run update. It turns out a define('DISALLOW_FILE_MODS',true); was configured in functions.php. So yeah, look for that line in your wp-config.php as well as functions.php. Not sure if adding that line to functions.php is common practice since most answers here only suggest looking at wp-config.php A: Often you have to deal with giving your wordpress installation the correct file and directory permissions. If you can log into your server via SSH it is no problem at all. * *Reset permission of all files to 664: find /var/www/html/ -type f -exec chmod 664 {} \; *Reset permission of directories to 775: find /var/www/html/ -type d -exec chmod 775 {} \; *Get user which is running Apache (User should be the first row/column): ps aux | grep apache *Retrieve the groups the user is part of: groups [username] *Reset the group to the group running Apache: chgrp -R [group] /var/www/html/ Now you should be able to update Wordpress automatically from your backend. A: This is a shot in the dark, but do you by chance have any mu-plugins that could be causing this? wp-content/mu-plugins
wordpress
{ "language": "en", "length": 573, "provenance": "stackexchange_00019.jsonl.gz:427469", "question_score": "19", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78419" }
[ 0.05169677734375, 0.009552001953125, -0.001873016357421875, -0.0299072265625, 0.0171051025390625, -0.032562255859375, 0.0218658447265625, -0.04779052734375, 0.03643798828125, 0.0272216796875, -0.0533447265625, -0.005146026611328125, 0.01045989990234375, 0.01244354248046875, -0.053985595703125, -0.027008056640625, 0.043121337890625, -0.002704620361328125, 0.022918701171875, 0.0023555755615234375, -0.008575439453125, 0.0416259765625, 0.004589080810546875, 0.022491455078125, -0.008270263671875, 0.0008215904235839844, 0.0185089111328125, -0.03717041015625, 0.01308441162109375, -0.00466156005859375, 0.0083770751953125, -0.00872039794921875, 0.01513671875, 0.02252197265625, -0.0170135498046875, -0.04913330078125, -0.0102691650390625, 0.00555419921875, 0.004650115966796875, -0.0008616447448730469, -0.01322174072265625, 0.01490020751953125, 0.0273590087890625, 0.0697021484375, -0.0215606689453125, -0.0654296875, 0.0093536376953125, -0.032135009765625, 0.032623291015625, -0.0110626220703125, -0.013702392578125, -0.01351165771484375, -0.010711669921875, -0.01099395751953125, -0.00013828277587890625, 0.018280029296875, 0.0236968994140625, 0.00881195068359375, 0.032501220703125, -0.0491943359375, -0.05645751953125, -0.02154541015625, 0.038970947265625, 0.00008958578109741211, 0.004669189453125, -0.0169219970703125, 0.0496826171875, 0.011199951171875, -0.039154052734375, -0.01340484619140625, 0.023956298828125, 0.0194854736328125, 0.00047969818115234375, -0.0023651123046875, 0.034515380859375, -0.004627227783203125, -0.0183563232421875, -0.004791259765625, 0.0345458984375, 0.044189453125, 0.032684326171875, 0.006683349609375, -0.01384735107421875, 0.0174102783203125, -0.00511932373046875, 0.037322998046875, -0.0015268325805664062, -0.03271484375, -0.0169525146484375, 0.0167999267578125, -0.0174713134765625, -0.0078125, 0.020050048828125, 0.0277557373046875, -0.01352691650390625, -0.0009517669677734375, 0.0003120899200439453, 0.06097412109375, 0.0022907257080078125, 0.0159454345703125, -0.0174407958984375, -0.02703857421875, -0.01220703125, -0.0369873046875, -0.0184783935546875, 0.003200531005859375, 0.032440185546875, 0.032196044921875, 0.01386260986328125, 0.0262451171875, -0.01345062255859375, 0.004913330078125, 0.004085540771484375, -0.03582763671875, -0.00507354736328125, -0.0001659393310546875, -0.0274658203125, 0.01261138916015625, 0.0031299591064453125, -0.01114654541015625, -0.0117950439453125, 0.026397705078125, -0.06756591796875, -0.00508880615234375, 0.0157318115234375, -0.006465911865234375, 0.00362396240234375, 0.025482177734375, 0.00740814208984375, 0.00429534912109375, -0.04339599609375, 0.032867431640625, 0.053009033203125, -0.006267547607421875, -0.0221710205078125, -0.00960540771484375, 0.00046753883361816406, 0.01480865478515625, -0.002044677734375, 0.004886627197265625, -0.006298065185546875, -0.002346038818359375, 0.03338623046875, -0.0273895263671875, 0.00693511962890625, 0.014068603515625, 0.00687408447265625, 0.016937255859375, 0.0206146240234375, -0.025909423828125, -0.0127716064453125, -0.0170135498046875, 0.01186370849609375, 0.01549530029296875, 0.0105133056640625, -0.040740966796875, 0.05316162109375, -0.05029296875, -0.005828857421875, -0.042999267578125, 0.0027523040771484375, 0.006195068359375, 0.04632568359375, -0.015716552734375, 0.01261138916015625, -0.01183319091796875, -0.06512451171875, 0.0013456344604492188, 0.0248565673828125, -0.00685882568359375, 0.032135009765625, -0.035003662109375, 0.027862548828125, 0.037017822265625, 0.005535125732421875, 0.038970947265625, 0.023284912109375, 0.0030612945556640625, 0.005687713623046875, 0.025543212890625, -0.003086090087890625, -0.00749969482421875, 0.060272216796875, -0.01837158203125, -0.001941680908203125, -0.059814453125, 0.031097412109375, 0.0193023681640625, 0.0156402587890625, 0.025360107421875, 0.020294189453125, -0.0209808349609375, 0.042938232421875, 0.044158935546875, -0.02178955078125, -0.046966552734375, -0.0240478515625, 0.0251312255859375, -0.037200927734375, -0.021392822265625, 0.0025997161865234375, 0.038330078125, -0.0287322998046875, 0.007511138916015625, -0.038177490234375, 0.01238250732421875, -0.0142974853515625, 0.038116455078125, 0.06134033203125, 0.020660400390625, 0.00861358642578125, 0.03778076171875, -0.0229949951171875, -0.0294036865234375, -0.0675048828125, -0.0046844482421875, -0.0274658203125, 0.06903076171875, 0.0023345947265625, 0.0626220703125, 0.009185791015625, -0.0682373046875, 0.023223876953125, -0.01358795166015625, -0.0014028549194335938, -0.007656097412109375, -0.00574493408203125, 0.002727508544921875, 0.03948974609375, 0.00513458251953125, 0.0567626953125, -0.0022182464599609375, 0.01654052734375, 0.010284423828125, -0.02593994140625, -0.01396942138671875, -0.0177764892578125, -0.0802001953125, 0.02044677734375, 0.065673828125, 0.05572509765625, -0.023345947265625, -0.01554107666015625, -0.028350830078125, 0.039306640625, -0.052703857421875, -0.0054473876953125, -0.019134521484375, 0.0099334716796875, 0.0474853515625, 0.0394287109375, 0.0025272369384765625, 0.0054473876953125, -0.049652099609375, 0.0072021484375, 0.034759521484375, 0.0024852752685546875, 0.020751953125, -0.02880859375, 0.0025577545166015625, -0.002826690673828125, -0.051361083984375, -0.019775390625, -0.0281829833984375, -0.01512908935546875, 0.0030460357666015625, 0.0203704833984375, 0.0178985595703125, 0.0006203651428222656, -0.02447509765625, 0.005489349365234375, -0.00240325927734375, 0.006992340087890625, 0.03662109375, -0.025115966796875, 0.022491455078125, -0.01702880859375, 0.006519317626953125, 0.02130126953125, 0.0204315185546875, -0.0249786376953125, -0.034942626953125, -0.017547607421875, 0.0008912086486816406, 0.0162200927734375, -0.01934814453125, 0.023773193359375, 0.00565338134765625, 0.01125335693359375, -0.014251708984375, 0.037933349609375, -0.021331787109375, -0.0166168212890625, 0.0301971435546875, -0.01125335693359375, -0.04473876953125, 0.00930023193359375, -0.04913330078125, 0.0267486572265625, -0.033660888671875, 0.041168212890625, 0.0679931640625, 0.004909515380859375, -0.0029659271240234375, 0.03875732421875, -0.0421142578125, 0.0165252685546875, 0.07232666015625, 0.05194091796875, -0.002758026123046875, -0.029144287109375, 0.027862548828125, 0.0301055908203125, 0.031951904296875, -0.000015974044799804688, -0.028472900390625, -0.027740478515625, 0.0386962890625, -0.0897216796875, -0.06494140625, -0.053741455078125, -0.07635498046875, -0.01300811767578125, -0.00701904296875, -0.0411376953125, 0.0226593017578125, 0.0245819091796875, 0.01947021484375, -0.0249786376953125, 0.00940704345703125, -0.0281524658203125, -0.034576416015625, -0.06121826171875, -0.052093505859375, -0.01308441162109375, 0.01947021484375, -0.0180511474609375, 0.052520751953125, -0.0309295654296875, -0.0877685546875, -0.06915283203125, 0.0160980224609375, -0.0118865966796875, -0.02117919921875, -0.020751953125, 0.0203094482421875, 0.00531768798828125, 0.0089263916015625, 0.004550933837890625, 0.0023517608642578125, -0.007747650146484375, -0.03143310546875, 0.01045989990234375, -0.04498291015625, 0.0158233642578125, 0.0120391845703125, -0.0250091552734375, -0.0171661376953125, 0.005565643310546875, -0.055877685546875, 0.0159149169921875, 0.01165771484375, -0.0279388427734375, 0.0243072509765625, 0.01232147216796875, -0.034332275390625, 0.0250091552734375, -0.0164947509765625, 0.0103302001953125, 0.0243988037109375, -0.009979248046875, 0.01033782958984375, -0.0089569091796875, -0.011627197265625, 0.0002923011779785156, 0.00421142578125, 0.00994110107421875, -0.0235748291015625, -0.00937652587890625, -0.00803375244140625, -0.0015125274658203125, -0.028076171875, 0.04132080078125, -0.041900634765625, -0.05279541015625, 0.051788330078125, -0.05828857421875, 0.023468017578125, -0.07666015625, -0.0328369140625, -0.03338623046875, 0.10369873046875, 0.0018625259399414062, -0.0216522216796875, 0.00875091552734375, 0.0301513671875, -0.08038330078125, -0.037078857421875, -0.0156097412109375, 0.0120697021484375, 0.0004100799560546875, -0.02984619140625, -0.040252685546875, 0.0145263671875, -0.03656005859375, 0.0209808349609375, 0.00862884521484375, -0.020233154296875, 0.034759521484375, -0.040985107421875, -0.01033782958984375, 0.0172882080078125, -0.0269622802734375, -0.036376953125, -0.0286407470703125, -0.00957489013671875, -0.1280517578125, -0.024993896484375, -0.0149993896484375, 0.08355712890625, -0.003551483154296875, -0.0031452178955078125, -0.050750732421875, 0.039276123046875, 0.01016998291015625, 0.01168060302734375, -0.01107025146484375, -0.005084991455078125, -0.01132965087890625, -0.019561767578125, -0.002857208251953125, -0.016815185546875, -0.01275634765625, -0.01267242431640625, 0.006916046142578125, -0.0161285400390625, -0.055206298828125, -0.053192138671875, -0.02001953125, -0.01044464111328125, -0.007137298583984375, -0.0193634033203125, -0.034698486328125, -0.0081634521484375, -0.026947021484375, 0.0223541259765625, -0.0079803466796875, -0.0243988037109375, 0.07452392578125, -0.0265960693359375, 0.0089874267578125, 0.0016527175903320312, 0.08355712890625, -0.0008831024169921875, -0.02294921875, -0.040802001953125, -0.0196075439453125, 0.03387451171875, -0.002529144287109375, 0.047271728515625, 0.040924072265625, -0.0119781494140625, 0.036865234375, 0.01873779296875, -0.0162811279296875, 0.0015106201171875, -0.00955963134765625, 0.01313018798828125, -0.04913330078125, 0.0274505615234375, -0.004482269287109375, 0.0200653076171875, -0.030670166015625, -0.0167388916015625, 0.01067352294921875, -0.005283355712890625, 0.0177459716796875, 0.0130615234375, 0.006809234619140625, -0.0260162353515625, -0.039276123046875, 0.01462554931640625, -0.0184326171875, 0.01849365234375, -0.003131866455078125, -0.0016431808471679688, 0.00930023193359375, 0.0180206298828125, -0.044891357421875, -0.04010009765625, -0.0017242431640625, 0.0010232925415039062, 0.0303192138671875, -0.059814453125, -0.032928466796875, -0.04852294921875, -0.0218505859375, 0.1070556640625, 0.01171112060546875, -0.05487060546875, 0.012542724609375, -0.0006866455078125, 0.050018310546875, 0.0478515625, -0.004085540771484375, 0.018646240234375, 0.0193023681640625, -0.0055694580078125, -0.00836181640625, -0.002483367919921875, -0.01033782958984375, -0.0263214111328125, 0.005603790283203125, -0.00139617919921875, -0.00266265869140625, 0.05206298828125, 0.013458251953125, 0.038055419921875, 0.005893707275390625, -0.03436279296875, 0.015960693359375, -0.00826263427734375, 0.0033206939697265625, 0.01403045654296875, 0.0222930908203125, 0.02252197265625, -0.05157470703125, 0.0266876220703125, -0.024749755859375, 0.0017547607421875, 0.0205078125, 0.037933349609375, 0.0660400390625, 0.0139007568359375, -0.028076171875, -0.039215087890625, 0.00298309326171875, 0.04034423828125, -0.004108428955078125, -0.0457763671875, -0.0210723876953125, 0.0206451416015625, 0.04241943359375, -0.0523681640625, 0.005359649658203125, -0.0035076141357421875, -0.03167724609375, -0.0253448486328125, 0.02740478515625, -0.0209197998046875, -0.039093017578125, -0.043121337890625, 0.0229644775390625, -0.02490234375, -0.0284881591796875, 0.0008754730224609375, 0.00833892822265625, -0.0192718505859375, -0.0066986083984375, 0.041534423828125, 0.018951416015625, -0.01271820068359375, -0.034393310546875, 0.014862060546875, -0.043670654296875, -0.0159912109375, 0.044952392578125, 0.004673004150390625, -0.05035400390625, -0.00250244140625, -0.05364990234375, -0.015716552734375, -0.032745361328125, -0.0438232421875, -0.02947998046875, 0.004184722900390625, 0.0033092498779296875, 0.001819610595703125, 0.00440216064453125, -0.0007457733154296875, -0.04437255859375, 0.058929443359375, 0.02691650390625, 0.05194091796875, -0.0244140625, 0.06610107421875, -0.0000035762786865234375, 0.047821044921875, 0.00714874267578125, 0.0238800048828125, -0.0108489990234375, -0.02020263671875, 0.0215606689453125, -0.00811767578125, -0.0243988037109375, -0.019927978515625, -0.003818511962890625, -0.02337646484375, 0.03369140625, -0.0205841064453125, -0.016082763671875, -0.039276123046875, 0.00884246826171875, -0.0270843505859375, 0.09014892578125, -0.043853759765625, -0.042022705078125, 0.01251220703125, -0.046173095703125, 0.01305389404296875, 0.00939178466796875, -0.016265869140625, 0.027923583984375, -0.025787353515625, 0.01435089111328125, 0.053436279296875, -0.0068511962890625, 0.0271759033203125, 0.10052490234375, -0.005641937255859375, 0.047515869140625, 0.046966552734375, -0.0015010833740234375, 0.00626373291015625, -0.0007877349853515625, 0.007476806640625, 0.005847930908203125, 0.0290985107421875, -0.0102386474609375, 0.006755828857421875, 0.0002219676971435547, -0.014251708984375, 0.04827880859375, 0.08355712890625, 0.0872802734375, -0.09490966796875, -0.00439453125, -0.004497528076171875, -0.053375244140625, 0.058807373046875, -0.0089111328125, -0.031768798828125, -0.08172607421875, 0.07012939453125, -0.054168701171875, -0.005706787109375, 0.01552581787109375, -0.023529052734375, -0.0301971435546875, -0.00965118408203125, 0.02545166015625, 0.0243988037109375, 0.036590576171875, 0.0019969940185546875, -0.0421142578125, 0.0181884765625, 0.044525146484375, 0.01474761962890625, -0.01531982421875, -0.0445556640625, -0.0234527587890625, -0.018951416015625, -0.03790283203125, -0.04364013671875, 0.017730712890625, 0.03924560546875, 0.032806396484375, 0.0611572265625, 0.01313018798828125, -0.006134033203125, 0.0384521484375, 0.00501251220703125, 0.0298614501953125, -0.05517578125, -0.006534576416015625, 0.0292816162109375, -0.0400390625, 0.0211334228515625, 0.021759033203125, -0.0369873046875, -0.00640869140625, -0.024505615234375, 0.04913330078125, -0.0205535888671875, -0.0194854736328125, 0.0253143310546875, -0.03302001953125, -0.01256561279296875, 0.0239410400390625, 0.0167236328125, -0.035675048828125, -0.0201873779296875, 0.0181427001953125, -0.01678466796875, -0.007465362548828125, 0.039031982421875, -0.02960205078125, 0.0692138671875, -0.006374359130859375, 0.0016632080078125, 0.032257080078125, 0.0252685546875, -0.0311126708984375, -0.005077362060546875, -0.036041259765625, 0.035003662109375, -0.00707244873046875, 0.041290283203125, -0.055511474609375, 0.0038356781005859375, -0.00861358642578125, 0.021575927734375, 0.0189361572265625, 0.0225982666015625, -0.052825927734375, -0.0110321044921875, 0.0085906982421875, 0.026092529296875, 0.01837158203125, 0.059967041015625, 0.00891876220703125, 0.00927734375, 0.01006317138671875, 0.0018434524536132812, 0.05609130859375, -0.07177734375, -0.0214080810546875, 0.0093994140625, -0.004367828369140625, -0.026458740234375, 0.01080322265625, 0.06243896484375, -0.07794189453125, 0.0108489990234375, 0.062255859375, -0.048370361328125, -0.007518768310546875, 0.0011119842529296875, -0.0169525146484375, 0.012847900390625, 0.0277099609375, -0.015869140625, 0.03143310546875, 0.00960540771484375, -0.02557373046875, -0.0193634033203125, -0.0026645660400390625, -0.0210723876953125, -0.0166015625, -0.0291900634765625, 0.03839111328125, -0.004459381103515625, 0.036834716796875, 0.034149169921875, 0.01290130615234375, -0.00595855712890625, 0.041229248046875, 0.0188751220703125, 0.033294677734375, -0.04388427734375, -0.01396942138671875, -0.0030517578125, -0.0004982948303222656, 0.005352020263671875, 0.005283355712890625, 0.01291656494140625, 0.0880126953125, 0.0750732421875, -0.035675048828125, -0.0008754730224609375, 0.03289794921875, 0.00710296630859375, 0.003620147705078125, 0.015289306640625, -0.01206207275390625, -0.00313568115234375, 0.006389617919921875, -0.0217132568359375, -0.00021708011627197266, -0.005565643310546875, 0.0121002197265625, -0.0091400146484375, 0.00852203369140625, 0.0189208984375, 0.00923919677734375, 0.035003662109375, -0.025390625, -0.0108642578125, -0.0390625, -0.0975341796875, 0.0011568069458007812, 0.05120849609375, -0.036895751953125, 0.01007843017578125, 0.002368927001953125, 0.04107666015625, -0.01186370849609375, -0.026397705078125, 0.006473541259765625, -0.01116943359375, -0.02099609375, -0.016754150390625, 0.0008535385131835938, -0.00856781005859375, 0.007007598876953125, -0.012847900390625, 0.058258056640625, -0.0054473876953125, 0.009307861328125, 0.0006175041198730469, 0.021728515625, -0.0154571533203125, 0.02301025390625, 0.0134429931640625, 0.0148162841796875, 0.040924072265625, -0.0235137939453125, 0.00962066650390625, 0.0009679794311523438, -0.027435302734375, -0.00940704345703125, 0.01409912109375, -0.041534423828125, 0.051422119140625, -0.041473388671875, 0.002338409423828125, -0.0003352165222167969, -0.0017194747924804688, -0.00026726722717285156, 0.0012121200561523438, 0.0167236328125, -0.006824493408203125, -0.0257110595703125, -0.0201568603515625, -0.01517486572265625, 0.04119873046875, 0.0182037353515625, 0.08062744140625, -0.033660888671875, 0.0239410400390625, -0.020843505859375, 0.045166015625, -0.06585693359375, -0.0178680419921875, -0.008331298828125, 0.00225067138671875, 0.00273895263671875, 0.005931854248046875, -0.036468505859375, 0.05828857421875, 0.01739501953125, 0.011627197265625, 0.0318603515625, 0.0021343231201171875, 0.004718780517578125, -0.00363922119140625, -0.0038585662841796875, -0.044891357421875, -0.056854248046875, -0.035919189453125, 0.010528564453125, -0.00539398193359375, -0.00890350341796875, -0.00308990478515625, 0.006855010986328125, 0.00004667043685913086, -0.01325225830078125, -0.004085540771484375, 0.026153564453125, -0.005580902099609375, 0.02520751953125, -0.003631591796875, 0.0022411346435546875, 0.00824737548828125, -0.025634765625, 0.0238037109375, -0.01103973388671875, 0.037353515625, -0.0116424560546875, 0.032623291015625, -0.00125885009765625, -0.0088348388671875, 0.0032253265380859375, -0.04278564453125, -0.00580596923828125, 0.0019330978393554688, -0.002227783203125, 0.0023040771484375, -0.015045166015625, -0.032318115234375, -0.044036865234375, -0.004657745361328125, 0.0250091552734375, -0.0135345458984375, -0.01242828369140625, -0.05657958984375, 0.045989990234375, 0.0184783935546875, 0.00818634033203125, -0.09295654296875, 0.08056640625, -0.031707763671875, 0.0528564453125, -0.034698486328125, -0.0035953521728515625, 0.0163116455078125, 0.032958984375, -0.018402099609375, 0.01898193359375, -0.00510406494140625, -0.00433349609375, 0.019622802734375, 0.018524169921875, 0.02728271484375, -0.0185699462890625, 0.0142822265625, 0.027313232421875, 0.0197296142578125, 0.055328369140625, 0.00899505615234375, -0.007232666015625, 0.00910186767578125, -0.00220489501953125, -0.0291900634765625, -0.0587158203125, 0.002536773681640625, -0.052490234375, -0.0071258544921875, -0.006999969482421875, 0.0264434814453125, 0.033111572265625, -0.0236358642578125, -0.0755615234375, -0.026641845703125, -0.003200531005859375, -0.050628662109375, 0.0077667236328125, -0.0249481201171875, -0.0240020751953125, 0.030548095703125, 0.003116607666015625, -0.0302886962890625, -0.0206298828125, 0.0291900634765625, 0.036590576171875, -0.01325225830078125, 0.01025390625, 0.051544189453125, -0.08544921875, 0.032684326171875, 0.00339508056640625, -0.01216888427734375, 0.01099395751953125, -0.01541900634765625, 0.038177490234375, 0.053863525390625, -0.004222869873046875, 0.0023822784423828125, 0.012603759765625, -0.06365966796875, -0.0011272430419921875, -0.029754638671875, -0.051483154296875, -0.036163330078125, 0.07257080078125, 0.053619384765625, 0.0214691162109375, 0.001430511474609375, 0.00004458427429199219, -0.08209228515625, -0.060791015625, 0.0083465576171875, 0.03460693359375, -0.07379150390625, 0.03143310546875, 0.074951171875, -0.038299560546875, -0.0157470703125, 0.0364990234375, -0.041107177734375, 0.002857208251953125, 0.01800537109375, -0.02056884765625, -0.0152130126953125, -0.04443359375, 0.05328369140625, -0.0270538330078125, -0.003719329833984375, 0.0007863044738769531, 0.0313720703125, 0.01108551025390625, -0.004802703857421875, 0.0095672607421875, 0.00021898746490478516, -0.05108642578125, 0.01401519775390625, -0.005023956298828125, 0.010894775390625, -0.045379638671875, -0.0291595458984375, 0.03704833984375, 0.0260162353515625, -0.0237274169921875, 0.040435791015625, -0.00472259521484375, 0.04754638671875, -0.03692626953125, 0.026763916015625, -0.0058441162109375, -0.0029296875, -0.024200439453125, 0.024566650390625, -0.00836181640625, -0.017242431640625, 0.0223236083984375, -0.005832672119140625, 0.0012264251708984375, 0.027587890625, 0.03424072265625, -0.0372314453125, 0.0015115737915039062, -0.013092041015625, 0.04132080078125, 0.0017108917236328125 ]
12fe34518b528dca2e3ddc84258185fb9799dfea
Wordpress Stackexchange Q: Benefits of storing uploads in an assets folder? I'm trying to get up to speed with responsive theme development in Wordpress and have been looking at Bootstrap and combining it with HTML5 boilerplate. I came across this skeleton framework which combines both of them: http://www.rootstheme.com/ However, it sets up the uploads folder to be /assets/ in the root of my site. Is there any benefit to doing that? This theme looks like it's doing a load of good stuff, so I'm assuming there's a benefit to do so? Thanks Osu A: The only directory a theme or a plugin should write to is the uploads directory. That is the only directory with guaranteed write access (besides the server’s temporary directory). Anything else is wrong and might not work. There is no practical difference between both, except one: the upload directory may be on another (sub) domain to save HTTP data. Cookies aren’t sent to other domains, so an upload directory inside of the WordPress domain might be slower.
Q: Benefits of storing uploads in an assets folder? I'm trying to get up to speed with responsive theme development in Wordpress and have been looking at Bootstrap and combining it with HTML5 boilerplate. I came across this skeleton framework which combines both of them: http://www.rootstheme.com/ However, it sets up the uploads folder to be /assets/ in the root of my site. Is there any benefit to doing that? This theme looks like it's doing a load of good stuff, so I'm assuming there's a benefit to do so? Thanks Osu A: The only directory a theme or a plugin should write to is the uploads directory. That is the only directory with guaranteed write access (besides the server’s temporary directory). Anything else is wrong and might not work. There is no practical difference between both, except one: the upload directory may be on another (sub) domain to save HTTP data. Cookies aren’t sent to other domains, so an upload directory inside of the WordPress domain might be slower.
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:427482", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78458" }
[ 0.03656005859375, 0.0171051025390625, -0.008819580078125, -0.0279998779296875, 0.01611328125, -0.0321044921875, 0.0013446807861328125, -0.027984619140625, 0.0310211181640625, 0.0204010009765625, 0.019073486328125, -0.011688232421875, -0.0178375244140625, -0.055450439453125, -0.01873779296875, -0.0019512176513671875, 0.0225830078125, 0.005161285400390625, 0.03314208984375, -0.001922607421875, 0.01461029052734375, 0.0171966552734375, 0.0136871337890625, 0.007415771484375, 0.01407623291015625, -0.0372314453125, 0.039154052734375, 0.0131988525390625, -0.0136260986328125, -0.04400634765625, 0.00919342041015625, 0.041839599609375, 0.0364990234375, -0.02337646484375, 0.006504058837890625, 0.032684326171875, -0.0069580078125, -0.0007905960083007812, 0.026153564453125, -0.029876708984375, 0.0202178955078125, 0.0037250518798828125, 0.04779052734375, -0.005443572998046875, 0.01056671142578125, -0.03790283203125, 0.031463623046875, -0.04754638671875, 0.0029449462890625, 0.0007424354553222656, 0.0187835693359375, 0.0120391845703125, 0.0308074951171875, -0.01122283935546875, -0.00608062744140625, -0.0139617919921875, -0.0303497314453125, 0.03350830078125, 0.0247039794921875, -0.00311279296875, -0.0217742919921875, 0.00027441978454589844, 0.0106964111328125, -0.0194854736328125, 0.01120758056640625, 0.0012884140014648438, 0.0099945068359375, 0.024078369140625, -0.05120849609375, -0.024078369140625, 0.00841522216796875, -0.029693603515625, 0.0109710693359375, -0.05328369140625, -0.0156402587890625, 0.0225830078125, -0.00868988037109375, -0.04486083984375, 0.0212554931640625, -0.0253448486328125, -0.0712890625, -0.027374267578125, -0.024078369140625, -0.09429931640625, 0.042388916015625, -0.032867431640625, -0.01482391357421875, 0.021514892578125, 0.0006999969482421875, 0.051483154296875, -0.0196990966796875, 0.0220184326171875, 0.01080322265625, 0.035186767578125, -0.01067352294921875, 0.0003788471221923828, -0.002605438232421875, 0.005496978759765625, 0.0012187957763671875, 0.0145416259765625, 0.0014524459838867188, -0.03839111328125, 0.033477783203125, -0.01611328125, 0.00756072998046875, 0.05133056640625, 0.004894256591796875, -0.04058837890625, 0.0224151611328125, 0.008148193359375, -0.0006394386291503906, 0.0290985107421875, 0.0029964447021484375, -0.051116943359375, 0.006572723388671875, 0.016632080078125, -0.00782012939453125, 0.032257080078125, 0.028961181640625, -0.022735595703125, -0.0005097389221191406, 0.039886474609375, -0.037017822265625, -0.0159149169921875, -0.01175689697265625, -0.0218048095703125, -0.0008687973022460938, -0.01189422607421875, 0.0084075927734375, 0.07373046875, -0.004131317138671875, -0.0258941650390625, -0.01361083984375, -0.0241241455078125, -0.042022705078125, -0.031524658203125, -0.0194091796875, -0.01093292236328125, -0.00727081298828125, 0.0321044921875, 0.00850677490234375, -0.073486328125, 0.00469970703125, -0.004550933837890625, -0.034423828125, 0.01351165771484375, 0.0222015380859375, 0.0309295654296875, -0.01445770263671875, -0.0538330078125, 0.004383087158203125, 0.0090789794921875, 0.0360107421875, -0.019775390625, 0.0247650146484375, -0.0338134765625, 0.0026340484619140625, -0.0241241455078125, -0.00319671630859375, -0.01287078857421875, 0.0011224746704101562, -0.0155792236328125, 0.024810791015625, -0.0303802490234375, -0.0077362060546875, 0.009674072265625, -0.04351806640625, 0.00029206275939941406, 0.0208740234375, 0.026031494140625, 0.033203125, -0.02740478515625, -0.00765228271484375, -0.01462554931640625, 0.00363922119140625, -0.0034389495849609375, 0.04461669921875, 0.019989013671875, 0.0175933837890625, 0.0283050537109375, 0.007076263427734375, -0.0287628173828125, 0.08880615234375, -0.0209197998046875, -0.01071929931640625, 0.00437164306640625, -0.007152557373046875, -0.024627685546875, 0.0164642333984375, -0.01035308837890625, 0.032501220703125, 0.0250701904296875, -0.09075927734375, 0.0265350341796875, 0.0169830322265625, 0.026824951171875, -0.038848876953125, -0.0005640983581542969, 0.00959014892578125, -0.03082275390625, 0.019989013671875, -0.004497528076171875, 0.02569580078125, -0.00922393798828125, 0.0328369140625, -0.005840301513671875, 0.01641845703125, -0.004070281982421875, -0.03851318359375, -0.0132598876953125, 0.0291900634765625, 0.01189422607421875, -0.0340576171875, -0.0269012451171875, -0.0123443603515625, 0.04339599609375, -0.022247314453125, 0.0021076202392578125, 0.007587432861328125, 0.0149688720703125, 0.00870513916015625, 0.0286407470703125, -0.0178375244140625, -0.0166015625, 0.0025272369384765625, 0.0021266937255859375, -0.01139068603515625, 0.0035686492919921875, -0.01041412353515625, 0.0224456787109375, -0.0175018310546875, 0.0077667236328125, 0.0095367431640625, 0.0255279541015625, -0.021209716796875, -0.031280517578125, -0.047393798828125, -0.11572265625, 0.0145721435546875, 0.0758056640625, 0.004688262939453125, 0.02679443359375, -0.01270294189453125, 0.024322509765625, 0.02972412109375, -0.0265045166015625, 0.004276275634765625, 0.01140594482421875, -0.005931854248046875, 0.0384521484375, 0.0038890838623046875, -0.027740478515625, 0.0027065277099609375, -0.040740966796875, -0.03485107421875, 0.028350830078125, -0.032745361328125, -0.013641357421875, -0.007305145263671875, 0.01544952392578125, 0.00252532958984375, 0.0048828125, 0.01087188720703125, -0.017242431640625, 0.0210113525390625, 0.0203399658203125, 0.003719329833984375, 0.0124053955078125, -0.048309326171875, 0.037994384765625, 0.027801513671875, -0.03167724609375, 0.023712158203125, 0.0648193359375, 0.044342041015625, -0.0036468505859375, -0.00891876220703125, -0.052703857421875, 0.042327880859375, 0.03375244140625, -0.049407958984375, -0.035858154296875, -0.03375244140625, -0.0011968612670898438, -0.0213623046875, -0.061553955078125, 0.05145263671875, 0.020904541015625, 0.0086822509765625, 0.01189422607421875, 0.040435791015625, 0.003170013427734375, -0.035980224609375, 0.03436279296875, -0.0219879150390625, -0.0205841064453125, 0.0245208740234375, -0.0163726806640625, 0.0207672119140625, 0.00502777099609375, 0.03289794921875, 0.055755615234375, 0.033203125, -0.0157470703125, 0.00948333740234375, -0.005474090576171875, 0.002872467041015625, 0.01910400390625, 0.0021419525146484375, 0.00414276123046875, -0.03887939453125, 0.01316070556640625, 0.0270843505859375, -0.0269927978515625, 0.01044464111328125, -0.00823974609375, -0.03509521484375, 0.00421905517578125, -0.09210205078125, -0.0535888671875, 0.00820159912109375, -0.093994140625, 0.054443359375, -0.01413726806640625, -0.04730224609375, -0.0447998046875, 0.03692626953125, 0.023895263671875, -0.0662841796875, 0.002841949462890625, 0.039459228515625, -0.024810791015625, -0.0127105712890625, 0.018951416015625, 0.0230712890625, 0.0165252685546875, 0.010772705078125, 0.0034332275390625, -0.003604888916015625, -0.0423583984375, 0.01532745361328125, 0.03070068359375, -0.01013946533203125, 0.0233306884765625, 0.036224365234375, -0.0450439453125, 0.0026798248291015625, 0.006069183349609375, 0.02001953125, 0.0290679931640625, -0.0271759033203125, -0.01142120361328125, -0.010223388671875, -0.01326751708984375, -0.015289306640625, 0.052947998046875, 0.0266571044921875, -0.0206756591796875, 0.002178192138671875, -0.058013916015625, -0.058013916015625, -0.02545166015625, -0.07568359375, -0.03045654296875, 0.052764892578125, 0.02301025390625, -0.05267333984375, 0.020172119140625, 0.01459503173828125, 0.006549835205078125, 0.019378662109375, -0.041229248046875, 0.044952392578125, -0.006328582763671875, -0.0001735687255859375, -0.039947509765625, 0.0406494140625, -0.0172882080078125, -0.036956787109375, -0.007213592529296875, -0.0115966796875, -0.0278778076171875, -0.0031604766845703125, -0.054473876953125, -0.040252685546875, 0.01953125, -0.06610107421875, -0.0047149658203125, -0.039031982421875, 0.010467529296875, -0.025726318359375, 0.055389404296875, -0.0660400390625, 0.0061187744140625, 0.0158538818359375, 0.0285186767578125, -0.0692138671875, -0.0556640625, -0.073486328125, 0.007762908935546875, 0.016387939453125, -0.017242431640625, -0.0147705078125, -0.013153076171875, 0.0106048583984375, -0.0589599609375, 0.0165557861328125, -0.0162353515625, 0.029388427734375, -0.061981201171875, 0.048492431640625, -0.023895263671875, 0.03839111328125, -0.047698974609375, 0.010040283203125, -0.059478759765625, -0.0941162109375, -0.0198211669921875, 0.030548095703125, 0.041717529296875, -0.0206298828125, -0.030975341796875, -0.01454925537109375, 0.06365966796875, -0.003955841064453125, 0.0623779296875, 0.0044708251953125, 0.0226287841796875, 0.0190887451171875, -0.0697021484375, 0.00266265869140625, -0.0648193359375, 0.03350830078125, -0.007415771484375, -0.06219482421875, -0.028411865234375, -0.055328369140625, -0.0206146240234375, -0.0204620361328125, -0.03717041015625, -0.01114654541015625, -0.020721435546875, -0.041961669921875, 0.034942626953125, -0.0190582275390625, -0.005886077880859375, -0.037017822265625, -0.0278167724609375, 0.0265045166015625, 0.00243377685546875, 0.005725860595703125, 0.00696563720703125, 0.08807373046875, 0.0263824462890625, -0.019317626953125, -0.0308837890625, 0.0297698974609375, 0.053375244140625, 0.0008444786071777344, 0.04486083984375, 0.0419921875, -0.0232696533203125, 0.043212890625, 0.00494384765625, 0.0175323486328125, -0.0137786865234375, 0.029327392578125, -0.00016629695892333984, -0.0032672882080078125, 0.0006155967712402344, 0.00711822509765625, 0.0034847259521484375, 0.0297698974609375, -0.00962066650390625, -0.0157012939453125, -0.05126953125, 0.044342041015625, 0.0229034423828125, 0.004425048828125, -0.050140380859375, -0.0738525390625, 0.01103973388671875, -0.004665374755859375, 0.053985595703125, 0.0099945068359375, -0.005168914794921875, 0.0797119140625, 0.06512451171875, 0.00311279296875, -0.004222869873046875, -0.0308685302734375, 0.0307159423828125, 0.0210113525390625, 0.005397796630859375, 0.0213775634765625, -0.01058197021484375, 0.007381439208984375, -0.0160369873046875, -0.0029201507568359375, -0.0191650390625, -0.008758544921875, 0.0078582763671875, -0.006755828857421875, 0.0194244384765625, -0.0237274169921875, 0.048797607421875, 0.01568603515625, -0.01812744140625, -0.004718780517578125, -0.04791259765625, -0.0260772705078125, -0.0662841796875, -0.0020809173583984375, -0.0186920166015625, -0.0189666748046875, -0.00949859619140625, -0.0092010498046875, -0.00768280029296875, -0.02154541015625, 0.01154327392578125, -0.01157379150390625, 0.0149688720703125, 0.0157318115234375, 0.01139068603515625, 0.020050048828125, -0.0090789794921875, 0.0097808837890625, 0.039947509765625, -0.012237548828125, 0.0595703125, -0.0232696533203125, 0.0197296142578125, -0.05316162109375, -0.07891845703125, 0.09576416015625, -0.0584716796875, 0.00867462158203125, 0.0225372314453125, -0.030548095703125, -0.053192138671875, -0.0132904052734375, -0.0009489059448242188, 0.031280517578125, -0.034912109375, -0.01125335693359375, 0.01418304443359375, -0.0157318115234375, -0.00856781005859375, 0.060821533203125, -0.04400634765625, 0.008331298828125, 0.0093994140625, -0.019256591796875, -0.0063018798828125, -0.004261016845703125, -0.0479736328125, -0.0457763671875, -0.005573272705078125, -0.0002892017364501953, 0.042724609375, -0.032623291015625, -0.01282501220703125, -0.00583648681640625, 0.0288543701171875, -0.034149169921875, 0.042510986328125, -0.0270538330078125, -0.0230712890625, -0.033935546875, 0.0004892349243164062, -0.0174102783203125, -0.017120361328125, -0.0391845703125, -0.0227508544921875, -0.06634521484375, -0.01412200927734375, 0.0115814208984375, 0.0096893310546875, -0.003570556640625, -0.02960205078125, -0.0257110595703125, 0.01067352294921875, 0.0211639404296875, -0.0098114013671875, -0.0146026611328125, 0.0282440185546875, 0.016632080078125, 0.035003662109375, 0.0191497802734375, -0.004669189453125, 0.0038890838623046875, -0.020904541015625, 0.0026416778564453125, -0.0587158203125, -0.0016736984252929688, -0.0130615234375, -0.004253387451171875, 0.032012939453125, 0.03680419921875, 0.0157012939453125, -0.00022780895233154297, 0.001033782958984375, -0.0031070709228515625, -0.0160064697265625, 0.04754638671875, 0.003993988037109375, 0.006420135498046875, 0.02545166015625, -0.002838134765625, 0.02593994140625, 0.005565643310546875, -0.087890625, 0.058685302734375, 0.034759521484375, 0.036224365234375, 0.01409912109375, -0.023590087890625, 0.049468994140625, 0.058502197265625, 0.0054473876953125, 0.0244598388671875, 0.01534271240234375, 0.021087646484375, 0.00481414794921875, 0.02630615234375, -0.01605224609375, -0.03125, 0.0855712890625, 0.029266357421875, -0.032958984375, 0.0809326171875, -0.04345703125, 0.00847625732421875, 0.037811279296875, 0.0299072265625, -0.035858154296875, -0.0082244873046875, -0.022674560546875, -0.030426025390625, 0.0211334228515625, 0.0009918212890625, -0.000013828277587890625, -0.01100921630859375, -0.0100860595703125, 0.00690460205078125, -0.02911376953125, -0.00852203369140625, 0.00966644287109375, 0.007320404052734375, 0.01226043701171875, 0.01678466796875, -0.0075836181640625, -0.06121826171875, -0.0230560302734375, 0.055023193359375, -0.0189971923828125, 0.036163330078125, 0.00614166259765625, -0.012847900390625, -0.01480865478515625, -0.013214111328125, -0.01320648193359375, -0.0609130859375, -0.0257568359375, 0.0029201507568359375, -0.0007939338684082031, 0.0570068359375, 0.055023193359375, -0.005878448486328125, -0.00868988037109375, 0.034271240234375, 0.0260772705078125, -0.05523681640625, -0.00955963134765625, 0.014251708984375, 0.01092529296875, -0.0125732421875, 0.0278167724609375, -0.0309906005859375, -0.026947021484375, 0.004863739013671875, -0.0234375, -0.0024662017822265625, -0.047637939453125, -0.001003265380859375, 0.03643798828125, 0.0131988525390625, 0.0009746551513671875, 0.0026912689208984375, 0.05718994140625, -0.05413818359375, -0.03033447265625, 0.01251220703125, -0.01708984375, -0.023193359375, 0.0017728805541992188, -0.01313018798828125, 0.0648193359375, -0.005706787109375, -0.0017986297607421875, 0.050506591796875, 0.027069091796875, -0.029205322265625, 0.01180267333984375, -0.0164031982421875, 0.0193328857421875, -0.038726806640625, -0.021697998046875, -0.038909912109375, 0.024261474609375, -0.0406494140625, -0.0027256011962890625, 0.10272216796875, 0.01200103759765625, -0.01178741455078125, -0.01476287841796875, 0.05108642578125, 0.03729248046875, -0.0225982666015625, 0.0244903564453125, 0.0229339599609375, -0.00933074951171875, 0.034576416015625, 0.019989013671875, 0.02581787109375, 0.0107879638671875, -0.02752685546875, 0.032257080078125, 0.01430511474609375, 0.0080413818359375, -0.01285552978515625, -0.017913818359375, -0.0279693603515625, 0.00693511962890625, 0.02105712890625, -0.0024623870849609375, 0.0224761962890625, 0.006256103515625, 0.005268096923828125, 0.011016845703125, -0.036590576171875, 0.0102386474609375, 0.0262908935546875, -0.000013768672943115234, 0.03179931640625, 0.025787353515625, 0.00943756103515625, 0.0274505615234375, 0.01470947265625, 0.01947021484375, 0.01422119140625, -0.01580810546875, -0.004009246826171875, 0.002185821533203125, 0.035369873046875, -0.01505279541015625, -0.0243377685546875, 0.0159759521484375, 0.007404327392578125, -0.01172637939453125, -0.0179595947265625, -0.0013446807861328125, 0.01210784912109375, 0.0226593017578125, 0.00408172607421875, 0.051483154296875, -0.0123748779296875, -0.02984619140625, 0.0154876708984375, -0.0150146484375, 0.0035037994384765625, 0.0037078857421875, 0.0019550323486328125, 0.0083465576171875, 0.0222625732421875, 0.0032062530517578125, -0.003143310546875, 0.0005016326904296875, -0.012908935546875, -0.036590576171875, -0.0139312744140625, 0.0242919921875, 0.0391845703125, 0.036865234375, -0.0246429443359375, 0.03485107421875, 0.00371551513671875, 0.032684326171875, -0.033935546875, -0.036468505859375, 0.0653076171875, 0.034332275390625, 0.052642822265625, 0.07366943359375, 0.06890869140625, 0.01922607421875, -0.00408935546875, 0.0229949951171875, 0.0020389556884765625, -0.022430419921875, 0.0198211669921875, -0.045379638671875, 0.040069580078125, 0.0269012451171875, -0.004886627197265625, -0.037872314453125, -0.0033512115478515625, 0.0621337890625, -0.0217742919921875, 0.00423431396484375, -0.0113372802734375, -0.048858642578125, -0.006561279296875, -0.0386962890625, 0.032623291015625, -0.011383056640625, 0.038665771484375, -0.0024738311767578125, 0.0268707275390625, -0.022064208984375, -0.0151519775390625, 0.0311279296875, 0.00919342041015625, 0.00611114501953125, 0.00733184814453125, -0.006580352783203125, -0.0201568603515625, 0.008575439453125, 0.0286102294921875, 0.03741455078125, 0.007389068603515625, 0.023406982421875, 0.01654052734375, 0.008087158203125, -0.007152557373046875, 0.039825439453125, 0.0133514404296875, 0.1199951171875, -0.0577392578125, 0.0210723876953125, 0.03759765625, -0.039459228515625, 0.024169921875, 0.01898193359375, -0.004669189453125, -0.01406097412109375, -0.0033512115478515625, -0.0180511474609375, -0.01384735107421875, -0.051483154296875, 0.040985107421875, -0.08447265625, -0.03582763671875, -0.03216552734375, 0.036224365234375, -0.00829315185546875, 0.003387451171875, -0.02703857421875, -0.055816650390625, -0.0289154052734375, 0.0310211181640625, -0.006534576416015625, -0.0284423828125, -0.07550048828125, 0.042633056640625, -0.004100799560546875, -0.01934814453125, 0.041473388671875, -0.059722900390625, 0.045318603515625, 0.032012939453125, 0.00249481201171875, -0.0243988037109375, 0.000461578369140625, -0.027679443359375, 0.01113128662109375, -0.018341064453125, 0.051361083984375, 0.0016269683837890625, -0.051971435546875, 0.0208892822265625, 0.033538818359375, 0.045440673828125, 0.004306793212890625, 0.0073699951171875, -0.00787353515625, -0.0079498291015625, 0.00634002685546875, -0.02386474609375, -0.006877899169921875, -0.02117919921875, -0.0155029296875, 0.0222320556640625, -0.00600433349609375, 0.003658294677734375, -0.032623291015625, 0.015869140625, 0.034271240234375, 0.00817108154296875, -0.062164306640625, 0.0479736328125, -0.0341796875, 0.0200653076171875, 0.0064544677734375, 0.046417236328125, -0.0206756591796875, 0.001773834228515625, -0.0186920166015625, -0.042236328125, -0.0345458984375, 0.07177734375, -0.026611328125, 0.03857421875, 0.025421142578125, -0.0312347412109375, 0.0589599609375, 0.05810546875, 0.027252197265625, 0.10626220703125, -0.0008921623229980469, -0.0258026123046875, -0.00604248046875, -0.0004031658172607422, 0.0019989013671875, 0.003276824951171875, 0.01085662841796875, -0.01123046875, -0.0240478515625, -0.039947509765625, -0.0038356781005859375, -0.01175689697265625, -0.04791259765625, -0.0694580078125, 0.055145263671875, -0.01922607421875, -0.0246734619140625, 0.02667236328125, 0.03155517578125, -0.01380157470703125, 0.06494140625, 0.023101806640625, -0.026641845703125, 0.02960205078125, -0.016937255859375, -0.0101165771484375, -0.004856109619140625, 0.00811004638671875, 0.00910186767578125, -0.05999755859375, -0.00226593017578125, -0.0022716522216796875, -0.032470703125, 0.0100250244140625, 0.031341552734375, 0.0185546875, 0.056427001953125, -0.004852294921875, 0.0865478515625, -0.01068878173828125, -0.048309326171875, -0.0204620361328125, 0.007572174072265625, 0.0018682479858398438, 0.0015468597412109375, 0.0308685302734375, 0.055908203125, 0.0017261505126953125, -0.034423828125, -0.051605224609375, -0.04217529296875, -0.0009031295776367188, -0.0009975433349609375, 0.01021575927734375, -0.06707763671875, 0.0153656005859375, 0.0081634521484375, -0.0129547119140625, -0.01202392578125, -0.021881103515625, -0.040557861328125, -0.005767822265625, -0.001102447509765625, -0.01425933837890625, 0.013153076171875, -0.038909912109375, 0.051910400390625, 0.0002987384796142578, 0.05828857421875, -0.0084228515625, 0.02801513671875, 0.05511474609375, 0.0634765625, 0.020599365234375, 0.006473541259765625, -0.041412353515625, 0.03192138671875, 0.0014982223510742188, 0.0232391357421875, -0.06365966796875, -0.0211181640625, 0.022186279296875, -0.0010671615600585938, -0.005008697509765625, -0.016143798828125, -0.0166473388671875, 0.0222320556640625, -0.037750244140625, 0.0655517578125, -0.024322509765625, 0.0030307769775390625, -0.019927978515625, 0.0447998046875, -0.040069580078125, 0.00830841064453125, -0.00247955322265625, -0.032196044921875, 0.00920867919921875, -0.004329681396484375, 0.01898193359375, -0.0263824462890625, 0.036376953125, -0.0579833984375, -0.010223388671875, 0.0205535888671875 ]
f0da0f6d4183b19fad24c1efd9608ed44597ffed
Wordpress Stackexchange Q: Multisite blog converting categories to subdomains Having http://site.com/category/xyz = http://xyz.site.com/ I would like to move the content from each category to its equivalent subdomain blog, so that when I will access http://site.com/new-post/, where the post belongs to category XYZ, site.com will do a 301 redirect to http://xyz.site.com/new-post/ So, is there any other way besides then the hardcore extracting data from database and move it to its new place? A: It's very simple: * *download and install this plugin: WP-Universe WP-Universe creates a blog universe based on categories of a WordPress blog. *go to Manage Category *edit the category description with the category subdomain (check the install guide) http://cat-slug.example.com/ *now make your subdomains et voilà
Q: Multisite blog converting categories to subdomains Having http://site.com/category/xyz = http://xyz.site.com/ I would like to move the content from each category to its equivalent subdomain blog, so that when I will access http://site.com/new-post/, where the post belongs to category XYZ, site.com will do a 301 redirect to http://xyz.site.com/new-post/ So, is there any other way besides then the hardcore extracting data from database and move it to its new place? A: It's very simple: * *download and install this plugin: WP-Universe WP-Universe creates a blog universe based on categories of a WordPress blog. *go to Manage Category *edit the category description with the category subdomain (check the install guide) http://cat-slug.example.com/ *now make your subdomains et voilà
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:427493", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78497" }
[ 0.0364990234375, -0.03173828125, -0.0266876220703125, -0.012542724609375, -0.0018520355224609375, -0.052581787109375, 0.04522705078125, 0.0008292198181152344, -0.0215606689453125, 0.02740478515625, -0.0026874542236328125, 0.0036296844482421875, 0.026519775390625, -0.048126220703125, 0.022735595703125, -0.0164947509765625, 0.01473236083984375, -0.02001953125, 0.0094146728515625, -0.006351470947265625, -0.004154205322265625, 0.01343536376953125, 0.004596710205078125, 0.0173797607421875, 0.0161895751953125, -0.0283355712890625, 0.0596923828125, -0.040191650390625, -0.000850677490234375, -0.04736328125, 0.01464080810546875, 0.027130126953125, 0.028533935546875, -0.00577545166015625, 0.006717681884765625, 0.0204620361328125, 0.0105743408203125, -0.00580596923828125, 0.0002448558807373047, 0.04339599609375, 0.032928466796875, -0.023040771484375, 0.032745361328125, 0.027679443359375, 0.034942626953125, -0.08087158203125, 0.0665283203125, -0.0904541015625, 0.0173797607421875, -0.06402587890625, 0.005779266357421875, 0.0012350082397460938, 0.035247802734375, -0.032196044921875, -0.04791259765625, -0.041351318359375, -0.0191192626953125, 0.0012912750244140625, 0.03741455078125, 0.00034689903259277344, -0.0212554931640625, -0.0159912109375, 0.0202484130859375, 0.0030651092529296875, -0.006622314453125, 0.004947662353515625, -0.00940704345703125, 0.01435089111328125, -0.02703857421875, -0.01386260986328125, 0.00809478759765625, -0.0268707275390625, -0.0014705657958984375, -0.01206207275390625, -0.0142974853515625, 0.0028095245361328125, 0.011871337890625, -0.0008559226989746094, 0.0078125, 0.004131317138671875, 0.033599853515625, -0.006099700927734375, 0.0220489501953125, -0.0496826171875, 0.0450439453125, -0.01338958740234375, 0.0010461807250976562, -0.02117919921875, -0.058868408203125, -0.020660400390625, -0.0310821533203125, -0.0299530029296875, -0.064697265625, -0.0019588470458984375, 0.004848480224609375, -0.01502227783203125, 0.00739288330078125, 0.03570556640625, -0.0067291259765625, 0.00445556640625, -0.01287841796875, -0.02362060546875, -0.0086517333984375, -0.0136260986328125, 0.0257110595703125, 0.045166015625, 0.0010461807250976562, -0.0155792236328125, 0.057861328125, 0.01454925537109375, 0.0180206298828125, 0.0762939453125, 0.0260467529296875, -0.0035762786865234375, -0.021331787109375, 0.00948333740234375, 0.01351165771484375, -0.0034198760986328125, -0.018646240234375, -0.01338958740234375, -0.0006113052368164062, 0.05267333984375, -0.0248565673828125, -0.029510498046875, 0.01110076904296875, -0.0045013427734375, 0.01336669921875, -0.0271759033203125, -0.0301971435546875, -0.03643798828125, -0.0096282958984375, 0.0489501953125, 0.01045989990234375, 0.03839111328125, -0.00533294677734375, 0.008636474609375, -0.001499176025390625, 0.006618499755859375, -0.00649261474609375, -0.005222320556640625, 0.0299530029296875, -0.040802001953125, -0.034912109375, 0.0005745887756347656, 0.026214599609375, 0.03448486328125, 0.0119476318359375, 0.00577545166015625, 0.005023956298828125, -0.03399658203125, 0.0439453125, -0.05816650390625, 0.0628662109375, -0.0135955810546875, -0.0152130126953125, -0.08477783203125, 0.031585693359375, -0.0596923828125, 0.0108642578125, -0.0703125, -0.02471923828125, -0.0033969879150390625, 0.04510498046875, -0.03955078125, -0.0226593017578125, -0.004222869873046875, -0.034423828125, -0.00882720947265625, 0.0238494873046875, -0.0179901123046875, -0.00974273681640625, -0.0057373046875, 0.036834716796875, 0.01439666748046875, 0.00952911376953125, 0.032012939453125, 0.021148681640625, -0.009033203125, -0.012542724609375, 0.073486328125, 0.0185699462890625, -0.032623291015625, -0.0119171142578125, 0.0144500732421875, -0.0259857177734375, 0.001224517822265625, 0.0171966552734375, 0.027252197265625, -0.00463104248046875, 0.019989013671875, 0.0264434814453125, 0.02923583984375, -0.051300048828125, 0.0227203369140625, -0.004749298095703125, -0.01439666748046875, 0.032958984375, 0.026336669921875, 0.0098419189453125, -0.030731201171875, -0.0104217529296875, 0.0169677734375, -0.01263427734375, 0.05755615234375, 0.0142669677734375, 0.00547027587890625, 0.00197601318359375, 0.0058441162109375, 0.033721923828125, 0.0316162109375, -0.00937652587890625, 0.0011758804321289062, 0.0054931640625, -0.0699462890625, -0.0386962890625, 0.015594482421875, -0.026580810546875, -0.0024261474609375, -0.0178680419921875, 0.0011281967163085938, -0.02130126953125, 0.00022125244140625, -0.01763916015625, 0.01496124267578125, 0.064697265625, -0.032501220703125, -0.0111541748046875, -0.045867919921875, -0.00254058837890625, 0.0190887451171875, -0.10626220703125, 0.0296630859375, 0.03277587890625, -0.006023406982421875, -0.0643310546875, 0.03192138671875, 0.01189422607421875, 0.036895751953125, -0.02618408203125, 0.035919189453125, 0.028839111328125, -0.005252838134765625, -0.034637451171875, -0.0394287109375, -0.00962066650390625, -0.068603515625, -0.0021533966064453125, -0.0191650390625, 0.0212860107421875, 0.0885009765625, -0.007541656494140625, -0.0013103485107421875, -0.00620269775390625, -0.04046630859375, -0.0136871337890625, 0.03619384765625, 0.0101165771484375, -0.048614501953125, 0.0194091796875, -0.0075836181640625, 0.0245513916015625, -0.0177001953125, -0.07403564453125, 0.0183563232421875, 0.018341064453125, -0.0002446174621582031, 0.006580352783203125, -0.0028743743896484375, -0.0309906005859375, -0.009796142578125, 0.026519775390625, -0.0007228851318359375, 0.0022068023681640625, 0.035888671875, 0.04010009765625, 0.0007495880126953125, -0.0186004638671875, -0.0175933837890625, 0.006786346435546875, 0.00554656982421875, -0.01345062255859375, 0.04833984375, -0.0264739990234375, -0.02764892578125, -0.0206298828125, -0.034393310546875, -0.017181396484375, -0.004688262939453125, -0.04815673828125, -0.017333984375, -0.010833740234375, 0.035919189453125, -0.0241241455078125, 0.0244598388671875, 0.0026645660400390625, -0.006595611572265625, 0.042205810546875, -0.07415771484375, 0.05950927734375, -0.04327392578125, 0.046356201171875, 0.06964111328125, -0.0031490325927734375, -0.003406524658203125, -0.0003256797790527344, 0.01043701171875, -0.002361297607421875, 0.0194549560546875, -0.0003612041473388672, 0.00476837158203125, -0.06427001953125, 0.000972747802734375, 0.01319122314453125, -0.0416259765625, 0.0225982666015625, -0.00791168212890625, -0.0002951622009277344, -0.01419830322265625, -0.05218505859375, -0.01605224609375, -0.01031494140625, -0.012969970703125, 0.03546142578125, 0.0243682861328125, 0.00885772705078125, -0.04119873046875, 0.034332275390625, 0.0095062255859375, 0.056793212890625, -0.023193359375, -0.093505859375, -0.0290374755859375, -0.096923828125, -0.022125244140625, -0.0199737548828125, -0.006244659423828125, 0.0092010498046875, -0.0201568603515625, -0.0166778564453125, -0.0160369873046875, 0.004253387451171875, 0.0266265869140625, 0.0138702392578125, -0.02923583984375, 0.0271148681640625, -0.040435791015625, 0.00814056396484375, -0.0004355907440185547, 0.059844970703125, 0.0438232421875, -0.042449951171875, 0.004535675048828125, -0.024749755859375, 0.01554107666015625, 0.006946563720703125, -0.0174560546875, 0.030914306640625, 0.0233154296875, -0.0093994140625, -0.027496337890625, 0.0135955810546875, -0.03277587890625, -0.0215911865234375, 0.004077911376953125, 0.0185089111328125, -0.0140533447265625, -0.01302337646484375, -0.01885986328125, -0.00504302978515625, -0.000946044921875, 0.03302001953125, -0.020416259765625, -0.0255126953125, -0.0099639892578125, -0.0192108154296875, -0.01143646240234375, 0.0177001953125, -0.036102294921875, -0.00547027587890625, -0.009552001953125, -0.02691650390625, -0.0248870849609375, 0.01519775390625, -0.00411224365234375, -0.039398193359375, 0.038787841796875, -0.069091796875, -0.005168914794921875, -0.060699462890625, -0.0081329345703125, -0.03997802734375, 0.0714111328125, -0.05609130859375, -0.00006335973739624023, -0.01132965087890625, -0.002471923828125, -0.0008425712585449219, -0.00426483154296875, -0.06683349609375, -0.0289154052734375, -0.07177734375, -0.0030384063720703125, -0.0133209228515625, -0.0136566162109375, -0.0151824951171875, 0.036346435546875, -0.0162353515625, -0.04547119140625, 0.04498291015625, -0.01230621337890625, 0.039215087890625, -0.0255126953125, 0.04217529296875, -0.0312347412109375, -0.01983642578125, -0.0103302001953125, -0.00930023193359375, -0.006320953369140625, 0.0130462646484375, -0.0009207725524902344, 0.008636474609375, -0.0251312255859375, 0.0311431884765625, 0.044097900390625, -0.00662994384765625, -0.0022640228271484375, -0.004741668701171875, 0.01226043701171875, -0.006099700927734375, 0.00154876708984375, -0.0132598876953125, -0.00881195068359375, -0.018524169921875, -0.048828125, -0.0308380126953125, -0.0036182403564453125, -0.030914306640625, 0.014007568359375, -0.021240234375, 0.005977630615234375, -0.0299072265625, -0.03717041015625, -0.038543701171875, 0.01293182373046875, -0.0526123046875, 0.0195465087890625, -0.037078857421875, -0.048095703125, 0.0169219970703125, -0.01384735107421875, -0.01500701904296875, 0.01995849609375, 0.0269927978515625, 0.00492095947265625, -0.019317626953125, -0.05072021484375, 0.00960540771484375, 0.018157958984375, -0.006191253662109375, 0.0670166015625, 0.016876220703125, 0.003536224365234375, 0.06817626953125, -0.0139007568359375, 0.032012939453125, -0.03863525390625, 0.0208282470703125, 0.0161895751953125, 0.0089263916015625, 0.00962066650390625, -0.001678466796875, 0.009918212890625, 0.01451873779296875, -0.0140838623046875, -0.021270751953125, -0.05133056640625, 0.041961669921875, 0.0305023193359375, -0.006053924560546875, -0.055511474609375, -0.026519775390625, 0.007083892822265625, -0.025421142578125, 0.0195770263671875, 0.0037288665771484375, -0.0125885009765625, -0.0030364990234375, 0.014312744140625, -0.005779266357421875, -0.0243682861328125, -0.020904541015625, -0.0014667510986328125, 0.02557373046875, -0.0234832763671875, -0.00969696044921875, 0.0030269622802734375, 0.007232666015625, -0.00012350082397460938, -0.0004756450653076172, -0.01369476318359375, -0.0360107421875, 0.00202178955078125, -0.0129241943359375, 0.0237579345703125, -0.040985107421875, 0.0478515625, 0.0272369384765625, -0.0176544189453125, -0.0033473968505859375, -0.0560302734375, -0.0294952392578125, -0.044189453125, 0.0020923614501953125, -0.02825927734375, -0.0018091201782226562, 0.00824737548828125, 0.038360595703125, -0.03387451171875, 0.031951904296875, -0.00197601318359375, 0.02313232421875, 0.047119140625, 0.01036834716796875, 0.038116455078125, 0.0020389556884765625, -0.040985107421875, 0.00125885009765625, -0.01568603515625, -0.034942626953125, 0.006015777587890625, 0.038360595703125, 0.04254150390625, 0.035400390625, -0.01348876953125, -0.0330810546875, -0.013916015625, -0.0196685791015625, 0.0019140243530273438, -0.0025348663330078125, -0.00421905517578125, -0.01110076904296875, -0.00788116455078125, 0.02020263671875, 0.0184783935546875, -0.0096435546875, -0.045562744140625, -0.035736083984375, 0.023651123046875, -0.0163726806640625, 0.0289459228515625, 0.0153350830078125, -0.0033893585205078125, -0.06341552734375, -0.00983428955078125, 0.028289794921875, 0.010955810546875, -0.01036834716796875, -0.016143798828125, -0.037841796875, 0.0308074951171875, -0.00035452842712402344, 0.0212554931640625, -0.02447509765625, -0.006359100341796875, -0.00751495361328125, 0.00594329833984375, 0.042510986328125, 0.00560760498046875, -0.0257110595703125, 0.0038471221923828125, -0.007411956787109375, 0.001739501953125, 0.04010009765625, -0.001003265380859375, -0.0266876220703125, -0.033172607421875, 0.0206298828125, 0.026214599609375, 0.0135650634765625, -0.041656494140625, -0.03277587890625, -0.050018310546875, 0.0279541015625, -0.06976318359375, -0.0399169921875, 0.0214691162109375, 0.01947021484375, 0.00804901123046875, -0.00875091552734375, 0.01708984375, 0.0289764404296875, -0.020172119140625, -0.0137786865234375, -0.08624267578125, -0.004119873046875, 0.0276947021484375, -0.02947998046875, 0.058074951171875, 0.043609619140625, 0.00565338134765625, 0.0245513916015625, 0.001850128173828125, 0.0172119140625, -0.0224609375, -0.08306884765625, -0.046478271484375, 0.02093505859375, -0.0367431640625, -0.006732940673828125, 0.0518798828125, -0.00457000732421875, -0.0135345458984375, -0.018280029296875, -0.01470184326171875, 0.00615692138671875, 0.0259857177734375, -0.0518798828125, 0.047271728515625, 0.07769775390625, 0.0172119140625, 0.0280303955078125, 0.02044677734375, -0.006069183349609375, -0.002414703369140625, -0.009552001953125, 0.036865234375, 0.0300445556640625, 0.00957489013671875, -0.02490234375, -0.00963592529296875, -0.011932373046875, -0.029693603515625, -0.01313018798828125, 0.06646728515625, 0.036224365234375, -0.08331298828125, 0.01053619384765625, 0.0206451416015625, 0.005584716796875, -0.01227569580078125, 0.018157958984375, -0.02679443359375, 0.00457000732421875, -0.004383087158203125, -0.055145263671875, -0.03216552734375, -0.00238800048828125, 0.0017538070678710938, -0.0071563720703125, 0.0200958251953125, 0.031646728515625, 0.036346435546875, -0.01511383056640625, 0.0205230712890625, 0.012420654296875, 0.039825439453125, -0.0225372314453125, -0.0292510986328125, 0.03570556640625, -0.028839111328125, -0.039306640625, 0.044708251953125, -0.0214691162109375, 0.01715087890625, -0.0249786376953125, -0.023529052734375, 0.0086517333984375, 0.042205810546875, -0.04290771484375, 0.00738525390625, 0.039459228515625, -0.042083740234375, 0.047088623046875, 0.0266876220703125, 0.0132293701171875, -0.026885986328125, -0.004909515380859375, -0.0216522216796875, -0.041961669921875, 0.00518035888671875, -0.01331329345703125, -0.053955078125, 0.04180908203125, -0.0183258056640625, -0.0073699951171875, 0.01511383056640625, 0.0294647216796875, 0.00878143310546875, 0.00867462158203125, 0.05572509765625, -0.0487060546875, -0.04510498046875, 0.035491943359375, -0.01441192626953125, -0.0011854171752929688, 0.0211181640625, -0.07904052734375, 0.06292724609375, -0.007770538330078125, 0.057098388671875, 0.0142364501953125, 0.007610321044921875, -0.0191192626953125, -0.0175933837890625, -0.0118255615234375, 0.06884765625, 0.01232147216796875, 0.017303466796875, -0.032989501953125, -0.0098724365234375, 0.0213623046875, 0.047027587890625, 0.047088623046875, 0.0253753662109375, -0.0587158203125, -0.02130126953125, -0.00884246826171875, 0.0159759521484375, -0.00629425048828125, 0.06781005859375, -0.0311431884765625, 0.0234832763671875, 0.0270538330078125, -0.01708984375, 0.024627685546875, 0.0176849365234375, -0.05621337890625, -0.0100555419921875, 0.0083160400390625, -0.00502777099609375, 0.00829315185546875, -0.0006661415100097656, -0.032135009765625, 0.007381439208984375, 0.019134521484375, -0.0110626220703125, 0.0472412109375, 0.031463623046875, 0.0187835693359375, -0.023193359375, 0.0733642578125, -0.04486083984375, 0.06597900390625, -0.054931640625, 0.034332275390625, 0.025054931640625, 0.0249176025390625, 0.0684814453125, 0.0094451904296875, 0.015411376953125, 0.031494140625, -0.02587890625, 0.08551025390625, 0.055999755859375, 0.045684814453125, -0.0296783447265625, -0.041412353515625, 0.075439453125, 0.111083984375, -0.036773681640625, -0.03271484375, 0.007472991943359375, 0.029449462890625, 0.038726806640625, 0.00916290283203125, 0.07293701171875, -0.035797119140625, -0.0201873779296875, -0.0292816162109375, 0.00800323486328125, 0.02850341796875, 0.021026611328125, -0.00545501708984375, 0.0160064697265625, -0.024688720703125, 0.0152740478515625, -0.056365966796875, 0.0017185211181640625, 0.0121917724609375, 0.09576416015625, 0.02557373046875, 0.07855224609375, -0.049652099609375, -0.054473876953125, 0.013336181640625, 0.0081024169921875, 0.01325225830078125, -0.0184783935546875, -0.007228851318359375, -0.0372314453125, 0.04083251953125, 0.0309295654296875, -0.0206451416015625, -0.003589630126953125, 0.03680419921875, 0.089599609375, -0.01108551025390625, -0.036865234375, 0.0697021484375, 0.007297515869140625, 0.039947509765625, -0.0170440673828125, 0.0024089813232421875, -0.008941650390625, -0.033355712890625, -0.031463623046875, -0.0108489990234375, 0.050628662109375, -0.01264190673828125, 0.02899169921875, 0.0036144256591796875, -0.018829345703125, 0.07061767578125, -0.0095977783203125, 0.05975341796875, 0.005428314208984375, -0.05181884765625, -0.0012731552124023438, -0.038421630859375, -0.040863037109375, 0.040252685546875, 0.05596923828125, -0.0034618377685546875, -0.0014581680297851562, -0.024749755859375, -0.0139617919921875, 0.02142333984375, -0.010162353515625, -0.004138946533203125, 0.01021575927734375, 0.01885986328125, -0.00292205810546875, -0.0164947509765625, -0.0176239013671875, -0.0157470703125, 0.05401611328125, 0.013824462890625, 0.07623291015625, -0.041351318359375, 0.031524658203125, -0.0181427001953125, 0.00830078125, -0.02789306640625, -0.037994384765625, -0.006954193115234375, 0.000014901161193847656, 0.01092529296875, 0.00601959228515625, -0.01812744140625, -0.002368927001953125, 0.026031494140625, -0.037017822265625, -0.0175933837890625, 0.0015773773193359375, 0.01355743408203125, 0.0153656005859375, 0.032623291015625, -0.0293121337890625, -0.0281524658203125, -0.07025146484375, -0.04193115234375, 0.04901123046875, 0.0239105224609375, -0.0292510986328125, 0.03082275390625, 0.0173187255859375, -0.00887298583984375, -0.005626678466796875, -0.03399658203125, 0.0007658004760742188, 0.0333251953125, 0.0037212371826171875, -0.01041412353515625, 0.0726318359375, 0.0007357597351074219, 0.005474090576171875, 0.03045654296875, 0.02752685546875, 0.055755615234375, -0.0673828125, 0.0018558502197265625, 0.0258636474609375, 0.0073394775390625, -0.0183563232421875, -0.0051727294921875, 0.020416259765625, -0.0298614501953125, -0.0132598876953125, -0.010833740234375, -0.02789306640625, -0.0094757080078125, -0.0198516845703125, 0.0235748291015625, -0.0186309814453125, -0.0192718505859375, -0.07391357421875, -0.0236663818359375, 0.06524658203125, -0.004802703857421875, -0.0166015625, -0.00005030632019042969, -0.04302978515625, 0.040435791015625, -0.0051422119140625, -0.00542449951171875, -0.012908935546875, 0.00794219970703125, -0.055419921875, -0.0203094482421875, -0.059967041015625, -0.0167694091796875, -0.06927490234375, 0.01230621337890625, 0.009429931640625, -0.02337646484375, 0.016357421875, -0.0015344619750976562, 0.0044403076171875, 0.058380126953125, 0.010894775390625, 0.0079498291015625, -0.00438690185546875, 0.017242431640625, -0.058624267578125, -0.033660888671875, 0.033050537109375, -0.00797271728515625, -0.035369873046875, 0.010833740234375, -0.0215911865234375, -0.00542449951171875, -0.0203399658203125, -0.0085296630859375, 0.036163330078125, 0.005878448486328125, -0.02618408203125, -0.0628662109375, -0.0245361328125, 0.005001068115234375, 0.0692138671875, -0.003658294677734375, -0.026702880859375, -0.056976318359375, 0.02178955078125, 0.01401519775390625, 0.0263671875, -0.007167816162109375, 0.0187835693359375, -0.033416748046875, 0.02728271484375, 0.00933837890625, 0.007625579833984375, 0.01197052001953125, -0.004116058349609375, 0.009857177734375, 0.045623779296875, -0.0269775390625, -0.029937744140625, -0.0003829002380371094, -0.005985260009765625, -0.003917694091796875, -0.042877197265625, -0.02996826171875, -0.058990478515625, 0.06854248046875, -0.0137481689453125, 0.01175689697265625, 0.026275634765625, -0.05218505859375, -0.056304931640625, -0.00998687744140625, -0.024566650390625, 0.0177154541015625, -0.0770263671875, 0.0164947509765625, 0.0023746490478515625, 0.006984710693359375, 0.029022216796875, -0.03485107421875, -0.01165008544921875, -0.0006375312805175781, -0.005344390869140625, -0.0095062255859375, -0.0003178119659423828, 0.033477783203125, 0.0032405853271484375, -0.0178985595703125, -0.027862548828125, 0.005634307861328125, -0.00846099853515625, -0.0277557373046875, -0.0008893013000488281, -0.002101898193359375, -0.003345489501953125, -0.0250244140625, 0.0232086181640625, -0.00421142578125, 0.0154266357421875, -0.0307464599609375, -0.015838623046875, -0.029632568359375, 0.0286102294921875, 0.012054443359375, 0.05010986328125, 0.00646209716796875, -0.01111602783203125, 0.0213623046875, 0.0233612060546875, 0.007289886474609375, -0.037506103515625, -0.025115966796875, 0.0672607421875, 0.0209503173828125, -0.041534423828125, 0.042083740234375, -0.041717529296875, -0.006816864013671875, 0.05047607421875, 0.0213165283203125, -0.03875732421875, 0.0284576416015625, -0.047271728515625, 0.0535888671875, 0.004138946533203125 ]
72e7b9ce04712202b95d5a44b189c7f2a8479758
Wordpress Stackexchange Q: Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php? Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php? I have a mu-functions.php file in the mu-plugins folder. One function calls a javascript file (alerts.js) located in example.com/wp-content/mu-plugins/js/. How can I target the mu-plugins folder in my function? Currently, I am using get_site_url() . '/wp-content/mu-plugins/js/alerts.js', Although not completely relevant to the question, this is the complete function used to call the javascript file: function load_my_alerts(){ wp_register_script( 'my_alerts', get_site_url() . '/wp-content/mu-plugins/js/alerts.js', array( 'jquery' ) ); wp_enqueue_script( 'my_alerts' ); } add_action('admin_enqueue_scripts', 'load_my_alerts'); A: EDIT: this solution is not a best-practice. Please use the solution submitted by Nathan below! Use the WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL constants :) function load_my_alerts(){ wp_register_script( 'my_alerts', WPMU_PLUGIN_URL . '/js/alerts.js', array( 'jquery' ) ); wp_enqueue_script( 'my_alerts' ); } add_action('admin_enqueue_scripts', 'load_my_alerts');
Q: Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php? Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php? I have a mu-functions.php file in the mu-plugins folder. One function calls a javascript file (alerts.js) located in example.com/wp-content/mu-plugins/js/. How can I target the mu-plugins folder in my function? Currently, I am using get_site_url() . '/wp-content/mu-plugins/js/alerts.js', Although not completely relevant to the question, this is the complete function used to call the javascript file: function load_my_alerts(){ wp_register_script( 'my_alerts', get_site_url() . '/wp-content/mu-plugins/js/alerts.js', array( 'jquery' ) ); wp_enqueue_script( 'my_alerts' ); } add_action('admin_enqueue_scripts', 'load_my_alerts'); A: EDIT: this solution is not a best-practice. Please use the solution submitted by Nathan below! Use the WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL constants :) function load_my_alerts(){ wp_register_script( 'my_alerts', WPMU_PLUGIN_URL . '/js/alerts.js', array( 'jquery' ) ); wp_enqueue_script( 'my_alerts' ); } add_action('admin_enqueue_scripts', 'load_my_alerts'); A: FYI, Nathan's example only works for regular plugins, not "Must Use Plugins". To make it work for MU plugins, you need to pass the invoking file: plugins_url('/path/to/whatever', __FILE__) A: It is not good practice to use constants. For this functionality one should ALWAYS use the plugins_url() function seen here in the codex. function load_my_alerts(){ wp_register_script( 'my_alerts', plugins_url('js/alerts.js'), array( 'jquery' ) ); wp_enqueue_script( 'my_alerts' ); } add_action('admin_enqueue_scripts', 'load_my_alerts'); A: When using plugins_url() outside of an mu-plugin, you need to specify the full path to the plugin that is in the mu-plugins directory. For example, when using it in a theme's functions.php file. Below is a correct working version, where the second parameter of plugins_url() is a full path to the plugin in the mu-plugins directory. Please see the codex for more info. function load_my_plugin_script(){ wp_register_script( 'my_plugin_script', plugins_url('my_plugin.js', '/wp/wp-content/mu-plugins/my_plugin') ); wp_enqueue_script( 'my_plugin_script' ); } add_action('admin_enqueue_scripts', 'load_my_plugin_script');
wordpress
{ "language": "en", "length": 283, "provenance": "stackexchange_00019.jsonl.gz:427537", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78627" }
[ 0.07281494140625, 0.00417327880859375, -0.03692626953125, -0.056396484375, 0.03662109375, -0.039306640625, 0.029510498046875, 0.0143585205078125, -0.011016845703125, 0.0033817291259765625, -0.020965576171875, -0.0261383056640625, -0.01447296142578125, -0.027313232421875, -0.0151214599609375, -0.05450439453125, 0.039703369140625, -0.04547119140625, -0.005756378173828125, -0.031005859375, 0.034332275390625, -0.0036525726318359375, 0.0013895034790039062, 0.089111328125, 0.033599853515625, -0.00229644775390625, 0.052276611328125, -0.0135040283203125, 0.0132598876953125, -0.0190277099609375, 0.024749755859375, -0.005786895751953125, 0.0155029296875, 0.0229339599609375, -0.00943756103515625, -0.0279998779296875, 0.0228729248046875, 0.0017480850219726562, -0.004367828369140625, 0.04217529296875, 0.0384521484375, -0.0127716064453125, 0.02142333984375, 0.04071044921875, 0.004070281982421875, -0.06622314453125, 0.07025146484375, -0.035919189453125, 0.00577545166015625, -0.0160980224609375, 0.0045166015625, -0.034393310546875, 0.01541900634765625, -0.01506805419921875, -0.0173187255859375, 0.00296783447265625, -0.07781982421875, 0.03424072265625, -0.00653076171875, 0.08929443359375, 0.03851318359375, 0.01517486572265625, -0.026824951171875, -0.0311431884765625, 0.0177764892578125, -0.005947113037109375, 0.0065155029296875, 0.0235137939453125, -0.023162841796875, 0.021026611328125, 0.02813720703125, -0.0243682861328125, -0.0083770751953125, 0.004184722900390625, -0.03375244140625, -0.0272674560546875, 0.039764404296875, -0.0118560791015625, 0.003986358642578125, 0.004779815673828125, 0.0285186767578125, -0.02581787109375, -0.01136016845703125, 0.01025390625, 0.00022399425506591797, 0.0352783203125, 0.0025577545166015625, -0.0210418701171875, -0.048492431640625, -0.0250396728515625, -0.032257080078125, 0.0095672607421875, -0.055938720703125, -0.007904052734375, -0.0098876953125, -0.0160980224609375, 0.0255584716796875, 0.036590576171875, 0.006000518798828125, -0.00946807861328125, -0.0012712478637695312, -0.0179901123046875, -0.03155517578125, -0.017333984375, -0.0054779052734375, 0.13623046875, 0.0170745849609375, 0.00925445556640625, -0.021820068359375, -0.01715087890625, 0.041107177734375, -0.08160400390625, 0.01015472412109375, -0.0294036865234375, 0.0018072128295898438, -0.0275726318359375, -0.0384521484375, 0.01508331298828125, 0.013214111328125, -0.02569580078125, 0.00007450580596923828, 0.013519287109375, 0.0311126708984375, 0.0034885406494140625, -0.02276611328125, -0.01043701171875, -0.0222625732421875, -0.044464111328125, -0.05780029296875, 0.0399169921875, 0.01494598388671875, 0.0019779205322265625, -0.0229949951171875, 0.02545166015625, -0.0283050537109375, -0.00847625732421875, 0.06488037109375, 0.011932373046875, 0.0165863037109375, -0.026702880859375, 0.0252532958984375, -0.01480865478515625, -0.021392822265625, 0.00981903076171875, -0.0272979736328125, 0.01116943359375, 0.015716552734375, 0.0032958984375, -0.02105712890625, -0.05255126953125, 0.0125579833984375, -0.05279541015625, 0.037750244140625, 0.01277923583984375, 0.0084228515625, -0.00731658935546875, 0.058685302734375, -0.040069580078125, -0.039215087890625, -0.03424072265625, -0.03759765625, -0.0021114349365234375, -0.0036296844482421875, -0.047882080078125, -0.034942626953125, 0.004425048828125, 0.0161285400390625, 0.00635528564453125, 0.0272216796875, 0.0654296875, -0.0311737060546875, -0.0150146484375, 0.01641845703125, 0.037200927734375, 0.005916595458984375, 0.0195159912109375, -0.003047943115234375, 0.049774169921875, 0.043731689453125, -0.005107879638671875, -0.00555419921875, -0.0416259765625, 0.1019287109375, -0.027679443359375, -0.08831787109375, 0.03924560546875, 0.009063720703125, 0.061492919921875, 0.035186767578125, -0.006832122802734375, 0.068603515625, -0.006256103515625, -0.01210784912109375, -0.014923095703125, -0.017242431640625, -0.025726318359375, 0.0027256011962890625, 0.00525665283203125, -0.01507568359375, 0.01715087890625, 0.0008459091186523438, -0.00969696044921875, -0.0020694732666015625, -0.0000883340835571289, -0.062408447265625, 0.003662109375, -0.03009033203125, 0.0211639404296875, 0.00640869140625, -0.0006308555603027344, 0.007625579833984375, 0.041015625, -0.00804901123046875, -0.08856201171875, -0.049285888671875, 0.039947509765625, -0.0211639404296875, 0.055084228515625, -0.00968170166015625, 0.039764404296875, 0.0013523101806640625, -0.03662109375, 0.0124053955078125, 0.019561767578125, -0.040679931640625, 0.0001175999641418457, -0.035858154296875, 0.0003275871276855469, -0.038360595703125, -0.01038360595703125, 0.0287017822265625, 0.054901123046875, 0.01885986328125, 0.0325927734375, 0.003887176513671875, 0.00421142578125, 0.0472412109375, -0.037506103515625, 0.005817413330078125, 0.01335906982421875, 0.04583740234375, 0.0037994384765625, -0.004596710205078125, -0.006267547607421875, 0.01806640625, -0.04986572265625, 0.012481689453125, -0.007289886474609375, 0.007572174072265625, -0.003017425537109375, -0.0275726318359375, -0.01412200927734375, 0.03662109375, -0.038726806640625, 0.016204833984375, 0.0300445556640625, 0.00531005859375, 0.0048980712890625, -0.018585205078125, -0.0019207000732421875, -0.00010454654693603516, -0.024993896484375, -0.041168212890625, -0.0020084381103515625, -0.013336181640625, 0.00942230224609375, 0.03594970703125, 0.038604736328125, 0.007671356201171875, -0.0205841064453125, 0.00342559814453125, 0.0059661865234375, -0.0227203369140625, 0.01508331298828125, 0.042449951171875, -0.02630615234375, -0.0214080810546875, 0.01003265380859375, -0.01277923583984375, -0.00379180908203125, -0.0172119140625, -0.003192901611328125, -0.056182861328125, -0.01390838623046875, -0.01355743408203125, -0.04339599609375, 0.00006222724914550781, 0.032073974609375, -0.0014448165893554688, 0.01329803466796875, 0.04534912109375, 0.002960205078125, -0.025726318359375, 0.0269775390625, 0.0175933837890625, -0.0281982421875, 0.037872314453125, -0.04681396484375, 0.03704833984375, -0.0249481201171875, 0.03466796875, 0.06304931640625, 0.0198822021484375, -0.02239990234375, -0.0181732177734375, -0.004779815673828125, -0.002658843994140625, 0.0072021484375, -0.022705078125, -0.0614013671875, -0.0201568603515625, -0.00949859619140625, 0.0302886962890625, 0.01325225830078125, 0.01495361328125, -0.03948974609375, -0.022247314453125, 0.0168914794921875, -0.1365966796875, -0.1063232421875, 0.0054779052734375, -0.08782958984375, 0.031097412109375, -0.00746917724609375, -0.037628173828125, -0.0311279296875, 0.0198822021484375, 0.00986480712890625, -0.06671142578125, -0.0093994140625, -0.04620361328125, -0.054962158203125, -0.048675537109375, 0.01488494873046875, -0.01399993896484375, 0.005893707275390625, -0.011627197265625, -0.01343536376953125, -0.00580596923828125, -0.036224365234375, -0.007778167724609375, 0.07537841796875, 0.004611968994140625, -0.049346923828125, 0.0140838623046875, 0.0036945343017578125, -0.0195159912109375, 0.00470733642578125, 0.058837890625, 0.04351806640625, -0.04840087890625, 0.005558013916015625, -0.0137786865234375, -0.0283355712890625, 0.001720428466796875, 0.0022735595703125, 0.005401611328125, -0.0201568603515625, -0.001575469970703125, -0.04986572265625, 0.01605224609375, 0.00946807861328125, -0.02294921875, -0.03399658203125, -0.0077362060546875, -0.020050048828125, 0.0187530517578125, -0.038543701171875, 0.05029296875, 0.0127716064453125, 0.026763916015625, 0.00005346536636352539, 0.0250396728515625, -0.01343536376953125, 0.025543212890625, -0.054046630859375, 0.05706787109375, -0.0258941650390625, 0.006259918212890625, 0.01491546630859375, -0.0243072509765625, -0.033203125, -0.0276947021484375, -0.06640625, 0.037994384765625, -0.004459381103515625, -0.037353515625, 0.0229949951171875, -0.014617919921875, 0.01165008544921875, -0.0267791748046875, 0.019256591796875, -0.053863525390625, -0.01055908203125, 0.0064697265625, 0.035736083984375, -0.05584716796875, -0.046783447265625, -0.0380859375, 0.001148223876953125, -0.036895751953125, -0.027008056640625, -0.029266357421875, -0.0235137939453125, 0.0020008087158203125, 0.016754150390625, -0.0113067626953125, -0.03436279296875, 0.035430908203125, 0.005474090576171875, 0.037628173828125, 0.01474761962890625, 0.02459716796875, -0.0194091796875, -0.0213775634765625, -0.008331298828125, -0.12286376953125, -0.0231781005859375, -0.0311737060546875, 0.11187744140625, 0.03271484375, -0.055023193359375, -0.00910186767578125, 0.0723876953125, -0.00858306884765625, 0.033538818359375, 0.012969970703125, 0.0163726806640625, 0.0022830963134765625, -0.01392364501953125, 0.025543212890625, -0.0225067138671875, -0.00067138671875, -0.0082244873046875, -0.0220489501953125, -0.015716552734375, -0.0390625, -0.01372528076171875, 0.006923675537109375, -0.019073486328125, -0.047515869140625, 0.00421905517578125, 0.00443267822265625, 0.00730133056640625, -0.001522064208984375, -0.019744873046875, 0.0034122467041015625, -0.0396728515625, -0.0237579345703125, 0.00623321533203125, -0.01259613037109375, -0.0034465789794921875, -0.043212890625, 0.019683837890625, -0.012664794921875, 0.057037353515625, -0.0247802734375, 0.01483917236328125, 0.01013946533203125, 0.0467529296875, 0.01103973388671875, -0.006923675537109375, 0.0411376953125, 0.01093292236328125, 0.033416748046875, -0.0098114013671875, 0.03619384765625, -0.0074005126953125, -0.024200439453125, 0.043121337890625, 0.0027618408203125, -0.03271484375, 0.04046630859375, 0.00409698486328125, -0.033447265625, 0.01861572265625, 0.028472900390625, -0.050994873046875, 0.035888671875, -0.016998291015625, -0.018768310546875, 0.01018524169921875, -0.03314208984375, 0.03961181640625, 0.032470703125, -0.018096923828125, 0.018280029296875, 0.01515960693359375, -0.006305694580078125, 0.040435791015625, 0.05426025390625, 0.02386474609375, 0.02642822265625, 0.05682373046875, -0.004383087158203125, -0.0279693603515625, -0.00617218017578125, 0.050994873046875, 0.0201568603515625, -0.0198211669921875, -0.038330078125, -0.00452423095703125, 0.06109619140625, -0.023834228515625, -0.008331298828125, 0.06158447265625, 0.0634765625, -0.0657958984375, -0.032073974609375, -0.01044464111328125, -0.006732940673828125, -0.07476806640625, 0.027130126953125, 0.0235748291015625, -0.01195526123046875, -0.042877197265625, 0.08404541015625, 0.0168609619140625, 0.01806640625, -0.005771636962890625, 0.02813720703125, 0.00946807861328125, 0.044219970703125, 0.010772705078125, -0.030242919921875, -0.0230560302734375, 0.042724609375, -0.01458740234375, -0.0164947509765625, 0.016082763671875, 0.0088653564453125, 0.002887725830078125, -0.01483917236328125, -0.011505126953125, 0.032379150390625, 0.00009018182754516602, -0.018951416015625, 0.01548004150390625, -0.01251220703125, -0.0125732421875, -0.0316162109375, -0.0194091796875, 0.045806884765625, 0.0124969482421875, 0.01313018798828125, 0.0162353515625, 0.0154571533203125, 0.042083740234375, 0.01360321044921875, -0.0010318756103515625, -0.0078887939453125, -0.0027637481689453125, -0.0064697265625, 0.01739501953125, 0.0254364013671875, -0.049346923828125, -0.0294189453125, -0.032989501953125, -0.011138916015625, 0.07476806640625, -0.022857666015625, -0.007785797119140625, -0.0198822021484375, 0.0159912109375, 0.0057830810546875, 0.0001304149627685547, 0.06396484375, 0.022003173828125, -0.0760498046875, -0.00585174560546875, -0.0175018310546875, -0.00702667236328125, -0.01169586181640625, -0.0312042236328125, -0.055816650390625, -0.0002484321594238281, -0.00939178466796875, 0.0180206298828125, -0.0132598876953125, -0.0012292861938476562, 0.020904541015625, 0.0194091796875, -0.00814056396484375, 0.027008056640625, -0.0017299652099609375, 0.049591064453125, 0.0248870849609375, 0.0198516845703125, 0.04046630859375, 0.0192108154296875, -0.036376953125, -0.0154266357421875, 0.00717926025390625, -0.0256805419921875, -0.0063323974609375, -0.015655517578125, -0.0160980224609375, -0.0289459228515625, 0.039947509765625, -0.0035495758056640625, 0.024383544921875, 0.007049560546875, -0.006168365478515625, -0.0153350830078125, 0.0297393798828125, 0.0040283203125, 0.03118896484375, 0.0297698974609375, -0.046966552734375, 0.0098724365234375, -0.00039315223693847656, 0.00652313232421875, 0.0367431640625, -0.044647216796875, 0.02496337890625, 0.0237274169921875, -0.0310516357421875, 0.061798095703125, 0.037200927734375, -0.0208892822265625, 0.00847625732421875, -0.004852294921875, -0.0203094482421875, -0.027618408203125, 0.06719970703125, 0.00518798828125, -0.0169677734375, 0.0765380859375, 0.0224761962890625, -0.03662109375, 0.038482666015625, -0.042236328125, 0.00455474853515625, 0.039581298828125, 0.03155517578125, -0.075927734375, 0.0144805908203125, 0.007808685302734375, 0.0211334228515625, 0.0175018310546875, -0.02044677734375, -0.0001493692398071289, -0.039520263671875, 0.0726318359375, -0.0015993118286132812, 0.0162353515625, 0.03460693359375, -0.008514404296875, -0.0146484375, 0.007781982421875, 0.022796630859375, 0.01470947265625, -0.04705810546875, 0.0005993843078613281, 0.017181396484375, -0.003818511962890625, -0.00540924072265625, 0.023651123046875, 0.018096923828125, -0.0254669189453125, -0.040985107421875, 0.01971435546875, 0.007038116455078125, -0.045013427734375, -0.040740966796875, 0.0118560791015625, 0.05340576171875, 0.034423828125, 0.006847381591796875, -0.030303955078125, 0.0213623046875, 0.021820068359375, -0.0101318359375, -0.0299530029296875, 0.0219879150390625, 0.0509033203125, -0.05145263671875, 0.022186279296875, 0.0079193115234375, -0.0188446044921875, -0.00531005859375, 0.004955291748046875, 0.05206298828125, -0.0169525146484375, -0.03173828125, 0.0183868408203125, -0.006786346435546875, -0.00969696044921875, -0.017913818359375, 0.047576904296875, -0.078857421875, -0.041168212890625, 0.006671905517578125, -0.05474853515625, -0.046966552734375, -0.04632568359375, -0.02764892578125, 0.0816650390625, -0.006580352783203125, -0.016693115234375, 0.01226043701171875, 0.035491943359375, -0.011993408203125, 0.027313232421875, 0.0017137527465820312, 0.053009033203125, 0.02569580078125, -0.03546142578125, -0.02923583984375, 0.006683349609375, -0.03131103515625, 0.0237579345703125, 0.00492095947265625, 0.0038547515869140625, 0.01995849609375, -0.01030731201171875, 0.037353515625, 0.024169921875, 0.00252532958984375, -0.0156402587890625, 0.005504608154296875, 0.0103302001953125, 0.038787841796875, -0.0180816650390625, 0.027191162109375, -0.0102691650390625, 0.0012226104736328125, 0.03314208984375, 0.0175018310546875, 0.0070037841796875, -0.0271453857421875, -0.0174102783203125, 0.00969696044921875, -0.0126800537109375, -0.0014495849609375, 0.0015459060668945312, -0.0259857177734375, 0.016143798828125, -0.0193634033203125, 0.0157928466796875, -0.0096435546875, -0.00812530517578125, 0.026885986328125, -0.0048370361328125, -0.03424072265625, 0.007793426513671875, -0.01473236083984375, -0.0098419189453125, 0.0143890380859375, -0.0289154052734375, 0.0247039794921875, 0.03076171875, 0.0160980224609375, 0.021148681640625, 0.031036376953125, -0.012542724609375, -0.0097503662109375, 0.038909912109375, 0.030517578125, -0.01299285888671875, -0.045257568359375, -0.006198883056640625, -0.002056121826171875, 0.0108184814453125, 0.03131103515625, 0.04473876953125, 0.0259246826171875, 0.029388427734375, 0.018707275390625, -0.01556396484375, -0.01486968994140625, 0.00010913610458374023, -0.00299072265625, -0.00920867919921875, 0.034820556640625, 0.0169830322265625, -0.0157623291015625, 0.029083251953125, 0.0194854736328125, 0.0396728515625, -0.0213165283203125, 0.041748046875, -0.04364013671875, -0.01493072509765625, -0.030517578125, 0.0263214111328125, 0.01904296875, 0.01535797119140625, -0.0143280029296875, 0.00299835205078125, 0.03509521484375, 0.0269927978515625, 0.016204833984375, 0.0189971923828125, 0.050750732421875, 0.018585205078125, -0.038818359375, 0.006107330322265625, 0.0194854736328125, -0.0210113525390625, 0.055206298828125, -0.007045745849609375, 0.019287109375, -0.00829315185546875, -0.01137542724609375, -0.01336669921875, 0.0167236328125, 0.024810791015625, -0.0540771484375, 0.04931640625, -0.01360321044921875, 0.0233001708984375, 0.0545654296875, -0.0306396484375, 0.020477294921875, -0.0296630859375, -0.044281005859375, -0.00708770751953125, -0.026763916015625, 0.00270843505859375, 0.01385498046875, 0.0382080078125, -0.01372528076171875, 0.049468994140625, 0.03399658203125, 0.0103302001953125, 0.0001367330551147461, -0.0299224853515625, 0.0236968994140625, 0.007755279541015625, 0.020721435546875, 0.028106689453125, 0.029296875, 0.01287078857421875, 0.021453857421875, 0.0245361328125, 0.0204315185546875, 0.058990478515625, -0.033843994140625, 0.005115509033203125, 0.0248870849609375, -0.03240966796875, 0.040252685546875, 0.025115966796875, -0.05474853515625, -0.02484130859375, 0.02197265625, 0.0043487548828125, -0.033050537109375, 0.060394287109375, 0.000888824462890625, -0.0012044906616210938, 0.0123748779296875, 0.01727294921875, 0.00156402587890625, 0.0277862548828125, 0.0679931640625, -0.0068206787109375, -0.037139892578125, -0.0433349609375, -0.007205963134765625, 0.04449462890625, 0.05517578125, -0.01377105712890625, 0.022918701171875, -0.00628662109375, -0.0281219482421875, -0.007617950439453125, -0.013397216796875, -0.0273284912109375, 0.02545166015625, 0.01355743408203125, 0.003932952880859375, 0.00926971435546875, -0.02703857421875, 0.02484130859375, -0.004207611083984375, 0.036773681640625, -0.024688720703125, -0.0022830963134765625, -0.0181427001953125, -0.01139068603515625, -0.0164642333984375, -0.031463623046875, -0.013671875, 0.0192718505859375, -0.0136260986328125, -0.03277587890625, -0.035919189453125, -0.027313232421875, -0.0423583984375, 0.0177001953125, 0.018829345703125, 0.00560760498046875, -0.01102447509765625, -0.00632476806640625, 0.00569915771484375, 0.03729248046875, -0.0026226043701171875, -0.05718994140625, 0.0169525146484375, -0.042083740234375, 0.042144775390625, -0.01739501953125, 0.022705078125, -0.02630615234375, 0.010467529296875, -0.03143310546875, -0.07965087890625, -0.033843994140625, 0.0791015625, -0.04705810546875, 0.011932373046875, 0.041046142578125, -0.00811004638671875, -0.042205810546875, 0.001132965087890625, -0.013275146484375, 0.0455322265625, -0.0223388671875, -0.0133209228515625, 0.0209503173828125, 0.0228729248046875, -0.020904541015625, -0.026702880859375, -0.020111083984375, 0.00750732421875, 0.0262908935546875, -0.0018548965454101562, 0.01898193359375, 0.03314208984375, -0.032806396484375, -0.1075439453125, 0.07391357421875, -0.0192718505859375, -0.036956787109375, -0.04339599609375, 0.021331787109375, 0.030792236328125, -0.04345703125, -0.0299224853515625, -0.01058197021484375, -0.048614501953125, 0.0177154541015625, 0.03155517578125, 0.0077667236328125, 0.037017822265625, -0.006793975830078125, -0.00798797607421875, 0.03369140625, 0.046875, 0.0184326171875, -0.035064697265625, 0.038787841796875, 0.01088714599609375, 0.061981201171875, 0.013214111328125, 0.0255889892578125, 0.007717132568359375, -0.032989501953125, -0.035064697265625, -0.020660400390625, -0.0013408660888671875, 0.0260467529296875, 0.11065673828125, 0.042938232421875, 0.0262298583984375, -0.06463623046875, -0.0182037353515625, -0.01338958740234375, 0.007793426513671875, 0.00446319580078125, 0.012939453125, -0.04205322265625, 0.007404327392578125, 0.0177764892578125, -0.0157470703125, -0.01495361328125, 0.017303466796875, -0.03265380859375, -0.00945281982421875, 0.0002694129943847656, -0.0216827392578125, -0.0051422119140625, -0.03558349609375, 0.068603515625, -0.040924072265625, 0.001560211181640625, 0.0276336669921875, 0.02349853515625, 0.0297088623046875, 0.0377197265625, 0.00423431396484375, 0.044647216796875, -0.0263214111328125, -0.00308990478515625, 0.016937255859375, 0.04315185546875, -0.00592803955078125, -0.017120361328125, -0.0174102783203125, 0.01776123046875, 0.0165863037109375, 0.013153076171875, -0.046051025390625, 0.029022216796875, 0.00025773048400878906, 0.0217742919921875, -0.021484375, 0.01313018798828125, -0.01084136962890625, 0.0206298828125, 0.02398681640625, 0.002593994140625, 0.07086181640625, -0.02886962890625, 0.00795745849609375, 0.01255035400390625, -0.02001953125, -0.0367431640625, -0.0030517578125, -0.031646728515625, 0.00020134449005126953, -0.00484466552734375 ]
2a768b995b1ddd908763b3d61b3478c98ea09371
Wordpress Stackexchange Q: get_comments_number of depth-1 (Level 1) (1 post) I selected only 2 levels of comment for my wordpress site. How can I display the number of comment of the first level ? (Depth-1) A: In the wp_comments table, if comment_parent equals 0, it's a first-level comment. function get_num_toplevel_comments() { global $wpdb; return $wpdb->get_var(" SELECT COUNT(*) FROM $wpdb->comments WHERE comment_parent = 0 "); }
Q: get_comments_number of depth-1 (Level 1) (1 post) I selected only 2 levels of comment for my wordpress site. How can I display the number of comment of the first level ? (Depth-1) A: In the wp_comments table, if comment_parent equals 0, it's a first-level comment. function get_num_toplevel_comments() { global $wpdb; return $wpdb->get_var(" SELECT COUNT(*) FROM $wpdb->comments WHERE comment_parent = 0 "); } A: Based on akTed's answer: function get_top_level_comments_number( $post_id = 0, $onlyapproved = true ) { global $wpdb, $post; $post_id = $post_id ? $post_id : $post->ID; $sql = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_parent = 0 AND comment_post_ID = $post_id"; if( $onlyapproved ) $sql .= " AND comment_approved='1'"; return (int) $wpdb->get_var( $sql ); } Usage same as here … Returns the number of top level comments for a specific post (or the current one if no id is given) A: Use the code from this answer and remove just one !: add_filter( 'comments_clauses', 'wpse_78628_top_comments_only' ); $comments = get_comments(); remove_filter( 'comments_clauses', 'wpse_78628_top_comments_only' ); function wpse_78628_top_comments_only( $clauses ) { $clauses['where'] .= ' AND comment_parent = 0'; return $clauses; } A: here is some full working code, based on previous answers. <?php add_filter( 'comments_clauses', 'wpse_78490_child_comments_only' ); function wpse_78490_child_comments_only( $clauses ) { $clauses['where'] .= ' AND comment_parent != 0'; return $clauses; } $count = get_comments( array('post_id' => $post->ID, 'count' => true) ); echo $count; ?>
wordpress
{ "language": "en", "length": 223, "provenance": "stackexchange_00019.jsonl.gz:427538", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78628" }
[ 0.01284027099609375, -0.0181884765625, -0.01494598388671875, -0.0455322265625, -0.0178680419921875, -0.009429931640625, -0.0078125, 0.004360198974609375, 0.021148681640625, 0.027435302734375, -0.01197052001953125, 0.00688934326171875, -0.037353515625, -0.0177764892578125, -0.048248291015625, -0.032501220703125, 0.044158935546875, -0.00966644287109375, 0.031951904296875, -0.00894927978515625, 0.00525665283203125, 0.01371002197265625, 0.00409698486328125, 0.0972900390625, 0.031280517578125, -0.050079345703125, 0.0892333984375, -0.039276123046875, 0.04290771484375, -0.03363037109375, 0.0298004150390625, -0.005786895751953125, 0.00997161865234375, -0.032928466796875, 0.05047607421875, -0.02850341796875, -0.031707763671875, 0.00986480712890625, 0.0166473388671875, -0.009246826171875, 0.028228759765625, -0.01166534423828125, -0.00792694091796875, -0.032928466796875, -0.020294189453125, 0.004547119140625, -0.002758026123046875, -0.0285491943359375, 0.041900634765625, -0.030120849609375, 0.0170440673828125, 0.04608154296875, 0.04693603515625, -0.0355224609375, -0.0137481689453125, 0.01629638671875, 0.0239105224609375, -0.039306640625, 0.006435394287109375, -0.0267486572265625, 0.006420135498046875, 0.0197601318359375, 0.0284881591796875, 0.027191162109375, -0.031494140625, 0.0127716064453125, 0.003231048583984375, 0.021575927734375, 0.01885986328125, -0.056365966796875, -0.039459228515625, 0.006931304931640625, -0.0003592967987060547, -0.002605438232421875, -0.0306396484375, -0.0399169921875, 0.008087158203125, -0.04840087890625, 0.025634765625, 0.00540924072265625, 0.0008172988891601562, -0.01476287841796875, -0.0489501953125, -0.01152801513671875, 0.01560211181640625, 0.00635528564453125, -0.0113983154296875, -0.01654052734375, -0.0220184326171875, 0.0161895751953125, -0.01258087158203125, -0.00896453857421875, -0.0025081634521484375, 0.0152740478515625, -0.0117340087890625, -0.013092041015625, 0.01222991943359375, 0.0343017578125, -0.042083740234375, -0.023468017578125, -0.032684326171875, 0.01041412353515625, -0.06060791015625, -0.0164947509765625, 0.05145263671875, -0.0022487640380859375, -0.04119873046875, -0.0931396484375, 0.0626220703125, 0.0278472900390625, -0.0030269622802734375, 0.103759765625, -0.0222320556640625, -0.017974853515625, 0.0158843994140625, 0.009796142578125, -0.0654296875, 0.062164306640625, -0.00672149658203125, 0.03533935546875, -0.01468658447265625, 0.020965576171875, -0.039398193359375, 0.0006060600280761719, 0.005161285400390625, -0.007480621337890625, 0.02056884765625, 0.00099945068359375, -0.003009796142578125, 0.015838623046875, -0.016845703125, 0.03875732421875, 0.0184783935546875, -0.02606201171875, -0.028778076171875, -0.00716400146484375, -0.0028209686279296875, 0.00943756103515625, -0.0089111328125, -0.01261138916015625, 0.0176544189453125, -0.0163116455078125, -0.004467010498046875, -0.0026798248291015625, -0.050384521484375, 0.02679443359375, 0.034423828125, 0.0064849853515625, -0.037567138671875, -0.09588623046875, -0.01153564453125, 0.0205230712890625, 0.01114654541015625, -0.008270263671875, 0.008544921875, -0.04217529296875, -0.024078369140625, -0.0128631591796875, 0.024871826171875, -0.01483154296875, -0.0015554428100585938, -0.002567291259765625, 0.01690673828125, -0.0106658935546875, -0.033843994140625, 0.004535675048828125, -0.0250091552734375, -0.006755828857421875, 0.0172271728515625, 0.0015659332275390625, 0.029510498046875, -0.0161895751953125, 0.0129547119140625, 0.01096343994140625, 0.004505157470703125, 0.0028934478759765625, -0.01076507568359375, -0.0034236907958984375, 0.00323486328125, 0.0211639404296875, -0.0004673004150390625, -0.03729248046875, 0.0052490234375, 0.0305023193359375, 0.026611328125, -0.00946807861328125, 0.030853271484375, 0.00881195068359375, -0.026947021484375, 0.036956787109375, -0.019500732421875, 0.0372314453125, -0.03314208984375, 0.0187530517578125, -0.0245208740234375, -0.01450347900390625, -0.013671875, 0.0121002197265625, -0.03570556640625, 0.024871826171875, 0.0166168212890625, -0.01422119140625, 0.00487518310546875, -0.00728607177734375, -0.0118255615234375, -0.01285552978515625, -0.005451202392578125, 0.0012760162353515625, 0.0499267578125, 0.0198516845703125, -0.00658416748046875, -0.0030040740966796875, -0.0171051025390625, -0.0187225341796875, -0.04693603515625, 0.026611328125, -0.0207061767578125, 0.0045166015625, -0.01666259765625, 0.026123046875, -0.029052734375, -0.00226593017578125, -0.044158935546875, -0.0169219970703125, 0.057159423828125, 0.0011568069458007812, 0.006710052490234375, -0.0035190582275390625, 0.0985107421875, 0.0098876953125, 0.0111541748046875, -0.017822265625, 0.0311431884765625, -0.01629638671875, -0.0379638671875, -0.00910186767578125, 0.00394439697265625, -0.0721435546875, 0.0029468536376953125, 0.06195068359375, 0.0306243896484375, 0.051055908203125, 0.0196990966796875, 0.032958984375, 0.037261962890625, -0.058837890625, 0.005054473876953125, -0.00196075439453125, 0.01320648193359375, 0.059814453125, -0.0343017578125, -0.01074981689453125, 0.0292816162109375, -0.01763916015625, -0.010650634765625, 0.048065185546875, -0.0109710693359375, 0.018585205078125, -0.005870819091796875, 0.0015411376953125, -0.004901885986328125, -0.043060302734375, -0.005992889404296875, -0.024444580078125, -0.0122528076171875, -0.0011997222900390625, 0.00823974609375, 0.01326751708984375, -0.0228118896484375, -0.0117950439453125, 0.0384521484375, 0.03369140625, 0.003108978271484375, 0.02496337890625, -0.0205078125, -0.020050048828125, -0.01172637939453125, 0.001880645751953125, -0.0262298583984375, -0.013275146484375, -0.01187896728515625, 0.06646728515625, -0.0260772705078125, -0.0214691162109375, -0.05511474609375, -0.0374755859375, -0.0023212432861328125, 0.02215576171875, -0.050048828125, -0.0212860107421875, 0.01678466796875, 0.041656494140625, 0.0041656494140625, -0.007293701171875, -0.003498077392578125, 0.00962066650390625, 0.0202484130859375, -0.0307464599609375, 0.0280914306640625, -0.0184478759765625, -0.00010848045349121094, 0.05120849609375, 0.022674560546875, -0.026611328125, -0.0149383544921875, 0.0159454345703125, 0.01444244384765625, -0.0175933837890625, -0.01537322998046875, 0.01265716552734375, -0.0310211181640625, 0.0241546630859375, 0.00949859619140625, 0.03387451171875, -0.0006003379821777344, -0.01265716552734375, -0.0197601318359375, 0.0269927978515625, -0.038482666015625, -0.0169219970703125, 0.0018796920776367188, -0.054107666015625, 0.00811004638671875, -0.018310546875, -0.016876220703125, -0.012359619140625, -0.007480621337890625, -0.002483367919921875, 0.00835418701171875, -0.039398193359375, -0.04522705078125, -0.046295166015625, -0.0677490234375, 0.0220184326171875, 0.0145721435546875, 0.0296783447265625, 0.004848480224609375, 0.049713134765625, -0.004917144775390625, -0.0540771484375, -0.005550384521484375, 0.0106964111328125, -0.0167694091796875, 0.005321502685546875, 0.002368927001953125, -0.01153564453125, 0.013885498046875, 0.00812530517578125, -0.08416748046875, 0.007144927978515625, 0.025054931640625, -0.0239715576171875, 0.0014934539794921875, -0.011993408203125, 0.0273895263671875, 0.003452301025390625, -0.00902557373046875, 0.017608642578125, 0.036102294921875, -0.030517578125, -0.0279693603515625, 0.006031036376953125, -0.040130615234375, -0.0283660888671875, 0.025665283203125, -0.0106658935546875, -0.0255126953125, 0.0139007568359375, -0.00211334228515625, 0.0019140243530273438, 0.040252685546875, -0.0226287841796875, 0.034698486328125, -0.0204620361328125, -0.029296875, -0.0379638671875, 0.0290069580078125, -0.0241241455078125, -0.0247955322265625, -0.021270751953125, 0.01450347900390625, -0.00354766845703125, -0.048858642578125, -0.04437255859375, -0.0232391357421875, 0.046295166015625, 0.0262451171875, 0.0237884521484375, -0.020172119140625, -0.038818359375, -0.010101318359375, 0.06243896484375, -0.055633544921875, -0.01294708251953125, -0.015045166015625, 0.0113983154296875, -0.0411376953125, -0.03173828125, -0.04754638671875, -0.0051116943359375, -0.07684326171875, 0.0275421142578125, 0.0157470703125, -0.04498291015625, -0.00691986083984375, 0.007740020751953125, -0.058349609375, -0.038848876953125, 0.01020050048828125, -0.027496337890625, -0.0404052734375, 0.0301055908203125, -0.0782470703125, 0.03729248046875, 0.0024700164794921875, -0.036102294921875, -0.0254058837890625, -0.0270233154296875, 0.01261138916015625, 0.034515380859375, -0.0034618377685546875, -0.0177764892578125, 0.00623321533203125, 0.059173583984375, -0.0159454345703125, 0.0296630859375, -0.02935791015625, 0.02630615234375, -0.0665283203125, -0.0394287109375, -0.027099609375, -0.0310211181640625, -0.037445068359375, -0.044158935546875, 0.01464080810546875, 0.058624267578125, -0.007598876953125, 0.042236328125, -0.031890869140625, 0.039398193359375, 0.0196685791015625, -0.02783203125, -0.05889892578125, 0.0205230712890625, -0.032257080078125, 0.002559661865234375, -0.050811767578125, -0.0290679931640625, 0.0027904510498046875, 0.00658416748046875, -0.0119171142578125, 0.002986907958984375, 0.045867919921875, 0.0240936279296875, -0.025665283203125, -0.032684326171875, -0.045562744140625, 0.0196533203125, -0.017333984375, 0.0482177734375, 0.03485107421875, -0.0178985595703125, 0.05645751953125, 0.005573272705078125, 0.0384521484375, -0.0002429485321044922, 0.02496337890625, 0.00623321533203125, -0.01041412353515625, 0.040802001953125, 0.016571044921875, -0.05133056640625, 0.0117950439453125, -0.044921875, 0.0141448974609375, -0.06951904296875, 0.02667236328125, 0.0017118453979492188, 0.01751708984375, -0.038055419921875, -0.0362548828125, 0.01367950439453125, -0.058319091796875, 0.04541015625, 0.0237884521484375, 0.0063323974609375, 0.035675048828125, 0.0184478759765625, 0.00606536865234375, 0.042938232421875, 0.037384033203125, 0.0007200241088867188, 0.0305328369140625, 0.03436279296875, -0.0135955810546875, 0.007648468017578125, -0.0225982666015625, 0.09161376953125, 0.00572967529296875, -0.0697021484375, 0.05596923828125, -0.0247802734375, -0.004711151123046875, 0.0364990234375, 0.002758026123046875, 0.003353118896484375, -0.0189056396484375, -0.0223541259765625, -0.004436492919921875, -0.006015777587890625, -0.02838134765625, -0.02655029296875, 0.050445556640625, 0.022674560546875, 0.003437042236328125, -0.019683837890625, 0.06207275390625, 0.040008544921875, 0.005123138427734375, -0.027191162109375, -0.00879669189453125, -0.013916015625, 0.034149169921875, 0.01511383056640625, -0.009613037109375, 0.038970947265625, -0.00809478759765625, 0.05810546875, -0.0133819580078125, -0.0369873046875, 0.047393798828125, 0.0181884765625, 0.037841796875, 0.037750244140625, -0.037017822265625, 0.01058197021484375, 0.0164031982421875, 0.0148773193359375, 0.049713134765625, -0.015380859375, 0.029449462890625, 0.01116943359375, -0.00730133056640625, -0.004467010498046875, -0.029144287109375, 0.01378631591796875, -0.052459716796875, 0.00875091552734375, -0.004352569580078125, -0.02337646484375, 0.0173187255859375, 0.0128631591796875, -0.058868408203125, -0.0097198486328125, 0.021759033203125, -0.0692138671875, -0.04107666015625, 0.01300811767578125, -0.0112457275390625, 0.0122833251953125, 0.01373291015625, 0.0274810791015625, -0.0209197998046875, -0.038604736328125, 0.00043511390686035156, -0.0171356201171875, 0.0667724609375, 0.0246734619140625, 0.00940704345703125, -0.0248565673828125, -0.036376953125, -0.032989501953125, 0.004428863525390625, -0.0167236328125, -0.03619384765625, 0.00569915771484375, -0.016693115234375, 0.0277557373046875, 0.00107574462890625, 0.035614013671875, 0.017181396484375, 0.006122589111328125, -0.036041259765625, 0.0292205810546875, -0.01058197021484375, 0.06689453125, 0.016448974609375, -0.0192718505859375, 0.036895751953125, 0.09112548828125, 0.0168914794921875, -0.0189666748046875, 0.061553955078125, -0.006683349609375, -0.05291748046875, -0.04052734375, -0.0044708251953125, -0.07147216796875, -0.0310516357421875, -0.0274200439453125, 0.05712890625, 0.00518035888671875, 0.010467529296875, 0.00328826904296875, -0.065673828125, 0.0008974075317382812, 0.0128173828125, 0.058380126953125, 0.007556915283203125, 0.0458984375, -0.034515380859375, -0.0445556640625, 0.0157623291015625, 0.016632080078125, 0.034576416015625, 0.008636474609375, -0.0477294921875, 0.044708251953125, 0.0301971435546875, 0.007171630859375, 0.0252838134765625, 0.002994537353515625, 0.0222320556640625, -0.0161590576171875, 0.0026149749755859375, -0.0014047622680664062, -0.031585693359375, 0.0386962890625, 0.0017213821411132812, 0.00077056884765625, 0.037261962890625, -0.0168914794921875, 0.017791748046875, -0.026519775390625, 0.03594970703125, -0.008209228515625, 0.01934814453125, -0.004848480224609375, -0.042816162109375, 0.0296630859375, -0.01206207275390625, 0.00853729248046875, -0.056365966796875, 0.0252838134765625, 0.0303955078125, -0.0009102821350097656, -0.006103515625, -0.0310516357421875, -0.01338958740234375, -0.03662109375, 0.00921630859375, -0.00441741943359375, 0.0207061767578125, -0.0153961181640625, -0.0005731582641601562, -0.01995849609375, -0.039215087890625, 0.001171112060546875, 0.00019037723541259766, -0.007694244384765625, -0.07342529296875, 0.01702880859375, -0.02691650390625, -0.005275726318359375, 0.054351806640625, 0.006603240966796875, -0.00731658935546875, 0.04730224609375, -0.0150604248046875, 0.01995849609375, 0.0216522216796875, -0.0692138671875, -0.038177490234375, -0.0206451416015625, 0.041412353515625, -0.01263427734375, -0.039398193359375, 0.02264404296875, -0.055816650390625, -0.0293426513671875, -0.0016298294067382812, 0.0112152099609375, 0.04998779296875, -0.0208587646484375, -0.0215301513671875, 0.040771484375, 0.01076507568359375, -0.01000213623046875, -0.01242828369140625, 0.014129638671875, 0.004673004150390625, 0.060638427734375, -0.01392364501953125, 0.051483154296875, 0.01412200927734375, -0.01605224609375, -0.042083740234375, 0.034027099609375, -0.0269775390625, 0.01153564453125, 0.03961181640625, 0.0008573532104492188, -0.037445068359375, -0.02166748046875, -0.02337646484375, 0.047149658203125, 0.024749755859375, 0.0447998046875, -0.0609130859375, -0.046875, 0.0181884765625, 0.09765625, 0.05712890625, 0.0082550048828125, -0.0040435791015625, -0.016937255859375, 0.037261962890625, 0.0272369384765625, -0.0117645263671875, 0.0369873046875, 0.017822265625, 0.0134429931640625, 0.050323486328125, -0.01837158203125, 0.02734375, -0.021514892578125, 0.0175628662109375, 0.045196533203125, -0.0009737014770507812, -0.0200653076171875, 0.00830078125, 0.01030731201171875, -0.043487548828125, 0.0005550384521484375, 0.018585205078125, 0.0211944580078125, -0.024444580078125, 0.0628662109375, 0.0177001953125, -0.01392364501953125, -0.036224365234375, -0.03125, 0.024017333984375, -0.0006833076477050781, 0.01904296875, 0.038604736328125, 0.0322265625, 0.027008056640625, -0.0173492431640625, 0.0067596435546875, 0.004650115966796875, -0.0248565673828125, 0.047698974609375, 0.00765228271484375, 0.0280303955078125, -0.06610107421875, -0.007171630859375, 0.0005097389221191406, 0.059295654296875, -0.048614501953125, -0.07110595703125, 0.010833740234375, 0.0006008148193359375, 0.028839111328125, 0.03509521484375, 0.053802490234375, 0.0462646484375, 0.0682373046875, -0.0257110595703125, -0.05657958984375, -0.00522613525390625, 0.0267791748046875, 0.004383087158203125, -0.01483154296875, 0.051422119140625, -0.06890869140625, 0.0036869049072265625, -0.041839599609375, 0.006649017333984375, 0.007648468017578125, 0.00832366943359375, 0.041259765625, 0.002643585205078125, 0.003337860107421875, 0.011810302734375, 0.004352569580078125, -0.0084228515625, -0.01287841796875, 0.007007598876953125, -0.00856781005859375, 0.002681732177734375, 0.009063720703125, 0.029144287109375, -0.00093841552734375, 0.0034465789794921875, -0.00966644287109375, -0.0035800933837890625, 0.0007319450378417969, 0.0004584789276123047, -0.0304412841796875, -0.01206207275390625, -0.051605224609375, 0.02276611328125, 0.032684326171875, 0.0140533447265625, 0.01513671875, 0.0152587890625, 0.042510986328125, 0.0212249755859375, 0.0002428293228149414, 0.02276611328125, 0.016387939453125, 0.0268096923828125, 0.0164794921875, -0.031036376953125, 0.036834716796875, -0.034881591796875, 0.0096588134765625, -0.014984130859375, -0.01238250732421875, 0.01154327392578125, 0.019775390625, -0.0180816650390625, 0.030731201171875, -0.006313323974609375, -0.0157623291015625, -0.004230499267578125, -0.00530242919921875, 0.03411865234375, 0.032135009765625, -0.0021457672119140625, 0.0292816162109375, -0.044189453125, -0.033599853515625, -0.025787353515625, 0.01491546630859375, 0.059814453125, 0.049652099609375, 0.00917816162109375, 0.041534423828125, -0.0305023193359375, 0.052490234375, -0.042572021484375, -0.0274505615234375, 0.05267333984375, 0.027191162109375, 0.00933837890625, -0.02392578125, -0.0841064453125, 0.040374755859375, 0.0274810791015625, 0.03814697265625, 0.067138671875, -0.0211334228515625, 0.0123291015625, -0.04486083984375, -0.0006966590881347656, -0.018707275390625, 0.001674652099609375, -0.013214111328125, -0.031280517578125, 0.050506591796875, 0.0287628173828125, -0.0035190582275390625, 0.06134033203125, 0.00836944580078125, 0.0176544189453125, 0.0170135498046875, -0.027618408203125, -0.0002846717834472656, 0.02587890625, -0.014251708984375, 0.0208740234375, 0.04266357421875, -0.0078887939453125, 0.051605224609375, 0.01045989990234375, 0.004638671875, 0.05169677734375, -0.00890350341796875, 0.0010499954223632812, 0.0264892578125, 0.05841064453125, -0.0042724609375, 0.01029205322265625, 0.01337432861328125, -0.0091094970703125, -0.00008410215377807617, -0.0184478759765625, -0.006908416748046875, -0.03204345703125, -0.024658203125, -0.0016841888427734375, -0.0159912109375, -0.02532958984375, 0.021148681640625, 0.012603759765625, 0.0158538818359375, 0.023406982421875, -0.06689453125, 0.029022216796875, 0.0141448974609375, 0.0377197265625, -0.002262115478515625, 0.044281005859375, 0.00926971435546875, 0.01885986328125, -0.0748291015625, 0.0055084228515625, -0.025238037109375, -0.0127716064453125, -0.0262298583984375, 0.0552978515625, 0.031005859375, -0.033843994140625, 0.040191650390625, 0.0806884765625, 0.035491943359375, 0.1356201171875, -0.01557159423828125, -0.0032062530517578125, 0.00901031494140625, -0.001117706298828125, -0.04095458984375, -0.051025390625, 0.048614501953125, -0.068115234375, -0.043243408203125, -0.01519775390625, 0.032562255859375, 0.06646728515625, -0.01322174072265625, -0.07647705078125, 0.0797119140625, -0.031951904296875, -0.0271148681640625, -0.024169921875, -0.00809478759765625, -0.031219482421875, 0.059478759765625, 0.015777587890625, -0.0152435302734375, 0.01364898681640625, 0.045684814453125, -0.0080413818359375, 0.0034809112548828125, 0.005481719970703125, -0.004337310791015625, -0.0184326171875, 0.025726318359375, 0.0413818359375, -0.037384033203125, 0.0244598388671875, 0.006305694580078125, 0.01174163818359375, 0.03570556640625, -0.050140380859375, 0.006927490234375, -0.033966064453125, 0.010528564453125, 0.0105438232421875, -0.055389404296875, 0.016448974609375, -0.0283966064453125, 0.01311492919921875, -0.0177764892578125, -0.0175018310546875, -0.002002716064453125, 0.0079498291015625, -0.0006651878356933594, -0.08074951171875, -0.0194091796875, 0.03411865234375, -0.053131103515625, -0.0211639404296875, 0.00141143798828125, 0.0032196044921875, -0.0222625732421875, -0.035003662109375, -0.0268707275390625, -0.0221099853515625, -0.033905029296875, -0.00922393798828125, 0.0289306640625, -0.01332855224609375, 0.00417327880859375, -0.01044464111328125, 0.0027217864990234375, -0.0028514862060546875, 0.01251220703125, 0.005947113037109375, 0.0236663818359375, -0.018341064453125, 0.0031871795654296875, -0.0097808837890625, 0.0099334716796875, -0.0008258819580078125, -0.001140594482421875, -0.0117645263671875, -0.01373291015625, -0.020050048828125, 0.004535675048828125, 0.00740814208984375, -0.0006704330444335938, -0.001216888427734375, 0.004947662353515625, -0.0036258697509765625, 0.01033782958984375, -0.0038852691650390625, 0.10162353515625, -0.00408935546875, 0.056182861328125, -0.0259857177734375, -0.0238037109375, -0.018310546875, -0.00675201416015625, -0.01067352294921875, 0.040557861328125, -0.016754150390625, -0.07177734375, 0.040802001953125, 0.09991455078125, 0.0307769775390625, 0.0219268798828125 ]
59fcf5c2ba5d1583136a810d2de2fe461391d843
Wordpress Stackexchange Q: is it possible to run some php code within a wordpress page? I'd like to access a DB table and render it in some data grid format using php on a dedicated wordpress page, accessible to members of a certain group. Is this at all possible with wordpress or is there another way to do so? using wp 3.5 on linux system + mysql thanks A: You can create a simple plugin and either add a shortcode to run your php, or filter the_content and add a conditional check for your specific page and inject your DB output. This way your code will be independent of the theme and more portable. Use the wpdb class to query any database /table.
Q: is it possible to run some php code within a wordpress page? I'd like to access a DB table and render it in some data grid format using php on a dedicated wordpress page, accessible to members of a certain group. Is this at all possible with wordpress or is there another way to do so? using wp 3.5 on linux system + mysql thanks A: You can create a simple plugin and either add a shortcode to run your php, or filter the_content and add a conditional check for your specific page and inject your DB output. This way your code will be independent of the theme and more portable. Use the wpdb class to query any database /table. A: What do you mean by "page" here? You can throw whatever PHP you want into a page template. If this is a more or less one-off thing, what you should probably do is use the conditional tags to just embed it. If you mean you want to do this within content arbitrarily ie. through the post editor, that's disallowed by core, but there are plugins that add the capability. The most recent one I'm aware of is Allow PHP in Posts and Pages, (there are others and you might want to look around) but this is something that's generally advised against unless you absolutely trust every single person that might have access. A: There are plugins that allow you to run php code in the post content. Here are a couple: http://wordpress.org/extend/plugins/php-code-for-posts/ http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/
wordpress
{ "language": "en", "length": 255, "provenance": "stackexchange_00019.jsonl.gz:427542", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78638" }
[ 0.07855224609375, 0.00962066650390625, 0.010589599609375, -0.026275634765625, 0.0180816650390625, -0.047454833984375, 0.047607421875, -0.038543701171875, 0.0247955322265625, 0.01113128662109375, -0.0618896484375, 0.005367279052734375, -0.0299530029296875, 0.0019016265869140625, -0.00933837890625, -0.043212890625, 0.040771484375, -0.006816864013671875, 0.050872802734375, -0.0094451904296875, -0.005615234375, 0.024505615234375, 0.049102783203125, 0.0293731689453125, 0.0265960693359375, -0.0115203857421875, 0.05145263671875, -0.0228729248046875, 0.0229339599609375, -0.0011434555053710938, 0.030242919921875, -0.02630615234375, 0.008575439453125, 0.031280517578125, -0.0262908935546875, -0.0010004043579101562, -0.0171051025390625, 0.027008056640625, 0.0032825469970703125, 0.0323486328125, 0.036376953125, -0.023406982421875, 0.0186004638671875, 0.00908660888671875, -0.006847381591796875, -0.046539306640625, 0.050689697265625, -0.045684814453125, 0.00975799560546875, -0.005764007568359375, 0.018951416015625, 0.044921875, 0.019866943359375, -0.0158843994140625, -0.005374908447265625, 0.0188140869140625, 0.00783538818359375, -0.047637939453125, 0.0307464599609375, -0.01387786865234375, -0.0254974365234375, -0.048309326171875, 0.043701171875, -0.01042938232421875, -0.0011873245239257812, 0.0005431175231933594, 0.026092529296875, 0.01287841796875, 0.00995635986328125, 0.009613037109375, 0.00833892822265625, 0.01120758056640625, -0.002330780029296875, -0.03936767578125, 0.01128387451171875, 0.021881103515625, 0.01593017578125, -0.01375579833984375, -0.0181121826171875, 0.030059814453125, 0.004764556884765625, 0.0006017684936523438, -0.026702880859375, -0.034027099609375, 0.00981903076171875, 0.0006346702575683594, -0.01068115234375, -0.006130218505859375, 0.00676727294921875, -0.016021728515625, -0.01126861572265625, 0.049713134765625, -0.022003173828125, 0.0033092498779296875, -0.0251007080078125, -0.0171661376953125, -0.0015497207641601562, 0.0224761962890625, 0.01399993896484375, 0.06170654296875, 0.020477294921875, -0.061126708984375, 0.0885009765625, -0.04949951171875, -0.017578125, 0.05767822265625, 0.0078277587890625, -0.01041412353515625, -0.015869140625, -0.0022869110107421875, 0.004985809326171875, -0.04962158203125, -0.005886077880859375, -0.0266265869140625, -0.037017822265625, 0.027587890625, -0.0091552734375, -0.041656494140625, 0.003543853759765625, -0.0303802490234375, -0.0211334228515625, 0.01334381103515625, -0.02142333984375, -0.0171356201171875, -0.0019235610961914062, -0.021820068359375, 0.007694244384765625, -0.003124237060546875, 0.0088348388671875, 0.0072174072265625, -0.0506591796875, 0.0165863037109375, 0.06768798828125, 0.030029296875, 0.0085906982421875, -0.0070037841796875, 0.04718017578125, 0.02496337890625, 0.0322265625, -0.0166473388671875, 0.044158935546875, -0.0089874267578125, -0.013031005859375, 0.0106964111328125, -0.0127410888671875, 0.01922607421875, 0.0406494140625, 0.0127410888671875, -0.0435791015625, -0.037261962890625, -0.027984619140625, 0.050323486328125, -0.01776123046875, 0.01280975341796875, 0.06805419921875, 0.00732421875, 0.0086669921875, 0.0016222000122070312, 0.03399658203125, 0.035858154296875, 0.0014896392822265625, -0.0040283203125, 0.01479339599609375, -0.032501220703125, -0.04083251953125, -0.0015115737915039062, -0.0357666015625, 0.00146484375, 0.021759033203125, -0.00844573974609375, -0.0010862350463867188, -0.0212554931640625, 0.032379150390625, 0.01357269287109375, -0.00481414794921875, 0.03021240234375, -0.041473388671875, 0.004608154296875, 0.039581298828125, 0.0066375732421875, -0.0032806396484375, -0.0267181396484375, 0.0423583984375, 0.01806640625, -0.01488494873046875, 0.039642333984375, 0.00844573974609375, 0.05096435546875, -0.004993438720703125, 0.03936767578125, -0.01071929931640625, 0.0263519287109375, -0.0369873046875, 0.042388916015625, -0.00533294677734375, -0.041229248046875, -0.0034198760986328125, -0.00894927978515625, -0.0203094482421875, -0.0105438232421875, 0.0018444061279296875, 0.031951904296875, -0.0028095245361328125, 0.00872039794921875, -0.0155029296875, 0.01395416259765625, -0.00536346435546875, 0.0304412841796875, 0.041748046875, -0.00066375732421875, -0.006404876708984375, 0.0143890380859375, -0.0002148151397705078, -0.046112060546875, -0.0579833984375, 0.03973388671875, -0.025848388671875, 0.036285400390625, 0.0214385986328125, 0.025360107421875, 0.01355743408203125, -0.00511932373046875, -0.00009632110595703125, -0.01934814453125, 0.01551055908203125, -0.046539306640625, -0.005176544189453125, -0.03851318359375, 0.00823211669921875, -0.01418304443359375, 0.005382537841796875, 0.021484375, 0.021240234375, 0.014495849609375, -0.03173828125, -0.021484375, -0.0163116455078125, -0.033294677734375, 0.0010805130004882812, 0.040069580078125, 0.048248291015625, 0.00504302978515625, -0.007965087890625, -0.027801513671875, 0.040435791015625, -0.028961181640625, 0.0083465576171875, -0.034454345703125, 0.013702392578125, 0.04052734375, -0.0272216796875, 0.02081298828125, 0.032562255859375, 0.0258331298828125, -0.0035457611083984375, 0.058319091796875, 0.0128936767578125, 0.0211029052734375, -0.030487060546875, 0.025543212890625, -0.0018787384033203125, 0.0229339599609375, -0.0144195556640625, 0.007781982421875, 0.003986358642578125, 0.0103607177734375, 0.0386962890625, 0.0218963623046875, -0.0298309326171875, -0.0061187744140625, 0.01316070556640625, 0.0230560302734375, 0.004932403564453125, 0.041534423828125, -0.0655517578125, 0.0281524658203125, -0.033416748046875, 0.004070281982421875, -0.003055572509765625, 0.006092071533203125, -0.004138946533203125, 0.0185394287109375, -0.0168914794921875, -0.01104736328125, 0.01093292236328125, -0.0248565673828125, -0.0054473876953125, 0.0145111083984375, -0.02972412109375, -0.0281524658203125, 0.0157470703125, 0.0305938720703125, -0.041351318359375, 0.04974365234375, -0.038421630859375, -0.00846099853515625, 0.048248291015625, -0.01084136962890625, 0.014251708984375, -0.0127105712890625, 0.0250396728515625, 0.040618896484375, -0.01505279541015625, -0.0011730194091796875, 0.002033233642578125, -0.01532745361328125, 0.0092315673828125, 0.0124969482421875, 0.0014123916625976562, -0.016265869140625, -0.031707763671875, 0.0203857421875, 0.0235748291015625, 0.0390625, 0.006801605224609375, -0.043853759765625, -0.00070953369140625, 0.037384033203125, -0.08642578125, -0.1190185546875, -0.01354217529296875, -0.027099609375, -0.02117919921875, -0.036224365234375, -0.00763702392578125, 0.0207977294921875, -0.0243072509765625, 0.00009703636169433594, 0.01544189453125, -0.042022705078125, -0.033477783203125, -0.060333251953125, -0.0703125, -0.0071258544921875, 0.0185394287109375, 0.00012993812561035156, 0.000026404857635498047, 0.043548583984375, -0.0021381378173828125, -0.0679931640625, -0.0295562744140625, 0.018157958984375, -0.0197601318359375, -0.0021381378173828125, 0.03363037109375, -0.056427001953125, -0.0252838134765625, -0.00040149688720703125, -0.03631591796875, 0.003170013427734375, 0.0135040283203125, -0.01532745361328125, 0.01239776611328125, -0.0022640228271484375, 0.0090179443359375, -0.0150299072265625, -0.0186767578125, 0.00556182861328125, -0.0310516357421875, -0.048614501953125, -0.0299530029296875, 0.014434814453125, -0.0477294921875, -0.0550537109375, 0.018402099609375, -0.019989013671875, -0.009063720703125, -0.00934600830078125, 0.0509033203125, 0.030731201171875, -0.0333251953125, 0.0199127197265625, 0.0298919677734375, 0.01556396484375, 0.050689697265625, -0.00728607177734375, 0.0024890899658203125, -0.0299072265625, 0.00244903564453125, -0.01507568359375, -0.003360748291015625, -0.0203704833984375, 0.039306640625, -0.03704833984375, -0.002880096435546875, 0.0421142578125, 0.0275726318359375, 0.035980224609375, 0.001186370849609375, -0.0260467529296875, 0.0098419189453125, 0.08050537109375, -0.0108795166015625, -0.01397705078125, 0.01873779296875, 0.01367950439453125, -0.061798095703125, -0.026275634765625, -0.06890869140625, -0.005352020263671875, 0.0088043212890625, -0.01474761962890625, -0.034423828125, 0.006336212158203125, -0.007568359375, -0.0051422119140625, 0.005847930908203125, -0.02581787109375, 0.03729248046875, -0.01308441162109375, 0.0101318359375, 0.0014495849609375, -0.028106689453125, -0.012542724609375, -0.037689208984375, -0.002864837646484375, -0.07342529296875, -0.0186767578125, -0.0131988525390625, 0.0853271484375, 0.03131103515625, -0.04327392578125, -0.0224761962890625, 0.033599853515625, 0.0059967041015625, 0.039703369140625, 0.00397491455078125, 0.00933837890625, 0.0007619857788085938, -0.00922393798828125, 0.020233154296875, -0.02532958984375, -0.0161590576171875, -0.035064697265625, 0.041412353515625, 0.01065826416015625, -0.045013427734375, -0.0221099853515625, -0.065185546875, 0.02679443359375, 0.0282745361328125, -0.0161590576171875, -0.040283203125, 0.0149078369140625, -0.044891357421875, 0.01538848876953125, -0.01076507568359375, -0.0003037452697753906, 0.05712890625, 0.022491455078125, -0.01485443115234375, -0.00403594970703125, 0.0772705078125, 0.0142669677734375, -0.031280517578125, -0.07489013671875, 0.005252838134765625, 0.04156494140625, -0.027587890625, 0.0552978515625, 0.01708984375, -0.035675048828125, 0.0906982421875, 0.0069580078125, -0.000045299530029296875, -0.02099609375, 0.0406494140625, 0.0208892822265625, -0.004673004150390625, 0.00870513916015625, 0.0050048828125, 0.00759124755859375, 0.034454345703125, 0.004779815673828125, -0.006534576416015625, 0.0242156982421875, 0.0023479461669921875, -0.01263427734375, -0.00379180908203125, -0.00812530517578125, -0.028717041015625, 0.00235748291015625, -0.0196685791015625, 0.04730224609375, 0.01125335693359375, 0.00754547119140625, 0.038604736328125, 0.0374755859375, 0.01288604736328125, 0.03192138671875, 0.042633056640625, -0.01451873779296875, 0.0396728515625, 0.02880859375, -0.0021305084228515625, 0.004276275634765625, -0.01325225830078125, 0.04998779296875, 0.01395416259765625, -0.038177490234375, 0.007221221923828125, -0.00008845329284667969, 0.00284576416015625, 0.0019092559814453125, 0.0014219284057617188, 0.0100860595703125, 0.0302581787109375, -0.0090179443359375, 0.0030574798583984375, 0.022857666015625, 0.002536773681640625, -0.01219940185546875, -0.03472900390625, -0.02655029296875, -0.00473785400390625, 0.0178680419921875, 0.0286865234375, -0.037567138671875, 0.03546142578125, -0.0097503662109375, 0.0731201171875, 0.04437255859375, -0.0019006729125976562, 0.0109710693359375, 0.0128936767578125, 0.026519775390625, -0.06488037109375, -0.0258941650390625, -0.0203094482421875, 0.001972198486328125, 0.005687713623046875, 0.030059814453125, 0.00319671630859375, -0.0008716583251953125, 0.01555633544921875, -0.0239715576171875, -0.0233612060546875, 0.016845703125, -0.00466156005859375, -0.0255279541015625, -0.040252685546875, 0.0052947998046875, 0.043212890625, 0.0178070068359375, 0.00511932373046875, 0.0027942657470703125, -0.0047454833984375, 0.0428466796875, -0.0458984375, 0.03997802734375, -0.0309906005859375, -0.042327880859375, -0.0032062530517578125, -0.0092926025390625, -0.0283660888671875, 0.00732421875, -0.007373809814453125, -0.01438140869140625, -0.00878143310546875, 0.047393798828125, -0.0007271766662597656, 0.022705078125, -0.06146240234375, 0.0149993896484375, -0.045166015625, -0.0189971923828125, 0.0673828125, 0.037384033203125, -0.05364990234375, 0.021484375, -0.040313720703125, -0.00861358642578125, -0.00620269775390625, -0.048431396484375, -0.044464111328125, -0.027679443359375, -0.0256500244140625, 0.0037136077880859375, -0.046356201171875, -0.0140380859375, -0.0330810546875, 0.04486083984375, 0.0180511474609375, 0.04547119140625, -0.022796630859375, 0.0919189453125, -0.019012451171875, 0.0618896484375, 0.012725830078125, 0.050506591796875, -0.0163726806640625, -0.0174102783203125, 0.03424072265625, -0.01491546630859375, -0.05108642578125, -0.02752685546875, -0.0121612548828125, -0.027801513671875, -0.00008362531661987305, -0.0249176025390625, 0.02777099609375, -0.0396728515625, 0.0003952980041503906, -0.0211181640625, 0.042083740234375, -0.07269287109375, 0.0025043487548828125, -0.005992889404296875, -0.0243988037109375, -0.0235595703125, 0.01129150390625, -0.00180816650390625, 0.04095458984375, -0.007415771484375, 0.00623321533203125, -0.00384521484375, -0.034454345703125, 0.0594482421875, 0.10174560546875, -0.002811431884765625, 0.04510498046875, 0.0308380126953125, -0.00858306884765625, 0.0159149169921875, 0.0154266357421875, -0.0238800048828125, -0.0274505615234375, 0.0067901611328125, -0.01367950439453125, -0.034027099609375, -0.0224761962890625, -0.0251922607421875, 0.032196044921875, 0.0631103515625, 0.07159423828125, -0.102294921875, 0.0148468017578125, 0.00421905517578125, -0.0428466796875, -0.00006502866744995117, -0.0246429443359375, -0.021820068359375, -0.045074462890625, 0.071044921875, 0.042236328125, -0.0182342529296875, 0.0289306640625, 0.02410888671875, -0.008575439453125, -0.0232086181640625, 0.05047607421875, 0.0220184326171875, -0.01084136962890625, 0.033782958984375, -0.003215789794921875, 0.050048828125, -0.0216064453125, 0.0179290771484375, -0.0012607574462890625, -0.01088714599609375, -0.019317626953125, 0.05059814453125, 0.002124786376953125, 0.0164031982421875, -0.01428985595703125, 0.033538818359375, -0.00078582763671875, 0.060760498046875, -0.018798828125, 0.0275421142578125, 0.035186767578125, -0.004718780517578125, -0.039215087890625, -0.0134124755859375, 0.003498077392578125, 0.034912109375, -0.0516357421875, 0.0204315185546875, -0.0457763671875, 0.01018524169921875, -0.0048980712890625, -0.0002956390380859375, 0.08599853515625, -0.008453369140625, -0.035400390625, 0.01517486572265625, -0.03778076171875, -0.01403045654296875, 0.004688262939453125, 0.03167724609375, -0.0192718505859375, -0.0095672607421875, 0.011871337890625, -0.04376220703125, -0.017547607421875, -0.02398681640625, -0.04583740234375, 0.056854248046875, -0.0246429443359375, -0.003055572509765625, 0.029296875, 0.024810791015625, -0.01203155517578125, 0.0063629150390625, -0.043304443359375, 0.040069580078125, 0.0145111083984375, 0.06488037109375, -0.0310516357421875, -0.01059722900390625, 0.036407470703125, 0.020263671875, -0.004138946533203125, 0.00304412841796875, 0.0013523101806640625, -0.006870269775390625, 0.0184478759765625, 0.038726806640625, 0.002105712890625, 0.0031375885009765625, 0.0036029815673828125, 0.05047607421875, 0.06256103515625, -0.04144287109375, 0.0333251953125, -0.0005717277526855469, 0.003520965576171875, 0.016876220703125, -0.009521484375, -0.0252838134765625, 0.0226593017578125, 0.0198516845703125, -0.014801025390625, 0.0014429092407226562, 0.0034656524658203125, -0.028717041015625, -0.01242828369140625, 0.0289764404296875, 0.00858306884765625, -0.048065185546875, -0.046112060546875, -0.02362060546875, 0.022674560546875, 0.00617218017578125, 0.00594329833984375, -0.0209808349609375, -0.00055694580078125, 0.031768798828125, -0.03045654296875, -0.0283050537109375, 0.022674560546875, -0.0153350830078125, 0.07122802734375, 0.022186279296875, 0.0239105224609375, -0.057952880859375, -0.0131988525390625, 0.0287017822265625, 0.087890625, -0.046356201171875, -0.01617431640625, 0.01250457763671875, 0.01080322265625, -0.01045989990234375, -0.0162353515625, 0.01436614990234375, 0.042205810546875, 0.060333251953125, 0.0004837512969970703, -0.0221710205078125, 0.0016756057739257812, 0.00745391845703125, -0.003082275390625, 0.00917816162109375, 0.0265350341796875, -0.04095458984375, -0.0181884765625, 0.022705078125, 0.00278472900390625, 0.0310516357421875, -0.01444244384765625, 0.049713134765625, -0.03887939453125, 0.00012981891632080078, -0.0117645263671875, 0.036468505859375, -0.027618408203125, 0.021484375, -0.07366943359375, -0.07452392578125, 0.00811004638671875, 0.062408447265625, -0.008392333984375, 0.006290435791015625, 0.0018720626831054688, 0.0175933837890625, 0.0002586841583251953, -0.00962066650390625, 0.043243408203125, -0.0094146728515625, -0.020843505859375, -0.0235748291015625, -0.023162841796875, -0.0040740966796875, -0.0074920654296875, 0.0031833648681640625, 0.055450439453125, -0.0240631103515625, -0.04449462890625, 0.046051025390625, -0.0128173828125, -0.0075531005859375, 0.02435302734375, -0.00943756103515625, 0.0299530029296875, -0.01332855224609375, -0.04583740234375, -0.012237548828125, 0.00438690185546875, -0.030364990234375, 0.0010929107666015625, 0.031280517578125, -0.0245208740234375, 0.0167236328125, 0.060302734375, 0.0195159912109375, -0.01142120361328125, -0.00482177734375, 0.027069091796875, -0.04095458984375, 0.03460693359375, 0.0183258056640625, -0.048309326171875, -0.04510498046875, -0.06756591796875, 0.07562255859375, 0.0386962890625, 0.12005615234375, -0.06658935546875, 0.057220458984375, -0.004566192626953125, -0.00467681884765625, 0.0177001953125, -0.006763458251953125, 0.0123748779296875, 0.0139007568359375, 0.005527496337890625, -0.019744873046875, 0.012908935546875, 0.015655517578125, 0.026763916015625, -0.039215087890625, -0.020111083984375, -0.0258026123046875, 0.032440185546875, 0.0177459716796875, 0.03936767578125, -0.0045623779296875, -0.028564453125, -0.01245880126953125, 0.0170440673828125, 0.0312042236328125, 0.06842041015625, 0.00875091552734375, 0.01195526123046875, -0.004657745361328125, -0.026702880859375, 0.031005859375, -0.0277862548828125, 0.0389404296875, 0.0211944580078125, -0.0111846923828125, -0.026397705078125, 0.0182952880859375, -0.0185089111328125, -0.01200103759765625, 0.01407623291015625, 0.03125, -0.00383758544921875, -0.041778564453125, 0.017822265625, 0.068115234375, 0.061126708984375, -0.00389862060546875, 0.0421142578125, 0.0224151611328125, -0.032745361328125, 0.053436279296875, 0.03790283203125, -0.0308837890625, 0.00202178955078125, -0.005397796630859375, 0.0057830810546875, -0.006256103515625, -0.04986572265625, -0.09033203125, 0.00457763671875, 0.031524658203125, 0.0123291015625, -0.055023193359375, 0.0103912353515625, -0.00942230224609375, 0.009735107421875, 0.012481689453125, -0.00140380859375, 0.00600433349609375, 0.02069091796875, -0.053741455078125, -0.041534423828125, -0.01531982421875, 0.01049041748046875, -0.0269775390625, 0.050689697265625, 0.048614501953125, -0.060791015625, -0.0111236572265625, 0.0797119140625, 0.055999755859375, 0.126220703125, 0.0275421142578125, -0.005977630615234375, 0.01438140869140625, 0.005313873291015625, -0.03778076171875, -0.08050537109375, 0.01433563232421875, -0.06585693359375, 0.01393890380859375, -0.009918212890625, 0.00766754150390625, 0.020111083984375, -0.048980712890625, -0.1220703125, 0.04180908203125, -0.025634765625, -0.04962158203125, -0.037322998046875, 0.007709503173828125, -0.0063018798828125, -0.003574371337890625, -0.0288238525390625, -0.0009641647338867188, -0.0251007080078125, 0.023468017578125, 0.01371002197265625, -0.0010433197021484375, 0.018951416015625, 0.00946044921875, -0.0572509765625, 0.0305633544921875, 0.018218994140625, 0.01316070556640625, -0.00792694091796875, 0.01282501220703125, 0.01026153564453125, 0.0251617431640625, -0.01543426513671875, -0.0060882568359375, 0.002262115478515625, 0.0015954971313476562, -0.004573822021484375, -0.057373046875, -0.005222320556640625, -0.01041412353515625, 0.04681396484375, 0.0293426513671875, 0.006755828857421875, -0.0266265869140625, -0.05438232421875, -0.047607421875, -0.039947509765625, -0.019866943359375, 0.0301971435546875, -0.08721923828125, 0.016876220703125, 0.02508544921875, -0.01409149169921875, 0.023101806640625, 0.01427459716796875, -0.02532958984375, -0.006343841552734375, -0.00409698486328125, -0.02801513671875, -0.038055419921875, -0.05145263671875, 0.07049560546875, -0.046905517578125, -0.03802490234375, 0.0283050537109375, 0.02197265625, -0.00534820556640625, 0.006229400634765625, 0.01261138916015625, 0.0247650146484375, -0.0251007080078125, 0.00989532470703125, 0.0124969482421875, -0.0030975341796875, -0.0082244873046875, -0.007038116455078125, 0.00957489013671875, 0.037384033203125, -0.011810302734375, 0.0589599609375, -0.0029087066650390625, 0.01128387451171875, 0.0008955001831054688, 0.00702667236328125, -0.00719451904296875, 0.0081939697265625, -0.03094482421875, 0.038116455078125, -0.00830841064453125, -0.0169525146484375, 0.0156097412109375, -0.007419586181640625, 0.0065155029296875, 0.0225677490234375, -0.0004775524139404297, -0.0233917236328125, 0.01537322998046875, -0.0175933837890625, 0.01385498046875, 0.0057525634765625 ]
9872cda732797925bd1b1ef66c843abe714ed080
Wordpress Stackexchange Q: Using meta query ('meta_query') with a search query ('s') Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( 'post_type' => 'post', 's' => $query, 'meta_query' => array( array( 'key' => 'speel', 'value' => $query, 'compare' => 'LIKE' ) ) ); $search = new WP_Query( $args ) ... This returns posts which match both the search query AND the meta query, but I would also like it to also return posts where it simply matches either one of them. Any ideas? A: I have optimized @Stabir Kira answer a bit function wp78649_extend_search( $query ) { $search_term = filter_input( INPUT_GET, 's', FILTER_SANITIZE_NUMBER_INT) ?: 0; if ( $query->is_search && !is_admin() && $query->is_main_query() && //your extra condition ) { $query->set('meta_query', [ [ 'key' => 'meta_key', 'value' => $search_term, 'compare' => '=' ] ]); add_filter( 'get_meta_sql', function( $sql ) { global $wpdb; static $nr = 0; if( 0 != $nr++ ) return $sql; $sql['where'] = mb_eregi_replace( '^ AND', ' OR', $sql['where']); return $sql; }); } return $query; } add_action( 'pre_get_posts', 'wp78649_extend_search'); Now you can search by (title, content, excrept) or (meta field) or (both of them).
Q: Using meta query ('meta_query') with a search query ('s') Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( 'post_type' => 'post', 's' => $query, 'meta_query' => array( array( 'key' => 'speel', 'value' => $query, 'compare' => 'LIKE' ) ) ); $search = new WP_Query( $args ) ... This returns posts which match both the search query AND the meta query, but I would also like it to also return posts where it simply matches either one of them. Any ideas? A: I have optimized @Stabir Kira answer a bit function wp78649_extend_search( $query ) { $search_term = filter_input( INPUT_GET, 's', FILTER_SANITIZE_NUMBER_INT) ?: 0; if ( $query->is_search && !is_admin() && $query->is_main_query() && //your extra condition ) { $query->set('meta_query', [ [ 'key' => 'meta_key', 'value' => $search_term, 'compare' => '=' ] ]); add_filter( 'get_meta_sql', function( $sql ) { global $wpdb; static $nr = 0; if( 0 != $nr++ ) return $sql; $sql['where'] = mb_eregi_replace( '^ AND', ' OR', $sql['where']); return $sql; }); } return $query; } add_action( 'pre_get_posts', 'wp78649_extend_search'); Now you can search by (title, content, excrept) or (meta field) or (both of them). A: i had the same problem, for my new site i just added a new meta "title" : functions.php add_action('save_post', 'title_to_meta'); function title_to_meta($post_id) { update_post_meta($post_id, 'title', get_the_title($post_id)); } And then.. just add something like that : $sub = array('relation' => 'OR'); $sub[] = array( 'key' => 'tags', 'value' => $_POST['q'], 'compare' => 'LIKE', ); $sub[] = array( 'key' => 'description', 'value' => $_POST['q'], 'compare' => 'LIKE', ); $sub[] = array( 'key' => 'title', 'value' => $_POST['q'], 'compare' => 'LIKE', ); $params['meta_query'] = $sub; What do you think about this workaround ? A: As per Nick Perkins' suggestion, I had to merge two queries like so: $q1 = get_posts(array( 'fields' => 'ids', 'post_type' => 'post', 's' => $query )); $q2 = get_posts(array( 'fields' => 'ids', 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'speel', 'value' => $query, 'compare' => 'LIKE' ) ) )); $unique = array_unique( array_merge( $q1, $q2 ) ); $posts = get_posts(array( 'post_type' => 'posts', 'post__in' => $unique, 'post_status' => 'publish', 'posts_per_page' => -1 )); if( $posts ) : foreach( $posts as $post ) : setup_postdata($post); // now use standard loop functions like the_title() etc. enforeach; endif; A: I have been searching for hours for a solution to this problem. Array merging is not the way to go, especially when the queries are complex and you must be able to add to meta queries in the future. The solution which is simplistically beautiful is to change 's' to one which allows both searching titles and meta fields. add_action( 'pre_get_posts', function( $q ) { if( $title = $q->get( '_meta_or_title' ) ) { add_filter( 'get_meta_sql', function( $sql ) use ( $title ) { global $wpdb; // Only run once: static $nr = 0; if( 0 != $nr++ ) return $sql; // Modified WHERE $sql['where'] = sprintf( " AND ( %s OR %s ) ", $wpdb->prepare( "{$wpdb->posts}.post_title like '%%%s%%'", $title), mb_substr( $sql['where'], 5, mb_strlen( $sql['where'] ) ) ); return $sql; }); } }); Usage: $meta_query = array(); $args = array(); $search_string = "test"; $meta_query[] = array( 'key' => 'staff_name', 'value' => $search_string, 'compare' => 'LIKE' ); $meta_query[] = array( 'key' => 'staff_email', 'value' => $search_string, 'compare' => 'LIKE' ); //if there is more than one meta query 'or' them if(count($meta_query) > 1) { $meta_query['relation'] = 'OR'; } // The Query $args['post_type'] = "staff"; $args['_meta_or_title'] = $search_string; //not using 's' anymore $args['meta_query'] = $meta_query; $the_query = new WP_Query($args) A: Well its kind of a hack but it works. You need to add posts_clauses filter. This filter function check for the any of the query word exists in the custom field "speel" and the remaining query stays intact. function custom_search_where($pieces) { // filter for your query if (is_search() && !is_admin()) { global $wpdb; $keywords = explode(' ', get_query_var('s')); $query = ""; foreach ($keywords as $word) { // skip possible adverbs and numbers if (is_numeric($word) || strlen($word) <= 2) continue; $query .= "((mypm1.meta_key = 'speel')"; $query .= " AND (mypm1.meta_value LIKE '%{$word}%')) OR "; } if (!empty($query)) { // add to where clause $pieces['where'] = str_replace("(((wp_posts.post_title LIKE '%", "( {$query} ((wp_posts.post_title LIKE '%", $pieces['where']); $pieces['join'] = $pieces['join'] . " INNER JOIN {$wpdb->postmeta} AS mypm1 ON ({$wpdb->posts}.ID = mypm1.post_id)"; } } return ($pieces); } add_filter('posts_clauses', 'custom_search_where', 20, 1); A: I couldn't find a solution to look for multiple keywords that can be mixed in either post title, description AND/OR one or several metas, so I made my own addition to the search function. All you need is to add the following code in function.php, and whenever you use the 's' argument in a standard WP_Query() function and want it to search in one or several meta fields as well, you simply add a 's_meta_keys' argument that is an array of the meta(s) key(s) you want to search in: /************************************************************************\ |** **| |** Allow WP_Query() search function to look for multiple keywords **| |** in metas in addition to post_title and post_content **| |** **| |** By rAthus @ Arkanite **| |** Created: 2020-08-18 **| |** Updated: 2020-08-19 **| |** **| |** Just use the usual 's' argument and add a 's_meta_keys' argument **| |** containing an array of the meta(s) key you want to search in :) **| |** **| |** Example : **| |** **| |** $args = array( **| |** 'numberposts' => -1, **| |** 'post_type' => 'post', **| |** 's' => $MY_SEARCH_STRING, **| |** 's_meta_keys' => array('META_KEY_1','META_KEY_2'); **| |** 'orderby' => 'date', **| |** 'order' => 'DESC', **| |** ); **| |** $posts = new WP_Query($args); **| |** **| \************************************************************************/ add_action('pre_get_posts', 'my_search_query'); // add the special search fonction on each get_posts query (this includes WP_Query()) function my_search_query($query) { if ($query->is_search() and $query->query_vars and $query->query_vars['s'] and $query->query_vars['s_meta_keys']) { // if we are searching using the 's' argument and added a 's_meta_keys' argument global $wpdb; $search = $query->query_vars['s']; // get the search string $ids = array(); // initiate array of martching post ids per searched keyword foreach (explode(' ',$search) as $term) { // explode keywords and look for matching results for each $term = trim($term); // remove unnecessary spaces if (!empty($term)) { // check the the keyword is not empty $query_posts = $wpdb->prepare("SELECT * FROM {$wpdb->posts} WHERE post_status='publish' AND ((post_title LIKE '%%%s%%') OR (post_content LIKE '%%%s%%'))", $term, $term); // search in title and content like the normal function does $ids_posts = []; $results = $wpdb->get_results($query_posts); if ($wpdb->last_error) die($wpdb->last_error); foreach ($results as $result) $ids_posts[] = $result->ID; // gather matching post ids $query_meta = []; foreach($query->query_vars['s_meta_keys'] as $meta_key) // now construct a search query the search in each desired meta key $query_meta[] = $wpdb->prepare("meta_key='%s' AND meta_value LIKE '%%%s%%'", $meta_key, $term); $query_metas = $wpdb->prepare("SELECT * FROM {$wpdb->postmeta} WHERE ((".implode(') OR (',$query_meta)."))"); $ids_metas = []; $results = $wpdb->get_results($query_metas); if ($wpdb->last_error) die($wpdb->last_error); foreach ($results as $result) $ids_metas[] = $result->post_id; // gather matching post ids $merged = array_merge($ids_posts,$ids_metas); // merge the title, content and meta ids resulting from both queries $unique = array_unique($merged); // remove duplicates if (!$unique) $unique = array(0); // if no result, add a "0" id otherwise all posts wil lbe returned $ids[] = $unique; // add array of matching ids into the main array } } if (count($ids)>1) $intersected = call_user_func_array('array_intersect',$ids); // if several keywords keep only ids that are found in all keywords' matching arrays else $intersected = $ids[0]; // otherwise keep the single matching ids array $unique = array_unique($intersected); // remove duplicates if (!$unique) $unique = array(0); // if no result, add a "0" id otherwise all posts wil lbe returned unset($query->query_vars['s']); // unset normal search query $query->set('post__in',$unique); // add a filter by post id instead } } Example use: $search= "kewords to search"; $args = array( 'numberposts' => -1, 'post_type' => 'post', 's' => $search, 's_meta_keys' => array('short_desc','tags'); 'orderby' => 'date', 'order' => 'DESC', ); $posts = new WP_Query($args); This example will look for the keywords "kewords to search" in post titles, descriptions, and meta keys 'short_desc' and 'tags'. Keywords can be found in one or several of the fileds, in any order, it will return any post that has all the keywords in any of the designated fields. You can obiously force the search in a list of meta keys you include in the fonction and get rid of the extra agruments if you want ALL search queries to include these meta keys :) Hope that will help anyone who face the same issue I did! A: A lot of code can be reduced by using a modified version of this answer. $q1 = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => -1, 's' => $query )); $q2 = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'speel', 'value' => $query, 'compare' => 'LIKE' ) ) )); $result = new WP_Query(); $result->posts = array_unique( array_merge( $q1->posts, $q2->posts ), SORT_REGULAR ); $result->post_count = count( $result->posts ); A: All of the above solutions only return results if a match exists in the speel meta key. If you have results elsewhere but not in this field you'll get nothing. Nobody wants that. A left join is needed. The following will create one. $meta_query_args = array( 'relation' => 'OR', array( 'key' => 'speel', 'value' => $search_term, 'compare' => 'LIKE', ), array( 'key' => 'speel', 'compare' => 'NOT EXISTS', ), ); $query->set('meta_query', $meta_query_args); A: Here's another way, just change the request with the 'posts_where_request' filter. Everything will still be the default except ('s' AND 'meta_query') => ('s' OR 'meta_query'). AND ( ((posts.post_title LIKE 'Lily') OR (posts.post_excerpt LIKE 'Lily') OR (posts.post_content LIKE 'Lily')) ) AND ( ( postmeta.meta_key = 'author' AND postmeta.meta_value LIKE 'Lily' ) ) => AND ( ( ( postmeta.meta_key = 'author' AND postmeta.meta_value LIKE 'Lily' ) ) OR ((posts.post_title LIKE 'Lily') OR (posts.post_excerpt LIKE 'Lily') OR (posts.post_content LIKE 'Lily')) ) this is the code function edit_request_wp_query( $where ) { global $wpdb; if ( strpos($where, $wpdb->postmeta.'.meta_key') && strpos($where, $wpdb->posts.'.post_title') ) { $string = $where; $index_meta = index_argument_in_request($string, $wpdb->postmeta.'.meta_key', $wpdb->postmeta.'.meta_value'); $meta_query = substr($string, $index_meta['start'], $index_meta['end']-$index_meta['start']); $string = str_replace( $meta_query, '', $string ); $meta_query = ltrim($meta_query, 'AND').' OR '; $index_s = index_argument_in_request($string, $wpdb->posts.'.post_title'); $insert_to = strpos($string, '(', $index_s['start'])+1; $string = substr_replace($string, $meta_query, $insert_to, 0); $where = $string; } return $where; } add_filter('posts_where_request', 'edit_request_wp_query'); function index_argument_in_request($string, $key_start, $key_end = '') { if (!$key_end) $key_end = $key_start; $index_key_start = strpos($string, $key_start); $string_before = substr($string, 0, $index_key_start); $index_start = strrpos($string_before, 'AND'); $last_index_key = strrpos($string, $key_end); $index_end = strpos($string, 'AND', $last_index_key); return ['start' => $index_start, 'end' => $index_end]; } A: for me works perfect the next code: $search_word = $_GET['id']; $data['words'] = trim(urldecode($search_word)); $q1 = new WP_Query( array( 'post_type' => array('notas', 'productos'), 'posts_per_page' => -1, 's' => $search_word )); $q2 = new WP_Query( array( 'post_type' => array('notas', 'productos'), 'posts_per_page' => -1, 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'subtitulo', 'value' => $search_word, 'compare' => 'LIKE' ), array( 'key' => 'thumbnail_bajada', 'value' => $search_word, 'compare' => 'LIKE' ) ) )); $result = new WP_Query(); $result->posts = array_unique( array_merge( $q1->posts, $q2->posts ), SORT_REGULAR ); $result->post_count = count( $result->posts ); A: I found an clean solution in WordPress core. WordPress developers already had this problem for search in attachments _wp_attached_file meta and they fix this issue in this function: _filter_query_attachment_filenames() Taking the idea from this function, I wrote the following code to search in metadata: /** * Enable Search in postmeta and posts tables in one query * * @see _filter_query_attachment_filenames() */ add_filter( 'posts_clauses', function ( $clauses ) { global $wpdb; // Only run once: static $counter = 0; if ( 0 != $counter ++ ) { return $clauses; } foreach ( [ 'my_custom_meta_1', 'my_custom_meta_2', ] as $index => $meta_key ) { // Add a LEFT JOIN of the postmeta table so we don't trample existing JOINs. $clauses['join'] .= " LEFT JOIN {$wpdb->postmeta} AS my_sql{$index} ON ( {$wpdb->posts}.ID = my_sql{$index}.post_id AND my_sql{$index}.meta_key = '{$meta_key}' )"; $clauses['where'] = preg_replace( "/\({$wpdb->posts}.post_content (NOT LIKE|LIKE) (\'[^']+\')\)/", "$0 OR ( my_sql{$index}.meta_value $1 $2 )", $clauses['where'] ); } return $clauses; }, 999 ); A: This is a great solution but you need to fix one thing. When you call 'post__in' you need to set an array of ids and $unique is an array of posts. example: $q1 = get_posts(array( 'fields' => 'ids', 'post_type' => 'post', 's' => $query )); $q2 = get_posts(array( 'fields' => 'ids', 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'speel', 'value' => $query, 'compare' => 'LIKE' ) ) )); $unique = array_unique( array_merge( $q1->posts, $q2->posts ) ); $array = array(); //here you initialize your array foreach($posts as $post) { $array[] = $post->ID; //fill the array with post ID } $posts = get_posts(array( 'post_type' => 'posts', 'post__in' => $array, 'post_status' => 'publish', 'posts_per_page' => -1 )); A: @satbir-kira answer works great but it will only search through the meta and post title. If you want it to search through meta, title and content, here is the modified version. add_action( 'pre_get_posts', function( $q ) { if( $title = $q->get( '_meta_or_title' ) ) { add_filter( 'get_meta_sql', function( $sql ) use ( $title ) { global $wpdb; // Only run once: static $nr = 0; if( 0 != $nr++ ) return $sql; // Modified WHERE $sql['where'] = sprintf( " AND ( (%s OR %s) OR %s ) ", $wpdb->prepare( "{$wpdb->posts}.post_title like '%%%s%%'", $title), $wpdb->prepare( "{$wpdb->posts}.post_content like '%%%s%%'", $title), mb_substr( $sql['where'], 5, mb_strlen( $sql['where'] ) ) ); return $sql; }); } }); And here is it's usage: $args['_meta_or_title'] = $get['search']; //not using 's' anymore $args['meta_query'] = array( 'relation' => 'OR', array( 'key' => '_ltc_org_name', 'value' => $get['search'], 'compare' => 'LIKE' ), array( 'key' => '_ltc_org_school', 'value' => $get['search'], 'compare' => 'LIKE' ), array( 'key' => '_ltc_district_address', 'value' => $get['search'], 'compare' => 'LIKE' ) ); Replace $get['search'] with your search value
wordpress
{ "language": "en", "length": 2287, "provenance": "stackexchange_00019.jsonl.gz:427544", "question_score": "37", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78649" }
[ 0.033416748046875, -0.007701873779296875, 0.02606201171875, 0.002422332763671875, 0.0056610107421875, -0.017486572265625, 0.06439208984375, -0.0250701904296875, 0.03594970703125, 0.02911376953125, -0.052703857421875, -0.0275421142578125, -0.04498291015625, -0.0053558349609375, -0.059051513671875, -0.056915283203125, 0.0176544189453125, -0.003925323486328125, -0.00017011165618896484, -0.021392822265625, 0.0159454345703125, -0.0155792236328125, 0.01136016845703125, 0.0028247833251953125, 0.035308837890625, -0.05230712890625, 0.06591796875, -0.0136871337890625, 0.03704833984375, -0.0025691986083984375, 0.034515380859375, -0.032318115234375, 0.01378631591796875, -0.011199951171875, 0.0262298583984375, -0.0019969940185546875, 0.048583984375, 0.0005478858947753906, 0.024688720703125, 0.007007598876953125, 0.0293426513671875, -0.02947998046875, -0.035888671875, 0.041229248046875, -0.025238037109375, -0.05987548828125, 0.052276611328125, -0.002079010009765625, 0.0217132568359375, -0.004070281982421875, -0.009918212890625, 0.004467010498046875, -0.00077056884765625, -0.06011962890625, 0.002773284912109375, 0.0081329345703125, -0.0028285980224609375, -0.016937255859375, 0.0268402099609375, 0.0020275115966796875, -0.01483917236328125, -0.00968170166015625, 0.01009368896484375, -0.0013523101806640625, -0.031280517578125, -0.0006031990051269531, 0.00482940673828125, 0.0031414031982421875, -0.0343017578125, -0.047393798828125, 0.0256500244140625, -0.00689697265625, 0.0173187255859375, 0.007167816162109375, -0.0117340087890625, -0.041595458984375, 0.00962066650390625, -0.0148468017578125, 0.014373779296875, 0.0222930908203125, 0.00893402099609375, 0.0029010772705078125, -0.0184783935546875, -0.015899658203125, 0.013092041015625, 0.00457000732421875, -0.0160980224609375, -0.01381683349609375, -0.00832366943359375, -0.0399169921875, -0.0009474754333496094, -0.0521240234375, -0.042327880859375, -0.0124359130859375, 0.0027923583984375, -0.06671142578125, 0.0033512115478515625, 0.03253173828125, -0.0077362060546875, 0.012298583984375, -0.0079498291015625, -0.037109375, 0.016326904296875, -0.031951904296875, 0.02496337890625, 0.0443115234375, -0.0161285400390625, -0.0034885406494140625, 0.04779052734375, 0.0269622802734375, 0.026611328125, 0.02203369140625, -0.040008544921875, 0.0064239501953125, -0.0435791015625, 0.04852294921875, -0.0287933349609375, -0.03167724609375, -0.018829345703125, 0.0130767822265625, 0.020751953125, 0.0252838134765625, 0.020721435546875, -0.047454833984375, 0.0224609375, -0.0030155181884765625, -0.0416259765625, -0.0206451416015625, -0.049346923828125, 0.0288543701171875, -0.00479888916015625, 0.006870269775390625, 0.049713134765625, 0.050537109375, -0.01386260986328125, -0.01470947265625, 0.02294921875, -0.040374755859375, -0.00894927978515625, 0.006038665771484375, 0.0303192138671875, -0.0330810546875, -0.01715087890625, 0.0214080810546875, 0.015869140625, -0.01593017578125, 0.031829833984375, 0.0263519287109375, -0.00676727294921875, -0.007232666015625, -0.0232086181640625, 0.0506591796875, 0.044464111328125, -0.01511383056640625, -0.07489013671875, 0.0055694580078125, -0.0269775390625, 0.0138092041015625, -0.050811767578125, -0.021148681640625, -0.024505615234375, -0.007503509521484375, 0.034271240234375, -0.047637939453125, -0.050933837890625, 0.005123138427734375, -0.0230255126953125, -0.0117034912109375, -0.0019168853759765625, 0.0302734375, -0.00336456298828125, 0.040985107421875, 0.0172271728515625, -0.024078369140625, -0.0220947265625, -0.0308685302734375, -0.015411376953125, 0.04486083984375, 0.0166473388671875, 0.00641632080078125, 0.00838470458984375, -0.0290985107421875, 0.06585693359375, -0.007122039794921875, -0.049774169921875, 0.0496826171875, 0.004909515380859375, 0.0399169921875, -0.00882720947265625, 0.0008497238159179688, 0.078857421875, 0.03271484375, -0.029632568359375, 0.047027587890625, -0.0064239501953125, -0.051483154296875, -0.0271148681640625, -0.030059814453125, -0.017791748046875, 0.019989013671875, 0.033843994140625, 0.007160186767578125, -0.01654052734375, 0.0086212158203125, -0.07708740234375, -0.00244140625, -0.0301666259765625, 0.021087646484375, 0.00007075071334838867, 0.0230865478515625, 0.00975799560546875, -0.00926971435546875, -0.00870513916015625, 0.0238494873046875, -0.0168914794921875, -0.00911712646484375, -0.0009551048278808594, 0.021453857421875, 0.005626678466796875, 0.0130157470703125, -0.006519317626953125, -0.02569580078125, -0.01155853271484375, 0.0152435302734375, 0.060577392578125, -0.01132965087890625, 0.0007748603820800781, -0.0089874267578125, 0.057891845703125, 0.01105499267578125, -0.02301025390625, 0.024810791015625, 0.107666015625, 0.06365966796875, -0.0064849853515625, 0.022979736328125, 0.038543701171875, -0.055389404296875, -0.01488494873046875, 0.0379638671875, 0.037689208984375, 0.0572509765625, 0.002849578857421875, -0.01788330078125, 0.0556640625, -0.05810546875, 0.0010442733764648438, -0.0126495361328125, 0.0070343017578125, 0.057861328125, -0.04766845703125, 0.007720947265625, 0.01617431640625, -0.0260467529296875, -0.00885009765625, 0.048248291015625, -0.020172119140625, 0.02752685546875, -0.032745361328125, -0.010589599609375, -0.00872039794921875, -0.0224761962890625, -0.0007944107055664062, -0.0009145736694335938, 0.0321044921875, 0.015716552734375, 0.052825927734375, 0.03668212890625, -0.0264129638671875, 0.005786895751953125, 0.0144805908203125, 0.0306854248046875, -0.004894256591796875, 0.0012454986572265625, -0.01285552978515625, -0.020233154296875, -0.024505615234375, 0.031524658203125, 0.0008435249328613281, -0.014312744140625, 0.01025390625, 0.026275634765625, -0.0305328369140625, -0.004489898681640625, -0.019378662109375, -0.018341064453125, 0.0081634521484375, 0.034027099609375, 0.02056884765625, 0.0172576904296875, 0.03936767578125, 0.01116943359375, -0.016510009765625, 0.037567138671875, -0.01161956787109375, -0.026123046875, 0.0142669677734375, -0.043487548828125, 0.033538818359375, -0.048583984375, 0.04736328125, 0.052154541015625, -0.03155517578125, 0.0255889892578125, -0.01409149169921875, 0.016326904296875, -0.039947509765625, 0.01113128662109375, -0.0220184326171875, -0.0195465087890625, -0.0616455078125, -0.022552490234375, 0.03509521484375, 0.0004911422729492188, 0.03924560546875, -0.0057220458984375, 0.00795745849609375, 0.02825927734375, -0.0682373046875, -0.089111328125, -0.032012939453125, -0.006687164306640625, -0.0270843505859375, 0.004505157470703125, -0.003204345703125, 0.0244293212890625, -0.010650634765625, 0.000048160552978515625, 0.0282745361328125, -0.011505126953125, -0.087158203125, -0.01404571533203125, -0.08172607421875, 0.048126220703125, -0.006320953369140625, 0.019622802734375, 0.01447296142578125, 0.032623291015625, 0.0221710205078125, -0.0631103515625, 0.01983642578125, 0.056243896484375, -0.020965576171875, 0.0126495361328125, 0.0252532958984375, -0.039794921875, 0.01337432861328125, -0.01042938232421875, 0.0474853515625, 0.03204345703125, -0.026397705078125, -0.004505157470703125, 0.00989532470703125, 0.0292205810546875, 0.05389404296875, -0.0347900390625, -0.051116943359375, 0.060089111328125, 0.042510986328125, -0.0045166015625, -0.01342010498046875, 0.0022258758544921875, -0.0266571044921875, 0.024261474609375, 0.00939178466796875, -0.00982666015625, 0.01177978515625, 0.009979248046875, 0.05364990234375, 0.029937744140625, 0.0187530517578125, -0.0033473968505859375, 0.01398468017578125, 0.0025272369384765625, 0.0220489501953125, -0.03729248046875, -0.007808685302734375, -0.055877685546875, 0.03765869140625, -0.0075225830078125, 0.009246826171875, 0.0156707763671875, -0.014892578125, -0.00489044189453125, -0.0032444000244140625, 0.053436279296875, 0.01044464111328125, 0.049835205078125, -0.069091796875, -0.043975830078125, -0.07965087890625, 0.0623779296875, -0.039703369140625, -0.0211029052734375, -0.021392822265625, -0.004199981689453125, -0.0139007568359375, 0.005458831787109375, -0.01049041748046875, -0.0108795166015625, -0.074462890625, -0.02490234375, -0.04766845703125, -0.04058837890625, -0.0014867782592773438, -0.06585693359375, -0.0333251953125, -0.072021484375, 0.03564453125, -0.04400634765625, 0.0265655517578125, 0.034759521484375, -0.004184722900390625, 0.0213623046875, -0.0264129638671875, -0.035980224609375, -0.081787109375, -0.01329803466796875, 0.0024547576904296875, 0.0435791015625, -0.0211334228515625, 0.00970458984375, -0.033172607421875, 0.0281219482421875, 0.01190185546875, 0.0018396377563476562, 0.006439208984375, -0.02459716796875, 0.0248260498046875, 0.0170745849609375, -0.0008358955383300781, -0.01239776611328125, -0.0065155029296875, 0.004558563232421875, 0.02032470703125, 0.02978515625, -0.0333251953125, -0.0321044921875, -0.0196380615234375, -0.01678466796875, 0.000012874603271484375, -0.00027823448181152344, -0.007465362548828125, 0.01314544677734375, -0.04730224609375, 0.02130126953125, 0.0163116455078125, 0.006256103515625, 0.07073974609375, 0.0458984375, -0.03729248046875, -0.0223846435546875, 0.0535888671875, 0.02471923828125, -0.06103515625, -0.020294189453125, -0.01898193359375, -0.00025844573974609375, -0.0182037353515625, 0.0103302001953125, -0.030426025390625, -0.00519561767578125, 0.028900146484375, -0.05328369140625, -0.00391387939453125, -0.027008056640625, 0.050933837890625, -0.0267791748046875, -0.03436279296875, 0.022613525390625, -0.055877685546875, 0.0188446044921875, 0.022308349609375, -0.006011962890625, -0.048431396484375, 0.004222869873046875, 0.05841064453125, 0.0037288665771484375, 0.02252197265625, -0.041015625, -0.01160430908203125, 0.005458831787109375, -0.01490020751953125, 0.02392578125, 0.0111541748046875, -0.0195159912109375, 0.0018739700317382812, 0.01031494140625, 0.00014126300811767578, 0.01491546630859375, 0.04736328125, -0.037445068359375, 0.030426025390625, 0.0008254051208496094, -0.0274810791015625, -0.01898193359375, -0.002933502197265625, 0.05316162109375, -0.0007557868957519531, -0.0416259765625, 0.01329803466796875, -0.01331329345703125, 0.007808685302734375, 0.0110931396484375, 0.00740814208984375, 0.0166015625, 0.028778076171875, 0.0006527900695800781, 0.002468109130859375, -0.0029239654541015625, 0.01280975341796875, -0.0268707275390625, 0.00011050701141357422, -0.005283355712890625, -0.005825042724609375, -0.01207733154296875, 0.0863037109375, -0.059722900390625, 0.068359375, -0.009307861328125, -0.0088348388671875, -0.015106201171875, 0.020721435546875, 0.00860595703125, 0.0018644332885742188, 0.004268646240234375, 0.017181396484375, 0.037139892578125, 0.01428985595703125, -0.0212554931640625, -0.01326751708984375, -0.01528167724609375, -0.007137298583984375, 0.03521728515625, 0.027587890625, 0.00803375244140625, -0.033966064453125, 0.012603759765625, 0.030517578125, -0.006969451904296875, -0.0469970703125, -0.02789306640625, 0.003940582275390625, 0.03466796875, -0.00952911376953125, 0.0146331787109375, -0.022186279296875, 0.032958984375, -0.04144287109375, 0.018463134765625, -0.0014944076538085938, -0.005977630615234375, -0.00934600830078125, -0.01776123046875, 0.00879669189453125, -0.00047516822814941406, 0.0036373138427734375, -0.034881591796875, -0.02471923828125, 0.0655517578125, 0.009246826171875, 0.0275726318359375, -0.01235198974609375, -0.01538848876953125, 0.022857666015625, 0.00978851318359375, 0.027923583984375, -0.0255126953125, -0.02288818359375, -0.0213470458984375, -0.04107666015625, -0.0103759765625, 0.04290771484375, 0.01464080810546875, -0.01160430908203125, -0.016632080078125, 0.0012025833129882812, 0.03741455078125, -0.00989532470703125, -0.01085662841796875, -0.002063751220703125, -0.01763916015625, -0.017242431640625, 0.00988006591796875, -0.0097198486328125, 0.05322265625, -0.00589752197265625, 0.041168212890625, 0.0037994384765625, 0.021209716796875, -0.0064849853515625, -0.016632080078125, -0.004638671875, -0.04974365234375, -0.00897979736328125, -0.00946044921875, -0.004405975341796875, 0.053924560546875, 0.036376953125, 0.006908416748046875, 0.0201263427734375, 0.0064849853515625, -0.00846099853515625, -0.019744873046875, 0.0124053955078125, -0.00152587890625, 0.06182861328125, 0.00348663330078125, -0.0008826255798339844, 0.035614013671875, -0.042510986328125, -0.0007371902465820312, 0.013916015625, -0.0253753662109375, 0.0206451416015625, 0.014801025390625, -0.0201568603515625, 0.039794921875, 0.041168212890625, 0.016357421875, 0.0333251953125, 0.0054168701171875, 0.021331787109375, -0.0007390975952148438, -0.04437255859375, 0.0216827392578125, 0.058807373046875, 0.048126220703125, -0.02972412109375, 0.01319122314453125, 0.040252685546875, -0.0181427001953125, -0.0007686614990234375, 0.026824951171875, 0.04913330078125, -0.053314208984375, 0.0071258544921875, 0.047088623046875, 0.01025390625, -0.004314422607421875, 0.0290679931640625, -0.031829833984375, -0.030120849609375, -0.041961669921875, 0.00789642333984375, -0.03155517578125, -0.0242767333984375, 0.035491943359375, -0.005615234375, -0.027099609375, -0.005550384521484375, -0.00800323486328125, -0.002414703369140625, 0.00738525390625, -0.0171661376953125, -0.002285003662109375, -0.0299072265625, 0.01476287841796875, -0.007160186767578125, 0.004795074462890625, -0.08392333984375, 0.00946044921875, -0.0025005340576171875, -0.00499725341796875, 0.03387451171875, 0.020477294921875, 0.0249786376953125, 0.06280517578125, 0.0015172958374023438, -0.0084228515625, 0.0263519287109375, -0.0079345703125, -0.0229949951171875, -0.0231781005859375, -0.022216796875, 0.032623291015625, -0.0084991455078125, 0.0249176025390625, -0.0273590087890625, 0.003879547119140625, -0.01904296875, -0.03167724609375, 0.036224365234375, -0.01367950439453125, -0.004299163818359375, 0.0136871337890625, 0.036163330078125, 0.01032257080078125, 0.01031494140625, -0.00954437255859375, -0.0579833984375, -0.049285888671875, -0.009796142578125, -0.0679931640625, -0.0128936767578125, -0.00856781005859375, -0.0298309326171875, 0.0176239013671875, 0.0047454833984375, 0.0029811859130859375, 0.016448974609375, 0.00949859619140625, -0.0138702392578125, 0.0005927085876464844, -0.021514892578125, 0.045654296875, -0.0238800048828125, 0.044403076171875, -0.0343017578125, -0.005588531494140625, 0.02703857421875, 0.0298614501953125, 0.01441192626953125, 0.0004172325134277344, -0.04559326171875, -0.024078369140625, 0.025970458984375, 0.025177001953125, 0.01052093505859375, 0.0465087890625, 0.016265869140625, 0.06207275390625, 0.08514404296875, -0.055419921875, 0.037109375, -0.024322509765625, 0.01678466796875, 0.022674560546875, 0.005859375, 0.007511138916015625, -0.0080413818359375, 0.0230560302734375, -0.0193023681640625, -0.0181121826171875, 0.01522064208984375, -0.044677734375, 0.0235748291015625, 0.0297393798828125, 0.047149658203125, -0.09033203125, -0.056121826171875, -0.022064208984375, 0.03912353515625, 0.004367828369140625, 0.045928955078125, 0.052093505859375, 0.0131072998046875, 0.08892822265625, -0.0164031982421875, 0.0293426513671875, -0.004619598388671875, -0.00908660888671875, 0.051513671875, 0.01885986328125, 0.0086669921875, -0.0439453125, -0.0007109642028808594, 0.039703369140625, 0.06634521484375, -0.038848876953125, -0.04962158203125, 0.006412506103515625, -0.01568603515625, 0.0000908970832824707, -0.00782012939453125, -0.035125732421875, 0.055450439453125, 0.0791015625, -0.0478515625, 0.007198333740234375, 0.03582763671875, -0.01468658447265625, -0.0255889892578125, -0.0242462158203125, 0.0347900390625, 0.0292205810546875, -0.0202178955078125, 0.0114288330078125, 0.03021240234375, 0.057861328125, -0.0064849853515625, 0.05364990234375, -0.0195770263671875, -0.00749969482421875, -0.038787841796875, 0.04541015625, -0.0302276611328125, 0.054443359375, -0.058624267578125, -0.046173095703125, -0.0203094482421875, 0.048828125, 0.033905029296875, -0.0004940032958984375, 0.039825439453125, 0.006191253662109375, -0.0245513916015625, 0.006862640380859375, 0.0177001953125, -0.0213470458984375, -0.019561767578125, -0.0166778564453125, 0.036224365234375, 0.0491943359375, 0.033111572265625, -0.008941650390625, 0.068359375, 0.01788330078125, 0.037384033203125, 0.0162811279296875, 0.0200653076171875, -0.011962890625, 0.005035400390625, 0.0061492919921875, 0.029449462890625, 0.059295654296875, -0.07171630859375, -0.016143798828125, -0.0212249755859375, -0.079345703125, 0.034576416015625, 0.050506591796875, -0.002300262451171875, -0.028961181640625, 0.01708984375, -0.0210723876953125, 0.0244293212890625, 0.01049041748046875, -0.01507568359375, 0.0169219970703125, 0.027679443359375, 0.0010242462158203125, -0.041046142578125, -0.0014019012451171875, 0.02789306640625, -0.0017986297607421875, -0.01071929931640625, 0.03515625, 0.0015878677368164062, 0.003566741943359375, 0.00843048095703125, -0.0105133056640625, 0.00905609130859375, 0.00560760498046875, 0.0008473396301269531, -0.0263824462890625, -0.01265716552734375, -0.002292633056640625, 0.0244293212890625, -0.0133209228515625, 0.062103271484375, -0.04730224609375, -0.00821685791015625, -0.01253509521484375, 0.020294189453125, -0.035491943359375, -0.0246734619140625, -0.03399658203125, 0.037750244140625, 0.004364013671875, -0.046783447265625, 0.058685302734375, 0.002758026123046875, 0.0090789794921875, 0.007564544677734375, 0.00909423828125, -0.0198516845703125, 0.0396728515625, -0.00881195068359375, 0.07708740234375, 0.0445556640625, -0.0479736328125, -0.001766204833984375, -0.01001739501953125, -0.032470703125, 0.0152740478515625, 0.01154327392578125, -0.006237030029296875, 0.00010704994201660156, 0.007701873779296875, -0.0285797119140625, 0.0250396728515625, 0.044464111328125, 0.00293731689453125, 0.0234375, -0.006999969482421875, -0.017181396484375, -0.019805908203125, -0.0169677734375, -0.032257080078125, -0.01236724853515625, -0.0213165283203125, -0.006328582763671875, 0.007457733154296875, -0.07391357421875, 0.00659942626953125, 0.0237579345703125, 0.0300140380859375, -0.00799560546875, -0.062164306640625, 0.03253173828125, -0.0305938720703125, 0.04705810546875, -0.006591796875, -0.04241943359375, 0.00640106201171875, 0.048583984375, 0.0189971923828125, 0.0003643035888671875, -0.0271759033203125, -0.0009293556213378906, -0.0100555419921875, 0.017059326171875, 0.0247650146484375, -0.0257720947265625, -0.01800537109375, 0.01100921630859375, 0.01366424560546875, 0.051361083984375, 0.033660888671875, -0.018341064453125, 0.039581298828125, -0.00904083251953125, -0.0155487060546875, -0.0445556640625, -0.00044918060302734375, -0.023284912109375, -0.0072479248046875, 0.017425537109375, 0.02996826171875, 0.06304931640625, -0.00884246826171875, -0.10546875, 0.057891845703125, -0.03118896484375, -0.0308990478515625, -0.046875, 0.0065155029296875, 0.031890869140625, -0.054229736328125, -0.01477813720703125, -0.0012922286987304688, -0.07073974609375, -0.022552490234375, 0.0220184326171875, -0.0305633544921875, 0.0168304443359375, 0.03448486328125, -0.10809326171875, 0.006702423095703125, -0.0191802978515625, -0.0195465087890625, 0.00855255126953125, -0.006069183349609375, 0.0066680908203125, 0.020355224609375, -0.03887939453125, -0.04547119140625, -0.0118408203125, -0.0152740478515625, 0.00217437744140625, -0.019927978515625, -0.041534423828125, 0.0165863037109375, 0.088623046875, 0.04913330078125, 0.0192718505859375, -0.056671142578125, -0.00568389892578125, -0.030120849609375, -0.0111236572265625, -0.024261474609375, 0.00940704345703125, -0.0419921875, -0.016387939453125, 0.005626678466796875, -0.011962890625, -0.0146942138671875, 0.01361846923828125, -0.0287933349609375, 0.0024471282958984375, 0.04351806640625, 0.007213592529296875, -0.036407470703125, -0.0230255126953125, 0.07293701171875, -0.0576171875, -0.0313720703125, 0.0093536376953125, 0.02947998046875, 0.005229949951171875, -0.061279296875, -0.016448974609375, 0.004215240478515625, 0.06732177734375, -0.00205230712890625, 0.051727294921875, -0.05560302734375, 0.07122802734375, 0.025115966796875, -0.021820068359375, 0.011962890625, 0.0174560546875, 0.006591796875, -0.061614990234375, 0.0384521484375, 0.01898193359375, 0.06304931640625, 0.006275177001953125, 0.0275726318359375, -0.00847625732421875, 0.04107666015625, 0.017730712890625, -0.0253753662109375, 0.032257080078125, -0.0021877288818359375, 0.003635406494140625, -0.021240234375, -0.031524658203125, -0.033416748046875, 0.0254974365234375, 0.01233673095703125, -0.03558349609375, 0.030242919921875 ]
977fbd906d22a8c64e1968021554639834ae61c9
Wordpress Stackexchange Q: wpdb->prepare function remove single quote for %s in SQL statment I am using the below wpdb->prepare function in a sql statement. I am passing in several variables some field names and some values. When I try to use the %s for the field name it puts single quotes around it. How can I prevent the single quotes around the field name? The sql statement will not execute with the single quotes? $query = $wpdb->prepare("SELECT DISTINCT wp_geo.%s, wp_geo.$field2 FROM wp_geo WHERE wp_geo.$field3=%s",$field1, $typevalue); Output with single quotes around 'county_short' field name: SELECT DISTINCT wp_geo.'county_short', wp_geo.county_slug FROM wp_geo WHERE wp_geo.type='trailers' A: You can use %1s which excludes single quotes wrapper. By using %1s, you will note that the string won't be having single quotes and you will get the values directly as needed. $query = $wpdb->prepare(" SELECT DISTINCT wp_geo.%1s, wp_geo.%1s FROM wp_geo WHERE wp_geo.%1s = %1s", $field1, $field2, $field3, $typevalue ); Note: Here, the sequence should follow for %1s and the variable you are providing after the query.
Q: wpdb->prepare function remove single quote for %s in SQL statment I am using the below wpdb->prepare function in a sql statement. I am passing in several variables some field names and some values. When I try to use the %s for the field name it puts single quotes around it. How can I prevent the single quotes around the field name? The sql statement will not execute with the single quotes? $query = $wpdb->prepare("SELECT DISTINCT wp_geo.%s, wp_geo.$field2 FROM wp_geo WHERE wp_geo.$field3=%s",$field1, $typevalue); Output with single quotes around 'county_short' field name: SELECT DISTINCT wp_geo.'county_short', wp_geo.county_slug FROM wp_geo WHERE wp_geo.type='trailers' A: You can use %1s which excludes single quotes wrapper. By using %1s, you will note that the string won't be having single quotes and you will get the values directly as needed. $query = $wpdb->prepare(" SELECT DISTINCT wp_geo.%1s, wp_geo.%1s FROM wp_geo WHERE wp_geo.%1s = %1s", $field1, $field2, $field3, $typevalue ); Note: Here, the sequence should follow for %1s and the variable you are providing after the query. A: You can't use prepare() on column names, only on values. A: You cannot suppress the quotes in $wpdb. Run mysqli_real_escape_string() in your script on these variables.
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:427546", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78659" }
[ 0.0270233154296875, 0.021514892578125, -0.02142333984375, -0.036346435546875, 0.037017822265625, -0.00713348388671875, 0.0007009506225585938, -0.016204833984375, -0.0258026123046875, 0.044036865234375, -0.004177093505859375, -0.0188446044921875, 0.01000213623046875, -0.036529541015625, 0.007904052734375, -0.0278472900390625, 0.00036072731018066406, 0.00867462158203125, -0.0245208740234375, -0.0253753662109375, 0.02215576171875, -0.031494140625, -0.058319091796875, 0.0416259765625, 0.03955078125, -0.06298828125, 0.033843994140625, -0.0080108642578125, 0.042938232421875, 0.00994110107421875, 0.018798828125, -0.0222930908203125, 0.036865234375, -0.000659942626953125, -0.0186004638671875, 0.047027587890625, 0.026092529296875, -0.009735107421875, -0.001712799072265625, 0.0278778076171875, 0.005558013916015625, -0.0008821487426757812, -0.046844482421875, 0.0268402099609375, -0.03887939453125, -0.042022705078125, 0.0241851806640625, 0.007152557373046875, 0.0265350341796875, 0.0129852294921875, 0.01316070556640625, -0.0170135498046875, 0.010986328125, -0.002529144287109375, -0.0200347900390625, 0.00217437744140625, -0.0599365234375, 0.0269012451171875, 0.0015916824340820312, 0.06298828125, 0.0123748779296875, 0.0116424560546875, -0.0175933837890625, -0.0333251953125, 0.01507568359375, 0.00040912628173828125, 0.007724761962890625, 0.0193939208984375, -0.01430511474609375, -0.008026123046875, 0.00444793701171875, -0.0164642333984375, 0.004791259765625, -0.0092620849609375, -0.024749755859375, 0.0279998779296875, 0.009674072265625, 0.0203094482421875, 0.0120849609375, -0.007099151611328125, 0.0299835205078125, -0.0634765625, -0.04119873046875, 0.023956298828125, 0.03753662109375, 0.0478515625, 0.007762908935546875, -0.023773193359375, -0.02069091796875, -0.0182342529296875, -0.0207977294921875, -0.02630615234375, -0.016143798828125, -0.0006823539733886719, -0.0194854736328125, -0.02606201171875, -0.0006098747253417969, 0.044891357421875, -0.006656646728515625, 0.004520416259765625, -0.01058197021484375, -0.0240478515625, -0.0254058837890625, -0.039886474609375, 0.0194091796875, 0.07403564453125, -0.007442474365234375, 0.0004220008850097656, 0.0281524658203125, 0.0087432861328125, 0.031982421875, -0.021942138671875, -0.05560302734375, -0.0005002021789550781, -0.056427001953125, 0.061553955078125, -0.02447509765625, -0.06591796875, -0.0308685302734375, -0.0108795166015625, -0.01983642578125, -0.0016307830810546875, -0.03155517578125, -0.0030193328857421875, 0.0218048095703125, 0.00032258033752441406, -0.01422882080078125, 0.0175323486328125, -0.0419921875, 0.0255126953125, 0.00493621826171875, -0.018524169921875, 0.0204315185546875, 0.06097412109375, 0.007366180419921875, -0.0167236328125, 0.0291290283203125, -0.00330352783203125, 0.00730133056640625, 0.062286376953125, -0.028656005859375, -0.06463623046875, 0.0022678375244140625, -0.0138092041015625, -0.003559112548828125, -0.00014066696166992188, 0.006092071533203125, 0.01227569580078125, 0.0063018798828125, -0.00986480712890625, -0.0265350341796875, -0.02166748046875, 0.039947509765625, -0.00511932373046875, -0.0853271484375, -0.047607421875, -0.01081085205078125, -0.03948974609375, -0.015625, -0.06549072265625, 0.02032470703125, -0.03338623046875, -0.0207061767578125, -0.01544952392578125, -0.0440673828125, 0.038848876953125, -0.0643310546875, -0.009063720703125, 0.0007433891296386719, -0.005687713623046875, -0.0239715576171875, 0.00577545166015625, 0.00617218017578125, -0.019500732421875, -0.01528167724609375, 0.004169464111328125, -0.04205322265625, -0.0176239013671875, 0.0562744140625, -0.03375244140625, -0.018035888671875, -0.022674560546875, 0.033538818359375, 0.02191162109375, -0.0745849609375, 0.045013427734375, 0.00920867919921875, 0.051055908203125, 0.00930023193359375, 0.0084381103515625, 0.0609130859375, 0.03143310546875, -0.0118865966796875, -0.029388427734375, 0.038787841796875, -0.03887939453125, 0.00612640380859375, -0.037384033203125, 0.01555633544921875, 0.029937744140625, 0.00762176513671875, 0.01529693603515625, 0.0207366943359375, -0.00858306884765625, 0.0190277099609375, -0.0095062255859375, 0.003376007080078125, 0.03167724609375, -0.03802490234375, 0.039031982421875, 0.03643798828125, 0.0142364501953125, -0.032958984375, 0.0081634521484375, 0.0025482177734375, -0.03564453125, 0.033660888671875, 0.04486083984375, -0.01024627685546875, 0.020782470703125, 0.0030975341796875, -0.0743408203125, -0.0038089752197265625, 0.041015625, 0.0191650390625, -0.0099639892578125, -0.0164794921875, -0.0196380615234375, 0.048797607421875, -0.033203125, 0.076171875, 0.03680419921875, 0.0213623046875, 0.0249786376953125, -0.0199737548828125, 0.0180511474609375, 0.00717926025390625, -0.006244659423828125, -0.00022733211517333984, 0.0252685546875, 0.0212860107421875, 0.019805908203125, -0.04107666015625, -0.0399169921875, 0.003459930419921875, -0.044525146484375, 0.0019207000732421875, -0.0287322998046875, 0.025360107421875, 0.039154052734375, -0.03411865234375, -0.036468505859375, 0.0277252197265625, -0.057037353515625, -0.0006570816040039062, 0.038330078125, -0.056549072265625, -0.0136566162109375, 0.03509521484375, -0.00424957275390625, -0.01348876953125, -0.0309906005859375, 0.043609619140625, -0.039337158203125, -0.0033359527587890625, 0.0263671875, 0.01800537109375, 0.0248565673828125, -0.00421142578125, 0.006622314453125, 0.0035114288330078125, -0.008056640625, -0.016265869140625, 0.0254974365234375, -0.041473388671875, -0.00009042024612426758, -0.0196380615234375, 0.032012939453125, -0.038055419921875, -0.00444793701171875, 0.005870819091796875, 0.049285888671875, 0.0110015869140625, -0.0228729248046875, -0.0255584716796875, -0.019927978515625, 0.00959014892578125, -0.003032684326171875, 0.0012178421020507812, -0.0121917724609375, 0.00835418701171875, 0.039642333984375, -0.02197265625, 0.0703125, -0.0266876220703125, -0.020172119140625, 0.049468994140625, 0.0198974609375, -0.0216827392578125, 0.007160186767578125, 0.03009033203125, 0.037139892578125, -0.00395965576171875, -0.006465911865234375, 0.01824951171875, -0.0018320083618164062, 0.0428466796875, 0.0086822509765625, 0.00933074951171875, 0.009918212890625, -0.04638671875, -0.01158905029296875, 0.01520538330078125, 0.037109375, -0.0020732879638671875, -0.021575927734375, 0.0007419586181640625, 0.0108795166015625, -0.0606689453125, -0.07708740234375, 0.0369873046875, 0.00878143310546875, 0.0169677734375, -0.0032520294189453125, 0.00594329833984375, -0.0039520263671875, -0.0109100341796875, -0.0205230712890625, 0.09759521484375, -0.0299530029296875, -0.085205078125, -0.031982421875, -0.09112548828125, -0.042755126953125, 0.00021004676818847656, 0.0089263916015625, 0.0011472702026367188, 0.024200439453125, 0.0205230712890625, 0.006366729736328125, 0.04107666015625, 0.0178680419921875, -0.00438690185546875, -0.00034999847412109375, -0.01192474365234375, -0.0008950233459472656, 0.00922393798828125, -0.005672454833984375, -0.016357421875, 0.01136016845703125, 0.006374359130859375, -0.0060272216796875, 0.042755126953125, 0.056640625, 0.07696533203125, -0.038848876953125, -0.047821044921875, 0.07720947265625, 0.03662109375, 0.00756072998046875, -0.040924072265625, -0.02618408203125, -0.05169677734375, 0.030731201171875, 0.0168914794921875, 0.012725830078125, 0.0034236907958984375, 0.0367431640625, 0.07110595703125, 0.014495849609375, -0.016326904296875, -0.005985260009765625, 0.03753662109375, 0.03656005859375, 0.0848388671875, -0.019561767578125, 0.0125579833984375, -0.02911376953125, 0.0301513671875, -0.00647735595703125, 0.01313018798828125, 0.01409912109375, -0.0182037353515625, -0.0232391357421875, -0.024017333984375, 0.04595947265625, -0.0225982666015625, 0.00402069091796875, -0.0322265625, -0.01360321044921875, -0.0265350341796875, 0.052978515625, -0.07354736328125, -0.0168914794921875, 0.0244293212890625, 0.033111572265625, -0.045806884765625, -0.03228759765625, -0.05523681640625, -0.01390838623046875, -0.049652099609375, 0.0146331787109375, 0.00034999847412109375, -0.01800537109375, 0.0021495819091796875, -0.037078857421875, -0.026702880859375, -0.043792724609375, 0.02294921875, -0.046630859375, 0.00420379638671875, 0.020416259765625, -0.019866943359375, 0.0017423629760742188, -0.01140594482421875, -0.040924072265625, -0.060211181640625, -0.00888824462890625, 0.027069091796875, 0.02777099609375, -0.037322998046875, -0.005649566650390625, -0.0220947265625, 0.051300048828125, -0.0011606216430664062, -0.031707763671875, 0.0262451171875, 0.027191162109375, -0.020965576171875, 0.027435302734375, 0.01396942138671875, -0.0202789306640625, -0.0032558441162109375, -0.0245208740234375, 0.025146484375, 0.01508331298828125, -0.039459228515625, 0.01012420654296875, -0.039337158203125, 0.00011402368545532227, -0.031402587890625, -0.0284576416015625, 0.04376220703125, 0.03314208984375, 0.002044677734375, 0.0184173583984375, -0.0281524658203125, 0.0010766983032226562, 0.052703857421875, 0.02642822265625, 0.006748199462890625, 0.003170013427734375, 0.055084228515625, 0.01149749755859375, -0.04931640625, -0.04693603515625, -0.01549530029296875, 0.0295257568359375, -0.00262451171875, 0.06988525390625, 0.046722412109375, -0.03338623046875, 0.056640625, 0.0192413330078125, -0.00832366943359375, -0.0400390625, 0.07281494140625, 0.00528717041015625, 0.00931549072265625, 0.01102447509765625, -0.0164337158203125, 0.01410675048828125, 0.055511474609375, 0.0347900390625, -0.036346435546875, 0.03839111328125, 0.008148193359375, -0.0018100738525390625, -0.05078125, -0.0190887451171875, -0.09283447265625, 0.0301513671875, -0.02923583984375, 0.01233673095703125, -0.016204833984375, 0.02801513671875, 0.03607177734375, 0.00885772705078125, -0.00937652587890625, 0.049560546875, 0.03057861328125, 0.0016241073608398438, 0.050262451171875, 0.01357269287109375, -0.0294036865234375, 0.0012140274047851562, 0.0025730133056640625, 0.005245208740234375, 0.0021114349365234375, -0.0194091796875, -0.0220489501953125, -0.0147552490234375, 0.00852203369140625, -0.006191253662109375, 0.038360595703125, -0.0191192626953125, 0.0335693359375, 0.0270843505859375, 0.01186370849609375, 0.0367431640625, 0.044677734375, 0.005390167236328125, 0.0182342529296875, 0.01483154296875, -0.01259613037109375, 0.0355224609375, -0.0174407958984375, 0.0297698974609375, -0.013641357421875, -0.0294647216796875, 0.035888671875, 0.0037860870361328125, 0.02520751953125, -0.0145263671875, 0.0179901123046875, 0.020477294921875, -0.003131866455078125, 0.004009246826171875, -0.03179931640625, 0.017425537109375, -0.027557373046875, 0.0035610198974609375, -0.00991058349609375, -0.01062774658203125, 0.06610107421875, 0.0052337646484375, -0.01263427734375, 0.0239105224609375, 0.005443572998046875, 0.000942230224609375, -0.025390625, 0.0095977783203125, 0.055938720703125, 0.0287933349609375, -0.004016876220703125, 0.0236663818359375, -0.00887298583984375, 0.03948974609375, 0.0027523040771484375, 0.03790283203125, -0.05279541015625, -0.058624267578125, 0.0333251953125, -0.025726318359375, -0.043121337890625, 0.009246826171875, 0.00879669189453125, -0.014892578125, 0.0025615692138671875, 0.018951416015625, -0.038177490234375, 0.0243682861328125, -0.03179931640625, 0.01027679443359375, -0.0187225341796875, -0.01250457763671875, 0.08978271484375, 0.05194091796875, -0.0204925537109375, -0.00766754150390625, -0.06585693359375, -0.015594482421875, 0.027984619140625, -0.0252838134765625, -0.0059051513671875, -0.014404296875, -0.00707244873046875, 0.0234222412109375, 0.00261688232421875, -0.0033779144287109375, 0.0091705322265625, 0.0002503395080566406, -0.0194854736328125, 0.00016951560974121094, -0.040863037109375, 0.0309600830078125, 0.036163330078125, 0.022796630859375, -0.0031604766845703125, 0.01418304443359375, 0.048370361328125, -0.01551055908203125, -0.006763458251953125, -0.0362548828125, -0.00803375244140625, -0.01995849609375, 0.0248870849609375, 0.0185699462890625, 0.0251922607421875, 0.010833740234375, 0.04583740234375, -0.02618408203125, -0.011932373046875, -0.0121612548828125, 0.017059326171875, -0.03887939453125, -0.0121307373046875, 0.0377197265625, -0.0212554931640625, 0.03753662109375, -0.0237274169921875, -0.0018138885498046875, 0.0225982666015625, -0.026092529296875, 0.0172882080078125, 0.0289764404296875, -0.00797271728515625, -0.006092071533203125, 0.024444580078125, 0.01446533203125, 0.048736572265625, -0.00640106201171875, 0.032440185546875, 0.00974273681640625, -0.007671356201171875, 0.0048065185546875, 0.0309295654296875, 0.046539306640625, -0.0260009765625, 0.01371002197265625, 0.02923583984375, -0.005283355712890625, 0.0667724609375, 0.0256195068359375, 0.10455322265625, -0.0706787109375, 0.0477294921875, 0.040924072265625, -0.00849151611328125, 0.0650634765625, -0.0082244873046875, 0.0188751220703125, -0.002780914306640625, -0.056884765625, 0.08258056640625, -0.032073974609375, -0.035675048828125, 0.032073974609375, 0.0006260871887207031, -0.0018863677978515625, 0.04180908203125, 0.01422119140625, -0.0340576171875, 0.01120758056640625, 0.0203399658203125, -0.005023956298828125, 0.01062774658203125, 0.0011091232299804688, 0.004131317138671875, -0.04071044921875, -0.04962158203125, -0.0023822784423828125, -0.0318603515625, -0.0265960693359375, 0.00989532470703125, 0.06512451171875, 0.00302886962890625, 0.04827880859375, 0.0162353515625, -0.0235595703125, 0.0241851806640625, -0.01039886474609375, 0.0212554931640625, -0.01275634765625, -0.005512237548828125, 0.05029296875, -0.0308380126953125, 0.0235443115234375, 0.0078277587890625, 0.01035308837890625, -0.01108551025390625, -0.041259765625, 0.03143310546875, -0.039581298828125, 0.0117034912109375, 0.038848876953125, 0.00612640380859375, -0.0114593505859375, 0.01375579833984375, 0.0142974853515625, -0.07861328125, -0.0711669921875, -0.002559661865234375, -0.08416748046875, -0.0030345916748046875, -0.0052337646484375, -0.0712890625, 0.07830810546875, 0.069091796875, 0.0122528076171875, 0.031036376953125, 0.01523590087890625, -0.09600830078125, -0.0296173095703125, -0.03643798828125, 0.046478271484375, 0.016815185546875, 0.047882080078125, -0.0254058837890625, -0.00374603271484375, 0.037994384765625, 0.0175628662109375, 0.04595947265625, -0.0016031265258789062, -0.0008630752563476562, 0.0114288330078125, 0.08319091796875, 0.0164031982421875, -0.021759033203125, 0.0261077880859375, -0.00775909423828125, 0.0218353271484375, 0.0892333984375, -0.0260467529296875, 0.038970947265625, 0.006801605224609375, 0.0083770751953125, -0.0025310516357421875, 0.0239715576171875, 0.047943115234375, -0.0154876708984375, 0.0171661376953125, 0.027130126953125, -0.0212860107421875, -0.0047454833984375, -0.029541015625, -0.0389404296875, 0.0755615234375, 0.02838134765625, -0.05609130859375, 0.007537841796875, -0.055816650390625, 0.041412353515625, 0.018096923828125, -0.00725555419921875, 0.053009033203125, 0.00811004638671875, 0.037200927734375, 0.01666259765625, -0.005321502685546875, 0.0008435249328613281, 0.047271728515625, 0.01537322998046875, 0.020965576171875, 0.0158538818359375, -0.00896453857421875, 0.05047607421875, 0.0168914794921875, 0.0125579833984375, -0.0399169921875, 0.00887298583984375, 0.013336181640625, 0.0275726318359375, -0.009765625, -0.0223236083984375, 0.0202178955078125, 0.06182861328125, 0.03704833984375, -0.0029048919677734375, 0.00811767578125, 0.039093017578125, 0.006732940673828125, 0.00794219970703125, 0.0024776458740234375, -0.036895751953125, -0.005466461181640625, -0.025970458984375, -0.032684326171875, 0.03265380859375, 0.083251953125, 0.03936767578125, 0.0202484130859375, -0.026031494140625, -0.0400390625, -0.014617919921875, -0.00955963134765625, 0.0257568359375, 0.021209716796875, -0.01202392578125, 0.0135955810546875, 0.036346435546875, 0.0127105712890625, 0.0184783935546875, 0.0230255126953125, 0.04461669921875, 0.05096435546875, 0.0216217041015625, -0.0015268325805664062, 0.01319122314453125, -0.013092041015625, -0.0305633544921875, 0.00803375244140625, -0.031219482421875, 0.0084228515625, -0.0006198883056640625, -0.01052093505859375, 0.0684814453125, -0.0269622802734375, -0.00001990795135498047, 0.020751953125, 0.0021114349365234375, -0.0055694580078125, 0.0192718505859375, 0.0005660057067871094, 0.0193939208984375, 0.0290985107421875, -0.0443115234375, -0.005275726318359375, 0.0063018798828125, -0.040802001953125, 0.002674102783203125, 0.0293121337890625, -0.052001953125, 0.055023193359375, -0.0032634735107421875, -0.0189208984375, -0.04010009765625, 0.0306243896484375, 0.011505126953125, -0.0499267578125, -0.00039386749267578125, -0.022247314453125, 0.0011358261108398438, 0.011474609375, 0.039642333984375, -0.00745391845703125, -0.0019407272338867188, 0.057891845703125, -0.0160064697265625, -0.002124786376953125, -0.004974365234375, 0.01213836669921875, -0.0249176025390625, 0.008148193359375, -0.003986358642578125, -0.0181732177734375, 0.0097198486328125, 0.0017995834350585938, 0.0234832763671875, -0.01090240478515625, 0.052093505859375, -0.043365478515625, -0.01605224609375, 0.00643157958984375, 0.030242919921875, -0.038360595703125, 0.062469482421875, -0.022552490234375, 0.003452301025390625, -0.00969696044921875, -0.0274810791015625, 0.0298919677734375, 0.016937255859375, 0.0289459228515625, 0.0266571044921875, 0.02886962890625, -0.020233154296875, 0.040557861328125, -0.056732177734375, 0.08538818359375, 0.047515869140625, 0.00453948974609375, 0.01413726806640625, -0.01142120361328125, -0.041839599609375, -0.005931854248046875, 0.00040531158447265625, 0.005893707275390625, -0.01885986328125, -0.0037631988525390625, -0.052978515625, -0.0008993148803710938, 0.00760650634765625, 0.03582763671875, 0.0158843994140625, -0.03826904296875, -0.00994873046875, -0.0361328125, 0.0012063980102539062, -0.0214996337890625, 0.0022182464599609375, -0.0157623291015625, 0.035400390625, -0.003948211669921875, -0.0223388671875, -0.07928466796875, -0.00623321533203125, 0.0227508544921875, -0.0081939697265625, -0.0205230712890625, -0.00983428955078125, -0.0200653076171875, 0.021881103515625, -0.004741668701171875, 0.018798828125, 0.003814697265625, 0.04058837890625, -0.0263824462890625, -0.0501708984375, -0.006755828857421875, 0.055694580078125, -0.018280029296875, 0.0142974853515625, 0.04150390625, -0.0185699462890625, -0.0006647109985351562, -0.0097198486328125, 0.01220703125, 0.00989532470703125, -0.000255584716796875, -0.0195159912109375, 0.03857421875, 0.0023593902587890625, -0.027587890625, -0.078857421875, -0.01009368896484375, -0.0555419921875, 0.042022705078125, -0.01204681396484375, 0.00931549072265625, 0.0140838623046875, -0.040618896484375, -0.0546875, 0.11968994140625, -0.01885986328125, -0.010101318359375, 0.01422119140625, -0.0172271728515625, 0.00478363037109375, -0.006587982177734375, -0.003421783447265625, -0.003154754638671875, -0.038787841796875, 0.00908660888671875, 0.031768798828125, 0.0275115966796875, 0.0065765380859375, 0.0079498291015625, -0.03753662109375, 0.03955078125, 0.02020263671875, 0.05084228515625, -0.008575439453125, 0.00937652587890625, 0.032135009765625, 0.0259246826171875, -0.016815185546875, 0.034271240234375, 0.01157379150390625, -0.01282501220703125, -0.0258636474609375, -0.00899505615234375, 0.00484466552734375, 0.018585205078125, 0.016143798828125, 0.06744384765625, 0.0012559890747070312, -0.040496826171875, -0.07659912109375, -0.0266265869140625, 0.0207977294921875, -0.015472412109375, 0.0224761962890625, -0.1005859375, -0.0134735107421875, 0.0188140869140625, -0.005535125732421875, 0.00487518310546875, 0.00534820556640625, -0.0199737548828125, -0.01515960693359375, 0.0200347900390625, -0.013580322265625, -0.0215606689453125, -0.01015472412109375, 0.0531005859375, -0.046112060546875, -0.04248046875, -0.01139068603515625, 0.03106689453125, -0.0171966552734375, -0.055755615234375, -0.046844482421875, -0.038726806640625, 0.01116180419921875, 0.01203155517578125, -0.019073486328125, 0.032928466796875, 0.0037937164306640625, 0.0014247894287109375, -0.0274658203125, 0.0099029541015625, 0.0213165283203125, 0.0146484375, -0.0086669921875, -0.00555419921875, 0.022552490234375, -0.022308349609375, -0.0143890380859375, 0.0265350341796875, -0.01435089111328125, 0.0250091552734375, 0.022796630859375, -0.01197052001953125, 0.043914794921875, 0.01983642578125, -0.00992584228515625, -0.004726409912109375, -0.032958984375, -0.057464599609375, -0.00014472007751464844, 0.0238189697265625, 0.0174102783203125, 0.0193023681640625 ]
65e2ad649821c1652f9d9713fc7520db2932c15a
Wordpress Stackexchange Q: WP 3.5 and Galleries - how to count images? I'm trying to figure out how to count and display the number of images in a gallery with WP 3.5. I was following an old post on Ottopress, querying the DB for attachments but it seems the galleries are now contained in shortcodes. Is it possible to extract the shortcode from the post and count the IDs? What is the best way to accomplish this? A: This works: $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 )); if ( $images ) { $total_images = count( $images ); } The variable $total_images will hold the count of images in your gallery.
Q: WP 3.5 and Galleries - how to count images? I'm trying to figure out how to count and display the number of images in a gallery with WP 3.5. I was following an old post on Ottopress, querying the DB for attachments but it seems the galleries are now contained in shortcodes. Is it possible to extract the shortcode from the post and count the IDs? What is the best way to accomplish this? A: This works: $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 )); if ( $images ) { $total_images = count( $images ); } The variable $total_images will hold the count of images in your gallery. A: This worked well for me for a gallery post format... where is was safe to assume only all attachments were in 1 gallery. Doesn't seem totally relevant but thought I'd throw it out there. $num_attachments = array_sum ( (array) wp_count_attachments('image') ); A: If you need count after gallery itself was processed, the light way might be to hook into post_gallery filter in gallery_shortcode() and note down explicitly included posts from arguments it passes. It does get somewhat complicated with multiple galleries in same post, but it's hard to recommend specific approach without full context of your needs. A: Here I want to count images for each post inside the gallery, it was working fine for me. Put below code where you want to display total images: <!-- ============== Count Images =============== --> <?php $postid = get_the_ID(); if ( $postid !='' ) { $set = ci_featgal_get_attachments(); $i = 0; while ( $set->have_posts() ) : $set->the_post(); get_template_part( 'loop'); $i++; endwhile; wp_reset_postdata(); ?> <h6 style="font-size:10px;color:#c9b07d;"><?php echo $i ." PHOTOS";?></h6> <?php } ?> <!-- ============== Count Images End =============== -->
wordpress
{ "language": "en", "length": 301, "provenance": "stackexchange_00019.jsonl.gz:427563", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78744" }
[ 0.059326171875, 0.014892578125, 0.01035308837890625, -0.024200439453125, 0.0301055908203125, -0.0270843505859375, 0.0657958984375, -0.04156494140625, 0.0565185546875, 0.0231475830078125, -0.0648193359375, 0.00395965576171875, -0.057159423828125, 0.0158843994140625, -0.07183837890625, -0.03594970703125, 0.037200927734375, -0.0192413330078125, 0.044952392578125, 0.023101806640625, -0.00606536865234375, 0.050750732421875, 0.03973388671875, -0.0010099411010742188, 0.0148468017578125, -0.0009627342224121094, 0.037139892578125, -0.0196685791015625, 0.00408172607421875, -0.025543212890625, 0.01161956787109375, 0.0134124755859375, 0.0254364013671875, -0.00029969215393066406, -0.0019350051879882812, 0.055755615234375, 0.01233673095703125, -0.011566162109375, -0.005687713623046875, 0.03631591796875, 0.027099609375, -0.013427734375, 0.045440673828125, -0.08428955078125, 0.0167388916015625, 0.03790283203125, -0.0136260986328125, -0.05322265625, 0.057342529296875, -0.02020263671875, 0.00942230224609375, 0.03240966796875, 0.0166168212890625, -0.0408935546875, -0.01558685302734375, 0.00844573974609375, -0.00035762786865234375, -0.01169586181640625, 0.036712646484375, -0.044586181640625, -0.04473876953125, -0.037078857421875, 0.0589599609375, -0.0123291015625, -0.00426483154296875, 0.0022640228271484375, 0.0210418701171875, 0.029022216796875, 0.00885772705078125, -0.03533935546875, -0.0238037109375, 0.01334381103515625, 0.01111602783203125, -0.0294189453125, 0.0003352165222167969, 0.025543212890625, -0.0221099853515625, -0.00292205810546875, 0.029388427734375, -0.007175445556640625, 0.02032470703125, -0.0098724365234375, -0.024169921875, 0.041595458984375, -0.02496337890625, 0.044219970703125, -0.0035305023193359375, -0.025787353515625, -0.00301361083984375, 0.004161834716796875, -0.0020008087158203125, 0.0216522216796875, -0.0273895263671875, 0.03546142578125, -0.00885772705078125, -0.01995849609375, 0.019439697265625, 0.056976318359375, -0.025360107421875, -0.0280609130859375, -0.0010995864868164062, -0.035125732421875, -0.0231475830078125, -0.0106048583984375, 0.00479888916015625, -0.021392822265625, 0.0031795501708984375, 0.01490020751953125, 0.04168701171875, 0.044952392578125, -0.0222625732421875, 0.060516357421875, -0.0166168212890625, -0.005893707275390625, -0.0174713134765625, 0.017578125, -0.04693603515625, 0.029022216796875, -0.0024623870849609375, 0.0155181884765625, -0.038330078125, -0.0222930908203125, 0.01873779296875, 0.0234222412109375, 0.01763916015625, 0.0162811279296875, -0.0145416259765625, -0.016082763671875, 0.0496826171875, 0.0179901123046875, -0.056854248046875, 0.041046142578125, 0.049896240234375, -0.048614501953125, -0.0249481201171875, -0.01338958740234375, 0.0186004638671875, -0.0016603469848632812, 0.0113525390625, -0.01568603515625, 0.014007568359375, -0.01074981689453125, -0.002964019775390625, -0.00824737548828125, 0.0265045166015625, -0.002964019775390625, 0.01070404052734375, 0.042999267578125, 0.0172119140625, -0.0660400390625, 0.069580078125, -0.0035915374755859375, 0.034820556640625, 0.023162841796875, -0.01300811767578125, 0.021942138671875, 0.02239990234375, -0.0199432373046875, -0.029754638671875, -0.034820556640625, 0.0165863037109375, 0.00013697147369384766, -0.005702972412109375, 0.0027103424072265625, -0.01727294921875, 0.01508331298828125, -0.0194244384765625, -0.0021648406982421875, 0.020843505859375, 0.021942138671875, 0.0132904052734375, -0.049346923828125, -0.0408935546875, 0.007266998291015625, 0.0008230209350585938, 0.036468505859375, -0.0160675048828125, -0.023101806640625, 0.0135955810546875, 0.052520751953125, 0.0029659271240234375, -0.0242462158203125, 0.0249176025390625, -0.007965087890625, -0.006542205810546875, -0.0097808837890625, 0.0266571044921875, 0.0110321044921875, -0.0127105712890625, 0.0215301513671875, 0.0290069580078125, 0.04144287109375, -0.037109375, 0.01097869873046875, 0.01184844970703125, 0.0006885528564453125, -0.0193634033203125, -0.0102691650390625, -0.00547027587890625, -0.0126190185546875, 0.022064208984375, 0.01053619384765625, 0.0199737548828125, 0.007305145263671875, 0.045928955078125, 0.01094818115234375, 0.00762176513671875, 0.01108551025390625, -0.06695556640625, 0.0192413330078125, 0.042694091796875, 0.01030731201171875, -0.06329345703125, 0.061859130859375, 0.03814697265625, 0.02093505859375, -0.0291290283203125, 0.0115509033203125, -0.039337158203125, 0.02447509765625, -0.0278472900390625, -0.027801513671875, -0.035400390625, 0.033050537109375, 0.054046630859375, -0.01134490966796875, -0.0250244140625, -0.034210205078125, 0.005840301513671875, 0.0269317626953125, -0.101806640625, 0.023834228515625, -0.0198211669921875, -0.0114288330078125, -0.0304718017578125, -0.0214996337890625, -0.023895263671875, -0.04296875, 0.01617431640625, 0.051025390625, 0.050567626953125, 0.01148223876953125, 0.006603240966796875, -0.04241943359375, 0.05645751953125, -0.0101776123046875, 0.03668212890625, -0.063232421875, -0.02679443359375, 0.006565093994140625, 0.0380859375, 0.033233642578125, 0.0194091796875, 0.01070404052734375, -0.009765625, 0.0562744140625, 0.0028362274169921875, 0.0015430450439453125, -0.018096923828125, 0.037353515625, 0.009185791015625, 0.00040841102600097656, -0.0212249755859375, -0.0036106109619140625, -0.01015472412109375, 0.049896240234375, 0.0302886962890625, 0.0241241455078125, -0.04803466796875, 0.034576416015625, 0.015716552734375, 0.016998291015625, 0.01172637939453125, -0.011260986328125, -0.052978515625, 0.0230255126953125, -0.039093017578125, 0.0244903564453125, 0.032379150390625, -0.016326904296875, -0.0112762451171875, 0.0177001953125, -0.034332275390625, -0.00859832763671875, -0.017852783203125, -0.0733642578125, 0.01129913330078125, 0.033660888671875, -0.047149658203125, -0.01258087158203125, 0.0096588134765625, 0.056671142578125, 0.01265716552734375, 0.007694244384765625, 0.01088714599609375, 0.019561767578125, 0.01384735107421875, -0.061614990234375, 0.0650634765625, -0.07281494140625, 0.0258941650390625, 0.05517578125, -0.05633544921875, 0.028961181640625, -0.004058837890625, -0.03607177734375, -0.01094818115234375, 0.0316162109375, 0.0125274658203125, -0.042999267578125, -0.03704833984375, 0.01212310791015625, 0.017120361328125, 0.037353515625, -0.0282135009765625, -0.034088134765625, -0.01361083984375, 0.004642486572265625, -0.08966064453125, -0.10693359375, 0.018829345703125, -0.08123779296875, -0.0313720703125, 0.0025501251220703125, -0.059722900390625, 0.0011653900146484375, 0.04571533203125, 0.0034637451171875, -0.043853759765625, -0.0006585121154785156, -0.01052093505859375, -0.042572021484375, -0.0262451171875, 0.02545166015625, 0.006038665771484375, 0.01617431640625, -0.00226593017578125, 0.056915283203125, -0.0005521774291992188, -0.06280517578125, -0.0083770751953125, 0.04913330078125, -0.01035308837890625, 0.0009160041809082031, 0.01088714599609375, -0.042327880859375, -0.048583984375, -0.0010814666748046875, -0.002490997314453125, -0.0290374755859375, 0.0311279296875, 0.0032558441162109375, 0.0009174346923828125, -0.00286102294921875, 0.031951904296875, 0.0257568359375, -0.0254364013671875, -0.0007605552673339844, 0.028411865234375, -0.05072021484375, -0.0114288330078125, -0.0238037109375, -0.054351806640625, -0.034210205078125, 0.03662109375, 0.00894927978515625, -0.0241241455078125, -0.0179595947265625, -0.00048828125, 0.006641387939453125, -0.007427215576171875, -0.042816162109375, 0.0850830078125, 0.01216888427734375, 0.01953125, -0.0218505859375, -0.0006647109985351562, -0.01983642578125, -0.01477813720703125, -0.02178955078125, 0.0225830078125, -0.0187530517578125, 0.042938232421875, -0.0238494873046875, -0.0382080078125, 0.059234619140625, 0.032745361328125, 0.006927490234375, -0.025909423828125, -0.048553466796875, -0.00948333740234375, 0.07427978515625, -0.03173828125, -0.03253173828125, -0.018157958984375, 0.00750732421875, 0.029937744140625, -0.01555633544921875, 0.01904296875, -0.03546142578125, -0.049407958984375, 0.0030994415283203125, -0.0011234283447265625, -0.0164947509765625, -0.0118865966796875, -0.0106353759765625, -0.028228759765625, -0.031463623046875, 0.0305328369140625, -0.0142822265625, -0.00920867919921875, 0.0191650390625, -0.03265380859375, -0.007595062255859375, -0.0227813720703125, -0.00978851318359375, -0.10198974609375, -0.032257080078125, 0.0189056396484375, 0.09539794921875, -0.00983428955078125, -0.0301666259765625, -0.048431396484375, 0.04437255859375, -0.005535125732421875, 0.020294189453125, -0.007144927978515625, 0.022979736328125, -0.03582763671875, 0.0091094970703125, 0.016265869140625, -0.0260772705078125, -0.0091400146484375, -0.0263671875, -0.005573272705078125, -0.04205322265625, -0.0537109375, -0.057647705078125, -0.02545166015625, -0.003894805908203125, 0.033935546875, -0.002407073974609375, 0.00366973876953125, 0.02020263671875, -0.003971099853515625, -0.005229949951171875, -0.005130767822265625, 0.0188140869140625, -0.001522064208984375, -0.020843505859375, -0.0258636474609375, 0.024017333984375, 0.07427978515625, 0.0207977294921875, 0.0014972686767578125, -0.078125, 0.0134735107421875, 0.0577392578125, -0.004436492919921875, 0.0029506683349609375, 0.0064849853515625, -0.05181884765625, 0.048370361328125, 0.026947021484375, -0.00799560546875, -0.01348114013671875, 0.0391845703125, 0.00382232666015625, -0.01526641845703125, 0.00858306884765625, -0.00438690185546875, 0.026763916015625, 0.01282501220703125, -0.0311737060546875, 0.01110076904296875, 0.01392364501953125, 0.0132293701171875, -0.029937744140625, 0.01898193359375, -0.01136016845703125, -0.02044677734375, 0.00014781951904296875, 0.0765380859375, 0.02020263671875, 0.0036945343017578125, 0.002849578857421875, 0.0205841064453125, 0.03729248046875, 0.0222930908203125, 0.033599853515625, 0.048095703125, -0.0217742919921875, 0.0677490234375, -0.02545166015625, -0.006961822509765625, 0.0152435302734375, 0.0011358261108398438, -0.0167694091796875, 0.003261566162109375, -0.0318603515625, -0.0011548995971679688, 0.0171051025390625, -0.01107025146484375, 0.02398681640625, -0.0079345703125, 0.059539794921875, 0.0184326171875, -0.03204345703125, -0.0278778076171875, -0.051727294921875, -0.0111083984375, -0.07562255859375, -0.022247314453125, -0.0216217041015625, -0.0235748291015625, 0.027618408203125, -0.033721923828125, -0.043304443359375, 0.00894927978515625, 0.008575439453125, -0.028045654296875, -0.007152557373046875, 0.044677734375, 0.029693603515625, -0.0484619140625, 0.00202178955078125, 0.01861572265625, 0.037689208984375, -0.0243682861328125, -0.0151519775390625, 0.05364990234375, 0.032318115234375, 0.0271759033203125, 0.0106353759765625, -0.0423583984375, -0.01264190673828125, -0.01433563232421875, -0.01568603515625, -0.05029296875, -0.006977081298828125, -0.038787841796875, 0.00860595703125, 0.055938720703125, 0.01148223876953125, -0.01129150390625, -0.00957489013671875, -0.007659912109375, 0.0023479461669921875, -0.0018053054809570312, -0.038299560546875, 0.01540374755859375, 0.004535675048828125, -0.0063018798828125, 0.0032215118408203125, -0.00339508056640625, -0.006450653076171875, -0.0115203857421875, -0.006893157958984375, -0.024169921875, 0.0406494140625, -0.01441192626953125, 0.0107879638671875, -0.044158935546875, 0.0140228271484375, -0.051605224609375, 0.0267791748046875, 0.007556915283203125, -0.003910064697265625, 0.038330078125, -0.0239410400390625, -0.01389312744140625, -0.03057861328125, 0.05902099609375, 0.0276947021484375, -0.019378662109375, -0.024322509765625, -0.020233154296875, 0.030792236328125, -0.020751953125, -0.002166748046875, -0.01824951171875, -0.01271820068359375, -0.017730712890625, 0.014251708984375, 0.044342041015625, -0.017822265625, 0.01104736328125, 0.014862060546875, 0.024017333984375, -0.01195526123046875, -0.0143280029296875, -0.04510498046875, 0.01031494140625, 0.0096893310546875, -0.020751953125, 0.0206756591796875, -0.0019121170043945312, -0.04150390625, -0.00832366943359375, -0.0128936767578125, 0.0150299072265625, -0.0195159912109375, -0.00629425048828125, -0.00322723388671875, 0.01145172119140625, -0.00017440319061279297, 0.00856781005859375, 0.0213623046875, -0.0280609130859375, -0.01038360595703125, 0.004390716552734375, -0.015411376953125, 0.037689208984375, 0.0032958984375, 0.016082763671875, -0.0023899078369140625, 0.01276397705078125, 0.04833984375, 0.045013427734375, -0.025970458984375, 0.0021572113037109375, 0.0430908203125, -0.023406982421875, -0.0526123046875, 0.01403045654296875, 0.04156494140625, -0.033416748046875, 0.08135986328125, 0.01187896728515625, -0.004451751708984375, 0.05401611328125, -0.041839599609375, 0.01153564453125, -0.0170440673828125, 0.0216064453125, 0.03204345703125, -0.01418304443359375, -0.02362060546875, -0.06561279296875, 0.007167816162109375, -0.01947021484375, -0.02789306640625, -0.037139892578125, 0.08990478515625, -0.03338623046875, -0.01404571533203125, 0.0243377685546875, -0.0093841552734375, 0.0012903213500976562, 0.027191162109375, 0.038116455078125, 0.0208587646484375, 0.0117645263671875, -0.047454833984375, 0.0012798309326171875, -0.006969451904296875, -0.0233612060546875, 0.01142120361328125, -0.0283660888671875, 0.00925445556640625, -0.032684326171875, 0.016937255859375, -0.033905029296875, 0.02569580078125, 0.0009965896606445312, 0.0037212371826171875, 0.0391845703125, 0.07647705078125, -0.024993896484375, 0.005558013916015625, 0.05224609375, -0.038543701171875, 0.001964569091796875, 0.005374908447265625, 0.025360107421875, 0.007537841796875, -0.10711669921875, 0.0075531005859375, -0.08441162109375, 0.0517578125, -0.00969696044921875, -0.01291656494140625, 0.06610107421875, -0.048431396484375, 0.0029735565185546875, 0.0257110595703125, 0.0457763671875, -0.00984954833984375, 0.0008687973022460938, 0.04608154296875, -0.035369873046875, -0.034149169921875, 0.0268707275390625, -0.0200653076171875, -0.0273590087890625, -0.01105499267578125, -0.06048583984375, 0.1072998046875, -0.051788330078125, 0.053436279296875, 0.0279693603515625, 0.0355224609375, 0.012542724609375, 0.0177001953125, -0.01947021484375, 0.035552978515625, -0.03619384765625, 0.026947021484375, -0.0297698974609375, 0.01181793212890625, 0.001483917236328125, 0.03240966796875, 0.047637939453125, 0.0033664703369140625, 0.005855560302734375, -0.0094757080078125, 0.060455322265625, 0.045654296875, -0.0010051727294921875, 0.0053558349609375, 0.0146026611328125, 0.0111846923828125, 0.0604248046875, -0.0232391357421875, 0.0310821533203125, -0.0156402587890625, 0.01605224609375, 0.018280029296875, 0.0002970695495605469, -0.0189208984375, 0.01482391357421875, 0.038818359375, -0.057586669921875, 0.0059661865234375, 0.057373046875, -0.0166473388671875, 0.0079803466796875, 0.062042236328125, 0.040435791015625, -0.0246124267578125, -0.03009033203125, -0.0187225341796875, 0.049072265625, -0.023681640625, 0.036712646484375, 0.0261688232421875, 0.019378662109375, 0.04779052734375, -0.0179595947265625, 0.01580810546875, 0.023162841796875, -0.03741455078125, 0.01204681396484375, 0.01149749755859375, 0.01293182373046875, -0.0197296142578125, -0.00363922119140625, 0.015899658203125, 0.023193359375, -0.0272674560546875, -0.03765869140625, 0.01262664794921875, 0.0023021697998046875, 0.018402099609375, 0.0091705322265625, 0.02752685546875, 0.00695037841796875, 0.0172576904296875, 0.0101318359375, -0.0204925537109375, 0.01983642578125, 0.04119873046875, 0.0163726806640625, 0.0122528076171875, -0.033050537109375, -0.05780029296875, 0.00498199462890625, -0.0118865966796875, -0.0007605552673339844, 0.0106353759765625, -0.01861572265625, 0.017913818359375, -0.050384521484375, 0.00893402099609375, -0.0059661865234375, 0.0001919269561767578, -0.04254150390625, 0.026824951171875, -0.04376220703125, -0.035430908203125, -0.001384735107421875, 0.055908203125, -0.01171875, 0.0058746337890625, 0.041748046875, 0.06536865234375, -0.00971221923828125, -0.03472900390625, 0.01514434814453125, -0.0120849609375, -0.00052642822265625, -0.007171630859375, 0.0014123916625976562, 0.0267791748046875, -0.00995635986328125, -0.005519866943359375, 0.016998291015625, 0.038787841796875, -0.039031982421875, 0.0380859375, -0.0135498046875, -0.0197296142578125, 0.0177764892578125, -0.01226806640625, 0.054412841796875, 0.0023040771484375, -0.07342529296875, -0.01404571533203125, 0.018096923828125, -0.05194091796875, 0.0026111602783203125, 0.0233001708984375, -0.062286376953125, 0.0616455078125, -0.0284881591796875, -0.04412841796875, -0.002254486083984375, 0.03729248046875, -0.006450653076171875, -0.002506256103515625, 0.00789642333984375, -0.036041259765625, -0.01262664794921875, -0.0146331787109375, -0.000701904296875, 0.041046142578125, 0.058685302734375, 0.02862548828125, 0.0035724639892578125, 0.045684814453125, -0.01375579833984375, -0.002109527587890625, -0.0072174072265625, -0.002643585205078125, 0.0169525146484375, 0.01134490966796875, 0.005016326904296875, -0.0299072265625, -0.007007598876953125, 0.01204681396484375, 0.035675048828125, -0.0297088623046875, -0.0023021697998046875, -0.0287628173828125, 0.0262603759765625, 0.017120361328125, 0.035400390625, -0.0255279541015625, -0.019561767578125, -0.06024169921875, -0.033477783203125, 0.039581298828125, 0.0028400421142578125, -0.0104217529296875, 0.050201416015625, 0.01493072509765625, -0.0191497802734375, 0.02154541015625, -0.0560302734375, 0.037109375, 0.0318603515625, 0.01554107666015625, -0.035400390625, -0.006500244140625, -0.0194244384765625, 0.00034356117248535156, 0.0034198760986328125, 0.037322998046875, 0.01055145263671875, -0.07293701171875, -0.016754150390625, 0.0283966064453125, 0.006500244140625, -0.033721923828125, 0.007114410400390625, 0.0232391357421875, -0.03515625, 0.01517486572265625, -0.0100250244140625, -0.0241546630859375, -0.059906005859375, 0.02276611328125, 0.0302734375, -0.0047149658203125, 0.055694580078125, -0.0151519775390625, -0.00901031494140625, -0.003688812255859375, 0.038299560546875, -0.07684326171875, 0.06549072265625, 0.02227783203125, -0.058563232421875, 0.005340576171875, -0.02008056640625, 0.005992889404296875, 0.017852783203125, -0.032379150390625, -0.02471923828125, -0.046051025390625, -0.00920867919921875, -0.040863037109375, 0.049530029296875, 0.04071044921875, -0.06622314453125, 0.032257080078125, 0.030059814453125, 0.0560302734375, 0.060699462890625, 0.03900146484375, -0.01091766357421875, 0.0152740478515625, 0.00957489013671875, -0.02716064453125, -0.0164642333984375, 0.031890869140625, -0.042327880859375, -0.02691650390625, -0.0169525146484375, 0.0075531005859375, 0.0212249755859375, -0.041717529296875, -0.1048583984375, 0.047149658203125, -0.0256195068359375, -0.042083740234375, -0.0614013671875, 0.0207977294921875, 0.00563812255859375, 0.0005440711975097656, -0.0189971923828125, -0.00855255126953125, 0.005626678466796875, 0.0335693359375, 0.01568603515625, -0.01401519775390625, 0.0254364013671875, -0.00316619873046875, -0.050994873046875, 0.023712158203125, 0.0278472900390625, 0.005252838134765625, 0.046905517578125, -0.030120849609375, 0.047393798828125, 0.034423828125, -0.0499267578125, 0.0167388916015625, -0.0064239501953125, 0.0039520263671875, -0.00142669677734375, -0.053466796875, -0.016448974609375, -0.01270294189453125, 0.046417236328125, 0.03839111328125, 0.0092010498046875, -0.0293731689453125, 0.0018463134765625, -0.0003230571746826172, 0.0009427070617675781, -0.030548095703125, -0.0034275054931640625, -0.05169677734375, -0.03973388671875, -0.0230865478515625, -0.0193328857421875, -0.059112548828125, 0.00787353515625, -0.052154541015625, -0.0245819091796875, -0.04315185546875, -0.00760650634765625, -0.01500701904296875, 0.00978851318359375, 0.031341552734375, -0.026702880859375, -0.0032672882080078125, -0.025390625, 0.0049591064453125, -0.0003437995910644531, -0.020660400390625, 0.0131683349609375, -0.0007929801940917969, -0.0071868896484375, 0.03753662109375, 0.0113372802734375, -0.038818359375, -0.0218658447265625, -0.006961822509765625, 0.0191497802734375, 0.0112457275390625, 0.006298065185546875, 0.01399993896484375, -0.01042938232421875, 0.023529052734375, -0.001567840576171875, 0.01080322265625, -0.01788330078125, 0.0257568359375, 0.00998687744140625, -0.0064544677734375, -0.0260009765625, 0.01284027099609375, 0.028533935546875, -0.033843994140625, -0.0006055831909179688, 0.0096893310546875, -0.021881103515625, -0.05419921875, 0.01010894775390625, -0.00563812255859375, 0.0088043212890625, 0.004718780517578125 ]
8ac795003cda4fbd246db3bd0fb3d1d492388a5c
Wordpress Stackexchange Q: xmlrpc_enabled filter not called Since WordPress 3.5, the core developers have decided to keep xml rpc enabled by default and there are no options in the Admin to disable it. This blog post explains how to disable it by modifying the xmlrpc_enabled filter add_filter('xmlrpc_enabled', '__return_false'); But this doesn't seem to work, I still get the following on the generated HTML <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://domain.com/xmlrpc.php?rsd" /> and WordPress still generates the http://example.com/xmlrpc.php?rsd page I'm putting the filter in the functions.php file of my theme. A: To remove the HTML link: remove_action( 'wp_head', 'rsd_link' ); To stop all requests to xmlrpc.php for RSD per XML-RPC: if ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ) exit; This is plugin territory. Never use this code in a theme.
Q: xmlrpc_enabled filter not called Since WordPress 3.5, the core developers have decided to keep xml rpc enabled by default and there are no options in the Admin to disable it. This blog post explains how to disable it by modifying the xmlrpc_enabled filter add_filter('xmlrpc_enabled', '__return_false'); But this doesn't seem to work, I still get the following on the generated HTML <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://domain.com/xmlrpc.php?rsd" /> and WordPress still generates the http://example.com/xmlrpc.php?rsd page I'm putting the filter in the functions.php file of my theme. A: To remove the HTML link: remove_action( 'wp_head', 'rsd_link' ); To stop all requests to xmlrpc.php for RSD per XML-RPC: if ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ) exit; This is plugin territory. Never use this code in a theme.
wordpress
{ "language": "en", "length": 126, "provenance": "stackexchange_00019.jsonl.gz:427573", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78780" }
[ 0.0716552734375, -0.025299072265625, 0.034332275390625, -0.00505828857421875, 0.0032176971435546875, -0.04022216796875, 0.07147216796875, -0.0306549072265625, 0.01305389404296875, 0.006175994873046875, -0.037750244140625, -0.024444580078125, 0.0033054351806640625, -0.0095062255859375, -0.020050048828125, -0.035369873046875, 0.01495361328125, 0.005809783935546875, 0.0103912353515625, -0.02178955078125, -0.004344940185546875, -0.019683837890625, 0.0154571533203125, 0.025909423828125, -0.01058197021484375, -0.010650634765625, 0.11578369140625, -0.036163330078125, 0.024505615234375, -0.00971221923828125, 0.010589599609375, -0.0423583984375, 0.014923095703125, 0.061126708984375, -0.0638427734375, -0.02020263671875, -0.030670166015625, 0.029205322265625, -0.008575439453125, 0.020599365234375, -0.00606536865234375, -0.00820159912109375, 0.002140045166015625, -0.017730712890625, -0.035919189453125, 0.00559234619140625, 0.0057525634765625, -0.008331298828125, 0.0207977294921875, 0.0457763671875, -0.0200347900390625, 0.02703857421875, -0.0294342041015625, -0.023834228515625, 0.018707275390625, -0.0022716522216796875, -0.0611572265625, 0.0179901123046875, 0.009735107421875, 0.0206146240234375, 0.012542724609375, -0.00475311279296875, 0.006023406982421875, 0.0033588409423828125, 0.006305694580078125, 0.01366424560546875, 0.0209197998046875, 0.01505279541015625, 0.00537109375, -0.019073486328125, -0.019989013671875, -0.004894256591796875, 0.006664276123046875, 0.0017690658569335938, -0.0277862548828125, -0.0011425018310546875, 0.01531219482421875, -0.0206146240234375, 0.01491546630859375, -0.0011854171752929688, 0.042694091796875, -0.0027904510498046875, -0.036468505859375, 0.013336181640625, -0.00490570068359375, 0.0184783935546875, 0.0143280029296875, -0.031951904296875, -0.01708984375, -0.01447296142578125, -0.0210113525390625, 0.0165557861328125, -0.003246307373046875, -0.01947021484375, -0.0396728515625, -0.007266998291015625, 0.0019016265869140625, 0.024444580078125, -0.0190887451171875, -0.0010976791381835938, 0.027862548828125, -0.05322265625, 0.028411865234375, -0.026824951171875, -0.03863525390625, 0.030120849609375, 0.049407958984375, 0.06622314453125, 0.01024627685546875, 0.02935791015625, 0.000008344650268554688, 0.012786865234375, 0.0230560302734375, 0.0025615692138671875, 0.017242431640625, -0.031982421875, -0.047210693359375, 0.06097412109375, -0.0032749176025390625, 0.007427215576171875, 0.002384185791015625, 0.01299285888671875, -0.01251220703125, -0.022552490234375, 0.027008056640625, 0.005062103271484375, -0.0207061767578125, 0.0017337799072265625, -0.036102294921875, 0.03125, -0.016571044921875, -0.0014677047729492188, 0.044891357421875, 0.05181884765625, 0.0014715194702148438, -0.012176513671875, 0.054412841796875, 0.00009554624557495117, 0.0189208984375, -0.01514434814453125, 0.0732421875, -0.0089263916015625, -0.048309326171875, 0.051513671875, -0.004276275634765625, -0.01678466796875, 0.017333984375, 0.040130615234375, 0.0161895751953125, 0.013031005859375, -0.0234375, 0.031280517578125, -0.00537109375, 0.015716552734375, 0.03955078125, -0.0179290771484375, 0.02203369140625, -0.0166168212890625, 0.018829345703125, -0.019012451171875, 0.0180511474609375, 0.0038280487060546875, -0.0215301513671875, -0.024078369140625, -0.06353759765625, -0.01273345947265625, 0.0281829833984375, -0.0016164779663085938, 0.0161590576171875, 0.0869140625, -0.00940704345703125, -0.0089111328125, -0.036102294921875, 0.017974853515625, -0.01122283935546875, -0.01493072509765625, 0.0243682861328125, 0.0135040283203125, 0.01316070556640625, 0.011627197265625, -0.031280517578125, -0.051971435546875, 0.09051513671875, -0.05780029296875, -0.08154296875, 0.05615234375, 0.0168914794921875, 0.07537841796875, 0.0185699462890625, -0.005462646484375, 0.07330322265625, 0.01284027099609375, 0.0101165771484375, 0.00684356689453125, 0.0218658447265625, -0.05804443359375, -0.04364013671875, -0.04351806640625, -0.005828857421875, 0.045501708984375, 0.0261077880859375, 0.027130126953125, -0.0022068023681640625, 0.005069732666015625, -0.03692626953125, 0.0208587646484375, -0.017364501953125, 0.034942626953125, 0.013763427734375, 0.01413726806640625, 0.0101470947265625, -0.0013904571533203125, -0.042877197265625, 0.0244293212890625, -0.020965576171875, 0.0186920166015625, -0.0234222412109375, 0.0555419921875, 0.00804901123046875, 0.036468505859375, 0.0229949951171875, -0.03338623046875, 0.02685546875, -0.022003173828125, 0.002056121826171875, 0.001995086669921875, -0.013763427734375, 0.00795745849609375, 0.04931640625, -0.0171356201171875, 0.07464599609375, 0.02862548828125, 0.01200103759765625, 0.031768798828125, -0.036651611328125, -0.0173797607421875, -0.027862548828125, -0.048583984375, 0.0112457275390625, 0.052642822265625, 0.0426025390625, 0.059051513671875, 0.0278472900390625, -0.0013837814331054688, 0.07733154296875, -0.057220458984375, 0.0021514892578125, -0.0194549560546875, 0.0130157470703125, 0.01763916015625, 0.03192138671875, -0.008880615234375, 0.0443115234375, 0.0019817352294921875, 0.0273895263671875, 0.037567138671875, -0.020782470703125, -0.032470703125, 0.024139404296875, -0.0182647705078125, 0.02178955078125, 0.01229095458984375, -0.0162506103515625, 0.0125732421875, 0.003570556640625, 0.0012111663818359375, 0.03564453125, 0.0224609375, -0.0308990478515625, -0.0118408203125, 0.016143798828125, 0.03143310546875, -0.0142669677734375, 0.0241546630859375, 0.045196533203125, 0.0005211830139160156, -0.026519775390625, -0.0014276504516601562, -0.010345458984375, 0.0191650390625, 0.0002014636993408203, 0.033172607421875, -0.0247650146484375, -0.0242462158203125, 0.0062103271484375, -0.04486083984375, -0.0158233642578125, -0.01311492919921875, -0.01010894775390625, 0.008453369140625, 0.019134521484375, 0.034820556640625, 0.0086212158203125, 0.0031414031982421875, 0.00917816162109375, 0.0036830902099609375, -0.06817626953125, -0.03839111328125, 0.0155792236328125, -0.0506591796875, 0.03839111328125, 0.0616455078125, 0.01009368896484375, -0.007350921630859375, 0.004962921142578125, -0.0212554931640625, 0.028106689453125, -0.020782470703125, -0.036773681640625, 0.034088134765625, -0.1309814453125, -0.040740966796875, 0.002582550048828125, -0.0777587890625, 0.0015058517456054688, -0.023681640625, -0.024444580078125, -0.034759521484375, -0.09576416015625, -0.0272064208984375, 0.025787353515625, -0.0286712646484375, -0.026336669921875, 0.005481719970703125, -0.018798828125, -0.00023472309112548828, 0.007801055908203125, -0.005069732666015625, 0.005794525146484375, -0.017425537109375, -0.07684326171875, -0.0533447265625, -0.0721435546875, 0.0025424957275390625, -0.01168060302734375, 0.0253143310546875, 0.00507354736328125, 0.056060791015625, -0.00746917724609375, -0.06640625, -0.00988006591796875, -0.0302581787109375, -0.020233154296875, 0.0223541259765625, 0.02239990234375, -0.051971435546875, 0.01947021484375, -0.024139404296875, 0.022674560546875, 0.0312347412109375, -0.0114288330078125, 0.00556182861328125, 0.0206298828125, 0.01947021484375, 0.006206512451171875, 0.031524658203125, -0.011871337890625, -0.01323699951171875, -0.017059326171875, -0.057769775390625, 0.0003573894500732422, -0.04071044921875, -0.04327392578125, 0.00896453857421875, 0.03369140625, -0.005733489990234375, -0.019622802734375, 0.01849365234375, -0.004611968994140625, 0.006397247314453125, 0.00838470458984375, -0.032562255859375, 0.030609130859375, 0.00848388671875, 0.0019311904907226562, -0.001186370849609375, 0.04681396484375, -0.0170745849609375, -0.0279388427734375, 0.0007662773132324219, -0.01421356201171875, -0.0165863037109375, -0.0172119140625, -0.04766845703125, -0.0126495361328125, 0.03643798828125, -0.03924560546875, -0.037384033203125, -0.006496429443359375, -0.009063720703125, -0.00701904296875, 0.043426513671875, -0.01068878173828125, -0.02764892578125, -0.0165252685546875, 0.01568603515625, -0.0092926025390625, -0.040283203125, 0.01551055908203125, -0.0178985595703125, -0.02197265625, 0.005153656005859375, -0.006725311279296875, -0.00579071044921875, 0.00388336181640625, -0.0626220703125, 0.001354217529296875, -0.0364990234375, 0.03631591796875, -0.03289794921875, 0.0034637451171875, 0.0216064453125, -0.0279541015625, 0.0004010200500488281, -0.0264739990234375, -0.01983642578125, -0.113037109375, -0.01666259765625, -0.021087646484375, 0.0692138671875, 0.0179443359375, -0.053863525390625, -0.0263519287109375, 0.035400390625, 0.003894805908203125, -0.0477294921875, 0.004543304443359375, -0.015472412109375, -0.00580596923828125, 0.0582275390625, -0.00901031494140625, 0.01274871826171875, 0.01293182373046875, 0.045806884765625, -0.0223388671875, 0.01519012451171875, -0.0203094482421875, -0.0623779296875, 0.035003662109375, -0.0665283203125, -0.056427001953125, -0.058685302734375, -0.067138671875, -0.01226806640625, -0.0202178955078125, -0.0092315673828125, -0.06378173828125, -0.07177734375, 0.00774383544921875, -0.0623779296875, -0.0191497802734375, 0.0203857421875, 0.078369140625, 0.0197601318359375, 0.0136871337890625, -0.03265380859375, -0.0014162063598632812, -0.007083892822265625, 0.003582000732421875, 0.04290771484375, -0.0212249755859375, -0.0029659271240234375, 0.06793212890625, -0.042938232421875, 0.039154052734375, -0.0270538330078125, 0.0374755859375, -0.0264892578125, -0.05645751953125, 0.0672607421875, -0.01293182373046875, -0.030975341796875, 0.0008792877197265625, -0.006908416748046875, -0.014801025390625, 0.038330078125, 0.0240631103515625, -0.0246429443359375, 0.01300048828125, -0.0204925537109375, 0.0003304481506347656, 0.0033397674560546875, -0.004917144775390625, 0.0189361572265625, 0.03961181640625, -0.003520965576171875, -0.00504302978515625, 0.003997802734375, 0.033203125, -0.0229644775390625, 0.037078857421875, -0.0662841796875, 0.05145263671875, -0.01702880859375, -0.01302337646484375, -0.006656646728515625, 0.0144195556640625, -0.047882080078125, 0.01263427734375, -0.0121917724609375, -0.0205078125, 0.0266265869140625, -0.0227813720703125, -0.00527191162109375, -0.0208740234375, 0.019073486328125, 0.01174163818359375, -0.01434326171875, 0.00374603271484375, -0.003734588623046875, -0.0063018798828125, -0.02294921875, 0.0261993408203125, 0.00855255126953125, 0.002956390380859375, 0.006694793701171875, 0.0428466796875, -0.027923583984375, 0.03521728515625, -0.0027217864990234375, 0.0257720947265625, 0.0311737060546875, 0.01473236083984375, 0.029876708984375, 0.00469207763671875, -0.03369140625, 0.00691986083984375, -0.0220489501953125, -0.0335693359375, -0.04510498046875, 0.033782958984375, 0.032562255859375, 0.01337432861328125, 0.0189208984375, -0.0093994140625, 0.034759521484375, -0.004001617431640625, 0.037139892578125, 0.002880096435546875, -0.04534912109375, -0.045318603515625, -0.011199951171875, 0.038543701171875, -0.0242919921875, -0.0112457275390625, 0.0179595947265625, -0.0005216598510742188, -0.00030159950256347656, 0.0014390945434570312, -0.045013427734375, -0.01125335693359375, 0.0062713623046875, 0.006397247314453125, -0.051239013671875, -0.01212310791015625, -0.007049560546875, 0.0535888671875, -0.05328369140625, -0.007251739501953125, 0.04791259765625, -0.02325439453125, 0.04119873046875, -0.0160980224609375, -0.0075531005859375, 0.0016031265258789062, 0.00800323486328125, 0.046295166015625, 0.0263214111328125, -0.06573486328125, -0.0185394287109375, -0.07275390625, -0.027679443359375, -0.02166748046875, -0.0186767578125, -0.036651611328125, 0.0092926025390625, -0.0232086181640625, 0.0006909370422363281, -0.041534423828125, -0.0112762451171875, -0.030731201171875, 0.03997802734375, 0.0158843994140625, 0.0131683349609375, -0.01715087890625, 0.052276611328125, -0.017791748046875, 0.0531005859375, -0.005565643310546875, 0.03021240234375, 0.0007448196411132812, -0.02685546875, 0.0183868408203125, -0.048828125, -0.0679931640625, -0.01143646240234375, -0.0684814453125, 0.03216552734375, 0.05926513671875, -0.033294677734375, 0.056671142578125, -0.026885986328125, -0.0011739730834960938, -0.01093292236328125, -0.01204681396484375, -0.048004150390625, 0.01251220703125, 0.0380859375, 0.004001617431640625, 0.00447845458984375, -0.0191192626953125, -0.0132293701171875, 0.0171356201171875, 0.00978851318359375, -0.007534027099609375, 0.0011301040649414062, 0.03546142578125, 0.0290985107421875, 0.0157318115234375, -0.00565338134765625, 0.0199432373046875, 0.037445068359375, 0.00891876220703125, -0.05706787109375, -0.0015411376953125, -0.01316070556640625, 0.0038814544677734375, 0.001056671142578125, -0.01543426513671875, 0.0143585205078125, -0.00952911376953125, -0.0127716064453125, 0.0138397216796875, 0.0699462890625, 0.0765380859375, -0.08734130859375, -0.00836944580078125, 0.01174163818359375, -0.023193359375, 0.034515380859375, 0.0269012451171875, -0.0199127197265625, -0.036712646484375, 0.00969696044921875, -0.0367431640625, -0.006999969482421875, 0.00394439697265625, -0.0017557144165039062, -0.006366729736328125, -0.00539398193359375, 0.04638671875, 0.019012451171875, 0.0266265869140625, 0.00438690185546875, -0.0295257568359375, 0.0369873046875, -0.032257080078125, -0.00010186433792114258, -0.005168914794921875, -0.0137786865234375, -0.0858154296875, -0.0297088623046875, -0.0197296142578125, -0.0034809112548828125, 0.048675537109375, -0.01186370849609375, 0.050140380859375, 0.073486328125, -0.0169677734375, 0.03466796875, 0.039581298828125, 0.003124237060546875, -0.0041656494140625, -0.0657958984375, 0.0054931640625, 0.036712646484375, -0.01947021484375, 0.034393310546875, 0.031494140625, -0.07171630859375, 0.016876220703125, 0.0276641845703125, 0.0276641845703125, 0.01251220703125, -0.034210205078125, 0.050506591796875, -0.01045989990234375, -0.0305938720703125, -0.0221405029296875, 0.03509521484375, -0.030487060546875, -0.0167694091796875, -0.0190277099609375, -0.0295257568359375, 0.002593994140625, -0.0286102294921875, -0.045013427734375, 0.09375, -0.026153564453125, 0.0277099609375, 0.0022144317626953125, 0.042144775390625, -0.00797271728515625, 0.0275421142578125, -0.009796142578125, 0.01073455810546875, 0.005809783935546875, 0.0036907196044921875, -0.0232086181640625, -0.00988006591796875, -0.0270233154296875, 0.039520263671875, 0.04425048828125, 0.0145721435546875, -0.06451416015625, 0.014404296875, 0.041839599609375, 0.0079803466796875, -0.01165771484375, 0.0662841796875, -0.01904296875, 0.0251312255859375, -0.019287109375, -0.08782958984375, -0.006565093994140625, -0.050262451171875, -0.00954437255859375, -0.004230499267578125, -0.01070404052734375, -0.015625, 0.01288604736328125, 0.005863189697265625, -0.042694091796875, -0.002643585205078125, 0.0275421142578125, -0.0469970703125, -0.01605224609375, -0.024139404296875, -0.047821044921875, -0.051116943359375, -0.0220184326171875, -0.023040771484375, -0.005359649658203125, -0.014251708984375, 0.01032257080078125, 0.06494140625, 0.0167236328125, 0.01526641845703125, -0.034393310546875, 0.0052490234375, -0.027801513671875, -0.0135498046875, 0.01012420654296875, 0.0007658004760742188, 0.03265380859375, -0.01349639892578125, 0.0005979537963867188, -0.01715087890625, -0.00472259521484375, -0.007747650146484375, -0.029449462890625, 0.0157470703125, -0.01204681396484375, 0.022552490234375, 0.0067901611328125, 0.0391845703125, -0.0379638671875, -0.024810791015625, -0.02301025390625, -0.0005435943603515625, 0.026885986328125, 0.029296875, -0.004871368408203125, 0.035797119140625, -0.04766845703125, -0.020721435546875, 0.034942626953125, -0.0701904296875, -0.018341064453125, 0.0259857177734375, 0.03375244140625, -0.0005373954772949219, -0.054351806640625, -0.0042877197265625, 0.007236480712890625, 0.038909912109375, -0.0016145706176757812, -0.01123046875, -0.029510498046875, -0.0577392578125, -0.005542755126953125, 0.0238037109375, 0.0159149169921875, 0.0217132568359375, 0.0504150390625, -0.01483917236328125, -0.0626220703125, 0.0013885498046875, -0.0083770751953125, -0.043731689453125, -0.0198822021484375, -0.0282745361328125, -0.024505615234375, 0.013427734375, 0.005252838134765625, 0.01290130615234375, -0.00672149658203125, 0.033905029296875, -0.005832672119140625, -0.01165771484375, 0.007080078125, -0.03466796875, -0.024261474609375, 0.003917694091796875, -0.0057220458984375, 0.0181121826171875, -0.04742431640625, -0.01375579833984375, -0.004817962646484375, -0.0299072265625, 0.0011606216430664062, 0.027496337890625, -0.0282745361328125, 0.035125732421875, -0.0167083740234375, 0.02655029296875, -0.0216522216796875, -0.020843505859375, -0.015869140625, -0.00782012939453125, 0.0290069580078125, 0.0007176399230957031, 0.02032470703125, 0.00942230224609375, 0.0020198822021484375, 0.0296783447265625, 0.00432586669921875, 0.124755859375, -0.057220458984375, -0.006145477294921875, 0.031219482421875, -0.038848876953125, 0.050933837890625, 0.0211334228515625, -0.0239105224609375, 0.0012845993041992188, 0.021392822265625, -0.020599365234375, -0.043914794921875, 0.0208740234375, 0.0205230712890625, -0.00946807861328125, 0.036865234375, -0.0101165771484375, 0.01233673095703125, -0.0164794921875, 0.08990478515625, -0.0088043212890625, -0.0614013671875, -0.07647705078125, 0.0015535354614257812, 0.04638671875, 0.07513427734375, -0.00983428955078125, 0.03985595703125, 0.018890380859375, 0.0203704833984375, 0.0078125, 0.007671356201171875, 0.0126495361328125, 0.0244140625, -0.0258636474609375, 0.00592041015625, 0.015655517578125, -0.017669677734375, 0.016998291015625, -0.006603240966796875, 0.0287933349609375, 0.0213623046875, -0.03839111328125, -0.040618896484375, -0.0276336669921875, -0.003849029541015625, -0.03759765625, -0.02020263671875, -0.000823974609375, -0.00965118408203125, -0.02490234375, 0.0292510986328125, -0.01136016845703125, -0.002521514892578125, -0.027130126953125, -0.014373779296875, -0.0004978179931640625, -0.06524658203125, -0.00323486328125, 0.00817108154296875, 0.038238525390625, 0.0191192626953125, -0.061004638671875, 0.035888671875, -0.01287078857421875, 0.0239105224609375, 0.0106353759765625, -0.0134124755859375, 0.011505126953125, 0.0364990234375, -0.005126953125, -0.0276031494140625, -0.0119781494140625, 0.026397705078125, -0.02435302734375, -0.03326416015625, 0.003627777099609375, -0.0011749267578125, -0.01593017578125, -0.04595947265625, -0.0180206298828125, -0.01641845703125, 0.02197265625, -0.0265655517578125, -0.0109100341796875, -0.016204833984375, -0.00867462158203125, -0.0115966796875, 0.0270233154296875, -0.0855712890625, -0.047454833984375, -0.078857421875, 0.044158935546875, 0.0237579345703125, -0.0404052734375, -0.05609130859375, 0.02001953125, -0.03240966796875, -0.01282501220703125, -0.036865234375, -0.0085906982421875, 0.0111083984375, 0.009185791015625, -0.0177459716796875, -0.01377105712890625, -0.054779052734375, 0.02252197265625, 0.01503753662109375, 0.0083160400390625, 0.00972747802734375, 0.0133056640625, -0.0266876220703125, 0.041717529296875, 0.0262908935546875, -0.006107330322265625, -0.04571533203125, 0.014495849609375, 0.016571044921875, 0.029510498046875, -0.01323699951171875, 0.057464599609375, 0.0372314453125, 0.026580810546875, -0.0129547119140625, 0.0013742446899414062, -0.03656005859375, -0.024200439453125, 0.06439208984375, 0.04254150390625, 0.0183258056640625, -0.0165557861328125, 0.00638580322265625, -0.0310211181640625, -0.01554107666015625, -0.0134124755859375, 0.0142974853515625, -0.06365966796875, -0.0166015625, 0.041412353515625, -0.00787353515625, -0.00839996337890625, -0.0009765625, -0.040679931640625, -0.01161956787109375, -0.0212249755859375, -0.0105438232421875, -0.039886474609375, 0.006320953369140625, -0.024810791015625, -0.01145172119140625, -0.005802154541015625, -0.055572509765625, 0.01256561279296875, -0.029449462890625, -0.060638427734375, -0.0115966796875, 0.03863525390625, -0.035888671875, 0.0087738037109375, 0.01529693603515625, -0.0017671585083007812, -0.0229949951171875, 0.022796630859375, -0.004306793212890625, -0.010589599609375, 0.0029087066650390625, -0.01204681396484375, -0.012664794921875, -0.0236053466796875, -0.026947021484375, 0.0419921875, 0.006175994873046875, -0.010772705078125, -0.021270751953125, 0.0287628173828125, -0.0005893707275390625, -0.01209259033203125, 0.00039124488830566406, 0.0261993408203125, 0.01270294189453125, 0.0128631591796875, -0.00270843505859375, -0.0262603759765625, 0.0130462646484375, -0.068603515625, -0.0006990432739257812, -0.00004982948303222656 ]
74df79d02d0f0052af82963b56112bcc20490ef0
Wordpress Stackexchange Q: Is there a limit to hook priority? When I wish my filter or action hook to override all others, I will assign it a priority of 999. However, lately I have been seeing some people use extreme values for the priority, such as 20000, and even 99999 Besides the fact that using priorities this high is ridiculous, will they actually work? Is there a limit to hook priority? What will happen if the limit is exceeded? Is there a performance difference when using extreme priorities? Update: @harke suggests on Stack Overflow that the number is limited by PHP_INT_MAX A: It's an integer, so on a 32-bit PHP system it will be limited to -2147483648 to 2147483647, and on 64-bit PHP it will be limited to -9223372036854775808 to 9223372036854775807. Edit: no performance penalty, it's an integer. But... seriously? :)
Q: Is there a limit to hook priority? When I wish my filter or action hook to override all others, I will assign it a priority of 999. However, lately I have been seeing some people use extreme values for the priority, such as 20000, and even 99999 Besides the fact that using priorities this high is ridiculous, will they actually work? Is there a limit to hook priority? What will happen if the limit is exceeded? Is there a performance difference when using extreme priorities? Update: @harke suggests on Stack Overflow that the number is limited by PHP_INT_MAX A: It's an integer, so on a 32-bit PHP system it will be limited to -2147483648 to 2147483647, and on 64-bit PHP it will be limited to -9223372036854775808 to 9223372036854775807. Edit: no performance penalty, it's an integer. But... seriously? :) A: @shea - WordPress actions work exactly the OPPOSITE way you assumed. A higher priority figure will NOT override others, and usage of PHP_INT_MAX is NOT some "extreme" attempt to force this action/filter to run before any others. To put your action/filter at the TOP of the execution sequence, you'd need to use a priority of at least 0, or better: PHP_INT_MIN. PHP_INT_MAX is simply at the opposite end; it's used when you want your action/filter to run AFTER all other (normal priority) hooks have completed. A: There are no limits and no performance penalties. To understand why, you need to understand how all hooks are stored in the WP ecosystem. First of all you need to understand where all hooks are stored and how they do it. All hooks for filters and actions are stored in global variable called wp_filter, yes yes action hooks are stored in this variable too. This variable is associated array, where key is the name of action or filter and value is another associative array. For example let's take a look at 'init' action, at this stage we will see following structure: $wp_filter = array( 'init' => array(...), ); This sub array has numeric keys and values as arrays. Numeric keys are our priorities. Arrays, associated with numeric keys, contain a list of hooks with the same priority. So if we call add_action( 'init', 'wpse8170_my_first_init', 20 ), then call add_action( 'init', 'wpse8170_my_second_init', 20 ) and finally call add_action( 'init', 'wpse8170_my_third_init', 10 ), our example will look like: $wp_filter = array( 'init' => array( 20 => array( 'wpse8170_my_first_init' => array( 'accepted_args' => 1, // the number of accepted arguments by your hook 'function' => 'wpse8170_my_first_init', // callback function ), 'wpse8170_my_second_init' => array(...), ), 10 => array( 'wpse8170_my_third_init' => array(...), ), ), ); Now when init action is triggered all hooks will be sorted with usage of ksort function and our array looks now: array( 10 => array( 'wpse8170_my_third_init' => array(...), ), 20 => array( 'wpse8170_my_first_init' => array( 'accepted_args' => 1, // the number of accepted arguments by your hook 'function' => 'wpse8170_my_first_init', // callback function ), 'wpse8170_my_second_init' => array(...), ), ), And all hooks will be executed in this queue: first 'wpse8170_my_third_init', then 'wpse8170_my_first_init' and finally 'wpse8170_my_second_init'. So you can see that there is no limits and penalties and you can use any value which is acceptable as a key for associated array by your PHP environment. A: No limit and there is no performance penalty. From inspecting the code you can even use strings as priorities although I wouldn't recommend doing that ;) If your action has to be last then you can inspect the assigned pririties by looking at the indexes of the global $wp_actions[your hook] when your action is called, and add it again with higher priority if needed, but I fail to see a reason for actually doing this kind of things. A: There is "practically" no limit as hooks are actually stored as arrays and the priority is the numerical index. But, in reality, the array size will be limited by the amount of memory allocated for the execution of the script. So, I guess setting a ridiculously big priority number - which just translates to a numerical index in the array where the hooked functions are stored - shouldn't crash wordpress.
wordpress
{ "language": "en", "length": 691, "provenance": "stackexchange_00019.jsonl.gz:427585", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78829" }
[ 0.06890869140625, -0.0015611648559570312, -0.003116607666015625, -0.047576904296875, 0.0221405029296875, -0.03228759765625, 0.0404052734375, 0.005496978759765625, 0.0158538818359375, 0.033843994140625, -0.0082855224609375, -0.002162933349609375, 0.030517578125, -0.0240020751953125, -0.0168304443359375, -0.00679779052734375, 0.002628326416015625, -0.01160430908203125, 0.004718780517578125, -0.0281829833984375, 0.0189971923828125, -0.0261077880859375, 0.0177459716796875, 0.06524658203125, 0.020111083984375, -0.060943603515625, 0.0154571533203125, -0.034149169921875, -0.0159149169921875, -0.03228759765625, 0.0012836456298828125, 0.05859375, 0.0178070068359375, 0.0178985595703125, -0.0445556640625, -0.040618896484375, 0.006778717041015625, -0.005580902099609375, -0.03076171875, 0.053314208984375, 0.039031982421875, -0.0040130615234375, -0.042510986328125, 0.01369476318359375, -0.04266357421875, -0.04949951171875, 0.0372314453125, 0.0005440711975097656, 0.03448486328125, -0.046234130859375, 0.025360107421875, 0.0309295654296875, 0.0242462158203125, 0.006580352783203125, -0.025390625, 0.0295867919921875, -0.0194091796875, 0.035400390625, 0.027557373046875, 0.01491546630859375, -0.0076141357421875, 0.015533447265625, -0.0026226043701171875, -0.032867431640625, 0.040252685546875, -0.0197296142578125, -0.0026721954345703125, 0.032745361328125, 0.0380859375, 0.05303955078125, 0.01242828369140625, -0.0018529891967773438, -0.024444580078125, 0.0011997222900390625, -0.022308349609375, -0.0031719207763671875, 0.01580810546875, -0.00733184814453125, 0.018035888671875, 0.0009708404541015625, 0.0018415451049804688, -0.05780029296875, 0.001903533935546875, 0.033050537109375, -0.0408935546875, 0.0299072265625, -0.00612640380859375, -0.00341033935546875, 0.00615692138671875, -0.021392822265625, -0.0058746337890625, 0.018768310546875, -0.005611419677734375, 0.01390838623046875, -0.0223541259765625, -0.030242919921875, 0.003986358642578125, -0.0227508544921875, 0.0162353515625, 0.012451171875, 0.01364898681640625, -0.049896240234375, 0.036376953125, -0.0110626220703125, -0.02569580078125, -0.01354217529296875, 0.0231475830078125, 0.040313720703125, -0.0176239013671875, 0.03045654296875, -0.042877197265625, -0.01442718505859375, -0.0125885009765625, 0.0222320556640625, -0.019317626953125, -0.049468994140625, -0.08343505859375, 0.0269012451171875, -0.026275634765625, 0.0018148422241210938, -0.00885009765625, 0.01064300537109375, 0.01357269287109375, -0.0247344970703125, -0.0023345947265625, -0.0086212158203125, -0.0214691162109375, -0.0245819091796875, -0.004459381103515625, 0.0667724609375, 0.01235198974609375, -0.0124359130859375, -0.07452392578125, -0.0280609130859375, -0.04681396484375, -0.007648468017578125, 0.007617950439453125, -0.0070648193359375, -0.020965576171875, 0.0285491943359375, -0.032440185546875, -0.041412353515625, 0.013946533203125, -0.0182952880859375, 0.0020389556884765625, -0.0066986083984375, 0.00647735595703125, 0.02484130859375, 0.00833892822265625, 0.011688232421875, -0.0055999755859375, -0.020660400390625, 0.029388427734375, -0.0121917724609375, -0.0214691162109375, -0.01019287109375, 0.030029296875, -0.0214996337890625, -0.039031982421875, -0.048675537109375, 0.0030498504638671875, -0.038787841796875, -0.00933837890625, -0.07562255859375, -0.07733154296875, 0.0262451171875, -0.035491943359375, -0.00323486328125, 0.0020427703857421875, -0.01065826416015625, -0.00417327880859375, 0.046600341796875, -0.0255279541015625, -0.007511138916015625, 0.0027713775634765625, -0.0214080810546875, 0.009246826171875, 0.04400634765625, 0.0284423828125, -0.018798828125, -0.035736083984375, -0.051483154296875, 0.0433349609375, -0.0266571044921875, -0.04742431640625, 0.01557159423828125, 0.018646240234375, 0.05548095703125, 0.0061492919921875, 0.01299285888671875, 0.0609130859375, 0.00016415119171142578, -0.0224761962890625, -0.005916595458984375, -0.006633758544921875, -0.0310516357421875, 0.028778076171875, -0.00843048095703125, 0.00616455078125, 0.01678466796875, 0.052703857421875, -0.002185821533203125, 0.01861572265625, -0.0440673828125, -0.042999267578125, -0.0101165771484375, -0.0203399658203125, 0.0382080078125, 0.03326416015625, 0.0169830322265625, -0.01328277587890625, -0.00726318359375, -0.0225830078125, 0.02984619140625, -0.00392913818359375, 0.03619384765625, -0.0271148681640625, 0.038970947265625, 0.00970458984375, 0.0440673828125, 0.0024776458740234375, -0.0299072265625, -0.01629638671875, -0.0252532958984375, 0.0260162353515625, -0.005329132080078125, 0.0032634735107421875, -0.00027179718017578125, 0.016357421875, 0.039398193359375, -0.043304443359375, -0.0226287841796875, -0.004962921142578125, 0.043731689453125, 0.0179595947265625, -0.009979248046875, -0.017608642578125, -0.09930419921875, 0.017364501953125, 0.043243408203125, 0.0289764404296875, 0.025726318359375, -0.00664520263671875, 0.035369873046875, -0.0027370452880859375, -0.05426025390625, 0.01284027099609375, -0.0015401840209960938, 0.017822265625, 0.00482940673828125, -0.0269775390625, -0.0212860107421875, 0.033111572265625, -0.0276336669921875, 0.0220489501953125, 0.03424072265625, 0.0197296142578125, 0.0017576217651367188, -0.0511474609375, 0.018402099609375, 0.01204681396484375, -0.03118896484375, -0.060394287109375, 0.01247406005859375, 0.0027751922607421875, -0.0150604248046875, 0.025115966796875, 0.0160064697265625, 0.013336181640625, -0.03546142578125, 0.00814056396484375, -0.014373779296875, 0.005161285400390625, -0.036102294921875, -0.034515380859375, -0.036163330078125, 0.01025390625, 0.031402587890625, -0.01263427734375, -0.061981201171875, -0.0133056640625, 0.0228424072265625, 0.024505615234375, -0.007572174072265625, -0.006702423095703125, -0.004108428955078125, 0.0087738037109375, -0.020721435546875, 0.0117950439453125, -0.0009870529174804688, 0.00884246826171875, 0.006961822509765625, -0.0253143310546875, 0.0301361083984375, 0.01299285888671875, -0.0343017578125, 0.004886627197265625, -0.05975341796875, 0.062103271484375, -0.05126953125, 0.008270263671875, 0.06707763671875, -0.0179595947265625, 0.02728271484375, 0.007720947265625, -0.01280975341796875, 0.0179901123046875, 0.0026226043701171875, 0.000545501708984375, 0.011505126953125, -0.020233154296875, 0.042999267578125, 0.042938232421875, 0.055877685546875, -0.0003616809844970703, -0.01160430908203125, -0.015380859375, 0.048187255859375, -0.0386962890625, -0.037506103515625, 0.05389404296875, 0.033294677734375, 0.034423828125, 0.004856109619140625, 0.01904296875, -0.05267333984375, 0.0015401840209960938, -0.0124969482421875, -0.074951171875, -0.00908660888671875, 0.028961181640625, -0.028594970703125, -0.003917694091796875, 0.019561767578125, 0.01366424560546875, 0.02105712890625, -0.005252838134765625, 0.1009521484375, -0.019500732421875, -0.107666015625, -0.05474853515625, -0.0248870849609375, -0.0263671875, 0.0171661376953125, 0.0005311965942382812, -0.0196075439453125, 0.0016546249389648438, -0.00731658935546875, -0.039154052734375, 0.0194244384765625, -0.013397216796875, -0.014556884765625, -0.0298004150390625, -0.0086822509765625, -0.0156707763671875, 0.10357666015625, 0.03765869140625, -0.027587890625, 0.033447265625, -0.056488037109375, -0.015228271484375, 0.005367279052734375, -0.037841796875, 0.00797271728515625, 0.0191497802734375, -0.0110626220703125, 0.0123291015625, -0.00543975830078125, -0.031402587890625, -0.002666473388671875, -0.036346435546875, -0.0234375, 0.017333984375, -0.01751708984375, -0.01318359375, 0.033111572265625, 0.01088714599609375, -0.0140228271484375, 0.041656494140625, 0.0086212158203125, 0.0186004638671875, 0.0007443428039550781, 0.0237579345703125, -0.028564453125, -0.05810546875, 0.035308837890625, -0.032196044921875, -0.0016698837280273438, -0.033935546875, -0.001071929931640625, -0.0051116943359375, 0.0787353515625, -0.0408935546875, -0.039825439453125, -0.03253173828125, 0.028900146484375, -0.0232086181640625, -0.062347412109375, 0.04876708984375, -0.01143646240234375, -0.07818603515625, 0.038848876953125, 0.01953125, -0.0191802978515625, -0.004802703857421875, -0.021270751953125, -0.03131103515625, -0.0287628173828125, 0.030517578125, -0.027740478515625, 0.01398468017578125, 0.0076141357421875, -0.00852203369140625, 0.00978851318359375, -0.039520263671875, -0.0325927734375, -0.062469482421875, -0.0254364013671875, -0.0418701171875, 0.056549072265625, 0.0163421630859375, 0.00775146484375, -0.01190948486328125, 0.037750244140625, -0.01708984375, 0.055572509765625, -0.01763916015625, 0.0117034912109375, -0.02191162109375, -0.0224151611328125, 0.0031604766845703125, -0.01959228515625, -0.0017423629760742188, -0.028656005859375, -0.03326416015625, -0.00916290283203125, -0.02117919921875, 0.0010585784912109375, -0.0037517547607421875, -0.02386474609375, -0.1109619140625, -0.04986572265625, -0.039154052734375, 0.0013828277587890625, -0.016876220703125, -0.00594329833984375, -0.041595458984375, -0.1268310546875, 0.03240966796875, -0.0054168701171875, 0.001865386962890625, -0.00255584716796875, 0.0811767578125, 0.0211181640625, -0.01026153564453125, -0.0189361572265625, -0.0091094970703125, 0.005069732666015625, -0.00286865234375, 0.0028858184814453125, -0.04974365234375, -0.03125, 0.0789794921875, -0.02972412109375, 0.0187225341796875, -0.0187835693359375, 0.0211181640625, 0.01322174072265625, 0.00839996337890625, 0.01006317138671875, 0.036529541015625, -0.00998687744140625, -0.011077880859375, -0.0191802978515625, -0.022125244140625, -0.01184844970703125, 0.0557861328125, -0.01605224609375, 0.064453125, -0.0287628173828125, 0.0031337738037109375, -0.00296783447265625, -0.01267242431640625, 0.000522613525390625, 0.026519775390625, 0.004657745361328125, -0.029449462890625, 0.0055084228515625, 0.03656005859375, 0.043853759765625, 0.04119873046875, -0.01554107666015625, 0.048583984375, 0.0489501953125, 0.017608642578125, 0.01319122314453125, 0.0013513565063476562, 0.03369140625, -0.025634765625, -0.0372314453125, -0.0733642578125, 0.00800323486328125, 0.006359100341796875, 0.0210418701171875, -0.067138671875, -0.012176513671875, 0.040008544921875, -0.032196044921875, 0.021270751953125, -0.033233642578125, 0.007843017578125, -0.0249176025390625, 0.04193115234375, 0.0185089111328125, -0.03466796875, 0.003108978271484375, -0.0283660888671875, 0.0244293212890625, -0.05596923828125, 0.006809234619140625, 0.038238525390625, 0.071044921875, -0.043426513671875, 0.000762939453125, 0.0634765625, -0.012451171875, -0.0474853515625, 0.030548095703125, -0.005985260009765625, -0.053070068359375, -0.001323699951171875, 0.006160736083984375, 0.00820159912109375, 0.058990478515625, -0.00586700439453125, 0.0206146240234375, -0.015838623046875, 0.052734375, 0.010345458984375, -0.031890869140625, -0.0302581787109375, -0.04412841796875, 0.0207061767578125, -0.0166473388671875, -0.0102691650390625, -0.0021209716796875, -0.0069732666015625, 0.034423828125, 0.0026187896728515625, -0.01242828369140625, 0.0207672119140625, 0.0140380859375, -0.00958251953125, 0.00022017955780029297, 0.0004477500915527344, -0.094482421875, -0.034820556640625, -0.00612640380859375, -0.00638580322265625, 0.0535888671875, -0.00487518310546875, 0.047607421875, -0.0016489028930664062, -0.047882080078125, 0.016571044921875, 0.033966064453125, -0.01384735107421875, -0.0175628662109375, 0.00960540771484375, -0.0177154541015625, -0.02557373046875, -0.01215362548828125, 0.04150390625, 0.01520538330078125, -0.01580810546875, -0.0234222412109375, -0.00560760498046875, 0.0274658203125, 0.00756072998046875, 0.041168212890625, -0.007793426513671875, 0.01303863525390625, -0.020904541015625, 0.05609130859375, -0.0784912109375, 0.0017147064208984375, 0.0543212890625, -0.037841796875, -0.037506103515625, -0.0211639404296875, 0.069091796875, 0.00591278076171875, 0.0038585662841796875, -0.01155853271484375, -0.00833892822265625, 0.034576416015625, -0.0268096923828125, -0.04779052734375, 0.0039043426513671875, -0.01404571533203125, 0.058685302734375, -0.025482177734375, 0.01137542724609375, -0.00943756103515625, 0.00030422210693359375, -0.070556640625, 0.0196533203125, 0.01285552978515625, 0.003307342529296875, 0.0343017578125, -0.01256561279296875, 0.0089569091796875, 0.00787353515625, -0.019012451171875, 0.017303466796875, 0.004306793212890625, 0.0477294921875, -0.0208587646484375, -0.0401611328125, -0.031890869140625, 0.0169525146484375, 0.00823211669921875, 0.03570556640625, 0.0208892822265625, 0.043701171875, 0.005558013916015625, -0.0634765625, -0.004222869873046875, 0.0104522705078125, 0.01445770263671875, -0.014801025390625, -0.00411224365234375, -0.007350921630859375, 0.043060302734375, 0.03912353515625, -0.060699462890625, -0.026214599609375, -0.014862060546875, -0.038665771484375, -0.0168304443359375, 0.007167816162109375, 0.012603759765625, -0.006839752197265625, 0.032257080078125, 0.01430511474609375, 0.0032215118408203125, 0.01319122314453125, -0.0022220611572265625, -0.0123748779296875, -0.0263824462890625, -0.00341033935546875, -0.00528717041015625, 0.032806396484375, -0.033935546875, -0.0140838623046875, -0.00835418701171875, 0.041839599609375, 0.014404296875, 0.0211334228515625, -0.07611083984375, -0.051971435546875, -0.04150390625, -0.0033092498779296875, -0.09649658203125, 0.020477294921875, -0.045135498046875, 0.05126953125, 0.01262664794921875, -0.01045989990234375, 0.00946807861328125, -0.015655517578125, -0.006000518798828125, -0.002048492431640625, -0.01544952392578125, 0.0295867919921875, -0.00789642333984375, -0.0047149658203125, 0.022308349609375, -0.0174407958984375, -0.035400390625, 0.00275421142578125, -0.00861358642578125, 0.04083251953125, -0.00849151611328125, -0.034515380859375, 0.0282745361328125, -0.01239013671875, -0.0178375244140625, 0.0267333984375, 0.01200103759765625, -0.00567626953125, -0.019989013671875, 0.0213165283203125, -0.036834716796875, -0.021453857421875, 0.0197906494140625, -0.02032470703125, 0.04766845703125, 0.026092529296875, -0.026824951171875, -0.024169921875, 0.038421630859375, -0.01221466064453125, 0.0248260498046875, -0.0355224609375, 0.04345703125, 0.0207366943359375, 0.032684326171875, 0.0092620849609375, 0.0276641845703125, 0.0183258056640625, -0.03485107421875, -0.00225067138671875, 0.0046539306640625, -0.0222015380859375, -0.0179290771484375, -0.0011034011840820312, -0.0240325927734375, -0.0204010009765625, 0.058685302734375, -0.0094757080078125, -0.00437164306640625, -0.0002486705780029297, -0.004482269287109375, 0.03228759765625, -0.052337646484375, -0.02020263671875, 0.006977081298828125, 0.0119171142578125, 0.0105133056640625, 0.01276397705078125, 0.05462646484375, -0.054779052734375, 0.01065826416015625, 0.06451416015625, -0.03826904296875, -0.002300262451171875, 0.01403045654296875, 0.03533935546875, -0.02728271484375, -0.03515625, -0.00365447998046875, 0.037017822265625, 0.026275634765625, 0.010528564453125, 0.01361846923828125, 0.0262451171875, -0.002468109130859375, -0.0177001953125, -0.0013208389282226562, 0.0150604248046875, -0.035736083984375, 0.0300140380859375, 0.0285186767578125, 0.00940704345703125, 0.0177154541015625, 0.058807373046875, 0.0276336669921875, 0.0303955078125, -0.04351806640625, -0.050537109375, 0.006649017333984375, 0.0106658935546875, 0.02032470703125, 0.035186767578125, 0.03558349609375, -0.0101318359375, 0.027130126953125, -0.04107666015625, -0.01309967041015625, 0.031463623046875, 0.038665771484375, 0.01245880126953125, -0.00926971435546875, -0.032440185546875, -0.0277557373046875, -0.0236968994140625, 0.006786346435546875, 0.011993408203125, 0.03717041015625, -0.0013332366943359375, 0.03564453125, -0.021392822265625, -0.0096435546875, -0.00489044189453125, -0.01023101806640625, -0.04095458984375, 0.0191802978515625, -0.050689697265625, -0.035980224609375, -0.00817108154296875, 0.055999755859375, 0.01293182373046875, 0.0193328857421875, 0.02996826171875, 0.004718780517578125, -0.029022216796875, 0.00528717041015625, 0.0258636474609375, -0.034271240234375, -0.0174407958984375, -0.06256103515625, 0.037017822265625, 0.0232086181640625, 0.01509857177734375, 0.0345458984375, -0.0074615478515625, 0.05108642578125, 0.008209228515625, -0.035797119140625, 0.0193939208984375, -0.025299072265625, -0.000029265880584716797, 0.019744873046875, -0.0216522216796875, 0.038604736328125, 0.0005598068237304688, -0.00707244873046875, 0.006740570068359375, 0.01409149169921875, -0.0233154296875, 0.0128173828125, 0.0095672607421875, 0.032928466796875, 0.00882720947265625, -0.05181884765625, 0.0167236328125, 0.03155517578125, 0.0044097900390625, 0.04022216796875, 0.01904296875, 0.0005025863647460938, -0.022979736328125, 0.00672149658203125, -0.01032257080078125, 0.01360321044921875, 0.031982421875, 0.029693603515625, 0.011566162109375, 0.029052734375, 0.049591064453125, -0.0361328125, 0.0662841796875, 0.0225067138671875, 0.0259246826171875, 0.004474639892578125, -0.00501251220703125, -0.0333251953125, -0.027679443359375, 0.00439453125, 0.02423095703125, -0.009857177734375, -0.004848480224609375, -0.018157958984375, 0.03125, 0.00897979736328125, 0.0343017578125, -0.0198974609375, -0.042022705078125, -0.0391845703125, -0.01186370849609375, 0.02392578125, 0.052520751953125, 0.0225067138671875, 0.00440216064453125, -0.011444091796875, 0.006031036376953125, -0.0189208984375, 0.033599853515625, -0.038299560546875, 0.0221710205078125, -0.040283203125, -0.039459228515625, -0.0091400146484375, -0.0240631103515625, 0.0005340576171875, 0.004795074462890625, 0.01751708984375, -0.0032405853271484375, -0.021331787109375, 0.01427459716796875, 0.04144287109375, 0.046356201171875, 0.004222869873046875, 0.0167694091796875, 0.006465911865234375, -0.005100250244140625, 0.005268096923828125, 0.0194854736328125, -0.007198333740234375, 0.01024627685546875, -0.03350830078125, 0.0015239715576171875, -0.003108978271484375, -0.031036376953125, -0.046600341796875, -0.016143798828125, 0.01201629638671875, -0.006183624267578125, 0.007221221923828125, 0.00341033935546875, -0.0222930908203125, 0.00591278076171875, 0.006855010986328125, 0.0258026123046875, -0.014404296875, 0.004215240478515625, -0.043121337890625, -0.01959228515625, -0.0221405029296875, 0.038818359375, -0.0036773681640625, 0.01157379150390625, 0.04278564453125, -0.0152130126953125, -0.039947509765625, -0.01555633544921875, -0.00890350341796875, 0.0251922607421875, -0.049468994140625, 0.005847930908203125, 0.019561767578125, 0.029327392578125, -0.049591064453125, -0.0804443359375, 0.026641845703125, -0.04095458984375, -0.01561737060546875, 0.006011962890625, 0.00328826904296875, 0.0227203369140625, -0.0240936279296875, -0.0195770263671875, 0.0618896484375, 0.00859832763671875, -0.0214385986328125, -0.057373046875, 0.009857177734375, -0.001129150390625, 0.030181884765625, -0.0118408203125, -0.0254058837890625, -0.031524658203125, 0.02911376953125, 0.0242462158203125, -0.04876708984375, 0.035491943359375, -0.0029964447021484375, -0.087158203125, 0.02044677734375, 0.0128936767578125, -0.0003521442413330078, -0.0020351409912109375, -0.02874755859375, 0.10882568359375, 0.06597900390625, 0.020538330078125, 0.11859130859375, 0.0675048828125, -0.039398193359375, 0.022216796875, -0.05047607421875, -0.07666015625, -0.0188446044921875, 0.1314697265625, 0.0228424072265625, 0.0543212890625, -0.032012939453125, 0.0160064697265625, 0.00415802001953125, -0.0284576416015625, -0.0159149169921875, 0.0236663818359375, -0.07012939453125, -0.0361328125, 0.005157470703125, -0.00379180908203125, 0.04364013671875, -0.0171661376953125, -0.01262664794921875, 0.007537841796875, -0.005222320556640625, -0.007572174072265625, -0.05072021484375, 0.01158905029296875, 0.0241241455078125, -0.0207061767578125, 0.00119781494140625, 0.01224517822265625, -0.000579833984375, 0.0122222900390625, 0.03314208984375, -0.0224151611328125, -0.0027904510498046875, -0.033294677734375, 0.01181793212890625, -0.007495880126953125, 0.034637451171875, -0.0214080810546875, -0.00572967529296875, -0.01535797119140625, 0.004199981689453125, -0.0043792724609375, -0.00440216064453125, 0.0338134765625, -0.0112152099609375, -0.0175018310546875, 0.0693359375, -0.042633056640625, 0.1065673828125, 0.006977081298828125, 0.007038116455078125, -0.0256805419921875, 0.038604736328125, 0.0191802978515625, -0.0235443115234375, 0.0211181640625, 0.01812744140625, 0.046142578125, 0.01222991943359375, 0.034149169921875, 0.054046630859375, -0.0030498504638671875, 0.0191650390625 ]
c99187ccb5ea7e28381c12b6e54490aab501665e
Wordpress Stackexchange Q: Knowing the total number of posts before to get into the loop Is there a way to know the total number of posts before the loop starts? I'm thinking in use two loops. The first will do the counting, while the second one will handle the content. However, I don't think this approach is 'elegant'. Any other solutions? A: functions.php: function wpse8170_get_posts_count() { global $wp_query; return $wp_query->post_count; } index.php: if (have_posts()) : echo '<h1>' . wpse8170_get_posts_count() . ' Posts Found</h1>'; while ( have_posts() ) : the_post(); //... endwhile; endif;
Q: Knowing the total number of posts before to get into the loop Is there a way to know the total number of posts before the loop starts? I'm thinking in use two loops. The first will do the counting, while the second one will handle the content. However, I don't think this approach is 'elegant'. Any other solutions? A: functions.php: function wpse8170_get_posts_count() { global $wp_query; return $wp_query->post_count; } index.php: if (have_posts()) : echo '<h1>' . wpse8170_get_posts_count() . ' Posts Found</h1>'; while ( have_posts() ) : the_post(); //... endwhile; endif; A: The number of all posts for a given query is in $GLOBALS['wp_query']->found_posts. The number of all posts for just the page you are seeing is in $GLOBALS['wp_query']->post_count. To see all available variables test it with: add_action( 'loop_start', function() { print '<pre>' . htmlspecialchars( print_r( $GLOBALS['wp_query'], TRUE ), ENT_QUOTES, 'utf-8', FALSE ) . '</pre>'; });
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:427587", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/78833" }
[ 0.038665771484375, -0.00354766845703125, 0.00409698486328125, 0.00611114501953125, 0.0157623291015625, -0.036865234375, 0.053619384765625, -0.025115966796875, 0.02154541015625, -0.0225067138671875, -0.047454833984375, 0.0061187744140625, -0.0631103515625, -0.017425537109375, 0.006969451904296875, -0.0654296875, 0.050628662109375, -0.04010009765625, 0.043121337890625, -0.004791259765625, -0.01158905029296875, 0.0189361572265625, 0.0767822265625, 0.07611083984375, -0.0064544677734375, -0.020843505859375, 0.07672119140625, -0.003971099853515625, -0.0025177001953125, -0.0152587890625, 0.01061248779296875, -0.0124969482421875, -0.0006275177001953125, 0.00858306884765625, -0.0018978118896484375, 0.003009796142578125, 0.0135345458984375, -0.00543975830078125, 0.0081787109375, 0.024505615234375, 0.0148468017578125, -0.007633209228515625, 0.043701171875, -0.020050048828125, 0.00641632080078125, 0.0021762847900390625, -0.00848388671875, -0.052520751953125, 0.03961181640625, -0.001071929931640625, -0.0123443603515625, 0.0124664306640625, 0.0037288665771484375, -0.016204833984375, -0.01342010498046875, 0.0033512115478515625, 0.0501708984375, -0.015777587890625, 0.057281494140625, -0.06597900390625, -0.07635498046875, -0.03271484375, 0.063720703125, -0.0330810546875, -0.019073486328125, 0.01061248779296875, 0.01491546630859375, 0.01314544677734375, 0.0097198486328125, -0.03662109375, -0.0239715576171875, 0.003620147705078125, -0.00337982177734375, 0.00458526611328125, 0.0010356903076171875, -0.051361083984375, 0.0178680419921875, -0.01348876953125, 0.005931854248046875, 0.039459228515625, -0.02288818359375, 0.00949859619140625, -0.0555419921875, 0.0029354095458984375, -0.036224365234375, -0.01227569580078125, -0.02752685546875, 0.007007598876953125, -0.0229644775390625, -0.0335693359375, -0.0208740234375, 0.015899658203125, -0.03936767578125, -0.016448974609375, -0.0217132568359375, -0.031463623046875, 0.03057861328125, 0.04736328125, -0.044830322265625, -0.050445556640625, -0.01540374755859375, -0.0025806427001953125, -0.084716796875, 0.01169586181640625, 0.023529052734375, 0.0017414093017578125, -0.016387939453125, 0.03271484375, 0.06646728515625, 0.0467529296875, 0.0030345916748046875, 0.052703857421875, -0.029541015625, -0.041656494140625, -0.0024547576904296875, 0.027557373046875, -0.044586181640625, 0.013458251953125, 0.0122222900390625, -0.015869140625, -0.0193939208984375, -0.0128326416015625, -0.0146484375, 0.0029811859130859375, 0.054840087890625, 0.01038360595703125, -0.0289459228515625, 0.0247802734375, 0.05291748046875, 0.06317138671875, -0.0479736328125, -0.0206146240234375, 0.0217437744140625, -0.019500732421875, -0.006809234619140625, -0.04217529296875, -0.0154571533203125, -0.0224761962890625, -0.0218353271484375, 0.026275634765625, -0.0254669189453125, -0.053466796875, -0.020660400390625, -0.017669677734375, 0.0299530029296875, 0.03826904296875, 0.0251007080078125, 0.00433349609375, -0.0006175041198730469, -0.08807373046875, 0.0491943359375, -0.0225067138671875, 0.00328826904296875, 0.0030879974365234375, -0.0074462890625, 0.00769805908203125, -0.0634765625, 0.026763916015625, 0.0115203857421875, 0.039154052734375, 0.006500244140625, -0.0099639892578125, -0.0195770263671875, -0.015594482421875, -0.0595703125, 0.04541015625, -0.01788330078125, -0.01319122314453125, 0.02496337890625, -0.034881591796875, 0.06402587890625, -0.005512237548828125, 0.018463134765625, -0.005645751953125, 0.002223968505859375, 0.0102691650390625, -0.00299072265625, -0.03662109375, 0.036773681640625, 0.038604736328125, -0.018096923828125, -0.025360107421875, 0.02783203125, -0.00992584228515625, -0.047576904296875, 0.0250091552734375, 0.01080322265625, 0.033050537109375, 0.011322021484375, 0.0004413127899169922, 0.03765869140625, 0.024200439453125, -0.0179901123046875, 0.003902435302734375, -0.01068878173828125, -0.0285797119140625, -0.0008592605590820312, -0.0004475116729736328, -0.0034961700439453125, -0.0021648406982421875, 0.01425933837890625, 0.000743865966796875, -0.02685546875, -0.0005865097045898438, -0.04168701171875, -0.01004791259765625, -0.00882720947265625, 0.01503753662109375, 0.015594482421875, 0.039093017578125, 0.0208587646484375, 0.01381683349609375, -0.0220794677734375, -0.05682373046875, -0.03875732421875, -0.00887298583984375, -0.0108489990234375, -0.005992889404296875, -0.01824951171875, 0.0007691383361816406, -0.011566162109375, -0.01110076904296875, -0.0195465087890625, 0.0338134765625, 0.07232666015625, -0.0230865478515625, -0.007686614990234375, -0.033050537109375, 0.03289794921875, 0.01427459716796875, -0.06976318359375, 0.03326416015625, 0.01113128662109375, -0.0080718994140625, -0.04443359375, -0.0228118896484375, -0.028564453125, -0.05474853515625, 0.00514984130859375, 0.07196044921875, 0.034423828125, 0.03680419921875, -0.0066680908203125, 0.00994110107421875, 0.07421875, -0.0305938720703125, -0.010284423828125, 0.0101318359375, 0.0242462158203125, 0.0579833984375, 0.01287841796875, 0.0285186767578125, 0.004852294921875, 0.002948760986328125, 0.005947113037109375, 0.023956298828125, 0.020263671875, 0.0156097412109375, -0.025115966796875, 0.01641845703125, -0.0025196075439453125, -0.024322509765625, -0.042205810546875, -0.0098876953125, 0.0367431640625, -0.00225830078125, 0.0246734619140625, 0.00931549072265625, -0.0246734619140625, 0.00701904296875, 0.0264892578125, -0.020599365234375, -0.01258087158203125, -0.056854248046875, -0.01383209228515625, -0.017364501953125, -0.0657958984375, 0.053466796875, 0.027496337890625, -0.049102783203125, -0.025482177734375, 0.0044708251953125, -0.06396484375, -0.026214599609375, -0.0184783935546875, -0.0625, -0.004398345947265625, 0.009735107421875, 0.0122222900390625, 0.003345489501953125, 0.00487518310546875, 0.018951416015625, -0.032501220703125, 0.036102294921875, 0.0013408660888671875, -0.0108642578125, -0.00598907470703125, -0.07110595703125, 0.055877685546875, -0.060546875, 0.0249786376953125, 0.07415771484375, -0.00611114501953125, 0.00969696044921875, 0.0008115768432617188, 0.005535125732421875, 0.00988006591796875, 0.0162506103515625, -0.0022144317626953125, -0.019317626953125, -0.0616455078125, -0.0250244140625, 0.01526641845703125, 0.07861328125, 0.0028839111328125, -0.041534423828125, 0.0220947265625, 0.0215606689453125, -0.03814697265625, -0.0614013671875, 0.0248565673828125, -0.09637451171875, -0.01503753662109375, -0.0269012451171875, -0.0489501953125, -0.005176544189453125, -0.00455474853515625, 0.005512237548828125, -0.046142578125, -0.0234527587890625, -0.055084228515625, -0.0977783203125, -0.05694580078125, -0.019195556640625, -0.00881195068359375, 0.01548004150390625, 0.004367828369140625, 0.04351806640625, 0.0021209716796875, -0.045989990234375, -0.0180816650390625, 0.0416259765625, -0.02484130859375, -0.026275634765625, -0.041748046875, 0.04132080078125, -0.031585693359375, 0.0212249755859375, -0.028167724609375, -0.015716552734375, 0.01812744140625, -0.020263671875, -0.0041351318359375, -0.039398193359375, 0.027099609375, 0.02703857421875, -0.0231475830078125, -0.0072784423828125, 0.043731689453125, -0.049835205078125, -0.0132904052734375, -0.0026493072509765625, -0.046600341796875, -0.0626220703125, 0.0227813720703125, 0.00942230224609375, -0.02655029296875, -0.034393310546875, -0.0252532958984375, -0.02197265625, -0.0271148681640625, -0.043243408203125, 0.06719970703125, 0.01004791259765625, 0.013458251953125, 0.0234527587890625, 0.02398681640625, -0.00806427001953125, -0.004199981689453125, -0.00731658935546875, 0.01450347900390625, -0.007755279541015625, 0.0052337646484375, -0.038818359375, -0.04376220703125, 0.058135986328125, 0.046875, 0.0095367431640625, -0.0211181640625, -0.05291748046875, 0.00936126708984375, 0.088134765625, -0.041717529296875, -0.035552978515625, -0.035186767578125, 0.01552581787109375, 0.00371551513671875, -0.045562744140625, 0.03033447265625, -0.03570556640625, -0.0849609375, 0.0116729736328125, -0.030487060546875, 0.0008859634399414062, -0.01416015625, 0.023956298828125, -0.037322998046875, -0.057373046875, 0.01049041748046875, -0.04864501953125, 0.01345062255859375, -0.0399169921875, -0.026580810546875, -0.01511383056640625, -0.00432586669921875, -0.0682373046875, -0.06243896484375, -0.0002243518829345703, -0.0196990966796875, 0.033905029296875, -0.00521087646484375, 0.01031494140625, 0.0028934478759765625, 0.0305328369140625, 0.00848388671875, 0.01277923583984375, 0.0004029273986816406, 0.0164794921875, -0.0237579345703125, -0.006084442138671875, 0.0025081634521484375, -0.032470703125, -0.0233306884765625, -0.04327392578125, 0.0301361083984375, 0.03369140625, -0.0540771484375, 0.009857177734375, -0.07928466796875, 0.0186920166015625, 0.00823211669921875, -0.003345489501953125, 0.0198822021484375, 0.053680419921875, -0.003875732421875, 0.015411376953125, -0.016204833984375, -0.0210723876953125, 0.01557159423828125, 0.01947021484375, -0.01485443115234375, 0.0173187255859375, 0.0760498046875, 0.0214996337890625, -0.0086517333984375, -0.0751953125, -0.01535797119140625, 0.033477783203125, -0.017791748046875, 0.030517578125, 0.0281524658203125, -0.0189208984375, 0.04827880859375, 0.008392333984375, -0.028472900390625, 0.0240936279296875, -0.001422882080078125, 0.01224517822265625, -0.04937744140625, 0.0104827880859375, -0.0078582763671875, 0.031768798828125, 0.013702392578125, -0.014617919921875, 0.0186309814453125, 0.03466796875, -0.0049591064453125, -0.034210205078125, 0.0156707763671875, 0.023712158203125, -0.040863037109375, 0.01003265380859375, -0.006786346435546875, 0.0258636474609375, 0.006130218505859375, 0.006755828857421875, 0.01300048828125, 0.0333251953125, 0.0017833709716796875, 0.0011339187622070312, 0.0245208740234375, 0.0112457275390625, 0.052093505859375, -0.00788116455078125, 0.0029296875, -0.024139404296875, -0.0050506591796875, 0.0199127197265625, -0.002536773681640625, -0.053924560546875, 0.023590087890625, -0.00028133392333984375, 0.0228271484375, 0.0239410400390625, -0.0023670196533203125, 0.06524658203125, 0.0272064208984375, -0.0264434814453125, -0.0244598388671875, -0.02142333984375, -0.01849365234375, -0.0626220703125, 0.00969696044921875, 0.00571441650390625, -0.0126953125, 0.007007598876953125, 0.067626953125, -0.005565643310546875, 0.037811279296875, -0.0137481689453125, 0.0253143310546875, 0.02203369140625, 0.02655029296875, 0.0226287841796875, -0.0164337158203125, 0.010406494140625, -0.01419830322265625, 0.00635528564453125, -0.032012939453125, 0.01514434814453125, 0.0308380126953125, 0.02740478515625, 0.0222015380859375, -0.01055145263671875, 0.0143890380859375, -0.0004870891571044922, -0.016326904296875, -0.000007092952728271484, 0.039886474609375, -0.006961822509765625, 0.006866455078125, 0.0188446044921875, 0.007049560546875, 0.032440185546875, 0.00884246826171875, 0.004638671875, -0.00481414794921875, 0.0175323486328125, -0.0183868408203125, 0.0066986083984375, -0.018524169921875, -0.00039315223693847656, -0.050933837890625, -0.024322509765625, -0.003215789794921875, 0.006908416748046875, -0.0189208984375, -0.0037212371826171875, -0.034027099609375, 0.0161590576171875, -0.01482391357421875, 0.06866455078125, -0.0194854736328125, -0.04168701171875, -0.0153961181640625, 0.01513671875, 0.050445556640625, 0.033599853515625, -0.049591064453125, -0.002162933349609375, -0.065673828125, -0.03155517578125, 0.0137786865234375, -0.017791748046875, -0.042449951171875, -0.004199981689453125, 0.02264404296875, 0.0088348388671875, 0.0158538818359375, -0.0244903564453125, -0.0004241466522216797, 0.0164794921875, 0.017059326171875, 0.0161285400390625, -0.006923675537109375, 0.0692138671875, 0.01068878173828125, -0.0034427642822265625, 0.020751953125, 0.05712890625, 0.0260772705078125, -0.0185089111328125, 0.0086669921875, -0.0374755859375, -0.0096282958984375, 0.01177215576171875, -0.02032470703125, -0.04327392578125, -0.03521728515625, -0.005847930908203125, -0.01378631591796875, -0.0015010833740234375, 0.0019588470458984375, -0.00815582275390625, -0.0187225341796875, 0.0460205078125, 0.0003285408020019531, 0.0269927978515625, 0.0187225341796875, -0.0045318603515625, -0.001575469970703125, -0.0147857666015625, -0.0203399658203125, 0.041961669921875, -0.0206298828125, -0.01486968994140625, -0.044097900390625, 0.06585693359375, 0.072509765625, 0.013519287109375, 0.036529541015625, 0.01064300537109375, 0.0103912353515625, -0.005706787109375, 0.0014390945434570312, 0.0005249977111816406, -0.0301361083984375, 0.05535888671875, 0.011688232421875, -0.0183563232421875, 0.060760498046875, -0.04095458984375, 0.00836181640625, -0.032958984375, 0.037750244140625, 0.04827880859375, -0.0091400146484375, 0.01419830322265625, -0.05572509765625, -0.01934814453125, -0.0195465087890625, 0.00682830810546875, -0.008941650390625, 0.09417724609375, -0.01396942138671875, -0.0007109642028808594, 0.040863037109375, -0.0298614501953125, -0.00919342041015625, -0.033599853515625, -0.01448822021484375, 0.0155792236328125, -0.04656982421875, 0.05950927734375, 0.032806396484375, 0.02410888671875, -0.0263519287109375, 0.023193359375, -0.0223541259765625, 0.027862548828125, -0.03289794921875, 0.03497314453125, -0.04583740234375, 0.0281524658203125, 0.02325439453125, 0.03564453125, -0.006855010986328125, 0.049652099609375, -0.012420654296875, 0.028106689453125, 0.0142059326171875, -0.0181427001953125, -0.03643798828125, 0.0009241104125976562, 0.0169830322265625, 0.033477783203125, -0.024505615234375, 0.0272979736328125, -0.0299835205078125, 0.006305694580078125, -0.00452423095703125, -0.00458526611328125, 0.0731201171875, -0.036346435546875, -0.01023101806640625, 0.0276336669921875, 0.031951904296875, -0.006153106689453125, -0.0019321441650390625, -0.0018444061279296875, -0.00555419921875, 0.037872314453125, -0.006656646728515625, 0.01953125, 0.00884246826171875, -0.01294708251953125, -0.0119476318359375, 0.0806884765625, -0.04876708984375, 0.00728607177734375, 0.042724609375, 0.03070068359375, 0.00867462158203125, 0.045928955078125, -0.09228515625, 0.07568359375, -0.0140380859375, 0.09613037109375, -0.09625244140625, -0.0128173828125, 0.0084075927734375, 0.031707763671875, 0.04473876953125, -0.0018815994262695312, 0.00890350341796875, -0.01401519775390625, 0.04315185546875, 0.07183837890625, 0.0046234130859375, -0.01111602783203125, 0.0277557373046875, 0.0408935546875, 0.0501708984375, -0.052825927734375, 0.0215606689453125, -0.023193359375, 0.015716552734375, 0.045745849609375, -0.009918212890625, -0.0274200439453125, -0.01200103759765625, 0.01390838623046875, -0.03936767578125, -0.0171966552734375, 0.00904083251953125, 0.02203369140625, -0.016693115234375, 0.083740234375, 0.0284881591796875, -0.0465087890625, -0.0245819091796875, -0.04595947265625, 0.045135498046875, -0.0357666015625, 0.04327392578125, 0.05010986328125, 0.030853271484375, 0.034515380859375, 0.0017518997192382812, 0.0206756591796875, 0.00936126708984375, -0.037384033203125, 0.0513916015625, 0.0177154541015625, 0.0241546630859375, -0.05535888671875, -0.01171875, 0.0114288330078125, 0.06048583984375, -0.0418701171875, 0.00887298583984375, 0.0083160400390625, -0.004817962646484375, 0.0024776458740234375, -0.048309326171875, 0.0201416015625, 0.049285888671875, 0.0238494873046875, 0.01078033447265625, -0.0478515625, -0.0024261474609375, 0.0222320556640625, 0.01474761962890625, 0.004638671875, 0.0207977294921875, -0.052581787109375, -0.0182952880859375, -0.0184478759765625, 0.006824493408203125, 0.0540771484375, 0.0105133056640625, 0.0361328125, -0.04669189453125, -0.0173797607421875, 0.00803375244140625, 0.0089569091796875, 0.00861358642578125, -0.0079345703125, -0.00237274169921875, -0.0220947265625, -0.001293182373046875, 0.019317626953125, 0.0362548828125, 0.0000209808349609375, 0.04443359375, 0.0396728515625, -0.00669097900390625, -0.01399993896484375, -0.0030841827392578125, -0.02349853515625, -0.03265380859375, -0.0232391357421875, -0.0196075439453125, 0.010986328125, -0.011474609375, 0.021636962890625, 0.032501220703125, -0.0002601146697998047, 0.022308349609375, 0.017669677734375, 0.01248931884765625, -0.034454345703125, 0.039093017578125, 0.01245880126953125, 0.08233642578125, 0.045257568359375, -0.0718994140625, -0.01433563232421875, -0.028076171875, -0.0159912109375, 0.0280609130859375, 0.029327392578125, -0.025054931640625, 0.025970458984375, -0.0158538818359375, -0.0321044921875, 0.0228118896484375, 0.0032196044921875, 0.004840850830078125, 0.0299530029296875, 0.0110626220703125, 0.0023899078369140625, -0.05853271484375, -0.04925537109375, -0.0277557373046875, 0.037078857421875, 0.0369873046875, -0.01544189453125, 0.0247344970703125, 0.03936767578125, -0.0066986083984375, -0.0161285400390625, 0.0148162841796875, 0.006931304931640625, -0.01464080810546875, 0.0286865234375, 0.0206756591796875, -0.020843505859375, -0.028594970703125, 0.00014472007751464844, 0.03143310546875, -0.042877197265625, 0.020477294921875, -0.041107177734375, 0.0166473388671875, -0.026702880859375, -0.0084075927734375, -0.031341552734375, 0.000682830810546875, 0.01580810546875, -0.01100921630859375, 0.0111846923828125, -0.01055908203125, -0.016265869140625, 0.0184173583984375, -0.024444580078125, -0.013092041015625, 0.005157470703125, 0.0045166015625, -0.017242431640625, 0.03082275390625, -0.04681396484375, 0.0012683868408203125, 0.016754150390625, -0.01270294189453125, -0.002323150634765625, 0.030975341796875, -0.0009365081787109375, -0.00008404254913330078, 0.01090240478515625, -0.004863739013671875, 0.007587432861328125, 0.0625, -0.005977630615234375, 0.0289459228515625, -0.036376953125, 0.01788330078125, 0.0226593017578125, -0.0168914794921875, -0.02264404296875, -0.04364013671875, -0.004180908203125, 0.0065155029296875, -0.0093994140625, -0.006439208984375, -0.006107330322265625, -0.0168609619140625, 0.018402099609375, -0.007549285888671875, -0.01166534423828125, 0.0173797607421875, -0.04254150390625, -0.0142364501953125, -0.028900146484375, 0.0036449432373046875, 0.00893402099609375, 0.002681732177734375, -0.0284576416015625, 0.004550933837890625, -0.0168914794921875, 0.0022640228271484375, 0.01143646240234375, 0.01023101806640625, 0.008331298828125, -0.037078857421875, 0.00722503662109375, -0.01207733154296875, 0.017730712890625, 0.0232391357421875, 0.059417724609375, 0.0078125, 0.0293121337890625, 0.0038433074951171875, -0.0250091552734375, -0.08880615234375, 0.024505615234375, -0.06488037109375, -0.00982666015625, -0.0411376953125, 0.0120697021484375, 0.0155029296875, -0.0242156982421875, -0.06536865234375, 0.06512451171875, -0.03253173828125, -0.0195159912109375, -0.07720947265625, 0.00722503662109375, 0.0097808837890625, -0.02056884765625, -0.022705078125, 0.0034542083740234375, -0.041107177734375, 0.035400390625, 0.005741119384765625, 0.0038509368896484375, 0.038543701171875, -0.0202789306640625, -0.044952392578125, 0.0024776458740234375, 0.006252288818359375, 0.0139923095703125, 0.032745361328125, -0.027862548828125, 0.043487548828125, 0.036376953125, -0.0523681640625, 0.0000833272933959961, -0.01739501953125, 0.0301361083984375, -0.00701904296875, -0.03875732421875, -0.0263824462890625, -0.021636962890625, 0.096923828125, 0.03533935546875, 0.03265380859375, -0.037567138671875, -0.00632476806640625, -0.01319122314453125, -0.0328369140625, 0.005329132080078125, 0.02203369140625, -0.05120849609375, 0.0005011558532714844, -0.00048160552978515625, -0.01125335693359375, -0.01352691650390625, -0.041961669921875, -0.04730224609375, -0.0177001953125, -0.07080078125, 0.0142669677734375, -0.038726806640625, 0.020050048828125, 0.01476287841796875, -0.0255889892578125, 0.00200653076171875, -0.00946807861328125, 0.00376129150390625, -0.003643035888671875, 0.01190948486328125, 0.0096893310546875, 0.01497650146484375, 0.0003840923309326172, 0.01087188720703125, 0.0227508544921875, 0.005764007568359375, -0.009307861328125, -0.006725311279296875, -0.00623321533203125, 0.01480865478515625, 0.0229644775390625, 0.007030487060546875, -0.013092041015625, 0.0235443115234375, 0.00333404541015625, 0.0010833740234375, -0.0063323974609375, 0.0833740234375, 0.00551605224609375, 0.047943115234375, -0.036865234375, -0.0009322166442871094, -0.00693511962890625, -0.046051025390625, -0.01258087158203125, 0.0269012451171875, -0.041961669921875, -0.0367431640625, 0.006465911865234375, 0.040130615234375, 0.0191497802734375, 0.005855560302734375 ]
1ff1301645ab539a3db506c216fda71c9db150eb
Wordpress Stackexchange Q: What difference does it make including the @package annotation or not? I am somewhat familiar with the concept of packages in Java, but I'm new to Wordpress and PHP. In a template file such as header.php, what is happening when you include the @package notation? <?php /* * @package MyTheme */ A: Those are PHPDoc tags. They are entirely for code documentation purposes.
Q: What difference does it make including the @package annotation or not? I am somewhat familiar with the concept of packages in Java, but I'm new to Wordpress and PHP. In a template file such as header.php, what is happening when you include the @package notation? <?php /* * @package MyTheme */ A: Those are PHPDoc tags. They are entirely for code documentation purposes. A: Nothing will happen. This PHPDoc tag has no special meaning in WordPress, it is not a header WordPress will parse by default. Use it to group your code internally. get_file_data() cannot read it because that function needs a : after the identifier (here package).
wordpress
{ "language": "en", "length": 109, "provenance": "stackexchange_00019.jsonl.gz:427610", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/79905" }
[ 0.0222930908203125, -0.004352569580078125, -0.007568359375, -0.037750244140625, -0.020538330078125, -0.000014424324035644531, -0.01453399658203125, -0.0021686553955078125, -0.0347900390625, 0.0556640625, -0.01297760009765625, 0.01108551025390625, 0.0021381378173828125, -0.00821685791015625, -0.004985809326171875, -0.01458740234375, 0.0323486328125, 0.00514984130859375, 0.01171112060546875, -0.005336761474609375, -0.026947021484375, 0.018035888671875, -0.00391387939453125, 0.00815582275390625, 0.01108551025390625, -0.06536865234375, 0.0655517578125, -0.0355224609375, 0.0087432861328125, -0.03485107421875, 0.0027751922607421875, 0.052886962890625, 0.044464111328125, 0.043121337890625, -0.08978271484375, 0.0250396728515625, -0.033843994140625, 0.03668212890625, 0.0152130126953125, -0.024139404296875, 0.0178985595703125, -0.0281829833984375, 0.000011205673217773438, -0.055267333984375, -0.0098114013671875, 0.024078369140625, -0.00823974609375, -0.010406494140625, 0.020477294921875, -0.055816650390625, 0.0228729248046875, -0.01329803466796875, 0.0303955078125, -0.0251312255859375, -0.0242156982421875, 0.02374267578125, -0.01239776611328125, 0.021636962890625, 0.0169830322265625, 0.0254364013671875, -0.01513671875, 0.03558349609375, 0.004154205322265625, -0.0167999267578125, 0.036285400390625, -0.01824951171875, 0.0006551742553710938, 0.05731201171875, -0.0268096923828125, 0.00951385498046875, 0.01467132568359375, -0.0224456787109375, -0.00023949146270751953, -0.01061248779296875, 0.0017805099487304688, -0.01568603515625, 0.01238250732421875, -0.017608642578125, -0.0009579658508300781, 0.030853271484375, 0.029296875, 0.030059814453125, 0.006320953369140625, -0.05426025390625, 0.00858306884765625, -0.04644775390625, 0.0101318359375, -0.0162811279296875, -0.04144287109375, -0.019683837890625, -0.040069580078125, -0.0069122314453125, -0.043487548828125, 0.00472259521484375, 0.0031585693359375, 0.01104736328125, -0.0182647705078125, -0.00665283203125, 0.0234832763671875, 0.042327880859375, 0.00433349609375, -0.022491455078125, 0.0299835205078125, -0.0244140625, -0.0186920166015625, 0.0187530517578125, 0.0057830810546875, 0.04107666015625, 0.022003173828125, 0.027984619140625, 0.0017004013061523438, 0.001117706298828125, -0.0101165771484375, -0.06842041015625, 0.032257080078125, 0.006481170654296875, -0.04278564453125, 0.0335693359375, 0.027618408203125, -0.04205322265625, 0.0214691162109375, 0.05255126953125, -0.018035888671875, -0.0322265625, 0.0005326271057128906, 0.00028777122497558594, 0.008636474609375, -0.049774169921875, -0.01078033447265625, 0.06536865234375, 0.00868988037109375, -0.0224761962890625, -0.0447998046875, -0.0184783935546875, -0.041900634765625, -0.035888671875, -0.005084991455078125, 0.042633056640625, -0.0311126708984375, 0.00572967529296875, -0.02081298828125, -0.0265655517578125, 0.00980377197265625, -0.0268096923828125, -0.025665283203125, 0.00724029541015625, 0.00017154216766357422, 0.02655029296875, -0.0212860107421875, -0.0250244140625, 0.0219268798828125, -0.040863037109375, -0.018585205078125, 0.00981903076171875, 0.0452880859375, 0.0164337158203125, -0.004180908203125, -0.0021610260009765625, 0.0108489990234375, 0.042022705078125, -0.0195159912109375, -0.05120849609375, -0.02557373046875, -0.0484619140625, -0.06988525390625, 0.06689453125, 0.00681304931640625, 0.0025615692138671875, 0.01369476318359375, -0.01410675048828125, -0.019317626953125, 0.010498046875, 0.0260467529296875, 0.018035888671875, 0.0135650634765625, 0.0244598388671875, 0.0132293701171875, 0.01497650146484375, 0.00933837890625, 0.00921630859375, -0.01467132568359375, -0.025787353515625, 0.04888916015625, -0.0284881591796875, -0.05499267578125, -0.00432586669921875, 0.022918701171875, 0.02783203125, 0.0061187744140625, -0.003025054931640625, 0.084228515625, 0.00696563720703125, -0.027801513671875, 0.0623779296875, -0.0099334716796875, -0.049407958984375, 0.01202392578125, 0.00907135009765625, -0.007518768310546875, -0.0248565673828125, -0.0211334228515625, 0.0175323486328125, -0.00386810302734375, 0.051513671875, 0.017059326171875, 0.00608062744140625, -0.00359344482421875, -0.003936767578125, -0.0072174072265625, -0.01372528076171875, 0.013641357421875, -0.048980712890625, -0.0051727294921875, 0.0032958984375, -0.035369873046875, -0.026519775390625, -0.0213165283203125, 0.007659912109375, 0.01308441162109375, 0.02655029296875, 0.010162353515625, -0.0305328369140625, 0.00565338134765625, -0.003204345703125, 0.040496826171875, 0.007427215576171875, -0.023193359375, -0.006244659423828125, 0.0272216796875, 0.01541900634765625, -0.005603790283203125, 0.0286407470703125, -0.0156097412109375, 0.0020198822021484375, -0.02069091796875, 0.0085601806640625, -0.00682830810546875, -0.0291900634765625, -0.0139923095703125, 0.0281524658203125, 0.0262603759765625, 0.0555419921875, -0.0029754638671875, 0.028900146484375, 0.05364990234375, -0.0219879150390625, 0.004299163818359375, 0.0025463104248046875, -0.0167236328125, -0.004974365234375, 0.0118560791015625, -0.00423431396484375, 0.046539306640625, -0.0288238525390625, -0.002628326416015625, 0.0565185546875, 0.00829315185546875, -0.002166748046875, -0.0233001708984375, 0.06365966796875, -0.007266998291015625, 0.0173797607421875, 0.012176513671875, 0.007640838623046875, 0.08367919921875, -0.023956298828125, 0.036041259765625, 0.0261077880859375, -0.05035400390625, -0.006778717041015625, 0.03057861328125, 0.06268310546875, 0.01317596435546875, 0.06622314453125, -0.01329803466796875, 0.043426513671875, -0.029541015625, -0.01629638671875, -0.0031833648681640625, 0.033294677734375, 0.0020961761474609375, -0.01093292236328125, -0.000024139881134033203, 0.0067138671875, 0.02532958984375, -0.032012939453125, 0.0152435302734375, 0.0230255126953125, -0.06243896484375, -0.0179595947265625, 0.02923583984375, 0.05657958984375, -0.0322265625, -0.0014009475708007812, 0.0128936767578125, 0.0126953125, -0.023468017578125, -0.0093841552734375, 0.003955841064453125, -0.00962066650390625, 0.013336181640625, 0.051055908203125, 0.0160369873046875, -0.0157470703125, -0.0110015869140625, 0.01763916015625, -0.01480865478515625, 0.005443572998046875, -0.01328277587890625, -0.00833892822265625, -0.044525146484375, -0.02069091796875, 0.0423583984375, 0.07086181640625, -0.0244598388671875, -0.046630859375, -0.0345458984375, 0.04217529296875, -0.0946044921875, -0.0771484375, 0.0201263427734375, -0.06964111328125, 0.02783203125, -0.0347900390625, -0.0250396728515625, -0.03363037109375, -0.0106658935546875, 0.00891876220703125, -0.01189422607421875, -0.0261383056640625, -0.021026611328125, -0.063720703125, -0.06329345703125, -0.01021575927734375, -0.0024623870849609375, 0.01128387451171875, -0.004993438720703125, 0.0257720947265625, 0.00907135009765625, -0.0053863525390625, 0.003265380859375, -0.00890350341796875, 0.0029163360595703125, -0.003826141357421875, 0.004291534423828125, -0.024505615234375, -0.0023021697998046875, -0.00004798173904418945, 0.043426513671875, 0.023345947265625, -0.03411865234375, 0.00768280029296875, -0.0007905960083007812, -0.03912353515625, 0.01386260986328125, 0.0214691162109375, -0.019744873046875, -0.0293731689453125, 0.03948974609375, -0.05560302734375, -0.04425048828125, -0.000942230224609375, -0.064453125, -0.003284454345703125, 0.032623291015625, 0.0110015869140625, -0.0163116455078125, 0.00637054443359375, -0.0002593994140625, 0.0179290771484375, 0.0004887580871582031, -0.04132080078125, 0.050994873046875, 0.004581451416015625, 0.0125579833984375, -0.00246429443359375, -0.048065185546875, -0.037506103515625, 0.0084686279296875, -0.040740966796875, 0.006988525390625, -0.02935791015625, 0.047821044921875, -0.047882080078125, -0.0104522705078125, 0.0257720947265625, -0.03912353515625, -0.022552490234375, 0.007843017578125, 0.007488250732421875, 0.00933837890625, 0.01399993896484375, 0.040618896484375, -0.0286712646484375, -0.01873779296875, -0.022308349609375, 0.0015611648559570312, 0.03076171875, -0.0268402099609375, -0.0079345703125, 0.052703857421875, 0.01153564453125, -0.00003325939178466797, 0.0267181396484375, -0.037933349609375, 0.045806884765625, 0.034698486328125, 0.005237579345703125, 0.02178955078125, -0.040069580078125, 0.0086212158203125, 0.03143310546875, -0.023040771484375, 0.0271759033203125, -0.024810791015625, -0.057769775390625, -0.0233306884765625, -0.01157379150390625, -0.01507568359375, 0.047943115234375, 0.0239715576171875, -0.0057525634765625, -0.032501220703125, 0.025360107421875, -0.0218963623046875, 0.039520263671875, 0.007076263427734375, 0.0175933837890625, -0.01214599609375, 0.0162811279296875, 0.0266571044921875, -0.0095672607421875, -0.014373779296875, 0.0176239013671875, -0.0731201171875, 0.057647705078125, 0.0299530029296875, 0.026092529296875, 0.06964111328125, -0.044891357421875, 0.00821685791015625, -0.009429931640625, -0.0258026123046875, 0.0101470947265625, 0.00798797607421875, -0.045196533203125, -0.01482391357421875, 0.012908935546875, 0.058929443359375, 0.04620361328125, -0.00295257568359375, -0.0006098747253417969, 0.1026611328125, 0.0026531219482421875, -0.03668212890625, -0.1005859375, 0.052032470703125, 0.0400390625, -0.00928497314453125, 0.0333251953125, 0.004764556884765625, -0.02838134765625, 0.07666015625, -0.012969970703125, 0.01282501220703125, -0.02587890625, 0.0584716796875, -0.0263824462890625, -0.024810791015625, 0.027008056640625, -0.0078887939453125, 0.0025310516357421875, 0.0162200927734375, -0.00258636474609375, -0.0008530616760253906, 0.039642333984375, 0.00215911865234375, -0.033111572265625, 0.0193328857421875, -0.0030269622802734375, 0.0174713134765625, 0.0006442070007324219, 0.0116424560546875, -0.035369873046875, 0.01560211181640625, -0.005802154541015625, -0.091064453125, -0.03179931640625, 0.0013332366943359375, 0.045166015625, 0.02587890625, -0.007411956787109375, -0.0027599334716796875, 0.058990478515625, -0.040557861328125, -0.002593994140625, -0.0189056396484375, 0.05413818359375, 0.03558349609375, -0.0307464599609375, 0.0268402099609375, 0.00557708740234375, -0.0114593505859375, -0.0187835693359375, 0.027801513671875, 0.045379638671875, 0.01152801513671875, -0.003963470458984375, -0.0031585693359375, -0.0017232894897460938, -0.0131378173828125, -0.03594970703125, -0.049407958984375, 0.0008459091186523438, -0.0379638671875, 0.05126953125, -0.02337646484375, 0.00965118408203125, 0.00714111328125, -0.03033447265625, 0.01702880859375, 0.021392822265625, 0.0085906982421875, -0.0005898475646972656, 0.00981903076171875, -0.0051422119140625, 0.00594329833984375, 0.0125579833984375, -0.03948974609375, -0.0145416259765625, 0.0015716552734375, 0.0265350341796875, 0.0135955810546875, -0.008331298828125, 0.014862060546875, -0.0225830078125, -0.0166168212890625, 0.0162353515625, 0.006786346435546875, -0.009063720703125, -0.0239410400390625, -0.005802154541015625, 0.0341796875, 0.01097869873046875, -0.0174102783203125, 0.037811279296875, -0.01073455810546875, 0.044586181640625, -0.01023101806640625, -0.0081329345703125, -0.0037841796875, -0.0005450248718261719, -0.02642822265625, -0.0207977294921875, 0.00897216796875, -0.034149169921875, -0.026580810546875, -0.0032520294189453125, -0.0206298828125, 0.041534423828125, -0.0290069580078125, 0.0439453125, -0.0291900634765625, 0.007289886474609375, -0.0168914794921875, 0.045654296875, -0.0134429931640625, -0.004543304443359375, -0.075439453125, 0.019744873046875, -0.045654296875, -0.01085662841796875, -0.066162109375, -0.053009033203125, -0.062744140625, 0.020721435546875, 0.0213775634765625, 0.0189208984375, 0.0312042236328125, 0.01387786865234375, -0.0303497314453125, 0.0264129638671875, 0.003543853759765625, 0.06732177734375, -0.0400390625, 0.08648681640625, -0.037567138671875, 0.034027099609375, -0.01446533203125, 0.037078857421875, 0.00921630859375, 0.0054473876953125, 0.005992889404296875, -0.085205078125, 0.00965118408203125, -0.0311279296875, 0.0242919921875, 0.027069091796875, 0.006954193115234375, 0.006855010986328125, -0.0028228759765625, 0.00791168212890625, 0.01029205322265625, -0.005283355712890625, 0.04608154296875, 0.0149993896484375, -0.02313232421875, 0.038482666015625, -0.027862548828125, -0.0234527587890625, -0.0034885406494140625, -0.0251312255859375, 0.01715087890625, -0.009796142578125, -0.0006794929504394531, 0.020660400390625, -0.03564453125, 0.033172607421875, 0.0255889892578125, 0.005237579345703125, 0.044189453125, -0.0159149169921875, 0.026763916015625, 0.0213775634765625, 0.006404876708984375, -0.03961181640625, -0.0165863037109375, 0.02001953125, 0.00579071044921875, -0.0119476318359375, 0.0272216796875, -0.002899169921875, 0.0297698974609375, 0.006557464599609375, 0.03619384765625, -0.0364990234375, 0.0198974609375, -0.004688262939453125, -0.034515380859375, 0.01849365234375, 0.03271484375, 0.0005612373352050781, -0.05047607421875, 0.007110595703125, 0.03363037109375, 0.006534576416015625, 0.00811767578125, 0.004970550537109375, -0.028228759765625, 0.01381683349609375, -0.01187896728515625, 0.03961181640625, 0.0438232421875, 0.01904296875, -0.034820556640625, 0.06634521484375, -0.00847625732421875, 0.00800323486328125, -0.0540771484375, 0.0010004043579101562, -0.0010395050048828125, -0.00847625732421875, -0.06292724609375, 0.01384735107421875, -0.01352691650390625, 0.0204925537109375, 0.02972412109375, 0.03985595703125, 0.00963592529296875, -0.02801513671875, 0.0300140380859375, 0.0021514892578125, -0.017333984375, -0.0145111083984375, 0.0033054351806640625, 0.04656982421875, -0.038238525390625, 0.040740966796875, -0.01517486572265625, 0.01690673828125, -0.01373291015625, 0.046539306640625, 0.06622314453125, -0.02587890625, -0.037994384765625, 0.0225677490234375, 0.02252197265625, -0.00026535987854003906, 0.0247955322265625, 0.0072021484375, -0.042816162109375, -0.01085662841796875, 0.01398468017578125, -0.0115509033203125, -0.0024929046630859375, 0.006008148193359375, -0.04498291015625, 0.0498046875, 0.032684326171875, -0.003002166748046875, -0.02899169921875, 0.03729248046875, -0.0165557861328125, 0.0237274169921875, -0.004314422607421875, 0.02801513671875, 0.034423828125, 0.0079345703125, -0.030548095703125, -0.0028476715087890625, -0.0041046142578125, 0.03839111328125, 0.0274200439453125, -0.01412200927734375, 0.031951904296875, -0.018798828125, 0.0267333984375, 0.00812530517578125, -0.03631591796875, -0.0012388229370117188, 0.0006537437438964844, -0.03924560546875, -0.01837158203125, 0.00862884521484375, 0.032867431640625, -0.0657958984375, -0.01074981689453125, 0.03179931640625, -0.002262115478515625, -0.0262908935546875, 0.0075836181640625, -0.040557861328125, 0.0037937164306640625, -0.01396942138671875, -0.0308380126953125, 0.01555633544921875, -0.0162506103515625, -0.00069427490234375, 0.005992889404296875, -0.05963134765625, -0.031982421875, -0.020263671875, 0.0312347412109375, 0.0177764892578125, 0.073974609375, 0.02740478515625, 0.00275421142578125, 0.041015625, 0.0042877197265625, 0.043426513671875, 0.023468017578125, -0.037109375, 0.01479339599609375, 0.0311737060546875, 0.0263214111328125, -0.0199432373046875, 0.0204925537109375, 0.029571533203125, 0.0200347900390625, -0.04034423828125, 0.03338623046875, 0.017242431640625, 0.0239105224609375, 0.0046539306640625, -0.0302581787109375, 0.038330078125, -0.01055145263671875, -0.03448486328125, -0.03851318359375, -0.0104827880859375, 0.048675537109375, 0.01788330078125, 0.0034694671630859375, -0.051422119140625, -0.0162353515625, -0.0220794677734375, -0.057037353515625, 0.07373046875, 0.04461669921875, 0.01262664794921875, -0.05340576171875, 0.06787109375, 0.039398193359375, -0.00589752197265625, -0.0284271240234375, 0.035736083984375, 0.00492095947265625, 0.02471923828125, -0.0494384765625, -0.0113525390625, -0.00356292724609375, 0.04498291015625, -0.005413055419921875, 0.05194091796875, 0.00319671630859375, -0.0021076202392578125, 0.01220703125, 0.0084075927734375, 0.054901123046875, -0.0277862548828125, 0.0219268798828125, -0.007511138916015625, 0.0280303955078125, 0.0261077880859375, 0.0011043548583984375, -0.020263671875, 0.01224517822265625, 0.0704345703125, -0.035125732421875, 0.072265625, -0.01849365234375, -0.0204315185546875, 0.0133819580078125, -0.0230560302734375, 0.057464599609375, -0.008087158203125, 0.0232391357421875, 0.025848388671875, -0.0217132568359375, -0.041046142578125, 0.006412506103515625, 0.0345458984375, 0.0256195068359375, -0.004451751708984375, 0.00936126708984375, -0.002902984619140625, -0.015838623046875, 0.01885986328125, 0.01175689697265625, -0.0035247802734375, 0.0265045166015625, 0.0010738372802734375, -0.03997802734375, -0.041717529296875, -0.0187835693359375, 0.05279541015625, -0.007389068603515625, 0.0477294921875, -0.037261962890625, 0.02703857421875, 0.0210418701171875, 0.05126953125, -0.02874755859375, -0.00919342041015625, 0.04827880859375, 0.01226806640625, 0.009521484375, -0.033172607421875, -0.052886962890625, 0.009552001953125, 0.03631591796875, 0.00045108795166015625, 0.035797119140625, -0.01309967041015625, 0.024261474609375, -0.0362548828125, 0.060089111328125, -0.019989013671875, -0.06402587890625, -0.026824951171875, 0.022613525390625, -0.00823974609375, 0.0285186767578125, -0.0169830322265625, 0.00439453125, 0.0308990478515625, -0.05718994140625, 0.0247955322265625, -0.0280303955078125, 0.0251007080078125, 0.0213470458984375, 0.041534423828125, -0.0703125, 0.03912353515625, -0.0228271484375, -0.0001518726348876953, -0.01104736328125, 0.10650634765625, -0.01053619384765625, -0.0391845703125, -0.0130767822265625, 0.03717041015625, 0.05682373046875, 0.01007080078125, 0.026031494140625, -0.01161956787109375, -0.0257568359375, 0.0271148681640625, 0.003101348876953125, -0.0220947265625, -0.0282745361328125, -0.00304412841796875, 0.021209716796875, -0.020843505859375, -0.034027099609375, -0.1021728515625, -0.0716552734375, 0.005950927734375, -0.0186614990234375, 0.015777587890625, -0.0677490234375, 0.01331329345703125, 0.00943756103515625, -0.018768310546875, 0.0036773681640625, 0.0006036758422851562, 0.017578125, -0.053955078125, -0.004169464111328125, -0.0380859375, -0.02093505859375, -0.002490997314453125, 0.047576904296875, 0.0760498046875, -0.039337158203125, 0.023284912109375, 0.039154052734375, 0.0305023193359375, 0.098876953125, -0.0218963623046875, -0.0455322265625, 0.023956298828125, -0.025054931640625, 0.01074981689453125, -0.0301513671875, -0.0211944580078125, -0.0265045166015625, 0.010894775390625, 0.0018396377563476562, 0.004009246826171875, 0.0078887939453125, -0.0457763671875, -0.1287841796875, 0.105712890625, -0.04010009765625, -0.036712646484375, -0.041290283203125, -0.031158447265625, -0.029266357421875, 0.06591796875, -0.00876617431640625, -0.01407623291015625, -0.02069091796875, 0.049072265625, 0.0022907257080078125, 0.015625, 0.05426025390625, -0.007778167724609375, -0.001285552978515625, -0.0116119384765625, -0.00901031494140625, -0.019012451171875, 0.00795745849609375, 0.00550079345703125, 0.0085296630859375, 0.038787841796875, -0.0249176025390625, -0.0119781494140625, -0.0168304443359375, -0.0257568359375, -0.01611328125, -0.0059814453125, -0.0150146484375, 0.023529052734375, 0.05426025390625, 0.038848876953125, 0.0101470947265625, -0.04974365234375, 0.06622314453125, 0.034088134765625, -0.05572509765625, 0.00481414794921875, 0.0341796875, -0.035736083984375, -0.0217437744140625, -0.004436492919921875, -0.0007004737854003906, 0.031585693359375, -0.040618896484375, -0.01486968994140625, -0.00984954833984375, -0.034088134765625, -0.0325927734375, 0.0264434814453125, -0.09454345703125, 0.0174560546875, 0.0011920928955078125, 0.0022678375244140625, 0.0198516845703125, 0.053131103515625, -0.0164642333984375, 0.08428955078125, 0.01158905029296875, -0.01540374755859375, -0.0133209228515625, 0.052520751953125, 0.0014553070068359375, 0.035552978515625, -0.0272369384765625, -0.034271240234375, -0.0160369873046875, -0.005126953125, 0.0032196044921875, -0.0220184326171875, -0.0189971923828125, 0.04095458984375, 0.00328826904296875, 0.04864501953125, -0.0013294219970703125, -0.00940704345703125, -0.037261962890625, 0.036590576171875, 0.0091094970703125, -0.0194549560546875, 0.045074462890625, -0.01544189453125, -0.0010900497436523438, 0.026580810546875, -0.03021240234375, -0.045867919921875, 0.04058837890625, 0.004795074462890625, -0.00026607513427734375, 0.0227203369140625 ]
2a61397bd00d026272861a3db8f408b8ae53d32a
Wordpress Stackexchange Q: Filter categories using tags I have a website with the following categories: * *Videos *Pictures *Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos tagged as Crazy? I know you can do: http://domainname.com/tag/crazy/ But that would retrieve ALL content tagged as crazy, I just want Videos. I've searched the WordPress documentation without luck. A: Another way that @toscho's solution made me try, and worked for me, is this scheme: http://example.com/videos/?tag=crazy
Q: Filter categories using tags I have a website with the following categories: * *Videos *Pictures *Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos tagged as Crazy? I know you can do: http://domainname.com/tag/crazy/ But that would retrieve ALL content tagged as crazy, I just want Videos. I've searched the WordPress documentation without luck. A: Another way that @toscho's solution made me try, and worked for me, is this scheme: http://example.com/videos/?tag=crazy A: You can add the category as parameter: http://example.com/tag/crazy?category=videos This will list only the posts tagged crazy from category videos. Be aware the conditional tags will treat this as tag archive.
wordpress
{ "language": "en", "length": 118, "provenance": "stackexchange_00019.jsonl.gz:427617", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/79933" }
[ 0.0450439453125, 0.01763916015625, -0.001628875732421875, 0.0188140869140625, 0.028228759765625, -0.031829833984375, 0.08258056640625, -0.042236328125, 0.036102294921875, -0.0036792755126953125, -0.060943603515625, -0.022857666015625, -0.001560211181640625, -0.02996826171875, -0.006397247314453125, -0.054840087890625, -0.01308441162109375, 0.0228118896484375, 0.0159912109375, -0.02978515625, 0.03326416015625, -0.038421630859375, 0.0225677490234375, -0.038665771484375, 0.00830078125, 0.004825592041015625, 0.0438232421875, -0.0134429931640625, -0.0004794597625732422, -0.019927978515625, 0.008087158203125, -0.01296234130859375, 0.0281829833984375, 0.01287078857421875, -0.00847625732421875, -0.0076446533203125, 0.039093017578125, -0.0063934326171875, 0.0035572052001953125, 0.03594970703125, 0.006439208984375, 0.004055023193359375, 0.0225067138671875, 0.042022705078125, 0.031219482421875, -0.07305908203125, 0.006855010986328125, -0.11846923828125, 0.024200439453125, -0.07147216796875, -0.0081787109375, 0.00942230224609375, 0.021636962890625, -0.06304931640625, -0.019317626953125, 0.0099334716796875, -0.0163726806640625, -0.028411865234375, 0.0335693359375, -0.0257110595703125, -0.00875091552734375, -0.0171051025390625, 0.03143310546875, 0.025115966796875, -0.002521514892578125, -0.01666259765625, 0.0217742919921875, 0.020538330078125, -0.037353515625, -0.027496337890625, 0.040191650390625, 0.0001418590545654297, -0.011505126953125, -0.027740478515625, -0.0240631103515625, 0.020263671875, 0.0059051513671875, -0.025909423828125, 0.006839752197265625, -0.0100555419921875, 0.013702392578125, -0.00591278076171875, -0.0301361083984375, -0.0183563232421875, 0.006378173828125, -0.0012273788452148438, -0.0025043487548828125, 0.0038776397705078125, -0.048797607421875, -0.0015420913696289062, -0.0036792755126953125, -0.051513671875, -0.08544921875, 0.0254669189453125, 0.034820556640625, -0.0237884521484375, 0.028289794921875, 0.02783203125, 0.0077972412109375, 0.0007781982421875, 0.0088653564453125, -0.04052734375, 0.0052032470703125, -0.033905029296875, 0.0306243896484375, 0.0121917724609375, -0.01605224609375, 0.0083160400390625, 0.05670166015625, 0.0350341796875, -0.01045989990234375, 0.062408447265625, -0.005828857421875, 0.008087158203125, -0.042694091796875, -0.021942138671875, -0.02825927734375, 0.0089263916015625, -0.0157470703125, 0.0124359130859375, 0.0216827392578125, 0.0440673828125, 0.03387451171875, -0.031494140625, 0.00876617431640625, 0.0206146240234375, -0.01050567626953125, -0.05084228515625, 0.00736236572265625, -0.00411224365234375, -0.010955810546875, 0.046966552734375, -0.00470733642578125, -0.0150299072265625, -0.02392578125, 0.015777587890625, 0.0322265625, -0.040924072265625, -0.016937255859375, 0.00640106201171875, 0.004756927490234375, -0.0033626556396484375, 0.0172882080078125, -0.02764892578125, 0.043304443359375, -0.0131378173828125, 0.0022563934326171875, 0.044464111328125, 0.02716064453125, -0.0004050731658935547, 0.0555419921875, -0.0080718994140625, 0.043792724609375, 0.01409149169921875, -0.01727294921875, 0.0030193328857421875, 0.03472900390625, -0.0254364013671875, -0.04058837890625, -0.0465087890625, 0.03173828125, -0.001613616943359375, 0.0056610107421875, 0.0016269683837890625, -0.0176544189453125, -0.0028324127197265625, -0.03204345703125, -0.0025501251220703125, 0.0242156982421875, -0.015533447265625, -0.0008459091186523438, 0.01300048828125, 0.0367431640625, 0.03106689453125, 0.0198822021484375, 0.03643798828125, 0.0290374755859375, 0.0130767822265625, -0.0131683349609375, 0.06298828125, 0.00838470458984375, -0.026153564453125, 0.01806640625, -0.010498046875, -0.0968017578125, -0.00829315185546875, 0.01165008544921875, 0.0562744140625, 0.045928955078125, 0.007328033447265625, 0.09613037109375, -0.027069091796875, -0.054901123046875, 0.035858154296875, 0.0045318603515625, -0.0106658935546875, -0.0240631103515625, 0.001495361328125, 0.0012464523315429688, -0.032501220703125, 0.0289154052734375, 0.0149078369140625, 0.0273895263671875, -0.0003886222839355469, -0.0194244384765625, 0.0207366943359375, -0.010345458984375, 0.035552978515625, 0.00670623779296875, 0.01544952392578125, -0.004238128662109375, -0.036163330078125, -0.006427764892578125, 0.013275146484375, -0.0243682861328125, -0.0209197998046875, 0.0107269287109375, -0.00982666015625, -0.0145111083984375, 0.0063629150390625, -0.0226898193359375, 0.01369476318359375, -0.03240966796875, 0.0222015380859375, 0.0394287109375, 0.037750244140625, -0.02972412109375, 0.007160186767578125, 0.00811767578125, 0.054962158203125, -0.09381103515625, 0.007293701171875, 0.0112762451171875, 0.042205810546875, -0.030914306640625, -0.0020294189453125, -0.01113128662109375, -0.00939178466796875, 0.017333984375, 0.035003662109375, 0.026123046875, 0.04736328125, -0.022705078125, -0.0187530517578125, 0.054168701171875, -0.055328369140625, -0.0115203857421875, -0.005107879638671875, 0.00205230712890625, 0.0263824462890625, 0.015838623046875, -0.004940032958984375, 0.03558349609375, -0.006023406982421875, 0.0065765380859375, 0.0154266357421875, 0.014801025390625, 0.0233154296875, -0.007175445556640625, -0.002651214599609375, -0.00014007091522216797, -0.0023136138916015625, -0.0286407470703125, -0.0023040771484375, 0.014068603515625, 0.0195770263671875, 0.0181884765625, 0.0259857177734375, -0.0151214599609375, 0.017181396484375, 0.006557464599609375, -0.022064208984375, 0.01212310791015625, 0.0389404296875, 0.048248291015625, -0.02593994140625, 0.0088043212890625, -0.03375244140625, -0.0002741813659667969, 0.00839996337890625, -0.005626678466796875, 0.044921875, -0.01019287109375, -0.01922607421875, -0.03265380859375, -0.04266357421875, -0.0014858245849609375, -0.0133514404296875, -0.0286102294921875, 0.0018463134765625, -0.006916046142578125, 0.0782470703125, 0.0211334228515625, 0.01377105712890625, 0.006381988525390625, 0.021148681640625, 0.0222015380859375, -0.0584716796875, 0.0540771484375, -0.042144775390625, 0.042022705078125, 0.0614013671875, -0.0249481201171875, 0.0201568603515625, 0.02740478515625, 0.0039825439453125, 0.05157470703125, -0.0034427642822265625, -0.01177978515625, 0.0372314453125, -0.101318359375, -0.035125732421875, 0.02410888671875, 0.00334930419921875, 0.014892578125, -0.0235137939453125, -0.00666046142578125, 0.006214141845703125, -0.08905029296875, -0.08563232421875, 0.06439208984375, -0.038177490234375, 0.03131103515625, 0.0149078369140625, -0.004673004150390625, -0.05133056640625, 0.01837158203125, -0.0013408660888671875, -0.0084075927734375, 0.00957489013671875, -0.04779052734375, -0.005290985107421875, -0.0460205078125, 0.026763916015625, -0.0310516357421875, 0.00018918514251708984, 0.0257110595703125, 0.0562744140625, 0.0228424072265625, -0.0716552734375, 0.03118896484375, 0.0264892578125, -0.0158843994140625, 0.042572021484375, 0.011260986328125, -0.018829345703125, -0.0178070068359375, 0.0162506103515625, -0.0013408660888671875, 0.0249481201171875, -0.0195159912109375, -0.0021457672119140625, -0.0506591796875, -0.0225372314453125, 0.01413726806640625, -0.041595458984375, 0.0308685302734375, 0.029296875, 0.044647216796875, -0.0205841064453125, 0.0009274482727050781, 0.0098114013671875, -0.0160980224609375, -0.0265045166015625, -0.00894927978515625, -0.028076171875, -0.0095367431640625, 0.0012273788452148438, 0.007289886474609375, -0.00661468505859375, -0.0110931396484375, -0.013580322265625, -0.00421142578125, 0.002948760986328125, 0.022613525390625, 0.0156707763671875, -0.0222930908203125, -0.0548095703125, 0.0241546630859375, -0.035614013671875, -0.0156402587890625, -0.0240325927734375, 0.0177154541015625, -0.0210418701171875, -0.0017242431640625, 0.032379150390625, 0.000644683837890625, 0.0078277587890625, -0.0217437744140625, -0.034332275390625, -0.02691650390625, 0.0672607421875, -0.050079345703125, -0.019256591796875, -0.01531219482421875, 0.0031375885009765625, 0.039642333984375, -0.0086822509765625, -0.01611328125, -0.028106689453125, -0.072021484375, 0.004833221435546875, -0.0186920166015625, -0.03277587890625, -0.0067596435546875, -0.058258056640625, -0.040252685546875, -0.03985595703125, 0.05645751953125, -0.0144805908203125, 0.03253173828125, -0.044342041015625, 0.0298309326171875, -0.047119140625, -0.0197601318359375, 0.0048828125, -0.01471710205078125, 0.0007891654968261719, -0.013671875, 0.0028896331787109375, 0.01508331298828125, 0.004974365234375, 0.009307861328125, 0.042724609375, 0.001613616943359375, 0.0274200439453125, -0.01508331298828125, -0.0213165283203125, 0.002178192138671875, 0.01366424560546875, 0.004150390625, -0.0140838623046875, -0.0288238525390625, -0.051544189453125, -0.00872802734375, 0.02056884765625, -0.0301513671875, 0.017852783203125, -0.045135498046875, 0.003063201904296875, -0.061920166015625, -0.0294189453125, -0.048675537109375, -0.0489501953125, -0.02154541015625, -0.03106689453125, 0.006221771240234375, -0.039642333984375, 0.06011962890625, 0.03375244140625, -0.0136871337890625, -0.0028133392333984375, 0.050537109375, -0.0017261505126953125, -0.05413818359375, -0.049652099609375, 0.0246124267578125, 0.04595947265625, -0.0293121337890625, 0.07177734375, 0.01331329345703125, -0.04498291015625, 0.1302490234375, 0.002727508544921875, 0.044464111328125, -0.04278564453125, 0.055633544921875, -0.01226806640625, -0.01043701171875, 0.04266357421875, -0.0012235641479492188, 0.00586700439453125, -0.005016326904296875, -0.021575927734375, 0.01107025146484375, 0.0022449493408203125, 0.01302337646484375, 0.00830841064453125, -0.01580810546875, -0.02313232421875, -0.028961181640625, 0.01459503173828125, 0.0418701171875, -0.002216339111328125, 0.0225067138671875, -0.0106658935546875, 0.00811767578125, 0.0034694671630859375, 0.0174407958984375, -0.02667236328125, -0.019775390625, -0.06427001953125, 0.03363037109375, -0.045379638671875, -0.0214080810546875, 0.0173797607421875, -0.009124755859375, 0.00717926025390625, -0.01155853271484375, -0.028228759765625, -0.00946807861328125, 0.0021419525146484375, -0.0086822509765625, 0.045135498046875, 0.00823211669921875, 0.004810333251953125, -0.0201263427734375, 0.0003962516784667969, 0.015869140625, -0.040557861328125, -0.00928497314453125, -0.0194549560546875, -0.003627777099609375, -0.029449462890625, -0.005496978759765625, 0.001209259033203125, 0.015380859375, -0.08612060546875, 0.0316162109375, 0.016754150390625, -0.00513458251953125, 0.021209716796875, 0.00086212158203125, 0.0191650390625, 0.01172637939453125, -0.0225067138671875, -0.007511138916015625, 0.02130126953125, 0.0116119384765625, 0.0098419189453125, 0.011138916015625, 0.0030670166015625, -0.0263214111328125, -0.008544921875, 0.019500732421875, -0.01971435546875, -0.0092926025390625, -0.0225067138671875, -0.052764892578125, 0.03045654296875, -0.041351318359375, -0.047027587890625, 0.0285186767578125, 0.038177490234375, 0.004283905029296875, 0.0022945404052734375, 0.024200439453125, 0.03216552734375, 0.006061553955078125, -0.025909423828125, 0.024200439453125, 0.03515625, -0.0103607177734375, -0.01515960693359375, -0.015350341796875, -0.051788330078125, -0.00897216796875, -0.016082763671875, -0.007137298583984375, 0.049530029296875, 0.018463134765625, 0.07427978515625, -0.0017566680908203125, -0.056793212890625, 0.044189453125, 0.00418853759765625, 0.0007476806640625, -0.034515380859375, -0.0965576171875, 0.0179443359375, -0.044189453125, 0.00936126708984375, -0.0013217926025390625, -0.00958251953125, -0.04791259765625, -0.024200439453125, -0.0242156982421875, -0.00032258033752441406, 0.01331329345703125, 0.01458740234375, -0.0207977294921875, 0.0177764892578125, 0.0171966552734375, -0.040557861328125, -0.01325225830078125, -0.024078369140625, 0.0216827392578125, -0.030670166015625, -0.0029201507568359375, -0.0226287841796875, -0.01446533203125, -0.01519775390625, -0.0127410888671875, -0.05767822265625, -0.03076171875, 0.00814056396484375, -0.033660888671875, 0.055633544921875, 0.06683349609375, 0.0084991455078125, 0.038665771484375, -0.034027099609375, -0.006855010986328125, -0.0177001953125, 0.023468017578125, -0.038482666015625, 0.0196380615234375, 0.035797119140625, 0.0008921623229980469, 0.015625, -0.022796630859375, -0.0006923675537109375, -0.0128326416015625, 0.0030307769775390625, -0.01399993896484375, 0.04400634765625, 0.0113372802734375, -0.007122039794921875, 0.0111083984375, 0.0045013427734375, 0.0217742919921875, 0.0203094482421875, 0.0147247314453125, -0.0014734268188476562, -0.0210723876953125, 0.0022125244140625, 0.01056671142578125, 0.040435791015625, -0.005519866943359375, 0.0052490234375, 0.061859130859375, -0.01910400390625, -0.037078857421875, -0.0005626678466796875, -0.0014209747314453125, 0.0031108856201171875, -0.0164337158203125, -0.01226806640625, -0.016510009765625, -0.0248870849609375, 0.0228271484375, -0.040435791015625, -0.0162200927734375, -0.004421234130859375, -0.0015764236450195312, -0.0200958251953125, 0.006969451904296875, 0.050079345703125, 0.0033245086669921875, 0.0193023681640625, 0.005382537841796875, -0.0191650390625, -0.037322998046875, -0.047821044921875, 0.01010894775390625, -0.029083251953125, -0.006351470947265625, 0.04730224609375, -0.00860595703125, -0.00882720947265625, -0.0174560546875, 0.032806396484375, 0.026519775390625, -0.0161895751953125, -0.0020771026611328125, -0.043548583984375, 0.03265380859375, 0.003520965576171875, -0.0125885009765625, -0.028900146484375, -0.01470184326171875, -0.07269287109375, 0.0052032470703125, 0.01421356201171875, 0.0285186767578125, -0.005016326904296875, 0.006927490234375, 0.0036983489990234375, -0.0234222412109375, -0.0157318115234375, -0.004791259765625, -0.053955078125, -0.00215911865234375, 0.0036773681640625, -0.01251220703125, 0.033599853515625, 0.02093505859375, -0.00821685791015625, 0.0178985595703125, -0.0087432861328125, -0.03411865234375, -0.005889892578125, 0.01275634765625, -0.0246124267578125, 0.025482177734375, 0.033843994140625, -0.0687255859375, 0.0267486572265625, 0.053497314453125, 0.021759033203125, 0.0303802490234375, -0.007465362548828125, -0.057647705078125, -0.04217529296875, -0.0460205078125, 0.0268096923828125, 0.0207366943359375, 0.0478515625, -0.035186767578125, -0.0157012939453125, 0.02496337890625, 0.044464111328125, 0.046417236328125, 0.0003731250762939453, -0.01175689697265625, 0.0010728836059570312, 0.0625, 0.042877197265625, 0.004535675048828125, 0.02801513671875, -0.0261077880859375, 0.00933074951171875, -0.00626373291015625, -0.031707763671875, 0.0272979736328125, -0.06072998046875, -0.03857421875, -0.010406494140625, 0.01508331298828125, 0.02008056640625, -0.02197265625, 0.0386962890625, -0.018280029296875, -0.021026611328125, 0.0187225341796875, 0.002681732177734375, -0.0016021728515625, 0.037384033203125, 0.058502197265625, -0.09930419921875, -0.0389404296875, -0.02886962890625, 0.05194091796875, 0.0146331787109375, 0.0007715225219726562, 0.0709228515625, 0.0245513916015625, 0.0401611328125, -0.056396484375, 0.00485992431640625, -0.04571533203125, 0.0012159347534179688, 0.051361083984375, -0.026153564453125, 0.00887298583984375, -0.09197998046875, -0.0325927734375, 0.006500244140625, 0.05902099609375, -0.029998779296875, -0.05889892578125, -0.0011739730834960938, 0.00623321533203125, 0.0310821533203125, -0.003696441650390625, -0.00479888916015625, -0.0040283203125, 0.053497314453125, -0.047637939453125, 0.037322998046875, 0.0249176025390625, 0.050048828125, -0.01081085205078125, 0.005756378173828125, -0.0859375, 0.0093994140625, -0.07470703125, 0.0350341796875, 0.032440185546875, 0.08270263671875, 0.0227203369140625, 0.03546142578125, -0.01324462890625, -0.0469970703125, 0.008697509765625, 0.0285491943359375, -0.0207977294921875, -0.006153106689453125, -0.037841796875, -0.08221435546875, 0.00261688232421875, 0.042327880859375, -0.0247039794921875, 0.019256591796875, 0.021087646484375, 0.057952880859375, -0.0061187744140625, -0.018341064453125, 0.069091796875, 0.0002734661102294922, -0.00945281982421875, -0.052337646484375, 0.0248870849609375, 0.034576416015625, 0.0146484375, 0.01500701904296875, -0.04071044921875, 0.0638427734375, -0.0115203857421875, 0.01007080078125, 0.0032863616943359375, -0.0181732177734375, 0.0192108154296875, -0.022064208984375, 0.000010669231414794922, -0.01165008544921875, -0.08538818359375, -0.012969970703125, -0.047698974609375, -0.0225067138671875, 0.060638427734375, 0.039276123046875, -0.02935791015625, 0.0213470458984375, 0.01165008544921875, -0.024139404296875, 0.0259552001953125, 0.01134490966796875, -0.014312744140625, 0.03643798828125, 0.034942626953125, 0.005321502685546875, -0.034637451171875, -0.0022678375244140625, -0.00015234947204589844, 0.019866943359375, 0.0224456787109375, 0.048004150390625, -0.007694244384765625, 0.0214996337890625, 0.006595611572265625, 0.0163421630859375, -0.0009703636169433594, -0.016693115234375, 0.063720703125, 0.01363372802734375, -0.0041046142578125, -0.0283355712890625, 0.015716552734375, 0.0523681640625, 0.006229400634765625, -0.03057861328125, 0.01861572265625, -0.0201263427734375, -0.0012607574462890625, 0.019439697265625, 0.0654296875, -0.01580810546875, -0.058624267578125, -0.0751953125, -0.0097503662109375, 0.028106689453125, 0.050018310546875, 0.004329681396484375, 0.0145111083984375, 0.0172882080078125, 0.03228759765625, 0.0028228759765625, 0.037750244140625, -0.0019016265869140625, 0.0208587646484375, -0.04461669921875, -0.0088043212890625, 0.0161590576171875, -0.0241851806640625, 0.031982421875, -0.015869140625, 0.053131103515625, -0.010040283203125, -0.0302886962890625, -0.0257720947265625, 0.0046539306640625, 0.0333251953125, -0.000240325927734375, 0.01983642578125, -0.0309600830078125, -0.003559112548828125, 0.021820068359375, 0.01146697998046875, -0.018096923828125, -0.0018157958984375, -0.04010009765625, -0.0082244873046875, -0.01491546630859375, -0.062286376953125, -0.06695556640625, -0.0302276611328125, 0.020751953125, -0.0077362060546875, -0.01175689697265625, -0.0009775161743164062, -0.019744873046875, -0.00991058349609375, -0.01192474365234375, 0.01255035400390625, -0.0014324188232421875, 0.0140228271484375, -0.04669189453125, -0.01531219482421875, -0.0195770263671875, 0.0031890869140625, -0.018829345703125, 0.02386474609375, 0.036773681640625, -0.04266357421875, -0.009918212890625, 0.04913330078125, 0.0377197265625, 0.09466552734375, -0.0014781951904296875, -0.000789642333984375, -0.0244903564453125, 0.034820556640625, -0.0633544921875, 0.0096893310546875, 0.047637939453125, 0.002094268798828125, -0.052978515625, 0.006816864013671875, -0.037933349609375, -0.0128936767578125, -0.049774169921875, -0.103759765625, 0.0819091796875, -0.015869140625, -0.045196533203125, -0.022613525390625, 0.00848388671875, -0.0026912689208984375, -0.025299072265625, -0.0005550384521484375, -0.01235198974609375, -0.01313018798828125, 0.007293701171875, 0.033538818359375, 0.03240966796875, 0.02618408203125, 0.00528717041015625, -0.038360595703125, -0.004161834716796875, -0.034881591796875, 0.032745361328125, 0.0150604248046875, -0.008819580078125, 0.00803375244140625, 0.0235137939453125, -0.043243408203125, -0.027801513671875, -0.00754547119140625, -0.0328369140625, 0.0430908203125, -0.035064697265625, -0.062255859375, -0.07550048828125, 0.0145721435546875, 0.004787445068359375, 0.0247650146484375, 0.0284576416015625, -0.0380859375, -0.00930023193359375, -0.022491455078125, -0.0013189315795898438, 0.033477783203125, -0.054473876953125, 0.020904541015625, -0.01201629638671875, -0.007091522216796875, 0.03265380859375, -0.01049041748046875, -0.0173797607421875, -0.00635528564453125, -0.02142333984375, -0.019622802734375, -0.026336669921875, 0.0266571044921875, 0.01763916015625, -0.0293731689453125, -0.0173797607421875, -0.01959228515625, 0.011627197265625, -0.019256591796875, -0.060028076171875, -0.0075836181640625, -0.0379638671875, 0.0185699462890625, 0.0310211181640625, 0.018829345703125, -0.0014410018920898438, 0.02679443359375, -0.0294189453125, -0.03009033203125, 0.00774383544921875, 0.0323486328125, 0.01560211181640625, -0.04156494140625, 0.01047515869140625, 0.0284881591796875, 0.0007114410400390625, 0.007122039794921875, -0.02850341796875, -0.024658203125, 0.03076171875, -0.01458740234375, -0.00634002685546875, 0.0010786056518554688, -0.01526641845703125, -0.00011146068572998047, 0.002941131591796875, -0.018341064453125, -0.0701904296875, 0.025146484375, -0.059844970703125, 0.01068115234375, 0.02569580078125 ]
5b24f82875bc1c111b9146d181f957f52fcf3aea
Wordpress Stackexchange Q: Remove [gallery] shortcode altogether I used remove_shortcode('gallery'); ...the gallery is gone, but the shortcode is visible in the text. How do I remove sitewide? I've searched for sql queries, but no solution fixes my specific problem. A: You can make it invisible with a simple trick: add_shortcode( 'gallery', '__return_false' ); This will remove the code from output without touching the post content.
Q: Remove [gallery] shortcode altogether I used remove_shortcode('gallery'); ...the gallery is gone, but the shortcode is visible in the text. How do I remove sitewide? I've searched for sql queries, but no solution fixes my specific problem. A: You can make it invisible with a simple trick: add_shortcode( 'gallery', '__return_false' ); This will remove the code from output without touching the post content. A: The short code is actually entered into then page or post content so disabling the short code processing prevents the gallery short code from being replaced with the gallery images but it doesn't affect the post content. The best solution is to add a new short code handler after removing the default gallery handles. Another less desirable approach would be to remove the short code tag from all posts and pages. Short code replacement would look something like this: function no_gallery($atts) { return ""; } add_shortcode('gallery', 'no_gallery'); A: The empty shortcode is a very nice trick, but if you want to remove the string [gallery] from all posts, there are two options: manually in the dashboard or a database search/replace. Although the database could be manipulated directly, in those cases (content replacement), I prefer to use the plugin Search and Replace, by Frank Bültge. As any database manipulation, backing up is essential.
wordpress
{ "language": "en", "length": 216, "provenance": "stackexchange_00019.jsonl.gz:427621", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/79957" }
[ 0.0455322265625, 0.006877899169921875, -0.004669189453125, 0.0272979736328125, 0.021026611328125, -0.055572509765625, 0.0853271484375, -0.0347900390625, 0.02923583984375, 0.025604248046875, -0.0189666748046875, -0.041534423828125, -0.039306640625, -0.01666259765625, -0.06463623046875, -0.04644775390625, 0.01392364501953125, 0.03863525390625, 0.028594970703125, 0.00922393798828125, -0.018280029296875, 0.014251708984375, 0.0048675537109375, 0.0229339599609375, 0.004726409912109375, 0.0008196830749511719, 0.080322265625, -0.00345611572265625, -0.004627227783203125, -0.0253753662109375, 0.0036525726318359375, 0.02142333984375, 0.000010192394256591797, 0.037261962890625, -0.03680419921875, 0.02154541015625, -0.04168701171875, 0.0341796875, 0.006397247314453125, 0.004337310791015625, 0.009796142578125, -0.002429962158203125, -0.019073486328125, -0.059783935546875, -0.0274505615234375, 0.0169677734375, -0.016998291015625, -0.01419830322265625, -0.01824951171875, 0.00566864013671875, 0.043426513671875, 0.052764892578125, 0.0635986328125, -0.02764892578125, -0.007564544677734375, -0.011627197265625, 0.005218505859375, -0.046630859375, 0.03216552734375, -0.0031890869140625, -0.01303863525390625, -0.0265045166015625, 0.02996826171875, -0.024993896484375, 0.0225067138671875, 0.01422882080078125, -0.0413818359375, 0.034515380859375, -0.04461669921875, 0.033721923828125, 0.0194549560546875, -0.0736083984375, 0.0205078125, -0.03314208984375, -0.03973388671875, 0.046356201171875, -0.0292205810546875, -0.0157318115234375, 0.040985107421875, -0.039154052734375, 0.022125244140625, 0.0218658447265625, -0.044708251953125, 0.019073486328125, -0.00691986083984375, 0.027618408203125, -0.00792694091796875, -0.042755126953125, 0.012725830078125, -0.0201873779296875, 0.006023406982421875, 0.005580902099609375, -0.019775390625, 0.02880859375, -0.016326904296875, -0.01702880859375, 0.0143280029296875, 0.068115234375, -0.00441741943359375, 0.0009927749633789062, -0.01334381103515625, -0.0224761962890625, -0.01148223876953125, -0.0279693603515625, 0.007694244384765625, -0.00553131103515625, -0.03173828125, 0.009033203125, 0.04364013671875, 0.04705810546875, -0.0258941650390625, -0.022613525390625, -0.045745849609375, 0.004161834716796875, -0.018524169921875, 0.039398193359375, -0.057281494140625, 0.0234375, -0.0232391357421875, 0.050689697265625, 0.025146484375, 0.021759033203125, -0.0236663818359375, -0.030120849609375, 0.006969451904296875, -0.00887298583984375, -0.04803466796875, 0.0018510818481445312, 0.05938720703125, -0.017852783203125, -0.034912109375, 0.026885986328125, 0.04266357421875, 0.015777587890625, 0.0128021240234375, -0.005283355712890625, -0.00475311279296875, -0.044952392578125, 0.01114654541015625, -0.0225677490234375, 0.038604736328125, -0.0218353271484375, 0.0006361007690429688, 0.0182952880859375, 0.0340576171875, 0.005901336669921875, 0.0226898193359375, 0.0300750732421875, -0.004360198974609375, -0.05291748046875, 0.0469970703125, 0.006378173828125, 0.032867431640625, 0.031402587890625, 0.0114288330078125, 0.021728515625, 0.1064453125, -0.03875732421875, -0.059722900390625, -0.06396484375, 0.0266571044921875, -0.0018014907836914062, 0.005298614501953125, -0.002552032470703125, -0.024658203125, -0.004486083984375, -0.0217437744140625, -0.0011587142944335938, 0.0206146240234375, 0.00913238525390625, 0.011749267578125, -0.0802001953125, -0.01401519775390625, 0.0293731689453125, 0.0012111663818359375, 0.07275390625, -0.0007534027099609375, 0.00024700164794921875, -0.00014972686767578125, 0.01503753662109375, -0.00921630859375, -0.035308837890625, -0.015625, 0.0153350830078125, -0.0738525390625, 0.038787841796875, 0.0338134765625, 0.05926513671875, -0.0277099609375, 0.0087432861328125, 0.11077880859375, 0.052886962890625, -0.038482666015625, 0.01277923583984375, 0.0010042190551757812, 0.0027141571044921875, -0.044647216796875, -0.0041351318359375, -0.01214599609375, -0.005725860595703125, 0.01235198974609375, 0.0141754150390625, 0.0260467529296875, 0.00621795654296875, -0.013580322265625, 0.037933349609375, -0.0212860107421875, 0.038116455078125, -0.0753173828125, -0.0055389404296875, 0.047119140625, -0.0184478759765625, -0.040924072265625, 0.04437255859375, 0.025543212890625, 0.01238250732421875, -0.009735107421875, 0.026885986328125, -0.0014896392822265625, 0.044708251953125, 0.00780487060546875, -0.041778564453125, -0.01183319091796875, -0.01434326171875, 0.01812744140625, -0.0192108154296875, -0.03741455078125, -0.0303802490234375, -0.034423828125, -0.0177154541015625, -0.0643310546875, 0.0701904296875, -0.0051422119140625, -0.01349639892578125, -0.0294647216796875, -0.02093505859375, 0.003570556640625, -0.053192138671875, 0.0155029296875, 0.0496826171875, 0.038604736328125, 0.0615234375, -0.00530242919921875, -0.033416748046875, 0.08990478515625, 0.009368896484375, 0.02337646484375, -0.038330078125, -0.0005898475646972656, 0.036376953125, -0.00431060791015625, 0.01148223876953125, 0.007373809814453125, -0.019775390625, 0.009735107421875, 0.0364990234375, -0.0008053779602050781, 0.017364501953125, 0.00713348388671875, 0.0308837890625, -0.0186920166015625, 0.01158905029296875, 0.016937255859375, -0.008575439453125, 0.0654296875, 0.01143646240234375, 0.048553466796875, 0.03717041015625, -0.053436279296875, 0.0219573974609375, 0.02008056640625, 0.0248565673828125, 0.0099029541015625, 0.034820556640625, 0.030029296875, 0.020263671875, -0.02581787109375, -0.0198516845703125, 0.0268096923828125, 0.03375244140625, -0.0212860107421875, 0.0134735107421875, 0.0011548995971679688, -0.01129913330078125, 0.01318359375, 0.0017499923706054688, 0.0216064453125, -0.01361083984375, -0.014434814453125, -0.01190948486328125, -0.006702423095703125, 0.060821533203125, -0.00281524658203125, 0.033477783203125, 0.00176239013671875, 0.0115966796875, -0.0191192626953125, -0.031158447265625, 0.0204010009765625, -0.027862548828125, 0.01270294189453125, 0.0657958984375, 0.00939178466796875, -0.00847625732421875, 0.016998291015625, -0.007808685302734375, 0.0140380859375, -0.015228271484375, -0.0038776397705078125, 0.024505615234375, -0.03790283203125, 0.0289764404296875, 0.02001953125, 0.005401611328125, -0.017578125, -0.0303497314453125, -0.030792236328125, 0.0130615234375, -0.07305908203125, -0.047698974609375, 0.0174102783203125, -0.0295867919921875, -0.0242919921875, 0.0145721435546875, -0.025726318359375, -0.00673675537109375, 0.043243408203125, -0.0041046142578125, 0.0123748779296875, -0.01678466796875, -0.01873779296875, -0.0178985595703125, -0.02130126953125, 0.008209228515625, 0.0035457611083984375, 0.003082275390625, 0.0014085769653320312, 0.08447265625, 0.00861358642578125, -0.043609619140625, -0.00453948974609375, -0.037353515625, -0.0211334228515625, 0.0240631103515625, 0.027740478515625, -0.03521728515625, -0.006511688232421875, 0.0155029296875, -0.06317138671875, -0.00154876708984375, 0.0214691162109375, -0.03460693359375, 0.00011169910430908203, -0.002216339111328125, 0.01058197021484375, -0.0010852813720703125, -0.0009860992431640625, -0.0036945343017578125, 0.004718780517578125, -0.0367431640625, -0.0283660888671875, 0.0098419189453125, -0.040618896484375, -0.0254364013671875, 0.003871917724609375, 0.00493621826171875, -0.025238037109375, 0.033355712890625, 0.004619598388671875, 0.01004791259765625, 0.0238800048828125, -0.030670166015625, 0.0328369140625, 0.00495147705078125, -0.0023441314697265625, -0.0226593017578125, 0.0226593017578125, -0.0396728515625, 0.015411376953125, 0.012054443359375, -0.032745361328125, 0.004451751708984375, 0.005863189697265625, 0.03753662109375, -0.0086517333984375, 0.03863525390625, 0.015869140625, 0.0350341796875, -0.0245361328125, -0.02691650390625, -0.0239410400390625, 0.045654296875, -0.03021240234375, -0.00395965576171875, 0.0269775390625, -0.023529052734375, 0.02667236328125, 0.018310546875, -0.0528564453125, -0.0340576171875, -0.12164306640625, 0.055328369140625, 0.00685882568359375, -0.0233917236328125, -0.03338623046875, -0.0587158203125, -0.0665283203125, -0.04290771484375, 0.029144287109375, 0.00344085693359375, 0.03173828125, -0.043670654296875, 0.0169219970703125, -0.04730224609375, -0.00031876564025878906, -0.0183258056640625, -0.0751953125, -0.0151519775390625, -0.0224761962890625, 0.07318115234375, 0.006458282470703125, -0.005420684814453125, -0.03955078125, 0.031494140625, 0.01020050048828125, 0.004329681396484375, -0.0214080810546875, -0.0224609375, -0.0390625, 0.054901123046875, -0.0012874603271484375, 0.005489349365234375, 0.003368377685546875, 0.00885772705078125, 0.01165008544921875, 0.0250091552734375, -0.02960205078125, -0.0419921875, 0.0035953521728515625, -0.0256500244140625, -0.0034885406494140625, -0.03729248046875, -0.006122589111328125, 0.0199127197265625, -0.00745391845703125, 0.014678955078125, -0.043548583984375, 0.00334930419921875, -0.0029010772705078125, 0.0009407997131347656, -0.061737060546875, 0.0310516357421875, 0.0290985107421875, 0.018707275390625, -0.0058746337890625, -0.0665283203125, 0.039642333984375, 0.038482666015625, 0.041900634765625, 0.015869140625, 0.0036773681640625, -0.0340576171875, 0.0310211181640625, 0.0241546630859375, 0.00676727294921875, -0.061431884765625, 0.07305908203125, -0.0247955322265625, -0.007053375244140625, 0.026519775390625, -0.034759521484375, 0.030853271484375, 0.004913330078125, -0.0038890838623046875, 0.0067138671875, -0.01169586181640625, 0.0079803466796875, 0.02032470703125, -0.01033782958984375, -0.0178985595703125, -0.005565643310546875, -0.003963470458984375, 0.0838623046875, 0.0133209228515625, -0.003814697265625, 0.009674072265625, -0.0227813720703125, 0.004787445068359375, 0.0189056396484375, -0.017913818359375, -0.01947021484375, -0.0584716796875, 0.039154052734375, -0.036346435546875, -0.00787353515625, 0.0174560546875, 0.0047454833984375, 0.01141357421875, 0.0201416015625, -0.012451171875, -0.0372314453125, 0.01214599609375, 0.0049285888671875, -0.0275726318359375, 0.045318603515625, 0.03900146484375, -0.006061553955078125, -0.004756927490234375, -0.0026798248291015625, -0.0153045654296875, 0.01343536376953125, -0.042938232421875, 0.0154876708984375, -0.0360107421875, -0.008270263671875, 0.02911376953125, -0.0209808349609375, -0.0775146484375, 0.0192718505859375, 0.015533447265625, -0.0086517333984375, -0.0174713134765625, 0.01000213623046875, 0.0107574462890625, 0.00608062744140625, 0.04425048828125, -0.005008697509765625, 0.050384521484375, -0.02288818359375, -0.0266876220703125, 0.032318115234375, 0.0197601318359375, 0.00916290283203125, 0.0183258056640625, -0.02264404296875, 0.005252838134765625, -0.00046825408935546875, -0.01296234130859375, -0.038177490234375, -0.035614013671875, -0.012115478515625, 0.0224151611328125, 0.02349853515625, -0.0203094482421875, 0.0037937164306640625, 0.01806640625, -0.00865936279296875, 0.0032749176025390625, 0.04010009765625, -0.031524658203125, -0.0311737060546875, -0.025482177734375, 0.0218658447265625, -0.003948211669921875, -0.0306549072265625, -0.0251312255859375, -0.0050811767578125, -0.01297760009765625, 0.001766204833984375, 0.049774169921875, -0.017364501953125, 0.010406494140625, -0.052154541015625, 0.028411865234375, -0.0219573974609375, 0.00228118896484375, 0.057220458984375, 0.0170745849609375, -0.0288543701171875, 0.0092620849609375, -0.035369873046875, -0.01885986328125, 0.0204315185546875, -0.01284027099609375, -0.04693603515625, -0.0286712646484375, -0.006969451904296875, 0.042022705078125, -0.013427734375, -0.0044097900390625, 0.0255584716796875, 0.0029659271240234375, -0.0236968994140625, 0.040313720703125, 0.0127105712890625, -0.00038909912109375, -0.0096893310546875, 0.042327880859375, 0.01210784912109375, -0.005290985107421875, 0.00489044189453125, -0.052154541015625, 0.03424072265625, 0.002101898193359375, -0.048583984375, -0.0161590576171875, 0.01641845703125, -0.018798828125, 0.01074981689453125, -0.01393890380859375, -0.0011587142944335938, 0.00534820556640625, -0.00908660888671875, -0.026123046875, 0.042083740234375, 0.006671905517578125, 0.041717529296875, -0.03265380859375, -0.0021419525146484375, 0.034271240234375, -0.0172882080078125, -0.051025390625, 0.0335693359375, 0.005207061767578125, 0.038848876953125, 0.00868988037109375, 0.0301666259765625, 0.044647216796875, 0.053497314453125, -0.04144287109375, 0.0259552001953125, 0.04840087890625, -0.0148162841796875, 0.0270233154296875, 0.007556915283203125, 0.000377655029296875, -0.0168609619140625, 0.06048583984375, 0.012298583984375, -0.01311492919921875, 0.050811767578125, -0.027923583984375, 0.01447296142578125, 0.033935546875, 0.067626953125, -0.0626220703125, 0.01493072509765625, 0.0266265869140625, -0.00007241964340209961, 0.02789306640625, -0.02984619140625, -0.004871368408203125, -0.044097900390625, 0.03594970703125, 0.0246734619140625, -0.0162200927734375, -0.0011653900146484375, -0.00787353515625, -0.002685546875, 0.0039825439453125, 0.033477783203125, 0.00933074951171875, -0.04913330078125, 0.0013170242309570312, 0.052032470703125, 0.0037822723388671875, -0.046173095703125, 0.00405120849609375, 0.037109375, -0.034332275390625, -0.07843017578125, 0.0280303955078125, 0.0167999267578125, -0.010467529296875, 0.015533447265625, -0.0170745849609375, -0.03753662109375, 0.0321044921875, -0.061676025390625, 0.041656494140625, 0.00168609619140625, -0.033233642578125, 0.0017566680908203125, -0.0251922607421875, 0.009613037109375, 0.0340576171875, -0.08892822265625, 0.0269927978515625, -0.039459228515625, 0.0250244140625, -0.028564453125, -0.030975341796875, 0.12457275390625, -0.08001708984375, -0.004642486572265625, 0.00228118896484375, 0.0235443115234375, -0.002925872802734375, -0.002246856689453125, 0.0150146484375, -0.01120758056640625, 0.0179901123046875, -0.00678253173828125, -0.032135009765625, -0.0224456787109375, -0.04339599609375, -0.1075439453125, 0.07159423828125, -0.00698089599609375, 0.070556640625, -0.00470733642578125, 0.0127716064453125, -0.0243682861328125, -0.01412200927734375, -0.02239990234375, 0.057708740234375, 0.044158935546875, 0.03741455078125, 0.0177764892578125, 0.00372314453125, 0.04705810546875, -0.0005474090576171875, 0.0151519775390625, 0.0021800994873046875, 0.0298614501953125, 0.004955291748046875, 0.055206298828125, 0.01494598388671875, -0.018463134765625, -0.0013647079467773438, -0.035003662109375, 0.006107330322265625, 0.031707763671875, -0.035858154296875, 0.0352783203125, -0.0114593505859375, -0.039459228515625, -0.0156707763671875, 0.008544921875, 0.006549835205078125, 0.049530029296875, 0.00714874267578125, -0.003376007080078125, 0.0206451416015625, 0.0195770263671875, -0.0175628662109375, -0.022003173828125, 0.0301513671875, 0.0021038055419921875, -0.057769775390625, -0.04986572265625, -0.02288818359375, 0.03607177734375, 0.0064849853515625, 0.04443359375, 0.041717529296875, 0.0330810546875, 0.043609619140625, -0.038238525390625, 0.0165252685546875, 0.0012874603271484375, -0.0406494140625, 0.00925445556640625, 0.016754150390625, 0.0024776458740234375, -0.0252838134765625, 0.028228759765625, 0.05084228515625, 0.01995849609375, -0.020477294921875, 0.002349853515625, 0.03045654296875, 0.01538848876953125, -0.0191650390625, -0.044158935546875, -0.01389312744140625, -0.05596923828125, -0.01428985595703125, -0.03521728515625, -0.0111846923828125, 0.0175018310546875, 0.0489501953125, -0.0090484619140625, 0.002567291259765625, -0.0325927734375, -0.05133056640625, -0.0528564453125, 0.005809783935546875, 0.0191650390625, 0.04193115234375, 0.031829833984375, 0.046478271484375, 0.0178070068359375, -0.0267791748046875, -0.04852294921875, 0.0140380859375, -0.035552978515625, 0.073486328125, -0.12353515625, -0.047576904296875, 0.00769805908203125, 0.086181640625, -0.0066070556640625, 0.018035888671875, 0.028839111328125, 0.0260467529296875, -0.00897216796875, -0.02325439453125, 0.010711669921875, -0.0230712890625, 0.028900146484375, -0.0186004638671875, 0.0196990966796875, 0.0046539306640625, -0.01094818115234375, -0.03594970703125, 0.010101318359375, 0.034698486328125, -0.049560546875, 0.01389312744140625, -0.011627197265625, -0.04266357421875, 0.034515380859375, -0.0132904052734375, 0.025054931640625, -0.0252838134765625, 0.0009822845458984375, 0.005710601806640625, -0.007724761962890625, -0.05169677734375, 0.01267242431640625, 0.0310821533203125, -0.03106689453125, 0.034454345703125, 0.02911376953125, -0.01068878173828125, 0.0081329345703125, 0.0181427001953125, -0.00958251953125, -0.038848876953125, 0.0228729248046875, -0.02972412109375, -0.0579833984375, -0.05224609375, -0.03302001953125, 0.053253173828125, 0.02606201171875, 0.0587158203125, -0.01474761962890625, 0.042510986328125, -0.0220489501953125, -0.020782470703125, 0.002960205078125, 0.006717681884765625, -0.017547607421875, 0.01018524169921875, -0.0059661865234375, -0.027252197265625, 0.00112152099609375, 0.02978515625, 0.027191162109375, -0.0241546630859375, 0.031829833984375, -0.0264129638671875, -0.00025010108947753906, -0.026123046875, 0.008636474609375, -0.008941650390625, -0.0190887451171875, -0.032989501953125, 0.004425048828125, 0.0259246826171875, 0.0026702880859375, -0.05218505859375, 0.0093536376953125, 0.048858642578125, -0.02923583984375, 0.045928955078125, -0.006809234619140625, 0.04638671875, 0.031280517578125, 0.037841796875, 0.013336181640625, -0.0012378692626953125, -0.01708984375, 0.01092529296875, 0.0338134765625, -0.0550537109375, 0.032012939453125, -0.05755615234375, -0.049560546875, 0.00608062744140625, 0.0241241455078125, -0.0033664703369140625, 0.0007243156433105469, -0.0313720703125, -0.036376953125, 0.0028095245361328125, 0.01172637939453125, 0.00495147705078125, -0.0211181640625, -0.025848388671875, 0.0131378173828125, -0.0225830078125, -0.01953125, -0.03271484375, -0.0018749237060546875, 0.031341552734375, 0.0260162353515625, -0.07415771484375, 0.03399658203125, 0.0218505859375, 0.0035381317138671875, 0.0299835205078125, -0.006671905517578125, -0.007343292236328125, 0.021575927734375, -0.0222930908203125, -0.034423828125, -0.031219482421875, 0.03338623046875, -0.03326416015625, 0.01605224609375, 0.004421234130859375, -0.0238494873046875, 0.0169219970703125, 0.03753662109375, 0.031951904296875, 0.08148193359375, 0.02239990234375, -0.039215087890625, -0.003803253173828125, -0.00009429454803466797, 0.0099639892578125, -0.001262664794921875, -0.0117950439453125, 0.00722503662109375, -0.0153350830078125, -0.0070343017578125, -0.0207977294921875, -0.0192108154296875, -0.053497314453125, -0.0989990234375, 0.039031982421875, -0.00504302978515625, -0.044830322265625, -0.0240631103515625, 0.0156707763671875, 0.01100921630859375, 0.021240234375, 0.00598907470703125, -0.015167236328125, -0.038055419921875, -0.0294342041015625, 0.0085296630859375, 0.048370361328125, -0.0005230903625488281, 0.0176239013671875, 0.0170135498046875, 0.023712158203125, -0.0031528472900390625, -0.0101165771484375, 0.019195556640625, -0.031829833984375, 0.050872802734375, 0.0217742919921875, -0.042999267578125, 0.0192718505859375, 0.0191650390625, 0.0159454345703125, 0.01312255859375, -0.03302001953125, -0.020782470703125, -0.037384033203125, 0.043365478515625, -0.00007236003875732422, 0.0115966796875, 0.0102386474609375, -0.0416259765625, 0.023773193359375, -0.0019445419311523438, -0.0079803466796875, 0.0238037109375, -0.05242919921875, -0.007476806640625, -0.047149658203125, -0.0000023245811462402344, -0.0053558349609375, -0.0290985107421875, -0.03082275390625, -0.0198822021484375, -0.033294677734375, 0.0006070137023925781, -0.05010986328125, -0.019561767578125, 0.0199737548828125, -0.0015420913696289062, 0.025726318359375, -0.0312042236328125, 0.025054931640625, 0.0256195068359375, 0.0030574798583984375, -0.0137786865234375, -0.0155181884765625, -0.005889892578125, 0.020050048828125, 0.004726409912109375, 0.0031890869140625, -0.00830841064453125, 0.0070343017578125, -0.019683837890625, 0.00708770751953125, 0.02154541015625, 0.0177154541015625, -0.020111083984375, 0.026275634765625, 0.037017822265625, 0.00162506103515625, -0.02001953125, 0.0288238525390625, -0.006076812744140625, 0.0186004638671875, -0.0222930908203125, -0.0016574859619140625, 0.038818359375, -0.038604736328125, -0.00634765625, 0.01143646240234375, -0.01477813720703125, -0.09478759765625, 0.038909912109375, -0.01480865478515625, 0.037445068359375, 0.0390625 ]
097951aea1f83d799e84643a5d7d6820bb4709cf
Wordpress Stackexchange Q: How to make WordPress use protocol indepentent upload files? I am using FORCE_SSL_ADMIN in wp-config.php so everytime I upload a new image and inserted into the post, it is using SSL version e.g. <img src="https://www.example.com/wp-content/uploads/2013/01/test.png" .. My blog is using HTTP in the public side, so how to make the upload path as rotocol independent, e.g. <img src="//www.example.com/wp-content/uploads/2013/01/test.png" .. A: You can define a function to remove the protocol and hook it to the attachment URL: function wpse_79958_remove_protocol_from_attachment($url) { $url = str_replace(array('http:', 'https:'), '', $url); return $url; } add_filter( 'attachment_link', 'wpse_79958_remove_protocol_from_attachment' ); Also consider to use relative URLs for attachments by using WordPress builtin function wp_make_link_relative: add_filter( 'attachment_link', 'wp_make_link_relative' ); Place this code to your functions.php. Not tested though. Update: already tested
Q: How to make WordPress use protocol indepentent upload files? I am using FORCE_SSL_ADMIN in wp-config.php so everytime I upload a new image and inserted into the post, it is using SSL version e.g. <img src="https://www.example.com/wp-content/uploads/2013/01/test.png" .. My blog is using HTTP in the public side, so how to make the upload path as rotocol independent, e.g. <img src="//www.example.com/wp-content/uploads/2013/01/test.png" .. A: You can define a function to remove the protocol and hook it to the attachment URL: function wpse_79958_remove_protocol_from_attachment($url) { $url = str_replace(array('http:', 'https:'), '', $url); return $url; } add_filter( 'attachment_link', 'wpse_79958_remove_protocol_from_attachment' ); Also consider to use relative URLs for attachments by using WordPress builtin function wp_make_link_relative: add_filter( 'attachment_link', 'wp_make_link_relative' ); Place this code to your functions.php. Not tested though. Update: already tested
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:427622", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/79958" }
[ 0.06591796875, -0.00812530517578125, 0.0088958740234375, -0.01293182373046875, 0.01384735107421875, -0.05328369140625, 0.0765380859375, -0.020263671875, -0.0202789306640625, 0.014556884765625, 0.03607177734375, -0.00865936279296875, -0.00594329833984375, -0.053619384765625, 0.0261688232421875, -0.0107879638671875, 0.015380859375, 0.00272369384765625, 0.030120849609375, 0.0012464523315429688, 0.00519561767578125, 0.019287109375, 0.00762939453125, -0.0293731689453125, -0.0114288330078125, 0.00592041015625, 0.10247802734375, -0.026031494140625, -0.0092620849609375, -0.0260772705078125, 0.006587982177734375, -0.01477813720703125, 0.029205322265625, 0.022857666015625, -0.0579833984375, -0.051177978515625, -0.01149749755859375, 0.0059356689453125, -0.045501708984375, 0.033111572265625, 0.0033321380615234375, 0.0022945404052734375, 0.048797607421875, -0.0181427001953125, -0.006534576416015625, -0.0162353515625, 0.006244659423828125, -0.0340576171875, 0.021636962890625, 0.071533203125, 0.016815185546875, 0.024627685546875, 0.01519775390625, 0.01407623291015625, -0.01092529296875, -0.0299072265625, -0.04266357421875, 0.044769287109375, 0.023834228515625, -0.0206146240234375, -0.0247955322265625, 0.00598907470703125, 0.00873565673828125, 0.0098114013671875, 0.014373779296875, -0.0090179443359375, -0.000873565673828125, 0.0204315185546875, -0.07000732421875, -0.0146331787109375, 0.03485107421875, -0.046783447265625, -0.003269195556640625, -0.0296478271484375, -0.011444091796875, 0.0168914794921875, -0.007099151611328125, -0.006031036376953125, 0.016937255859375, -0.01171112060546875, 0.03192138671875, 0.0014944076538085938, -0.0386962890625, 0.00010192394256591797, 0.0213165283203125, 0.031097412109375, 0.004665374755859375, -0.038116455078125, -0.029937744140625, 0.016693115234375, -0.0252532958984375, -0.0124053955078125, 0.029449462890625, -0.00836944580078125, -0.0384521484375, -0.00864410400390625, 0.043609619140625, 0.0013675689697265625, 0.0246429443359375, 0.0111541748046875, 0.0193634033203125, -0.06866455078125, 0.04541015625, -0.0185546875, 0.0008020401000976562, 0.0164337158203125, -0.01348114013671875, -0.01349639892578125, 0.05474853515625, 0.0306243896484375, 0.0007648468017578125, 0.037994384765625, 0.0002269744873046875, 0.0005846023559570312, -0.01551055908203125, 0.0160369873046875, -0.031341552734375, 0.0261688232421875, -0.017364501953125, 0.028778076171875, -0.01153564453125, -0.002960205078125, -0.035003662109375, 0.007282257080078125, 0.0318603515625, 0.00849151611328125, -0.01520538330078125, 0.021087646484375, 0.0007042884826660156, 0.013519287109375, -0.0396728515625, 0.01445770263671875, 0.05645751953125, 0.021392822265625, 0.019287109375, -0.0124359130859375, -0.01345062255859375, -0.02777099609375, -0.0386962890625, 0.044921875, 0.013580322265625, -0.06396484375, -0.03314208984375, 0.01180267333984375, 0.01409912109375, 0.0271759033203125, 0.0285797119140625, 0.0244140625, -0.00949859619140625, -0.054656982421875, 0.031829833984375, -0.0190582275390625, 0.050079345703125, 0.0040283203125, -0.028350830078125, -0.057586669921875, 0.05120849609375, -0.06109619140625, -0.0015277862548828125, -0.0897216796875, 0.0202178955078125, 0.00420379638671875, 0.029998779296875, 0.0010128021240234375, -0.00395965576171875, -0.011138916015625, -0.050567626953125, -0.0140228271484375, 0.0278778076171875, 0.047698974609375, 0.012115478515625, -0.015777587890625, -0.037200927734375, 0.03155517578125, 0.007282257080078125, 0.0242767333984375, -0.00965118408203125, 0.058929443359375, 0.007354736328125, 0.055450439453125, 0.0244140625, -0.043670654296875, 0.08135986328125, -0.022186279296875, -0.0484619140625, 0.0443115234375, 0.0009517669677734375, 0.041015625, 0.01076507568359375, 0.005290985107421875, 0.048828125, 0.016510009765625, -0.0061492919921875, 0.0148468017578125, -0.026519775390625, -0.040985107421875, -0.0217132568359375, -0.00968170166015625, -0.0306854248046875, 0.030517578125, -0.01453399658203125, -0.00659942626953125, 0.0267181396484375, 0.040618896484375, 0.050079345703125, 0.020233154296875, -0.00677490234375, 0.009979248046875, -0.046966552734375, 0.0025272369384765625, 0.04278564453125, 0.00180816650390625, -0.0305633544921875, -0.04437255859375, 0.0174407958984375, 0.018798828125, 0.01812744140625, 0.0191802978515625, -0.00995635986328125, 0.04974365234375, -0.019287109375, -0.033447265625, -0.031463623046875, 0.0035724639892578125, -0.0030918121337890625, 0.0119781494140625, -0.0265045166015625, 0.005466461181640625, 0.00450897216796875, 0.0010318756103515625, 0.01091766357421875, 0.025787353515625, -0.0247802734375, 0.007350921630859375, -0.02447509765625, -0.01824951171875, -0.0174560546875, -0.05572509765625, 0.0254974365234375, 0.0438232421875, 0.056121826171875, 0.047027587890625, -0.00786590576171875, -0.036895751953125, 0.07403564453125, -0.0191802978515625, 0.0272216796875, -0.04266357421875, -0.0296783447265625, -0.029510498046875, -0.01349639892578125, -0.008880615234375, 0.0287933349609375, -0.04351806640625, 0.01433563232421875, 0.03240966796875, 0.00978851318359375, -0.005168914794921875, 0.00688934326171875, 0.019775390625, -0.0089874267578125, 0.01470184326171875, 0.00402069091796875, -0.01007080078125, 0.00682830810546875, 0.004856109619140625, 0.036163330078125, 0.02294921875, -0.0091400146484375, -0.0037250518798828125, 0.00688934326171875, -0.01415252685546875, -0.02520751953125, 0.0360107421875, 0.041168212890625, -0.01544189453125, -0.01322174072265625, 0.00839996337890625, -0.0345458984375, 0.00731658935546875, -0.033721923828125, 0.0058441162109375, 0.04034423828125, -0.00902557373046875, -0.041107177734375, -0.03314208984375, 0.06329345703125, -0.0167236328125, 0.0240325927734375, -0.0030803680419921875, 0.04168701171875, -0.0289306640625, 0.003170013427734375, 0.005817413330078125, 0.013519287109375, -0.034881591796875, -0.025665283203125, -0.0236358642578125, 0.039794921875, -0.043548583984375, 0.051177978515625, 0.06170654296875, -0.041778564453125, 0.042083740234375, -0.0165863037109375, 0.016754150390625, -0.01788330078125, 0.00498199462890625, -0.0145416259765625, -0.00536346435546875, -0.0592041015625, -0.0159149169921875, -0.017608642578125, -0.111328125, -0.0004379749298095703, -0.0034942626953125, -0.034820556640625, -0.06719970703125, -0.11151123046875, -0.035430908203125, -0.016815185546875, -0.10516357421875, 0.0316162109375, 0.028533935546875, -0.045745849609375, -0.0164031982421875, 0.083740234375, 0.018157958984375, -0.0098724365234375, -0.0185546875, -0.046173095703125, -0.030517578125, -0.057586669921875, 0.019195556640625, -0.0026416778564453125, 0.011749267578125, 0.006130218505859375, 0.018707275390625, 0.00885772705078125, -0.004245758056640625, 0.034759521484375, 0.029205322265625, 0.0023670196533203125, -0.01085662841796875, -0.0163116455078125, 0.0014619827270507812, -0.0028533935546875, -0.00455474853515625, 0.0687255859375, 0.01654052734375, -0.0258026123046875, -0.0020656585693359375, -0.0210418701171875, 0.002925872802734375, 0.00933837890625, 0.00791168212890625, 0.0092315673828125, -0.01105499267578125, -0.005802154541015625, -0.0556640625, 0.003063201904296875, -0.0098419189453125, -0.0243377685546875, -0.0071868896484375, -0.0209197998046875, -0.0103607177734375, -0.0043792724609375, 0.022216796875, -0.01088714599609375, 0.0006542205810546875, 0.0164947509765625, -0.0292205810546875, 0.0201263427734375, -0.00957489013671875, 0.0013208389282226562, -0.00789642333984375, 0.03314208984375, 0.0011320114135742188, -0.03125, -0.0032634735107421875, 0.0084991455078125, -0.00897979736328125, -0.004673004150390625, -0.03118896484375, -0.044921875, 0.043853759765625, -0.032501220703125, 0.00868988037109375, -0.0311737060546875, -0.0110015869140625, -0.01800537109375, 0.06793212890625, -0.01503753662109375, -0.0196533203125, -0.0079345703125, 0.03729248046875, -0.039825439453125, -0.0723876953125, 0.00226593017578125, -0.007049560546875, -0.043365478515625, -0.01255035400390625, -0.00839996337890625, -0.0303497314453125, 0.0092315673828125, -0.040618896484375, -0.01410675048828125, -0.038543701171875, 0.0269927978515625, 0.028045654296875, -0.00821685791015625, 0.0302276611328125, -0.027862548828125, 0.0297698974609375, -0.02337646484375, 0.00131988525390625, -0.07403564453125, -0.01983642578125, -0.006549835205078125, 0.0555419921875, -0.032135009765625, 0.037078857421875, -0.025360107421875, 0.0638427734375, 0.006023406982421875, -0.0032958984375, -0.006748199462890625, -0.022125244140625, 0.0189666748046875, 0.044281005859375, 0.0010042190551757812, 0.0143890380859375, 0.004547119140625, -0.03656005859375, -0.09185791015625, -0.045928955078125, -0.00420379638671875, 0.033721923828125, 0.036590576171875, -0.032501220703125, -0.05816650390625, -0.033416748046875, -0.004085540771484375, 0.019744873046875, 0.00266265869140625, -0.00013828277587890625, -0.03759765625, -0.041290283203125, 0.049285888671875, -0.01244354248046875, -0.004291534423828125, 0.0034008026123046875, 0.056732177734375, 0.01113128662109375, 0.0025787353515625, -0.024169921875, 0.028228759765625, 0.0222625732421875, -0.0284576416015625, 0.09576416015625, 0.05230712890625, 0.028350830078125, 0.023956298828125, -0.0051116943359375, 0.016845703125, -0.01824951171875, -0.0008807182312011719, 0.0082244873046875, -0.0039825439453125, 0.020416259765625, 0.03155517578125, 0.01035308837890625, 0.013336181640625, 0.0037384033203125, -0.0281982421875, 0.00829315185546875, 0.0199737548828125, 0.00762176513671875, 0.0032806396484375, -0.0158843994140625, -0.052154541015625, 0.026123046875, -0.07196044921875, 0.028533935546875, 0.00855255126953125, -0.01178741455078125, 0.01082611083984375, 0.0299835205078125, 0.007373809814453125, -0.0126495361328125, 0.03759765625, -0.038665771484375, 0.05712890625, -0.02178955078125, -0.03338623046875, -0.020904541015625, -0.014007568359375, 0.0224456787109375, 0.045257568359375, 0.002170562744140625, 0.016571044921875, 0.0005307197570800781, -0.018096923828125, -0.0273895263671875, -0.048919677734375, 0.0189056396484375, 0.0022945404052734375, -0.0374755859375, -0.0008111000061035156, -0.045135498046875, -0.040771484375, -0.0484619140625, 0.049774169921875, 0.009002685546875, 0.006336212158203125, 0.02117919921875, 0.020111083984375, 0.005596160888671875, 0.0214996337890625, -0.013275146484375, 0.0106048583984375, 0.046173095703125, -0.0158538818359375, 0.0159759521484375, 0.020599365234375, -0.00803375244140625, -0.01303863525390625, 0.047332763671875, -0.0782470703125, -0.00021147727966308594, 0.01290130615234375, 0.06829833984375, -0.007045745849609375, -0.043182373046875, 0.0175323486328125, -0.0299530029296875, -0.0178985595703125, 0.02130126953125, 0.03948974609375, -0.0201263427734375, -0.02642822265625, 0.0165252685546875, 0.021728515625, 0.0171051025390625, -0.0274658203125, 0.008209228515625, -0.002376556396484375, 0.0088958740234375, 0.03302001953125, -0.055206298828125, 0.02239990234375, 0.03558349609375, 0.0309600830078125, -0.0237274169921875, -0.04296875, 0.0155487060546875, 0.028350830078125, -0.032501220703125, -0.005680084228515625, 0.06854248046875, -0.026153564453125, 0.01490020751953125, -0.014251708984375, -0.001163482666015625, -0.03021240234375, 0.0217742919921875, 0.0154571533203125, 0.00856781005859375, -0.0283203125, -0.02130126953125, -0.02764892578125, -0.0199127197265625, 0.00844573974609375, 0.0156707763671875, -0.0261383056640625, -0.00437164306640625, 0.016021728515625, 0.038604736328125, -0.00618743896484375, 0.0009393692016601562, -0.0164031982421875, -0.00365447998046875, 0.0025424957275390625, 0.0556640625, 0.00943756103515625, 0.073486328125, -0.033782958984375, 0.0753173828125, 0.002635955810546875, 0.01012420654296875, -0.06951904296875, 0.00396728515625, -0.0151519775390625, -0.08465576171875, -0.01430511474609375, 0.029449462890625, -0.040130615234375, 0.033111572265625, -0.004730224609375, 0.008697509765625, 0.02996826171875, -0.024688720703125, -0.0029163360595703125, -0.031707763671875, 0.040618896484375, -0.04046630859375, 0.0151824951171875, 0.018157958984375, -0.008544921875, 0.0172882080078125, -0.0023365020751953125, -0.006526947021484375, 0.015655517578125, -0.00457000732421875, 0.0081024169921875, 0.020599365234375, 0.03369140625, -0.00522613525390625, 0.06390380859375, 0.009246826171875, 0.063232421875, 0.051055908203125, 0.0301361083984375, 0.041259765625, 0.0252532958984375, -0.015625, -0.01058197021484375, 0.0149078369140625, 0.0011692047119140625, -0.02459716796875, 0.00321197509765625, -0.025421142578125, 0.04180908203125, 0.031341552734375, 0.07049560546875, -0.022216796875, 0.007534027099609375, 0.0049896240234375, -0.045196533203125, 0.03790283203125, -0.0013256072998046875, -0.017852783203125, -0.0185699462890625, 0.01158905029296875, -0.00910186767578125, -0.03631591796875, -0.0166015625, 0.01245880126953125, -0.0169219970703125, 0.03314208984375, 0.01267242431640625, 0.0175018310546875, -0.0201263427734375, -0.037628173828125, 0.03253173828125, -0.00391387939453125, 0.02911376953125, 0.0160064697265625, -0.00927734375, -0.017120361328125, -0.0343017578125, -0.037872314453125, -0.042724609375, -0.021759033203125, 0.003551483154296875, -0.030426025390625, 0.055145263671875, 0.045928955078125, -0.0012311935424804688, -0.007022857666015625, 0.0272979736328125, 0.0110015869140625, 0.01641845703125, -0.0229339599609375, 0.0193023681640625, 0.040283203125, -0.058807373046875, 0.0105743408203125, -0.035247802734375, 0.005657196044921875, -0.00991058349609375, 0.0084686279296875, 0.107177734375, -0.0299835205078125, -0.035736083984375, 0.0296478271484375, 0.0159149169921875, -0.026885986328125, 0.0033168792724609375, 0.0494384765625, -0.053680419921875, -0.052215576171875, 0.0166778564453125, -0.052276611328125, -0.01105499267578125, -0.01312255859375, -0.0655517578125, 0.10101318359375, -0.0308380126953125, 0.06292724609375, 0.016510009765625, 0.0268096923828125, 0.0016269683837890625, 0.01316070556640625, -0.035888671875, 0.022003173828125, 0.008270263671875, 0.005619049072265625, -0.0504150390625, -0.0025844573974609375, -0.035858154296875, 0.04608154296875, 0.07373046875, 0.020172119140625, -0.0372314453125, 0.0013256072998046875, 0.0860595703125, 0.0450439453125, 0.0122833251953125, 0.0494384765625, -0.0279388427734375, -0.006198883056640625, 0.01461029052734375, -0.0128326416015625, 0.018951416015625, -0.015899658203125, -0.028289794921875, 0.01421356201171875, 0.04290771484375, 0.06268310546875, 0.002056121826171875, 0.053558349609375, -0.054840087890625, 0.006458282470703125, 0.0655517578125, -0.01409149169921875, 0.0272064208984375, -0.007259368896484375, -0.0211181640625, 0.0127410888671875, -0.01177215576171875, 0.00745391845703125, 0.0228424072265625, -0.017608642578125, -0.0080413818359375, 0.051849365234375, 0.0235595703125, -0.0005269050598144531, 0.010894775390625, -0.00011360645294189453, -0.002689361572265625, 0.006710052490234375, 0.00614166259765625, -0.008636474609375, -0.0008373260498046875, -0.0313720703125, 0.041656494140625, 0.048797607421875, 0.0166168212890625, -0.03472900390625, -0.033416748046875, 0.01409912109375, -0.0305023193359375, 0.00331878662109375, 0.0010128021240234375, 0.0139007568359375, -0.06573486328125, -0.056854248046875, 0.00372314453125, 0.0135040283203125, 0.029449462890625, 0.0223541259765625, 0.030426025390625, 0.068603515625, -0.0743408203125, -0.0016040802001953125, -0.017120361328125, -0.039794921875, 0.0205841064453125, 0.030548095703125, 0.00920867919921875, 0.02142333984375, 0.0164642333984375, 0.0008649826049804688, 0.024200439453125, 0.017425537109375, -0.010040283203125, -0.0254974365234375, 0.006549835205078125, -0.04693603515625, -0.0051422119140625, 0.0268402099609375, 0.0303955078125, 0.04400634765625, 0.06689453125, 0.0124053955078125, -0.03125, 0.003452301025390625, 0.03802490234375, -0.0217742919921875, 0.0199737548828125, -0.04595947265625, 0.01039886474609375, 0.005962371826171875, -0.018341064453125, 0.012939453125, -0.05279541015625, 0.0665283203125, -0.00737762451171875, 0.056610107421875, -0.01461029052734375, -0.0012874603271484375, 0.03729248046875, -0.045440673828125, 0.021575927734375, -0.017974853515625, -0.051116943359375, -0.00039577484130859375, -0.032501220703125, -0.0171051025390625, 0.01529693603515625, 0.021240234375, -0.037078857421875, 0.0596923828125, 0.01195526123046875, -0.0290374755859375, 0.00966644287109375, -0.0004215240478515625, -0.00009465217590332031, -0.01068115234375, 0.0198822021484375, -0.01378631591796875, 0.0160064697265625, 0.0200042724609375, 0.00783538818359375, 0.0217132568359375, 0.00567626953125, 0.0989990234375, -0.049652099609375, 0.0093994140625, 0.02288818359375, 0.03668212890625, -0.017059326171875, 0.0308074951171875, -0.020843505859375, 0.012420654296875, 0.0249481201171875, -0.016998291015625, 0.02099609375, 0.01187896728515625, 0.027862548828125, -0.050537109375, 0.00215911865234375, -0.0167236328125, 0.012603759765625, -0.0094757080078125, 0.0167694091796875, -0.03460693359375, -0.0171356201171875, -0.03692626953125, -0.01543426513671875, 0.0302734375, 0.0027828216552734375, -0.013519287109375, 0.044677734375, -0.0212860107421875, 0.005306243896484375, 0.0215911865234375, -0.036895751953125, 0.0184478759765625, 0.0158538818359375, -0.0201263427734375, -0.0122528076171875, 0.0146484375, -0.02056884765625, -0.00753021240234375, -0.0142822265625, 0.042724609375, -0.017791748046875, -0.039459228515625, -0.015838623046875, 0.01187896728515625, 0.027069091796875, -0.01898193359375, 0.00884246826171875, 0.0097198486328125, -0.00005936622619628906, -0.01502227783203125, -0.01444244384765625, -0.01971435546875, -0.0048370361328125, -0.0186309814453125, 0.0006060600280761719, 0.01512908935546875, -0.059356689453125, -0.003116607666015625, -0.01309967041015625, 0.06884765625, 0.030364990234375, -0.05902099609375, 0.0178375244140625, -0.01177215576171875, 0.05267333984375, 0.0274658203125, 0.048675537109375, -0.0244598388671875, 0.034088134765625, -0.04339599609375, -0.09161376953125, -0.02227783203125, 0.087158203125, -0.06182861328125, 0.0189971923828125, 0.05010986328125, -0.0229339599609375, 0.01297760009765625, 0.01320648193359375, 0.0161895751953125, 0.06610107421875, -0.054351806640625, -0.012176513671875, -0.005702972412109375, 0.008819580078125, -0.015716552734375, -0.024993896484375, 0.015655517578125, -0.0333251953125, -0.025360107421875, -0.00995635986328125, 0.0011425018310546875, 0.004673004150390625, -0.039520263671875, -0.0633544921875, 0.0399169921875, -0.023529052734375, -0.0369873046875, -0.04345703125, 0.0108489990234375, -0.01238250732421875, 0.04510498046875, -0.00467681884765625, -0.0190887451171875, -0.00431060791015625, 0.042816162109375, -0.001453399658203125, 0.06048583984375, -0.0367431640625, 0.00015294551849365234, 0.0094146728515625, 0.034759521484375, 0.021331787109375, 0.01324462890625, 0.0264434814453125, -0.0023097991943359375, 0.052642822265625, 0.0340576171875, -0.01416778564453125, 0.07305908203125, 0.008575439453125, -0.05126953125, -0.0175018310546875, -0.0014772415161132812, -0.006549835205078125, 0.00946044921875, 0.059417724609375, 0.0574951171875, 0.01287841796875, -0.027313232421875, -0.0237884521484375, 0.01345062255859375, -0.006656646728515625, 0.0006504058837890625, 0.015869140625, -0.045257568359375, -0.010711669921875, -0.01535797119140625, 0.01033782958984375, -0.012420654296875, -0.021148681640625, -0.014251708984375, -0.02020263671875, 0.0157623291015625, 0.0156707763671875, -0.024932861328125, 0.00016200542449951172, 0.0697021484375, -0.04547119140625, 0.005168914794921875, -0.002567291259765625, 0.02203369140625, 0.035186767578125, -0.01267242431640625, 0.0026397705078125, 0.0369873046875, -0.027618408203125, 0.0177154541015625, 0.0219879150390625, -0.012176513671875, -0.021728515625, 0.005420684814453125, -0.04742431640625, -0.0013904571533203125, 0.0245208740234375, -0.005817413330078125, -0.01528167724609375, -0.0122222900390625, 0.0155792236328125, 0.03857421875, -0.02740478515625, -0.0082244873046875, -0.0177001953125, -0.004505157470703125, -0.02166748046875, 0.007038116455078125, 0.040130615234375, -0.050018310546875, 0.0064697265625, -0.00389862060546875, -0.0284423828125, -0.007801055908203125, -0.004947662353515625, -0.04449462890625, -0.0165252685546875, -0.0012769699096679688 ]
37e0c0cadf112005aec62ca120afe4185d51ec3f
Wordpress Stackexchange Q: Display tags in list without link This seems like it should be something that's really simple to do, however it's apparently not. I don't want tags to be links, but I want them to display in an unordered list, with each tag inside an <li> get_the_tags allows you to echo them without the associated link, but I have no idea how to wrap them in li's. <?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ' '; } } ?> A: This would do it... <?php $posttags = get_the_tags(); if ($posttags) { echo '<ul>'; foreach($posttags as $tag) { echo '<li>' .$tag->name. '</li>'; } echo '</ul>'; } ?>
Q: Display tags in list without link This seems like it should be something that's really simple to do, however it's apparently not. I don't want tags to be links, but I want them to display in an unordered list, with each tag inside an <li> get_the_tags allows you to echo them without the associated link, but I have no idea how to wrap them in li's. <?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ' '; } } ?> A: This would do it... <?php $posttags = get_the_tags(); if ($posttags) { echo '<ul>'; foreach($posttags as $tag) { echo '<li>' .$tag->name. '</li>'; } echo '</ul>'; } ?> A: add_action( 'loop_start', 'list_tags' ); function list_tags() { $tags = get_tags( array('orderby' => 'count', 'order' => 'DESC') ); foreach ( (array) $tags as $tag ) { echo '<li>' . $tag->name . '</li>'; } } Use any WordPress or theme specific hook from your functions file. A: This is my preferred solution, to wrap the request with strip_tags to retain formatting options. Here is the code: <?php echo strip_tags ( get_the_tag_list( '<span>', ',&nbsp;', '</span>' ) ); ?> You can also do this for categories. <?php echo strip_tags ( get_the_category_list( '<span>', ',&nbsp;', '</span>' ) ); ?>
wordpress
{ "language": "en", "length": 207, "provenance": "stackexchange_00019.jsonl.gz:427624", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/79967" }
[ 0.065673828125, 0.019683837890625, 0.014251708984375, 0.02001953125, 0.051116943359375, -0.0439453125, 0.09307861328125, -0.060882568359375, 0.011688232421875, 0.0031414031982421875, -0.0460205078125, 0.00885009765625, -0.042755126953125, -0.019744873046875, -0.000522613525390625, -0.05377197265625, 0.048583984375, -0.012939453125, 0.051055908203125, 0.00719451904296875, 0.0013494491577148438, 0.025299072265625, 0.059356689453125, 0.035186767578125, 0.024383544921875, -0.027923583984375, 0.05865478515625, -0.0240631103515625, 0.0212860107421875, -0.0196685791015625, 0.025482177734375, -0.0175018310546875, 0.039276123046875, 0.00310516357421875, -0.047821044921875, -0.03204345703125, -0.033721923828125, -0.007717132568359375, -0.02130126953125, 0.00849151611328125, 0.0034160614013671875, 0.0023937225341796875, 0.0160675048828125, 0.0285797119140625, -0.00775146484375, -0.031280517578125, 0.0167388916015625, -0.032958984375, -0.002910614013671875, -0.05810546875, 0.0537109375, 0.013641357421875, 0.05767822265625, -0.055267333984375, -0.016998291015625, 0.0506591796875, 0.00072479248046875, -0.05303955078125, 0.029693603515625, -0.030242919921875, -0.004901885986328125, -0.03338623046875, 0.039947509765625, 0.01479339599609375, 0.019195556640625, 0.000244140625, 0.05584716796875, 0.0228729248046875, -0.058929443359375, 0.0163421630859375, 0.04364013671875, -0.043731689453125, -0.00699615478515625, -0.017730712890625, 0.001312255859375, -0.0022907257080078125, 0.00605010986328125, -0.0213623046875, 0.003124237060546875, 0.00115203857421875, 0.0012998580932617188, 0.027374267578125, -0.03753662109375, -0.002899169921875, -0.01438140869140625, 0.00305938720703125, -0.01351165771484375, -0.01277923583984375, -0.008758544921875, 0.01534271240234375, -0.02288818359375, 0.037139892578125, 0.00543212890625, 0.005855560302734375, -0.02459716796875, -0.00211334228515625, 0.0252532958984375, 0.032562255859375, 0.0013217926025390625, 0.01959228515625, -0.0113372802734375, -0.047393798828125, 0.043609619140625, -0.04412841796875, 0.004459381103515625, 0.044097900390625, -0.004169464111328125, 0.035552978515625, 0.05108642578125, 0.022918701171875, 0.01296234130859375, 0.002094268798828125, -0.029754638671875, -0.007663726806640625, -0.0128021240234375, -0.00089263916015625, -0.05621337890625, 0.0300140380859375, -0.027191162109375, 0.0258636474609375, -0.009307861328125, 0.0298004150390625, -0.039215087890625, 0.0246429443359375, 0.00034499168395996094, 0.035308837890625, 0.04412841796875, -0.050628662109375, 0.003997802734375, -0.007785797119140625, -0.01824951171875, 0.029541015625, 0.046722412109375, 0.0245361328125, -0.0012464523315429688, 0.0015554428100585938, -0.01406097412109375, -0.029266357421875, -0.006496429443359375, 0.0211944580078125, -0.00724029541015625, -0.038299560546875, 0.01446533203125, -0.01032257080078125, 0.031005859375, 0.03778076171875, 0.0197906494140625, 0.0014066696166992188, 0.0026493072509765625, -0.0487060546875, 0.06201171875, -0.046295166015625, 0.036865234375, -0.00904083251953125, -0.04583740234375, -0.045135498046875, -0.0211639404296875, -0.0269775390625, 0.006618499755859375, -0.04559326171875, -0.03302001953125, -0.0098876953125, 0.0298919677734375, -0.049346923828125, -0.045806884765625, 0.0096282958984375, -0.039306640625, -0.002498626708984375, 0.0282135009765625, 0.00704193115234375, 0.028564453125, -0.0399169921875, 0.034027099609375, 0.018646240234375, 0.0011110305786132812, 0.030029296875, 0.00489044189453125, -0.017578125, 0.019012451171875, 0.040985107421875, -0.016387939453125, -0.034332275390625, 0.018402099609375, -0.02276611328125, -0.098388671875, 0.058563232421875, -0.0169830322265625, 0.0838623046875, 0.060638427734375, -0.000762939453125, 0.019622802734375, -0.01265716552734375, -0.0149383544921875, -0.005901336669921875, 0.0182647705078125, -0.00274658203125, -0.01526641845703125, 0.0037670135498046875, 0.0067138671875, -0.02557373046875, -0.03216552734375, 0.018035888671875, -0.03802490234375, 0.01146697998046875, -0.02691650390625, -0.00453948974609375, -0.0066986083984375, 0.049652099609375, -0.01715087890625, 0.03143310546875, 0.021087646484375, -0.00978851318359375, -0.01427459716796875, -0.023040771484375, -0.00771331787109375, 0.026336669921875, -0.004337310791015625, -0.0197906494140625, 0.00669097900390625, -0.052734375, 0.039642333984375, 0.0043487548828125, 0.0224456787109375, 0.036956787109375, 0.0628662109375, -0.01617431640625, -0.026397705078125, -0.04022216796875, -0.013031005859375, 0.03350830078125, -0.0894775390625, 0.035003662109375, 0.03753662109375, 0.0396728515625, -0.0294647216796875, -0.003131866455078125, 0.0127105712890625, -0.039306640625, -0.00551605224609375, 0.04443359375, 0.03076171875, 0.0187530517578125, -0.004627227783203125, -0.0085601806640625, 0.0638427734375, -0.00955963134765625, 0.0188446044921875, -0.0290679931640625, -0.0308685302734375, -0.01187896728515625, 0.0194854736328125, 0.0257720947265625, 0.03948974609375, 0.036224365234375, -0.012664794921875, 0.026641845703125, -0.005496978759765625, 0.020294189453125, 0.032501220703125, -0.0341796875, -0.006153106689453125, 0.018646240234375, 0.01439666748046875, -0.01885986328125, 0.030181884765625, -0.0020275115966796875, 0.035736083984375, 0.031402587890625, -0.0038585662841796875, -0.0202178955078125, 0.0007739067077636719, 0.044708251953125, -0.006023406982421875, 0.041595458984375, -0.0193634033203125, -0.01273345947265625, -0.0205841064453125, -0.0189361572265625, -0.00617218017578125, 0.0055389404296875, 0.00984954833984375, 0.06768798828125, 0.06671142578125, -0.00991058349609375, -0.0216064453125, -0.019989013671875, 0.014801025390625, 0.0016450881958007812, -0.056884765625, -0.003276824951171875, -0.005035400390625, 0.07415771484375, -0.00806427001953125, 0.0167999267578125, -0.003276824951171875, 0.0306396484375, 0.02197265625, -0.0246124267578125, 0.028594970703125, -0.03265380859375, 0.061431884765625, 0.054656982421875, -0.01678466796875, 0.015106201171875, -0.0016679763793945312, 0.004711151123046875, 0.012481689453125, -0.0011701583862304688, -0.01050567626953125, -0.01349639892578125, -0.039947509765625, -0.0120697021484375, 0.006938934326171875, 0.035858154296875, -0.0205078125, -0.0577392578125, -0.0128173828125, 0.0107574462890625, -0.06927490234375, -0.021148681640625, 0.042327880859375, -0.064208984375, -0.0204620361328125, 0.0082244873046875, -0.05596923828125, -0.023223876953125, 0.0596923828125, -0.01251220703125, -0.01117706298828125, -0.036651611328125, -0.07025146484375, -0.04437255859375, -0.061553955078125, 0.075439453125, -0.001190185546875, 0.0274658203125, 0.004413604736328125, 0.059906005859375, 0.0212249755859375, -0.05194091796875, -0.0004055500030517578, 0.026824951171875, -0.0149078369140625, 0.02099609375, -0.0223236083984375, -0.00689697265625, -0.003818511962890625, 0.01438140869140625, -0.0235595703125, -0.0098419189453125, 0.017730712890625, -0.023040771484375, 0.002193450927734375, -0.010162353515625, 0.06585693359375, -0.04095458984375, -0.035308837890625, 0.0550537109375, 0.05645751953125, -0.00827789306640625, -0.027069091796875, -0.003017425537109375, -0.034210205078125, 0.00684356689453125, 0.0015411376953125, 0.0003361701965332031, -0.01410675048828125, 0.0283660888671875, -0.01224517822265625, -0.0031909942626953125, -0.00026416778564453125, 0.0115966796875, -0.0235443115234375, -0.01348876953125, -0.003582000732421875, 0.02191162109375, 0.0236053466796875, 0.00897216796875, -0.0162353515625, -0.004360198974609375, 0.0325927734375, -0.0140838623046875, 0.03692626953125, -0.042205810546875, -0.04058837890625, 0.046356201171875, -0.003543853759765625, -0.0050201416015625, -0.0194244384765625, -0.03350830078125, 0.00658416748046875, 0.059600830078125, -0.04083251953125, -0.01470947265625, -0.00445556640625, 0.022247314453125, -0.0196990966796875, -0.0732421875, -0.03045654296875, -0.0181884765625, -0.07745361328125, 0.015777587890625, -0.010345458984375, -0.007335662841796875, 0.000023663043975830078, 0.0289764404296875, -0.01311492919921875, -0.0281219482421875, 0.01088714599609375, 0.02227783203125, -0.009674072265625, -0.033843994140625, -0.0065460205078125, -0.04766845703125, -0.001407623291015625, -0.00131988525390625, -0.024017333984375, -0.01085662841796875, -0.002017974853515625, -0.005950927734375, -0.0006475448608398438, -0.01216888427734375, 0.01520538330078125, 0.045257568359375, 0.0054168701171875, -0.02044677734375, 0.056732177734375, 0.03387451171875, 0.0196075439453125, -0.02789306640625, 0.026885986328125, -0.06201171875, -0.0298309326171875, -0.0291290283203125, 0.0103302001953125, 0.047943115234375, -0.0126800537109375, 0.0176239013671875, -0.0035247802734375, 0.00896453857421875, -0.044921875, -0.0156707763671875, 0.00989532470703125, 0.003143310546875, -0.0009965896606445312, 0.0181121826171875, 0.007640838623046875, -0.050994873046875, 0.0149383544921875, 0.032440185546875, -0.020751953125, 0.01157379150390625, 0.0302276611328125, 0.0279083251953125, -0.0270843505859375, -0.048370361328125, 0.039764404296875, 0.06097412109375, -0.03643798828125, 0.04022216796875, 0.0298919677734375, -0.0305938720703125, 0.045989990234375, 0.0067596435546875, 0.040283203125, 0.007396697998046875, 0.03253173828125, 0.00988006591796875, 0.004940032958984375, 0.0140228271484375, 0.0299224853515625, -0.075439453125, 0.028167724609375, 0.018768310546875, -0.01371002197265625, 0.01953125, 0.0098724365234375, 0.01995849609375, -0.04864501953125, -0.021392822265625, -0.02911376953125, 0.004032135009765625, 0.018798828125, 0.016143798828125, 0.0132904052734375, 0.01428985595703125, 0.0082244873046875, 0.00783538818359375, 0.0063018798828125, -0.01515960693359375, -0.05206298828125, -0.010040283203125, 0.012542724609375, -0.0229644775390625, 0.0011339187622070312, 0.01751708984375, -0.0006513595581054688, 0.01522064208984375, 0.0133056640625, -0.0279083251953125, 0.002048492431640625, -0.0142364501953125, -0.00440216064453125, 0.0078582763671875, 0.061187744140625, 0.03277587890625, -0.01012420654296875, 0.0455322265625, 0.0048065185546875, 0.007114410400390625, -0.0003879070281982422, -0.005035400390625, 0.0006146430969238281, 0.0160369873046875, -0.01050567626953125, 0.00449371337890625, 0.047149658203125, -0.01271820068359375, 0.030303955078125, -0.01116180419921875, -0.0177154541015625, -0.026275634765625, 0.042816162109375, 0.02874755859375, -0.004749298095703125, -0.02459716796875, 0.03460693359375, 0.021636962890625, -0.0207061767578125, 0.026275634765625, 0.050811767578125, 0.0260009765625, 0.01519012451171875, -0.039337158203125, -0.0106201171875, -0.043975830078125, -0.0189056396484375, 0.06268310546875, 0.007213592529296875, -0.0218048095703125, -0.074951171875, -0.0006103515625, 0.057373046875, 0.01131439208984375, -0.00908660888671875, -0.0010213851928710938, 0.0301361083984375, 0.02459716796875, -0.015655517578125, -0.03125, 0.02777099609375, 0.04327392578125, -0.0008563995361328125, -0.01593017578125, -0.0224609375, -0.01349639892578125, -0.005985260009765625, -0.0233154296875, 0.0048065185546875, 0.034515380859375, -0.0498046875, 0.04791259765625, -0.0106353759765625, -0.0212249755859375, -0.0140838623046875, 0.0136566162109375, 0.07672119140625, 0.076904296875, -0.04925537109375, 0.010101318359375, -0.038909912109375, -0.005413055419921875, 0.0017347335815429688, -0.0286712646484375, -0.0275115966796875, -0.0081787109375, 0.02044677734375, 0.02593994140625, -0.010772705078125, -0.037841796875, -0.016815185546875, -0.007778167724609375, 0.008453369140625, 0.0205078125, 0.0126953125, 0.00616455078125, 0.02545166015625, 0.0318603515625, 0.0234527587890625, -0.01361846923828125, -0.04180908203125, -0.01654052734375, -0.0136260986328125, -0.08966064453125, -0.019866943359375, 0.00980377197265625, -0.0299835205078125, 0.05950927734375, 0.0248870849609375, 0.0122833251953125, -0.01064300537109375, -0.004505157470703125, 0.004169464111328125, -0.003643035888671875, 0.038848876953125, 0.01259613037109375, -0.035247802734375, 0.055419921875, 0.0258941650390625, -0.01149749755859375, -0.0033969879150390625, 0.02203369140625, -0.040283203125, 0.05029296875, -0.02362060546875, -0.06329345703125, 0.0027179718017578125, 0.044281005859375, 0.0267486572265625, -0.0169830322265625, 0.0016231536865234375, 0.01071929931640625, -0.01474761962890625, -0.051544189453125, -0.00811004638671875, 0.01100921630859375, -0.017303466796875, 0.073486328125, 0.00937652587890625, 0.004390716552734375, 0.06988525390625, -0.036834716796875, -0.0182647705078125, 0.0364990234375, 0.04510498046875, -0.041595458984375, -0.005950927734375, 0.0091705322265625, -0.00457763671875, -0.01361083984375, 0.0203704833984375, -0.0239715576171875, -0.052459716796875, 0.0357666015625, -0.004123687744140625, -0.0006818771362304688, 0.01158905029296875, 0.0013751983642578125, 0.0037479400634765625, -0.0294036865234375, 0.09039306640625, 0.0175018310546875, -0.0289459228515625, -0.0333251953125, 0.00675201416015625, -0.007762908935546875, -0.0227508544921875, 0.02197265625, -0.00942230224609375, -0.033111572265625, -0.0546875, -0.00366973876953125, 0.01904296875, -0.01947021484375, 0.03167724609375, -0.0032367706298828125, -0.01180267333984375, 0.037628173828125, -0.026519775390625, 0.010986328125, 0.01078033447265625, -0.08123779296875, -0.01251983642578125, 0.0031280517578125, -0.01259613037109375, -0.0235595703125, 0.03936767578125, 0.00328826904296875, -0.0158233642578125, -0.031951904296875, -0.0181121826171875, -0.015625, 0.087646484375, -0.0169219970703125, -0.027252197265625, -0.00031638145446777344, 0.045745849609375, 0.006855010986328125, -0.002788543701171875, 0.01418304443359375, -0.0260009765625, 0.0175323486328125, -0.009521484375, -0.01451873779296875, -0.004383087158203125, -0.034423828125, -0.06683349609375, 0.1163330078125, -0.01529693603515625, 0.0169219970703125, 0.015533447265625, 0.044464111328125, -0.0268707275390625, 0.00827789306640625, -0.033447265625, 0.0323486328125, 0.0140533447265625, 0.032379150390625, -0.03948974609375, -0.0163421630859375, 0.00794219970703125, 0.03125, 0.0075225830078125, -0.010955810546875, 0.0120697021484375, 0.0157318115234375, 0.034698486328125, 0.0443115234375, -0.010589599609375, -0.01177215576171875, 0.009735107421875, 0.064697265625, 0.02618408203125, -0.047760009765625, 0.019866943359375, -0.00787353515625, -0.018463134765625, 0.042510986328125, 0.0118408203125, 0.01171875, -0.016143798828125, -0.01373291015625, -0.046722412109375, -0.01244354248046875, 0.0131072998046875, 0.0057220458984375, 0.044921875, 0.03070068359375, 0.0243682861328125, -0.051025390625, -0.04913330078125, -0.0164642333984375, 0.03399658203125, -0.0270538330078125, 0.01387786865234375, 0.0028667449951171875, 0.00199127197265625, 0.036590576171875, -0.017608642578125, -0.0037841796875, 0.00040411949157714844, 0.0007233619689941406, 0.04473876953125, 0.0232696533203125, 0.00502777099609375, -0.07757568359375, -0.02325439453125, 0.08514404296875, 0.0858154296875, -0.03363037109375, -0.029144287109375, 0.0025882720947265625, -0.0120849609375, 0.01287078857421875, -0.0049896240234375, 0.0271759033203125, 0.0125732421875, 0.0075531005859375, -0.0361328125, -0.0135498046875, 0.0007333755493164062, 0.042236328125, 0.0004673004150390625, 0.01251983642578125, -0.01910400390625, -0.037109375, -0.0552978515625, 0.033447265625, 0.03125, 0.04931640625, -0.00023603439331054688, 0.0243988037109375, 0.01611328125, -0.013916015625, 0.0145111083984375, 0.0022983551025390625, -0.01065826416015625, -0.016754150390625, 0.0064849853515625, -0.00965118408203125, -0.007598876953125, 0.00555419921875, 0.046966552734375, -0.0278778076171875, 0.0244903564453125, 0.02215576171875, -0.0299835205078125, 0.002925872802734375, 0.044281005859375, -0.00992584228515625, -0.0291595458984375, -0.0263824462890625, 0.0253448486328125, 0.06402587890625, 0.01273345947265625, 0.01483917236328125, 0.016632080078125, 0.0770263671875, -0.04290771484375, 0.0477294921875, -0.01532745361328125, -0.0148468017578125, -0.00782012939453125, -0.048736572265625, 0.01202392578125, -0.022705078125, -0.0478515625, -0.0037746429443359375, -0.0328369140625, -0.00824737548828125, 0.019500732421875, 0.03240966796875, -0.015472412109375, 0.0293121337890625, 0.013671875, -0.00174713134765625, 0.0165557861328125, -0.016937255859375, 0.0162353515625, 0.058258056640625, 0.01107025146484375, 0.018310546875, -0.0703125, -0.04296875, -0.0238800048828125, 0.03289794921875, 0.0057525634765625, 0.03387451171875, 0.0017709732055664062, 0.02545166015625, -0.0240631103515625, 0.04266357421875, -0.0770263671875, -0.042144775390625, 0.05133056640625, -0.0323486328125, -0.0100250244140625, -0.00957489013671875, 0.01349639892578125, 0.03912353515625, 0.0248870849609375, -0.04058837890625, -0.017669677734375, 0.001483917236328125, 0.0025730133056640625, -0.002643585205078125, 0.0777587890625, -0.00484466552734375, -0.03857421875, -0.01552581787109375, 0.0181121826171875, 0.0124053955078125, 0.055633544921875, 0.0013170242309570312, 0.026763916015625, 0.004962921142578125, -0.02587890625, 0.0170440673828125, -0.0265655517578125, -0.01221466064453125, 0.019866943359375, 0.056427001953125, -0.039764404296875, -0.0187225341796875, -0.02490234375, 0.0123138427734375, -0.00318145751953125, 0.040130615234375, -0.01148223876953125, 0.0068511962890625, 0.0033130645751953125, 0.03564453125, 0.0408935546875, -0.0087127685546875, 0.020050048828125, 0.02490234375, -0.024444580078125, -0.01311492919921875, 0.004055023193359375, -0.04107666015625, -0.07501220703125, 0.003681182861328125, 0.00717926025390625, -0.04986572265625, -0.0421142578125, -0.07159423828125, -0.032684326171875, 0.03826904296875, -0.00891876220703125, 0.01177215576171875, -0.0193328857421875, -0.033294677734375, -0.007015228271484375, -0.0175323486328125, 0.036895751953125, 0.008270263671875, 0.0364990234375, -0.03509521484375, -0.01297760009765625, -0.007137298583984375, 0.047332763671875, -0.00980377197265625, 0.03118896484375, 0.01122283935546875, -0.0297698974609375, 0.0111083984375, 0.033843994140625, 0.0460205078125, 0.071044921875, 0.0582275390625, -0.0149383544921875, -0.0251312255859375, 0.0250244140625, -0.0292510986328125, -0.03326416015625, 0.051483154296875, -0.055511474609375, -0.03985595703125, 0.03302001953125, -0.0208587646484375, 0.004467010498046875, -0.053466796875, -0.10797119140625, 0.11346435546875, -0.0203857421875, -0.0260467529296875, 0.0330810546875, 0.007274627685546875, -0.0157928466796875, 0.01439666748046875, 0.019256591796875, -0.033447265625, 0.01708984375, -0.0021076202392578125, 0.0223236083984375, 0.034454345703125, 0.0203094482421875, -0.0183563232421875, -0.035247802734375, -0.00867462158203125, -0.004520416259765625, 0.03570556640625, -0.0105133056640625, -0.0036907196044921875, 0.003582000732421875, 0.003643035888671875, -0.064208984375, 0.03082275390625, -0.008453369140625, 0.048797607421875, 0.0306243896484375, -0.0626220703125, -0.04315185546875, -0.06915283203125, -0.01157379150390625, -0.0133209228515625, 0.0009784698486328125, 0.015899658203125, 0.002361297607421875, 0.0026092529296875, -0.0217437744140625, 0.004344940185546875, 0.016845703125, -0.0655517578125, -0.0193939208984375, 0.0188751220703125, -0.0176544189453125, -0.007904052734375, -0.0020389556884765625, -0.058441162109375, -0.00751495361328125, -0.040802001953125, 0.01378631591796875, -0.0791015625, -0.018341064453125, 0.034759521484375, -0.03155517578125, -0.026214599609375, -0.0219268798828125, 0.0195770263671875, -0.0097198486328125, -0.039581298828125, -0.0158843994140625, -0.039794921875, 0.0214080810546875, 0.03497314453125, 0.00341033935546875, 0.0186614990234375, -0.0064697265625, -0.00408935546875, -0.045928955078125, 0.007709503173828125, 0.0013551712036132812, -0.00464630126953125, 0.02032470703125, -0.0083160400390625, 0.029541015625, 0.00897216796875, -0.0287322998046875, 0.005413055419921875, -0.031707763671875, 0.0504150390625, -0.0218353271484375, 0.00102996826171875, 0.028076171875, -0.032867431640625, 0.0017061233520507812, -0.01041412353515625, -0.0168609619140625, -0.032745361328125, -0.00811767578125, -0.0242767333984375, -0.018310546875, 0.0213623046875 ]
e8e96ed896c3b7bb32d014829d96c8cab9455ead
Wordpress Stackexchange Q: Woocommerce product categories order Is it possible to sort product categories? I have a category with a lot of subcategories. On the category page all the subcategories is listed. Right now I can only change the order by drag and drop in the admin panel. But that is very time consuming with a lot of categories. Any way to change the order without using drag and drop? A: Woocommerce stores 'order' metakeys in the table wp_woocommerce_termmeta. The mechanism it uses is the same as menu_order for posts. Something like this should work: $terms = get_terms('product_cat'); //sort $terms somehow $i = -1; foreach ($terms as $term) { $i++; update_woocommerce_term_meta( $term->id, 'order', $i); } The same procedure can be used to sort other Woocommerce taxonomies such as product_tag and Product Attributes. For a Product Attribute named Size, the taxonomy would be pa_size, and you should replace 'order' by order_pa_size
Q: Woocommerce product categories order Is it possible to sort product categories? I have a category with a lot of subcategories. On the category page all the subcategories is listed. Right now I can only change the order by drag and drop in the admin panel. But that is very time consuming with a lot of categories. Any way to change the order without using drag and drop? A: Woocommerce stores 'order' metakeys in the table wp_woocommerce_termmeta. The mechanism it uses is the same as menu_order for posts. Something like this should work: $terms = get_terms('product_cat'); //sort $terms somehow $i = -1; foreach ($terms as $term) { $i++; update_woocommerce_term_meta( $term->id, 'order', $i); } The same procedure can be used to sort other Woocommerce taxonomies such as product_tag and Product Attributes. For a Product Attribute named Size, the taxonomy would be pa_size, and you should replace 'order' by order_pa_size A: You can sort product categories by drag-and-drop. Notice that your mouse cursor turns into a hand when over a category row? Grab it and drag to its new position in the list. Job is done.
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:427653", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80068" }
[ -0.0052947998046875, -0.01427459716796875, -0.044769287109375, -0.0146026611328125, 0.01050567626953125, -0.04791259765625, 0.0201873779296875, 0.014495849609375, 0.018463134765625, 0.0117034912109375, -0.01142120361328125, -0.06524658203125, 0.0002524852752685547, -0.0189361572265625, -0.048492431640625, -0.0576171875, 0.0267333984375, 0.00035190582275390625, 0.0269775390625, 0.0073394775390625, -0.01496124267578125, 0.0400390625, 0.00860595703125, 0.018402099609375, 0.007289886474609375, -0.01953125, 0.0802001953125, -0.034942626953125, 0.03924560546875, -0.0301513671875, 0.024139404296875, -0.01366424560546875, 0.0162811279296875, -0.0157012939453125, 0.03729248046875, 0.037506103515625, 0.038818359375, -0.01161956787109375, 0.0219268798828125, 0.0012636184692382812, 0.036102294921875, -0.0185699462890625, 0.021453857421875, 0.0171966552734375, 0.0203399658203125, -0.046722412109375, 0.038177490234375, -0.06451416015625, 0.02142333984375, -0.04425048828125, 0.02667236328125, 0.0236053466796875, 0.046875, -0.07452392578125, -0.035430908203125, -0.003520965576171875, -0.07421875, 0.051055908203125, 0.0215301513671875, 0.01406097412109375, 0.00754547119140625, 0.0022945404052734375, 0.0007567405700683594, -0.004947662353515625, -0.01084136962890625, 0.0173797607421875, 0.01462554931640625, -0.0002200603485107422, -0.00870513916015625, 0.01303863525390625, 0.01421356201171875, -0.01206207275390625, 0.01397705078125, 0.01026153564453125, 0.0091552734375, -0.046112060546875, 0.00627899169921875, -0.01215362548828125, 0.0299072265625, 0.02166748046875, 0.01369476318359375, -0.006328582763671875, 0.0214996337890625, -0.05615234375, 0.0213470458984375, -0.030853271484375, -0.00612640380859375, -0.003582000732421875, -0.02471923828125, -0.04925537109375, -0.0175323486328125, -0.01462554931640625, -0.0645751953125, 0.04150390625, -0.032073974609375, -0.002933502197265625, 0.005035400390625, -0.0009284019470214844, 0.0085601806640625, -0.00756072998046875, 0.025390625, -0.0538330078125, 0.0070037841796875, -0.0091400146484375, 0.00374603271484375, -0.03509521484375, -0.02093505859375, 0.0022678375244140625, 0.039947509765625, 0.05078125, -0.0275115966796875, 0.0194854736328125, 0.0118865966796875, -0.04931640625, 0.01419830322265625, 0.029327392578125, -0.0115814208984375, 0.045257568359375, 0.0171661376953125, 0.00286865234375, 0.0213165283203125, 0.0601806640625, 0.0208587646484375, -0.0347900390625, -0.004047393798828125, 0.01009368896484375, -0.00803375244140625, -0.0789794921875, -0.025390625, -0.031951904296875, -0.044403076171875, 0.05029296875, 0.051361083984375, 0.0262298583984375, 0.00014793872833251953, 0.006378173828125, 0.0208282470703125, -0.0017251968383789062, 0.004215240478515625, 0.0019178390502929688, 0.0233917236328125, 0.0232391357421875, 0.01531982421875, -0.0165557861328125, 0.0298919677734375, -0.00830078125, -0.0146942138671875, 0.0213470458984375, 0.024017333984375, 0.005138397216796875, 0.041961669921875, -0.036376953125, 0.032135009765625, 0.0236358642578125, 0.0009455680847167969, 0.0230865478515625, 0.06640625, -0.024688720703125, -0.05303955078125, -0.05377197265625, -0.0269622802734375, -0.01073455810546875, 0.04217529296875, -0.058807373046875, -0.05224609375, 0.033355712890625, -0.048370361328125, -0.017669677734375, 0.0260467529296875, 0.02020263671875, 0.0246124267578125, -0.004238128662109375, 0.022491455078125, 0.016265869140625, -0.00942230224609375, 0.004108428955078125, -0.0125732421875, -0.02374267578125, 0.03289794921875, 0.01538848876953125, -0.03656005859375, -0.040924072265625, 0.01483917236328125, -0.01727294921875, -0.01015472412109375, 0.0140838623046875, 0.013336181640625, 0.0159912109375, -0.0261993408203125, 0.0214691162109375, 0.01548004150390625, 0.047607421875, -0.044921875, 0.028076171875, 0.00431060791015625, -0.02386474609375, 0.006282806396484375, 0.009765625, 0.004673004150390625, -0.035003662109375, -0.00464630126953125, 0.0212554931640625, -0.006984710693359375, -0.01142120361328125, -0.0022983551025390625, 0.008544921875, 0.011627197265625, 0.035003662109375, -0.015716552734375, 0.0281982421875, 0.00714111328125, 0.0020294189453125, -0.031524658203125, -0.0045166015625, 0.01210784912109375, -0.0193328857421875, -0.01360321044921875, 0.04949951171875, -0.0130462646484375, 0.053680419921875, -0.0222930908203125, -0.0318603515625, -0.01136016845703125, 0.016326904296875, 0.033599853515625, 0.0292816162109375, -0.0268707275390625, 0.0020236968994140625, 0.037353515625, 0.03765869140625, -0.0562744140625, -0.0246429443359375, 0.052520751953125, 0.042572021484375, -0.029083251953125, 0.01410675048828125, 0.0210418701171875, -0.06549072265625, -0.00933074951171875, 0.03668212890625, 0.02777099609375, 0.005645751953125, -0.0018701553344726562, 0.01317596435546875, 0.06292724609375, -0.00836944580078125, -0.0061187744140625, -0.00189208984375, -0.0164031982421875, 0.0321044921875, 0.0192413330078125, 0.0462646484375, 0.01422119140625, 0.03643798828125, 0.01377105712890625, 0.04486083984375, 0.0062255859375, 0.0135650634765625, -0.0122833251953125, 0.01403045654296875, 0.002239227294921875, -0.02117919921875, -0.0323486328125, -0.00597381591796875, 0.0310821533203125, 0.0023822784423828125, 0.0113983154296875, -0.005809783935546875, -0.0267791748046875, 0.0006909370422363281, 0.0218353271484375, -0.035125732421875, -0.0028076171875, 0.004505157470703125, -0.00917816162109375, -0.019378662109375, -0.028961181640625, 0.0271759033203125, 0.0020313262939453125, -0.0224609375, -0.006320953369140625, 0.048675537109375, 0.00856781005859375, -0.00849151611328125, -0.049957275390625, -0.07806396484375, 0.0176544189453125, 0.045501708984375, -0.0712890625, -0.0249176025390625, 0.0003371238708496094, 0.0386962890625, -0.0298004150390625, 0.0038318634033203125, -0.035980224609375, 0.0152130126953125, -0.0005917549133300781, -0.0157470703125, 0.038116455078125, -0.0141143798828125, 0.031524658203125, 0.0733642578125, 0.0037174224853515625, 0.0208892822265625, 0.0154571533203125, 0.00787353515625, 0.014312744140625, 0.0026760101318359375, -0.0102386474609375, 0.0244293212890625, -0.07861328125, 0.0183563232421875, 0.0302886962890625, 0.004825592041015625, 0.034423828125, -0.0174560546875, 0.03662109375, 0.036407470703125, -0.030609130859375, -0.054107666015625, -0.020751953125, -0.033447265625, 0.01509857177734375, -0.003582000732421875, 0.002933502197265625, -0.0190582275390625, 0.0175628662109375, 0.01102447509765625, -0.0036640167236328125, -0.01953125, -0.00939178466796875, -0.018218994140625, -0.02374267578125, 0.001605987548828125, 0.00261688232421875, -0.0025615692138671875, 0.0008730888366699219, 0.044219970703125, 0.0005388259887695312, -0.062286376953125, 0.004024505615234375, 0.0309295654296875, -0.00998687744140625, 0.023895263671875, 0.0217132568359375, -0.06475830078125, 0.012939453125, -0.0012426376342773438, 0.05126953125, 0.0213775634765625, -0.011566162109375, 0.01068878173828125, 0.007167816162109375, 0.00666046142578125, 0.0236663818359375, 0.0016279220581054688, -0.01224517822265625, 0.02520751953125, 0.01800537109375, -0.039459228515625, -0.0201568603515625, -0.001102447509765625, -0.0139617919921875, 0.004909515380859375, -0.033660888671875, 0.0075531005859375, -0.002887725830078125, 0.038360595703125, 0.016357421875, 0.012664794921875, -0.02093505859375, -0.032012939453125, -0.0318603515625, 0.01233673095703125, 0.0156707763671875, 0.01528167724609375, 0.024871826171875, -0.0322265625, 0.00534820556640625, 0.010955810546875, 0.000743865966796875, -0.013214111328125, 0.017913818359375, -0.027191162109375, -0.054840087890625, 0.040069580078125, -0.038421630859375, 0.0008864402770996094, -0.0215606689453125, -0.0233001708984375, 0.020416259765625, 0.103271484375, 0.0018835067749023438, -0.033843994140625, -0.008819580078125, 0.018310546875, -0.047271728515625, -0.0121917724609375, -0.0259552001953125, 0.0015745162963867188, -0.08013916015625, 0.0041656494140625, -0.001651763916015625, -0.028900146484375, -0.0037994384765625, 0.007709503173828125, -0.04571533203125, -0.04083251953125, 0.0389404296875, -0.039825439453125, 0.004039764404296875, 0.0271759033203125, -0.0029048919677734375, 0.01349639892578125, -0.026458740234375, -0.009033203125, -0.01174163818359375, -0.0056915283203125, 0.0022678375244140625, 0.01107025146484375, -0.01367950439453125, 0.040191650390625, -0.0396728515625, 0.026458740234375, -0.0200958251953125, 0.0142974853515625, 0.0173492431640625, 0.06109619140625, -0.02239990234375, -0.036468505859375, 0.0069122314453125, -0.054962158203125, -0.01174163818359375, -0.028839111328125, 0.0009603500366210938, 0.0101470947265625, -0.016082763671875, 0.03826904296875, -0.00922393798828125, 0.004993438720703125, -0.09771728515625, -0.053802490234375, -0.03680419921875, -0.0230255126953125, -0.037017822265625, 0.00847625732421875, -0.0306549072265625, -0.07781982421875, 0.0164947509765625, -0.0224761962890625, -0.011932373046875, 0.0196990966796875, 0.04595947265625, 0.012298583984375, -0.0009264945983886719, -0.006992340087890625, 0.0006847381591796875, 0.0166778564453125, 0.0237884521484375, -0.003448486328125, -0.03594970703125, -0.019195556640625, 0.03363037109375, -0.0051422119140625, -0.0004444122314453125, 0.0310211181640625, 0.01090240478515625, 0.001434326171875, -0.0293731689453125, 0.0164642333984375, -0.015838623046875, 0.01331329345703125, -0.00513458251953125, -0.018280029296875, -0.016082763671875, -0.035858154296875, 0.0455322265625, 0.018768310546875, 0.01160430908203125, -0.04180908203125, -0.0145721435546875, 0.0161895751953125, -0.018157958984375, 0.0186004638671875, 0.027008056640625, -0.01081085205078125, 0.006103515625, 0.0084075927734375, 0.00722503662109375, -0.0283660888671875, -0.0200958251953125, -0.0343017578125, 0.0155487060546875, -0.0283660888671875, -0.01337432861328125, 0.0030155181884765625, -0.0018091201782226562, -0.01049041748046875, -0.0087738037109375, -0.01383209228515625, -0.05767822265625, -0.0185394287109375, 0.019622802734375, 0.00699615478515625, -0.07440185546875, 0.00867462158203125, 0.0112152099609375, 0.00527191162109375, 0.0367431640625, -0.11016845703125, 0.01025390625, -0.0266265869140625, 0.0154876708984375, 0.00838470458984375, -0.01488494873046875, 0.0014019012451171875, 0.0675048828125, -0.00980377197265625, 0.03363037109375, 0.0015077590942382812, -0.005970001220703125, 0.00392913818359375, 0.025482177734375, 0.03277587890625, -0.03387451171875, -0.00444793701171875, -0.0039215087890625, 0.0229034423828125, -0.0195465087890625, -0.02093505859375, -0.01052093505859375, -0.00574493408203125, -0.041778564453125, -0.01117706298828125, 0.060333251953125, 0.01042938232421875, -0.0168609619140625, -0.0016632080078125, -0.0143890380859375, -0.00699615478515625, -0.026123046875, -0.0154571533203125, 0.01023101806640625, -0.0018634796142578125, -0.0171966552734375, 0.004852294921875, -0.055816650390625, -0.002460479736328125, 0.01323699951171875, 0.01168060302734375, -0.01593017578125, -0.03277587890625, -0.06976318359375, -0.0026531219482421875, 0.040130615234375, -0.02252197265625, -0.0274658203125, -0.00792694091796875, -0.0516357421875, 0.04742431640625, 0.0135040283203125, 0.077880859375, -0.0125732421875, -0.05084228515625, -0.022247314453125, 0.0135040283203125, 0.01284027099609375, 0.009185791015625, -0.03143310546875, -0.01416015625, -0.031494140625, -0.022216796875, -0.00565338134765625, -0.012847900390625, -0.035064697265625, 0.0030689239501953125, 0.0006532669067382812, 0.02716064453125, -0.029632568359375, -0.061492919921875, -0.0293426513671875, -0.0281982421875, 0.00785064697265625, -0.043487548828125, -0.0134124755859375, 0.02496337890625, -0.007022857666015625, 0.01776123046875, -0.01165008544921875, -0.0171966552734375, -0.004058837890625, -0.00272369384765625, -0.01081085205078125, -0.043487548828125, -0.01104736328125, -0.006618499755859375, -0.052978515625, 0.03424072265625, 0.0692138671875, 0.0114288330078125, 0.024932861328125, -0.020904541015625, 0.001590728759765625, -0.0174560546875, -0.0261993408203125, -0.021392822265625, -0.016021728515625, 0.0244903564453125, -0.03790283203125, 0.0296478271484375, 0.0220794677734375, -0.0018110275268554688, 0.061065673828125, -0.0364990234375, 0.060272216796875, 0.0200653076171875, -0.041900634765625, 0.0355224609375, 0.032623291015625, 0.047943115234375, 0.037872314453125, -0.028839111328125, 0.035247802734375, -0.01305389404296875, 0.032196044921875, 0.03936767578125, -0.008026123046875, 0.033203125, -0.0180511474609375, 0.0038814544677734375, 0.00803375244140625, -0.032073974609375, -0.00628662109375, 0.02294921875, 0.050323486328125, -0.059478759765625, 0.028045654296875, 0.02325439453125, 0.01558685302734375, 0.0222320556640625, 0.017059326171875, -0.032623291015625, -0.0389404296875, 0.03045654296875, -0.046295166015625, -0.01715087890625, -0.00249481201171875, -0.0253753662109375, 0.00853729248046875, 0.0242462158203125, 0.01245880126953125, 0.01032257080078125, -0.03814697265625, -0.03790283203125, 0.01324462890625, 0.004383087158203125, -0.03936767578125, -0.01001739501953125, 0.0273895263671875, -0.003963470458984375, -0.03582763671875, 0.0701904296875, 0.0002532005310058594, 0.050628662109375, 0.0014247894287109375, -0.05322265625, 0.01432037353515625, 0.0384521484375, -0.0250396728515625, -0.00716400146484375, 0.0089569091796875, -0.063720703125, 0.025177001953125, 0.004329681396484375, 0.0033969879150390625, -0.015960693359375, -0.048736572265625, -0.024444580078125, -0.0421142578125, 0.0256500244140625, -0.014862060546875, -0.00911712646484375, 0.0119171142578125, -0.01198577880859375, -0.012939453125, 0.031463623046875, 0.0772705078125, 0.0081634521484375, 0.01422882080078125, 0.016632080078125, -0.0106658935546875, 0.0230865478515625, 0.028076171875, 0.02154541015625, -0.00212860107421875, 0.04052734375, -0.0665283203125, 0.046356201171875, -0.047210693359375, 0.0249481201171875, -0.0026149749755859375, 0.01146697998046875, 0.008819580078125, -0.002620697021484375, -0.024688720703125, 0.033355712890625, 0.01462554931640625, 0.058258056640625, -0.0504150390625, -0.034149169921875, 0.0260009765625, 0.0714111328125, 0.05413818359375, 0.00020134449005126953, -0.04632568359375, 0.0106353759765625, 0.09722900390625, 0.033172607421875, 0.0213165283203125, 0.047210693359375, -0.0168914794921875, -0.051727294921875, 0.0264129638671875, 0.0040435791015625, 0.029327392578125, 0.004329681396484375, -0.0130767822265625, 0.0016031265258789062, 0.0210723876953125, 0.022247314453125, -0.04681396484375, 0.05010986328125, 0.004100799560546875, -0.033966064453125, 0.0186920166015625, -0.0235137939453125, 0.03424072265625, 0.002471923828125, 0.01898193359375, -0.02032470703125, 0.0006556510925292969, -0.0137176513671875, 0.0487060546875, -0.0017290115356445312, 0.05908203125, 0.016998291015625, 0.0211181640625, 0.1197509765625, -0.04449462890625, 0.0283203125, 0.00592041015625, -0.057220458984375, 0.034912109375, 0.0030498504638671875, 0.00899505615234375, -0.0321044921875, 0.0251922607421875, 0.05645751953125, 0.03546142578125, -0.0295562744140625, -0.024810791015625, 0.00921630859375, -0.0010404586791992188, 0.019622802734375, -0.0181732177734375, -0.0096588134765625, -0.046478271484375, -0.01111602783203125, -0.058624267578125, -0.006927490234375, 0.050384521484375, 0.05255126953125, 0.01242828369140625, 0.0188140869140625, -0.06640625, -0.06988525390625, -0.042083740234375, 0.050323486328125, 0.0166473388671875, 0.046966552734375, -0.0229644775390625, 0.083984375, -0.0340576171875, -0.03289794921875, 0.0017824172973632812, 0.02294921875, -0.03350830078125, -0.0081787109375, -0.0340576171875, -0.05712890625, -0.013397216796875, 0.049102783203125, -0.0030727386474609375, 0.0263824462890625, 0.041473388671875, 0.080810546875, 0.0230255126953125, -0.0294342041015625, 0.0731201171875, 0.0019588470458984375, -0.006748199462890625, -0.0162811279296875, 0.053314208984375, 0.025909423828125, 0.01137542724609375, -0.0068817138671875, 0.07391357421875, 0.0189971923828125, -0.0254974365234375, 0.014984130859375, 0.0010042190551757812, -0.029754638671875, 0.0347900390625, -0.00511932373046875, 0.038330078125, 0.006610870361328125, -0.064208984375, -0.01751708984375, -0.067626953125, 0.05120849609375, 0.004039764404296875, 0.01776123046875, -0.001811981201171875, 0.061431884765625, 0.00804901123046875, -0.0570068359375, 0.0307769775390625, 0.0175323486328125, 0.00661468505859375, -0.0037326812744140625, 0.0007257461547851562, -0.0218353271484375, -0.035369873046875, -0.003932952880859375, -0.0005011558532714844, 0.006195068359375, 0.0228118896484375, 0.0285797119140625, 0.0213470458984375, 0.018280029296875, -0.03558349609375, 0.005603790283203125, -0.030029296875, -0.0416259765625, 0.09112548828125, -0.0044097900390625, -0.04840087890625, -0.00608062744140625, 0.044708251953125, -0.0294647216796875, 0.0809326171875, -0.05877685546875, -0.0298614501953125, -0.0263671875, 0.03570556640625, -0.0369873046875, 0.034210205078125, -0.020660400390625, -0.041290283203125, -0.04296875, -0.004730224609375, 0.002338409423828125, 0.0233001708984375, 0.01273345947265625, -0.0372314453125, -0.0208892822265625, -0.05706787109375, 0.022796630859375, 0.01029205322265625, 0.051300048828125, 0.04217529296875, -0.048858642578125, -0.00408172607421875, 0.0401611328125, -0.0094757080078125, 0.0167694091796875, 0.01120758056640625, 0.0227508544921875, 0.03521728515625, -0.08026123046875, 0.0097503662109375, 0.07159423828125, 0.045257568359375, 0.0118865966796875, 0.0181732177734375, 0.042816162109375, -0.054229736328125, -0.046783447265625, 0.003574371337890625, -0.05072021484375, -0.0182037353515625, 0.0216827392578125, -0.01023101806640625, 0.037567138671875, -0.027923583984375, -0.0207672119140625, -0.0051116943359375, 0.035400390625, -0.0016946792602539062, -0.03363037109375, 0.003986358642578125, -0.01497650146484375, 0.0250396728515625, 0.010406494140625, -0.06829833984375, 0.0028820037841796875, -0.0077667236328125, -0.006855010986328125, 0.0120086669921875, -0.06646728515625, -0.033203125, -0.03985595703125, -0.005176544189453125, 0.00479888916015625, -0.018218994140625, -0.01457977294921875, -0.006038665771484375, -0.010589599609375, 0.0408935546875, 0.04754638671875, -0.0179901123046875, 0.01175689697265625, 0.0277557373046875, -0.02069091796875, -0.056304931640625, 0.001346588134765625, -0.015594482421875, 0.034027099609375, -0.01971435546875, 0.03826904296875, 0.058197021484375, -0.0107879638671875, -0.02618408203125, 0.0491943359375, -0.0108642578125, -0.0213470458984375, -0.0186920166015625, -0.0185394287109375, -0.05242919921875, 0.08929443359375, 0.0092926025390625, -0.02423095703125, -0.005519866943359375, 0.050628662109375, 0.00014662742614746094, 0.0312042236328125, 0.0055694580078125, -0.0019779205322265625, -0.047454833984375, 0.0017023086547851562, -0.0078887939453125, 0.0061492919921875, -0.0114593505859375, -0.006397247314453125, 0.01229095458984375, 0.037811279296875, -0.0203094482421875, -0.0391845703125, 0.027069091796875, -0.00916290283203125, 0.024383544921875, -0.03961181640625, -0.0452880859375, -0.06878662109375, 0.021697998046875, 0.01021575927734375, 0.00893402099609375, 0.029449462890625, -0.0204010009765625, -0.0206146240234375, 0.0236358642578125, -0.01788330078125, -0.0033111572265625, -0.05889892578125, -0.01543426513671875, 0.01020050048828125, 0.006984710693359375, 0.022064208984375, 0.0217132568359375, -0.026947021484375, -0.0010061264038085938, 0.031158447265625, 0.006053924560546875, -0.1046142578125, 0.04730224609375, -0.02978515625, -0.03155517578125, -0.06439208984375, 0.0037822723388671875, -0.02520751953125, -0.06646728515625, -0.030914306640625, -0.03076171875, 0.00290679931640625, -0.018707275390625, 0.00945281982421875, -0.01654052734375, 0.011444091796875, -0.01953125, 0.026092529296875, -0.045623779296875, 0.016693115234375, 0.01180267333984375, -0.00933074951171875, -0.01403045654296875, 0.037078857421875, 0.056060791015625, 0.06439208984375, 0.00278472900390625, -0.008392333984375, -0.00676727294921875, 0.032958984375, -0.00583648681640625, -0.0222625732421875, 0.0309906005859375, -0.047332763671875, 0.0194549560546875, -0.02001953125, -0.005092620849609375, 0.019744873046875, -0.0160980224609375, 0.01094818115234375, -0.039215087890625, -0.004215240478515625 ]
ad6201abc6f6a2ac464abea379a2f8f9110ee7ef
Wordpress Stackexchange Q: Display custom field value on woocommerce product page I know similar questions have been asked dozens of times but I'm just not understanding how to display custom fields. I'm using woocommerce and want to display a custom field value on product pages. I add the custom field "current_promotions" and a value to a product, and have tried adding this to the content-product.php template, but I'm getting nowhere: <?php $postid = get_the_ID(); ?> <?php get_post_meta($post_id, $key, $single); ?> A: This should do it <?php echo get_post_meta( get_the_ID(), 'current_promotions', true ); ?>
Q: Display custom field value on woocommerce product page I know similar questions have been asked dozens of times but I'm just not understanding how to display custom fields. I'm using woocommerce and want to display a custom field value on product pages. I add the custom field "current_promotions" and a value to a product, and have tried adding this to the content-product.php template, but I'm getting nowhere: <?php $postid = get_the_ID(); ?> <?php get_post_meta($post_id, $key, $single); ?> A: This should do it <?php echo get_post_meta( get_the_ID(), 'current_promotions', true ); ?>
wordpress
{ "language": "en", "length": 91, "provenance": "stackexchange_00019.jsonl.gz:427656", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80081" }
[ 0.0088043212890625, -0.006649017333984375, -0.007659912109375, -0.044647216796875, -0.0081787109375, 0.011932373046875, -0.0168609619140625, -0.005336761474609375, -0.0003848075866699219, 0.00409698486328125, -0.011627197265625, -0.0352783203125, -0.06146240234375, -0.02301025390625, -0.0223388671875, -0.057525634765625, 0.040374755859375, -0.0015974044799804688, 0.06402587890625, 0.01505279541015625, -0.0063934326171875, 0.037628173828125, 0.0430908203125, 0.0238494873046875, 0.031341552734375, -0.07635498046875, 0.06939697265625, -0.03924560546875, 0.039276123046875, -0.017578125, 0.0273895263671875, 0.01004791259765625, 0.018096923828125, -0.0077362060546875, 0.015106201171875, 0.026214599609375, 0.032623291015625, -0.005970001220703125, 0.0262908935546875, 0.01464080810546875, 0.04931640625, -0.039306640625, 0.0178680419921875, -0.01983642578125, 0.0144500732421875, -0.0279083251953125, 0.030242919921875, -0.045806884765625, -0.00011998414993286133, 0.004047393798828125, 0.00811004638671875, 0.0253753662109375, 0.0152435302734375, 0.00528717041015625, -0.023681640625, -0.035491943359375, -0.06976318359375, 0.0038013458251953125, 0.02191162109375, 0.0467529296875, 0.024688720703125, -0.004657745361328125, -0.002300262451171875, -0.0253753662109375, 0.03607177734375, 0.017120361328125, -0.00502777099609375, 0.03759765625, -0.058319091796875, -0.001560211181640625, 0.0116424560546875, -0.05908203125, 0.008880615234375, -0.00748443603515625, -0.031890869140625, -0.062744140625, 0.018646240234375, -0.054595947265625, 0.0028533935546875, 0.01678466796875, -0.0250701904296875, 0.0152435302734375, -0.01181793212890625, -0.036376953125, -0.005550384521484375, -0.00832366943359375, -0.01462554931640625, -0.003662109375, 0.0056915283203125, -0.0653076171875, -0.00911712646484375, -0.0163116455078125, -0.0372314453125, 0.0006632804870605469, -0.03826904296875, -0.03369140625, 0.027618408203125, 0.036041259765625, -0.0156707763671875, -0.00827789306640625, 0.0214996337890625, -0.051513671875, 0.027587890625, -0.0228118896484375, -0.00865936279296875, 0.01154327392578125, -0.008575439453125, 0.0162200927734375, 0.042022705078125, 0.043731689453125, 0.0054473876953125, -0.014617919921875, 0.0105743408203125, -0.04620361328125, -0.03204345703125, 0.024078369140625, 0.00951385498046875, -0.0169830322265625, 0.0271453857421875, -0.03851318359375, 0.044708251953125, 0.041778564453125, 0.043304443359375, -0.03778076171875, -0.0010852813720703125, 0.001995086669921875, -0.055267333984375, -0.0625, -0.02099609375, 0.03466796875, -0.052642822265625, -0.0189208984375, 0.0579833984375, 0.0570068359375, 0.031494140625, -0.0298309326171875, 0.0305328369140625, -0.019073486328125, 0.015625, 0.00951385498046875, -0.03692626953125, -0.006481170654296875, 0.02862548828125, -0.03570556640625, 0.01293182373046875, 0.017303466796875, 0.00324249267578125, 0.0138397216796875, 0.0146942138671875, -0.01187896728515625, 0.0016937255859375, -0.00373077392578125, -0.0166015625, 0.01934814453125, 0.06787109375, 0.027191162109375, 0.0450439453125, -0.00928497314453125, 0.00445556640625, 0.0032405853271484375, 0.02410888671875, -0.0106658935546875, 0.004673004150390625, -0.072509765625, -0.0740966796875, -0.00556182861328125, -0.07135009765625, -0.0094146728515625, 0.023468017578125, 0.0114898681640625, 0.035247802734375, -0.0172119140625, 0.00905609130859375, -0.006591796875, -0.0173492431640625, -0.015625, -0.006134033203125, 0.05712890625, 0.034759521484375, -0.00588226318359375, -0.01529693603515625, -0.0419921875, 0.07806396484375, -0.028778076171875, -0.0157470703125, 0.0309295654296875, 0.0078125, 0.0087890625, -0.01216888427734375, 0.0102081298828125, 0.007198333740234375, 0.0384521484375, -0.030609130859375, 0.0023040771484375, 0.01396942138671875, 0.0019741058349609375, -0.0175933837890625, 0.0013599395751953125, -0.0121612548828125, -0.0186767578125, -0.06158447265625, 0.0225067138671875, 0.00009781122207641602, 0.04119873046875, 0.0209808349609375, 0.02362060546875, -0.00443267822265625, 0.0279693603515625, -0.029998779296875, -0.0103302001953125, 0.030792236328125, -0.02630615234375, -0.0126800537109375, -0.01450347900390625, -0.0216217041015625, -0.0274810791015625, -0.017791748046875, 0.059906005859375, 0.0067901611328125, 0.0152435302734375, -0.000331878662109375, -0.035858154296875, 0.0013837814331054688, 0.01534271240234375, -0.0003681182861328125, 0.025909423828125, -0.01471710205078125, 0.0040740966796875, 0.045196533203125, 0.0055999755859375, 0.040191650390625, -0.0167999267578125, -0.0280914306640625, -0.03790283203125, -0.034759521484375, 0.0006847381591796875, 0.0010690689086914062, -0.06500244140625, 0.00537872314453125, 0.05859375, 0.027252197265625, 0.0369873046875, 0.00347900390625, 0.0243377685546875, 0.09356689453125, 0.0191802978515625, 0.00911712646484375, 0.0017766952514648438, 0.01959228515625, 0.055999755859375, -0.032318115234375, 0.0146942138671875, 0.01062774658203125, -0.06329345703125, 0.00919342041015625, 0.055755615234375, -0.0204010009765625, -0.000492095947265625, -0.0006246566772460938, 0.01294708251953125, -0.0177459716796875, -0.0009350776672363281, 0.01605224609375, -0.01401519775390625, 0.005641937255859375, 0.05230712890625, 0.05596923828125, 0.046539306640625, -0.020294189453125, -0.0018873214721679688, 0.0030536651611328125, 0.034942626953125, -0.0081329345703125, -0.0440673828125, -0.055206298828125, -0.000007867813110351562, -0.0404052734375, 0.04119873046875, 0.007232666015625, -0.057952880859375, 0.013946533203125, 0.021728515625, -0.01419830322265625, -0.0022735595703125, 0.0161590576171875, -0.03839111328125, -0.0101318359375, 0.0311431884765625, 0.00783538818359375, -0.025054931640625, 0.00385284423828125, 0.0355224609375, -0.04248046875, 0.06146240234375, -0.0293121337890625, -0.022003173828125, -0.0211639404296875, -0.0338134765625, 0.041046142578125, -0.05987548828125, 0.01459503173828125, 0.05499267578125, -0.0263671875, 0.02777099609375, -0.0032215118408203125, 0.01300048828125, -0.00791168212890625, 0.007415771484375, -0.006473541259765625, 0.016571044921875, -0.07366943359375, 0.0020618438720703125, 0.0307159423828125, 0.031890869140625, -0.001842498779296875, -0.02838134765625, -0.0005431175231933594, 0.025726318359375, -0.08917236328125, -0.1234130859375, -0.00939178466796875, -0.0377197265625, -0.014373779296875, -0.02789306640625, -0.01110076904296875, 0.004489898681640625, -0.0192718505859375, 0.0123748779296875, -0.036529541015625, -0.0303192138671875, -0.0235137939453125, -0.0506591796875, -0.03948974609375, 0.0307159423828125, 0.0041961669921875, -0.003742218017578125, -0.00034499168395996094, 0.02239990234375, -0.0070953369140625, -0.0301666259765625, 0.0141448974609375, 0.01983642578125, 0.003101348876953125, 0.0209808349609375, 0.00748443603515625, -0.038482666015625, 0.0172882080078125, 0.00922393798828125, 0.01212310791015625, -0.0006737709045410156, -0.0020275115966796875, -0.02178955078125, -0.005542755126953125, 0.005504608154296875, 0.00937652587890625, 0.0115814208984375, 0.0115966796875, 0.01290130615234375, 0.015777587890625, -0.03082275390625, -0.0237579345703125, -0.00959014892578125, -0.039306640625, 0.0229949951171875, 0.005462646484375, -0.002887725830078125, -0.0167083740234375, 0.0338134765625, -0.006969451904296875, -0.0102081298828125, 0.016357421875, -0.039947509765625, 0.0252685546875, 0.0171966552734375, -0.0049896240234375, -0.003246307373046875, 0.01148223876953125, -0.0244293212890625, 0.0848388671875, 0.0316162109375, 0.027740478515625, -0.00275421142578125, 0.0419921875, -0.0372314453125, -0.06451416015625, 0.04351806640625, -0.01001739501953125, -0.0031375885009765625, -0.004589080810546875, -0.0235595703125, 0.0153961181640625, 0.1175537109375, -0.0301971435546875, -0.04058837890625, 0.0244903564453125, 0.02166748046875, -0.0406494140625, 0.004978179931640625, -0.03680419921875, -0.0177459716796875, -0.07147216796875, 0.0142059326171875, -0.01010894775390625, -0.01215362548828125, -0.0242156982421875, 0.04693603515625, -0.06658935546875, -0.03704833984375, 0.028900146484375, -0.01541900634765625, -0.016143798828125, 0.060455322265625, -0.03533935546875, 0.036956787109375, -0.016693115234375, -0.013641357421875, -0.009124755859375, -0.0220489501953125, 0.036590576171875, 0.036865234375, 0.0082244873046875, -0.0234375, -0.0045013427734375, 0.038818359375, 0.0181884765625, 0.030242919921875, 0.0125885009765625, 0.01474761962890625, 0.0162506103515625, -0.053375244140625, 0.01413726806640625, -0.039276123046875, -0.01535797119140625, -0.044097900390625, -0.0083465576171875, -0.0005893707275390625, -0.025482177734375, 0.0178070068359375, -0.0198822021484375, -0.005126953125, -0.0567626953125, -0.00933837890625, 0.017974853515625, 0.0203399658203125, -0.022216796875, 0.0260162353515625, 0.01027679443359375, -0.03375244140625, 0.01468658447265625, -0.016632080078125, -0.0272064208984375, 0.0244598388671875, 0.027679443359375, 0.017913818359375, 0.0031223297119140625, -0.03741455078125, 0.0098419189453125, 0.0308990478515625, 0.033538818359375, 0.02545166015625, -0.03472900390625, -0.038360595703125, 0.093994140625, 0.006328582763671875, 0.004726409912109375, 0.00806427001953125, 0.041290283203125, -0.00772857666015625, 0.0097808837890625, -0.00942230224609375, -0.02386474609375, 0.0151519775390625, 0.00754547119140625, -0.030029296875, -0.01488494873046875, -0.01090240478515625, 0.054931640625, -0.035980224609375, 0.0312347412109375, -0.043792724609375, -0.03387451171875, 0.0022220611572265625, 0.01125335693359375, 0.01384735107421875, 0.035980224609375, 0.00617218017578125, 0.01470947265625, 0.0036163330078125, 0.0167083740234375, -0.01378631591796875, -0.03814697265625, 0.00016963481903076172, 0.0013589859008789062, 0.022064208984375, 0.01085662841796875, 0.0215911865234375, -0.0099945068359375, 0.06329345703125, -0.01544952392578125, -0.054718017578125, 0.006229400634765625, -0.03802490234375, -0.0032958984375, 0.022918701171875, -0.0010929107666015625, 0.01230621337890625, 0.063720703125, 0.0015439987182617188, 0.01244354248046875, 0.00420379638671875, 0.050048828125, -0.032318115234375, 0.0002579689025878906, -0.0064239501953125, -0.001140594482421875, -0.02484130859375, 0.10162353515625, -0.0146331787109375, 0.058135986328125, -0.01303863525390625, 0.0518798828125, 0.030181884765625, 0.035125732421875, 0.039215087890625, -0.034881591796875, -0.0091705322265625, -0.0121307373046875, -0.04290771484375, -0.0164947509765625, 0.001922607421875, -0.016754150390625, 0.023223876953125, -0.040435791015625, -0.00995635986328125, 0.047271728515625, -0.0259857177734375, -0.0035076141357421875, -0.003997802734375, -0.02020263671875, -0.0291900634765625, -0.006992340087890625, 0.0220947265625, 0.0228424072265625, -0.004451751708984375, -0.0144805908203125, 0.00799560546875, -0.05560302734375, 0.02099609375, -0.01947021484375, 0.0338134765625, -0.030029296875, -0.0406494140625, -0.040435791015625, -0.0237884521484375, 0.018646240234375, -0.06549072265625, -0.033233642578125, -0.019378662109375, -0.0164642333984375, 0.05242919921875, 0.00040793418884277344, 0.030609130859375, -0.03741455078125, -0.005741119384765625, -0.0290679931640625, 0.00004220008850097656, 0.042694091796875, 0.01041412353515625, -0.06787109375, 0.0036411285400390625, -0.03204345703125, -0.0035552978515625, 0.0196380615234375, -0.00893402099609375, -0.023773193359375, -0.01751708984375, 0.0175933837890625, 0.0235443115234375, -0.013458251953125, -0.051055908203125, -0.032928466796875, 0.0033664703369140625, 0.03265380859375, 0.0311431884765625, 0.025848388671875, 0.00255584716796875, 0.0352783203125, 0.050262451171875, 0.041412353515625, -0.0016870498657226562, -0.035736083984375, -0.03704833984375, -0.0009045600891113281, -0.0040283203125, -0.023651123046875, -0.01230621337890625, -0.00008910894393920898, 0.016021728515625, 0.0487060546875, -0.003055572509765625, 0.018829345703125, -0.02655029296875, -0.00403594970703125, -0.01043701171875, 0.0181121826171875, -0.0106658935546875, -0.0120391845703125, 0.044952392578125, -0.04541015625, -0.026336669921875, 0.0272216796875, 0.01418304443359375, 0.01226806640625, -0.0173187255859375, -0.0018186569213867188, 0.011505126953125, -0.0014133453369140625, 0.04364013671875, 0.042266845703125, -0.00888824462890625, 0.0286712646484375, 0.0158538818359375, -0.0004718303680419922, 0.00823211669921875, 0.0479736328125, -0.02301025390625, -0.03424072265625, 0.037811279296875, 0.0176544189453125, -0.02508544921875, 0.0258331298828125, -0.022918701171875, 0.01081085205078125, 0.056884765625, 0.071044921875, -0.0927734375, 0.00928497314453125, 0.0173187255859375, -0.001682281494140625, 0.0284881591796875, 0.03607177734375, 0.0007600784301757812, 0.0006151199340820312, -0.00940704345703125, -0.0186767578125, 0.0017795562744140625, 0.01007843017578125, -0.0009298324584960938, 0.017120361328125, 0.018524169921875, 0.043304443359375, -0.002391815185546875, -0.0232086181640625, -0.06805419921875, 0.0166778564453125, -0.028564453125, 0.00759124755859375, 0.015838623046875, 0.0030975341796875, -0.014984130859375, -0.043304443359375, 0.01284027099609375, -0.0310821533203125, -0.009429931640625, 0.061004638671875, 0.03350830078125, 0.0011224746704101562, 0.0643310546875, 0.004177093505859375, 0.03973388671875, 0.0007510185241699219, 0.0236663818359375, -0.007106781005859375, -0.032623291015625, -0.0083160400390625, 0.03460693359375, -0.07293701171875, 0.0016231536865234375, -0.036895751953125, 0.029388427734375, -0.0133056640625, 0.06024169921875, 0.10784912109375, -0.0139617919921875, -0.053863525390625, 0.0300445556640625, 0.022857666015625, -0.0194549560546875, 0.00762939453125, -0.005634307861328125, -0.00684356689453125, 0.036590576171875, -0.0052947998046875, 0.01479339599609375, -0.003849029541015625, -0.001888275146484375, -0.06573486328125, 0.024078369140625, -0.01016998291015625, 0.0209503173828125, 0.0229034423828125, 0.002593994140625, -0.0233612060546875, -0.0282745361328125, -0.0224609375, 0.03125, -0.006389617919921875, 0.053253173828125, -0.08465576171875, -0.03289794921875, 0.00658416748046875, 0.076904296875, 0.055694580078125, 0.0124664306640625, 0.0019130706787109375, 0.0007491111755371094, 0.030059814453125, -0.030670166015625, -0.054779052734375, 0.047119140625, -0.0017910003662109375, -0.005992889404296875, 0.05322265625, -0.0189208984375, 0.01678466796875, 0.0183563232421875, -0.005352020263671875, 0.026641845703125, 0.01226043701171875, 0.0084991455078125, -0.006748199462890625, 0.004146575927734375, -0.007770538330078125, -0.0069122314453125, 0.0169677734375, 0.0017404556274414062, 0.0016870498657226562, 0.04254150390625, 0.016998291015625, 0.0221710205078125, 0.0188140869140625, -0.028167724609375, 0.04339599609375, 0.005214691162109375, 0.0496826171875, 0.02532958984375, 0.0121612548828125, 0.0732421875, 0.0011568069458007812, 0.040618896484375, 0.027801513671875, -0.01360321044921875, 0.022918701171875, 0.004398345947265625, -0.0107421875, -0.0252532958984375, 0.0718994140625, 0.045379638671875, 0.01259613037109375, -0.05133056640625, -0.02618408203125, 0.0063018798828125, -0.011322021484375, -0.0006771087646484375, -0.02423095703125, -0.01117706298828125, -0.00081634521484375, -0.01702880859375, -0.06903076171875, -0.01187896728515625, 0.0311279296875, 0.0513916015625, 0.00634765625, 0.0094146728515625, -0.077392578125, -0.07086181640625, -0.06842041015625, 0.01239013671875, 0.0206756591796875, 0.0830078125, 0.040252685546875, 0.06915283203125, -0.0006756782531738281, -0.0548095703125, 0.00208282470703125, 0.0411376953125, 0.01082611083984375, -0.00983428955078125, -0.003940582275390625, -0.0247344970703125, -0.0083465576171875, 0.020263671875, 0.0023021697998046875, 0.015655517578125, -0.00856781005859375, 0.0235443115234375, 0.0240631103515625, -0.01247406005859375, 0.07037353515625, -0.003314971923828125, -0.0010461807250976562, -0.037506103515625, 0.011474609375, 0.0018978118896484375, 0.005092620849609375, -0.0113677978515625, -0.00983428955078125, 0.0255279541015625, -0.023651123046875, 0.024566650390625, -0.012603759765625, -0.030120849609375, 0.0296783447265625, -0.01183319091796875, 0.0626220703125, 0.0016527175903320312, -0.068603515625, -0.01428985595703125, -0.034423828125, -0.041168212890625, 0.01763916015625, 0.037872314453125, -0.0089874267578125, 0.030242919921875, 0.005809783935546875, 0.0045318603515625, 0.0001456737518310547, -0.002391815185546875, 0.018402099609375, -0.00200653076171875, 0.0008440017700195312, 0.00799560546875, -0.036956787109375, -0.01092529296875, 0.0107269287109375, -0.00495147705078125, 0.006374359130859375, 0.01450347900390625, 0.0238494873046875, 0.026641845703125, -0.01556396484375, 0.004245758056640625, 0.00514984130859375, -0.0211029052734375, 0.06500244140625, 0.0311737060546875, -0.0093841552734375, -0.0284271240234375, -0.0037593841552734375, 0.01482391357421875, 0.034820556640625, -0.01053619384765625, -0.00806427001953125, 0.00937652587890625, 0.0227813720703125, -0.011199951171875, 0.01451873779296875, -0.0202178955078125, -0.044219970703125, -0.042266845703125, 0.003086090087890625, 0.00803375244140625, 0.0000030994415283203125, -0.02923583984375, 0.0176849365234375, 0.06719970703125, -0.0262451171875, 0.021240234375, -0.0090789794921875, 0.0704345703125, 0.05865478515625, 0.03033447265625, 0.02044677734375, 0.0394287109375, -0.01450347900390625, 0.021728515625, 0.0095062255859375, 0.0058135986328125, 0.034881591796875, -0.062347412109375, -0.0078277587890625, 0.00440216064453125, 0.0177154541015625, -0.0168304443359375, -0.00365447998046875, 0.0160064697265625, -0.0211639404296875, 0.00016689300537109375, -0.03912353515625, -0.023590087890625, -0.043304443359375, -0.007671356201171875, 0.01343536376953125, -0.0205535888671875, -0.038055419921875, -0.039947509765625, -0.007442474365234375, 0.02325439453125, -0.00620269775390625, -0.0238494873046875, 0.00452423095703125, -0.01325225830078125, 0.004398345947265625, -0.00856781005859375, -0.0207672119140625, 0.01384735107421875, 0.06402587890625, -0.006412506103515625, 0.022247314453125, -0.0239715576171875, -0.033294677734375, 0.00034880638122558594, 0.0290374755859375, 0.02069091796875, -0.01032257080078125, -0.0157928466796875, 0.0215911865234375, -0.0025272369384765625, 0.07000732421875, 0.019866943359375, -0.033538818359375, 0.00444793701171875, -0.00273895263671875, 0.005168914794921875, -0.0282440185546875, 0.0264739990234375, -0.06365966796875, -0.0276336669921875, -0.037994384765625, 0.048980712890625, 0.052703857421875, -0.016754150390625, -0.041778564453125, 0.045196533203125, -0.01361083984375, -0.0157318115234375, -0.006488800048828125, -0.015594482421875, -0.0255126953125, 0.049224853515625, 0.01485443115234375, -0.053375244140625, -0.0279388427734375, 0.031982421875, 0.0128326416015625, -0.027191162109375, 0.037994384765625, 0.0287933349609375, -0.0660400390625, 0.0086669921875, -0.01824951171875, -0.0209808349609375, 0.01448822021484375, -0.0182952880859375, -0.0218963623046875, -0.01094818115234375, -0.0771484375, -0.11688232421875, -0.0294647216796875, 0.052459716796875, 0.00510406494140625, -0.036773681640625, -0.02197265625, -0.062225341796875, 0.004169464111328125, -0.022186279296875, -0.00765228271484375, 0.04217529296875, 0.004390716552734375, 0.004146575927734375, -0.044097900390625, -0.01751708984375, 0.0240478515625, -0.0758056640625, -0.01123046875, 0.0186309814453125, -0.01177215576171875, -0.003673553466796875, 0.01143646240234375, -0.051025390625, 0.0059051513671875, 0.0230865478515625, 0.01025390625, -0.074951171875, -0.0152130126953125, 0.038482666015625, -0.019927978515625, -0.0299530029296875, 0.0262908935546875, -0.002166748046875, -0.006458282470703125, 0.0333251953125, 0.020721435546875, -0.032440185546875, -0.01959228515625, 0.01512908935546875, 0.00519561767578125, 0.049652099609375, -0.00945281982421875, -0.040008544921875, -0.004276275634765625, 0.047393798828125, -0.03021240234375, 0.040008544921875, 0.01474761962890625, 0.04833984375, -0.0016832351684570312, 0.08648681640625, -0.0288238525390625, 0.026702880859375, -0.021453857421875, 0.0171661376953125, -0.03912353515625, 0.0258026123046875, -0.003383636474609375, -0.005184173583984375, -0.00829315185546875, -0.007289886474609375, -0.06500244140625, -0.0189971923828125, -0.01311492919921875, 0.022735595703125, -0.0243377685546875, 0.00885772705078125 ]
c1a6b52207c0a9915f3ad14c910bd0e91fded8f8
Wordpress Stackexchange Q: Where are available Roles Defined in the wp_ database? I got on the list to test a private beta of a plugin I'm using on a multisite network. The plugin authors have code in there to add a custom role. They have a bug that removes the ability to give a user any role except their one custom role. When I visit ../wp-admin/network/site-users.php, the "Add User" role pulldowns only show the one role this plugin added. The change role pulldown menu shows all the WP default roles, plus a few extra roles this and other plugins have added. If I attempt to change a user to one of these roles, I get a "You can't give users that role" error page. I've been discussing this with the developer, and they seem baffled. I've been looking through my database and the codex, and I can't find where the valid roles are defined. A: User roles are stored in wp_options table. search for option name wp_user_roles in the wp_options table.
Q: Where are available Roles Defined in the wp_ database? I got on the list to test a private beta of a plugin I'm using on a multisite network. The plugin authors have code in there to add a custom role. They have a bug that removes the ability to give a user any role except their one custom role. When I visit ../wp-admin/network/site-users.php, the "Add User" role pulldowns only show the one role this plugin added. The change role pulldown menu shows all the WP default roles, plus a few extra roles this and other plugins have added. If I attempt to change a user to one of these roles, I get a "You can't give users that role" error page. I've been discussing this with the developer, and they seem baffled. I've been looking through my database and the codex, and I can't find where the valid roles are defined. A: User roles are stored in wp_options table. search for option name wp_user_roles in the wp_options table. A: User Roles are stored in table wp_user_meta To check user roles, first, check out the user id in the table wp_users (Column name ID) Now Go to table wp_usermeta and search where column user_id is equal to the ID that matches ID from wp_users table. You will get a list of rows with metadata of the chosen user, the row with meta_key as wp_capabilities defines the user role. The Value of wp_capabilities for * *Admin : a:1:{s:13:"administrator";b:1;} *Woo Commerce Customer : a:1:{s:8:"customer";b:1;}
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:427704", "question_score": "26", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80251" }
[ 0.06671142578125, -0.04241943359375, 0.007724761962890625, -0.018157958984375, -0.007328033447265625, -0.03924560546875, 0.054901123046875, -0.019134521484375, -0.01171875, 0.02490234375, -0.00128173828125, -0.007808685302734375, -0.0309906005859375, -0.0285797119140625, -0.038482666015625, -0.051666259765625, 0.0258331298828125, -0.004180908203125, 0.004871368408203125, -0.0166015625, 0.0095062255859375, 0.011199951171875, -0.01123809814453125, 0.0738525390625, 0.0290679931640625, -0.01308441162109375, 0.0394287109375, -0.040374755859375, 0.0355224609375, -0.0002627372741699219, 0.0242919921875, -0.01611328125, 0.00588226318359375, -0.0167236328125, 0.031402587890625, -0.03485107421875, 0.0179443359375, -0.026092529296875, 0.0003306865692138672, 0.0240478515625, 0.0213165283203125, 0.0079498291015625, 0.046142578125, 0.0233917236328125, 0.00365447998046875, -0.0697021484375, 0.05322265625, -0.026458740234375, 0.00643157958984375, -0.04541015625, 0.0263519287109375, -0.01287841796875, 0.0518798828125, -0.03741455078125, -0.01018524169921875, -0.0227813720703125, -0.009735107421875, 0.01776123046875, 0.0290985107421875, 0.0235443115234375, -0.011871337890625, 0.009063720703125, -0.002880096435546875, -0.0198822021484375, -0.0013151168823242188, -0.005039215087890625, 0.052978515625, 0.04827880859375, -0.01525115966796875, -0.0364990234375, -0.0220489501953125, 0.020904541015625, 0.005237579345703125, -0.02410888671875, -0.03240966796875, 0.0247650146484375, 0.00023233890533447266, -0.01751708984375, 0.042510986328125, -0.0244293212890625, 0.0221710205078125, -0.00829315185546875, 0.024688720703125, 0.0182647705078125, -0.01082611083984375, 0.01454925537109375, -0.010162353515625, -0.017913818359375, -0.022796630859375, 0.006809234619140625, -0.01438140869140625, -0.0295257568359375, -0.0244598388671875, 0.0272064208984375, -0.00617218017578125, 0.0009212493896484375, 0.057586669921875, 0.08843994140625, -0.01120758056640625, -0.0182952880859375, 0.004425048828125, -0.035003662109375, -0.013153076171875, -0.0406494140625, -0.0033969879150390625, 0.0296630859375, 0.0102081298828125, 0.00600433349609375, 0.007442474365234375, 0.018035888671875, -0.0119476318359375, -0.0220184326171875, -0.00569915771484375, -0.036285400390625, -0.005313873291015625, -0.0165252685546875, -0.0440673828125, 0.0352783203125, 0.01071929931640625, -0.00818634033203125, -0.0028057098388671875, 0.0309600830078125, -0.00695037841796875, -0.0633544921875, -0.0498046875, -0.07550048828125, -0.026336669921875, -0.00827789306640625, -0.07000732421875, 0.026611328125, -0.0163726806640625, 0.004791259765625, 0.059234619140625, 0.0584716796875, -0.004100799560546875, -0.0177001953125, 0.037567138671875, 0.020111083984375, 0.00930023193359375, 0.006824493408203125, 0.00380706787109375, -0.035369873046875, -0.023712158203125, -0.0028934478759765625, 0.01152801513671875, 0.007232666015625, 0.0147705078125, 0.0266265869140625, -0.0038051605224609375, -0.005359649658203125, -0.024017333984375, 0.055023193359375, -0.004833221435546875, 0.032318115234375, 0.056854248046875, -0.0118865966796875, 0.04730224609375, -0.0242767333984375, 0.01059722900390625, -0.006683349609375, 0.0169525146484375, 0.0005106925964355469, 0.00644683837890625, -0.01523590087890625, -0.038848876953125, -0.00948333740234375, -0.0301513671875, -0.005157470703125, 0.028289794921875, -0.037384033203125, -0.0171051025390625, -0.045166015625, 0.053253173828125, 0.0227813720703125, 0.00707244873046875, 0.07049560546875, -0.036163330078125, 0.0024394989013671875, 0.0235137939453125, -0.004650115966796875, -0.0135650634765625, -0.036956787109375, 0.005390167236328125, 0.0261383056640625, -0.031158447265625, -0.00988006591796875, -0.0119781494140625, 0.006561279296875, 0.036529541015625, 0.0160675048828125, -0.0143890380859375, 0.022064208984375, -0.019195556640625, -0.00344085693359375, -0.004276275634765625, -0.007354736328125, -0.01398468017578125, 0.0006213188171386719, -0.0180816650390625, 0.005298614501953125, 0.018157958984375, -0.0164794921875, -0.000759124755859375, -0.01235198974609375, -0.0513916015625, -0.01715087890625, -0.0142364501953125, 0.01910400390625, 0.0423583984375, 0.003948211669921875, -0.01474761962890625, 0.010589599609375, 0.0019016265869140625, -0.07733154296875, -0.052459716796875, 0.0438232421875, -0.0245361328125, 0.06439208984375, -0.00936126708984375, 0.044921875, -0.00942230224609375, -0.07073974609375, -0.00643157958984375, 0.005462646484375, 0.040679931640625, 0.0196533203125, -0.008880615234375, 0.0033092498779296875, 0.08294677734375, 0.01264190673828125, 0.03887939453125, -0.0181121826171875, 0.0247039794921875, 0.03558349609375, -0.0007200241088867188, 0.0017452239990234375, 0.01971435546875, -0.08795166015625, 0.01251220703125, 0.036224365234375, 0.0301513671875, 0.0279541015625, -0.005397796630859375, 0.01181793212890625, -0.0013704299926757812, -0.0755615234375, 0.018402099609375, -0.0108642578125, 0.0018405914306640625, 0.056060791015625, 0.033050537109375, 0.0335693359375, 0.002071380615234375, 0.020782470703125, -0.0269317626953125, 0.049713134765625, -0.050537109375, -0.01507568359375, 0.00848388671875, -0.001560211181640625, 0.0003345012664794922, -0.054107666015625, 0.0186920166015625, -0.046722412109375, 0.0120697021484375, -0.0185546875, 0.01474761962890625, 0.0040130615234375, -0.01288604736328125, -0.0165252685546875, 0.0168609619140625, -0.00005227327346801758, 0.007549285888671875, 0.007122039794921875, -0.01047515869140625, 0.0118255615234375, -0.0039043426513671875, -0.006969451904296875, -0.019134521484375, -0.005138397216796875, -0.004291534423828125, 0.019500732421875, 0.0021877288818359375, -0.00279998779296875, -0.0273895263671875, -0.040618896484375, 0.0289154052734375, 0.051361083984375, -0.003910064697265625, -0.02044677734375, 0.0092620849609375, 0.004573822021484375, -0.0330810546875, 0.038299560546875, 0.00890350341796875, -0.03216552734375, -0.017242431640625, -0.042022705078125, 0.038726806640625, -0.029815673828125, 0.004878997802734375, 0.075439453125, 0.0289459228515625, -0.0273895263671875, 0.0017271041870117188, -0.05780029296875, -0.0108184814453125, 0.032928466796875, 0.0037746429443359375, -0.04241943359375, -0.001987457275390625, 0.050079345703125, 0.01502227783203125, -0.0264434814453125, 0.00811004638671875, -0.00927734375, -0.0172271728515625, 0.01238250732421875, -0.0440673828125, -0.00588226318359375, 0.01251983642578125, -0.050079345703125, 0.0019073486328125, -0.022552490234375, -0.0081329345703125, -0.005664825439453125, -0.0263519287109375, -0.002735137939453125, -0.01288604736328125, -0.033294677734375, -0.04266357421875, -0.0322265625, -0.07867431640625, 0.04693603515625, 0.007747650146484375, 0.05267333984375, -0.015533447265625, 0.083740234375, -0.01142120361328125, -0.0408935546875, -0.04486083984375, 0.0054931640625, 0.0004761219024658203, -0.022216796875, 0.017974853515625, -0.045623779296875, 0.0171356201171875, -0.00843048095703125, 0.003765106201171875, 0.0088653564453125, 0.00450897216796875, -0.0105438232421875, 0.0177764892578125, -0.01323699951171875, 0.0219879150390625, 0.0206146240234375, -0.02923583984375, 0.0090484619140625, 0.044677734375, -0.0341796875, 0.00004404783248901367, 0.0012493133544921875, -0.01056671142578125, 0.03863525390625, -0.03759765625, -0.0071868896484375, 0.01282501220703125, 0.05218505859375, 0.02911376953125, 0.008697509765625, -0.00814056396484375, 0.006587982177734375, -0.00963592529296875, 0.00865936279296875, 0.0239410400390625, 0.00469207763671875, 0.050445556640625, -0.00815582275390625, -0.0067138671875, 0.016021728515625, 0.0184173583984375, 0.005390167236328125, 0.0052490234375, -0.032135009765625, -0.07452392578125, 0.040679931640625, -0.034393310546875, 0.0167694091796875, -0.05047607421875, -0.0234832763671875, -0.0007238388061523438, 0.11474609375, 0.0180816650390625, 0.0089569091796875, -0.01432037353515625, -0.0017328262329101562, -0.050018310546875, -0.01082611083984375, -0.049468994140625, -0.0013027191162109375, -0.0257110595703125, -0.0233154296875, -0.0124359130859375, -0.00801849365234375, -0.017303466796875, 0.05084228515625, -0.024444580078125, -0.025634765625, 0.049652099609375, -0.07794189453125, 0.037109375, -0.0045166015625, 0.0283660888671875, -0.0648193359375, -0.0118255615234375, -0.02923583984375, -0.08355712890625, -0.00301361083984375, -0.0660400390625, 0.049896240234375, 0.04296875, 0.0020904541015625, -0.00841522216796875, 0.039031982421875, 0.0279541015625, 0.0013103485107421875, 0.03265380859375, 0.00009649991989135742, 0.0275726318359375, -0.0153045654296875, 0.0237274169921875, -0.033203125, -0.0219879150390625, -0.0214996337890625, 0.0002639293670654297, 0.007080078125, -0.043792724609375, -0.01474761962890625, -0.038787841796875, -0.006076812744140625, -0.00019550323486328125, 0.013336181640625, -0.0179901123046875, 0.0208587646484375, -0.0261688232421875, 0.01479339599609375, -0.00119781494140625, -0.020538330078125, 0.0460205078125, -0.051727294921875, 0.0072784423828125, 0.02685546875, 0.09088134765625, 0.01206207275390625, -0.0099639892578125, -0.048065185546875, -0.015045166015625, 0.058441162109375, 0.0421142578125, 0.021728515625, 0.05584716796875, -0.0294647216796875, 0.00154876708984375, 0.056793212890625, 0.00848388671875, -0.006771087646484375, 0.0278167724609375, 0.01287078857421875, -0.023895263671875, 0.0170135498046875, 0.0108642578125, -0.034515380859375, -0.01345062255859375, 0.002315521240234375, -0.0222015380859375, 0.042877197265625, 0.02606201171875, -0.023193359375, 0.01442718505859375, -0.01232147216796875, -0.033905029296875, 0.0022869110107421875, -0.04461669921875, 0.045989990234375, 0.0264739990234375, 0.0030269622802734375, 0.0247650146484375, 0.00450897216796875, -0.007648468017578125, -0.0030918121337890625, 0.0027313232421875, -0.01050567626953125, 0.055450439453125, -0.0377197265625, -0.011566162109375, -0.007541656494140625, -0.021514892578125, 0.08856201171875, -0.00032711029052734375, -0.0611572265625, 0.032196044921875, -0.039031982421875, 0.040924072265625, 0.035308837890625, 0.02008056640625, 0.00799560546875, 0.00408172607421875, 0.01267242431640625, -0.000820159912109375, 0.0102081298828125, 0.00441741943359375, -0.0052032470703125, 0.0235137939453125, -0.00591278076171875, -0.0004608631134033203, 0.00768280029296875, 0.046142578125, 0.02001953125, 0.0257110595703125, -0.01922607421875, 0.04241943359375, 0.0465087890625, 0.01186370849609375, -0.005126953125, 0.04376220703125, -0.02239990234375, -0.0011396408081054688, 0.01171112060546875, -0.031829833984375, -0.0259857177734375, 0.0172271728515625, 0.049591064453125, -0.01885986328125, -0.025360107421875, 0.0269927978515625, -0.0033893585205078125, -0.00949859619140625, 0.07012939453125, -0.0391845703125, -0.0968017578125, -0.0289764404296875, 0.030609130859375, 0.04705810546875, -0.061004638671875, -0.0188446044921875, -0.006214141845703125, -0.035125732421875, -0.004573822021484375, 0.00966644287109375, -0.02825927734375, -0.0158233642578125, -0.006755828857421875, -0.06121826171875, -0.01558685302734375, -0.0007796287536621094, 0.003627777099609375, -0.021240234375, 0.0008873939514160156, -0.0294189453125, 0.005695343017578125, -0.039093017578125, 0.015350341796875, -0.0279083251953125, 0.014892578125, -0.0968017578125, 0.006946563720703125, 0.054443359375, 0.042724609375, -0.0303192138671875, 0.0002560615539550781, -0.029144287109375, -0.01012420654296875, -0.0034122467041015625, -0.034027099609375, -0.03167724609375, -0.0179443359375, 0.0308990478515625, 0.01493072509765625, 0.01421356201171875, -0.0296783447265625, -0.044342041015625, 0.0106964111328125, 0.05731201171875, 0.032135009765625, -0.006473541259765625, 0.017608642578125, 0.0249176025390625, 0.03857421875, 0.01873779296875, 0.01041412353515625, -0.0002982616424560547, -0.032257080078125, -0.006542205810546875, -0.0149688720703125, -0.01806640625, -0.00972747802734375, 0.01284027099609375, 0.023040771484375, 0.048919677734375, -0.0051727294921875, 0.019622802734375, -0.0174713134765625, 0.004116058349609375, -0.0233306884765625, -0.0034923553466796875, -0.0022869110107421875, 0.007030487060546875, 0.015960693359375, -0.03857421875, 0.0179443359375, 0.02386474609375, 0.004230499267578125, 0.00833892822265625, -0.029449462890625, 0.01155853271484375, 0.037322998046875, -0.045196533203125, 0.033721923828125, 0.049285888671875, 0.0094146728515625, 0.0254669189453125, 0.0013914108276367188, 0.00884246826171875, -0.007373809814453125, 0.0021266937255859375, -0.058197021484375, -0.037750244140625, 0.018157958984375, 0.0020542144775390625, -0.0257720947265625, 0.017822265625, -0.0079345703125, 0.02349853515625, 0.048553466796875, 0.031646728515625, -0.09234619140625, 0.0401611328125, -0.00992584228515625, 0.019989013671875, 0.067138671875, -0.0089874267578125, -0.013702392578125, -0.036041259765625, -0.004245758056640625, 0.0031909942626953125, -0.03521728515625, -0.01248931884765625, 0.004863739013671875, -0.024566650390625, -0.006397247314453125, -0.01494598388671875, 0.0233154296875, 0.0302276611328125, 0.03564453125, -0.032318115234375, 0.031646728515625, 0.005584716796875, 0.01122283935546875, 0.0133056640625, -0.019073486328125, -0.054473876953125, 0.01068878173828125, -0.01309967041015625, -0.04144287109375, 0.01727294921875, -0.0016279220581054688, 0.01678466796875, 0.051544189453125, -0.01020050048828125, 0.0017719268798828125, 0.034820556640625, -0.031768798828125, -0.041412353515625, -0.053375244140625, 0.01175689697265625, 0.0287017822265625, -0.06719970703125, 0.03753662109375, -0.0142364501953125, -0.03173828125, -0.022308349609375, -0.05328369140625, 0.044830322265625, -0.0171356201171875, 0.0027790069580078125, 0.018157958984375, 0.0259857177734375, 0.0013799667358398438, 0.004543304443359375, 0.0073089599609375, -0.028778076171875, -0.00658416748046875, -0.004329681396484375, -0.0172271728515625, 0.019866943359375, 0.042388916015625, -0.04425048828125, 0.0714111328125, -0.03509521484375, 0.01105499267578125, 0.0390625, 0.0097198486328125, -0.0297088623046875, -0.004764556884765625, -0.048797607421875, 0.04583740234375, -0.02081298828125, 0.04510498046875, -0.039886474609375, 0.0164031982421875, -0.004802703857421875, 0.0113677978515625, 0.057525634765625, 0.01690673828125, -0.0101318359375, -0.0029850006103515625, 0.0193328857421875, 0.00975799560546875, -0.0237579345703125, 0.039886474609375, -0.0027523040771484375, 0.029998779296875, 0.00753021240234375, -0.0228729248046875, 0.035797119140625, -0.04705810546875, -0.0258636474609375, 0.01436614990234375, 0.02581787109375, 0.0194549560546875, 0.01165008544921875, 0.0311737060546875, -0.04229736328125, 0.00402069091796875, 0.042938232421875, -0.041595458984375, 0.016571044921875, 0.0260467529296875, 0.041046142578125, -0.0281829833984375, -0.0206298828125, -0.01453399658203125, 0.0369873046875, -0.0003657341003417969, 0.016204833984375, -0.0070953369140625, 0.01532745361328125, -0.0005021095275878906, -0.024169921875, 0.00307464599609375, 0.032958984375, -0.035797119140625, 0.055023193359375, 0.036865234375, 0.0078277587890625, -0.0237579345703125, 0.05035400390625, 0.019317626953125, 0.06378173828125, -0.070556640625, -0.05792236328125, 0.019805908203125, 0.020965576171875, -0.0017671585083007812, 0.0240478515625, 0.004535675048828125, -0.0214996337890625, 0.046417236328125, -0.039794921875, 0.019744873046875, 0.0162200927734375, -0.01163482666015625, -0.01531219482421875, -0.0069732666015625, 0.001064300537109375, 0.027679443359375, -0.01666259765625, -0.0232086181640625, -0.01541900634765625, 0.00322723388671875, 0.043792724609375, -0.018798828125, 0.03643798828125, -0.0006465911865234375, 0.024993896484375, 0.03326416015625, -0.051513671875, -0.0200347900390625, -0.03485107421875, -0.1170654296875, 0.006572723388671875, 0.039459228515625, -0.00038170814514160156, -0.027587890625, -0.034454345703125, -0.004299163818359375, -0.0012235641479492188, -0.0182037353515625, 0.005527496337890625, -0.014862060546875, -0.0204925537109375, -0.001789093017578125, 0.01412200927734375, 0.037353515625, -0.00542449951171875, -0.0023097991943359375, 0.039093017578125, 0.043975830078125, 0.00359344482421875, 0.0474853515625, 0.002780914306640625, -0.0030269622802734375, 0.0049896240234375, -0.01435089111328125, 0.03021240234375, 0.0207977294921875, -0.06622314453125, -0.018157958984375, -0.044189453125, -0.0175018310546875, 0.0155487060546875, 0.049957275390625, 0.0129547119140625, -0.00873565673828125, 0.0135498046875, -0.031494140625, 0.01453399658203125, 0.0026111602783203125, 0.007843017578125, -0.006961822509765625, 0.00569915771484375, -0.017669677734375, -0.0601806640625, -0.00936126708984375, 0.00634765625, -0.0057373046875, -0.026153564453125, 0.06268310546875, -0.0095062255859375, -0.00713348388671875, -0.034454345703125, 0.0131072998046875, -0.047393798828125, -0.04388427734375, 0.032073974609375, 0.00786590576171875, -0.00514984130859375, 0.006809234619140625, -0.0266265869140625, 0.0531005859375, 0.02532958984375, -0.010589599609375, 0.031280517578125, -0.0046844482421875, 0.0032825469970703125, -0.01617431640625, 0.0528564453125, -0.01129150390625, -0.0200042724609375, -0.0445556640625, -0.0130462646484375, 0.0438232421875, 0.05126953125, -0.0023956298828125, 0.004398345947265625, -0.01213836669921875, -0.040740966796875, -0.0079498291015625, -0.0136260986328125, -0.0286712646484375, 0.026611328125, 0.003437042236328125, -0.0293731689453125, 0.0068817138671875, -0.005779266357421875, -0.026885986328125, 0.0172271728515625, 0.004169464111328125, 0.037872314453125, -0.0257568359375, 0.020843505859375, 0.0181121826171875, 0.050323486328125, -0.00650787353515625, 0.01340484619140625, 0.0208740234375, -0.0016508102416992188, -0.0213470458984375, 0.017913818359375, -0.02728271484375, -0.0458984375, -0.01325225830078125, 0.0014505386352539062, -0.01428985595703125, -0.045867919921875, -0.04962158203125, -0.0087127685546875, 0.039581298828125, 0.0291748046875, -0.103515625, 0.0389404296875, 0.00225067138671875, 0.06561279296875, -0.0118408203125, -0.04449462890625, 0.041259765625, 0.06719970703125, -0.0294342041015625, 0.04071044921875, 0.018310546875, -0.080322265625, 0.01540374755859375, 0.0295867919921875, 0.0213470458984375, -0.0015077590942382812, -0.01387786865234375, 0.06781005859375, -0.00860595703125, 0.11346435546875, -0.052398681640625, 0.0162811279296875, -0.003528594970703125, 0.011077880859375, -0.0447998046875, -0.0733642578125, 0.03900146484375, -0.06585693359375, -0.047088623046875, -0.038299560546875, 0.0161895751953125, 0.0080108642578125, -0.027984619140625, -0.01427459716796875, 0.092041015625, -0.02569580078125, -0.0015010833740234375, -0.05169677734375, 0.0068206787109375, 0.0020809173583984375, -0.0098419189453125, -0.0116119384765625, -0.0161895751953125, -0.02105712890625, 0.0374755859375, 0.0182952880859375, -0.045440673828125, 0.0230865478515625, -0.00757598876953125, -0.064453125, 0.021820068359375, 0.038848876953125, 0.0097808837890625, 0.01183319091796875, -0.01128387451171875, 0.03515625, 0.08197021484375, -0.0004973411560058594, -0.0655517578125, -0.0172882080078125, -0.06573486328125, 0.01093292236328125, -0.02459716796875, 0.0003247261047363281, -0.01641845703125, 0.0195159912109375, 0.0107421875, -0.00601959228515625, -0.00795745849609375, -0.007282257080078125, -0.041107177734375, -0.060577392578125, 0.004360198974609375, 0.027069091796875, -0.046051025390625, 0.0201263427734375, 0.0177001953125, -0.05712890625, 0.018524169921875, 0.03521728515625, -0.04925537109375, 0.03753662109375, 0.02117919921875, -0.045745849609375, -0.04058837890625, 0.055389404296875, 0.029998779296875, -0.04290771484375, -0.01517486572265625, -0.002872467041015625, -0.02838134765625, 0.0091552734375, 0.00762176513671875, -0.00429534912109375, -0.02056884765625, -0.0511474609375, 0.04132080078125, -0.0281829833984375, 0.03570556640625, -0.0767822265625, -0.022216796875, 0.0257720947265625, 0.03399658203125, -0.02874755859375, 0.041015625, 0.01232147216796875, 0.027862548828125, -0.01207733154296875, 0.041351318359375, -0.007640838623046875, -0.0148773193359375, -0.05242919921875, 0.052032470703125, -0.0013914108276367188, -0.0166473388671875, 0.013824462890625, -0.0011606216430664062, 0.006378173828125, 0.01141357421875, 0.018157958984375, -0.00371551513671875, 0.01258087158203125, 0.0465087890625, -0.00603485107421875, 0.0086822509765625 ]
53fee35bcc3bcd828f6cedfd4227c621df548c29
Wordpress Stackexchange Q: Query all posts where a meta key does not exist I am trying to get a query to retrieve all the posts where a specific meta_key does not exist and then create it. I am having problems finding those posts as the query I am testing does not seem to work. Here is the code I am using to try to get those posts: $args = array( 'posts_per_page' => 18, 'cat'=>1955, 'post_status'=>'publish', 'meta_query' => array( array( 'key' => 'colors', 'compare' => 'NOT EXISTS' ), )); query_posts($args); This returns nothing if there are no posts with the key colors, but returns they ids of the posts with the key colors whenever that key is present (the opposite of what I need). I tried with EXIST instead but no luck. If someone can tip me on the correct way of creating a query like the one I need I will appreciate it. Thanks! A: Adding a relation makes it work, even though there's only one clause 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'colors', 'compare' => 'NOT EXISTS' ) )
Q: Query all posts where a meta key does not exist I am trying to get a query to retrieve all the posts where a specific meta_key does not exist and then create it. I am having problems finding those posts as the query I am testing does not seem to work. Here is the code I am using to try to get those posts: $args = array( 'posts_per_page' => 18, 'cat'=>1955, 'post_status'=>'publish', 'meta_query' => array( array( 'key' => 'colors', 'compare' => 'NOT EXISTS' ), )); query_posts($args); This returns nothing if there are no posts with the key colors, but returns they ids of the posts with the key colors whenever that key is present (the opposite of what I need). I tried with EXIST instead but no luck. If someone can tip me on the correct way of creating a query like the one I need I will appreciate it. Thanks! A: Adding a relation makes it work, even though there's only one clause 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'colors', 'compare' => 'NOT EXISTS' ) ) A: Using a custom query, this worked for me: SELECT * FROM wp_posts as posts WHERE posts.post_type = 'post' AND NOT EXISTS ( SELECT * FROM `wp_postmeta` WHERE `wp_postmeta`.`meta_key` = "your_meta_key" AND `wp_postmeta`.`post_id`=posts.ID ) A: I did some more testing with this, and honestly can't find a reason it wouldn't work (unless the code above is just a snippet and the real code fits on my examples below). I did, however, discover a couple of things that might lead you in the right direction. 1) By itself, this meta query is the equivalent of "colors IS NULL", i.e. it'll return the posts which don't have that key set in the postmeta table. This is the case shown above, and it should've worked. 'meta_query' => array( array( 'key' => 'colors', 'compare' => 'NOT EXISTS' // this should work... ), ) 2) Prior to WordPress 3.9, establishing the 'relation' index to 'OR' changes this condition. It returns the opposite. Don't ask me why. This is especially important when doing multiple meta queries. That means that is not initially possible to do a query for posts that have 'colors' key set to 'blue' (or whatever) or not set at all. The query below will ignore the first condition and return only those that match the second condition. 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'colors', 'compare' => 'NOT EXISTS' // doesn't work ), array( 'key' => 'colors', 'value' => 'blue' ) ) 3) However, we can fool WordPress into using the first condition if we set the 'value'. It doesn't need a relevant value (it's ignored, as far as I know), but it needs to be set in order for the NOT EXISTS condition to have any effect. 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'colors', 'compare' => 'NOT EXISTS', // works! 'value' => '' // This is ignored, but is necessary... ), array( 'key' => 'colors', 'value' => 'blue' ) ) This was true up until WordPress 3.9. If you're still using an older version, this is a viable workaround.
wordpress
{ "language": "en", "length": 523, "provenance": "stackexchange_00019.jsonl.gz:427720", "question_score": "67", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80303" }
[ 0.0026912689208984375, -0.0304412841796875, 0.041839599609375, 0.064697265625, -0.0300140380859375, -0.015960693359375, 0.06793212890625, -0.0545654296875, -0.0110931396484375, 0.046630859375, -0.036773681640625, -0.010528564453125, -0.0115203857421875, -0.00983428955078125, -0.04400634765625, -0.061492919921875, 0.0280609130859375, -0.0259246826171875, 0.01499176025390625, -0.0091552734375, 0.0283660888671875, -0.0024547576904296875, 0.035400390625, -0.0198516845703125, 0.0396728515625, -0.0531005859375, 0.0322265625, -0.0248260498046875, 0.02459716796875, -0.018951416015625, 0.0352783203125, 0.0189056396484375, -0.00856781005859375, -0.021392822265625, 0.061309814453125, -0.0180511474609375, 0.0130157470703125, -0.0021228790283203125, 0.043060302734375, -0.03570556640625, 0.005374908447265625, -0.00041174888610839844, 0.026153564453125, 0.03936767578125, -0.0120391845703125, -0.032562255859375, 0.01282501220703125, -0.034637451171875, 0.03350830078125, 0.01181793212890625, -0.03997802734375, 0.04541015625, -0.034393310546875, 0.0156097412109375, -0.0152740478515625, -0.036834716796875, 0.01248931884765625, -0.0177459716796875, 0.036346435546875, -0.049346923828125, -0.03369140625, -0.007404327392578125, 0.0302581787109375, 0.02520751953125, -0.0303955078125, -0.020751953125, -0.03594970703125, 0.0196075439453125, -0.04644775390625, -0.04376220703125, 0.036407470703125, -0.0126953125, -0.008544921875, -0.025726318359375, -0.0160980224609375, -0.005580902099609375, 0.039825439453125, -0.005626678466796875, -0.0239410400390625, 0.0338134765625, 0.035247802734375, 0.0207977294921875, -0.01100921630859375, 0.0010061264038085938, 0.0004756450653076172, -0.005054473876953125, 0.000046253204345703125, -0.020751953125, -0.037994384765625, -0.04931640625, -0.019195556640625, -0.08905029296875, -0.08355712890625, 0.01442718505859375, 0.013214111328125, -0.049530029296875, 0.022003173828125, 0.05963134765625, -0.03607177734375, 0.016876220703125, -0.035858154296875, -0.03131103515625, 0.0290679931640625, -0.0379638671875, 0.036895751953125, 0.01285552978515625, -0.055450439453125, -0.060699462890625, 0.042694091796875, 0.0540771484375, 0.00897216796875, 0.0079803466796875, -0.009765625, -0.011627197265625, -0.0273895263671875, 0.0186920166015625, -0.0147857666015625, -0.01218414306640625, -0.0045623779296875, -0.0028133392333984375, 0.024200439453125, 0.0498046875, -0.018035888671875, -0.07769775390625, 0.023773193359375, -0.015960693359375, -0.040435791015625, -0.0069732666015625, 0.01488494873046875, 0.040130615234375, -0.04461669921875, 0.00041866302490234375, 0.0703125, -0.0003540515899658203, -0.01122283935546875, -0.03857421875, 0.007099151611328125, -0.0406494140625, -0.01059722900390625, -0.0021495819091796875, -0.0006380081176757812, -0.0306854248046875, 0.023468017578125, -0.004772186279296875, -0.03240966796875, 0.0139617919921875, 0.0178375244140625, 0.005649566650390625, -0.01245880126953125, -0.036895751953125, -0.0367431640625, 0.0015687942504882812, 0.046173095703125, -0.00632476806640625, -0.032012939453125, -0.022857666015625, 0.03668212890625, -0.051177978515625, -0.0157928466796875, -0.058197021484375, 0.04290771484375, 0.013519287109375, -0.01439666748046875, 0.0034236907958984375, -0.0382080078125, -0.0269927978515625, -0.00882720947265625, -0.003643035888671875, 0.0271759033203125, 0.029632568359375, 0.0005340576171875, -0.005847930908203125, 0.053131103515625, -0.01212310791015625, -0.03302001953125, -0.01194000244140625, 0.03131103515625, 0.00014710426330566406, 0.0002963542938232422, 0.0160980224609375, -0.0243682861328125, -0.0322265625, 0.022125244140625, -0.0131072998046875, -0.077880859375, 0.0458984375, -0.0017900466918945312, 0.044921875, 0.0223388671875, 0.0008158683776855469, 0.0675048828125, 0.0120391845703125, -0.01453399658203125, 0.033538818359375, -0.00927734375, -0.055908203125, 0.014984130859375, -0.01029205322265625, -0.0036258697509765625, -0.00205230712890625, -0.00421905517578125, 0.00231170654296875, -0.015289306640625, 0.0030536651611328125, -0.09588623046875, 0.0005693435668945312, -0.0374755859375, 0.04302978515625, -0.02899169921875, 0.00386810302734375, 0.0305938720703125, -0.017822265625, -0.0163421630859375, -0.00417327880859375, -0.0036487579345703125, 0.0014829635620117188, -0.038360595703125, -0.04022216796875, -0.0224151611328125, -0.014068603515625, -0.0009140968322753906, -0.0008530616760253906, -0.03271484375, 0.006290435791015625, 0.04248046875, 0.017578125, -0.0067901611328125, -0.005451202392578125, 0.041717529296875, 0.03204345703125, -0.0458984375, -0.005901336669921875, 0.034942626953125, 0.026885986328125, -0.031280517578125, 0.0263671875, 0.02154541015625, 0.00012135505676269531, -0.0079803466796875, 0.032135009765625, 0.02960205078125, 0.0419921875, -0.0007672309875488281, -0.000732421875, 0.057464599609375, -0.053955078125, -0.004566192626953125, -0.0153350830078125, -0.0060272216796875, 0.01189422607421875, 0.0180206298828125, 0.00732421875, 0.01947021484375, 0.00881195068359375, 0.00958251953125, 0.020660400390625, -0.0022487640380859375, 0.013580322265625, -0.0292205810546875, 0.01361083984375, -0.01251983642578125, -0.037567138671875, -0.00411224365234375, -0.0292510986328125, 0.06781005859375, -0.0206298828125, 0.03607177734375, 0.0154876708984375, -0.0025882720947265625, 0.003040313720703125, 0.004001617431640625, -0.049713134765625, 0.0024852752685546875, 0.0301055908203125, -0.006378173828125, 0.0828857421875, -0.037139892578125, -0.01291656494140625, 0.049407958984375, 0.04010009765625, -0.004901885986328125, 0.031219482421875, -0.026885986328125, -0.00713348388671875, -0.0113677978515625, -0.0212249755859375, -0.01015472412109375, 0.0094757080078125, 0.0269317626953125, 0.0147552490234375, 0.018829345703125, 0.03729248046875, 0.00885772705078125, 0.017364501953125, 0.047821044921875, 0.0025806427001953125, -0.024688720703125, -0.0865478515625, 0.068115234375, -0.049224853515625, 0.0430908203125, 0.0748291015625, -0.023773193359375, 0.03924560546875, -0.006984710693359375, 0.004974365234375, -0.028228759765625, 0.020477294921875, -0.01128387451171875, -0.02362060546875, -0.050140380859375, 0.025146484375, 0.02801513671875, 0.052001953125, 0.006237030029296875, -0.015655517578125, 0.0201568603515625, 0.030548095703125, -0.072998046875, -0.1129150390625, -0.01177215576171875, -0.023773193359375, -0.0264434814453125, -0.0167388916015625, -0.01010894775390625, 0.00905609130859375, -0.0270843505859375, 0.0017795562744140625, -0.0269317626953125, 0.0038890838623046875, -0.087158203125, -0.058807373046875, -0.07818603515625, 0.01284027099609375, -0.01161956787109375, 0.0214996337890625, 0.01373291015625, 0.08929443359375, 0.0174560546875, -0.0259246826171875, 0.03875732421875, 0.019256591796875, -0.031280517578125, 0.01239013671875, 0.0277557373046875, -0.00698089599609375, -0.014556884765625, -0.001453399658203125, 0.07794189453125, 0.050872802734375, -0.062408447265625, -0.005474090576171875, 0.0177001953125, 0.01450347900390625, 0.037872314453125, 0.0150146484375, -0.03973388671875, 0.038116455078125, 0.033172607421875, -0.0172882080078125, -0.02239990234375, -0.033721923828125, -0.053253173828125, 0.041473388671875, 0.0182037353515625, 0.0182037353515625, 0.0009965896606445312, 0.01348114013671875, 0.038330078125, 0.0138092041015625, -0.0088653564453125, -0.00037288665771484375, 0.01329803466796875, 0.0121917724609375, 0.05047607421875, -0.0177154541015625, 0.005828857421875, -0.021240234375, -0.00446319580078125, -0.01386260986328125, 0.00566864013671875, -0.0237274169921875, -0.0035991668701171875, -0.038421630859375, 0.018524169921875, 0.034423828125, 0.0243682861328125, 0.0992431640625, -0.06988525390625, -0.03411865234375, -0.1021728515625, 0.043670654296875, 0.048797607421875, -0.03948974609375, -0.039337158203125, -0.004131317138671875, -0.0118408203125, -0.017578125, 0.044403076171875, 0.0091552734375, -0.088623046875, 0.00818634033203125, -0.0087890625, -0.0390625, 0.005889892578125, -0.037933349609375, -0.03118896484375, -0.050872802734375, 0.036407470703125, -0.034698486328125, 0.0158538818359375, -0.017425537109375, 0.0189361572265625, -0.036956787109375, -0.00019061565399169922, -0.015594482421875, -0.02117919921875, -0.00665283203125, -0.033843994140625, 0.024261474609375, 0.0113067626953125, 0.01483154296875, -0.0100250244140625, 0.0256195068359375, 0.0238189697265625, 0.053009033203125, -0.00537109375, 0.004383087158203125, -0.003932952880859375, -0.042083740234375, 0.01177978515625, -0.0469970703125, -0.00952911376953125, -0.005512237548828125, -0.0284576416015625, -0.0169830322265625, -0.031982421875, -0.027557373046875, -0.004589080810546875, -0.03607177734375, 0.0142059326171875, 0.016021728515625, -0.00038361549377441406, 0.021240234375, -0.01093292236328125, -0.0011701583862304688, 0.00971221923828125, -0.002788543701171875, 0.050201416015625, 0.0191650390625, -0.02569580078125, -0.0029296875, 0.07342529296875, 0.0149993896484375, -0.03253173828125, -0.034332275390625, 0.00432586669921875, -0.0009927749633789062, -0.0302734375, 0.0006389617919921875, -0.00966644287109375, 0.01111602783203125, -0.00731658935546875, -0.05029296875, 0.00827789306640625, -0.003509521484375, 0.050628662109375, -0.028594970703125, -0.0310516357421875, 0.0265960693359375, -0.05035400390625, 0.0005717277526855469, 0.017608642578125, 0.0249176025390625, -0.0233306884765625, 0.052001953125, 0.029327392578125, 0.0037078857421875, -0.0193328857421875, -0.017852783203125, 0.006298065185546875, -0.00592041015625, -0.004302978515625, -0.0159759521484375, 0.0194091796875, -0.001583099365234375, -0.027984619140625, -0.006580352783203125, -0.0249786376953125, -0.01245880126953125, 0.031585693359375, -0.036712646484375, 0.0208282470703125, -0.0254669189453125, -0.053863525390625, -0.01971435546875, 0.0035915374755859375, 0.048095703125, -0.02618408203125, -0.08172607421875, 0.0131378173828125, -0.020355224609375, 0.0012388229370117188, 0.044891357421875, 0.022186279296875, 0.034332275390625, 0.0345458984375, 0.0025196075439453125, -0.007808685302734375, 0.00859832763671875, 0.01148223876953125, -0.031585693359375, -0.01497650146484375, -0.006381988525390625, -0.006046295166015625, -0.0291595458984375, 0.10589599609375, -0.06610107421875, 0.07720947265625, -0.006000518798828125, 0.0025920867919921875, -0.018341064453125, 0.06494140625, 0.043060302734375, -0.056915283203125, 0.004726409912109375, 0.0270233154296875, -0.0244293212890625, -0.0261993408203125, -0.0213165283203125, -0.01494598388671875, -0.0010738372802734375, -0.001953125, 0.00368499755859375, 0.04296875, 0.025482177734375, -0.006092071533203125, 0.0310211181640625, 0.00679779052734375, -0.0023555755615234375, -0.037506103515625, -0.040496826171875, 0.018463134765625, 0.00905609130859375, -0.0133819580078125, 0.006549835205078125, -0.0173492431640625, 0.035736083984375, -0.04351806640625, -0.0008397102355957031, 0.00628662109375, 0.01143646240234375, -0.041961669921875, -0.0684814453125, -0.0210723876953125, 0.07476806640625, 0.037841796875, -0.02166748046875, -0.054779052734375, 0.012237548828125, 0.00372314453125, 0.023101806640625, -0.031646728515625, -0.00737762451171875, 0.0280609130859375, -0.0008831024169921875, 0.0380859375, -0.006298065185546875, -0.00394439697265625, -0.02581787109375, -0.0267486572265625, -0.01055145263671875, 0.059478759765625, -0.013763427734375, -0.0160675048828125, -0.02825927734375, 0.0118865966796875, 0.0167083740234375, -0.00028204917907714844, -0.0189056396484375, -0.037872314453125, 0.01131439208984375, 0.0207977294921875, 0.0162811279296875, -0.0108642578125, 0.029052734375, -0.0029315948486328125, 0.0299530029296875, 0.01116180419921875, -0.0031909942626953125, -0.02801513671875, -0.01035308837890625, 0.0017976760864257812, -0.05084228515625, 0.0032024383544921875, -0.003448486328125, 0.026702880859375, -0.006481170654296875, -0.00814056396484375, -0.00505828857421875, 0.0179443359375, -0.00963592529296875, 0.0034961700439453125, -0.0146636962890625, 0.018310546875, 0.00707244873046875, 0.01861572265625, 0.0498046875, -0.039794921875, -0.016693115234375, -0.00742340087890625, -0.00930023193359375, 0.005596160888671875, -0.0067596435546875, -0.018157958984375, 0.043609619140625, -0.025787353515625, 0.03033447265625, 0.05841064453125, -0.005126953125, 0.01934814453125, 0.005367279052734375, -0.0097808837890625, 0.00839996337890625, -0.015899658203125, 0.002979278564453125, 0.004810333251953125, 0.06549072265625, 0.0026397705078125, -0.00833892822265625, 0.06134033203125, -0.03363037109375, -0.025543212890625, 0.0173492431640625, -0.006404876708984375, -0.061370849609375, 0.0171356201171875, 0.0012111663818359375, 0.034942626953125, 0.01151275634765625, -0.0005421638488769531, -0.0022983551025390625, -0.0236663818359375, 0.0029850006103515625, -0.015106201171875, -0.0189361572265625, -0.00304412841796875, -0.01485443115234375, 0.0018243789672851562, -0.032501220703125, -0.013824462890625, 0.007015228271484375, 0.00804901123046875, 0.03076171875, -0.00658416748046875, 0.0026798248291015625, -0.0154571533203125, -0.00939178466796875, -0.003265380859375, -0.0226898193359375, -0.0726318359375, -0.0037212371826171875, -0.028350830078125, -0.00390625, -0.0029621124267578125, 0.0243377685546875, 0.0291748046875, 0.055908203125, -0.002674102783203125, 0.0007443428039550781, 0.029510498046875, 0.00014734268188476562, -0.043731689453125, -0.03607177734375, 0.0025272369384765625, 0.034912109375, -0.005611419677734375, 0.041473388671875, 0.01202392578125, -0.047454833984375, 0.01629638671875, -0.015350341796875, 0.04144287109375, -0.059051513671875, -0.0019130706787109375, 0.023956298828125, 0.01318359375, 0.003753662109375, 0.0176849365234375, 0.0259246826171875, -0.003948211669921875, 0.033111572265625, 0.01361083984375, 0.0274505615234375, -0.03192138671875, 0.02587890625, -0.0271148681640625, 0.053985595703125, -0.03717041015625, 0.00606536865234375, 0.0347900390625, 0.0193634033203125, -0.00960540771484375, 0.01407623291015625, -0.072265625, 0.0732421875, -0.01251983642578125, 0.053680419921875, -0.08135986328125, 0.0036182403564453125, -0.0094757080078125, 0.00982666015625, 0.1021728515625, 0.0113677978515625, -0.049102783203125, -0.031951904296875, 0.039276123046875, 0.05047607421875, 0.00756072998046875, 0.047332763671875, 0.004413604736328125, 0.0243988037109375, 0.039520263671875, -0.03289794921875, 0.038665771484375, -0.0219879150390625, -0.018463134765625, 0.01493072509765625, -0.0003275871276855469, -0.02362060546875, 0.0244903564453125, -0.00160980224609375, -0.007442474365234375, 0.006595611572265625, -0.0092315673828125, -0.0020294189453125, 0.039306640625, -0.0008769035339355469, 0.0186614990234375, -0.05120849609375, -0.06732177734375, 0.0029010772705078125, 0.01641845703125, -0.003025054931640625, -0.0008454322814941406, 0.00846099853515625, 0.022369384765625, 0.06256103515625, -0.04486083984375, -0.0183258056640625, 0.005908966064453125, -0.022430419921875, 0.0748291015625, 0.033538818359375, 0.0112762451171875, -0.0579833984375, -0.0199127197265625, 0.047332763671875, 0.09844970703125, -0.052764892578125, -0.04644775390625, -0.0013561248779296875, 0.00264739990234375, 0.004207611083984375, -0.003795623779296875, 0.0006165504455566406, 0.03289794921875, 0.06500244140625, -0.0751953125, 0.019256591796875, 0.0133056640625, 0.04364013671875, -0.0220794677734375, -0.0418701171875, -0.038787841796875, -0.010650634765625, -0.051727294921875, 0.0012292861938476562, 0.032073974609375, 0.05078125, 0.03240966796875, 0.0012264251708984375, 0.0026645660400390625, -0.0233306884765625, -0.01285552978515625, 0.0260772705078125, -0.0139007568359375, 0.01232147216796875, -0.0296173095703125, -0.05364990234375, 0.0028438568115234375, 0.04315185546875, 0.0234222412109375, 0.055908203125, 0.069580078125, 0.0445556640625, -0.020172119140625, -0.008087158203125, 0.0009870529174804688, -0.0288543701171875, -0.028778076171875, -0.00652313232421875, 0.0157318115234375, 0.0267333984375, 0.01506805419921875, -0.0158843994140625, 0.06707763671875, 0.01447296142578125, 0.0112152099609375, 0.061004638671875, 0.00988006591796875, 0.007770538330078125, 0.034454345703125, -0.01137542724609375, 0.03778076171875, 0.02392578125, -0.06207275390625, -0.0232086181640625, -0.01163482666015625, 0.01253509521484375, 0.00164794921875, 0.0174407958984375, -0.01180267333984375, 0.038055419921875, 0.023651123046875, -0.006771087646484375, 0.0262298583984375, -0.00978851318359375, 0.01534271240234375, 0.016632080078125, 0.01007080078125, 0.01349639892578125, -0.04254150390625, -0.024078369140625, 0.01515960693359375, 0.007572174072265625, -0.00598907470703125, 0.0285491943359375, 0.01406097412109375, -0.0112152099609375, 0.00820159912109375, 0.0031280517578125, -0.00042629241943359375, 0.001049041748046875, 0.0141754150390625, -0.01654052734375, -0.0023040771484375, -0.004730224609375, 0.0611572265625, 0.0023345947265625, 0.047943115234375, -0.034912109375, -0.0096282958984375, -0.031646728515625, 0.0236968994140625, -0.002162933349609375, -0.022369384765625, -0.0318603515625, -0.050994873046875, -0.037322998046875, 0.0038051605224609375, 0.01183319091796875, 0.042083740234375, 0.0173797607421875, 0.0246124267578125, 0.030426025390625, -0.049285888671875, 0.045013427734375, -0.05413818359375, 0.06634521484375, 0.031707763671875, 0.030303955078125, 0.040069580078125, -0.0302886962890625, -0.030426025390625, 0.0287933349609375, -0.00885772705078125, -0.029296875, -0.0000623464584350586, 0.045166015625, 0.01108551025390625, 0.043853759765625, 0.023284912109375, -0.0253448486328125, 0.00865936279296875, 0.046142578125, -0.024566650390625, 0.0202789306640625, 0.0266571044921875, -0.01922607421875, -0.038177490234375, -0.0013713836669921875, -0.0106964111328125, -0.005290985107421875, -0.0240936279296875, 0.0125579833984375, 0.0098419189453125, 0.002590179443359375, -0.00949859619140625, -0.027099609375, 0.04248046875, -0.0452880859375, 0.0056915283203125, -0.052642822265625, 0.01514434814453125, 0.011260986328125, 0.0418701171875, -0.0269012451171875, 0.04144287109375, 0.00496673583984375, -0.0253753662109375, 0.04376220703125, 0.01357269287109375, 0.0289154052734375, -0.0287017822265625, -0.0390625, -0.0037937164306640625, 0.0224761962890625, 0.0179595947265625, 0.041778564453125, -0.0062408447265625, -0.004619598388671875, 0.0080413818359375, -0.0227203369140625, -0.05535888671875, 0.052093505859375, -0.06866455078125, -0.03265380859375, -0.0161590576171875, 0.0161285400390625, 0.037445068359375, -0.0273895263671875, -0.08343505859375, 0.07330322265625, -0.031097412109375, -0.026611328125, -0.0283966064453125, -0.029815673828125, 0.006374359130859375, 0.02569580078125, -0.0001214742660522461, -0.0122528076171875, -0.04180908203125, 0.0321044921875, 0.0027103424072265625, -0.0274200439453125, 0.035308837890625, 0.003887176513671875, -0.06878662109375, 0.0014982223510742188, -0.006870269775390625, -0.035186767578125, -0.027374267578125, 0.02960205078125, -0.0119476318359375, 0.0321044921875, -0.021026611328125, -0.038177490234375, -0.00936126708984375, -0.0181884765625, 0.0166168212890625, -0.022552490234375, -0.036041259765625, -0.005191802978515625, 0.055023193359375, 0.04168701171875, 0.0311737060546875, -0.048126220703125, -0.01216888427734375, -0.035675048828125, 0.0011968612670898438, -0.022491455078125, -0.0007076263427734375, -0.04437255859375, 0.0014867782592773438, -0.00289154052734375, -0.0215911865234375, -0.0008339881896972656, -0.0182647705078125, -0.0255889892578125, -0.004253387451171875, 0.0030612945556640625, -0.00888824462890625, 0.005878448486328125, 0.01605224609375, 0.041839599609375, -0.0274810791015625, 0.018707275390625, -0.011627197265625, 0.005352020263671875, 0.0308685302734375, 0.016632080078125, 0.007415771484375, -0.0224456787109375, 0.0197601318359375, 0.0157928466796875, 0.0244293212890625, -0.0252838134765625, 0.01445770263671875, -0.02178955078125, 0.001461029052734375, 0.006885528564453125, 0.0028057098388671875, 0.001125335693359375, -0.0271759033203125, 0.002620697021484375, -0.0111541748046875, 0.056671142578125, 0.0118255615234375, 0.021240234375, -0.005931854248046875, 0.0250701904296875, 0.009796142578125, -0.0179290771484375, 0.025390625, -0.0261383056640625, 0.004993438720703125, 0.005168914794921875, 0.01044464111328125, -0.02105712890625, 0.02978515625, 0.0311737060546875, -0.0017271041870117188, 0.01360321044921875 ]
ab2a3463340956e511f645e77f17fd1eea784636
Wordpress Stackexchange Q: Uninstall script for a plugin in Multisite I've just realized that the traditional uninstall.php file along a plugin is not working in Multisite. if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); delete_option( 'plugin_option_name' ); This doesn't delete the sub-sites options in all wp_SITE-ID_options tables. Is there a standard way for doing this? A: Searching inside all uninstall.php files that I have in my hard-drive, I've found two that had the function is_multisite(): User Role Editor and Add Code to Head. Both use a $wpdb loop. Simplified: <?php /** * Plugin Uninstall Procedure */ // Make sure that we are uninstalling if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); // Leave no trail $option_name = 'plugin_option_name'; if ( !is_multisite() ) { delete_option( $option_name ); } else { global $wpdb; $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" ); $original_blog_id = get_current_blog_id(); foreach ( $blog_ids as $blog_id ) { switch_to_blog( $blog_id ); delete_option( $option_name ); // OR // delete_site_option( $option_name ); } switch_to_blog( $original_blog_id ); } Related Q&A: Uninstall, Activate, Deactivate a plugin: typical features & how-to
Q: Uninstall script for a plugin in Multisite I've just realized that the traditional uninstall.php file along a plugin is not working in Multisite. if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); delete_option( 'plugin_option_name' ); This doesn't delete the sub-sites options in all wp_SITE-ID_options tables. Is there a standard way for doing this? A: Searching inside all uninstall.php files that I have in my hard-drive, I've found two that had the function is_multisite(): User Role Editor and Add Code to Head. Both use a $wpdb loop. Simplified: <?php /** * Plugin Uninstall Procedure */ // Make sure that we are uninstalling if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); // Leave no trail $option_name = 'plugin_option_name'; if ( !is_multisite() ) { delete_option( $option_name ); } else { global $wpdb; $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" ); $original_blog_id = get_current_blog_id(); foreach ( $blog_ids as $blog_id ) { switch_to_blog( $blog_id ); delete_option( $option_name ); // OR // delete_site_option( $option_name ); } switch_to_blog( $original_blog_id ); } Related Q&A: Uninstall, Activate, Deactivate a plugin: typical features & how-to
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:427735", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80350" }
[ 0.033966064453125, 0.005878448486328125, 0.0209503173828125, 0.04400634765625, 0.017547607421875, -0.03656005859375, 0.0758056640625, -0.0643310546875, 0.0276947021484375, 0.006595611572265625, -0.016632080078125, 0.0130462646484375, -0.03857421875, -0.0286865234375, -0.01336669921875, -0.033203125, 0.043701171875, -0.028167724609375, 0.0153656005859375, -0.0035552978515625, -0.0026798248291015625, 0.04388427734375, 0.0008225440979003906, 0.0693359375, -0.004932403564453125, -0.004375457763671875, 0.0655517578125, -0.01096343994140625, -0.014373779296875, -0.04718017578125, -0.004360198974609375, 0.0404052734375, 0.00768280029296875, 0.02215576171875, -0.016754150390625, -0.03704833984375, 0.004283905029296875, 0.01280975341796875, 0.00682830810546875, 0.03515625, 0.0262603759765625, -0.0034580230712890625, -0.00969696044921875, 0.0197296142578125, -0.0209197998046875, -0.07171630859375, 0.0550537109375, -0.01039886474609375, -0.003814697265625, -0.0311126708984375, 0.0238494873046875, -0.0196075439453125, 0.05450439453125, -0.05303955078125, -0.0445556640625, -0.0232391357421875, -0.0121917724609375, 0.041168212890625, 0.01751708984375, 0.039764404296875, -0.0234222412109375, 0.042327880859375, -0.003570556640625, -0.054595947265625, 0.007843017578125, 0.021392822265625, 0.003204345703125, 0.0127105712890625, -0.030029296875, 0.0233917236328125, 0.0147857666015625, -0.037017822265625, 0.01093292236328125, -0.0036983489990234375, -0.018951416015625, -0.0029811859130859375, 0.005657196044921875, 0.00600433349609375, 0.016815185546875, -0.016693115234375, -0.0081024169921875, -0.0039043426513671875, -0.004238128662109375, 0.0080718994140625, -0.01320648193359375, 0.030914306640625, -0.005298614501953125, -0.017486572265625, -0.0660400390625, -0.00041484832763671875, -0.042449951171875, -0.0396728515625, -0.0426025390625, 0.0013856887817382812, -0.00968170166015625, 0.004314422607421875, 0.04266357421875, 0.06817626953125, -0.031768798828125, -0.026702880859375, -0.0190277099609375, -0.02032470703125, -0.0406494140625, -0.0235137939453125, -0.0063323974609375, 0.076416015625, 0.0310821533203125, 0.008087158203125, -0.002544403076171875, 0.0009822845458984375, 0.01085662841796875, -0.0193328857421875, -0.01139068603515625, -0.041534423828125, 0.00028824806213378906, 0.00957489013671875, -0.052001953125, 0.028289794921875, 0.007801055908203125, -0.0159454345703125, -0.01239776611328125, 0.0251312255859375, -0.061279296875, -0.0203857421875, -0.0117034912109375, -0.04150390625, -0.0077056884765625, 0.0258941650390625, -0.05267333984375, 0.0074462890625, -0.0606689453125, 0.026336669921875, 0.1016845703125, 0.0017442703247070312, 0.002979278564453125, -0.03155517578125, 0.003509521484375, 0.0479736328125, 0.00817108154296875, -0.0244903564453125, 0.06396484375, -0.0264739990234375, -0.03131103515625, 0.0252685546875, 0.05517578125, 0.01447296142578125, 0.037322998046875, -0.0006613731384277344, 0.01280975341796875, 0.0024433135986328125, -0.01300048828125, 0.00849151611328125, 0.037841796875, 0.010955810546875, 0.00992584228515625, -0.062286376953125, 0.05517578125, -0.07501220703125, 0.01454925537109375, -0.085205078125, 0.0053863525390625, -0.019256591796875, 0.00206756591796875, -0.038818359375, -0.05230712890625, 0.01506805419921875, -0.050079345703125, -0.0236968994140625, 0.02398681640625, 0.0005002021789550781, -0.00860595703125, -0.057952880859375, 0.0274810791015625, 0.038360595703125, 0.005298614501953125, 0.073486328125, -0.015228271484375, -0.01395416259765625, 0.04571533203125, -0.0047454833984375, -0.03338623046875, -0.0234375, 0.01690673828125, 0.01026153564453125, -0.0753173828125, 0.0091552734375, 0.0214691162109375, 0.07794189453125, 0.01800537109375, 0.02099609375, 0.059326171875, -0.02154541015625, -0.0254058837890625, 0.0223236083984375, -0.021697998046875, -0.0295867919921875, 0.002391815185546875, 0.01165008544921875, -0.0183563232421875, -0.01110076904296875, 0.0106201171875, 0.01444244384765625, -0.001983642578125, -0.020294189453125, -0.096435546875, 0.00479888916015625, -0.033966064453125, 0.0477294921875, -0.01055145263671875, 0.0145263671875, 0.0102691650390625, 0.008270263671875, -0.0184173583984375, -0.022186279296875, -0.0009698867797851562, 0.02294921875, -0.02056884765625, 0.0390625, 0.0003497600555419922, 0.0458984375, -0.03863525390625, -0.018585205078125, -0.0176239013671875, -0.0226898193359375, 0.050537109375, -0.0191802978515625, -0.00890350341796875, -0.03326416015625, 0.038665771484375, -0.00563812255859375, -0.00867462158203125, 0.032073974609375, 0.020538330078125, 0.019866943359375, -0.0192718505859375, -0.00754547119140625, 0.0283660888671875, -0.06878662109375, 0.0191650390625, 0.040283203125, 0.034515380859375, 0.0158843994140625, -0.00292205810546875, -0.0079345703125, 0.026092529296875, -0.0484619140625, 0.008148193359375, -0.006755828857421875, 0.01300048828125, 0.06170654296875, -0.028564453125, 0.020111083984375, 0.0011987686157226562, 0.0249176025390625, -0.007434844970703125, 0.0382080078125, -0.0361328125, -0.043182373046875, 0.02264404296875, -0.0132293701171875, 0.01250457763671875, -0.01715087890625, -0.0150146484375, 0.0016584396362304688, 0.05157470703125, 0.00022602081298828125, 0.037017822265625, 0.0254364013671875, -0.02423095703125, 0.009246826171875, 0.000965118408203125, -0.01641845703125, -0.0086669921875, 0.01446533203125, 0.04864501953125, -0.010650634765625, -0.027099609375, -0.01042938232421875, -0.0094451904296875, -0.00667572021484375, -0.01666259765625, 0.024169921875, -0.00391387939453125, -0.015625, -0.0121917724609375, -0.039215087890625, 0.012298583984375, -0.00830078125, -0.0384521484375, -0.03765869140625, 0.0030364990234375, 0.01934814453125, -0.041534423828125, 0.0284423828125, 0.01311492919921875, -0.0239410400390625, 0.056488037109375, -0.0295867919921875, 0.02362060546875, -0.0102691650390625, 0.0406494140625, 0.046875, 0.007518768310546875, -0.01483154296875, 0.006298065185546875, -0.0036449432373046875, 0.0203857421875, -0.00832366943359375, -0.0099639892578125, 0.0142669677734375, -0.07025146484375, 0.020965576171875, 0.01287078857421875, 0.04052734375, -0.0096435546875, -0.0457763671875, -0.0053253173828125, 0.01320648193359375, -0.0673828125, -0.0548095703125, -0.00823211669921875, -0.0528564453125, 0.03985595703125, -0.037200927734375, -0.01059722900390625, -0.019805908203125, -0.010162353515625, 0.008087158203125, 0.0124664306640625, -0.01165771484375, -0.01708984375, -0.0287628173828125, -0.0723876953125, -0.0303955078125, 0.00890350341796875, 0.01485443115234375, 0.00710296630859375, 0.008514404296875, 0.005336761474609375, -0.035797119140625, 0.0219573974609375, -0.01372528076171875, -0.008819580078125, -0.0118408203125, 0.01439666748046875, -0.02508544921875, -0.036041259765625, 0.00998687744140625, 0.038909912109375, 0.012298583984375, -0.0205230712890625, 0.0037479400634765625, 0.01142120361328125, -0.01451873779296875, 0.057159423828125, -0.0548095703125, -0.039398193359375, 0.0174102783203125, 0.012481689453125, -0.0430908203125, 0.037872314453125, -0.05511474609375, -0.01422882080078125, 0.054840087890625, -0.01409912109375, 0.01116180419921875, 0.0209808349609375, 0.007068634033203125, 0.021514892578125, 0.00443267822265625, -0.0018024444580078125, 0.004871368408203125, 0.017364501953125, -0.002880096435546875, 0.0082244873046875, -0.026885986328125, 0.038543701171875, -0.0041656494140625, -0.0411376953125, -0.0118255615234375, -0.00470733642578125, -0.028594970703125, 0.002483367919921875, -0.04925537109375, -0.0087127685546875, 0.03277587890625, -0.025177001953125, -0.011871337890625, -0.01393890380859375, -0.0148468017578125, -0.01175689697265625, 0.051116943359375, -0.06732177734375, -0.02069091796875, -0.016998291015625, 0.004985809326171875, 0.01168060302734375, -0.01084136962890625, -0.011505126953125, -0.015777587890625, -0.127197265625, -0.006771087646484375, -0.007480621337890625, -0.04742431640625, -0.0118255615234375, 0.0207977294921875, -0.06805419921875, -0.05462646484375, 0.039459228515625, -0.0094146728515625, 0.0287322998046875, -0.0013914108276367188, 0.0142822265625, -0.016204833984375, -0.0074615478515625, -0.03289794921875, -0.02947998046875, -0.00757598876953125, -0.0016412734985351562, 0.0267486572265625, -0.00824737548828125, 0.0182647705078125, -0.03131103515625, 0.0239105224609375, -0.04083251953125, 0.011322021484375, -0.034942626953125, 0.0232696533203125, -0.058197021484375, 0.0150146484375, -0.0180511474609375, -0.005352020263671875, -0.0156402587890625, -0.01314544677734375, -0.03564453125, 0.0057525634765625, 0.0029697418212890625, 0.0198211669921875, 0.03045654296875, -0.0206298828125, -0.028289794921875, -0.0051116943359375, -0.028533935546875, -0.027496337890625, -0.0462646484375, 0.00009083747863769531, 0.014556884765625, -0.0219268798828125, 0.0379638671875, -0.01560211181640625, -0.0199127197265625, 0.0112457275390625, 0.057708740234375, 0.0140228271484375, -0.015228271484375, -0.0237274169921875, 0.0157928466796875, 0.00875091552734375, 0.011322021484375, 0.0787353515625, 0.039794921875, 0.030303955078125, -0.004131317138671875, -0.00362396240234375, 0.0214691162109375, -0.03778076171875, 0.04742431640625, 0.0051727294921875, -0.0131988525390625, 0.033599853515625, -0.0038013458251953125, -0.00902557373046875, 0.017364501953125, -0.0032863616943359375, -0.0098724365234375, -0.019134521484375, 0.016632080078125, -0.0006804466247558594, 0.01284027099609375, -0.0205230712890625, -0.066162109375, 0.0322265625, -0.0217132568359375, 0.0033931732177734375, 0.018585205078125, -0.0147552490234375, 0.0246429443359375, -0.01029205322265625, -0.01309967041015625, 0.003162384033203125, 0.047821044921875, -0.01123046875, 0.025604248046875, -0.0016880035400390625, -0.0253448486328125, -0.0304718017578125, -0.006885528564453125, 0.047210693359375, -0.013458251953125, -0.0115814208984375, -0.057525634765625, -0.005336761474609375, 0.0196380615234375, 0.011383056640625, -0.01995849609375, 0.048919677734375, 0.03680419921875, -0.049957275390625, -0.01345062255859375, -0.028564453125, -0.017181396484375, -0.06768798828125, -0.03997802734375, -0.0266265869140625, -0.005275726318359375, 0.01934814453125, 0.03790283203125, -0.05706787109375, 0.0465087890625, 0.0046539306640625, 0.0438232421875, 0.052154541015625, 0.01302337646484375, 0.0208587646484375, -0.006961822509765625, -0.00832366943359375, -0.017791748046875, -0.0245819091796875, -0.01922607421875, 0.006183624267578125, 0.01141357421875, 0.022003173828125, 0.01065826416015625, -0.0004646778106689453, -0.000042378902435302734, -0.02142333984375, -0.007293701171875, 0.051788330078125, -0.01033782958984375, -0.077880859375, -0.01654052734375, 0.05126953125, 0.04473876953125, -0.042327880859375, 0.004039764404296875, -0.04376220703125, -0.048065185546875, -0.0504150390625, 0.00542449951171875, -0.047210693359375, -0.0263671875, 0.00350189208984375, 0.0018768310546875, -0.01459503173828125, -0.017822265625, -0.0017442703247070312, -0.01329803466796875, -0.01311492919921875, -0.0127105712890625, 0.03924560546875, -0.0111083984375, 0.016021728515625, -0.025909423828125, -0.0235595703125, -0.0230865478515625, -0.00754547119140625, 0.08807373046875, 0.060333251953125, -0.03082275390625, 0.0264892578125, -0.0021114349365234375, -0.010284423828125, 0.00550079345703125, -0.045135498046875, -0.04718017578125, -0.0501708984375, 0.004955291748046875, -0.0034332275390625, 0.002223968505859375, 0.0095062255859375, 0.01267242431640625, 0.0205078125, -0.00202178955078125, 0.0265655517578125, -0.01312255859375, 0.03472900390625, 0.0297698974609375, 0.011199951171875, 0.0523681640625, 0.065185546875, 0.0179443359375, -0.049407958984375, -0.003353118896484375, -0.0257110595703125, -0.01099395751953125, -0.01273345947265625, 0.0182037353515625, 0.0005931854248046875, 0.033599853515625, -0.0009083747863769531, -0.00101470947265625, 0.01806640625, -0.0017442703247070312, -0.01885986328125, -0.04058837890625, 0.0281524658203125, 0.01436614990234375, -0.0236968994140625, -0.061798095703125, -0.04656982421875, -0.0030307769775390625, 0.05621337890625, -0.03167724609375, -0.04351806640625, -0.051025390625, 0.05816650390625, -0.049346923828125, 0.06585693359375, 0.056243896484375, -0.00775146484375, 0.026702880859375, 0.010833740234375, 0.00872802734375, -0.01433563232421875, -0.035400390625, 0.0179901123046875, -0.00787353515625, 0.0250091552734375, -0.018035888671875, 0.008697509765625, 0.03277587890625, -0.01422119140625, 0.0276031494140625, 0.01410675048828125, 0.031982421875, -0.058502197265625, 0.0286102294921875, 0.006404876708984375, 0.0045928955078125, 0.04986572265625, -0.014556884765625, 0.00667572021484375, 0.0221405029296875, 0.02545166015625, 0.0032329559326171875, -0.035797119140625, 0.02008056640625, 0.0237579345703125, -0.0226287841796875, 0.0015954971313476562, 0.0161895751953125, 0.02850341796875, -0.0216064453125, 0.033355712890625, 0.0155487060546875, 0.0226287841796875, -0.0178680419921875, 0.0033016204833984375, 0.010162353515625, -0.0199127197265625, -0.060394287109375, 0.00844573974609375, -0.013702392578125, -0.0207977294921875, -0.005237579345703125, -0.0222625732421875, 0.0142364501953125, 0.06494140625, -0.0284271240234375, -0.0232086181640625, 0.059417724609375, -0.0237274169921875, -0.039703369140625, 0.00008052587509155273, 0.0256195068359375, 0.02020263671875, -0.03167724609375, 0.038482666015625, -0.036895751953125, -0.0276031494140625, -0.014068603515625, 0.005374908447265625, 0.07354736328125, -0.032623291015625, -0.007122039794921875, 0.0462646484375, 0.06829833984375, -0.0206451416015625, -0.03436279296875, 0.035369873046875, -0.086181640625, -0.07489013671875, -0.00836181640625, -0.0469970703125, 0.01044464111328125, -0.03729248046875, -0.0712890625, 0.115966796875, -0.01374053955078125, 0.0270538330078125, 0.00206756591796875, 0.044708251953125, -0.0188446044921875, 0.0158538818359375, -0.004131317138671875, 0.00556182861328125, -0.01800537109375, -0.01406097412109375, -0.01702880859375, 0.0142974853515625, -0.0204010009765625, 0.0303192138671875, 0.04736328125, 0.0177001953125, -0.035675048828125, -0.0250244140625, 0.01507568359375, 0.02630615234375, 0.00783538818359375, 0.0374755859375, 0.0139312744140625, 0.0171661376953125, 0.0313720703125, -0.006927490234375, 0.03204345703125, -0.00782012939453125, -0.00724029541015625, 0.0333251953125, 0.00524139404296875, -0.0004963874816894531, -0.0292205810546875, 0.023590087890625, -0.0012111663818359375, -0.01910400390625, -0.0086212158203125, 0.0129241943359375, 0.0254669189453125, -0.0086212158203125, -0.0011491775512695312, 0.0030040740966796875, 0.069580078125, -0.01531982421875, 0.04742431640625, -0.0090789794921875, -0.007160186767578125, -0.0010194778442382812, 0.0162353515625, -0.0106048583984375, -0.021148681640625, -0.020263671875, 0.0097198486328125, -0.0032558441162109375, 0.004787445068359375, 0.01690673828125, 0.01025390625, 0.010589599609375, 0.07122802734375, 0.03955078125, 0.002918243408203125, -0.03424072265625, -0.0269775390625, 0.01580810546875, 0.006076812744140625, 0.005764007568359375, 0.0191192626953125, 0.0270843505859375, -0.01873779296875, 0.01206207275390625, -0.037261962890625, 0.01268768310546875, 0.01983642578125, 0.0013589859008789062, 0.0033168792724609375, 0.0035305023193359375, -0.0121917724609375, -0.00041365623474121094, -0.0287628173828125, 0.003734588623046875, -0.015289306640625, 0.0259552001953125, 0.018157958984375, 0.031951904296875, -0.036865234375, -0.00957489013671875, -0.03204345703125, 0.08184814453125, -0.00390625, 0.025909423828125, -0.08111572265625, -0.09259033203125, 0.0194244384765625, 0.06683349609375, 0.00934600830078125, 0.038848876953125, 0.04779052734375, 0.03607177734375, -0.0221405029296875, 0.0005645751953125, 0.051055908203125, -0.013336181640625, 0.0161895751953125, -0.0172882080078125, -0.0004184246063232422, -0.035125732421875, -0.0316162109375, -0.011749267578125, 0.045074462890625, -0.01461029052734375, -0.025390625, 0.04852294921875, 0.00006437301635742188, 0.0126800537109375, 0.0029354095458984375, 0.00772857666015625, -0.002300262451171875, 0.00444793701171875, -0.058441162109375, -0.002193450927734375, -0.053192138671875, -0.004444122314453125, 0.00830841064453125, 0.0268707275390625, -0.007518768310546875, 0.022552490234375, -0.01544952392578125, -0.0069732666015625, -0.005764007568359375, 0.0177459716796875, -0.005443572998046875, 0.049774169921875, 0.051605224609375, 0.009307861328125, -0.044189453125, -0.01319122314453125, -0.0148468017578125, 0.023162841796875, 0.004665374755859375, 0.038299560546875, -0.0036563873291015625, 0.01372528076171875, 0.01352691650390625, 0.018096923828125, -0.00968170166015625, -0.00829315185546875, 0.00478363037109375, -0.00739288330078125, 0.008575439453125, 0.0007925033569335938, -0.0223236083984375, 0.03887939453125, 0.028106689453125, 0.00022792816162109375, 0.03216552734375, -0.0238037109375, 0.01025390625, -0.008087158203125, 0.0180511474609375, -0.00646209716796875, -0.04815673828125, -0.030487060546875, 0.0134735107421875, 0.047119140625, 0.08953857421875, -0.021026611328125, 0.01186370849609375, 0.042999267578125, 0.003780364990234375, 0.0037174224853515625, 0.0299530029296875, -0.007793426513671875, 0.0240631103515625, 0.0312042236328125, -0.06341552734375, 0.03619384765625, 0.00788116455078125, -0.04052734375, 0.039642333984375, 0.049560546875, 0.0263214111328125, -0.0281524658203125, 0.01453399658203125, 0.0263519287109375, 0.0418701171875, -0.01326751708984375, 0.0151824951171875, 0.037811279296875, -0.0038967132568359375, -0.0188446044921875, -0.02545166015625, -0.026611328125, -0.0399169921875, -0.01389312744140625, 0.0037555694580078125, -0.03411865234375, -0.037017822265625, -0.03167724609375, 0.0015153884887695312, 0.0270843505859375, 0.0204315185546875, -0.075439453125, 0.041473388671875, -0.01177978515625, 0.005645751953125, -0.01446533203125, -0.01226043701171875, -0.0270843505859375, 0.016326904296875, -0.00421905517578125, -0.0290985107421875, -0.041412353515625, 0.05023193359375, -0.023193359375, 0.01081085205078125, 0.01216888427734375, -0.02545166015625, 0.0086822509765625, 0.0265960693359375, 0.02386474609375, 0.053436279296875, 0.038238525390625, -0.014862060546875, 0.0115203857421875, -0.024810791015625, -0.0128326416015625, -0.0709228515625, -0.0030498504638671875, -0.08831787109375, -0.0284881591796875, -0.004364013671875, -0.0032634735107421875, 0.0017023086547851562, -0.034332275390625, -0.0276336669921875, 0.04217529296875, 0.00751495361328125, -0.031829833984375, -0.04290771484375, -0.021942138671875, 0.0201416015625, -0.0024318695068359375, -0.0169219970703125, -0.0269317626953125, -0.061370849609375, 0.0185699462890625, -0.01200103759765625, 0.037078857421875, -0.01214599609375, 0.004734039306640625, 0.0269927978515625, 0.0389404296875, 0.035552978515625, -0.038604736328125, 0.032989501953125, -0.05438232421875, 0.06427001953125, 0.055389404296875, -0.0076141357421875, 0.00445556640625, 0.0125579833984375, -0.05474853515625, -0.01476287841796875, -0.0188751220703125, -0.0418701171875, 0.01303863525390625, 0.09356689453125, 0.0794677734375, 0.03448486328125, -0.05694580078125, -0.0270538330078125, -0.039093017578125, -0.034820556640625, -0.0239410400390625, 0.0367431640625, -0.08099365234375, 0.00533294677734375, 0.01390838623046875, -0.046234130859375, 0.009613037109375, 0.0081024169921875, -0.0401611328125, 0.0265045166015625, 0.0262298583984375, -0.0032596588134765625, -0.014862060546875, 0.004428863525390625, 0.0189666748046875, -0.006488800048828125, 0.01513671875, -0.026824951171875, 0.006679534912109375, 0.015838623046875, 0.0153656005859375, -0.035369873046875, 0.0077362060546875, -0.04473876953125, 0.01316070556640625, -0.0252838134765625, 0.03204345703125, -0.0224456787109375, -0.00046062469482421875, -0.021270751953125, 0.004764556884765625, -0.0028057098388671875, -0.0139007568359375, 0.0169677734375, 0.0156097412109375, 0.00458526611328125, 0.04400634765625, -0.0018911361694335938, 0.01271820068359375, -0.022186279296875, 0.03631591796875, 0.038787841796875, -0.0285491943359375, 0.070556640625, -0.0224609375, -0.020965576171875, 0.0018701553344726562, -0.0290069580078125, -0.09466552734375, 0.05499267578125, 0.046234130859375, 0.0240936279296875, 0.044189453125 ]
c5cc603f45c59eeacc77c7fb4034c34fa1e76fc5
Wordpress Stackexchange Q: How can i retrieve default post per page value? from settings->reading. And total number of posts? I want to retrieve the default value of Post per page (the value that is set in settings->reading. I've looked around and so far I've only found ways to query it. problem is i dont want to change what was set i just want to retrieve it for pagination purposes. i thought of using $something->post_count.(i might be wrong but as i understand it returns the amount of posts displayed currently) but this could be wrong in some cases. Also how can i get the total number of posts ? A: It's saved in an option: $default_posts_per_page = get_option( 'posts_per_page' ); Reference: get_option Parameters You can see the keys and values of all available options by manually entering the admin url: /wp-admin/options.php Edit Total number of posts: global $wp_query; $total_posts = $wp_query->post_count;
Q: How can i retrieve default post per page value? from settings->reading. And total number of posts? I want to retrieve the default value of Post per page (the value that is set in settings->reading. I've looked around and so far I've only found ways to query it. problem is i dont want to change what was set i just want to retrieve it for pagination purposes. i thought of using $something->post_count.(i might be wrong but as i understand it returns the amount of posts displayed currently) but this could be wrong in some cases. Also how can i get the total number of posts ? A: It's saved in an option: $default_posts_per_page = get_option( 'posts_per_page' ); Reference: get_option Parameters You can see the keys and values of all available options by manually entering the admin url: /wp-admin/options.php Edit Total number of posts: global $wp_query; $total_posts = $wp_query->post_count;
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:427754", "question_score": "31", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/80419" }
[ 0.029205322265625, -0.02825927734375, 0.041412353515625, 0.0087432861328125, -0.02899169921875, -0.016021728515625, 0.0579833984375, -0.0262298583984375, 0.004734039306640625, -0.007717132568359375, -0.0579833984375, 0.0001590251922607422, -0.058563232421875, -0.0086517333984375, -0.00601959228515625, -0.07940673828125, 0.0394287109375, 0.0103759765625, 0.0516357421875, -0.0013933181762695312, -0.005084991455078125, 0.019012451171875, 0.052154541015625, 0.07208251953125, 0.0277862548828125, 0.00336456298828125, 0.0294189453125, -0.036895751953125, 0.0179290771484375, -0.032501220703125, 0.0173492431640625, 0.021026611328125, 0.037841796875, -0.052337646484375, 0.0273895263671875, -0.016143798828125, 0.0181121826171875, -0.03533935546875, 0.0088348388671875, -0.002399444580078125, 0.005306243896484375, 0.003131866455078125, 0.0177459716796875, 0.0022563934326171875, -0.0181884765625, -0.0205841064453125, 0.0030994415283203125, -0.0201568603515625, 0.02154541015625, -0.0277862548828125, -0.034271240234375, 0.039642333984375, -0.007183074951171875, -0.03521728515625, -0.0184478759765625, -0.030853271484375, 0.0565185546875, -0.0184478759765625, 0.06689453125, -0.07208251953125, -0.07537841796875, -0.037109375, 0.064208984375, -0.0172576904296875, -0.020843505859375, -0.012542724609375, -0.0135955810546875, 0.0237274169921875, 0.01549530029296875, -0.021087646484375, 0.00833892822265625, 0.0051727294921875, 0.01403045654296875, -0.02056884765625, 0.01473236083984375, -0.02484130859375, -0.000286102294921875, 0.00841522216796875, 0.02197265625, 0.00762939453125, 0.01314544677734375, -0.00395965576171875, -0.044158935546875, 0.0190277099609375, -0.006519317626953125, 0.0100250244140625, -0.006622314453125, -0.024993896484375, -0.0224761962890625, -0.02020263671875, -0.00787353515625, 0.010040283203125, -0.035888671875, -0.006900787353515625, -0.0187835693359375, -0.02264404296875, -0.0068206787109375, 0.04656982421875, -0.04736328125, -0.012451171875, -0.047515869140625, -0.000301361083984375, -0.02593994140625, -0.0237274169921875, -0.0003952980041503906, 0.01195526123046875, 0.0015516281127929688, 0.02655029296875, 0.037109375, 0.046417236328125, -0.01169586181640625, 0.013824462890625, -0.031524658203125, 0.003047943115234375, -0.037322998046875, 0.017669677734375, -0.053466796875, -0.01020050048828125, -0.01593017578125, -0.002834320068359375, -0.0103302001953125, 0.01294708251953125, -0.0217437744140625, -0.04534912109375, 0.04052734375, -0.018707275390625, -0.022491455078125, 0.01444244384765625, -0.01041412353515625, 0.027496337890625, -0.0450439453125, -0.0033550262451171875, 0.05853271484375, 0.0233001708984375, -0.002223968505859375, -0.02557373046875, -0.0048980712890625, -0.0230865478515625, -0.0066375732421875, 0.0301361083984375, -0.0204010009765625, -0.0655517578125, 0.004852294921875, 0.00145721435546875, -0.0261077880859375, 0.010589599609375, 0.024932861328125, 0.04345703125, -0.0280303955078125, -0.0302886962890625, 0.01084136962890625, 0.037811279296875, 0.01488494873046875, 0.0087432861328125, -0.02984619140625, -0.0018491744995117188, -0.027618408203125, -0.0011816024780273438, -0.014434814453125, -0.0098876953125, 0.053192138671875, -0.00780487060546875, -0.0355224609375, 0.00914764404296875, -0.04376220703125, 0.006717681884765625, -0.004055023193359375, -0.01055908203125, 0.0148773193359375, -0.0096435546875, -0.0128631591796875, -0.010589599609375, -0.011871337890625, 0.0069580078125, 0.007389068603515625, 0.022186279296875, -0.00728607177734375, -0.013153076171875, 0.0241546630859375, 0.011993408203125, -0.0219879150390625, -0.02545166015625, 0.023223876953125, -0.0066375732421875, -0.0246429443359375, 0.00504302978515625, 0.01284027099609375, 0.038482666015625, 0.0019989013671875, 0.0239410400390625, 0.00955963134765625, 0.021453857421875, -0.062744140625, -0.0154876708984375, 0.0243072509765625, 0.036346435546875, -0.033050537109375, 0.0023746490478515625, 0.00940704345703125, -0.019439697265625, 0.017578125, -0.030975341796875, -0.0011072158813476562, 0.0033721923828125, -0.0263519287109375, -0.045501708984375, 0.00981903076171875, -0.0048828125, -0.0136260986328125, 0.023040771484375, 0.0245208740234375, -0.0156097412109375, -0.0177764892578125, -0.00762939453125, -0.0194854736328125, 0.0049591064453125, -0.0225677490234375, 0.002880096435546875, -0.0230255126953125, 0.00798797607421875, -0.0195770263671875, -0.037078857421875, -0.046478271484375, 0.024688720703125, 0.061798095703125, -0.0408935546875, 0.0035800933837890625, -0.044097900390625, 0.0780029296875, -0.0208282470703125, 0.01378631591796875, 0.017730712890625, -0.0205230712890625, 0.001796722412109375, -0.0256805419921875, -0.00870513916015625, -0.00693511962890625, -0.042510986328125, 0.0256195068359375, 0.053680419921875, 0.02520751953125, 0.0254974365234375, -0.0124969482421875, -0.01026153564453125, 0.053009033203125, -0.04132080078125, -0.00434112548828125, 0.0032711029052734375, 0.0223236083984375, 0.047943115234375, -0.0015439987182617188, -0.0111846923828125, 0.0126495361328125, -0.02496337890625, 0.0087738037109375, 0.035308837890625, 0.0168609619140625, 0.0140533447265625, -0.020263671875, 0.0277252197265625, -0.01404571533203125, 0.01450347900390625, 0.00501251220703125, -0.00783538818359375, 0.01070404052734375, 0.001056671142578125, 0.0005006790161132812, 0.0103302001953125, -0.01605224609375, 0.013763427734375, 0.0122833251953125, -0.0469970703125, -0.01849365234375, -0.047149658203125, -0.0196533203125, -0.045074462890625, -0.05169677734375, 0.04302978515625, -0.0079803466796875, -0.039947509765625, -0.0066680908203125, 0.0338134765625, -0.07568359375, -0.016265869140625, 0.00396728515625, -0.06878662109375, -0.046844482421875, 0.032257080078125, 0.007511138916015625, 0.0014925003051757812, 0.0062713623046875, 0.04461669921875, -0.02996826171875, 0.042236328125, 0.0013380050659179688, -0.003185272216796875, 0.01910400390625, -0.1107177734375, 0.08203125, -0.07177734375, 0.062042236328125, 0.08038330078125, -0.033172607421875, 0.0501708984375, -0.0038356781005859375, 0.0096588134765625, 0.01450347900390625, 0.008575439453125, -0.0137939453125, -0.024322509765625, -0.0309600830078125, 0.0160980224609375, -0.006267547607421875, 0.0293426513671875, -0.032440185546875, -0.037109375, -0.01861572265625, -0.01024627685546875, -0.09417724609375, -0.056671142578125, 0.03363037109375, -0.099365234375, -0.027252197265625, -0.031890869140625, -0.06536865234375, -0.000606536865234375, -0.0026912689208984375, -0.00664520263671875, -0.034515380859375, -0.0204315185546875, -0.057403564453125, -0.0567626953125, -0.0616455078125, -0.006343841552734375, -0.005031585693359375, 0.0201416015625, -0.007320404052734375, 0.07147216796875, -0.01107025146484375, -0.07073974609375, -0.0333251953125, -0.0172576904296875, -0.02545166015625, -0.018157958984375, -0.0274505615234375, 0.00769805908203125, 0.006317138671875, -0.00386810302734375, -0.0082550048828125, 0.0125274658203125, 0.01374053955078125, -0.006359100341796875, 0.000156402587890625, -0.044281005859375, 0.004032135009765625, 0.0304412841796875, -0.0096588134765625, -0.0271759033203125, 0.0142364501953125, -0.05877685546875, -0.03948974609375, -0.01953125, -0.07965087890625, 0.0199127197265625, 0.047393798828125, 0.01192474365234375, -0.006771087646484375, 0.0013427734375, -0.0269927978515625, -0.03826904296875, 0.06756591796875, -0.049896240234375, 0.0171966552734375, -0.0142059326171875, -0.036712646484375, -0.0272369384765625, 0.0265045166015625, -0.0303955078125, 0.0223846435546875, 0.019256591796875, -0.0038967132568359375, 0.0006246566772460938, 0.000392913818359375, -0.007167816162109375, -0.07501220703125, 0.051483154296875, 0.0147857666015625, 0.00740814208984375, -0.026275634765625, -0.037384033203125, 0.0005331039428710938, 0.10064697265625, -0.0017213821411132812, -0.02191162109375, -0.0355224609375, 0.01061248779296875, -0.0186920166015625, -0.081787109375, 0.02587890625, -0.01092529296875, -0.04608154296875, 0.009033203125, -0.0186309814453125, 0.0027408599853515625, -0.008514404296875, 0.032012939453125, -0.02178955078125, -0.0249176025390625, 0.0311737060546875, -0.0283660888671875, 0.002429962158203125, 0.0016393661499023438, -0.01528167724609375, -0.005123138427734375, -0.0125732421875, -0.03167724609375, -0.01428985595703125, -0.02301025390625, 0.03375244140625, 0.0037021636962890625, 0.00827789306640625, -0.049957275390625, -0.0052642822265625, 0.0218963623046875, 0.0180206298828125, 0.04278564453125, -0.0036754608154296875, 0.005657196044921875, -0.0075225830078125, -0.0428466796875, 0.0196990966796875, -0.057403564453125, -0.010650634765625, -0.0379638671875, -0.011383056640625, -0.0270538330078125, -0.048828125, 0.00679779052734375, -0.034881591796875, 0.0004279613494873047, -0.0693359375, -0.01180267333984375, 0.00409698486328125, 0.024993896484375, 0.0027675628662109375, 0.006000518798828125, -0.023590087890625, -0.07598876953125, 0.06103515625, 0.02191162109375, -0.004482269287109375, 0.00133514404296875, 0.08612060546875, 0.0108795166015625, -0.03570556640625, -0.049102783203125, -0.0198516845703125, 0.025909423828125, 0.01358795166015625, 0.01293182373046875, 0.002521514892578125, -0.0077056884765625, 0.0249481201171875, 0.0011568069458007812, -0.006961822509765625, -0.0122833251953125, 0.03485107421875, -0.0003807544708251953, -0.002231597900390625, 0.0016527175903320312, -0.01500701904296875, 0.0273284912109375, 0.04034423828125, -0.0343017578125, 0.00707244873046875, 0.0059051513671875, 0.03033447265625, -0.0498046875, 0.0200958251953125, -0.01275634765625, -0.0018243789672851562, 0.001255035400390625, 0.002742767333984375, 0.036102294921875, 0.0143280029296875, 0.01496124267578125, 0.00634765625, 0.0279388427734375, 0.0121002197265625, 0.048492431640625, 0.058502197265625, 0.0212249755859375, 0.037078857421875, 0.032012939453125, 0.00516510009765625, -0.01219940185546875, -0.006526947021484375, 0.006412506103515625, -0.032257080078125, -0.08184814453125, 0.015777587890625, -0.01456451416015625, 0.025299072265625, 0.0450439453125, -0.018798828125, 0.0462646484375, 0.060272216796875, -0.029449462890625, -0.0036983489990234375, -0.014068603515625, 0.0036144256591796875, -0.06109619140625, 0.0287322998046875, 0.00539398193359375, -0.000048279762268066406, 0.032806396484375, 0.09613037109375, -0.014404296875, 0.07122802734375, -0.0288238525390625, 0.00251007080078125, -0.0103302001953125, 0.054168701171875, 0.02142333984375, -0.0158233642578125, -0.01270294189453125, 0.03387451171875, 0.00585174560546875, -0.0242767333984375, -0.01629638671875, 0.024810791015625, 0.01702880859375, -0.02032470703125, -0.004657745361328125, 0.0228729248046875, -0.00981903076171875, -0.03277587890625, 0.01142120361328125, -0.0021457672119140625, -0.051300048828125, -0.00728607177734375, 0.032501220703125, 0.0187835693359375, 0.0018415451049804688, 0.004352569580078125, -0.005390167236328125, -0.01224517822265625, 0.02337646484375, -0.02880859375, -0.001708984375, -0.0131378173828125, -0.007904052734375, -0.01145172119140625, -0.0165252685546875, 0.0137786865234375, -0.042633056640625, -0.015960693359375, -0.0162811279296875, -0.0107421875, 0.027008056640625, -0.024688720703125, 0.051666259765625, -0.0074920654296875, -0.0257110595703125, 0.004787445068359375, 0.018951416015625, 0.037933349609375, 0.024871826171875, -0.009246826171875, -0.014862060546875, -0.061920166015625, -0.037933349609375, 0.055572509765625, 0.01393890380859375, -0.027923583984375, -0.01004791259765625, 0.042144775390625, 0.021331787109375, 0.0106048583984375, -0.042449951171875, -0.0246429443359375, 0.00963592529296875, 0.0343017578125, 0.053985595703125, -0.0040740966796875, 0.059478759765625, -0.016571044921875, 0.010406494140625, 0.01021575927734375, 0.040740966796875, -0.000003635883331298828, -0.029083251953125, 0.0335693359375, -0.0111846923828125, -0.037811279296875, -0.01377105712890625, -0.054229736328125, -0.037017822265625, 0.01995849609375, -0.0128173828125, -0.01335906982421875, 0.002033233642578125, 0.013336181640625, -0.00860595703125, -0.006221771240234375, 0.04559326171875, -0.01206207275390625, 0.0269317626953125, 0.013580322265625, -0.01306915283203125, -0.0313720703125, -0.0241851806640625, 0.00969696044921875, 0.01593017578125, -0.0115814208984375, -0.01021575927734375, -0.06939697265625, 0.06866455078125, 0.08380126953125, 0.0183258056640625, 0.0276336669921875, 0.015777587890625, -0.003482818603515625, 0.00054168701171875, 0.0166473388671875, -0.0262603759765625, -0.03985595703125, 0.0290985107421875, 0.0165557861328125, -0.0012960433959960938, 0.035125732421875, -0.01251220703125, -0.00914764404296875, 0.0025482177734375, 0.0249481201171875, -0.021728515625, 0.008575439453125, 0.01934814453125, 0.00054168701171875, -0.00942230224609375, 0.020355224609375, -0.020538330078125, -0.039947509765625, 0.042755126953125, -0.042877197265625, -0.007476806640625, 0.020172119140625, -0.0159149169921875, -0.01568603515625, -0.0198974609375, 0.01593017578125, 0.00513458251953125, -0.01108551025390625, 0.0026416778564453125, 0.011932373046875, -0.0164031982421875, -0.0235748291015625, -0.0082550048828125, 0.00213623046875, -0.015625, -0.0875244140625, 0.0020313262939453125, -0.058197021484375, 0.0009794235229492188, 0.040863037109375, -0.01543426513671875, -0.001171112060546875, 0.040618896484375, -0.0282135009765625, 0.028411865234375, 0.01299285888671875, -0.04071044921875, -0.04931640625, -0.022186279296875, 0.018829345703125, 0.0138092041015625, -0.019439697265625, 0.035980224609375, -0.0248260498046875, -0.04541015625, -0.005214691162109375, -0.0041351318359375, 0.07513427734375, -0.04107666015625, -0.0016126632690429688, 0.0285186767578125, 0.0399169921875, -0.0018453598022460938, -0.0213623046875, -0.00557708740234375, 0.00005704164505004883, 0.06268310546875, -0.0300445556640625, 0.0308837890625, -0.0013856887817382812, -0.030670166015625, -0.041290283203125, 0.08233642578125, -0.0227203369140625, 0.0010633468627929688, 0.01898193359375, 0.03802490234375, -0.01873779296875, 0.02490234375, -0.042755126953125, 0.037750244140625, 0.0010385513305664062, 0.07080078125, -0.057861328125, -0.020416259765625, 0.01418304443359375, 0.051666259765625, 0.0513916015625, 0.0081024169921875, -0.01381683349609375, 0.0007038116455078125, 0.05389404296875, 0.0347900390625, -0.00421142578125, 0.0224456787109375, 0.037078857421875, 0.046539306640625, 0.06805419921875, -0.04864501953125, 0.0203704833984375, -0.00820159912109375, 0.04217529296875, 0.05657958984375, 0.016510009765625, 0.00518798828125, 0.01560211181640625, 0.00322723388671875, -0.050262451171875, 0.0118255615234375, 0.03387451171875, 0.004894256591796875, 0.01837158203125, 0.07232666015625, 0.08447265625, -0.087646484375, -0.047088623046875, -0.03997802734375, 0.062164306640625, 0.00662994384765625, -0.0096282958984375, 0.068359375, 0.02203369140625, 0.0221405029296875, -0.0128631591796875, -0.001598358154296875, -0.016143798828125, 0.018585205078125, 0.0694580078125, 0.007099151611328125, 0.0008459091186523438, -0.052093505859375, 0.0304718017578125, 0.022369384765625, 0.05877685546875, -0.066162109375, -0.040679931640625, 0.0168609619140625, -0.01546478271484375, -0.019256591796875, -0.0274200439453125, -0.009002685546875, -0.004650115966796875, 0.023284912109375, 0.003875732421875, -0.038604736328125, -0.004825592041015625, 0.03240966796875, -0.0012683868408203125, -0.004665374755859375, 0.01523590087890625, -0.044403076171875, 0.0036029815673828125, -0.0379638671875, 0.01084136962890625, 0.0053863525390625, 0.0023040771484375, 0.02423095703125, -0.005580902099609375, 0.0121307373046875, 0.00710296630859375, 0.00661468505859375, -0.0112457275390625, 0.002964019775390625, -0.00021886825561523438, -0.01322174072265625, -0.01617431640625, 0.0175018310546875, 0.0236358642578125, 0.0024509429931640625, 0.036773681640625, 0.0265960693359375, -0.0297088623046875, -0.0105133056640625, 0.017791748046875, -0.026275634765625, -0.0256195068359375, -0.0193328857421875, -0.007114410400390625, 0.0059051513671875, -0.01861572265625, 0.004161834716796875, 0.048797607421875, 0.0008788108825683594, 0.004802703857421875, -0.007061004638671875, 0.01348876953125, -0.01378631591796875, 0.05194091796875, 0.0418701171875, 0.03125, 0.0241241455078125, -0.06451416015625, 0.005550384521484375, -0.048004150390625, -0.046356201171875, 0.0214385986328125, 0.0379638671875, -0.0167694091796875, 0.00868988037109375, -0.01013946533203125, 0.036102294921875, 0.0309906005859375, -0.0615234375, 0.00891876220703125, 0.00701141357421875, 0.031005859375, 0.0060272216796875, -0.026031494140625, -0.0298309326171875, 0.0014848709106445312, 0.0316162109375, 0.0207366943359375, 0.018402099609375, 0.00638580322265625, 0.01361083984375, -0.01214599609375, 0.0184478759765625, -0.0294342041015625, -0.01227569580078125, 0.016845703125, 0.00809478759765625, 0.0133056640625, -0.0092620849609375, -0.0400390625, 0.0287628173828125, 0.0251312255859375, -0.0252227783203125, 0.005092620849609375, -0.007740020751953125, 0.0160369873046875, -0.00832366943359375, 0.01541900634765625, -0.0279388427734375, -0.0018548965454101562, -0.0130615234375, -0.0209197998046875, 0.0293426513671875, -0.0048828125, 0.0005068778991699219, 0.03680419921875, -0.01433563232421875, -0.0036792755126953125, 0.02825927734375, -0.00879669189453125, 0.0306549072265625, 0.035797119140625, -0.0655517578125, -0.010406494140625, 0.0064849853515625, -0.0186309814453125, -0.00740814208984375, 0.0213775634765625, -0.0038604736328125, 0.0124359130859375, -0.01934814453125, -0.0264739990234375, -0.032379150390625, 0.043212890625, -0.0260162353515625, 0.0152740478515625, -0.056610107421875, 0.044403076171875, 0.032928466796875, -0.01389312744140625, -0.02288818359375, -0.03594970703125, -0.020263671875, 0.0028095245361328125, -0.0302886962890625, -0.034912109375, -0.025726318359375, 0.00624847412109375, 0.0029125213623046875, -0.01262664794921875, -0.010772705078125, 0.048675537109375, -0.047576904296875, -0.0193328857421875, -0.031646728515625, -0.053253173828125, 0.0209503173828125, 0.005092620849609375, -0.031524658203125, 0.050323486328125, -0.047515869140625, -0.08111572265625, -0.0006551742553710938, 0.031494140625, 0.05816650390625, -0.0214996337890625, -0.024200439453125, 0.02374267578125, 0.004302978515625, 0.07086181640625, -0.024871826171875, 0.0107421875, 0.03570556640625, 0.0165252685546875, -0.040191650390625, -0.137451171875, 0.01413726806640625, -0.1011962890625, 0.031005859375, -0.0281219482421875, 0.01029205322265625, 0.0341796875, -0.0206146240234375, -0.045013427734375, 0.03204345703125, -0.0224151611328125, -0.0250396728515625, -0.0181732177734375, -0.0206756591796875, -0.02557373046875, 0.033782958984375, 0.0089111328125, -0.0201416015625, -0.0254058837890625, 0.0268096923828125, 0.018890380859375, -0.00836181640625, 0.054595947265625, -0.00951385498046875, -0.08441162109375, -0.00495147705078125, -0.01491546630859375, 0.02239990234375, 0.0308990478515625, -0.01348114013671875, 0.037811279296875, 0.049468994140625, -0.046234130859375, -0.0274505615234375, -0.03387451171875, 0.0082855224609375, 0.01377105712890625, -0.0290985107421875, -0.0287322998046875, -0.0183868408203125, 0.0472412109375, 0.0249481201171875, 0.01554107666015625, -0.02838134765625, -0.01361846923828125, -0.043548583984375, -0.046875, -0.034942626953125, 0.022918701171875, -0.0716552734375, 0.0028553009033203125, -0.0135040283203125, -0.03558349609375, -0.00164031982421875, -0.034027099609375, -0.053985595703125, 0.01198577880859375, -0.055084228515625, 0.001934051513671875, -0.030609130859375, -0.029998779296875, -0.028167724609375, 0.01399993896484375, 0.0173492431640625, -0.01294708251953125, 0.02545166015625, -0.01364898681640625, 0.06903076171875, -0.01561737060546875, 0.04833984375, -0.03759765625, -0.0004067420959472656, 0.01535797119140625, -0.01776123046875, -0.0101470947265625, 0.019683837890625, -0.0007266998291015625, 0.0162506103515625, -0.005512237548828125, 0.01528167724609375, 0.0292510986328125, -0.0006833076477050781, -0.005420684814453125, 0.0158538818359375, 0.0006418228149414062, 0.06866455078125, 0.003978729248046875, 0.0218505859375, -0.037109375, 0.004299163818359375, -0.0229034423828125, -0.026092529296875, -0.0031299591064453125, 0.01374053955078125, 0.004703521728515625, -0.0350341796875, 0.0159912109375, 0.016754150390625, 0.008636474609375, 0.01064300537109375 ]
43a0afad486d636876648ce484de6fbb80df3259
Wordpress Stackexchange Q: get_users meta_query I can't get meta_queries working correctly on get_users(). For the life of me can't figure out what I'm doing wrong. $args = array( 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'minbeds', 'value' => $rooms, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxbeds', 'value' => $rooms, 'compare' => "=>", 'type' => 'numeric' ) array( 'key' => 'minprice', 'value' => $price, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxprice', 'value' => $price, 'compare' => "=>", 'type' => 'numeric' ) ) ); $users = get_users( $args ); A: meta_query parameter is an array of arrays, $args = array( 'meta_query'=> array( array( 'relation' => 'AND', array( 'key' => 'minbeds', 'value' => $rooms, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxbeds', 'value' => $rooms, 'compare' => ">=", 'type' => 'numeric' ), array( 'key' => 'minprice', 'value' => $price, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxprice', 'value' => $price, 'compare' => ">=", 'type' => 'numeric' ) ) ) ); $users = get_users( $args );
Q: get_users meta_query I can't get meta_queries working correctly on get_users(). For the life of me can't figure out what I'm doing wrong. $args = array( 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'minbeds', 'value' => $rooms, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxbeds', 'value' => $rooms, 'compare' => "=>", 'type' => 'numeric' ) array( 'key' => 'minprice', 'value' => $price, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxprice', 'value' => $price, 'compare' => "=>", 'type' => 'numeric' ) ) ); $users = get_users( $args ); A: meta_query parameter is an array of arrays, $args = array( 'meta_query'=> array( array( 'relation' => 'AND', array( 'key' => 'minbeds', 'value' => $rooms, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxbeds', 'value' => $rooms, 'compare' => ">=", 'type' => 'numeric' ), array( 'key' => 'minprice', 'value' => $price, 'compare' => "<=", 'type' => 'numeric' ), array( 'key' => 'maxprice', 'value' => $price, 'compare' => ">=", 'type' => 'numeric' ) ) ) ); $users = get_users( $args );
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:427769", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81473" }
[ 0.032989501953125, -0.0093994140625, -0.00439453125, 0.019317626953125, 0.0019817352294921875, -0.047088623046875, 0.06781005859375, -0.035186767578125, -0.00652313232421875, 0.039337158203125, -0.0286865234375, -0.0054168701171875, -0.015777587890625, -0.0142364501953125, -0.0135040283203125, -0.0301055908203125, 0.0283050537109375, -0.034881591796875, -0.026641845703125, -0.0419921875, 0.01386260986328125, -0.02154541015625, -0.0088958740234375, 0.035736083984375, 0.0281524658203125, -0.051422119140625, 0.041748046875, -0.0221099853515625, 0.0281524658203125, -0.00237274169921875, 0.01551055908203125, -0.0219268798828125, -0.01080322265625, 0.004543304443359375, 0.055084228515625, 0.0166778564453125, 0.04315185546875, -0.0021839141845703125, 0.055084228515625, -0.01239013671875, 0.04559326171875, -0.0253143310546875, -0.07708740234375, 0.041168212890625, -0.055877685546875, -0.048370361328125, 0.06683349609375, 0.013031005859375, 0.0295257568359375, -0.00974273681640625, -0.0045013427734375, -0.0002340078353881836, 0.0039043426513671875, -0.01499176025390625, 0.000766754150390625, 0.03265380859375, 0.02496337890625, -0.05609130859375, 0.028076171875, -0.0306396484375, -0.00896453857421875, -0.01206207275390625, 0.037933349609375, 0.016204833984375, -0.036041259765625, -0.03863525390625, -0.00909423828125, 0.0161895751953125, 0.008056640625, -0.03546142578125, 0.01373291015625, 0.037506103515625, -0.022064208984375, -0.0217437744140625, -0.007472991943359375, -0.0238800048828125, -0.0201873779296875, -0.06915283203125, 0.019378662109375, 0.04193115234375, -0.0010118484497070312, -0.01519012451171875, -0.053863525390625, 0.07806396484375, -0.035980224609375, 0.08880615234375, -0.03131103515625, -0.037872314453125, 0.015899658203125, -0.051544189453125, -0.00048828125, -0.052520751953125, -0.0218048095703125, 0.012542724609375, -0.0081939697265625, -0.0533447265625, -0.02685546875, -0.0030002593994140625, -0.0241241455078125, -0.01226043701171875, -0.01020050048828125, -0.0109100341796875, -0.0170440673828125, -0.0026493072509765625, 0.011138916015625, 0.036163330078125, -0.000568389892578125, 0.043548583984375, 0.05078125, 0.019500732421875, 0.021331787109375, 0.028289794921875, -0.032196044921875, -0.0268707275390625, -0.004241943359375, 0.0179290771484375, -0.057952880859375, 0.0399169921875, 0.0074310302734375, 0.0235137939453125, 0.00858306884765625, 0.01776123046875, 0.04412841796875, 0.0012426376342773438, 0.0268707275390625, 0.047637939453125, -0.0151214599609375, -0.06292724609375, -0.053497314453125, 0.0665283203125, -0.00850677490234375, -0.011474609375, -0.0141754150390625, 0.039794921875, -0.018096923828125, -0.0181121826171875, 0.0158233642578125, -0.069580078125, -0.02679443359375, 0.0430908203125, 0.0003559589385986328, -0.038970947265625, 0.01279449462890625, -0.020172119140625, -0.0267333984375, 0.023468017578125, 0.034942626953125, -0.006450653076171875, -0.0196075439453125, -0.054840087890625, -0.043182373046875, -0.0185089111328125, 0.0288238525390625, 0.01605224609375, -0.03350830078125, 0.032562255859375, 0.0261688232421875, -0.0024662017822265625, -0.061431884765625, -0.0225677490234375, -0.0065765380859375, -0.0106658935546875, 0.01549530029296875, -0.0290069580078125, -0.035003662109375, 0.01148223876953125, 0.0008196830749511719, -0.005817413330078125, 0.021087646484375, 0.05499267578125, 0.005489349365234375, 0.0367431640625, 0.0384521484375, 0.0092926025390625, -0.01031494140625, -0.00893402099609375, 0.0016145706176757812, 0.04339599609375, -0.009307861328125, -0.037353515625, -0.056732177734375, -0.05560302734375, 0.0242462158203125, -0.015899658203125, -0.05352783203125, 0.048187255859375, -0.00921630859375, 0.0197906494140625, 0.0232086181640625, -0.00904083251953125, 0.031158447265625, 0.043060302734375, -0.005893707275390625, 0.046478271484375, 0.0303802490234375, -0.054962158203125, -0.0298919677734375, -0.037017822265625, 0.01113128662109375, -0.0139007568359375, 0.0165863037109375, 0.00904083251953125, -0.01528167724609375, -0.00229644775390625, -0.0665283203125, 0.011871337890625, -0.026611328125, 0.044219970703125, -0.03240966796875, 0.016632080078125, 0.00634765625, -0.0379638671875, -0.0259857177734375, 0.060943603515625, 0.0231475830078125, -0.00888824462890625, -0.00968170166015625, 0.0751953125, -0.02410888671875, 0.040252685546875, -0.02001953125, -0.0860595703125, -0.003604888916015625, 0.0218353271484375, 0.05902099609375, 0.0181121826171875, -0.0311431884765625, -0.0078887939453125, 0.03619384765625, 0.01407623291015625, -0.0103607177734375, 0.041473388671875, 0.033233642578125, 0.034149169921875, -0.0219268798828125, 0.0243682861328125, 0.0187530517578125, 0.0144500732421875, -0.024322509765625, 0.014678955078125, 0.02490234375, -0.01276397705078125, -0.006305694580078125, 0.0184783935546875, 0.0124969482421875, -0.041473388671875, -0.0015306472778320312, 0.009674072265625, -0.021392822265625, 0.0273284912109375, 0.00353240966796875, 0.0292205810546875, 0.008056640625, 0.0264739990234375, -0.0146331787109375, 0.044769287109375, -0.02850341796875, 0.0310516357421875, 0.006763458251953125, -0.01448822021484375, -0.0249176025390625, -0.04998779296875, 0.0284881591796875, -0.0355224609375, 0.04144287109375, -0.0185089111328125, 0.03656005859375, 0.0167236328125, -0.0252227783203125, 0.00621795654296875, 0.004322052001953125, -0.00646209716796875, 0.00418853759765625, -0.0032482147216796875, -0.05322265625, 0.01324462890625, -0.024505615234375, 0.032562255859375, 0.01097869873046875, -0.0171051025390625, 0.01434326171875, 0.0242767333984375, 0.0086212158203125, 0.00897979736328125, 0.0162200927734375, 0.0151824951171875, 0.0211944580078125, 0.034515380859375, -0.006671905517578125, -0.0107421875, 0.022491455078125, 0.01088714599609375, -0.0189971923828125, 0.006977081298828125, 0.01397705078125, -0.0189666748046875, 0.0091705322265625, -0.03839111328125, 0.0340576171875, -0.04302978515625, 0.0103302001953125, 0.04949951171875, -0.00067901611328125, -0.01213836669921875, 0.0008230209350585938, -0.0186614990234375, -0.01273345947265625, 0.04986572265625, -0.005153656005859375, -0.0654296875, 0.004398345947265625, 0.0009226799011230469, 0.0168609619140625, 0.017608642578125, 0.0181121826171875, -0.00940704345703125, -0.004589080810546875, 0.01216888427734375, -0.059417724609375, -0.0860595703125, 0.00347900390625, -0.01654052734375, -0.0092010498046875, -0.010650634765625, -0.00148773193359375, 0.005550384521484375, -0.00909423828125, -0.0026264190673828125, 0.03155517578125, -0.0433349609375, -0.06658935546875, -0.039794921875, -0.057708740234375, 0.0189208984375, 0.005199432373046875, -0.007648468017578125, 0.0166015625, 0.015625, 0.00597381591796875, -0.0301513671875, 0.01116180419921875, 0.08343505859375, -0.005565643310546875, -0.01451873779296875, 0.045562744140625, -0.034912109375, -0.0027523040771484375, -0.019378662109375, 0.09747314453125, 0.071533203125, -0.078125, 0.0183868408203125, 0.0193328857421875, -0.0217437744140625, 0.035675048828125, 0.0005331039428710938, -0.03778076171875, 0.023773193359375, 0.057159423828125, -0.0220794677734375, -0.05078125, -0.005275726318359375, -0.059722900390625, 0.017852783203125, 0.044464111328125, 0.004955291748046875, 0.0020999908447265625, 0.0256805419921875, 0.007488250732421875, 0.007236480712890625, 0.00925445556640625, -0.0435791015625, 0.0179290771484375, 0.004695892333984375, 0.039947509765625, 0.0008268356323242188, 0.0085601806640625, -0.020416259765625, 0.02508544921875, -0.01149749755859375, -0.01168060302734375, -0.0139617919921875, -0.0008153915405273438, -0.03369140625, -0.0104827880859375, 0.05743408203125, 0.0085296630859375, 0.026153564453125, -0.0657958984375, -0.0499267578125, -0.08837890625, 0.03460693359375, -0.0025081634521484375, -0.040618896484375, -0.01708984375, 0.00249481201171875, -0.048919677734375, 0.03192138671875, -0.005260467529296875, 0.030364990234375, -0.009674072265625, -0.033905029296875, -0.02392578125, -0.0302581787109375, -0.00980377197265625, -0.049102783203125, 0.005214691162109375, -0.031219482421875, 0.036468505859375, 0.01157379150390625, 0.03125, -0.015533447265625, 0.041900634765625, -0.032501220703125, 0.003116607666015625, -0.001293182373046875, -0.046539306640625, -0.03204345703125, 0.050506591796875, 0.05340576171875, -0.0007696151733398438, -0.037933349609375, -0.024322509765625, 0.049224853515625, 0.017120361328125, 0.005954742431640625, 0.01537322998046875, -0.0020427703857421875, -0.027008056640625, -0.0177764892578125, 0.00426483154296875, -0.04144287109375, -0.0276947021484375, -0.015594482421875, -0.003314971923828125, 0.004665374755859375, -0.0162811279296875, -0.0213165283203125, -0.0005540847778320312, -0.019287109375, -0.06195068359375, -0.01476287841796875, -0.0110626220703125, 0.0015087127685546875, -0.019744873046875, 0.0005803108215332031, -0.01366424560546875, -0.066162109375, 0.031341552734375, 0.01953125, -0.014739990234375, -0.004940032958984375, 0.05902099609375, 0.01218414306640625, -0.035797119140625, -0.023101806640625, -0.004711151123046875, 0.01526641845703125, -0.003147125244140625, 0.020904541015625, -0.0160675048828125, -0.01531982421875, 0.054107666015625, -0.01432037353515625, 0.0428466796875, -0.00860595703125, 0.0195770263671875, -0.029571533203125, -0.0286865234375, 0.036102294921875, -0.00937652587890625, -0.056793212890625, 0.01096343994140625, 0.001087188720703125, -0.0173492431640625, -0.0161895751953125, 0.03509521484375, 0.0267181396484375, -0.0171661376953125, -0.045745849609375, -0.0279083251953125, 0.016571044921875, -0.0287933349609375, -0.0304412841796875, -0.005279541015625, 0.0004131793975830078, -0.034271240234375, -0.045806884765625, -0.015716552734375, 0.044586181640625, 0.0638427734375, -0.039703369140625, 0.05743408203125, -0.030487060546875, -0.05218505859375, -0.007049560546875, -0.007442474365234375, 0.0377197265625, 0.0059356689453125, -0.056854248046875, 0.007518768310546875, 0.003360748291015625, 0.062347412109375, 0.0026950836181640625, 0.043121337890625, 0.0219573974609375, 0.003200531005859375, 0.014617919921875, -0.017608642578125, 0.01373291015625, 0.035858154296875, -0.0258636474609375, -0.01192474365234375, -0.0292205810546875, 0.01019287109375, -0.061737060546875, 0.1282958984375, -0.0513916015625, 0.06439208984375, -0.0206756591796875, 0.03631591796875, 0.03570556640625, 0.000002205371856689453, -0.0092010498046875, 0.05303955078125, -0.008392333984375, -0.0004520416259765625, 0.01076507568359375, 0.01485443115234375, -0.01174163818359375, 0.00988006591796875, -0.017578125, 0.040313720703125, 0.0469970703125, -0.0235443115234375, 0.012237548828125, 0.0011749267578125, -0.008941650390625, -0.026214599609375, -0.0248260498046875, -0.008514404296875, -0.0127105712890625, -0.01406097412109375, -0.02667236328125, -0.004978179931640625, 0.0006341934204101562, -0.01026153564453125, 0.0276641845703125, -0.0236663818359375, 0.014495849609375, -0.00458526611328125, -0.0033740997314453125, -0.00864410400390625, -0.047393798828125, -0.0028514862060546875, -0.01070404052734375, 0.031341552734375, -0.040283203125, -0.00965118408203125, 0.03594970703125, -0.0012121200561523438, 0.01546478271484375, -0.0679931640625, 0.0211029052734375, -0.043670654296875, -0.0055389404296875, 0.0290374755859375, 0.013275146484375, 0.01039886474609375, -0.01444244384765625, -0.04071044921875, -0.022064208984375, 0.01898193359375, 0.0099639892578125, -0.0011949539184570312, -0.01080322265625, -0.0310211181640625, 0.00315093994140625, 0.0010652542114257812, 0.025054931640625, -0.01486968994140625, 0.012969970703125, -0.0099334716796875, -0.0171966552734375, -0.0341796875, 0.04302978515625, 0.00571441650390625, 0.034820556640625, -0.0006546974182128906, -0.00345611572265625, -0.01134490966796875, -0.0018491744995117188, 0.0128173828125, -0.006465911865234375, -0.004619598388671875, -0.0211334228515625, -0.00786590576171875, -0.0489501953125, 0.049346923828125, -0.01219940185546875, 0.01384735107421875, 0.0030689239501953125, -0.0003299713134765625, -0.01477813720703125, -0.006320953369140625, -0.0037212371826171875, 0.0277099609375, 0.003772735595703125, -0.0159454345703125, 0.01313018798828125, 0.003570556640625, -0.045196533203125, 0.01446533203125, -0.0029468536376953125, 0.009552001953125, 0.035247802734375, -0.01181793212890625, 0.01001739501953125, 0.0538330078125, -0.00036144256591796875, 0.0335693359375, -0.0008463859558105469, 0.025726318359375, 0.033935546875, -0.006938934326171875, 0.028839111328125, 0.048004150390625, 0.06353759765625, -0.020111083984375, 0.001148223876953125, 0.02703857421875, -0.02264404296875, 0.00537109375, 0.03997802734375, 0.0281829833984375, -0.07037353515625, -0.0031375885009765625, -0.00603485107421875, -0.006671905517578125, 0.041534423828125, -0.0006814002990722656, 0.006771087646484375, -0.01904296875, -0.006984710693359375, 0.0128021240234375, -0.0215911865234375, -0.00928497314453125, 0.00734710693359375, -0.0099945068359375, 0.01526641845703125, -0.004241943359375, -0.0006337165832519531, 0.0276031494140625, -0.00562286376953125, -0.0267181396484375, 0.01514434814453125, 0.0090179443359375, 0.01708984375, 0.006927490234375, -0.036376953125, -0.0960693359375, -0.05194091796875, -0.0019989013671875, -0.08050537109375, 0.0202178955078125, 0.00771331787109375, 0.0772705078125, 0.039398193359375, 0.0279998779296875, -0.0294342041015625, 0.01534271240234375, -0.0019588470458984375, 0.002651214599609375, -0.01186370849609375, -0.01548004150390625, 0.0028743743896484375, 0.005157470703125, 0.0186004638671875, -0.008056640625, -0.0152587890625, -0.0196380615234375, -0.00290679931640625, 0.06982421875, -0.0023860931396484375, -0.036651611328125, 0.04217529296875, 0.0099945068359375, -0.04864501953125, 0.032257080078125, -0.01441192626953125, -0.034515380859375, -0.048309326171875, 0.0254974365234375, -0.06378173828125, -0.018524169921875, 0.0160369873046875, -0.03179931640625, -0.0087127685546875, -0.019744873046875, 0.0241851806640625, 0.01141357421875, -0.0003712177276611328, -0.0009760856628417969, -0.00843048095703125, -0.06304931640625, 0.04888916015625, 0.0091552734375, 0.08331298828125, -0.06671142578125, -0.00885009765625, 0.028076171875, 0.03692626953125, 0.0010404586791992188, 0.00244140625, -0.0584716796875, -0.0204620361328125, 0.0245361328125, 0.01934814453125, 0.0221099853515625, 0.046417236328125, 0.00534820556640625, 0.048736572265625, 0.045562744140625, -0.0196685791015625, 0.043853759765625, -0.00562286376953125, -0.040252685546875, 0.0140228271484375, -0.01291656494140625, -0.032257080078125, -0.0160369873046875, -0.0213623046875, -0.05133056640625, -0.006641387939453125, 0.0172119140625, -0.024993896484375, 0.0213623046875, 0.0170745849609375, 0.00634002685546875, 0.016998291015625, 0.0007710456848144531, -0.011260986328125, 0.03802490234375, 0.00478363037109375, -0.0201873779296875, 0.0697021484375, 0.008392333984375, 0.0079193115234375, 0.019134521484375, 0.005092620849609375, -0.0080718994140625, 0.041046142578125, 0.07080078125, 0.049560546875, 0.01519012451171875, -0.01947021484375, 0.012939453125, 0.043670654296875, 0.08038330078125, -0.059173583984375, -0.040740966796875, 0.0016832351684570312, 0.0041351318359375, 0.004909515380859375, 0.0174102783203125, -0.007572174072265625, 0.0249176025390625, 0.04620361328125, -0.034149169921875, -0.0011425018310546875, -0.0209197998046875, -0.00862884521484375, -0.00041484832763671875, -0.01117706298828125, 0.0115509033203125, 0.00548553466796875, -0.034759521484375, 0.03216552734375, 0.00812530517578125, 0.0213623046875, 0.0122833251953125, 0.04034423828125, -0.0106048583984375, -0.00897216796875, -0.04833984375, 0.036590576171875, -0.009124755859375, 0.0386962890625, -0.07366943359375, -0.021209716796875, -0.01332855224609375, 0.057403564453125, -0.01424407958984375, -0.01537322998046875, -0.00632476806640625, 0.0134429931640625, -0.01300811767578125, -0.0023632049560546875, 0.07080078125, -0.012908935546875, -0.026092529296875, -0.032958984375, 0.024017333984375, 0.006244659423828125, 0.00020575523376464844, 0.01207733154296875, 0.02655029296875, 0.01399993896484375, 0.0185699462890625, 0.060333251953125, 0.00942230224609375, 0.016448974609375, -0.01000213623046875, -0.0219573974609375, 0.01055908203125, 0.02764892578125, -0.002956390380859375, -0.0018672943115234375, -0.031646728515625, -0.007389068603515625, -0.00893402099609375, 0.01165771484375, 0.01090240478515625, 0.031280517578125, 0.0189208984375, -0.040252685546875, 0.042236328125, 0.01140594482421875, 0.01220703125, 0.00800323486328125, 0.0010366439819335938, -0.018035888671875, -0.02008056640625, -0.0100555419921875, 0.037506103515625, -0.0017147064208984375, -0.028106689453125, 0.054656982421875, -0.000946044921875, -0.0277099609375, -0.0214385986328125, -0.0142822265625, -0.0030040740966796875, -0.037506103515625, 0.07501220703125, -0.011932373046875, -0.042572021484375, -0.01094818115234375, 0.0638427734375, -0.006866455078125, 0.038421630859375, -0.05084228515625, -0.055999755859375, 0.01416778564453125, 0.0268096923828125, 0.0308380126953125, 0.017181396484375, -0.014190673828125, -0.0096893310546875, -0.016632080078125, -0.0203857421875, 0.031707763671875, 0.032867431640625, 0.00860595703125, 0.023040771484375, 0.0028705596923828125, -0.024810791015625, 0.0163726806640625, -0.016815185546875, 0.0295562744140625, 0.0303802490234375, 0.007160186767578125, 0.06005859375, -0.004619598388671875, -0.032562255859375, 0.02593994140625, 0.004505157470703125, -0.02655029296875, 0.0063323974609375, 0.0445556640625, 0.0138397216796875, 0.045745849609375, 0.0285186767578125, -0.01529693603515625, -0.01445770263671875, 0.044921875, -0.047271728515625, 0.01837158203125, -0.0227203369140625, -0.032257080078125, -0.041900634765625, 0.004749298095703125, 0.01922607421875, -0.0193328857421875, -0.017364501953125, -0.06048583984375, 0.0014057159423828125, -0.007595062255859375, -0.011199951171875, -0.0215606689453125, 0.0287017822265625, -0.02349853515625, -0.00888824462890625, -0.040924072265625, -0.044586181640625, 0.01800537109375, 0.03594970703125, -0.01085662841796875, 0.0266265869140625, -0.0211944580078125, -0.0423583984375, -0.00937652587890625, 0.016021728515625, 0.0287322998046875, -0.01324462890625, 0.0190582275390625, 0.033447265625, 0.00927734375, 0.06817626953125, -0.0181427001953125, -0.028900146484375, 0.006744384765625, 0.026275634765625, 0.0030841827392578125, -0.069091796875, -0.01441192626953125, -0.02288818359375, 0.003849029541015625, -0.026641845703125, 0.0361328125, 0.0643310546875, -0.023712158203125, -0.0826416015625, 0.09033203125, -0.038909912109375, -0.023406982421875, -0.03485107421875, -0.01291656494140625, 0.02545166015625, -0.0219268798828125, -0.02001953125, 0.010589599609375, -0.064697265625, -0.004467010498046875, 0.0291290283203125, -0.04937744140625, 0.050079345703125, 0.025787353515625, -0.1353759765625, -0.0204315185546875, -0.0452880859375, -0.0013437271118164062, 0.002964019775390625, -0.0201873779296875, 0.04205322265625, 0.053863525390625, -0.00717926025390625, -0.024505615234375, 0.003932952880859375, -0.038177490234375, -0.0092620849609375, 0.00484466552734375, -0.023956298828125, 0.0008912086486816406, 0.041259765625, 0.04107666015625, 0.0134124755859375, -0.0309295654296875, -0.01050567626953125, -0.025970458984375, 0.0007419586181640625, -0.045654296875, 0.0220489501953125, -0.09454345703125, -0.035003662109375, 0.018218994140625, -0.0123443603515625, 0.01544952392578125, 0.01412200927734375, -0.004062652587890625, -0.01512908935546875, 0.0352783203125, -0.0428466796875, 0.0297393798828125, -0.0304412841796875, 0.003383636474609375, -0.02593994140625, -0.06451416015625, -0.021148681640625, 0.03216552734375, -0.05853271484375, -0.04864501953125, -0.03021240234375, 0.0234222412109375, 0.030914306640625, 0.01332855224609375, 0.039337158203125, -0.0125274658203125, 0.03497314453125, 0.0377197265625, -0.00772857666015625, 0.01788330078125, 0.005077362060546875, 0.01555633544921875, -0.02313232421875, 0.02239990234375, 0.0015611648559570312, 0.01934814453125, 0.00009828805923461914, 0.0224761962890625, -0.0202789306640625, 0.046051025390625, 0.01361083984375, -0.02264404296875, 0.03387451171875, -0.01232147216796875, -0.0078582763671875, 0.01239013671875, -0.023193359375, -0.037811279296875, 0.03460693359375, 0.05816650390625, -0.01422882080078125, 0.021636962890625 ]
447e8b81e6ebef3ceb0432a61f8b52605aad117b
Wordpress Stackexchange Q: How to set global variable in functions.php I want to be able to echo the URL of the featured image of a post and after looking some on the web I found the following which works fine when I put it in a loop in my front page template. <?php $thumbSmall = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'small' ); $urlSmall = $thumbSmall['0']; ?> <?php echo $urlSmall; ?> However, want to use variable $urlSmall in other places than in the front page template, and this is where my limited coding skills let me down. I tried to just copy paste wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'small' ); $urlSmall = $thumbSmall['0']; into my functions.php but that did not work. I need these variables to be globally recognized. What do I do here? write some kind of function? A: You can turn your snippet into a function that returns the post thumbnail URL of a post: function wpse81577_get_small_thumb_url( $post_id ) { $thumbSmall = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'small' ); return $thumbSmall['0']; } Usage, supplying the ID of a post: <?php echo wpse81577_get_small_thumb_url( 59 ); ?>
Q: How to set global variable in functions.php I want to be able to echo the URL of the featured image of a post and after looking some on the web I found the following which works fine when I put it in a loop in my front page template. <?php $thumbSmall = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'small' ); $urlSmall = $thumbSmall['0']; ?> <?php echo $urlSmall; ?> However, want to use variable $urlSmall in other places than in the front page template, and this is where my limited coding skills let me down. I tried to just copy paste wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'small' ); $urlSmall = $thumbSmall['0']; into my functions.php but that did not work. I need these variables to be globally recognized. What do I do here? write some kind of function? A: You can turn your snippet into a function that returns the post thumbnail URL of a post: function wpse81577_get_small_thumb_url( $post_id ) { $thumbSmall = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'small' ); return $thumbSmall['0']; } Usage, supplying the ID of a post: <?php echo wpse81577_get_small_thumb_url( 59 ); ?> A: Pure PHP question, really. global $urlSmall; $urlSmall = $thumbSmall['0']; If you declare the variable with the global keyword when you initialize it it will be available thereafter. You can imprort it, so to speak, with... global $urlSmall; var_dump($urlSmall); You can do the same thing by assigning key/values directly to the $GLOBALS array. $GLOBALS['urlSmall'] = $thumbSmall['0']; That seems to be the most direct answer to the question: I need these variables to be globally recognized. What do I do here? There may be better ways to handle the data though.
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:427805", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81577" }
[ 0.052459716796875, -0.02886962890625, 0.00820159912109375, -0.03692626953125, 0.00389862060546875, -0.03033447265625, 0.030181884765625, -0.00678253173828125, 0.028167724609375, -0.00727081298828125, 0.00740814208984375, -0.0258636474609375, -0.036773681640625, -0.0377197265625, -0.0145263671875, -0.00768280029296875, 0.0596923828125, -0.056884765625, 0.012542724609375, 0.0096435546875, 0.00811767578125, 0.048858642578125, 0.01273345947265625, 0.007686614990234375, 0.0379638671875, -0.017333984375, 0.017974853515625, -0.004940032958984375, -0.0029621124267578125, -0.022125244140625, 0.01904296875, 0.0065765380859375, 0.0150604248046875, -0.0195770263671875, 0.0360107421875, 0.018585205078125, 0.01013946533203125, -0.00038552284240722656, 0.006317138671875, 0.013153076171875, 0.032318115234375, -0.01325225830078125, -0.00939178466796875, -0.00040149688720703125, -0.0158233642578125, -0.019439697265625, 0.01309967041015625, -0.046234130859375, -0.0229949951171875, 0.035614013671875, 0.02294921875, 0.0206146240234375, 0.02337646484375, -0.00543975830078125, 0.0232391357421875, 0.01256561279296875, -0.0192108154296875, -0.038177490234375, 0.034637451171875, 0.0309295654296875, -0.01317596435546875, -0.01512908935546875, 0.0287933349609375, -0.03802490234375, 0.0156707763671875, 0.0076141357421875, -0.005126953125, 0.02459716796875, 0.0035572052001953125, 0.005168914794921875, -0.011444091796875, -0.0106201171875, -0.01042938232421875, -0.019683837890625, -0.00424957275390625, 0.01300048828125, 0.004390716552734375, -0.0194091796875, 0.00934600830078125, 0.0115814208984375, 0.0053558349609375, -0.057037353515625, -0.0274810791015625, 0.040130615234375, 0.007534027099609375, 0.06951904296875, -0.007129669189453125, -0.033538818359375, -0.0167236328125, -0.035125732421875, -0.01204681396484375, -0.0068359375, -0.0194854736328125, 0.0039520263671875, -0.0211029052734375, -0.037200927734375, 0.039520263671875, 0.06085205078125, -0.00981903076171875, -0.01045989990234375, -0.010284423828125, -0.031341552734375, 0.010101318359375, -0.033294677734375, 0.00640869140625, 0.0382080078125, -0.0024700164794921875, 0.0095367431640625, 0.02362060546875, 0.013397216796875, -0.00344085693359375, 0.002826690673828125, 0.00049591064453125, 0.04608154296875, -0.0496826171875, -0.0367431640625, -0.07696533203125, 0.0003981590270996094, -0.03778076171875, 0.01708984375, -0.0022792816162109375, -0.01342010498046875, 0.043975830078125, 0.0128631591796875, -0.0007596015930175781, -0.001628875732421875, -0.03289794921875, -0.03973388671875, -0.0204925537109375, 0.034576416015625, -0.039337158203125, 0.01629638671875, 0.07012939453125, 0.020843505859375, 0.006641387939453125, -0.012725830078125, -0.0261383056640625, -0.0006380081176757812, -0.0081787109375, 0.0252685546875, -0.0226287841796875, -0.0268096923828125, 0.03607177734375, -0.011566162109375, 0.0157470703125, 0.0220794677734375, 0.02679443359375, 0.01551055908203125, -0.0021152496337890625, -0.0635986328125, 0.0237579345703125, -0.004482269287109375, 0.006816864013671875, 0.0238800048828125, -0.0030803680419921875, -0.020233154296875, 0.03961181640625, -0.0322265625, 0.010101318359375, -0.0386962890625, 0.03033447265625, 0.0057525634765625, -0.0289306640625, 0.0145721435546875, 0.0069580078125, -0.01294708251953125, 0.009429931640625, 0.02337646484375, 0.007686614990234375, 0.055816650390625, -0.0030059814453125, 0.02197265625, -0.035980224609375, 0.00911712646484375, -0.0013418197631835938, -0.0169830322265625, -0.006786346435546875, 0.005916595458984375, 0.03045654296875, 0.005340576171875, -0.0274505615234375, -0.046051025390625, 0.042755126953125, -0.0302276611328125, -0.03326416015625, 0.0013217926025390625, -0.01049041748046875, 0.0021419525146484375, 0.053192138671875, 0.00897216796875, 0.00711822509765625, 0.0030994415283203125, -0.04046630859375, 0.0672607421875, -0.01482391357421875, -0.00962066650390625, -0.023895263671875, 0.0172882080078125, -0.024627685546875, -0.023834228515625, 0.033905029296875, 0.017059326171875, 0.024322509765625, 0.01055908203125, -0.02978515625, 0.02825927734375, -0.01708984375, 0.020263671875, -0.01216888427734375, 0.05145263671875, 0.022613525390625, 0.0380859375, -0.03070068359375, -0.032196044921875, 0.01027679443359375, 0.03094482421875, -0.0113983154296875, 0.03668212890625, -0.046142578125, 0.06671142578125, -0.061187744140625, -0.0202484130859375, -0.043243408203125, 0.00701904296875, 0.021728515625, 0.018798828125, -0.043670654296875, -0.0113372802734375, -0.038177490234375, 0.0226287841796875, -0.09564208984375, 0.0435791015625, -0.047698974609375, -0.0270538330078125, -0.01904296875, 0.0020771026611328125, -0.0101470947265625, -0.064208984375, 0.01529693603515625, 0.047607421875, 0.0517578125, 0.06390380859375, -0.00714111328125, -0.036895751953125, 0.076904296875, -0.0162811279296875, 0.0192718505859375, -0.04864501953125, 0.0016460418701171875, 0.0096435546875, 0.0089874267578125, -0.0193023681640625, 0.01904296875, -0.039093017578125, 0.01287841796875, 0.0301055908203125, -0.01145172119140625, 0.01058197021484375, -0.0196075439453125, 0.0396728515625, -0.0265350341796875, 0.05126953125, 0.0264129638671875, 0.0012912750244140625, 0.01049041748046875, 0.0243682861328125, 0.017669677734375, 0.0076446533203125, -0.045501708984375, 0.0292205810546875, 0.020355224609375, 0.004489898681640625, -0.016204833984375, -0.009796142578125, 0.0258941650390625, -0.044097900390625, -0.0006814002990722656, 0.00817108154296875, -0.0149993896484375, -0.03369140625, -0.0142974853515625, 0.02081298828125, -0.03277587890625, -0.00156402587890625, -0.03228759765625, -0.06884765625, 0.01727294921875, 0.0249176025390625, 0.01317596435546875, -0.006290435791015625, 0.0244140625, 0.006580352783203125, -0.0196075439453125, 0.039764404296875, -0.01776123046875, -0.0145721435546875, 0.059661865234375, -0.03240966796875, 0.0234222412109375, -0.0298004150390625, 0.09442138671875, 0.053192138671875, -0.037811279296875, 0.0237274169921875, -0.0177764892578125, -0.015411376953125, -0.03216552734375, 0.016876220703125, 0.001453399658203125, -0.026458740234375, -0.0175933837890625, 0.050537109375, -0.00044226646423339844, 0.059295654296875, -0.058624267578125, -0.045074462890625, -0.0222625732421875, -0.0014677047729492188, -0.1112060546875, -0.0953369140625, -0.0034847259521484375, -0.0950927734375, 0.01458740234375, 0.0036296844482421875, -0.04827880859375, -0.01233673095703125, 0.04998779296875, 0.00914764404296875, 0.0374755859375, -0.0296478271484375, -0.07098388671875, -0.028106689453125, -0.08404541015625, -0.0093841552734375, -0.012603759765625, 0.020843505859375, -0.0009336471557617188, 0.0186767578125, 0.01076507568359375, -0.0147247314453125, 0.0167999267578125, 0.049285888671875, 0.01012420654296875, -0.0183563232421875, -0.00876617431640625, -0.0015344619750976562, -0.042877197265625, 0.01418304443359375, 0.0263519287109375, -0.0029621124267578125, -0.00989532470703125, -0.0033168792724609375, -0.0137176513671875, 0.031951904296875, 0.029937744140625, 0.03607177734375, 0.015228271484375, 0.049591064453125, 0.03704833984375, -0.0124969482421875, -0.042266845703125, -0.049163818359375, -0.062286376953125, 0.049957275390625, 0.0531005859375, 0.009613037109375, -0.029998779296875, 0.0389404296875, -0.0011758804321289062, -0.003513336181640625, 0.0202178955078125, -0.020660400390625, 0.055450439453125, -0.01275634765625, 0.002315521240234375, -0.03704833984375, 0.0150909423828125, -0.01543426513671875, -0.0007071495056152344, 0.00376129150390625, 0.0202484130859375, 0.0068511962890625, 0.00885009765625, -0.01036834716796875, 0.0032405853271484375, 0.027099609375, -0.0024089813232421875, 0.0296630859375, -0.0222320556640625, -0.0282440185546875, -0.0279083251953125, 0.0338134765625, -0.060211181640625, -0.011962890625, 0.00966644287109375, 0.01126861572265625, -0.027496337890625, -0.057403564453125, -0.055328369140625, -0.01340484619140625, -0.059967041015625, 0.00890350341796875, 0.016571044921875, -0.0193634033203125, -0.0175933837890625, 0.04388427734375, -0.046600341796875, -0.036865234375, 0.036285400390625, 0.0001838207244873047, -0.0014905929565429688, 0.048187255859375, -0.03485107421875, 0.057373046875, -0.0479736328125, 0.007579803466796875, -0.08575439453125, -0.0283050537109375, 0.025848388671875, 0.0916748046875, -0.00635528564453125, -0.044403076171875, -0.0227203369140625, 0.056671142578125, -0.0295562744140625, 0.00470733642578125, -0.035614013671875, 0.0214080810546875, -0.037261962890625, 0.0285186767578125, -0.01336669921875, 0.0164337158203125, -0.0028553009033203125, -0.0284881591796875, -0.05340576171875, -0.0246429443359375, -0.0159149169921875, 0.0251922607421875, 0.00876617431640625, -0.01377105712890625, -0.0616455078125, 0.0225067138671875, 0.06707763671875, 0.053619384765625, 0.00785064697265625, 0.018707275390625, 0.0020122528076171875, -0.053985595703125, 0.01580810546875, 0.0299530029296875, -0.034423828125, 0.00909423828125, 0.0179901123046875, 0.0209808349609375, -0.0261077880859375, -0.045013427734375, -0.0139923095703125, 0.038726806640625, 0.01611328125, 0.018341064453125, 0.041473388671875, -0.01442718505859375, -0.027008056640625, 0.02276611328125, 0.0103759765625, -0.042083740234375, 0.05792236328125, 0.0011005401611328125, -0.0156707763671875, 0.0190277099609375, 0.0014524459838867188, 0.0016021728515625, 0.00029587745666503906, -0.03228759765625, 0.00214385986328125, -0.0210113525390625, 0.0278778076171875, -0.0245513916015625, 0.057647705078125, -0.023773193359375, -0.00862884521484375, 0.00896453857421875, -0.0377197265625, 0.036285400390625, 0.004985809326171875, 0.002323150634765625, -0.0012578964233398438, 0.0147247314453125, 0.00864410400390625, 0.052734375, 0.0223388671875, 0.029632568359375, 0.042877197265625, 0.03240966796875, 0.01161956787109375, 0.0298919677734375, 0.0015316009521484375, -0.04217529296875, 0.00919342041015625, 0.00455474853515625, -0.0474853515625, 0.00968170166015625, 0.0148468017578125, -0.03607177734375, -0.034912109375, 0.043975830078125, 0.027587890625, -0.0164031982421875, -0.02362060546875, -0.03582763671875, -0.0147857666015625, -0.04705810546875, 0.05975341796875, 0.02801513671875, 0.00534820556640625, 0.020843505859375, 0.0654296875, 0.028472900390625, 0.028228759765625, -0.0301361083984375, -0.01480865478515625, -0.0003917217254638672, 0.01297760009765625, 0.0008182525634765625, 0.0308990478515625, -0.02008056640625, 0.019805908203125, 0.0499267578125, -0.032012939453125, 0.01186370849609375, 0.0291290283203125, 0.02984619140625, 0.0071868896484375, -0.02056884765625, 0.006805419921875, 0.00896453857421875, -0.0157928466796875, 0.031951904296875, -0.0224609375, -0.0458984375, -0.020751953125, 0.00365447998046875, 0.051727294921875, -0.0304107666015625, -0.0260162353515625, -0.0027370452880859375, -0.024505615234375, 0.040985107421875, 0.0012178421020507812, -0.0167999267578125, 0.039398193359375, 0.03167724609375, -0.042694091796875, -0.011322021484375, -0.004299163818359375, 0.0182647705078125, -0.01348114013671875, -0.0223388671875, -0.0284576416015625, 0.059356689453125, -0.025238037109375, 0.033843994140625, -0.0200347900390625, -0.031524658203125, -0.043182373046875, -0.00350189208984375, 0.0819091796875, 0.06787109375, -0.0538330078125, 0.0037097930908203125, -0.0227203369140625, 0.021636962890625, 0.06939697265625, -0.004070281982421875, -0.0247039794921875, -0.03118896484375, -0.004718780517578125, 0.03619384765625, -0.0198211669921875, 0.00455474853515625, 0.034637451171875, 0.007495880126953125, -0.0322265625, 0.0693359375, 0.0026378631591796875, 0.015655517578125, 0.0226287841796875, 0.01515960693359375, 0.00460052490234375, 0.005039215087890625, -0.0310211181640625, -0.01959228515625, -0.0244293212890625, -0.033935546875, 0.0128326416015625, 0.006084442138671875, 0.0227508544921875, -0.001529693603515625, 0.008087158203125, 0.011993408203125, -0.0025997161865234375, 0.0126495361328125, -0.00609588623046875, -0.0286712646484375, -0.020263671875, 0.0206146240234375, -0.00476837158203125, 0.004161834716796875, -0.05645751953125, -0.038604736328125, 0.011932373046875, 0.0216064453125, 0.0374755859375, -0.034393310546875, 0.0007123947143554688, 0.05621337890625, -0.024658203125, 0.052490234375, 0.121337890625, 0.01548004150390625, 0.065185546875, 0.0197296142578125, 0.0103912353515625, 0.0187835693359375, 0.048309326171875, -0.0250244140625, -0.0198211669921875, 0.06158447265625, 0.02154541015625, -0.052001953125, 0.01263427734375, -0.05059814453125, 0.0086212158203125, -0.0135345458984375, 0.023590087890625, 0.017547607421875, 0.00263214111328125, 0.024200439453125, -0.0259857177734375, 0.000232696533203125, 0.01885986328125, -0.0295257568359375, -0.0236968994140625, 0.043212890625, -0.0433349609375, -0.0253448486328125, 0.0013074874877929688, -0.0020923614501953125, 0.0035610198974609375, 0.002490997314453125, 0.0036792755126953125, 0.0022068023681640625, -0.05059814453125, 0.0050506591796875, 0.0259246826171875, 0.0003948211669921875, -0.0114288330078125, 0.03582763671875, -0.0003848075866699219, -0.01032257080078125, -0.044036865234375, 0.0166168212890625, 0.0234222412109375, -0.025177001953125, 0.033477783203125, -0.012847900390625, 0.01532745361328125, 0.01389312744140625, 0.006687164306640625, 0.01319122314453125, -0.0267181396484375, -0.026031494140625, 0.044281005859375, 0.006988525390625, 0.030426025390625, 0.0235137939453125, -0.039886474609375, 0.007259368896484375, -0.0203399658203125, -0.0002415180206298828, -0.019500732421875, 0.040557861328125, 0.1053466796875, -0.0289459228515625, -0.029266357421875, 0.0225677490234375, 0.04547119140625, -0.00821685791015625, -0.0153961181640625, 0.059173583984375, -0.058807373046875, -0.036224365234375, 0.016998291015625, -0.0168609619140625, -0.04180908203125, -0.03204345703125, -0.058868408203125, 0.06365966796875, -0.035186767578125, 0.062744140625, 0.014312744140625, 0.00257110595703125, 0.0106048583984375, -0.0011243820190429688, -0.01560211181640625, 0.029266357421875, -0.0277557373046875, -0.00885009765625, -0.036651611328125, 0.010711669921875, -0.014678955078125, 0.01959228515625, 0.0726318359375, 0.0208282470703125, -0.027252197265625, -0.0270538330078125, 0.0343017578125, 0.035797119140625, -0.0124664306640625, 0.0256805419921875, 0.0004303455352783203, 0.0133514404296875, 0.040618896484375, -0.0443115234375, 0.0290374755859375, -0.033966064453125, 0.0161895751953125, 0.012115478515625, 0.0205841064453125, 0.0213775634765625, 0.001556396484375, -0.012176513671875, -0.0653076171875, 0.00872802734375, 0.053619384765625, -0.03863525390625, 0.00548553466796875, 0.0154571533203125, -0.01006317138671875, 0.0322265625, -0.0268096923828125, 0.0241241455078125, 0.00827789306640625, 0.0017271041870117188, -0.021881103515625, 0.0299072265625, 0.0176544189453125, 0.0237579345703125, 0.0011720657348632812, -0.01410675048828125, 0.0166168212890625, 0.0308990478515625, 0.034820556640625, 0.032684326171875, 0.01605224609375, -0.032379150390625, 0.0102386474609375, 0.0667724609375, 0.049346923828125, -0.03497314453125, -0.0024700164794921875, 0.0248870849609375, 0.01519775390625, -0.0225982666015625, -0.0007891654968261719, 0.002834320068359375, -0.0031414031982421875, 0.0253753662109375, -0.0338134765625, 0.01428985595703125, 0.06488037109375, 0.02154541015625, 0.01194000244140625, 0.011383056640625, -0.0849609375, -0.0108184814453125, -0.0272064208984375, -0.0034542083740234375, 0.027435302734375, 0.034393310546875, 0.0013885498046875, 0.0301361083984375, 0.002071380615234375, 0.003742218017578125, -0.00931549072265625, 0.01580810546875, 0.0025386810302734375, 0.026123046875, -0.020111083984375, -0.0172576904296875, 0.013092041015625, 0.021942138671875, 0.016448974609375, -0.0206756591796875, 0.0274505615234375, 0.016693115234375, -0.0628662109375, -0.023345947265625, 0.007785797119140625, -0.02239990234375, 0.03179931640625, -0.024749755859375, 0.036834716796875, -0.002498626708984375, -0.01155853271484375, -0.0286407470703125, 0.0033550262451171875, 0.028289794921875, -0.0452880859375, 0.071533203125, -0.0164031982421875, -0.0293121337890625, 0.0219879150390625, -0.0218505859375, 0.0958251953125, -0.019744873046875, -0.040802001953125, 0.00045609474182128906, -0.036468505859375, -0.051910400390625, 0.0166778564453125, 0.01490020751953125, -0.0333251953125, 0.04833984375, -0.017547607421875, -0.0161285400390625, 0.00893402099609375, 0.0039825439453125, -0.0264739990234375, -0.027679443359375, 0.022735595703125, -0.0210113525390625, -0.03448486328125, -0.038055419921875, -0.028289794921875, 0.04168701171875, 0.02703857421875, 0.0139007568359375, 0.0028133392333984375, 0.03973388671875, -0.004695892333984375, 0.010498046875, -0.026397705078125, 0.0087890625, -0.00829315185546875, -0.0008912086486816406, 0.01275634765625, -0.01251220703125, -0.01248931884765625, 0.0269775390625, 0.01450347900390625, -0.027679443359375, 0.01279449462890625, -0.0219879150390625, 0.011474609375, 0.002002716064453125, 0.01180267333984375, -0.0121917724609375, -0.03564453125, -0.037139892578125, -0.01739501953125, 0.046478271484375, 0.06976318359375, 0.016876220703125, 0.04443359375, -0.0044708251953125, -0.0245513916015625, 0.04815673828125, -0.037384033203125, 0.0556640625, 0.037933349609375, -0.039520263671875, -0.018463134765625, -0.036590576171875, -0.0179901123046875, -0.032989501953125, 0.0167388916015625, -0.0036525726318359375, -0.02691650390625, 0.00243377685546875, -0.002552032470703125, 0.009063720703125, 0.0013103485107421875, -0.031036376953125, -0.0207366943359375, 0.052490234375, -0.0172119140625, -0.04913330078125, -0.01421356201171875, -0.0040283203125, -0.019866943359375, -0.0091094970703125, 0.00732421875, 0.0213165283203125, 0.004405975341796875, 0.0259552001953125, -0.0012912750244140625, 0.0123443603515625, 0.0212249755859375, -0.061676025390625, 0.029205322265625, 0.0259857177734375, 0.016693115234375, -0.0125579833984375, -0.0018663406372070312, 0.0007572174072265625, 0.0218048095703125, -0.0118408203125, -0.047882080078125, -0.0138092041015625, 0.051116943359375, -0.022186279296875, 0.048980712890625, 0.06805419921875, -0.0289764404296875, -0.0160064697265625, 0.052886962890625, 0.0234527587890625, 0.1055908203125, -0.0457763671875, -0.041778564453125, 0.022918701171875, -0.017181396484375, -0.006351470947265625, -0.053985595703125, -0.006927490234375, -0.06878662109375, 0.0175628662109375, 0.0031566619873046875, -0.004062652587890625, 0.01137542724609375, -0.0254669189453125, -0.045135498046875, 0.0158538818359375, -0.01151275634765625, -0.036773681640625, -0.005001068115234375, -0.0144805908203125, 0.006824493408203125, 0.03106689453125, 0.018951416015625, -0.0390625, -0.057342529296875, -0.006267547607421875, 0.041839599609375, -0.0291595458984375, 0.06341552734375, 0.0209197998046875, -0.043243408203125, 0.01404571533203125, 0.00505828857421875, 0.0006771087646484375, 0.00946807861328125, -0.0190277099609375, 0.040863037109375, 0.033843994140625, -0.0253448486328125, -0.01261138916015625, 0.019775390625, -0.01141357421875, -0.04541015625, -0.04327392578125, -0.027801513671875, 0.005718231201171875, 0.0916748046875, 0.06524658203125, 0.0176544189453125, -0.050048828125, -0.0241851806640625, -0.00041031837463378906, -0.1031494140625, -0.01629638671875, 0.054473876953125, -0.06793212890625, 0.0006775856018066406, -0.0343017578125, -0.0036067962646484375, 0.03271484375, -0.014251708984375, -0.00832366943359375, -0.00823211669921875, -0.00689697265625, -0.00937652587890625, -0.06622314453125, 0.0004177093505859375, 0.05841064453125, -0.05316162109375, -0.0203857421875, -0.00994110107421875, 0.01238250732421875, 0.012847900390625, -0.056396484375, -0.03167724609375, 0.031524658203125, -0.03216552734375, 0.003314971923828125, -0.0006322860717773438, -0.00013720989227294922, -0.006084442138671875, 0.0180511474609375, -0.01406097412109375, 0.02337646484375, 0.00030040740966796875, 0.02239990234375, 0.01296234130859375, 0.0200042724609375, 0.016143798828125, 0.0163116455078125, -0.0107574462890625, 0.02276611328125, 0.016204833984375, 0.002124786376953125, -0.0164794921875, 0.00008755922317504883, 0.021759033203125, -0.0290985107421875, -0.0009617805480957031, 0.036529541015625, -0.0396728515625, -0.002368927001953125, -0.0167388916015625, -0.0166778564453125, 0.0006356239318847656, -0.019622802734375 ]
d61e1cc5ee6fb9f6a6e5ea6a4b8708fba18600f6
Wordpress Stackexchange Q: How can i list current author's categories? My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" SELECT DISTINCT(terms.term_id) as ID, terms.name, terms.slug FROM $wpdb->posts as posts LEFT JOIN $wpdb->term_relationships as relationships ON posts.ID = relationships.object_ID LEFT JOIN $wpdb->term_taxonomy as tax ON relationships.term_taxonomy_id = tax.term_taxonomy_id LEFT JOIN $wpdb->terms as terms ON tax.term_id = terms.term_id WHERE 1=1 AND ( posts.post_status = 'publish' AND posts.post_author = '2' AND tax.taxonomy = 'category' ) ORDER BY terms.name ASC "); ?> <ul> <?php foreach($categories as $category) : ?> <li> <a href="<?php echo get_category_link( $category->ID ); ?>" title="<?php echo $category->name ?>"><?php echo $category->name ?></a> </li> <?php endforeach; ?> </ul> A: try something like this... you need to first call global $post; then get the author id like $author_id = $post->post_author;
Q: How can i list current author's categories? My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" SELECT DISTINCT(terms.term_id) as ID, terms.name, terms.slug FROM $wpdb->posts as posts LEFT JOIN $wpdb->term_relationships as relationships ON posts.ID = relationships.object_ID LEFT JOIN $wpdb->term_taxonomy as tax ON relationships.term_taxonomy_id = tax.term_taxonomy_id LEFT JOIN $wpdb->terms as terms ON tax.term_id = terms.term_id WHERE 1=1 AND ( posts.post_status = 'publish' AND posts.post_author = '2' AND tax.taxonomy = 'category' ) ORDER BY terms.name ASC "); ?> <ul> <?php foreach($categories as $category) : ?> <li> <a href="<?php echo get_category_link( $category->ID ); ?>" title="<?php echo $category->name ?>"><?php echo $category->name ?></a> </li> <?php endforeach; ?> </ul> A: try something like this... you need to first call global $post; then get the author id like $author_id = $post->post_author;
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:427816", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81599" }
[ 0.03753662109375, 0.0202178955078125, -0.021942138671875, -0.03900146484375, 0.048126220703125, -0.0273895263671875, 0.0189666748046875, -0.0034694671630859375, -0.006671905517578125, 0.03692626953125, -0.01110076904296875, 0.01297760009765625, -0.0140533447265625, -0.0203857421875, -0.0227203369140625, -0.02313232421875, 0.039215087890625, -0.0174407958984375, 0.048004150390625, 0.00786590576171875, -0.006908416748046875, 0.02447509765625, 0.054656982421875, 0.036224365234375, 0.017822265625, -0.059600830078125, 0.0736083984375, -0.036468505859375, 0.020843505859375, -0.046112060546875, 0.018585205078125, 0.01512908935546875, -0.01309967041015625, 0.0225067138671875, 0.0048675537109375, 0.04443359375, -0.005321502685546875, 0.033203125, 0.0428466796875, 0.0243072509765625, 0.033355712890625, -0.0258026123046875, -0.045562744140625, -0.00232696533203125, -0.037200927734375, -0.057464599609375, 0.050811767578125, 0.0079345703125, 0.030120849609375, 0.004795074462890625, 0.006275177001953125, 0.023712158203125, 0.006870269775390625, -0.01324462890625, -0.037384033203125, -0.00909423828125, 0.0261077880859375, -0.040008544921875, 0.04833984375, -0.05780029296875, -0.044830322265625, -0.040985107421875, 0.0660400390625, 0.0155181884765625, 0.0218353271484375, 0.0115509033203125, 0.08123779296875, 0.049346923828125, 0.002620697021484375, -0.007232666015625, -0.0187225341796875, -0.00896453857421875, -0.01097869873046875, 0.0204315185546875, -0.046875, -0.051544189453125, 0.015594482421875, -0.056854248046875, -0.0006098747253417969, 0.03814697265625, -0.0061798095703125, 0.023193359375, -0.07086181640625, -0.0006923675537109375, 0.006561279296875, 0.0290985107421875, -0.017242431640625, -0.032257080078125, -0.03466796875, -0.00582122802734375, -0.0169830322265625, -0.038330078125, -0.0511474609375, 0.0239715576171875, 0.035980224609375, -0.047027587890625, 0.0528564453125, 0.0797119140625, -0.02197265625, -0.0105743408203125, -0.015655517578125, -0.0144500732421875, -0.0247650146484375, -0.0294036865234375, 0.0191802978515625, 0.04400634765625, -0.0201416015625, 0.01227569580078125, 0.058319091796875, 0.03057861328125, 0.025604248046875, -0.0233612060546875, -0.00453948974609375, -0.01593017578125, -0.0175018310546875, -0.0002810955047607422, -0.047943115234375, 0.0233154296875, 0.01029205322265625, -0.00824737548828125, -0.004299163818359375, 0.034820556640625, -0.017242431640625, 0.015869140625, 0.006687164306640625, 0.0103302001953125, -0.0090789794921875, -0.024688720703125, 0.0155792236328125, -0.00995635986328125, -0.05230712890625, 0.01084136962890625, 0.08319091796875, 0.042572021484375, 0.019012451171875, -0.0240020751953125, 0.0036983489990234375, -0.028289794921875, 0.0187225341796875, -0.00809478759765625, -0.0147552490234375, -0.0090484619140625, 0.0193939208984375, -0.016204833984375, 0.0024871826171875, 0.014892578125, -0.0023040771484375, 0.01447296142578125, -0.00814056396484375, -0.002506256103515625, 0.0233612060546875, -0.039093017578125, 0.0377197265625, 0.0037899017333984375, 0.010498046875, -0.0179290771484375, 0.037017822265625, -0.034393310546875, -0.012115478515625, -0.043975830078125, 0.05291748046875, -0.0027256011962890625, 0.0070037841796875, -0.032440185546875, -0.05865478515625, -0.004627227783203125, -0.0804443359375, -0.0133819580078125, 0.01383209228515625, -0.0014028549194335938, 0.00833892822265625, -0.044158935546875, -0.000043451786041259766, 0.0213470458984375, -0.00957489013671875, 0.034637451171875, -0.0310821533203125, -0.0281982421875, 0.0270843505859375, 0.04876708984375, -0.0062713623046875, -0.0233612060546875, -0.0273895263671875, 0.00998687744140625, -0.0347900390625, 0.05908203125, 0.00473785400390625, 0.09454345703125, 0.00782012939453125, 0.0083465576171875, 0.0024013519287109375, 0.0186004638671875, -0.036529541015625, -0.00931549072265625, 0.0122528076171875, -0.00514984130859375, -0.01549530029296875, -0.00039768218994140625, 0.001918792724609375, -0.0026912689208984375, 0.0231475830078125, 0.007488250732421875, 0.0014982223510742188, -0.00495147705078125, -0.060272216796875, 0.0223541259765625, -0.0170745849609375, 0.040740966796875, 0.0300750732421875, -0.0142669677734375, 0.012481689453125, -0.0068206787109375, -0.0279388427734375, -0.015777587890625, -0.051788330078125, 0.032379150390625, 0.007022857666015625, 0.0008606910705566406, 0.004398345947265625, 0.0235595703125, -0.0025882720947265625, 0.014801025390625, -0.004306793212890625, 0.0221710205078125, 0.038726806640625, -0.03216552734375, -0.01256561279296875, -0.056488037109375, -0.0005393028259277344, -0.0020694732666015625, -0.0589599609375, 0.016815185546875, 0.04296875, 0.04998779296875, -0.02801513671875, 0.0011444091796875, 0.0229949951171875, -0.01029205322265625, -0.00441741943359375, 0.02728271484375, 0.03192138671875, -0.01500701904296875, -0.010772705078125, -0.00701141357421875, 0.04644775390625, -0.0204925537109375, 0.0002391338348388672, -0.024505615234375, 0.0266265869140625, 0.04705810546875, 0.025634765625, -0.0026111602783203125, 0.022979736328125, -0.0223541259765625, 0.027435302734375, 0.0469970703125, -0.0118865966796875, 0.00982666015625, -0.01410675048828125, 0.00759124755859375, -0.004604339599609375, -0.046905517578125, -0.01204681396484375, -0.0289764404296875, 0.036651611328125, -0.0118255615234375, 0.034942626953125, 0.017486572265625, -0.017333984375, -0.04437255859375, 0.0007014274597167969, 0.026519775390625, 0.0147857666015625, 0.0262451171875, -0.05596923828125, -0.021636962890625, -0.0045318603515625, 0.0098419189453125, -0.0086669921875, -0.00771331787109375, 0.0015287399291992188, 0.03668212890625, 0.00971221923828125, -0.00795745849609375, -0.0202484130859375, -0.04779052734375, 0.0064239501953125, 0.0090789794921875, -0.027252197265625, -0.0066070556640625, 0.01247406005859375, 0.042724609375, -0.0172119140625, 0.037933349609375, -0.03338623046875, 0.0156707763671875, 0.038482666015625, -0.04998779296875, 0.044219970703125, -0.01306915283203125, 0.048828125, 0.05963134765625, 0.020355224609375, 0.0185089111328125, -0.01007080078125, -0.0161590576171875, -0.007396697998046875, 0.006450653076171875, -0.0102386474609375, -0.0238037109375, -0.005252838134765625, 0.032073974609375, 0.0242462158203125, 0.055023193359375, -0.0015401840209960938, -0.04931640625, 0.0032482147216796875, 0.03363037109375, -0.04443359375, -0.055023193359375, 0.029693603515625, -0.0321044921875, 0.006809234619140625, -0.0120697021484375, -0.0150299072265625, -0.031768798828125, 0.005176544189453125, -0.00759124755859375, 0.025390625, -0.06256103515625, -0.09722900390625, -0.0799560546875, -0.11199951171875, -0.01216888427734375, -0.01172637939453125, 0.00734710693359375, -0.0024204254150390625, 0.03765869140625, -0.00426483154296875, -0.05364990234375, -0.03961181640625, 0.041839599609375, -0.006282806396484375, -0.021087646484375, -0.02130126953125, 0.0408935546875, -0.00502777099609375, 0.0184173583984375, 0.009307861328125, 0.0085601806640625, -0.0175933837890625, -0.021942138671875, 0.016326904296875, 0.05120849609375, 0.046630859375, 0.010009765625, -0.023773193359375, 0.06219482421875, 0.03717041015625, -0.01222991943359375, 0.00623321533203125, -0.01415252685546875, -0.0229644775390625, -0.0052032470703125, -0.02178955078125, -0.004680633544921875, -0.0193023681640625, 0.0196533203125, -0.001514434814453125, 0.01380157470703125, -0.01230621337890625, -0.0247955322265625, 0.0313720703125, 0.0167083740234375, 0.02545166015625, 0.0230712890625, -0.006320953369140625, -0.01314544677734375, 0.00798797607421875, -0.01190948486328125, 0.034759521484375, -0.00966644287109375, 0.0011806488037109375, -0.03509521484375, -0.058746337890625, 0.046783447265625, -0.002025604248046875, -0.024932861328125, -0.006805419921875, -0.0215911865234375, 0.0175933837890625, 0.07012939453125, -0.014251708984375, -0.0367431640625, 0.027374267578125, 0.0261077880859375, -0.054443359375, -0.01248931884765625, -0.04345703125, -0.0207977294921875, -0.047515869140625, 0.02923583984375, 0.00420379638671875, -0.0016956329345703125, -0.0328369140625, 0.07012939453125, -0.044891357421875, -0.01396942138671875, 0.032562255859375, -0.03106689453125, -0.004787445068359375, 0.0183563232421875, -0.01012420654296875, 0.0037059783935546875, -0.026611328125, -0.01971435546875, -0.046966552734375, -0.0175018310546875, -0.002716064453125, 0.04058837890625, -0.0156707763671875, 0.028350830078125, -0.0311431884765625, 0.042388916015625, -0.013946533203125, 0.006038665771484375, 0.0129852294921875, 0.01422882080078125, 0.0180816650390625, 0.0030879974365234375, 0.01445770263671875, -0.022064208984375, -0.00928497314453125, -0.0192108154296875, -0.0155181884765625, -0.0185546875, -0.049591064453125, -0.03643798828125, -0.036102294921875, -0.0182037353515625, -0.08575439453125, -0.043487548828125, -0.004520416259765625, 0.018951416015625, -0.02215576171875, 0.0267791748046875, -0.03338623046875, -0.0853271484375, 0.059722900390625, -0.0025653839111328125, -0.01116943359375, -0.0009927749633789062, 0.07275390625, 0.011871337890625, -0.023895263671875, -0.033782958984375, -0.00870513916015625, 0.0172119140625, -0.01336669921875, 0.025848388671875, 0.004276275634765625, -0.034332275390625, 0.0550537109375, -0.0095977783203125, -0.00687408447265625, -0.0161895751953125, 0.05035400390625, -0.00984954833984375, -0.00823974609375, 0.0146026611328125, -0.0242919921875, 0.0296173095703125, 0.0176544189453125, -0.0214996337890625, 0.0204315185546875, 0.00849151611328125, 0.031036376953125, -0.01331329345703125, -0.0182342529296875, -0.035919189453125, -0.03472900390625, -0.004913330078125, 0.0222320556640625, 0.07025146484375, 0.035491943359375, 0.003932952880859375, 0.054718017578125, 0.038665771484375, -0.0012979507446289062, -0.0244903564453125, -0.044281005859375, 0.00926971435546875, 0.01354217529296875, -0.045318603515625, -0.0008916854858398438, 0.0164031982421875, -0.0120697021484375, 0.06463623046875, 0.0170440673828125, -0.031707763671875, 0.0207366943359375, -0.022125244140625, -0.002223968505859375, -0.0001398324966430664, -0.0192413330078125, 0.0297088623046875, 0.0233612060546875, -0.0046844482421875, 0.020233154296875, -0.0595703125, 0.007808685302734375, -0.0258331298828125, 0.00763702392578125, -0.0008358955383300781, 0.01102447509765625, 0.0003161430358886719, 0.0987548828125, 0.00838470458984375, 0.060577392578125, -0.032470703125, 0.051116943359375, -0.0202178955078125, 0.0450439453125, 0.02288818359375, -0.021453857421875, 0.0261993408203125, -0.0088043212890625, -0.0246429443359375, -0.03326416015625, 0.0263519287109375, -0.005817413330078125, 0.0302886962890625, 0.0203704833984375, -0.03424072265625, 0.038787841796875, -0.0374755859375, -0.004222869873046875, 0.018463134765625, 0.0253143310546875, -0.01219940185546875, -0.01314544677734375, 0.005214691162109375, 0.0001933574676513672, 0.00287628173828125, -0.0291900634765625, 0.0004706382751464844, -0.03204345703125, 0.0266571044921875, 0.00008994340896606445, 0.000591278076171875, 0.002223968505859375, 0.0118865966796875, -0.0406494140625, -0.0015783309936523438, 0.028533935546875, -0.01357269287109375, -0.00959014892578125, -0.035064697265625, -0.032928466796875, 0.06488037109375, 0.01849365234375, 0.03289794921875, -0.054351806640625, -0.00653076171875, 0.0264892578125, -0.03363037109375, 0.11083984375, 0.055145263671875, -0.0360107421875, -0.007648468017578125, -0.038604736328125, 0.00290679931640625, 0.04058837890625, -0.021942138671875, -0.0155029296875, -0.02935791015625, 0.0357666015625, 0.00881195068359375, 0.01837158203125, -0.042999267578125, -0.034637451171875, -0.005931854248046875, 0.0275726318359375, -0.0249176025390625, 0.0051116943359375, 0.05902099609375, 0.01849365234375, 0.054046630859375, 0.01364898681640625, 0.0225677490234375, -0.056884765625, -0.021270751953125, -0.005859375, -0.06427001953125, -0.01435089111328125, 0.00994110107421875, -0.046966552734375, 0.0143890380859375, 0.019073486328125, 0.00943756103515625, 0.0142669677734375, 0.0081939697265625, 0.00896453857421875, -0.0014925003051757812, -0.0618896484375, 0.0335693359375, -0.0095367431640625, 0.02642822265625, -0.0169677734375, 0.00872802734375, -0.020233154296875, -0.00614166259765625, -0.01120758056640625, -0.0218963623046875, -0.020111083984375, 0.056365966796875, -0.00901031494140625, 0.040435791015625, 0.06396484375, 0.004840850830078125, 0.0435791015625, 0.049591064453125, 0.033935546875, 0.00711822509765625, 0.001708984375, 0.01390838623046875, 0.033935546875, 0.05682373046875, 0.006923675537109375, 0.0023326873779296875, 0.031646728515625, -0.0305328369140625, -0.023345947265625, -0.0005431175231933594, 0.035400390625, -0.006816864013671875, 0.0080108642578125, 0.03948974609375, -0.004852294921875, -0.0335693359375, 0.023468017578125, -0.035400390625, -0.0462646484375, 0.045318603515625, -0.0225067138671875, -0.003246307373046875, 0.0211181640625, 0.00553131103515625, 0.006938934326171875, -0.020751953125, 0.0623779296875, 0.020904541015625, -0.03466796875, -0.0012121200561523438, 0.0188446044921875, 0.00579071044921875, -0.0263671875, -0.00991058349609375, -0.0030117034912109375, 0.00872802734375, -0.026336669921875, 0.06982421875, -0.0286407470703125, 0.030517578125, 0.0019664764404296875, 0.01314544677734375, -0.00534820556640625, 0.01422882080078125, 0.0024394989013671875, -0.004161834716796875, 0.002437591552734375, -0.045074462890625, 0.0080108642578125, -0.01313018798828125, -0.0085906982421875, 0.04498291015625, -0.0357666015625, 0.0145111083984375, -0.0150909423828125, 0.01107025146484375, -0.00579833984375, -0.0399169921875, 0.044158935546875, -0.034210205078125, -0.009857177734375, 0.006763458251953125, 0.0543212890625, 0.0104827880859375, 0.0239410400390625, 0.0152740478515625, -0.0662841796875, -0.0302734375, 0.03265380859375, -0.009429931640625, 0.018096923828125, 0.012054443359375, -0.06414794921875, 0.0272064208984375, -0.044921875, 0.03887939453125, 0.019622802734375, -0.0012788772583007812, -0.00001537799835205078, -0.02996826171875, -0.04766845703125, 0.050262451171875, 0.01407623291015625, 0.0112457275390625, -0.050689697265625, -0.01739501953125, -0.0035724639892578125, 0.029266357421875, 0.08038330078125, 0.01490020751953125, -0.021514892578125, -0.008331298828125, 0.015899658203125, -0.01155853271484375, -0.059173583984375, 0.06671142578125, 0.002040863037109375, -0.019439697265625, 0.040618896484375, -0.001373291015625, 0.037872314453125, 0.0018987655639648438, -0.01486968994140625, 0.0237274169921875, 0.0243988037109375, 0.04095458984375, -0.0518798828125, -0.01910400390625, -0.00730133056640625, -0.040863037109375, 0.01168060302734375, -0.0240325927734375, -0.002773284912109375, 0.056884765625, 0.06793212890625, -0.042510986328125, 0.006458282470703125, -0.037109375, 0.06756591796875, 0.0322265625, 0.02020263671875, 0.045745849609375, 0.030029296875, 0.051483154296875, 0.0041351318359375, 0.031646728515625, 0.006633758544921875, -0.0163726806640625, 0.055694580078125, 0.0227203369140625, 0.0199432373046875, -0.03631591796875, 0.010162353515625, 0.050506591796875, 0.06793212890625, -0.05078125, -0.04180908203125, 0.0121612548828125, -0.00022864341735839844, -0.0040283203125, 0.01788330078125, 0.020660400390625, 0.058319091796875, 0.0643310546875, -0.0711669921875, -0.019561767578125, 0.0171661376953125, 0.0214691162109375, -0.01300048828125, -0.01129913330078125, -0.00156402587890625, -0.049224853515625, -0.0562744140625, -0.0157470703125, 0.0127105712890625, 0.04730224609375, 0.0421142578125, 0.03131103515625, 0.0080108642578125, -0.0256500244140625, 0.02825927734375, -0.011566162109375, -0.02777099609375, -0.0233917236328125, -0.012969970703125, -0.03729248046875, -0.000980377197265625, 0.03411865234375, 0.006778717041015625, 0.0015535354614257812, 0.0194549560546875, 0.0206756591796875, -0.02618408203125, -0.0216217041015625, 0.0482177734375, -0.0183563232421875, -0.03778076171875, -0.0200042724609375, 0.0018978118896484375, 0.020233154296875, 0.0031337738037109375, 0.01374053955078125, 0.035186767578125, 0.0269775390625, -0.0280609130859375, 0.0153961181640625, 0.0036754608154296875, -0.01548004150390625, 0.0162353515625, -0.0089111328125, 0.001697540283203125, -0.007904052734375, -0.0975341796875, 0.0037021636962890625, -0.08013916015625, -0.0391845703125, 0.04150390625, 0.03533935546875, 0.0015974044799804688, -0.0031986236572265625, -0.03253173828125, -0.03668212890625, 0.0022258758544921875, 0.0162353515625, 0.0032444000244140625, 0.042236328125, 0.00797271728515625, -0.0031585693359375, -0.02679443359375, -0.0174713134765625, 0.01806640625, 0.01190948486328125, 0.02508544921875, -0.0022735595703125, 0.0207672119140625, 0.0033111572265625, -0.047119140625, 0.06683349609375, -0.142578125, -0.07244873046875, 0.068115234375, -0.0672607421875, -0.0247955322265625, 0.038299560546875, -0.0135040283203125, 0.0190887451171875, 0.02801513671875, 0.0008440017700195312, 0.01004791259765625, -0.025115966796875, 0.0297088623046875, 0.004421234130859375, 0.003139495849609375, -0.03179931640625, -0.01739501953125, -0.033416748046875, -0.0242767333984375, 0.0240478515625, 0.02166748046875, 0.007297515869140625, -0.0074005126953125, -0.00008487701416015625, -0.023956298828125, -0.005847930908203125, 0.035919189453125, -0.0118408203125, 0.041015625, -0.0178375244140625, -0.02252197265625, 0.04351806640625, -0.0023822784423828125, 0.02447509765625, 0.0144805908203125, 0.029876708984375, 0.0234375, -0.04541015625, 0.0311279296875, 0.0209808349609375, 0.04364013671875, -0.00815582275390625, 0.0061492919921875, 0.01360321044921875, -0.01555633544921875, -0.00914764404296875, -0.00954437255859375, -0.025115966796875, 0.0041351318359375, -0.005321502685546875, 0.01328277587890625, 0.0185089111328125, -0.03070068359375, -0.05438232421875, -0.00518798828125, 0.00777435302734375, -0.011932373046875, -0.00688934326171875, 0.0203399658203125, -0.0227813720703125, 0.0085601806640625, -0.03302001953125, -0.0134429931640625, 0.00077056884765625, 0.026214599609375, -0.06219482421875, 0.01470947265625, -0.04052734375, -0.052642822265625, -0.03887939453125, 0.020172119140625, 0.01776123046875, -0.0126800537109375, -0.0185699462890625, 0.041473388671875, 0.0230255126953125, 0.08734130859375, 0.046905517578125, -0.004486083984375, -0.006969451904296875, 0.034942626953125, -0.06182861328125, -0.054229736328125, 0.05340576171875, -0.038299560546875, -0.026519775390625, -0.0148162841796875, 0.026611328125, 0.0284271240234375, -0.01100921630859375, -0.0279388427734375, 0.06402587890625, -0.0098724365234375, -0.039764404296875, -0.017730712890625, -0.0016717910766601562, -0.00649261474609375, 0.005634307861328125, 0.00878143310546875, -0.0634765625, -0.0257415771484375, 0.02105712890625, 0.0171661376953125, 0.036865234375, 0.0081634521484375, -0.0165557861328125, -0.087646484375, -0.01273345947265625, -0.038909912109375, 0.033966064453125, 0.0028667449951171875, 0.009490966796875, -0.0012607574462890625, 0.03240966796875, -0.03497314453125, 0.011505126953125, -0.031036376953125, 0.0094757080078125, -0.014007568359375, -0.06414794921875, -0.02203369140625, -0.008819580078125, 0.016845703125, 0.0298309326171875, -0.0023345947265625, -0.0311431884765625, -0.004291534423828125, 0.01531219482421875, 0.0015878677368164062, 0.001312255859375, 0.004787445068359375, -0.043670654296875, -0.01534271240234375, 0.0018548965454101562, -0.01275634765625, -0.004108428955078125, -0.017242431640625, -0.042999267578125, -0.010040283203125, -0.0352783203125, -0.004314422607421875, -0.03472900390625, 0.037353515625, -0.037078857421875, -0.00988006591796875, -0.03265380859375, -0.0009226799011230469, -0.01654052734375, -0.0389404296875, -0.00409698486328125, -0.048004150390625, 0.01081085205078125, -0.0007691383361816406, -0.0160369873046875, 0.005764007568359375, 0.0270233154296875, 0.026702880859375, 0.038787841796875, -0.035003662109375, 0.03741455078125, -0.004505157470703125, 0.023651123046875, 0.01329803466796875, 0.038177490234375, 0.02203369140625, 0.07318115234375, 0.002422332763671875, -0.0276947021484375, -0.018341064453125, 0.042877197265625, -0.00281524658203125, -0.0288848876953125, 0.0245361328125, -0.029266357421875, 0.0002465248107910156, 0.00618743896484375, 0.010040283203125, -0.0074615478515625, 0.0030765533447265625, 0.01541900634765625, 0.00769805908203125, 0.01299285888671875 ]
116cdbcc91d3df881646f613655c2e99a854ae89
Wordpress Stackexchange Q: get_query_var() not working in pre_get_posts I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is currently being displayed by using get_query_var('taxonomy'), however no matter what I try, it keeps returning a blank string: function sort_query($query) ... if (is_tax()){ ... echo get_query_var('taxonomy'); // Empty echo get_query_var($query->query_vars['taxonomy']); // Empty ... } } add_action('pre_get_posts', 'sort_query'); Any help would be greatly appreciated; thanks! A: Did you try this? function sort_query($query) if ($query->is_tax() && $query->is_main_query()){ echo $query->query_vars['taxonomy']; $query->set( 'orderby', 'post_title' ); $query->set( 'order', 'ASC' ); //do other stuff } } add_action('pre_get_posts', 'sort_query'); Happy Coding, Kuchenundkakao
Q: get_query_var() not working in pre_get_posts I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is currently being displayed by using get_query_var('taxonomy'), however no matter what I try, it keeps returning a blank string: function sort_query($query) ... if (is_tax()){ ... echo get_query_var('taxonomy'); // Empty echo get_query_var($query->query_vars['taxonomy']); // Empty ... } } add_action('pre_get_posts', 'sort_query'); Any help would be greatly appreciated; thanks! A: Did you try this? function sort_query($query) if ($query->is_tax() && $query->is_main_query()){ echo $query->query_vars['taxonomy']; $query->set( 'orderby', 'post_title' ); $query->set( 'order', 'ASC' ); //do other stuff } } add_action('pre_get_posts', 'sort_query'); Happy Coding, Kuchenundkakao
wordpress
{ "language": "en", "length": 118, "provenance": "stackexchange_00019.jsonl.gz:427833", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81666" }
[ 0.03509521484375, -0.0145111083984375, 0.0020389556884765625, -0.031982421875, 0.03155517578125, -0.032745361328125, 0.0626220703125, 0.0207672119140625, 0.013275146484375, 0.0295562744140625, -0.03448486328125, 0.004070281982421875, -0.0169219970703125, -0.00640869140625, -0.0304718017578125, -0.02838134765625, 0.04547119140625, -0.042877197265625, 0.0301361083984375, -0.0063323974609375, 0.004978179931640625, 0.010986328125, 0.07611083984375, 0.035980224609375, 0.02734375, -0.00798797607421875, 0.05059814453125, -0.0126800537109375, 0.0129241943359375, -0.0254974365234375, 0.0201873779296875, -0.00943756103515625, 0.0149688720703125, 0.002536773681640625, 0.019134521484375, 0.02032470703125, 0.0455322265625, -0.006214141845703125, 0.0216522216796875, 0.023345947265625, 0.0321044921875, -0.0091094970703125, -0.03363037109375, 0.007694244384765625, -0.0280303955078125, -0.0535888671875, 0.03497314453125, 0.0005040168762207031, 0.004749298095703125, -0.013397216796875, 0.031005859375, 0.036773681640625, 0.045379638671875, -0.0216064453125, -0.0007181167602539062, 0.0248260498046875, -0.0180816650390625, -0.030059814453125, 0.017242431640625, 0.01015472412109375, -0.014984130859375, -0.017608642578125, 0.0192718505859375, -0.023834228515625, -0.0153350830078125, -0.002635955810546875, 0.05364990234375, -0.0016469955444335938, -0.040435791015625, -0.0239105224609375, 0.038970947265625, 0.006683349609375, 0.0128021240234375, 0.0264434814453125, -0.00856781005859375, -0.0732421875, 0.0013132095336914062, -0.0247955322265625, 0.0272674560546875, 0.0228118896484375, 0.01248931884765625, -0.022857666015625, -0.04327392578125, 0.01297760009765625, 0.01271820068359375, 0.0226287841796875, -0.0033512115478515625, -0.020050048828125, -0.0181732177734375, -0.032440185546875, -0.01236724853515625, -0.033111572265625, -0.0462646484375, 0.00482940673828125, 0.0016040802001953125, -0.0360107421875, 0.0146636962890625, 0.051849365234375, -0.032745361328125, -0.0017528533935546875, -0.046875, -0.0199737548828125, -0.0221405029296875, -0.0204925537109375, 0.0009307861328125, -0.029327392578125, 0.0004448890686035156, 0.0156707763671875, 0.0343017578125, 0.0498046875, -0.02008056640625, 0.0193023681640625, -0.0142059326171875, -0.021453857421875, -0.0167236328125, 0.0024127960205078125, -0.0289306640625, -0.0184173583984375, -0.001926422119140625, -0.036834716796875, 0.04156494140625, 0.059722900390625, 0.024078369140625, -0.0675048828125, 0.026275634765625, 0.0225372314453125, -0.0279693603515625, -0.065185546875, -0.01032257080078125, 0.050201416015625, -0.02349853515625, -0.00838470458984375, 0.023406982421875, 0.0038242340087890625, -0.01424407958984375, -0.040618896484375, 0.01445770263671875, -0.01363372802734375, -0.00821685791015625, 0.00560760498046875, 0.005626678466796875, -0.01462554931640625, 0.014801025390625, -0.0122528076171875, -0.0248565673828125, 0.020233154296875, 0.023284912109375, -0.005535125732421875, -0.005718231201171875, -0.018585205078125, -0.037750244140625, -0.00777435302734375, 0.0650634765625, -0.021331787109375, -0.0731201171875, 0.0155181884765625, 0.00557708740234375, -0.00577545166015625, -0.07525634765625, -0.038116455078125, 0.0176544189453125, 0.00605010986328125, 0.01493072509765625, -0.017120361328125, -0.008941650390625, -0.031951904296875, -0.04205322265625, -0.001560211181640625, 0.0158233642578125, 0.005039215087890625, 0.056427001953125, 0.0181427001953125, 0.043853759765625, -0.006694793701171875, -0.0129241943359375, -0.0347900390625, -0.007045745849609375, -0.020355224609375, 0.05096435546875, 0.00411224365234375, -0.04266357421875, -0.023529052734375, 0.021636962890625, -0.01568603515625, -0.053253173828125, 0.05523681640625, -0.00899505615234375, 0.044158935546875, 0.00904083251953125, 0.002414703369140625, 0.01873779296875, 0.044830322265625, -0.0802001953125, 0.036468505859375, 0.0243072509765625, -0.005100250244140625, -0.0099945068359375, -0.0159149169921875, 0.0205535888671875, -0.035858154296875, -0.038848876953125, 0.01305389404296875, -0.025115966796875, 0.02520751953125, -0.060760498046875, 0.015533447265625, -0.01227569580078125, 0.0307464599609375, -0.029083251953125, 0.03155517578125, 0.0379638671875, 0.04022216796875, -0.0682373046875, 0.0056915283203125, -0.007480621337890625, 0.021209716796875, 0.004596710205078125, 0.028472900390625, 0.01509857177734375, 0.00484466552734375, 0.01806640625, -0.018646240234375, 0.008026123046875, 0.016326904296875, 0.0310516357421875, 0.02532958984375, -0.038482666015625, -0.00682830810546875, 0.0091094970703125, 0.01549530029296875, -0.0304412841796875, 0.025726318359375, 0.09259033203125, 0.060394287109375, -0.050018310546875, -0.01132965087890625, 0.000499725341796875, -0.0305023193359375, -0.0013246536254882812, 0.04010009765625, 0.0255279541015625, 0.012969970703125, -0.009674072265625, -0.0024890899658203125, 0.06524658203125, -0.0231170654296875, -0.0006928443908691406, -0.0124969482421875, 0.01462554931640625, 0.06976318359375, -0.0081939697265625, 0.0187530517578125, -0.00208282470703125, 0.028533935546875, 0.0015707015991210938, 0.029998779296875, 0.025177001953125, 0.0157012939453125, -0.006923675537109375, -0.0034389495849609375, 0.00449371337890625, -0.035675048828125, -0.041656494140625, 0.004497528076171875, -0.0031261444091796875, 0.022369384765625, 0.01290130615234375, 0.01446533203125, -0.005584716796875, -0.0025730133056640625, -0.0010080337524414062, -0.034332275390625, -0.0202484130859375, 0.016357421875, -0.0027561187744140625, -0.0082550048828125, -0.030181884765625, 0.028533935546875, -0.035186767578125, 0.0006628036499023438, 0.005542755126953125, 0.0697021484375, -0.026153564453125, -0.01030731201171875, -0.046966552734375, -0.0631103515625, -0.0058135986328125, 0.03955078125, 0.0017557144165039062, -0.01081085205078125, 0.021484375, 0.01458740234375, -0.029632568359375, 0.04217529296875, -0.03387451171875, -0.01282501220703125, 0.013916015625, -0.035308837890625, 0.019439697265625, -0.0204315185546875, 0.06341552734375, 0.06866455078125, 0.0092315673828125, 0.01251983642578125, 0.005168914794921875, -0.0014944076538085938, -0.01540374755859375, 0.0209808349609375, 0.00789642333984375, 0.0037021636962890625, -0.030975341796875, 0.050537109375, 0.03253173828125, 0.005474090576171875, 0.01442718505859375, -0.029083251953125, 0.0017976760864257812, 0.005084991455078125, -0.054534912109375, -0.0665283203125, -0.0116424560546875, -0.00899505615234375, 0.00641632080078125, -0.0121612548828125, 0.00978851318359375, 0.0022106170654296875, -0.03216552734375, 0.0006060600280761719, 0.0665283203125, -0.056732177734375, -0.08697509765625, -0.055877685546875, -0.07647705078125, -0.0022220611572265625, 0.0045318603515625, -0.0028438568115234375, 0.00707244873046875, 0.11383056640625, 0.026641845703125, -0.06591796875, 0.02496337890625, 0.00946044921875, -0.023834228515625, 0.046478271484375, 0.019775390625, -0.0347900390625, 0.04046630859375, -0.00876617431640625, 0.06829833984375, 0.04534912109375, -0.03521728515625, 0.000469207763671875, -0.010101318359375, -0.004428863525390625, 0.018768310546875, 0.0233154296875, -0.003387451171875, 0.004665374755859375, 0.04345703125, -0.02960205078125, 0.01751708984375, -0.041748046875, -0.011871337890625, 0.06591796875, -0.0065765380859375, 0.001956939697265625, 0.01114654541015625, 0.01291656494140625, -0.02001953125, -0.0216522216796875, -0.01470947265625, -0.0224456787109375, 0.004116058349609375, -0.00930023193359375, 0.003002166748046875, 0.01739501953125, 0.007110595703125, -0.028076171875, 0.0460205078125, 0.015411376953125, 0.01554107666015625, 0.00832366943359375, 0.00547027587890625, -0.01090240478515625, -0.0193023681640625, 0.02667236328125, -0.0300140380859375, 0.0007071495056152344, -0.0292510986328125, -0.0238189697265625, -0.0250091552734375, 0.06494140625, -0.043487548828125, -0.02740478515625, -0.0011548995971679688, 0.0193328857421875, -0.0294647216796875, -0.0124053955078125, -0.00894927978515625, -0.0146026611328125, -0.12158203125, 0.00054931640625, 0.006359100341796875, -0.06329345703125, -0.0262298583984375, 0.003246307373046875, -0.1064453125, -0.035064697265625, 0.04608154296875, -0.010345458984375, -0.00649261474609375, 0.0005497932434082031, -0.028717041015625, -0.01427459716796875, -0.04144287109375, 0.02142333984375, -0.07940673828125, -0.016815185546875, 0.03857421875, 0.04119873046875, -0.028594970703125, 0.0183258056640625, -0.03729248046875, 0.0458984375, 0.0252685546875, -0.00933074951171875, 0.004268646240234375, 0.01479339599609375, -0.00733184814453125, -0.04022216796875, -0.01611328125, -0.048583984375, -0.006107330322265625, -0.006343841552734375, 0.0205230712890625, 0.01087188720703125, -0.04913330078125, -0.03216552734375, -0.0445556640625, -0.0192718505859375, -0.055206298828125, -0.018157958984375, 0.0017557144165039062, -0.0240936279296875, -0.0146331787109375, -0.0212860107421875, 0.004730224609375, -0.042266845703125, 0.0184478759765625, -0.0186004638671875, -0.0193634033203125, 0.00518798828125, 0.048736572265625, 0.0151824951171875, -0.00615692138671875, -0.0027027130126953125, 0.00695037841796875, 0.0225677490234375, 0.00018215179443359375, 0.00965118408203125, -0.0277557373046875, -0.034759521484375, 0.0531005859375, -0.00830078125, 0.0067596435546875, -0.02813720703125, 0.0234527587890625, 0.0018930435180664062, -0.02349853515625, 0.0027713775634765625, -0.00684356689453125, 0.03680419921875, 0.02099609375, -0.013885498046875, -0.04443359375, -0.00201416015625, 0.050384521484375, -0.00921630859375, 0.059600830078125, -0.0273895263671875, -0.047821044921875, 0.01885986328125, 0.0007281303405761719, 0.032470703125, -0.0173797607421875, -0.0034027099609375, 0.016632080078125, 0.005512237548828125, 0.009063720703125, 0.004581451416015625, 0.0662841796875, -0.0274505615234375, 0.04876708984375, 0.0008144378662109375, -0.009552001953125, -0.016448974609375, -0.000946044921875, 0.049346923828125, -0.01074981689453125, -0.0268402099609375, -0.0313720703125, -0.0109710693359375, 0.0272064208984375, 0.0216827392578125, -0.0135498046875, 0.019775390625, 0.0241241455078125, 0.0182037353515625, 0.0010862350463867188, -0.0082855224609375, -0.0047149658203125, -0.0172271728515625, 0.01189422607421875, 0.01490020751953125, -0.03155517578125, -0.0060882568359375, 0.0416259765625, -0.0236053466796875, 0.020599365234375, -0.0040740966796875, -0.03173828125, -0.036529541015625, 0.0269317626953125, 0.0197601318359375, -0.0107421875, 0.01120758056640625, 0.016510009765625, 0.024688720703125, 0.004177093505859375, -0.00739288330078125, -0.0225067138671875, -0.024139404296875, -0.042755126953125, -0.0091400146484375, 0.065185546875, 0.0191497802734375, -0.01189422607421875, 0.0251617431640625, 0.0308685302734375, 0.00647735595703125, -0.042266845703125, -0.05352783203125, 0.0283660888671875, 0.009368896484375, -0.0035877227783203125, 0.0236358642578125, 0.014251708984375, 0.06622314453125, -0.0302886962890625, 0.03717041015625, 0.0006585121154785156, -0.01168060302734375, -0.01528167724609375, -0.0059661865234375, 0.038360595703125, -0.02734375, -0.01528167724609375, -0.0174713134765625, -0.034393310546875, 0.0283050537109375, -0.0024280548095703125, 0.05126953125, -0.059661865234375, -0.0090789794921875, -0.0390625, -0.0102691650390625, 0.0634765625, 0.027252197265625, -0.061920166015625, 0.005908966064453125, -0.06640625, -0.000652313232421875, 0.005863189697265625, -0.040374755859375, -0.01560211181640625, -0.01187896728515625, 0.00601959228515625, 0.038909912109375, 0.021820068359375, -0.0018587112426757812, -0.0234527587890625, -0.0079803466796875, 0.00818634033203125, 0.044586181640625, -0.01812744140625, 0.07965087890625, -0.01160430908203125, 0.0565185546875, 0.002231597900390625, 0.0178375244140625, -0.0215606689453125, -0.01444244384765625, -0.032806396484375, -0.064697265625, -0.006221771240234375, 0.0231170654296875, -0.024993896484375, 0.053466796875, 0.05316162109375, 0.0113677978515625, 0.0325927734375, 0.020355224609375, 0.01389312744140625, 0.0023593902587890625, -0.04022216796875, 0.03521728515625, 0.00408935546875, 0.086181640625, -0.00547027587890625, 0.0263824462890625, 0.0036678314208984375, -0.0002567768096923828, 0.01448822021484375, -0.020111083984375, 0.020416259765625, -0.007221221923828125, -0.0231781005859375, 0.033538818359375, 0.033966064453125, 0.029205322265625, 0.041412353515625, -0.005130767822265625, 0.03204345703125, -0.03070068359375, 0.0181884765625, 0.005687713623046875, -0.00045800209045410156, 0.061431884765625, 0.00009733438491821289, -0.0218048095703125, 0.042572021484375, -0.032379150390625, -0.00554656982421875, 0.034271240234375, 0.04296875, -0.031005859375, -0.01496124267578125, 0.027862548828125, -0.02886962890625, -0.043182373046875, 0.00830841064453125, 0.009307861328125, -0.004291534423828125, 0.0132904052734375, -0.0174560546875, -0.014892578125, 0.0016813278198242188, -0.015411376953125, -0.0187835693359375, -0.0292510986328125, 0.00582122802734375, 0.004703521728515625, -0.0184478759765625, 0.01546478271484375, 0.01508331298828125, -0.005054473876953125, -0.017608642578125, 0.0298919677734375, -0.01544952392578125, 0.00936126708984375, -0.0738525390625, 0.0010223388671875, -0.0002391338348388672, -0.00635528564453125, -0.033935546875, -0.036956787109375, 0.00949859619140625, 0.0182952880859375, -0.024749755859375, -0.0145721435546875, 0.00786590576171875, -0.08624267578125, 0.01146697998046875, -0.023773193359375, 0.0140380859375, -0.0003020763397216797, -0.015899658203125, 0.014678955078125, -0.0006122589111328125, -0.042266845703125, -0.018951416015625, -0.048980712890625, 0.050262451171875, -0.02923583984375, 0.00360107421875, 0.036956787109375, 0.0189666748046875, -0.025146484375, 0.033599853515625, 0.0085906982421875, -0.05206298828125, -0.025482177734375, 0.0228729248046875, -0.033660888671875, -0.0014171600341796875, 0.0107879638671875, -0.0513916015625, 0.104248046875, -0.004863739013671875, 0.0237579345703125, 0.01015472412109375, 0.036773681640625, -0.026580810546875, 0.0292510986328125, -0.053070068359375, 0.081298828125, 0.0179443359375, 0.08154296875, -0.0572509765625, -0.017303466796875, 0.039764404296875, 0.0322265625, 0.050933837890625, 0.00833892822265625, -0.0509033203125, 0.01500701904296875, 0.06561279296875, 0.037689208984375, 0.00322723388671875, 0.04241943359375, 0.00557708740234375, 0.04095458984375, 0.045074462890625, -0.02001953125, 0.0362548828125, -0.0069580078125, -0.053314208984375, 0.037384033203125, 0.0035610198974609375, 0.01062774658203125, -0.01198577880859375, -0.00962066650390625, -0.0650634765625, 0.002056121826171875, 0.05047607421875, -0.043792724609375, 0.005199432373046875, 0.0220794677734375, 0.0248870849609375, -0.05133056640625, -0.01480865478515625, -0.0184173583984375, 0.036468505859375, 0.00223541259765625, 0.03887939453125, 0.0457763671875, 0.015655517578125, 0.05810546875, -0.0271759033203125, 0.0269012451171875, -0.0140228271484375, -0.0143585205078125, 0.06390380859375, 0.01018524169921875, 0.0338134765625, -0.04974365234375, 0.002429962158203125, 0.046356201171875, 0.08331298828125, -0.04205322265625, -0.04156494140625, 0.004138946533203125, -0.00811767578125, -0.00653076171875, 0.0111236572265625, -0.02569580078125, 0.05517578125, 0.0845947265625, -0.06854248046875, -0.0154876708984375, 0.01232147216796875, 0.038970947265625, -0.029541015625, -0.01415252685546875, -0.00458526611328125, -0.054229736328125, -0.053253173828125, -0.01560211181640625, 0.018341064453125, 0.09136962890625, 0.02496337890625, 0.0701904296875, -0.05224609375, -0.0457763671875, -0.007320404052734375, 0.029541015625, -0.032135009765625, 0.0220184326171875, -0.0169830322265625, -0.031982421875, -0.05487060546875, 0.035064697265625, 0.05224609375, 0.01617431640625, 0.039093017578125, 0.018280029296875, -0.01042938232421875, 0.020599365234375, 0.0628662109375, -0.0087738037109375, -0.0123291015625, -0.0230712890625, 0.01251220703125, 0.028717041015625, 0.00551605224609375, -0.006504058837890625, 0.0139312744140625, 0.031707763671875, -0.0169677734375, 0.01087188720703125, 0.00473785400390625, -0.016021728515625, 0.04315185546875, -0.0211944580078125, 0.04132080078125, 0.0011768341064453125, -0.038665771484375, -0.003940582275390625, -0.0601806640625, -0.01535797119140625, 0.01323699951171875, 0.0240478515625, 0.01363372802734375, 0.005359649658203125, 0.0157012939453125, -0.047821044921875, 0.032745361328125, 0.016082763671875, 0.01468658447265625, 0.027374267578125, 0.00406646728515625, 0.007549285888671875, -0.0248260498046875, -0.0296173095703125, -0.00433349609375, 0.026824951171875, 0.009765625, 0.00839996337890625, 0.019683837890625, 0.0160064697265625, 0.004642486572265625, 0.0264129638671875, -0.048370361328125, -0.017730712890625, 0.044097900390625, -0.0634765625, -0.0216217041015625, 0.0131683349609375, -0.0413818359375, -0.0188140869140625, 0.061126708984375, -0.029022216796875, -0.0016460418701171875, -0.020538330078125, 0.02703857421875, -0.039306640625, 0.04840087890625, -0.00711822509765625, 0.0034465789794921875, -0.0219268798828125, -0.0267791748046875, 0.0452880859375, 0.04876708984375, -0.01146697998046875, 0.01532745361328125, 0.0282440185546875, -0.0288848876953125, 0.0297088623046875, -0.019744873046875, 0.08074951171875, 0.04656982421875, -0.0297088623046875, 0.0108184814453125, 0.022369384765625, -0.01474761962890625, 0.0269012451171875, 0.02239990234375, 0.000022172927856445312, 0.0140533447265625, -0.00508880615234375, -0.007274627685546875, -0.0017452239990234375, 0.045989990234375, -0.0090179443359375, 0.0186614990234375, -0.00836944580078125, 0.0023441314697265625, -0.0008158683776855469, -0.0154876708984375, -0.028564453125, -0.02581787109375, -0.0212554931640625, 0.0036106109619140625, -0.01198577880859375, -0.0201568603515625, -0.014373779296875, -0.02264404296875, 0.03240966796875, -0.007602691650390625, -0.01291656494140625, 0.0008754730224609375, -0.015716552734375, -0.00881195068359375, 0.003986358642578125, -0.032958984375, 0.0160369873046875, 0.044403076171875, 0.0115509033203125, 0.02349853515625, -0.01953125, -0.024749755859375, 0.006877899169921875, 0.01001739501953125, 0.0182647705078125, -0.01702880859375, -0.01300811767578125, 0.00951385498046875, 0.004886627197265625, 0.04400634765625, 0.0390625, -0.0203704833984375, 0.01364898681640625, -0.004741668701171875, -0.0391845703125, -0.041839599609375, 0.031951904296875, -0.04364013671875, -0.010894775390625, -0.035369873046875, 0.04412841796875, 0.04736328125, -0.022705078125, -0.08148193359375, 0.045379638671875, -0.034027099609375, -0.036590576171875, -0.056304931640625, 0.02783203125, 0.004337310791015625, 0.00724029541015625, -0.004711151123046875, -0.0245819091796875, -0.0202789306640625, 0.0181427001953125, 0.018890380859375, 0.0203399658203125, 0.032073974609375, 0.0201416015625, -0.0926513671875, -0.0150604248046875, -0.061920166015625, 0.0293121337890625, -0.0007243156433105469, -0.01959228515625, 0.01708984375, 0.0205230712890625, -0.05218505859375, -0.01198577880859375, -0.0022563934326171875, 0.0119476318359375, 0.01045989990234375, -0.02789306640625, -0.042877197265625, -0.038909912109375, 0.041748046875, -0.013519287109375, 0.018280029296875, -0.0005311965942382812, -0.03668212890625, -0.0117340087890625, -0.0467529296875, -0.046478271484375, 0.039581298828125, -0.093017578125, -0.033203125, -0.01116943359375, 0.0074005126953125, -0.01959228515625, -0.006000518798828125, -0.0260162353515625, -0.00626373291015625, 0.0108184814453125, 0.0224761962890625, -0.039520263671875, -0.0003211498260498047, 0.0014591217041015625, -0.030181884765625, -0.06396484375, -0.00836944580078125, 0.007110595703125, -0.04425048828125, -0.03997802734375, -0.005397796630859375, -0.013092041015625, 0.0248260498046875, -0.0048065185546875, 0.0223236083984375, -0.004146575927734375, 0.037841796875, -0.0000546574592590332, -0.0181732177734375, 0.017822265625, -0.0124053955078125, 0.00820159912109375, 0.00814056396484375, 0.03204345703125, 0.004558563232421875, 0.07470703125, -0.0175933837890625, 0.07098388671875, 0.0173492431640625, 0.02166748046875, -0.00952911376953125, 0.00930023193359375, 0.018768310546875, -0.01873779296875, -0.003940582275390625, -0.007266998291015625, -0.031768798828125, -0.00830841064453125, -0.016876220703125, 0.0136871337890625, -0.0262298583984375, 0.01029205322265625 ]
ec01d1da5ccd9d32e1a8c88775ebb91a5482a56a
Wordpress Stackexchange Q: Difference between Option_Group and Option_Name in Register_Settings I think the title pretty much says it all! I'm working my way through various tutorials on how to add an options page to my test plugin and am struggling to understand the Register_Settings function. Every tutorial I have found quotes the codex for the arguments then uses the same text in the Option_Group and Option_Name argument. Can someone explain it to me please? A: The codex defines the function as: register_setting( $option_group, $option_name, $option_validate_function ); * *$option_group is settings group name. Use when displaying on a settings page for example *$option_name is the database entry name *$option_validate_function is the callback for this database entry/this option. Most codex tutorials use an array of data in one $option_name but that's not required (just more efficient in terms of table rows). You can add multiple options with unique names under the same option group. Usage * *$option_name is the name you access when using get_option( $option_name ). *$option_group is the group name used when creating security with settings_fields( $option_group ).
Q: Difference between Option_Group and Option_Name in Register_Settings I think the title pretty much says it all! I'm working my way through various tutorials on how to add an options page to my test plugin and am struggling to understand the Register_Settings function. Every tutorial I have found quotes the codex for the arguments then uses the same text in the Option_Group and Option_Name argument. Can someone explain it to me please? A: The codex defines the function as: register_setting( $option_group, $option_name, $option_validate_function ); * *$option_group is settings group name. Use when displaying on a settings page for example *$option_name is the database entry name *$option_validate_function is the callback for this database entry/this option. Most codex tutorials use an array of data in one $option_name but that's not required (just more efficient in terms of table rows). You can add multiple options with unique names under the same option group. Usage * *$option_name is the name you access when using get_option( $option_name ). *$option_group is the group name used when creating security with settings_fields( $option_group ).
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:427849", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81713" }
[ 0.003631591796875, -0.0241241455078125, -0.0259246826171875, -0.032867431640625, -0.0215911865234375, -0.0245361328125, 0.002780914306640625, 0.0214080810546875, -0.0208282470703125, 0.0192718505859375, -0.020782470703125, 0.0423583984375, -0.05078125, -0.0223541259765625, 0.0013790130615234375, -0.033203125, 0.03265380859375, -0.034698486328125, -0.00959014892578125, -0.0274810791015625, 0.01355743408203125, 0.0085296630859375, -0.037109375, 0.08203125, 0.055328369140625, -0.10162353515625, 0.047454833984375, 0.00814056396484375, 0.031402587890625, -0.0002465248107910156, 0.0230560302734375, -0.00556182861328125, 0.007404327392578125, 0.0232696533203125, 0.00353240966796875, 0.01212310791015625, 0.061126708984375, -0.003940582275390625, 0.0036487579345703125, 0.058868408203125, 0.03839111328125, -0.0270233154296875, 0.02447509765625, -0.003925323486328125, 0.005802154541015625, -0.0382080078125, 0.07318115234375, -0.027252197265625, 0.00946807861328125, -0.0180206298828125, 0.0445556640625, -0.0179290771484375, 0.04620361328125, 0.006103515625, -0.034149169921875, -0.006488800048828125, -0.033905029296875, 0.046844482421875, 0.03173828125, 0.0179443359375, -0.0147857666015625, 0.0111083984375, 0.006458282470703125, -0.0233001708984375, 0.039093017578125, -0.00029158592224121094, 0.0234832763671875, 0.047332763671875, -0.075439453125, 0.0090789794921875, 0.0294952392578125, -0.052398681640625, 0.02532958984375, -0.01409912109375, -0.02581787109375, 0.003265380859375, -0.01192474365234375, -0.0066986083984375, 0.041534423828125, -0.03094482421875, -0.0233917236328125, -0.0455322265625, -0.0072021484375, 0.005859375, 0.00792694091796875, 0.0634765625, -0.00925445556640625, -0.01528167724609375, 0.03436279296875, -0.0439453125, 0.005168914794921875, -0.039093017578125, 0.026275634765625, 0.048431396484375, -0.025054931640625, -0.036651611328125, 0.0281982421875, 0.02935791015625, 0.0009469985961914062, -0.0198974609375, 0.0305328369140625, -0.04608154296875, 0.0214996337890625, -0.02301025390625, -0.0013484954833984375, 0.08526611328125, 0.04046630859375, -0.002590179443359375, 0.0016431808471679688, -0.03143310546875, 0.001094818115234375, -0.0012712478637695312, 0.01369476318359375, -0.04742431640625, 0.0030078887939453125, -0.032379150390625, -0.039337158203125, 0.021820068359375, 0.035125732421875, -0.054351806640625, 0.02252197265625, 0.032135009765625, 0.02227783203125, -0.027374267578125, -0.028961181640625, -0.00836181640625, -0.015411376953125, -0.0782470703125, -0.0384521484375, 0.04901123046875, -0.0142364501953125, -0.0135345458984375, 0.0535888671875, 0.04296875, 0.0160675048828125, -0.028717041015625, -0.002223968505859375, 0.0301513671875, 0.004642486572265625, 0.050445556640625, 0.0132904052734375, -0.08880615234375, -0.04217529296875, 0.04345703125, -0.0124664306640625, 0.0200347900390625, 0.016693115234375, 0.01404571533203125, -0.0035991668701171875, -0.0233612060546875, 0.003265380859375, -0.005710601806640625, 0.01107025146484375, 0.00283050537109375, -0.04791259765625, 0.0170135498046875, -0.0615234375, 0.022857666015625, -0.007511138916015625, 0.01210784912109375, -0.0335693359375, -0.013397216796875, 0.017578125, -0.0258026123046875, -0.0294952392578125, 0.0091705322265625, -0.01433563232421875, -0.006561279296875, 0.0103302001953125, -0.0107574462890625, 0.005733489990234375, 0.0121917724609375, 0.0020198822021484375, -0.0297698974609375, -0.0135345458984375, -0.0143585205078125, -0.0118865966796875, -0.019805908203125, 0.0291900634765625, -0.0045166015625, -0.04571533203125, -0.045501708984375, 0.010467529296875, -0.0244140625, -0.07568359375, 0.035888671875, -0.007175445556640625, 0.0350341796875, 0.044464111328125, -0.005313873291015625, 0.056396484375, -0.0010690689086914062, 0.00888824462890625, -0.004711151123046875, 0.038177490234375, -0.046417236328125, -0.0054931640625, -0.0190887451171875, 0.00882720947265625, -0.0276947021484375, 0.006641387939453125, 0.019317626953125, -0.01055145263671875, -0.007129669189453125, -0.036590576171875, -0.0240020751953125, -0.0105133056640625, 0.0292816162109375, -0.0302886962890625, -0.0091705322265625, 0.02069091796875, -0.001224517822265625, -0.019775390625, -0.0173797607421875, -0.0282745361328125, 0.02166748046875, -0.043853759765625, 0.05718994140625, 0.020355224609375, 0.051361083984375, 0.00408935546875, -0.006351470947265625, 0.0227203369140625, -0.037384033203125, 0.054931640625, 0.00222015380859375, -0.02740478515625, -0.0304412841796875, 0.0455322265625, -0.0231781005859375, 0.024871826171875, 0.06671142578125, -0.00502777099609375, 0.026397705078125, -0.02825927734375, -0.02197265625, -0.0254974365234375, -0.04852294921875, 0.0170135498046875, 0.056854248046875, 0.0289154052734375, 0.04193115234375, -0.00989532470703125, -0.0257568359375, 0.038909912109375, -0.02020263671875, 0.020263671875, -0.0292205810546875, 0.00658416748046875, 0.039642333984375, 0.0308837890625, -0.0003197193145751953, 0.0004940032958984375, 0.001300811767578125, -0.0010528564453125, 0.0025081634521484375, -0.09075927734375, -0.052337646484375, 0.035491943359375, -0.01076507568359375, -0.010894775390625, -0.10455322265625, 0.0304718017578125, -0.06622314453125, 0.004764556884765625, -0.0236663818359375, 0.002246856689453125, -0.0007877349853515625, -0.0013666152954101562, -0.00704193115234375, 0.01715087890625, -0.04608154296875, -0.0031757354736328125, 0.0164337158203125, 0.0092010498046875, -0.043182373046875, -0.0253143310546875, -0.0026397705078125, -0.01056671142578125, -0.015472412109375, -0.016448974609375, 0.01465606689453125, -0.019927978515625, -0.0153656005859375, 0.005168914794921875, -0.04833984375, -0.0005116462707519531, 0.0096893310546875, -0.0390625, -0.057037353515625, -0.013092041015625, 0.025726318359375, -0.0404052734375, 0.024383544921875, 0.01220703125, -0.03240966796875, 0.017181396484375, 0.00322723388671875, 0.01079559326171875, -0.032012939453125, 0.046783447265625, 0.03607177734375, -0.0289764404296875, -0.00867462158203125, 0.01165008544921875, -0.037017822265625, 0.005542755126953125, 0.00357818603515625, 0.003887176513671875, 0.0025424957275390625, -0.06561279296875, 0.037567138671875, -0.00576019287109375, 0.0028533935546875, -0.0029239654541015625, -0.041778564453125, -0.01145172119140625, -0.0072784423828125, -0.033111572265625, -0.0186767578125, -0.005489349365234375, -0.049957275390625, 0.0233612060546875, -0.021942138671875, -0.0187530517578125, -0.0149993896484375, -0.0048675537109375, 0.016998291015625, 0.0004954338073730469, -0.037841796875, -0.02825927734375, -0.0259857177734375, -0.054229736328125, 0.004589080810546875, 0.0109405517578125, 0.00786590576171875, 0.0012226104736328125, 0.052886962890625, 0.0025730133056640625, 0.0008263587951660156, 0.00594329833984375, -0.088134765625, -0.00868988037109375, -0.005992889404296875, 0.019256591796875, -0.02557373046875, -0.01995849609375, 0.00807952880859375, -0.0143890380859375, 0.01476287841796875, -0.01593017578125, -0.0168304443359375, 0.025909423828125, 0.02081298828125, 0.032958984375, 0.002758026123046875, -0.029937744140625, 0.025787353515625, 0.006381988525390625, -0.0487060546875, -0.034759521484375, 0.01026153564453125, -0.0309600830078125, -0.01299285888671875, 0.00824737548828125, -0.00522613525390625, -0.013671875, 0.027801513671875, -0.0279998779296875, -0.01263427734375, 0.0256805419921875, -0.033721923828125, 0.020477294921875, -0.0141754150390625, -0.0255126953125, 0.02081298828125, -0.00644683837890625, -0.0330810546875, -0.0195159912109375, -0.005954742431640625, -0.01204681396484375, 0.00011420249938964844, -0.04693603515625, -0.0026683807373046875, -0.100341796875, 0.049041748046875, -0.032806396484375, -0.003955841064453125, -0.031463623046875, -0.03009033203125, 0.012451171875, 0.12158203125, 0.01276397705078125, -0.023529052734375, 0.026397705078125, 0.0208282470703125, -0.009735107421875, -0.0169677734375, -0.006694793701171875, -0.0237884521484375, -0.035125732421875, -0.016510009765625, -0.0163421630859375, -0.0189208984375, -0.0025386810302734375, -0.00867462158203125, -0.01373291015625, -0.0148773193359375, 0.03729248046875, 0.00800323486328125, 0.0204010009765625, -0.007472991943359375, 0.004451751708984375, -0.01119232177734375, -0.0220489501953125, -0.01220703125, -0.054779052734375, -0.014495849609375, 0.0150909423828125, 0.0382080078125, 0.021728515625, -0.057830810546875, 0.00724029541015625, 0.045318603515625, 0.0268707275390625, 0.01503753662109375, 0.0296478271484375, -0.0099334716796875, 0.045867919921875, 0.0016326904296875, 0.029296875, -0.0254364013671875, 0.0077972412109375, -0.017852783203125, -0.09637451171875, -0.0416259765625, -0.0085296630859375, 0.024322509765625, 0.034454345703125, -0.046630859375, -0.059661865234375, 0.019561767578125, -0.00734710693359375, -0.00069427490234375, -0.023834228515625, -0.0006856918334960938, 0.01137542724609375, -0.07342529296875, 0.04095458984375, -0.042510986328125, 0.0018596649169921875, 0.004772186279296875, 0.070068359375, 0.01183319091796875, -0.0036182403564453125, -0.0352783203125, -0.0430908203125, 0.0198211669921875, 0.02557373046875, 0.0225982666015625, 0.01242828369140625, -0.006656646728515625, 0.00667572021484375, 0.0072174072265625, -0.01861572265625, -0.00434112548828125, 0.033966064453125, -0.01483154296875, -0.0235595703125, 0.0023517608642578125, -0.034393310546875, 0.0281219482421875, 0.0225982666015625, 0.00463104248046875, 0.00506591796875, 0.0287628173828125, 0.00498199462890625, -0.03857421875, 0.0235137939453125, -0.0013380050659179688, -0.00775909423828125, -0.005466461181640625, 0.00591278076171875, 0.049407958984375, 0.0364990234375, -0.01280975341796875, -0.00968170166015625, -0.0051422119140625, -0.0009512901306152344, 0.00972747802734375, 0.04339599609375, 0.0267486572265625, 0.0298614501953125, 0.029541015625, 0.01464080810546875, -0.042266845703125, -0.0163726806640625, 0.040802001953125, -0.004756927490234375, -0.0645751953125, 0.03814697265625, -0.0204925537109375, 0.037200927734375, 0.0261688232421875, 0.025360107421875, -0.0257720947265625, -0.006999969482421875, -0.00870513916015625, 0.02191162109375, 0.0709228515625, -0.01322174072265625, 0.007129669189453125, 0.013214111328125, 0.0236358642578125, -0.01459503173828125, 0.0198822021484375, 0.01291656494140625, -0.01096343994140625, 0.00946807861328125, -0.005588531494140625, 0.01415252685546875, 0.042144775390625, -0.0133056640625, 0.0338134765625, -0.006603240966796875, -0.005645751953125, -0.0352783203125, -0.0008921623229980469, -0.0086212158203125, 0.00284576416015625, 0.030914306640625, 0.023101806640625, -0.0181884765625, -0.0217742919921875, 0.004302978515625, -0.01238250732421875, -0.042755126953125, 0.04425048828125, -0.006439208984375, -0.09686279296875, -0.01139068603515625, 0.022003173828125, 0.004604339599609375, -0.026947021484375, 0.01111602783203125, 0.0184783935546875, 0.003978729248046875, -0.00414276123046875, -0.005970001220703125, -0.0283966064453125, -0.018157958984375, 0.01007843017578125, -0.0310821533203125, 0.01023101806640625, -0.01003265380859375, -0.012359619140625, -0.0338134765625, -0.0019683837890625, -0.01329803466796875, 0.0394287109375, -0.01479339599609375, 0.041259765625, -0.0305328369140625, -0.0148773193359375, -0.02880859375, -0.01317596435546875, 0.07000732421875, 0.0361328125, -0.0419921875, -0.018890380859375, 0.0031280517578125, -0.003681182861328125, -0.001129150390625, -0.0263214111328125, -0.0171661376953125, -0.00714874267578125, -0.016510009765625, -0.00247955322265625, 0.000675201416015625, 0.0192718505859375, -0.0193328857421875, 0.0474853515625, 0.013946533203125, 0.0059814453125, -0.01523590087890625, 0.00440216064453125, 0.0157012939453125, 0.032135009765625, 0.0026683807373046875, -0.0226593017578125, -0.0272674560546875, -0.0036907196044921875, 0.00304412841796875, -0.0119781494140625, -0.037933349609375, -0.033447265625, -0.00537109375, 0.038543701171875, 0.06390380859375, -0.00047326087951660156, -0.010162353515625, 0.02020263671875, 0.0038166046142578125, -0.00193023681640625, -0.0095062255859375, 0.03387451171875, -0.0181427001953125, 0.048492431640625, -0.0682373046875, -0.0175018310546875, 0.0171966552734375, 0.027740478515625, 0.04718017578125, -0.0572509765625, 0.0205078125, 0.051239013671875, -0.06085205078125, 0.037200927734375, 0.045013427734375, 0.0294342041015625, 0.05487060546875, -0.0217742919921875, 0.0204620361328125, 0.039886474609375, 0.005588531494140625, -0.0555419921875, -0.022735595703125, 0.06671142578125, 0.032196044921875, -0.0162353515625, 0.06622314453125, -0.0290679931640625, 0.047027587890625, 0.0833740234375, 0.06494140625, -0.135498046875, 0.0294342041015625, 0.0104522705078125, 0.0200653076171875, 0.084228515625, 0.041473388671875, -0.04730224609375, -0.02294921875, 0.033935546875, -0.042388916015625, 0.0009927749633789062, 0.040252685546875, 0.01312255859375, -0.0228271484375, -0.024658203125, 0.0308837890625, 0.01605224609375, 0.02410888671875, 0.01369476318359375, -0.0247955322265625, -0.00528717041015625, -0.007587432861328125, 0.03179931640625, 0.00897216796875, -0.02740478515625, -0.073974609375, -0.0127716064453125, -0.014801025390625, -0.053924560546875, -0.01146697998046875, 0.0037479400634765625, -0.0012989044189453125, 0.003597259521484375, -0.010498046875, -0.0134124755859375, -0.0343017578125, 0.0128021240234375, -0.0220794677734375, 0.0034046173095703125, -0.031829833984375, -0.00792694091796875, -0.00423431396484375, 0.0115966796875, -0.04876708984375, 0.01438140869140625, -0.0036106109619140625, -0.0178680419921875, 0.06427001953125, 0.00830078125, -0.038177490234375, 0.0256500244140625, -0.020660400390625, -0.00006461143493652344, 0.0199432373046875, -0.0006318092346191406, -0.041656494140625, -0.050048828125, 0.00848388671875, -0.079833984375, -0.00960540771484375, -0.0106048583984375, -0.0328369140625, 0.09637451171875, -0.023406982421875, 0.01727294921875, 0.020904541015625, 0.039154052734375, -0.01221466064453125, 0.019073486328125, -0.0224609375, 0.0003120899200439453, 0.0139312744140625, 0.0001806020736694336, -0.01389312744140625, 0.02142333984375, -0.02752685546875, -0.00121307373046875, 0.034210205078125, 0.006725311279296875, -0.0224151611328125, -0.0052337646484375, 0.0499267578125, 0.0163421630859375, 0.005298614501953125, 0.0343017578125, 0.0303955078125, 0.031585693359375, 0.07891845703125, 0.00856781005859375, 0.0433349609375, 0.016845703125, 0.011993408203125, 0.047088623046875, 0.00678253173828125, 0.0149993896484375, -0.0093994140625, 0.01220703125, 0.0105743408203125, -0.0212249755859375, 0.0018815994262695312, -0.040618896484375, -0.023284912109375, 0.01715087890625, -0.02593994140625, 0.0191192626953125, 0.028778076171875, -0.0200958251953125, 0.0297698974609375, -0.002346038818359375, 0.02178955078125, 0.03778076171875, 0.016754150390625, 0.020660400390625, 0.0162353515625, 0.01409912109375, 0.0166015625, -0.0013036727905273438, -0.006214141845703125, -0.005908966064453125, 0.01448822021484375, -0.0196990966796875, 0.033172607421875, 0.0162353515625, 0.0035266876220703125, -0.0287933349609375, -0.01458740234375, 0.004955291748046875, 0.003307342529296875, 0.00475311279296875, -0.042144775390625, -0.00548553466796875, -0.043701171875, -0.006023406982421875, -0.040496826171875, 0.00621795654296875, 0.0240631103515625, 0.0036907196044921875, -0.00846099853515625, -0.00278472900390625, -0.0279541015625, 0.0232391357421875, -0.0032253265380859375, 0.011993408203125, 0.0285491943359375, 0.028076171875, -0.0382080078125, 0.07568359375, -0.055694580078125, 0.0016946792602539062, -0.038909912109375, 0.0465087890625, 0.01131439208984375, 0.038360595703125, -0.07257080078125, -0.034149169921875, 0.03582763671875, 0.05126953125, 0.00807952880859375, 0.004138946533203125, 0.03668212890625, 0.0550537109375, 0.0035495758056640625, -0.005794525146484375, 0.026885986328125, 0.0008134841918945312, -0.01531219482421875, -0.019500732421875, -0.016693115234375, -0.003322601318359375, -0.0157928466796875, -0.0025691986083984375, 0.0091094970703125, 0.006259918212890625, -0.0123748779296875, 0.024993896484375, -0.004047393798828125, -0.02593994140625, -0.017730712890625, -0.0169219970703125, 0.0518798828125, 0.00260162353515625, -0.015899658203125, -0.005352020263671875, -0.00858306884765625, -0.0303497314453125, 0.00927734375, 0.03326416015625, -0.00007444620132446289, 0.008880615234375, 0.01015472412109375, -0.00623321533203125, 0.01390838623046875, 0.0126800537109375, -0.00972747802734375, -0.013641357421875, 0.037994384765625, -0.021820068359375, -0.015472412109375, -0.0243988037109375, 0.0153961181640625, 0.04034423828125, -0.032623291015625, 0.06689453125, -0.038421630859375, -0.005550384521484375, -0.01087188720703125, -0.0050201416015625, -0.0045166015625, -0.044647216796875, 0.072021484375, 0.0009126663208007812, -0.0423583984375, -0.0100250244140625, 0.01415252685546875, 0.03656005859375, 0.0220489501953125, -0.06689453125, -0.0082855224609375, 0.0221405029296875, -0.006214141845703125, -0.0242767333984375, 0.0275115966796875, -0.0092315673828125, -0.05157470703125, -0.003582000732421875, 0.037384033203125, 0.00475311279296875, 0.046905517578125, -0.0195465087890625, 0.005428314208984375, 0.004543304443359375, 0.01271820068359375, 0.00774383544921875, 0.0292205810546875, -0.001544952392578125, 0.0008096694946289062, -0.023284912109375, -0.05609130859375, -0.00890350341796875, -0.01180267333984375, -0.015655517578125, -0.0004067420959472656, 0.03594970703125, 0.00977325439453125, -0.0259246826171875, 0.0018129348754882812, 0.034393310546875, 0.04522705078125, -0.0254058837890625, 0.0168304443359375, 0.037139892578125, -0.01166534423828125, -0.0049285888671875, -0.042327880859375, -0.020050048828125, -0.04541015625, -0.004634857177734375, 0.0275115966796875, -0.025390625, -0.008636474609375, -0.050048828125, -0.0138092041015625, -0.0232086181640625, -0.01910400390625, -0.0272216796875, -0.033966064453125, 0.0177764892578125, 0.055267333984375, -0.063720703125, -0.042816162109375, 0.005031585693359375, -0.0010890960693359375, -0.026885986328125, 0.01242828369140625, -0.019134521484375, -0.0269622802734375, 0.0100555419921875, 0.030609130859375, 0.019866943359375, -0.0178070068359375, -0.0238800048828125, 0.09222412109375, 0.01198577880859375, 0.12469482421875, -0.0240478515625, -0.0063323974609375, 0.030364990234375, 0.018096923828125, -0.046539306640625, -0.09814453125, -0.00791168212890625, -0.05511474609375, 0.0163421630859375, -0.042236328125, -0.003711700439453125, -0.0033168792724609375, -0.048004150390625, -0.033172607421875, 0.07598876953125, -0.00873565673828125, -0.0175018310546875, -0.05267333984375, -0.018280029296875, 0.0037593841552734375, 0.041717529296875, -0.0141143798828125, -0.031158447265625, -0.03460693359375, 0.030120849609375, 0.00890350341796875, 0.021636962890625, 0.01483917236328125, -0.028350830078125, -0.0257110595703125, 0.005084991455078125, 0.005672454833984375, 0.01544952392578125, 0.038787841796875, 0.00463104248046875, 0.01306915283203125, 0.06646728515625, -0.012054443359375, -0.045166015625, -0.040313720703125, -0.059844970703125, -0.0010471343994140625, -0.026824951171875, -0.0013589859008789062, 0.0094451904296875, 0.03985595703125, 0.03411865234375, 0.020050048828125, -0.046875, -0.06378173828125, -0.05682373046875, -0.00225067138671875, -0.04608154296875, 0.012969970703125, -0.08453369140625, -0.016021728515625, -0.0018415451049804688, -0.00698089599609375, 0.0008721351623535156, 0.01236724853515625, -0.011962890625, -0.0101470947265625, 0.034759521484375, -0.011932373046875, -0.0247955322265625, -0.046478271484375, 0.02056884765625, -0.02008056640625, -0.04443359375, 0.01219940185546875, 0.024749755859375, -0.048126220703125, 0.0276336669921875, 0.00011098384857177734, -0.019744873046875, -0.018829345703125, 0.02874755859375, -0.01143646240234375, 0.0252227783203125, -0.0299072265625, -0.004116058349609375, 0.004611968994140625, 0.023468017578125, -0.0086669921875, 0.005626678466796875, -0.036590576171875, 0.1221923828125, 0.01401519775390625, 0.0537109375, 0.0206146240234375, 0.0230712890625, 0.0059661865234375, 0.0192413330078125, 0.0002301931381225586, -0.0191650390625, 0.01519775390625, -0.03558349609375, 0.00835418701171875, -0.040771484375, 0.0164642333984375, -0.0455322265625, 0.066650390625, -0.00870513916015625, -0.0193939208984375, 0.0458984375 ]
130b58cb044338cbe49ceb59362c3f06ad12cb65
Wordpress Stackexchange Q: Is it ever okay to include inline CSS in plugins? Normally in a plugin I would add styles using wp_enqueue_style. However, I am currently creating a plugin that only needs a few lines of CSS and I am wondering if it might be better to serve the styles inline to save a request. Obviously there are many advantages to using wp_enqueue_style, but are they worth the extra request for such a small piece of CSS? Is there any accepted 'best practice' in this area? A: This is hard to answer and I am really not sure if there is an official answer. I understand the sentiment about saving a request but inline style pretty much always wins. A theme or end user will have a hard time altering your CSS. With that in mind, I think I'd do this in a publicly released plugin... * *if the CSS is absolutely critical to the functioning of the plugin, as is the case with slideshows, for example. *Or, if I also included a filter in the plugin that allows the inline CSS to be altered or removed.
Q: Is it ever okay to include inline CSS in plugins? Normally in a plugin I would add styles using wp_enqueue_style. However, I am currently creating a plugin that only needs a few lines of CSS and I am wondering if it might be better to serve the styles inline to save a request. Obviously there are many advantages to using wp_enqueue_style, but are they worth the extra request for such a small piece of CSS? Is there any accepted 'best practice' in this area? A: This is hard to answer and I am really not sure if there is an official answer. I understand the sentiment about saving a request but inline style pretty much always wins. A theme or end user will have a hard time altering your CSS. With that in mind, I think I'd do this in a publicly released plugin... * *if the CSS is absolutely critical to the functioning of the plugin, as is the case with slideshows, for example. *Or, if I also included a filter in the plugin that allows the inline CSS to be altered or removed. A: TL;DR; Enqueue Using external stylesheet * *PRO: All your styles are in one spot. *PRO: Reduces web page coding. *PRO: Easier to maintain the plugin. *PRO: Can use hooks to alter location of the file. *PRO: Can use hooks to unqueue the file. *PRO: Can use minify styles automatically. *CON: Might add extra HTTP request (can be overcome). Using inline styles * *PRO: Can directly see the style applied. *PRO: No extra HTTP requests. *CON: Can not use hooks to alter the styles. *CON: Can not use hooks to unqueue the styles. *CON: Can not minify styles at all. *CON: Need !important to override style Normally I would say: Sure, if you are the only one using it, go ahead and do it inline. But you are talking about a plugin which means the code will be public so aim for extendibility. Right now you only have a few lines of styling: * *CON: What if that few become more? *CON: What if someone extends your plugin? *CON: What if someone wants to alter it? *CON: What if someone searches for it in css files? *CON: What if someone wants to minify it automatically? Therefore, enqueue. (Preferably Conditionally only if the plugin needs it.) The same applies to JavaScript. (But that should be included in the footer if possible.)
wordpress
{ "language": "en", "length": 406, "provenance": "stackexchange_00019.jsonl.gz:427858", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81737" }
[ 0.040740966796875, 0.01355743408203125, -0.0396728515625, -0.0305023193359375, 0.014617919921875, -0.04583740234375, 0.0023746490478515625, 0.0004763603210449219, -0.042694091796875, -0.008209228515625, -0.059661865234375, 0.038330078125, -0.05487060546875, -0.0091400146484375, 0.033660888671875, -0.06439208984375, 0.0345458984375, 0.00867462158203125, 0.0274505615234375, -0.00266265869140625, 0.0071258544921875, 0.034820556640625, -0.0203094482421875, 0.06280517578125, 0.0445556640625, -0.06585693359375, 0.0675048828125, -0.00698089599609375, 0.0428466796875, -0.00386810302734375, 0.03277587890625, -0.040863037109375, 0.0202178955078125, 0.01194000244140625, -0.0216064453125, -0.00707244873046875, 0.00846099853515625, -0.001888275146484375, -0.0030517578125, 0.01812744140625, 0.048431396484375, -0.0210113525390625, -0.040557861328125, 0.0341796875, -0.0238037109375, -0.0552978515625, 0.04168701171875, -0.0157623291015625, -0.01432037353515625, -0.005702972412109375, 0.0469970703125, -0.032470703125, 0.06396484375, -0.00021564960479736328, -0.01947021484375, 0.01055908203125, -0.005069732666015625, 0.00525665283203125, 0.0215301513671875, -0.003276824951171875, -0.026123046875, -0.0036449432373046875, 0.0268402099609375, -0.021209716796875, 0.0215301513671875, -0.0027370452880859375, 0.0287933349609375, 0.00798797607421875, -0.03466796875, 0.038238525390625, 0.040771484375, -0.040008544921875, 0.0190887451171875, -0.0269012451171875, -0.0249481201171875, 0.002613067626953125, 0.0163726806640625, -0.010894775390625, 0.0248870849609375, -0.0254364013671875, -0.01071929931640625, 0.01064300537109375, -0.038909912109375, -0.044097900390625, 0.023956298828125, -0.0172271728515625, -0.016143798828125, -0.0084381103515625, -0.009857177734375, -0.043060302734375, -0.0182342529296875, -0.0203704833984375, -0.01180267333984375, -0.01507568359375, -0.029571533203125, -0.040679931640625, 0.04327392578125, 0.059600830078125, 0.001804351806640625, 0.03179931640625, 0.015655517578125, -0.06622314453125, 0.0582275390625, -0.04266357421875, 0.005092620849609375, 0.0225830078125, -0.00397491455078125, 0.0006394386291503906, 0.036468505859375, 0.0158843994140625, -0.00044274330139160156, 0.01263427734375, 0.0272064208984375, -0.029449462890625, 0.0220947265625, -0.0233612060546875, -0.0201263427734375, 0.05377197265625, 0.010955810546875, -0.0028839111328125, 0.0217132568359375, 0.0310211181640625, -0.0096282958984375, -0.009796142578125, -0.05419921875, -0.04656982421875, 0.009124755859375, -0.03363037109375, 0.01885986328125, -0.01104736328125, -0.01055908203125, 0.0241546630859375, 0.0239105224609375, 0.007389068603515625, -0.01261138916015625, -0.01200103759765625, 0.031158447265625, 0.0079345703125, -0.00839996337890625, -0.00940704345703125, -0.0298309326171875, -0.018585205078125, 0.0214385986328125, -0.036224365234375, 0.0182952880859375, 0.0323486328125, 0.0135955810546875, 0.01055145263671875, -0.0021152496337890625, -0.058349609375, 0.0760498046875, -0.08172607421875, 0.035186767578125, -0.0033245086669921875, -0.0136260986328125, -0.0167694091796875, -0.0019550323486328125, -0.006336212158203125, -0.0102081298828125, -0.01666259765625, -0.06317138671875, 0.01342010498046875, 0.061279296875, -0.0341796875, 0.01120758056640625, -0.0210113525390625, -0.0015802383422851562, 0.0205841064453125, 0.0291900634765625, 0.020904541015625, 0.004547119140625, -0.0247955322265625, 0.0416259765625, 0.007404327392578125, -0.018585205078125, 0.0234222412109375, 0.027069091796875, 0.00698089599609375, 0.0217742919921875, 0.039398193359375, -0.0186004638671875, -0.041168212890625, 0.09124755859375, -0.0645751953125, -0.0218048095703125, -0.00438690185546875, -0.0287322998046875, 0.025665283203125, 0.044830322265625, 0.01013946533203125, -0.0218353271484375, -0.020782470703125, -0.00620269775390625, -0.01338958740234375, 0.0120391845703125, 0.00992584228515625, 0.005340576171875, 0.0264129638671875, 0.005092620849609375, -0.048126220703125, -0.0119781494140625, 0.002811431884765625, 0.01169586181640625, -0.01198577880859375, -0.053924560546875, 0.017913818359375, -0.0226593017578125, 0.0408935546875, -0.0085601806640625, 0.0212249755859375, -0.00385284423828125, -0.00011110305786132812, 0.006229400634765625, -0.07257080078125, -0.024444580078125, 0.0186920166015625, 0.016571044921875, 0.0199127197265625, 0.0280609130859375, -0.01258087158203125, 0.07196044921875, -0.006855010986328125, 0.046844482421875, 0.0272674560546875, -0.0237884521484375, -0.0054931640625, -0.01271820068359375, -0.00714111328125, -0.01953125, -0.010467529296875, 0.050872802734375, 0.01505279541015625, 0.06787109375, 0.122802734375, 0.02581787109375, -0.0165863037109375, -0.0011701583862304688, -0.09136962890625, 0.0228424072265625, 0.03155517578125, 0.03265380859375, 0.006587982177734375, 0.0076141357421875, 0.0240478515625, 0.00279998779296875, -0.0217742919921875, 0.03729248046875, -0.0084991455078125, -0.0138702392578125, -0.01360321044921875, 0.00827789306640625, -0.0224761962890625, 0.0255584716796875, -0.056488037109375, 0.01568603515625, 0.0208282470703125, -0.034271240234375, -0.0228424072265625, 0.0079498291015625, -0.003551483154296875, 0.01702880859375, 0.0167388916015625, 0.00753021240234375, -0.00229644775390625, 0.0007905960083007812, -0.005687713623046875, 0.00659942626953125, -0.0039520263671875, -0.0033016204833984375, 0.0012836456298828125, 0.0206146240234375, -0.035247802734375, -0.0008778572082519531, 0.045501708984375, 0.0197601318359375, -0.0182952880859375, -0.046417236328125, -0.00554656982421875, 0.02874755859375, 0.01568603515625, -0.01348114013671875, -0.0307159423828125, 0.02264404296875, -0.00812530517578125, 0.0289764404296875, -0.0078125, 0.0462646484375, -0.0017385482788085938, 0.027618408203125, 0.02813720703125, 0.05328369140625, -0.0023403167724609375, -0.026336669921875, 0.037750244140625, 0.0226898193359375, -0.0310821533203125, 0.022308349609375, 0.014434814453125, 0.0082855224609375, -0.0012083053588867188, 0.01849365234375, 0.033477783203125, 0.0019330978393554688, -0.020538330078125, 0.0055999755859375, 0.01202392578125, -0.0180511474609375, 0.0018215179443359375, -0.00937652587890625, -0.005008697509765625, -0.0399169921875, 0.0252532958984375, 0.038665771484375, 0.02947998046875, -0.00025653839111328125, -0.03131103515625, -0.0254669189453125, 0.031341552734375, -0.06915283203125, -0.06561279296875, -0.04949951171875, -0.0821533203125, -0.0284423828125, 0.0318603515625, -0.055267333984375, 0.030364990234375, 0.07574462890625, 0.00508880615234375, -0.00811767578125, -0.03857421875, -0.04974365234375, -0.078369140625, -0.08697509765625, -0.0168304443359375, 0.015777587890625, 0.0208282470703125, 0.00601959228515625, 0.0849609375, 0.0269927978515625, -0.063232421875, -0.004215240478515625, -0.0006580352783203125, -0.0302886962890625, 0.0271759033203125, 0.00211334228515625, -0.05328369140625, -0.034942626953125, -0.00792694091796875, -0.024139404296875, -0.0163421630859375, 0.01204681396484375, 0.0045166015625, -0.03326416015625, -0.004604339599609375, -0.0065460205078125, 0.005199432373046875, 0.042510986328125, 0.0310516357421875, 0.0218048095703125, -0.01678466796875, -0.0280914306640625, 0.0197296142578125, -0.02142333984375, 0.006084442138671875, -0.00555419921875, -0.0028133392333984375, 0.00182342529296875, 0.026458740234375, -0.01245880126953125, -0.044281005859375, 0.0198974609375, -0.058197021484375, 0.081298828125, 0.0020694732666015625, 0.0012722015380859375, -0.0236053466796875, 0.0006814002990722656, -0.02288818359375, 0.01549530029296875, -0.00934600830078125, 0.0081024169921875, -0.0164337158203125, 0.00783538818359375, -0.04608154296875, 0.00846099853515625, -0.0014944076538085938, -0.02996826171875, 0.0457763671875, -0.004901885986328125, -0.002696990966796875, -0.0024700164794921875, 0.057952880859375, -0.018768310546875, -0.02606201171875, 0.007633209228515625, 0.031768798828125, -0.049224853515625, -0.053253173828125, -0.0131988525390625, -0.0017461776733398438, -0.039154052734375, 0.0106964111328125, -0.01360321044921875, -0.0261077880859375, -0.0113067626953125, -0.0293426513671875, -0.04345703125, -0.03900146484375, 0.0242767333984375, 0.01727294921875, -0.015106201171875, 0.0027618408203125, -0.012542724609375, -0.021087646484375, -0.004451751708984375, 0.0019893646240234375, -0.08819580078125, -0.0137786865234375, -0.046539306640625, 0.1021728515625, 0.02239990234375, 0.018218994140625, -0.0012664794921875, 0.061065673828125, -0.035491943359375, 0.03948974609375, 0.006847381591796875, 0.056060791015625, -0.057769775390625, -0.005619049072265625, 0.0192108154296875, -0.04132080078125, -0.002674102783203125, 0.01198577880859375, -0.0587158203125, 0.0269012451171875, -0.004283905029296875, -0.006229400634765625, 0.062164306640625, -0.042022705078125, -0.03717041015625, -0.0230255126953125, -0.01038360595703125, 0.0011701583862304688, -0.004459381103515625, -0.00885009765625, -0.021209716796875, -0.00812530517578125, 0.03375244140625, 0.0189208984375, -0.004276275634765625, 0.00007146596908569336, 0.05377197265625, 0.025299072265625, -0.01491546630859375, -0.0175933837890625, 0.0232086181640625, 0.049896240234375, 0.0222625732421875, -0.00423431396484375, 0.0012340545654296875, -0.05157470703125, 0.054473876953125, 0.039398193359375, 0.0018558502197265625, -0.01010894775390625, 0.042510986328125, 0.0161590576171875, -0.0310516357421875, 0.01398468017578125, -0.0025177001953125, 0.0003943443298339844, 0.0428466796875, 0.03265380859375, -0.033905029296875, 0.0291748046875, -0.0018739700317382812, 0.0023174285888671875, -0.0194244384765625, 0.00455474853515625, -0.0309600830078125, 0.0005521774291992188, -0.018280029296875, 0.0709228515625, 0.05841064453125, -0.0298309326171875, 0.056243896484375, 0.0219879150390625, -0.005828857421875, 0.031982421875, 0.007476806640625, -0.00804901123046875, -0.0081329345703125, 0.0657958984375, -0.01351165771484375, 0.004238128662109375, -0.00771331787109375, 0.040435791015625, -0.0280609130859375, -0.03997802734375, -0.058837890625, -0.01256561279296875, 0.0384521484375, 0.036529541015625, 0.0179443359375, 0.037017822265625, -0.0177001953125, -0.01328277587890625, -0.01485443115234375, -0.01323699951171875, -0.027862548828125, -0.03973388671875, 0.0239715576171875, -0.0167083740234375, -0.0130462646484375, 0.0274810791015625, 0.01018524169921875, -0.005924224853515625, 0.015960693359375, -0.002582550048828125, 0.01065826416015625, 0.0164337158203125, 0.02447509765625, 0.0062103271484375, 0.00038170814514160156, 0.004474639892578125, 0.015045166015625, 0.0343017578125, -0.006717681884765625, 0.0191497802734375, -0.007354736328125, 0.005462646484375, -0.029205322265625, -0.0248260498046875, 0.051971435546875, -0.014556884765625, -0.03692626953125, 0.0037384033203125, -0.0096893310546875, 0.0018787384033203125, -0.04156494140625, -0.027557373046875, 0.03228759765625, 0.054290771484375, 0.008697509765625, -0.028228759765625, 0.0316162109375, -0.00870513916015625, -0.0136566162109375, -0.059478759765625, 0.0285797119140625, 0.040374755859375, 0.0352783203125, -0.0187530517578125, -0.045013427734375, -0.0211944580078125, 0.007843017578125, -0.02191162109375, 0.0018129348754882812, 0.0182037353515625, -0.039337158203125, 0.0810546875, -0.03643798828125, -0.032928466796875, -0.01496124267578125, 0.0292816162109375, 0.013153076171875, 0.032501220703125, -0.042510986328125, 0.00795745849609375, -0.0192718505859375, 0.0014190673828125, -0.01190948486328125, -0.0614013671875, -0.0189056396484375, -0.0206298828125, 0.0026035308837890625, 0.0250244140625, -0.03424072265625, -0.04937744140625, -0.0177001953125, 0.01507568359375, 0.039276123046875, 0.027496337890625, -0.00865936279296875, 0.022308349609375, 0.04571533203125, -0.017486572265625, 0.0204010009765625, 0.002864837646484375, 0.007595062255859375, -0.013671875, 0.004772186279296875, -0.041107177734375, -0.004917144775390625, -0.03741455078125, 0.044281005859375, 0.0272674560546875, 0.0254669189453125, 0.005924224853515625, 0.0372314453125, -0.004932403564453125, 0.007091522216796875, -0.01230621337890625, -0.005611419677734375, -0.01247406005859375, 0.0018596649169921875, 0.05096435546875, 0.0251007080078125, -0.005466461181640625, -0.030548095703125, -0.0258636474609375, 0.00957489013671875, 0.034881591796875, 0.01922607421875, -0.0567626953125, -0.018310546875, 0.027984619140625, -0.0163726806640625, 0.000009953975677490234, 0.032928466796875, 0.004711151123046875, 0.0304718017578125, 0.00638580322265625, -0.0015630722045898438, 0.02838134765625, 0.01139068603515625, 0.0364990234375, -0.016815185546875, 0.0007486343383789062, -0.0032711029052734375, -0.0269317626953125, 0.05047607421875, 0.04473876953125, 0.04510498046875, -0.0931396484375, 0.028839111328125, -0.0096588134765625, -0.0184326171875, 0.056884765625, -0.0210723876953125, 0.00847625732421875, 0.005924224853515625, 0.061370849609375, 0.0034008026123046875, -0.01293182373046875, 0.038543701171875, -0.0189056396484375, -0.001739501953125, -0.0167694091796875, -0.03057861328125, -0.01497650146484375, -0.07568359375, -0.00647735595703125, 0.0635986328125, -0.042236328125, -0.01093292236328125, 0.0055999755859375, -0.0179595947265625, -0.00824737548828125, -0.0248260498046875, 0.02301025390625, -0.0267486572265625, -0.01453399658203125, 0.049957275390625, -0.01096343994140625, 0.0245208740234375, 0.0304718017578125, -0.015655517578125, 0.0287017822265625, -0.0181884765625, 0.00681304931640625, 0.00191497802734375, -0.0223236083984375, 0.020721435546875, 0.01415252685546875, -0.051666259765625, 0.018402099609375, -0.002063751220703125, -0.0183868408203125, -0.0112152099609375, 0.039520263671875, 0.07928466796875, -0.01125335693359375, -0.0182647705078125, 0.0170135498046875, 0.01302337646484375, 0.01064300537109375, -0.0595703125, 0.0250091552734375, -0.06500244140625, 0.002330780029296875, -0.026397705078125, 0.00991058349609375, -0.0206146240234375, -0.079833984375, -0.04730224609375, 0.07000732421875, -0.020782470703125, 0.0382080078125, 0.0156707763671875, 0.0237579345703125, -0.004486083984375, 0.0026721954345703125, 0.01364898681640625, 0.01027679443359375, -0.0203857421875, -0.039886474609375, -0.0006089210510253906, 0.0009660720825195312, -0.019866943359375, 0.02978515625, 0.0511474609375, 0.01355743408203125, -0.071044921875, 0.0027790069580078125, 0.07513427734375, 0.00713348388671875, 0.0101470947265625, 0.06829833984375, -0.00585174560546875, -0.00809478759765625, 0.0024051666259765625, 0.00872802734375, 0.041961669921875, -0.031005859375, -0.0355224609375, 0.0191497802734375, -0.0026569366455078125, 0.0023059844970703125, -0.0186004638671875, 0.0316162109375, -0.0015697479248046875, -0.0129547119140625, 0.00467681884765625, -0.0112762451171875, 0.00067138671875, 0.025543212890625, -0.0099029541015625, -0.01453399658203125, -0.045806884765625, -0.00069427490234375, 0.01190185546875, -0.018035888671875, -0.00909423828125, -0.0374755859375, -0.0173187255859375, 0.034088134765625, -0.00858306884765625, -0.016845703125, 0.040008544921875, 0.00446319580078125, -0.003582000732421875, -0.0183258056640625, 0.033935546875, -0.05194091796875, -0.062286376953125, -0.017974853515625, -0.00042128562927246094, 0.0145416259765625, -0.0016908645629882812, 0.0113983154296875, 0.0180816650390625, 0.00934600830078125, -0.019439697265625, 0.037628173828125, -0.052154541015625, -0.029388427734375, -0.0038967132568359375, 0.004428863525390625, 0.0120086669921875, -0.0172576904296875, -0.0024280548095703125, 0.0126495361328125, -0.0099029541015625, 0.036041259765625, -0.006496429443359375, 0.01526641845703125, 0.01482391357421875, 0.0010709762573242188, -0.00756072998046875, 0.0111541748046875, -0.009490966796875, 0.0161895751953125, -0.060089111328125, 0.04443359375, 0.033782958984375, 0.05523681640625, 0.007747650146484375, 0.059112548828125, 0.0002218484878540039, 0.0134429931640625, -0.0135650634765625, 0.01055145263671875, 0.047454833984375, 0.02093505859375, -0.057098388671875, -0.0159454345703125, 0.0017137527465820312, -0.04107666015625, 0.0157928466796875, -0.05755615234375, 0.05413818359375, 0.05126953125, 0.0020313262939453125, 0.0159149169921875, -0.04937744140625, 0.09722900390625, -0.023529052734375, 0.0194549560546875, 0.00925445556640625, -0.01074981689453125, -0.0017480850219726562, -0.0138397216796875, -0.01153564453125, 0.00322723388671875, -0.0084991455078125, -0.027496337890625, 0.01381683349609375, 0.0740966796875, -0.0269927978515625, 0.006282806396484375, 0.016632080078125, 0.038421630859375, 0.047332763671875, -0.0128021240234375, 0.009674072265625, -0.0009684562683105469, 0.020111083984375, 0.016510009765625, 0.01256561279296875, 0.018280029296875, -0.0452880859375, -0.028656005859375, -0.048858642578125, 0.06646728515625, 0.031890869140625, 0.080078125, -0.034912109375, 0.04742431640625, 0.048553466796875, -0.059356689453125, 0.044830322265625, 0.038360595703125, -0.0194244384765625, -0.050445556640625, -0.03466796875, 0.01287078857421875, -0.056976318359375, -0.008819580078125, 0.0298004150390625, -0.026336669921875, -0.016448974609375, -0.0008382797241210938, 0.024444580078125, 0.005680084228515625, 0.035064697265625, -0.0271453857421875, -0.060455322265625, -0.05859375, 0.014007568359375, 0.0013942718505859375, 0.0146484375, -0.019989013671875, 0.0016632080078125, 0.024444580078125, -0.046051025390625, 0.033294677734375, -0.03607177734375, 0.044830322265625, 0.0207366943359375, 0.0234375, -0.041046142578125, 0.0209808349609375, -0.00577545166015625, -0.0098419189453125, 0.00859832763671875, 0.06304931640625, 0.009918212890625, -0.042236328125, 0.0171051025390625, 0.03778076171875, 0.0521240234375, 0.003612518310546875, 0.0238189697265625, 0.023162841796875, -0.0102386474609375, -0.0199432373046875, -0.0010843276977539062, -0.026824951171875, -0.055938720703125, -0.012359619140625, 0.0010156631469726562, -0.03985595703125, -0.050048828125, -0.060943603515625, -0.0035648345947265625, 0.032257080078125, -0.0191802978515625, -0.0310821533203125, 0.003459930419921875, -0.0369873046875, 0.030426025390625, -0.0213775634765625, -0.0006284713745117188, 0.003082275390625, 0.046417236328125, -0.0352783203125, -0.055572509765625, -0.0251922607421875, 0.036590576171875, -0.06402587890625, 0.030242919921875, 0.041168212890625, -0.0281982421875, 0.054962158203125, 0.02655029296875, 0.03271484375, 0.08209228515625, -0.0579833984375, 0.0185546875, 0.04168701171875, -0.004451751708984375, -0.0206756591796875, -0.0728759765625, -0.0275726318359375, -0.00611114501953125, -0.00380706787109375, -0.03778076171875, 0.002590179443359375, -0.0014896392822265625, -0.044830322265625, -0.0594482421875, 0.06256103515625, -0.01222991943359375, -0.0202789306640625, 0.01299285888671875, 0.007068634033203125, 0.0024547576904296875, -0.0295867919921875, -0.0009403228759765625, -0.01258087158203125, 0.008636474609375, 0.016632080078125, 0.01322174072265625, 0.0152130126953125, 0.036224365234375, -0.025970458984375, -0.037628173828125, -0.006671905517578125, 0.0015630722045898438, 0.023162841796875, -0.0557861328125, 0.0012769699096679688, 0.0147705078125, 0.00803375244140625, -0.006710052490234375, 0.00714874267578125, 0.0625, 0.03533935546875, -0.007282257080078125, -0.0277252197265625, 0.01091766357421875, 0.0249786376953125, 0.07049560546875, 0.0054931640625, 0.0054168701171875, -0.0288543701171875, -0.0041961669921875, 0.0006799697875976562, -0.0233306884765625, 0.01180267333984375, 0.027130126953125, -0.051422119140625, -0.0000527501106262207, 0.0038852691650390625, 0.0113067626953125, -0.00682830810546875, 0.0006022453308105469, -0.015350341796875, -0.022125244140625, 0.0012464523315429688, -0.0035839080810546875, -0.058502197265625, -0.00725555419921875, 0.04998779296875, -0.00858306884765625, 0.032440185546875, 0.00861358642578125, 0.01018524169921875, 0.043792724609375, 0.0662841796875, 0.0137939453125, 0.03216552734375, -0.0740966796875, 0.00946044921875, -0.0205230712890625, 0.053466796875, -0.066162109375, -0.01279449462890625, 0.001934051513671875, 0.00991058349609375, -0.01165008544921875, 0.0009350776672363281, 0.0016374588012695312, 0.0196075439453125, -0.00661468505859375, 0.027984619140625, -0.014801025390625, -0.014007568359375, -0.00403594970703125, 0.00016820430755615234, -0.0198516845703125, 0.015655517578125, 0.01207733154296875, -0.038604736328125, 0.006305694580078125, 0.0004935264587402344, -0.00449371337890625, -0.0273284912109375, 0.0224761962890625, -0.058685302734375, -0.01422119140625, 0.006595611572265625 ]
9927c4f50c5800f1d4655acfc4c9b23c4633c5f0
Wordpress Stackexchange Q: wp.media update options and force render on uploader Elliot here from the "Advanced Custom Fields" plugin. I'm working on integrating the new WP 3.5 uploader into the ACF plugin and can't find much documentation about the new uploader at all! Creating an uploader frame is easy, that can be done like this: // Create the media frame. acf.media = wp.media({ title : 'title', button : { text: 'button', }, multiple: true }); However, what if you want to change multiple to false and for another field? Basically, I would like to create only 1 wp.media object, but then update the options when needed (when you click "upload image", etc) and force a render refresh on the uploader. I've played around with stuff like this: acf.media.title.get().refresh() But that doesn't work... Any help will be greatly apreciated Cheers Elliot A: Solved! Not sure if this is the correct method, but after hours of console logging I discovered that this code: acf.media.content.get().options.selection.multiple = false will update the multiple option and therefore change how many images can be selected in the new uploader. If someone finds a nicer way, I'd love to hear it
Q: wp.media update options and force render on uploader Elliot here from the "Advanced Custom Fields" plugin. I'm working on integrating the new WP 3.5 uploader into the ACF plugin and can't find much documentation about the new uploader at all! Creating an uploader frame is easy, that can be done like this: // Create the media frame. acf.media = wp.media({ title : 'title', button : { text: 'button', }, multiple: true }); However, what if you want to change multiple to false and for another field? Basically, I would like to create only 1 wp.media object, but then update the options when needed (when you click "upload image", etc) and force a render refresh on the uploader. I've played around with stuff like this: acf.media.title.get().refresh() But that doesn't work... Any help will be greatly apreciated Cheers Elliot A: Solved! Not sure if this is the correct method, but after hours of console logging I discovered that this code: acf.media.content.get().options.selection.multiple = false will update the multiple option and therefore change how many images can be selected in the new uploader. If someone finds a nicer way, I'd love to hear it A: Looks like you've figured it out but seeing I use ACF all the time I figured I could link you to a couple of awesome posts about the media uploader in 3.5 as the codex still aren't updated yet. Check out: Using the WordPress 3.5 Media Uploader within plugins This week whilst working on WooCommerce 2.0 beta I was faced with the task of rewriting the media unloaders to use the fancy new interface in 3.5 instead of the tired old thickbox modal windows used in earlier versions. This was no easy task mainly due to the lack of documentation available for the new system, but I persevered and wanted to share my experiences in this post. and Building a Better Image Widget with the New WordPress Media Manager I decided to build a better image widget — something seemingly simple that’s not too different from the featured image workflow and could be used as a starting point. I was fairly satisfied with my initial effort, but the code in the post thumbnail meta box didn’t resemble an API and it was eventually reverted to maintain compatibility. Keep up the great work with ACF :)
wordpress
{ "language": "en", "length": 387, "provenance": "stackexchange_00019.jsonl.gz:427863", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81749" }
[ 0.04730224609375, -0.016082763671875, -0.003124237060546875, -0.0133819580078125, 0.00391387939453125, -0.043121337890625, 0.03924560546875, -0.00820159912109375, 0.0157928466796875, 0.029022216796875, -0.00457763671875, 0.00884246826171875, 0.01001739501953125, -0.02191162109375, -0.0094451904296875, -0.006855010986328125, 0.0218658447265625, -0.0024509429931640625, 0.00881195068359375, -0.005596160888671875, -0.0107421875, 0.0225677490234375, -0.005306243896484375, 0.0271148681640625, -0.01006317138671875, -0.0126190185546875, 0.0276336669921875, 0.008270263671875, -0.03240966796875, -0.028350830078125, 0.00623321533203125, 0.03204345703125, 0.031890869140625, 0.0251617431640625, -0.057464599609375, -0.003021240234375, 0.024078369140625, -0.005863189697265625, -0.023895263671875, 0.054412841796875, 0.0174713134765625, -0.0017910003662109375, -0.0302276611328125, 0.01483154296875, -0.019073486328125, -0.018707275390625, 0.004932403564453125, -0.04052734375, 0.041412353515625, 0.01338958740234375, -0.0163726806640625, -0.024322509765625, -0.01079559326171875, 0.0041961669921875, -0.03497314453125, -0.04803466796875, -0.023681640625, 0.04986572265625, 0.02215576171875, 0.01983642578125, -0.0312347412109375, 0.012420654296875, -0.016571044921875, -0.0302734375, -0.01087188720703125, 0.010223388671875, -0.024993896484375, 0.00901031494140625, -0.033233642578125, -0.0254058837890625, 0.0106964111328125, -0.0308837890625, 0.0271148681640625, -0.0379638671875, -0.007556915283203125, 0.043182373046875, -0.01303863525390625, 0.006381988525390625, 0.050750732421875, -0.04107666015625, 0.022674560546875, 0.005222320556640625, -0.0250701904296875, 0.007354736328125, 0.0301513671875, 0.044219970703125, 0.01380157470703125, -0.03558349609375, -0.01434326171875, 0.01546478271484375, -0.0186004638671875, -0.01861572265625, 0.0233001708984375, 0.01172637939453125, -0.02508544921875, 0.002353668212890625, 0.0137481689453125, -0.0106353759765625, 0.0194854736328125, 0.0007810592651367188, 0.034149169921875, -0.049896240234375, 0.0298614501953125, -0.01509857177734375, 0.01453399658203125, 0.01253509521484375, 0.0111083984375, -0.04217529296875, 0.0224456787109375, 0.00849151611328125, -0.018218994140625, 0.053070068359375, 0.0133514404296875, 0.016204833984375, -0.0273284912109375, -0.046722412109375, -0.042083740234375, 0.0032558441162109375, -0.0178375244140625, -0.006130218505859375, -0.035125732421875, -0.0290374755859375, -0.007678985595703125, 0.02789306640625, 0.02362060546875, 0.00015807151794433594, -0.0030155181884765625, 0.0220794677734375, -0.0433349609375, 0.0027103424072265625, -0.0462646484375, 0.032440185546875, 0.09759521484375, 0.0416259765625, 0.031707763671875, -0.0097503662109375, -0.0015687942504882812, 0.01824951171875, -0.00235748291015625, 0.00881195068359375, 0.00655364990234375, -0.0406494140625, -0.00453948974609375, 0.01226806640625, -0.00592803955078125, 0.01458740234375, 0.01247406005859375, 0.0088653564453125, -0.00795745849609375, -0.035400390625, -0.0109100341796875, -0.0229339599609375, 0.0343017578125, 0.0188140869140625, -0.005176544189453125, -0.0218505859375, 0.07342529296875, -0.042633056640625, -0.0190582275390625, -0.0784912109375, 0.037353515625, 0.0020847320556640625, 0.013214111328125, -0.023712158203125, -0.024932861328125, -0.0141143798828125, -0.065185546875, -0.00560760498046875, 0.0386962890625, 0.034423828125, 0.0428466796875, -0.048614501953125, 0.016387939453125, 0.041412353515625, -0.0012464523315429688, 0.02685546875, -0.007617950439453125, 0.045867919921875, 0.001979827880859375, 0.00527191162109375, 0.007434844970703125, -0.046112060546875, 0.075439453125, -0.011871337890625, -0.048004150390625, 0.01885986328125, 0.004505157470703125, 0.053741455078125, 0.010955810546875, 0.01180267333984375, 0.0224609375, 0.0062255859375, -0.00972747802734375, -0.0007109642028808594, 0.0008916854858398438, 0.011199951171875, -0.058746337890625, 0.02313232421875, -0.033203125, -0.0221710205078125, 0.02593994140625, 0.036834716796875, -0.01114654541015625, 0.0213470458984375, 0.00894927978515625, -0.016815185546875, 0.01422882080078125, 0.0079498291015625, 0.01068878173828125, 0.0161895751953125, 0.0251312255859375, 0.025115966796875, -0.0443115234375, 0.03619384765625, -0.002628326416015625, -0.010009765625, -0.015838623046875, 0.044464111328125, -0.0274658203125, 0.04156494140625, -0.037353515625, -0.035125732421875, -0.016021728515625, 0.040130615234375, 0.0285491943359375, -0.0218505859375, 0.004852294921875, -0.0257568359375, 0.0303192138671875, -0.0027408599853515625, -0.00711822509765625, 0.019378662109375, 0.00911712646484375, 0.0256500244140625, -0.050384521484375, -0.0232696533203125, -0.06890869140625, -0.060150146484375, 0.0089111328125, 0.061553955078125, 0.03216552734375, -0.01239776611328125, 0.012786865234375, 0.034759521484375, 0.05364990234375, 0.048126220703125, 0.035247802734375, -0.0176544189453125, 0.01175689697265625, 0.004772186279296875, -0.017730712890625, -0.0229339599609375, 0.041961669921875, -0.0654296875, 0.01247406005859375, 0.053466796875, -0.031494140625, -0.0128936767578125, 0.01236724853515625, -0.01473236083984375, 0.0017671585083007812, -0.0261077880859375, -0.000004708766937255859, -0.0256195068359375, 0.053070068359375, 0.0036182403564453125, 0.03167724609375, 0.0247955322265625, -0.0360107421875, 0.038909912109375, 0.01513671875, -0.039398193359375, 0.010406494140625, 0.00762939453125, -0.021484375, -0.0013141632080078125, -0.006374359130859375, 0.0010089874267578125, -0.00705718994140625, -0.0115509033203125, -0.03961181640625, -0.016876220703125, -0.05584716796875, -0.0169830322265625, -0.00501251220703125, -0.05584716796875, 0.01123046875, -0.0279083251953125, -0.003902435302734375, 0.0096282958984375, 0.038909912109375, 0.0150146484375, -0.0220794677734375, 0.037353515625, 0.0193023681640625, -0.0229339599609375, -0.01355743408203125, -0.07086181640625, 0.055023193359375, -0.042877197265625, 0.069091796875, 0.0804443359375, -0.0250701904296875, 0.0238800048828125, 0.0101318359375, -0.0360107421875, -0.002849578857421875, 0.03955078125, -0.0004208087921142578, -0.0247802734375, -0.0394287109375, 0.0031890869140625, 0.01461029052734375, -0.003932952880859375, -0.0204620361328125, -0.037689208984375, -0.0267486572265625, -0.0020275115966796875, -0.0765380859375, -0.0284576416015625, 0.0382080078125, -0.11712646484375, 0.0183563232421875, 0.0024318695068359375, -0.06903076171875, -0.040802001953125, 0.09332275390625, -0.00036406517028808594, -0.038482666015625, 0.019195556640625, 0.035491943359375, -0.005443572998046875, -0.0094146728515625, -0.00963592529296875, 0.002437591552734375, 0.00534820556640625, 0.0007953643798828125, 0.04388427734375, -0.000301361083984375, -0.058837890625, -0.0034923553466796875, -0.0177459716796875, 0.00301361083984375, 0.019683837890625, 0.064697265625, -0.050750732421875, 0.01568603515625, 0.0014295578002929688, 0.0303802490234375, 0.056640625, -0.0513916015625, -0.0238189697265625, -0.039642333984375, 0.005603790283203125, -0.04571533203125, 0.049468994140625, 0.061370849609375, -0.01219940185546875, -0.033172607421875, -0.04718017578125, 0.01055145263671875, -0.0068359375, -0.016693115234375, -0.0094757080078125, -0.007717132568359375, -0.0086669921875, -0.006378173828125, 0.0084381103515625, -0.006072998046875, 0.0235595703125, 0.0179290771484375, -0.05389404296875, 0.00879669189453125, -0.00896453857421875, -0.0087738037109375, 0.0015401840209960938, 0.01019287109375, -0.0094451904296875, -0.00667572021484375, -0.01544952392578125, 0.01197052001953125, -0.0037689208984375, 0.01373291015625, -0.031768798828125, -0.0208282470703125, 0.02392578125, -0.062255859375, -0.0143890380859375, -0.03692626953125, 0.003017425537109375, -0.0167388916015625, 0.043914794921875, -0.01099395751953125, -0.014251708984375, -0.0296173095703125, 0.014923095703125, -0.0044097900390625, -0.053466796875, 0.01351165771484375, -0.00643157958984375, -0.0230865478515625, 0.0167083740234375, 0.006587982177734375, -0.0027637481689453125, 0.000514984130859375, -0.01324462890625, -0.0105743408203125, -0.0273895263671875, 0.04669189453125, -0.034454345703125, 0.033782958984375, -0.0189361572265625, 0.016571044921875, -0.053619384765625, -0.006175994873046875, -0.0193634033203125, -0.1165771484375, -0.0139312744140625, 0.002231597900390625, 0.06146240234375, -0.01151275634765625, 0.017242431640625, -0.056243896484375, 0.054473876953125, 0.0233306884765625, 0.0252838134765625, 0.01062774658203125, -0.011688232421875, 0.047332763671875, -0.0243988037109375, 0.006984710693359375, -0.0245513916015625, -0.0031890869140625, -0.0626220703125, -0.038360595703125, -0.04742431640625, -0.04132080078125, -0.0050506591796875, -0.037933349609375, -0.0037670135498046875, -0.0399169921875, -0.023223876953125, -0.050689697265625, -0.03179931640625, -0.0265655517578125, -0.005367279052734375, -0.0124664306640625, -0.03564453125, 0.035247802734375, -0.062103271484375, 0.005466461181640625, 0.01291656494140625, 0.080322265625, 0.00684356689453125, 0.01450347900390625, -0.05706787109375, -0.0260467529296875, 0.017059326171875, -0.006572723388671875, 0.04095458984375, 0.0300445556640625, -0.01027679443359375, 0.042816162109375, -0.003864288330078125, 0.0257415771484375, -0.035003662109375, 0.0404052734375, 0.0023403167724609375, -0.037353515625, 0.050872802734375, 0.01531219482421875, -0.02337646484375, 0.0025177001953125, -0.029571533203125, 0.0223846435546875, -0.054901123046875, 0.0084228515625, 0.0302276611328125, -0.0229339599609375, -0.040069580078125, -0.061431884765625, 0.0172271728515625, 0.00926971435546875, 0.0272674560546875, 0.003082275390625, 0.003726959228515625, 0.047607421875, 0.0401611328125, 0.0099334716796875, -0.0130462646484375, 0.007678985595703125, -0.0157470703125, 0.033966064453125, 0.02587890625, 0.002437591552734375, -0.02227783203125, 0.0173492431640625, -0.035247802734375, -0.042572021484375, -0.043304443359375, -0.047210693359375, 0.000331878662109375, 0.016204833984375, 0.039886474609375, 0.018768310546875, 0.04290771484375, 0.0239410400390625, 0.0113067626953125, -0.022857666015625, -0.02203369140625, 0.02825927734375, -0.04315185546875, 0.0382080078125, 0.01409912109375, -0.002674102783203125, 0.015655517578125, 0.017333984375, 0.04840087890625, -0.0272064208984375, -0.0289154052734375, 0.060699462890625, 0.032806396484375, 0.0258941650390625, 0.0223236083984375, -0.019073486328125, 0.0213775634765625, -0.0190887451171875, -0.01910400390625, -0.03131103515625, 0.01175689697265625, 0.006542205810546875, 0.0257110595703125, 0.01538848876953125, -0.010284423828125, 0.016387939453125, -0.026458740234375, -0.030853271484375, 0.0025615692138671875, -0.0318603515625, -0.05352783203125, -0.01270294189453125, 0.028961181640625, 0.0214080810546875, -0.00634765625, -0.01715087890625, 0.0250091552734375, -0.02569580078125, -0.010772705078125, -0.0027141571044921875, -0.058319091796875, 0.00913238525390625, 0.033416748046875, -0.0140533447265625, -0.0036907196044921875, -0.0229034423828125, -0.006847381591796875, -0.041778564453125, 0.007190704345703125, -0.01282501220703125, 0.062744140625, -0.045013427734375, 0.00397491455078125, -0.023773193359375, 0.01007843017578125, -0.05987548828125, 0.03375244140625, -0.026885986328125, -0.01111602783203125, 0.04400634765625, -0.029876708984375, -0.0244903564453125, -0.05157470703125, -0.06829833984375, -0.036376953125, -0.0309906005859375, 0.005615234375, -0.014129638671875, 0.01416015625, -0.02752685546875, -0.03179931640625, 0.012054443359375, 0.0089569091796875, 0.01092529296875, 0.006343841552734375, 0.0240478515625, -0.0015869140625, 0.0095672607421875, 0.0279693603515625, 0.03057861328125, -0.0236663818359375, -0.038482666015625, -0.0255126953125, -0.03961181640625, -0.037200927734375, 0.035797119140625, 0.042388916015625, 0.01071929931640625, 0.003391265869140625, 0.0089111328125, 0.0230560302734375, 0.047882080078125, -0.04827880859375, -0.0027866363525390625, -0.036895751953125, 0.0355224609375, -0.11688232421875, -0.031982421875, 0.0323486328125, -0.02703857421875, 0.00977325439453125, 0.01033782958984375, -0.01078033447265625, 0.04046630859375, -0.00927734375, 0.02362060546875, -0.0028896331787109375, -0.0158843994140625, 0.03240966796875, 0.0094757080078125, -0.028106689453125, 0.013092041015625, 0.0012226104736328125, -0.00933074951171875, 0.00616455078125, -0.01226806640625, 0.024658203125, -0.01268768310546875, 0.0166473388671875, -0.003963470458984375, 0.01751708984375, 0.020965576171875, -0.00467681884765625, 0.035003662109375, 0.005374908447265625, 0.045867919921875, -0.01287078857421875, 0.0171966552734375, -0.0114288330078125, -0.030487060546875, 0.06109619140625, -0.0078582763671875, -0.0204010009765625, -0.023284912109375, 0.0270233154296875, -0.02532958984375, -0.0259246826171875, 0.0189361572265625, -0.005096435546875, -0.0112762451171875, 0.033294677734375, 0.029449462890625, 0.00482940673828125, -0.0275115966796875, -0.04034423828125, -0.001964569091796875, -0.0128326416015625, 0.020355224609375, -0.00010830163955688477, -0.010162353515625, -0.05206298828125, -0.0555419921875, -0.0214996337890625, -0.003070831298828125, -0.04571533203125, 0.007366180419921875, 0.0240936279296875, 0.0184173583984375, 0.060516357421875, -0.005519866943359375, 0.005275726318359375, 0.04339599609375, -0.0085296630859375, -0.04888916015625, -0.0308074951171875, 0.04180908203125, 0.00800323486328125, -0.066650390625, 0.038116455078125, -0.026214599609375, -0.033538818359375, 0.006107330322265625, 0.01519775390625, 0.0295257568359375, 0.031402587890625, -0.062225341796875, 0.016357421875, -0.005832672119140625, 0.0020961761474609375, -0.0015115737915039062, 0.02197265625, -0.083740234375, -0.0799560546875, 0.0010671615600585938, -0.08489990234375, -0.01091766357421875, -0.0005211830139160156, -0.07464599609375, 0.1494140625, 0.00785064697265625, 0.039306640625, 0.021484375, 0.05316162109375, -0.063232421875, 0.0194091796875, -0.031829833984375, 0.024505615234375, -0.023406982421875, 0.01432037353515625, -0.08770751953125, -0.01342010498046875, -0.034210205078125, 0.051483154296875, -0.0059356689453125, -0.0012292861938476562, -0.00756072998046875, 0.005924224853515625, 0.045501708984375, 0.07208251953125, 0.0367431640625, -0.00363922119140625, 0.005283355712890625, 0.0159759521484375, 0.0338134765625, -0.03155517578125, 0.0191192626953125, -0.0074615478515625, -0.00704193115234375, 0.03558349609375, 0.0256195068359375, 0.02752685546875, 0.0017452239990234375, 0.047698974609375, -0.053680419921875, 0.00925445556640625, 0.05340576171875, -0.004360198974609375, 0.037750244140625, 0.043182373046875, 0.026458740234375, 0.0509033203125, 0.0838623046875, -0.0199737548828125, 0.054290771484375, -0.021759033203125, -0.0108184814453125, 0.03326416015625, 0.004604339599609375, -0.00910186767578125, 0.01548004150390625, -0.015899658203125, -0.003841400146484375, 0.0347900390625, -0.0025882720947265625, 0.0042877197265625, 0.00896453857421875, -0.032562255859375, 0.037445068359375, 0.05218505859375, 0.0081024169921875, -0.031707763671875, -0.027557373046875, 0.00716400146484375, 0.00899505615234375, 0.00876617431640625, -0.0160980224609375, -0.00003218650817871094, -0.039581298828125, 0.0183258056640625, -0.0286865234375, 0.0230255126953125, 0.048492431640625, 0.01279449462890625, 0.00736236572265625, 0.032470703125, -0.07611083984375, 0.011810302734375, -0.027496337890625, -0.0132598876953125, 0.00909423828125, 0.04547119140625, 0.01007080078125, 0.0611572265625, -0.02789306640625, -0.02423095703125, -0.0266265869140625, 0.06304931640625, -0.0240936279296875, 0.0380859375, -0.046539306640625, -0.0657958984375, 0.002597808837890625, 0.038330078125, 0.03228759765625, 0.059234619140625, 0.0648193359375, 0.059478759765625, 0.00384521484375, 0.025299072265625, 0.03741455078125, -0.002506256103515625, -0.039642333984375, -0.023773193359375, -0.01837158203125, 0.0262298583984375, -0.0087432861328125, 0.026611328125, -0.035919189453125, 0.05328369140625, -0.0069732666015625, 0.03955078125, -0.0068206787109375, -0.0360107421875, 0.01250457763671875, -0.01885986328125, 0.08978271484375, 0.0089111328125, -0.0618896484375, 0.0034122467041015625, -0.0058135986328125, -0.0792236328125, 0.012725830078125, 0.043365478515625, -0.060089111328125, 0.0323486328125, -0.0267181396484375, -0.0009546279907226562, -0.0098724365234375, 0.005565643310546875, 0.01021575927734375, 0.025604248046875, 0.0300140380859375, 0.01560211181640625, -0.058990478515625, -0.01183319091796875, 0.0106964111328125, -0.004364013671875, -0.01079559326171875, 0.026123046875, 0.019195556640625, 0.007720947265625, 0.044830322265625, -0.00043487548828125, 0.0299530029296875, 0.04254150390625, 0.00704193115234375, -0.004962921142578125, 0.0045166015625, -0.0308074951171875, 0.06689453125, 0.0107269287109375, 0.035552978515625, -0.02740478515625, -0.0121307373046875, -0.03955078125, 0.0149688720703125, 0.025665283203125, 0.013275146484375, -0.024322509765625, -0.053192138671875, -0.0498046875, 0.01128387451171875, 0.0132904052734375, 0.0190582275390625, -0.0234832763671875, 0.0251312255859375, 0.0021839141845703125, -0.00548553466796875, 0.017547607421875, -0.0157928466796875, 0.01522064208984375, 0.023681640625, -0.00733184814453125, 0.03717041015625, 0.0160980224609375, -0.0160980224609375, 0.0426025390625, -0.000029206275939941406, -0.01467132568359375, 0.0191497802734375, -0.034912109375, 0.0213775634765625, 0.0166473388671875, -0.001178741455078125, -0.038055419921875, -0.00771331787109375, 0.0452880859375, -0.01348876953125, -0.0004374980926513672, -0.058563232421875, -0.018798828125, -0.040740966796875, -0.0170745849609375, 0.0241851806640625, -0.0297698974609375, -0.01366424560546875, -0.02978515625, -0.0024051666259765625, 0.03765869140625, 0.006923675537109375, -0.06793212890625, 0.040863037109375, -0.0193023681640625, 0.03497314453125, -0.0159454345703125, 0.0159454345703125, -0.0194854736328125, 0.00852203369140625, -0.020172119140625, -0.04669189453125, -0.030242919921875, 0.031463623046875, -0.0182952880859375, -0.02301025390625, 0.006732940673828125, -0.01554107666015625, 0.0112457275390625, -0.03375244140625, 0.006649017333984375, 0.0115509033203125, 0.017974853515625, 0.007717132568359375, 0.007110595703125, 0.00661468505859375, -0.032867431640625, -0.049224853515625, 0.0105743408203125, -0.03875732421875, -0.0244140625, -0.0222015380859375, -0.0195770263671875, -0.0117645263671875, -0.041656494140625, -0.05047607421875, 0.033416748046875, -0.00835418701171875, -0.0312347412109375, -0.01995849609375, -0.0186767578125, -0.0181427001953125, 0.034149169921875, 0.0131378173828125, -0.0489501953125, -0.013397216796875, 0.049102783203125, 0.0030612945556640625, 0.029388427734375, 0.002895355224609375, 0.004673004150390625, -0.07110595703125, -0.014617919921875, -0.0305328369140625, 0.016693115234375, 0.0045623779296875, -0.0187530517578125, 0.02301025390625, 0.009979248046875, -0.04315185546875, -0.0019388198852539062, -0.01155853271484375, -0.0027294158935546875, -0.0030498504638671875, -0.034698486328125, -0.045989990234375, -0.04022216796875, 0.07806396484375, 0.0491943359375, 0.02166748046875, -0.00893402099609375, 0.0263824462890625, -0.0152435302734375, -0.00252532958984375, -0.00821685791015625, 0.0025119781494140625, -0.02105712890625, -0.01018524169921875, 0.0012664794921875, -0.0032939910888671875, -0.05548095703125, 0.0232086181640625, -0.039886474609375, -0.023406982421875, 0.0008254051208496094, -0.0037250518798828125, -0.033111572265625, 0.0088043212890625, 0.076416015625, -0.050750732421875, -0.0205078125, 0.0250396728515625, -0.0015077590942382812, 0.0136871337890625, -0.0014162063598632812, -0.00432586669921875, -0.00614166259765625, -0.0208892822265625, 0.039276123046875, -0.00556182861328125, -0.0030059814453125, -0.042938232421875, 0.0008091926574707031, -0.0007824897766113281, -0.003284454345703125, -0.0193634033203125, -0.00749969482421875, -0.004581451416015625, -0.006809234619140625, -0.03826904296875, 0.0521240234375, -0.042877197265625, 0.02838134765625, -0.02655029296875, 0.006744384765625, -0.0029144287109375, 0.0208282470703125, 0.04364013671875, -0.0200958251953125, 0.024261474609375, 0.01342010498046875, 0.029754638671875, -0.0162200927734375, 0.006256103515625, -0.0088043212890625, -0.0006718635559082031, -0.00678253173828125 ]
fbb3eb4165d29fcfbeb0f9e1f3405fd5e522e5eb
Wordpress Stackexchange Q: How to manage multiple domain with different languages on each domain with single wordpress installation? I need to manage multiple domain with different content on each domain. For each domain I need to manage content in different languages. I found we can use WordPress MU Domain Mapping to manage different domain with single wp installation. But my concern is can the contents be managed with multi language for each domain. Has anyone done this kind of task before. Please advice. How the plugin mentioned above can be tested in local server. Thanks in advance A: Use a default Multisite installation and enhance this with the plugin MLP - Multilingual Press. You find a lot of information in this post, a better english as my. You find the idea and discussion about this solid solution, benefits in this answer from my side to the same question in WPSE.
Q: How to manage multiple domain with different languages on each domain with single wordpress installation? I need to manage multiple domain with different content on each domain. For each domain I need to manage content in different languages. I found we can use WordPress MU Domain Mapping to manage different domain with single wp installation. But my concern is can the contents be managed with multi language for each domain. Has anyone done this kind of task before. Please advice. How the plugin mentioned above can be tested in local server. Thanks in advance A: Use a default Multisite installation and enhance this with the plugin MLP - Multilingual Press. You find a lot of information in this post, a better english as my. You find the idea and discussion about this solid solution, benefits in this answer from my side to the same question in WPSE. A: Assuming you want a different language in each domain, and assuming your content is different, you just need your locale setting set differently for each site in your multi-site settings. This will make sure that the proper .po/.mo files are loaded for each different settings. In Transposh (the plugin that I have written) this actually happens, and locale can be set for each sub domain by selecting a different default language in the settings for each site. (I used it to allow my kid to have the management interface in the local language instead of English) If you are looking to manage the same content for different domains, this solution isn't really relevant. Good luck
wordpress
{ "language": "en", "length": 264, "provenance": "stackexchange_00019.jsonl.gz:427866", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81757" }
[ 0.016815185546875, -0.030181884765625, 0.0024700164794921875, 0.0004858970642089844, -0.0268707275390625, -0.0206756591796875, 0.0218048095703125, 0.00518035888671875, -0.017974853515625, 0.012420654296875, 0.041046142578125, -0.013092041015625, -0.00807952880859375, -0.060943603515625, 0.0310211181640625, 0.0030612945556640625, 0.0027484893798828125, 0.03350830078125, 0.0175628662109375, -0.01468658447265625, -0.00371551513671875, -0.0081634521484375, 0.010162353515625, -0.0074462890625, 0.0421142578125, -0.0789794921875, 0.0177764892578125, -0.0089874267578125, -0.005413055419921875, -0.03533935546875, 0.02557373046875, 0.049591064453125, 0.030853271484375, -0.0482177734375, 0.031463623046875, 0.0015745162963867188, 0.0152587890625, -0.023284912109375, 0.0137176513671875, -0.00201416015625, 0.0057525634765625, -0.00267791748046875, 0.045562744140625, 0.0833740234375, 0.0242462158203125, -0.0732421875, 0.03912353515625, -0.089111328125, -0.0011196136474609375, 0.0020847320556640625, 0.0065460205078125, -0.039764404296875, 0.0190887451171875, -0.022186279296875, -0.0233154296875, -0.03228759765625, 0.01029205322265625, 0.01024627685546875, 0.01401519775390625, -0.01123046875, -0.029266357421875, 0.01727294921875, 0.01409149169921875, 0.00217437744140625, -0.0238037109375, -0.0017690658569335938, -0.0311279296875, 0.009552001953125, -0.055267333984375, -0.019744873046875, 0.0438232421875, -0.045501708984375, 0.03973388671875, -0.044647216796875, 0.0161895751953125, 0.0103759765625, -0.03582763671875, -0.02239990234375, 0.0494384765625, -0.0256195068359375, 0.02374267578125, -0.01447296142578125, -0.036712646484375, -0.0308990478515625, 0.0196990966796875, -0.007038116455078125, 0.0032024383544921875, -0.009490966796875, -0.059722900390625, -0.01242828369140625, -0.03253173828125, -0.02099609375, -0.0821533203125, 0.0261993408203125, 0.01226043701171875, -0.0004074573516845703, 0.01132965087890625, 0.023101806640625, -0.021270751953125, -0.01751708984375, 0.00446319580078125, -0.02239990234375, -0.0041351318359375, -0.00986480712890625, -0.0036754608154296875, -0.012237548828125, -0.00222015380859375, -0.0027313232421875, 0.03472900390625, 0.03521728515625, -0.031890869140625, 0.0169677734375, 0.021759033203125, -0.01715087890625, -0.021270751953125, -0.006053924560546875, -0.007282257080078125, 0.0298309326171875, 0.006870269775390625, 0.0078277587890625, -0.0034770965576171875, 0.01157379150390625, 0.021453857421875, -0.022125244140625, -0.005100250244140625, -0.0166015625, -0.0177764892578125, -0.01910400390625, -0.038726806640625, 0.023406982421875, -0.023956298828125, 0.005802154541015625, 0.0328369140625, 0.04248046875, -0.0038280487060546875, -0.0175933837890625, 0.00731658935546875, 0.039215087890625, 0.02337646484375, 0.004634857177734375, 0.0153350830078125, -0.0171661376953125, 0.0119476318359375, 0.03729248046875, -0.03192138671875, 0.018707275390625, 0.016815185546875, 0.0149993896484375, -0.0022144317626953125, -0.05694580078125, 0.0011997222900390625, -0.02423095703125, 0.039276123046875, -0.0168914794921875, 0.00719451904296875, -0.0394287109375, 0.0212860107421875, -0.0312347412109375, -0.00443267822265625, -0.0247802734375, -0.0263214111328125, -0.01824951171875, 0.03955078125, 0.002895355224609375, -0.0090179443359375, 0.0181884765625, -0.0277862548828125, 0.0086517333984375, 0.0144195556640625, -0.0706787109375, -0.009918212890625, 0.0137176513671875, 0.041900634765625, -0.0284423828125, -0.002056121826171875, 0.022216796875, -0.007678985595703125, 0.04498291015625, -0.0026111602783203125, 0.034576416015625, 0.0212554931640625, -0.037628173828125, 0.06597900390625, -0.00148773193359375, -0.056243896484375, 0.00905609130859375, -0.01172637939453125, 0.042999267578125, 0.050323486328125, 0.015594482421875, 0.0114593505859375, -0.019744873046875, -0.0239105224609375, -0.012939453125, 0.0118865966796875, 0.00982666015625, -0.0204925537109375, 0.005924224853515625, 0.00592041015625, -0.0169219970703125, 0.0084228515625, -0.041534423828125, 0.0220489501953125, 0.015777587890625, 0.01358795166015625, -0.0186004638671875, 0.0017156600952148438, -0.0162506103515625, -0.00426483154296875, -0.023681640625, 0.0092926025390625, -0.01300048828125, 0.01486968994140625, -0.0728759765625, -0.0487060546875, 0.03594970703125, -0.023773193359375, -0.0012187957763671875, -0.002056121826171875, 0.0010280609130859375, 0.0290985107421875, -0.02056884765625, -0.0034198760986328125, 0.02569580078125, -0.0013113021850585938, 0.004856109619140625, -0.0172119140625, -0.001583099365234375, 0.004795074462890625, 0.01168060302734375, 0.00673675537109375, 0.0170135498046875, -0.01540374755859375, 0.0028858184814453125, -0.006656646728515625, 0.0056915283203125, 0.01067352294921875, -0.05950927734375, 0.00760650634765625, 0.044403076171875, 0.0308074951171875, 0.0174560546875, 0.00528717041015625, 0.04180908203125, 0.01593017578125, -0.06695556640625, 0.001125335693359375, 0.0202789306640625, 0.011138916015625, 0.06396484375, -0.028106689453125, 0.01045989990234375, 0.00959014892578125, -0.0438232421875, -0.0009407997131347656, 0.043609619140625, -0.0196075439453125, -0.06256103515625, 0.019927978515625, -0.0168914794921875, 0.024627685546875, -0.032379150390625, -0.05914306640625, 0.004932403564453125, -0.0144500732421875, -0.0013399124145507812, 0.005748748779296875, 0.00638580322265625, 0.0011348724365234375, 0.005023956298828125, 0.01355743408203125, -0.02532958984375, 0.0242156982421875, 0.007251739501953125, -0.040069580078125, 0.01483917236328125, -0.01137542724609375, 0.002567291259765625, 0.0238800048828125, -0.0011234283447265625, -0.0260009765625, 0.01198577880859375, -0.039154052734375, -0.0173492431640625, -0.0011310577392578125, -0.03570556640625, -0.00762939453125, -0.03839111328125, 0.004032135009765625, -0.048248291015625, -0.0004143714904785156, 0.0136566162109375, -0.0273284912109375, 0.033782958984375, 0.0435791015625, -0.048004150390625, 0.0151519775390625, -0.056610107421875, 0.03094482421875, -0.037139892578125, 0.052276611328125, 0.074951171875, 0.01512908935546875, -0.005222320556640625, 0.0005850791931152344, -0.02728271484375, 0.0180206298828125, 0.007640838623046875, -0.026763916015625, 0.01152801513671875, -0.1170654296875, -0.0257110595703125, -0.011474609375, -0.01261138916015625, -0.036590576171875, -0.0401611328125, -0.031097412109375, -0.034698486328125, -0.10089111328125, -0.055999755859375, 0.0010318756103515625, -0.0506591796875, 0.0284271240234375, 0.034393310546875, -0.007183074951171875, -0.041351318359375, 0.072509765625, -0.0007729530334472656, 0.0099945068359375, -0.03363037109375, -0.06243896484375, -0.051971435546875, -0.058135986328125, -0.01141357421875, 0.0026397705078125, -0.00537872314453125, 0.005908966064453125, -0.0030422210693359375, 0.00995635986328125, -0.0002551078796386719, 0.01152801513671875, 0.07940673828125, -0.0124664306640625, -0.038482666015625, -0.0178070068359375, -0.017669677734375, 0.0285186767578125, -0.00917816162109375, 0.004467010498046875, 0.03155517578125, -0.0135345458984375, 0.003021240234375, -0.00980377197265625, -0.00257110595703125, 0.0161590576171875, -0.08233642578125, -0.0087738037109375, 0.0257720947265625, -0.038604736328125, -0.0328369140625, -0.0158843994140625, 0.007476806640625, -0.0335693359375, -0.03155517578125, 0.0027751922607421875, -0.0149688720703125, -0.00390625, -0.0110015869140625, -0.0015850067138671875, -0.00435638427734375, -0.007648468017578125, -0.015899658203125, 0.01274871826171875, 0.0038814544677734375, 0.0076446533203125, 0.00836181640625, 0.051300048828125, -0.00726318359375, -0.042144775390625, 0.00638580322265625, -0.0202484130859375, -0.0287017822265625, 0.037353515625, -0.036285400390625, -0.032623291015625, 0.0211639404296875, -0.03912353515625, 0.00286102294921875, -0.0379638671875, -0.0174560546875, -0.016815185546875, 0.06353759765625, -0.048797607421875, -0.0102081298828125, 0.035369873046875, 0.0195159912109375, -0.007091522216796875, -0.01059722900390625, -0.041656494140625, -0.0272064208984375, -0.00876617431640625, -0.0121917724609375, -0.01641845703125, 0.0131988525390625, -0.043792724609375, 0.066162109375, 0.0095062255859375, -0.036407470703125, 0.03240966796875, 0.0018024444580078125, 0.016326904296875, -0.028289794921875, 0.005252838134765625, -0.037139892578125, -0.0224761962890625, -0.003978729248046875, -0.057830810546875, -0.00069427490234375, -0.036529541015625, 0.054412841796875, 0.0215911865234375, -0.001338958740234375, -0.007778167724609375, 0.037872314453125, -0.0146484375, 0.0723876953125, -0.0234527587890625, 0.01087188720703125, 0.01885986328125, -0.02484130859375, -0.003658294677734375, -0.0206756591796875, -0.0164947509765625, -0.009857177734375, -0.021209716796875, 0.034149169921875, 0.00011450052261352539, -0.00202178955078125, 0.0139617919921875, -0.0283660888671875, -0.060882568359375, -0.007633209228515625, -0.016204833984375, -0.016021728515625, -0.00823974609375, -0.0194091796875, 0.013427734375, -0.0435791015625, 0.03375244140625, 0.003326416015625, -0.0278472900390625, 0.006305694580078125, 0.033050537109375, 0.0106658935546875, -0.0301361083984375, -0.0567626953125, -0.013397216796875, 0.02972412109375, -0.0001590251922607422, 0.020477294921875, 0.0262908935546875, -0.03167724609375, 0.054840087890625, 0.0165557861328125, -0.005977630615234375, 0.050079345703125, 0.00970458984375, 0.028472900390625, -0.0185699462890625, 0.01560211181640625, 0.0374755859375, -0.049896240234375, 0.02825927734375, 0.01837158203125, -0.03045654296875, 0.01168060302734375, 0.03125, 0.007282257080078125, -0.03546142578125, -0.042633056640625, -0.05987548828125, 0.03466796875, -0.037139892578125, -0.0251922607421875, -0.0107879638671875, 0.000640869140625, -0.0141143798828125, -0.0175323486328125, -0.0208892822265625, 0.052947998046875, 0.0294036865234375, 0.037841796875, 0.00917816162109375, 0.04266357421875, -0.021759033203125, -0.006313323974609375, -0.0183258056640625, 0.0885009765625, -0.01515960693359375, -0.0684814453125, 0.0224761962890625, -0.021026611328125, 0.03704833984375, 0.053375244140625, 0.007289886474609375, 0.0290374755859375, 0.004650115966796875, -0.045501708984375, 0.000053048133850097656, 0.038482666015625, -0.0545654296875, -0.04541015625, -0.0242462158203125, -0.0300140380859375, 0.00799560546875, -0.008331298828125, 0.0767822265625, -0.0751953125, 0.060394287109375, -0.0021915435791015625, -0.0006995201110839844, 0.04864501953125, 0.0447998046875, 0.0234832763671875, -0.0240631103515625, -0.04791259765625, 0.05963134765625, -0.00450897216796875, -0.006664276123046875, 0.015228271484375, 0.040191650390625, 0.04132080078125, 0.00923919677734375, 0.01324462890625, -0.023651123046875, -0.03131103515625, -0.0020999908447265625, 0.016815185546875, -0.00672149658203125, -0.0517578125, -0.004756927490234375, 0.0269622802734375, 0.01873779296875, -0.02349853515625, 0.0085906982421875, -0.04193115234375, -0.00780487060546875, -0.002040863037109375, 0.0009703636169433594, -0.01629638671875, 0.00222015380859375, 0.0024967193603515625, -0.02294921875, 0.00965118408203125, 0.031494140625, -0.0677490234375, -0.0440673828125, -0.00830841064453125, -0.0036106109619140625, 0.040008544921875, -0.0077362060546875, 0.0170745849609375, -0.0247802734375, 0.00008100271224975586, 0.005123138427734375, 0.01690673828125, 0.007625579833984375, -0.0281524658203125, -0.0253753662109375, 0.0014667510986328125, -0.04998779296875, -0.01561737060546875, -0.00789642333984375, -0.054931640625, -0.0214080810546875, -0.0126953125, 0.00878143310546875, 0.00513458251953125, 0.0002377033233642578, -0.00650787353515625, -0.01128387451171875, 0.00740814208984375, 0.007030487060546875, 0.007579803466796875, -0.035980224609375, 0.0697021484375, 0.0025081634521484375, 0.022918701171875, -0.005359649658203125, 0.05712890625, 0.04644775390625, -0.024261474609375, 0.007579803466796875, -0.05035400390625, -0.042083740234375, 0.01058197021484375, -0.050567626953125, 0.0186614990234375, 0.01407623291015625, -0.006778717041015625, 0.023468017578125, -0.02606201171875, -0.004711151123046875, -0.0260009765625, 0.005664825439453125, -0.048126220703125, 0.0233612060546875, -0.0092010498046875, -0.03448486328125, 0.0726318359375, -0.024932861328125, -0.0205078125, 0.0538330078125, -0.05108642578125, 0.041351318359375, 0.06982421875, 0.029022216796875, -0.0161895751953125, -0.0233306884765625, -0.0182952880859375, -0.01444244384765625, 0.01428985595703125, 0.01253509521484375, -0.04229736328125, -0.0200958251953125, 0.0143585205078125, 0.03961181640625, 0.00786590576171875, -0.0197906494140625, 0.027374267578125, -0.006072998046875, -0.0009775161743164062, -0.004730224609375, 0.07281494140625, 0.04986572265625, -0.1121826171875, -0.0096435546875, 0.032257080078125, -0.023834228515625, -0.05548095703125, -0.006259918212890625, -0.002227783203125, 0.00433349609375, 0.0175018310546875, -0.00547027587890625, -0.040771484375, 0.0032558441162109375, 0.0064849853515625, -0.029083251953125, 0.02923583984375, -0.007843017578125, 0.0264892578125, -0.003772735595703125, -0.00850677490234375, 0.01788330078125, 0.00775146484375, -0.040374755859375, -0.01410675048828125, 0.034881591796875, -0.03533935546875, -0.08795166015625, 0.0179290771484375, -0.021881103515625, -0.01061248779296875, -0.03790283203125, -0.01290130615234375, 0.0169219970703125, 0.059722900390625, -0.03363037109375, -0.00429534912109375, 0.035247802734375, -0.00545501708984375, -0.0019388198852539062, 0.0019159317016601562, 0.032012939453125, -0.0201568603515625, -0.05657958984375, 0.017120361328125, -0.070556640625, -0.0147552490234375, -0.0033473968505859375, -0.020904541015625, -0.01238250732421875, 0.01142120361328125, -0.005626678466796875, 0.02911376953125, 0.01457977294921875, 0.002452850341796875, -0.00490570068359375, -0.002399444580078125, -0.044403076171875, -0.044952392578125, -0.0001773834228515625, -0.05572509765625, 0.0023899078369140625, -0.01094818115234375, -0.10302734375, 0.1048583984375, 0.020355224609375, 0.06365966796875, -0.019073486328125, 0.03546142578125, -0.016815185546875, 0.0000909566879272461, -0.018798828125, 0.02447509765625, 0.004062652587890625, -0.009002685546875, -0.036651611328125, 0.004497528076171875, -0.0233306884765625, 0.0127105712890625, 0.03729248046875, 0.017425537109375, -0.03173828125, -0.0121002197265625, 0.0165252685546875, 0.0201568603515625, -0.01416778564453125, 0.046600341796875, -0.0360107421875, 0.0197296142578125, -0.004444122314453125, -0.0340576171875, 0.0269927978515625, -0.016510009765625, -0.07061767578125, -0.00606536865234375, 0.0054931640625, -0.0246734619140625, 0.0222015380859375, -0.01062774658203125, -0.04541015625, 0.0244903564453125, 0.0117340087890625, 0.043060302734375, 0.020538330078125, 0.0015172958374023438, 0.00750732421875, 0.003208160400390625, 0.090087890625, -0.0325927734375, 0.056671142578125, -0.0188446044921875, 0.0002567768096923828, 0.035675048828125, 0.01201629638671875, 0.01395416259765625, -0.0016279220581054688, -0.0131072998046875, -0.0024814605712890625, 0.0143890380859375, 0.0139312744140625, 0.004909515380859375, 0.0262603759765625, -0.0261993408203125, -0.012420654296875, 0.017120361328125, 0.0306243896484375, -0.01763916015625, -0.04437255859375, 0.01544952392578125, -0.0017595291137695312, 0.0020580291748046875, 0.010528564453125, -0.005626678466796875, 0.0255584716796875, 0.060211181640625, 0.0220794677734375, -0.0183258056640625, -0.0121612548828125, 0.01053619384765625, 0.005306243896484375, 0.0099334716796875, 0.02130126953125, 0.00737762451171875, -0.063232421875, 0.00989532470703125, 0.02691650390625, 0.10614013671875, 0.0237579345703125, 0.0885009765625, -0.03070068359375, -0.0631103515625, 0.005771636962890625, 0.0228729248046875, -0.0204010009765625, -0.01324462890625, -0.040679931640625, -0.07830810546875, 0.016082763671875, 0.04205322265625, 0.031494140625, -0.007221221923828125, 0.051116943359375, 0.07879638671875, 0.004154205322265625, -0.0090484619140625, 0.0404052734375, 0.01522064208984375, 0.0215911865234375, -0.03509521484375, 0.01007080078125, -0.02520751953125, -0.023773193359375, -0.0258941650390625, 0.033233642578125, -0.006259918212890625, 0.011688232421875, 0.00566864013671875, 0.005329132080078125, -0.040802001953125, 0.016937255859375, -0.01282501220703125, 0.068359375, 0.0251312255859375, -0.08587646484375, -0.03955078125, -0.01378631591796875, -0.0241851806640625, 0.042633056640625, 0.05694580078125, 0.0010557174682617188, -0.004665374755859375, -0.01320648193359375, -0.0164947509765625, 0.0247802734375, -0.0180206298828125, -0.00109100341796875, -0.018157958984375, -0.00481414794921875, -0.0232391357421875, -0.024169921875, -0.026275634765625, 0.006443023681640625, 0.053955078125, 0.0135498046875, 0.01537322998046875, -0.0028285980224609375, 0.0241241455078125, 0.008331298828125, -0.00235748291015625, 0.041015625, -0.0005431175231933594, -0.0150604248046875, 0.042205810546875, 0.0430908203125, -0.0305023193359375, -0.036590576171875, -0.0088043212890625, 0.026336669921875, -0.039794921875, 0.003814697265625, -0.0024242401123046875, 0.020965576171875, -0.01477813720703125, 0.0814208984375, -0.0233154296875, -0.04443359375, -0.103271484375, -0.0221405029296875, 0.0648193359375, 0.049224853515625, -0.04095458984375, 0.0440673828125, -0.037200927734375, -0.03253173828125, 0.0139007568359375, -0.0582275390625, -0.01275634765625, 0.030548095703125, 0.003749847412109375, -0.062164306640625, -0.00922393798828125, -0.020660400390625, -0.03009033203125, 0.0007309913635253906, 0.054656982421875, -0.0210113525390625, -0.0379638671875, -0.0011768341064453125, -0.0069122314453125, 0.01025390625, -0.03155517578125, -0.006641387939453125, 0.0093841552734375, -0.01178741455078125, -0.01319122314453125, -0.0028438568115234375, -0.0219268798828125, -0.0201416015625, 0.0089111328125, 0.0168609619140625, 0.0107269287109375, -0.0300140380859375, -0.0386962890625, -0.01554107666015625, 0.0299072265625, -0.0100860595703125, -0.01055145263671875, 0.0079803466796875, -0.037872314453125, 0.00750732421875, -0.01020050048828125, -0.06524658203125, 0.0192108154296875, 0.0114288330078125, -0.04791259765625, -0.0130157470703125, -0.0343017578125, -0.040283203125, -0.047698974609375, -0.001155853271484375, -0.0101776123046875, 0.00475311279296875, 0.020050048828125, 0.01381683349609375, -0.007358551025390625, 0.05511474609375, 0.0126190185546875, -0.01039886474609375, 0.027923583984375, -0.02325439453125, -0.03753662109375, -0.03607177734375, 0.030242919921875, -0.06341552734375, -0.0391845703125, -0.057647705078125, 0.0154266357421875, 0.005096435546875, -0.0517578125, -0.0869140625, 0.07537841796875, -0.0249786376953125, -0.0186004638671875, -0.058624267578125, 0.0173492431640625, 0.00437164306640625, -0.0036678314208984375, -0.028656005859375, 0.01413726806640625, -0.0176849365234375, 0.033538818359375, 0.0013570785522460938, 0.0231170654296875, -0.0126495361328125, 0.0148773193359375, 0.03125, 0.05316162109375, 0.07708740234375, -0.024688720703125, 0.036773681640625, -0.018096923828125, 0.01739501953125, 0.059906005859375, -0.0288848876953125, -0.044708251953125, -0.02337646484375, -0.032562255859375, -0.015625, -0.01959228515625, -0.029144287109375, -0.0116729736328125, 0.05072021484375, 0.06597900390625, 0.017181396484375, -0.040435791015625, 0.02899169921875, -0.01201629638671875, -0.00940704345703125, -0.006267547607421875, 0.00193023681640625, -0.039794921875, -0.014251708984375, 0.01079559326171875, -0.01021575927734375, 0.04638671875, 0.00553131103515625, -0.010986328125, 0.007297515869140625, 0.0243682861328125, -0.0211181640625, -0.0626220703125, 0.0002620220184326172, 0.07275390625, -0.0362548828125, 0.0121307373046875, 0.020294189453125, 0.005176544189453125, 0.0259246826171875, 0.0110321044921875, -0.002674102783203125, 0.034820556640625, -0.0212554931640625, 0.0191192626953125, 0.0228271484375, -0.003940582275390625, -0.00696563720703125, 0.007366180419921875, -0.0330810546875, 0.02813720703125, 0.024444580078125, 0.059844970703125, -0.0338134765625, 0.009521484375, 0.035308837890625, -0.0280914306640625, -0.0228729248046875, -0.022064208984375, -0.025970458984375, 0.0181427001953125, -0.052764892578125, 0.0228271484375, -0.001033782958984375, -0.025909423828125, 0.027008056640625, 0.0092926025390625, 0.0178680419921875, -0.0299224853515625, 0.03289794921875, -0.0096893310546875, 0.0025577545166015625, 0.0211944580078125 ]
744fd5cb6c60aea176fb70442fb402360a5770f3
Wordpress Stackexchange Q: Make First post different from rest? Hi i'm using the code below to call post from a certain Category under certain post types, But how do i style it so that i can make the first post different from the rest of the post. <?php $queryObject = new Wp_Query( array( 'showposts' => 4, 'post_type' => array('pretty-little-liars', 'revenge', 'once-upon-a-time'), 'category_name' => celebrity, 'orderby' => 1, )); // The Loop! if ($queryObject->have_posts()) { ?> <?php while ($queryObject->have_posts()){ $queryObject->the_post(); ?> <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>"> <?php the_post_thumbnail('video-post'); ?> </a> <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php } ?> <?php wp_reset_postdata(); } ?> A: You could check current_post in the loop: if($queryObject->have_posts()) { while($queryObject->have_posts()) { $queryObject->the_post(); if( 0 == $queryObject->current_post ) { // this is the first post } else { // not the first post } } }
Q: Make First post different from rest? Hi i'm using the code below to call post from a certain Category under certain post types, But how do i style it so that i can make the first post different from the rest of the post. <?php $queryObject = new Wp_Query( array( 'showposts' => 4, 'post_type' => array('pretty-little-liars', 'revenge', 'once-upon-a-time'), 'category_name' => celebrity, 'orderby' => 1, )); // The Loop! if ($queryObject->have_posts()) { ?> <?php while ($queryObject->have_posts()){ $queryObject->the_post(); ?> <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>"> <?php the_post_thumbnail('video-post'); ?> </a> <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php } ?> <?php wp_reset_postdata(); } ?> A: You could check current_post in the loop: if($queryObject->have_posts()) { while($queryObject->have_posts()) { $queryObject->the_post(); if( 0 == $queryObject->current_post ) { // this is the first post } else { // not the first post } } } A: If you don't mind a little extra markup, you could wrap the first post in a div + use its class to style this post differently. <?php $queryObject = new Wp_Query( array( 'showposts' => 4, 'post_type' => array('pretty-little-liars', 'revenge', 'once-upon-a-time'), 'category_name' => celebrity, 'orderby' => 1, )); // The Loop if ( $queryObject->have_posts() ) : $i = 0; while ( $queryObject->have_posts() ) : $queryObject->the_post(); ?> <?php if ( $i == 0 ) : ?> <div class="first-post"> <?php endif; ?> <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>"> <?php the_post_thumbnail('video-post'); ?> </a> <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php if ( $i == 0 ) : ?> </div> <?php endif; ?> <?php $i++; ?> <?php endwhile; ?> <?php endif; ?> A: You can do something like this: <?php $queryObject = new Wp_Query( array( 'showposts' => 4, 'post_type' => array('pretty-little-liars', 'revenge', 'once-upon-a-time'), 'category_name' => celebrity, 'orderby' => 1, )); // Initiate some counter to point the first post $post_counter = 0; // The Loop! if ($queryObject->have_posts()) { while ($queryObject->have_posts()){ $queryObject->the_post(); if(!$post_counter) { ?> /* Custom styling for the first post */ <?php } else { /* common styling for the rest of the posts */ } $post_counter+=1; } wp_reset_postdata(); } ?>
wordpress
{ "language": "en", "length": 369, "provenance": "stackexchange_00019.jsonl.gz:427868", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81764" }
[ 0.04327392578125, 0.016082763671875, -0.0181884765625, 0.004230499267578125, 0.0181732177734375, -0.040679931640625, 0.037353515625, -0.031829833984375, -0.0229949951171875, 0.0010890960693359375, -0.036834716796875, 0.0214996337890625, -0.00896453857421875, -0.02764892578125, 0.031982421875, -0.0216217041015625, 0.056610107421875, -0.0085601806640625, 0.03369140625, -0.0028667449951171875, -0.0025634765625, 0.0287628173828125, 0.035186767578125, 0.0565185546875, 0.020965576171875, -0.008697509765625, 0.06719970703125, -0.04827880859375, 0.031219482421875, -0.0191497802734375, 0.0213775634765625, -0.036346435546875, 0.01522064208984375, 0.04144287109375, -0.03253173828125, 0.0286407470703125, 0.01275634765625, 0.0113525390625, 0.0202789306640625, 0.035491943359375, 0.01284027099609375, 0.006725311279296875, -0.021270751953125, 0.03350830078125, -0.03289794921875, -0.055419921875, 0.00653076171875, -0.0259552001953125, 0.033172607421875, -0.0098876953125, -0.027587890625, 0.00408935546875, -0.00220489501953125, -0.00435638427734375, -0.03515625, -0.0015554428100585938, -0.0145721435546875, -0.0418701171875, 0.036956787109375, -0.0072021484375, -0.01152801513671875, -0.034820556640625, 0.028961181640625, -0.008819580078125, -0.041961669921875, 0.0083160400390625, 0.0095672607421875, -0.00678253173828125, -0.035369873046875, -0.032806396484375, 0.031341552734375, -0.0095367431640625, -0.0120697021484375, -0.05718994140625, -0.01448822021484375, 0.045196533203125, -0.00836181640625, -0.039459228515625, -0.004364013671875, -0.0100555419921875, -0.002567291259765625, -0.0175018310546875, -0.02728271484375, -0.036346435546875, 0.01531219482421875, -0.03515625, -0.0170135498046875, 0.0211639404296875, -0.028228759765625, -0.0257415771484375, -0.02935791015625, -0.02606201171875, -0.0065460205078125, 0.00685882568359375, -0.0186767578125, -0.0173492431640625, 0.053985595703125, 0.0643310546875, -0.0311431884765625, -0.0237884521484375, -0.015625, -0.00858306884765625, -0.0293121337890625, -0.01557159423828125, 0.025726318359375, -0.0209503173828125, 0.0037078857421875, 0.0024433135986328125, 0.0828857421875, 0.0263671875, -0.011749267578125, 0.14208984375, -0.000980377197265625, -0.0175323486328125, -0.047882080078125, 0.027862548828125, -0.00627899169921875, 0.012298583984375, 0.0026760101318359375, 0.032501220703125, 0.01169586181640625, 0.03509521484375, 0.040435791015625, -0.046783447265625, 0.00858306884765625, 0.01520538330078125, -0.022216796875, -0.0657958984375, 0.0043182373046875, 0.052093505859375, -0.0267181396484375, -0.0155029296875, 0.07574462890625, 0.031158447265625, 0.0112152099609375, -0.030853271484375, 0.030120849609375, -0.0087432861328125, -0.006805419921875, 0.01280975341796875, 0.030609130859375, -0.045867919921875, -0.032470703125, 0.0247650146484375, -0.00428009033203125, 0.049957275390625, 0.0226593017578125, -0.00849151611328125, -0.01273345947265625, -0.0784912109375, 0.03497314453125, -0.06292724609375, 0.0081024169921875, 0.00388336181640625, 0.0284881591796875, -0.005359649658203125, 0.0230712890625, -0.01537322998046875, 0.001220703125, 0.007965087890625, 0.050384521484375, -0.018341064453125, -0.01036834716796875, -0.0298919677734375, -0.0640869140625, 0.0299224853515625, -0.07769775390625, -0.0171051025390625, 0.020233154296875, 0.04730224609375, 0.00794219970703125, 0.00879669189453125, 0.025665283203125, 0.0018434524536132812, -0.027740478515625, -0.0164031982421875, -0.033050537109375, -0.0219268798828125, 0.0072021484375, 0.052093505859375, 0.0038299560546875, -0.0311737060546875, -0.007419586181640625, -0.0007333755493164062, -0.035400390625, 0.029022216796875, 0.01470184326171875, 0.049774169921875, -0.00875091552734375, 0.0197296142578125, 0.054412841796875, 0.037109375, -0.05194091796875, 0.039031982421875, 0.0013227462768554688, -0.0235595703125, -0.03265380859375, -0.011383056640625, -0.0204010009765625, 0.00469970703125, 0.03961181640625, 0.0146331787109375, -0.00934600830078125, -0.0255279541015625, -0.081787109375, 0.004688262939453125, -0.0230865478515625, 0.05096435546875, -0.0158233642578125, 0.0199432373046875, 0.0322265625, 0.033050537109375, -0.0396728515625, -0.03564453125, -0.0240478515625, 0.00945281982421875, -0.0031032562255859375, -0.0164031982421875, -0.0205230712890625, -0.01136016845703125, -0.005626678466796875, -0.0472412109375, -0.01329803466796875, 0.06011962890625, 0.0601806640625, -0.01390838623046875, -0.01446533203125, -0.0374755859375, 0.019805908203125, 0.0198822021484375, -0.08441162109375, 0.01654052734375, 0.0126495361328125, -0.0030422210693359375, -0.047088623046875, 0.0027637481689453125, -0.00408935546875, -0.0015621185302734375, -0.00829315185546875, 0.035186767578125, 0.044036865234375, -0.00861358642578125, -0.007778167724609375, 0.0033931732177734375, 0.0226287841796875, -0.01806640625, 0.01947021484375, -0.02545166015625, 0.0164794921875, 0.057952880859375, -0.02520751953125, 0.0195770263671875, 0.0352783203125, 0.00785064697265625, 0.01401519775390625, 0.040374755859375, -0.0017757415771484375, 0.04168701171875, -0.039764404296875, 0.037139892578125, -0.0130767822265625, 0.0006175041198730469, 0.01256561279296875, -0.01053619384765625, 0.08782958984375, -0.01513671875, 0.0309600830078125, -0.004718780517578125, -0.048614501953125, 0.01309967041015625, 0.0222320556640625, -0.00962066650390625, 0.00333404541015625, 0.0283966064453125, 0.0128936767578125, -0.01204681396484375, -0.028045654296875, -0.0136566162109375, -0.0189971923828125, 0.001003265380859375, -0.0025463104248046875, 0.036163330078125, 0.011138916015625, -0.009796142578125, -0.0173187255859375, -0.06622314453125, 0.01076507568359375, 0.0161285400390625, 0.018768310546875, -0.013519287109375, 0.04931640625, -0.04302978515625, -0.0648193359375, 0.053955078125, -0.01104736328125, -0.05926513671875, -0.036865234375, -0.03948974609375, 0.03546142578125, -0.048309326171875, 0.0038509368896484375, 0.052825927734375, 0.0089263916015625, 0.007259368896484375, -0.020599365234375, 0.003574371337890625, -0.0276641845703125, 0.00699615478515625, -0.02960205078125, -0.033477783203125, -0.0352783203125, 0.0128021240234375, 0.031158447265625, 0.08697509765625, 0.00789642333984375, -0.049652099609375, 0.0222015380859375, 0.05596923828125, -0.048828125, -0.09027099609375, 0.016387939453125, -0.06158447265625, 0.05133056640625, 0.006511688232421875, -0.01364898681640625, -0.038543701171875, 0.040435791015625, 0.00904083251953125, 0.00789642333984375, -0.00919342041015625, -0.0180816650390625, -0.0227813720703125, -0.045135498046875, -0.03240966796875, 0.003360748291015625, 0.0016412734985351562, 0.01641845703125, 0.0297393798828125, 0.029266357421875, -0.0280914306640625, 0.0164031982421875, 0.016326904296875, -0.0322265625, -0.00005745887756347656, 0.009674072265625, -0.0088653564453125, -0.032073974609375, 0.02764892578125, 0.023712158203125, 0.006336212158203125, -0.0251617431640625, -0.01418304443359375, -0.01323699951171875, -0.0081329345703125, 0.018218994140625, 0.03558349609375, 0.0212554931640625, 0.05267333984375, 0.0703125, -0.0033397674560546875, -0.040069580078125, -0.00902557373046875, -0.067138671875, 0.003993988037109375, 0.026519775390625, 0.0053253173828125, -0.030242919921875, 0.0251922607421875, -0.010650634765625, -0.020263671875, 0.046295166015625, -0.0391845703125, 0.045074462890625, -0.0033779144287109375, -0.0137481689453125, -0.027099609375, -0.00150299072265625, -0.0335693359375, -0.033172607421875, -0.034271240234375, -0.00066375732421875, 0.0008792877197265625, -0.0273284912109375, -0.0128021240234375, -0.007205963134765625, 0.0099334716796875, -0.0621337890625, -0.00726318359375, 0.0005311965942382812, -0.004791259765625, 0.007659912109375, 0.0416259765625, -0.0736083984375, -0.022857666015625, -0.0018100738525390625, 0.0016260147094726562, -0.0259552001953125, -0.0160369873046875, -0.050018310546875, 0.0074920654296875, -0.09588623046875, -0.009185791015625, 0.0005869865417480469, -0.04150390625, -0.023406982421875, 0.0282440185546875, -0.08892822265625, -0.029327392578125, 0.042266845703125, -0.0233917236328125, -0.0026187896728515625, -0.0084075927734375, -0.02923583984375, -0.004932403564453125, -0.03033447265625, -0.024810791015625, -0.07000732421875, -0.0305328369140625, 0.00940704345703125, 0.07867431640625, 0.0017461776733398438, -0.0101165771484375, -0.01360321044921875, 0.057373046875, 0.01070404052734375, 0.01143646240234375, -0.0008149147033691406, -0.0107421875, -0.0247344970703125, 0.03900146484375, 0.01297760009765625, -0.0037784576416015625, -0.0171356201171875, -0.03131103515625, 0.0003542900085449219, 0.033935546875, -0.0517578125, 0.0186920166015625, -0.0426025390625, 0.0169525146484375, -0.08154296875, -0.0384521484375, 0.011505126953125, 0.02838134765625, 0.000044405460357666016, 0.00444793701171875, -0.051544189453125, -0.07220458984375, 0.028472900390625, -0.0106201171875, -0.025054931640625, 0.00482177734375, 0.039093017578125, 0.0159454345703125, -0.0250091552734375, -0.00217437744140625, -0.0214691162109375, 0.034423828125, -0.00876617431640625, 0.021484375, -0.007617950439453125, -0.035064697265625, 0.06378173828125, -0.0034503936767578125, 0.00872039794921875, 0.00789642333984375, -0.0031909942626953125, 0.01268768310546875, -0.0005292892456054688, -0.0015974044799804688, 0.0023021697998046875, 0.01421356201171875, -0.00859832763671875, 0.0007381439208984375, 0.032440185546875, 0.01800537109375, -0.01084136962890625, 0.0246734619140625, -0.03057861328125, -0.0118865966796875, -0.018524169921875, 0.019561767578125, 0.0201263427734375, 0.013336181640625, 0.0214996337890625, 0.0005893707275390625, -0.0240478515625, -0.00943756103515625, -0.00795745849609375, -0.018646240234375, 0.031005859375, 0.01154327392578125, 0.02679443359375, 0.011444091796875, 0.00109100341796875, -0.0384521484375, -0.004062652587890625, 0.0191192626953125, 0.003047943115234375, -0.034423828125, -0.0077667236328125, -0.009674072265625, 0.03363037109375, -0.001003265380859375, 0.0156402587890625, 0.035552978515625, 0.001285552978515625, -0.00905609130859375, 0.00563812255859375, 0.00208282470703125, -0.0116424560546875, -0.020904541015625, 0.05126953125, 0.028778076171875, -0.0033359527587890625, 0.0328369140625, 0.035491943359375, 0.04498291015625, 0.01007080078125, -0.03460693359375, 0.032318115234375, 0.0059967041015625, 0.01416015625, 0.002368927001953125, 0.0247802734375, 0.0011339187622070312, 0.001834869384765625, 0.038238525390625, -0.035125732421875, -0.02215576171875, 0.00852203369140625, 0.04998779296875, -0.038543701171875, -0.033050537109375, 0.031707763671875, -0.004070281982421875, 0.0012655258178710938, 0.00408172607421875, 0.04522705078125, 0.00577545166015625, 0.01544189453125, 0.0235443115234375, -0.016021728515625, -0.01129150390625, 0.0204620361328125, 0.0155029296875, -0.00946807861328125, 0.0174102783203125, -0.0203704833984375, 0.0159454345703125, -0.029693603515625, -0.0202484130859375, -0.000019371509552001953, -0.054443359375, -0.0501708984375, 0.05364990234375, 0.019989013671875, -0.018798828125, -0.01482391357421875, 0.00826263427734375, 0.0003485679626464844, 0.05633544921875, -0.06085205078125, -0.021209716796875, -0.060516357421875, -0.020233154296875, 0.0574951171875, 0.04974365234375, -0.056243896484375, 0.01332855224609375, -0.038177490234375, -0.00865936279296875, -0.0019550323486328125, -0.036224365234375, -0.035247802734375, -0.0302886962890625, 0.0204620361328125, 0.00667572021484375, 0.040863037109375, 0.00922393798828125, -0.006805419921875, 0.0189361572265625, 0.019866943359375, 0.050079345703125, -0.035919189453125, 0.07757568359375, 0.026824951171875, 0.0158233642578125, 0.0093231201171875, 0.01496124267578125, -0.0210723876953125, 0.006244659423828125, -0.02850341796875, -0.062103271484375, -0.005584716796875, 0.0225830078125, -0.0242156982421875, 0.051422119140625, 0.053680419921875, 0.004383087158203125, 0.0255126953125, -0.0025482177734375, 0.0216217041015625, -0.0216217041015625, -0.0352783203125, -0.033416748046875, -0.0023670196533203125, 0.02191162109375, 0.00676727294921875, 0.03814697265625, -0.00537109375, -0.043548583984375, -0.00116729736328125, 0.00823211669921875, 0.004833221435546875, 0.0185699462890625, -0.0215911865234375, -0.0106201171875, 0.036865234375, 0.0274810791015625, 0.06121826171875, 0.0030879974365234375, 0.059783935546875, 0.051910400390625, -0.026031494140625, 0.0300140380859375, 0.030059814453125, 0.05615234375, -0.01000213623046875, 0.051666259765625, 0.05084228515625, 0.00550079345703125, -0.00905609130859375, -0.0034961700439453125, 0.043548583984375, -0.0206298828125, 0.006481170654296875, 0.0103759765625, -0.0089263916015625, 0.033233642578125, 0.0197601318359375, -0.002323150634765625, -0.01277923583984375, 0.0220794677734375, -0.01129150390625, -0.01007843017578125, 0.016387939453125, -0.0042572021484375, -0.011016845703125, -0.017791748046875, 0.0261077880859375, 0.0266265869140625, -0.05255126953125, 0.033599853515625, 0.0281219482421875, 0.0012760162353515625, -0.052032470703125, -0.003757476806640625, -0.01442718505859375, -0.027557373046875, -0.06512451171875, 0.0060882568359375, 0.03546142578125, 0.0076904296875, 0.0206451416015625, 0.017578125, -0.005420684814453125, 0.0171051025390625, -0.0085906982421875, 0.0056915283203125, -0.02801513671875, -0.01404571533203125, -0.044830322265625, -0.0306243896484375, 0.005077362060546875, 0.0465087890625, -0.046173095703125, 0.0401611328125, -0.0148162841796875, -0.01276397705078125, -0.001918792724609375, -0.0280303955078125, 0.039520263671875, -0.01727294921875, -0.01172637939453125, 0.044921875, 0.015655517578125, -0.03680419921875, -0.0196533203125, -0.014892578125, -0.04705810546875, -0.0246124267578125, -0.01222991943359375, -0.0439453125, -0.004848480224609375, -0.037628173828125, -0.072998046875, 0.07244873046875, -0.01477813720703125, 0.055419921875, 0.01541900634765625, -0.001949310302734375, -0.01702880859375, -0.007549285888671875, -0.0321044921875, 0.06988525390625, 0.0105133056640625, 0.039642333984375, -0.0750732421875, -0.0374755859375, 0.02008056640625, 0.06390380859375, 0.01082611083984375, -0.0013723373413085938, -0.008392333984375, 0.01496124267578125, 0.04852294921875, 0.015106201171875, -0.002956390380859375, 0.021209716796875, -0.0209197998046875, 0.053955078125, 0.0303192138671875, -0.0200042724609375, 0.04241943359375, -0.0035839080810546875, -0.0655517578125, 0.0105438232421875, 0.0259246826171875, 0.02862548828125, 0.0078277587890625, 0.02783203125, -0.056488037109375, 0.005374908447265625, 0.047760009765625, 0.002361297607421875, 0.014404296875, 0.050506591796875, 0.058563232421875, -0.050872802734375, -0.0266571044921875, -0.03204345703125, 0.05218505859375, 0.01139068603515625, 0.0159454345703125, 0.042449951171875, 0.005062103271484375, 0.06475830078125, -0.0002491474151611328, 0.0037822723388671875, -0.01299285888671875, 0.0195770263671875, 0.0374755859375, 0.043731689453125, 0.01464080810546875, -0.034759521484375, 0.006145477294921875, 0.037811279296875, 0.06878662109375, -0.04742431640625, -0.0031108856201171875, 0.0235595703125, 0.030181884765625, -0.00777435302734375, -0.0272979736328125, 0.0035400390625, -0.00498199462890625, 0.0248870849609375, -0.033538818359375, 0.00672149658203125, 0.0216522216796875, 0.0238800048828125, 0.00499725341796875, 0.01141357421875, -0.0478515625, -0.01506805419921875, -0.03973388671875, 0.0094757080078125, 0.031951904296875, 0.06976318359375, 0.0045166015625, 0.07916259765625, -0.01433563232421875, -0.0244903564453125, 0.00106048583984375, -0.0045013427734375, 0.0038661956787109375, -0.001689910888671875, -0.0017919540405273438, 0.0345458984375, -0.0615234375, 0.0175628662109375, 0.026031494140625, -0.0214691162109375, 0.045318603515625, 0.0322265625, -0.041839599609375, -0.007534027099609375, 0.005710601806640625, -0.0223541259765625, -0.0294647216796875, -0.00957489013671875, -0.0082550048828125, -0.00099945068359375, -0.0034942626953125, 0.0201416015625, 0.07696533203125, -0.0411376953125, -0.0051422119140625, 0.0202789306640625, 0.005451202392578125, -0.015869140625, 0.041290283203125, 0.01971435546875, 0.055511474609375, 0.0238494873046875, -0.07244873046875, 0.0086669921875, -0.032470703125, -0.08074951171875, 0.0311737060546875, 0.0243988037109375, -0.053558349609375, 0.02813720703125, 0.0090179443359375, -0.0009174346923828125, -0.00939178466796875, -0.0162353515625, 0.0297698974609375, 0.0281982421875, 0.0168304443359375, 0.024810791015625, -0.06201171875, -0.039215087890625, -0.00579833984375, 0.0203857421875, -0.0128021240234375, 0.041900634765625, 0.0184783935546875, 0.0201263427734375, -0.043975830078125, 0.0772705078125, -0.09124755859375, -0.0477294921875, 0.057464599609375, -0.00843048095703125, 0.01442718505859375, 0.00879669189453125, -0.0278167724609375, 0.01446533203125, 0.0469970703125, -0.0099945068359375, 0.037567138671875, -0.01233673095703125, 0.0096588134765625, -0.059234619140625, 0.036712646484375, -0.0147857666015625, 0.0094146728515625, 0.004779815673828125, -0.01029205322265625, 0.050262451171875, 0.0228424072265625, -0.00576019287109375, 0.025848388671875, 0.0281219482421875, -0.01184844970703125, 0.0179290771484375, 0.003276824951171875, 0.01454925537109375, 0.041778564453125, 0.008758544921875, -0.01393890380859375, 0.0037021636962890625, -0.014984130859375, -0.00023627281188964844, 0.023651123046875, 0.002185821533203125, 0.017669677734375, -0.0189056396484375, 0.017242431640625, -0.0002313852310180664, 0.023284912109375, -0.0261383056640625, -0.00638580322265625, 0.036407470703125, -0.008636474609375, -0.03118896484375, 0.00902557373046875, -0.0229949951171875, -0.025970458984375, -0.00839996337890625, -0.007358551025390625, -0.017303466796875, -0.0455322265625, -0.0286712646484375, -0.0022373199462890625, 0.0030002593994140625, 0.0106048583984375, -0.053955078125, 0.045074462890625, -0.0038051605224609375, 0.0201263427734375, -0.038787841796875, -0.03485107421875, -0.0028553009033203125, 0.024749755859375, -0.04083251953125, -0.03582763671875, -0.08099365234375, 0.0016384124755859375, -0.09832763671875, -0.00811767578125, 0.0306854248046875, 0.00179290771484375, -0.0312347412109375, -0.0217132568359375, -0.019561767578125, 0.0189361572265625, -0.039398193359375, -0.022735595703125, 0.0084075927734375, 0.01812744140625, -0.0372314453125, -0.0413818359375, 0.0276031494140625, -0.056976318359375, -0.0140838623046875, 0.0183258056640625, -0.00846099853515625, 0.017242431640625, -0.00737762451171875, -0.00553131103515625, 0.10174560546875, -0.0018062591552734375, 0.0042724609375, -0.023406982421875, 0.00980377197265625, -0.014190673828125, 0.0211944580078125, 0.0182037353515625, -0.050933837890625, -0.00760650634765625, 0.014678955078125, -0.0021820068359375, 0.04290771484375, 0.022369384765625, 0.00010263919830322266, -0.020355224609375, -0.018218994140625, -0.0300750732421875, 0.00018835067749023438, 0.024932861328125, -0.00829315185546875, 0.0283203125, 0.0194091796875, -0.03729248046875, -0.00847625732421875, -0.0186309814453125, 0.00551605224609375, -0.0032634735107421875, -0.03631591796875, -0.0634765625, -0.0108184814453125, 0.05853271484375, 0.0755615234375, 0.022857666015625, -0.041229248046875, -0.02569580078125, -0.004215240478515625, -0.04217529296875, -0.0128021240234375, 0.031524658203125, -0.071533203125, -0.01471710205078125, -0.00778961181640625, -0.0147857666015625, 0.019500732421875, -0.04388427734375, -0.0297088623046875, -0.0041656494140625, -0.00818634033203125, 0.01666259765625, -0.04132080078125, 0.0599365234375, -0.005481719970703125, -0.0185089111328125, -0.0198822021484375, -0.004520416259765625, -0.0323486328125, -0.01012420654296875, -0.00389862060546875, -0.006900787353515625, 0.00568389892578125, 0.00887298583984375, -0.01470184326171875, 0.03546142578125, -0.004119873046875, 0.033599853515625, -0.0174560546875, -0.0272979736328125, -0.0107879638671875, 0.021636962890625, -0.0298919677734375, 0.0122222900390625, -0.015777587890625, 0.01319122314453125, -0.0007085800170898438, 0.00433349609375, 0.036590576171875, 0.007556915283203125, 0.033111572265625, -0.0003330707550048828, -0.02471923828125, 0.01702880859375, -0.023773193359375, -0.0025768280029296875, 0.01201629638671875, -0.0032405853271484375, -0.04669189453125, 0.020050048828125, -0.0281829833984375, 0.00498199462890625, 0.006866455078125 ]
1077be5972358c189480ea1f14d22d4c39850c30
Wordpress Stackexchange Q: Protocol neutral URLS with wp_enqueue_script (SSL issues)? How do I use wp_enqueue_script so that I get protocol neutral URLs? Here is how I'm currently using it: <?php wp_enqueue_script('name', get_bloginfo('template_directory'). '/js/name.pack.js'); ?> I saw that home_url() is protocol aware so I figured theme_url() would be also but I'm getting the error below when I use it. Call to undefined function theme_url() A: You can't -- URLs must have a protocol for WordPress to enqueue them. What you can do, though, is detect which protocol to use and then use that. $protocol = is_ssl() ? 'https' : 'http'; $url = "$protocol://example.com/resource"; But for enqueuing scripts from your theme, you should use get_template_directory_uri() or get_stylesheet_directory_uri() which already handle SSL: wp_enqueue_script('name', get_stylesheet_directory_uri() . '/js/name.pack.js');
Q: Protocol neutral URLS with wp_enqueue_script (SSL issues)? How do I use wp_enqueue_script so that I get protocol neutral URLs? Here is how I'm currently using it: <?php wp_enqueue_script('name', get_bloginfo('template_directory'). '/js/name.pack.js'); ?> I saw that home_url() is protocol aware so I figured theme_url() would be also but I'm getting the error below when I use it. Call to undefined function theme_url() A: You can't -- URLs must have a protocol for WordPress to enqueue them. What you can do, though, is detect which protocol to use and then use that. $protocol = is_ssl() ? 'https' : 'http'; $url = "$protocol://example.com/resource"; But for enqueuing scripts from your theme, you should use get_template_directory_uri() or get_stylesheet_directory_uri() which already handle SSL: wp_enqueue_script('name', get_stylesheet_directory_uri() . '/js/name.pack.js'); A: You can also leave off the protocol, like this: wp_enqueue_style( 'be-fonts', '//fonts.googleapis.com/css?family=Ubuntu:300,400,500' );
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:427903", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81893" }
[ -0.011749267578125, -0.0084686279296875, -0.07635498046875, -0.0238494873046875, 0.003902435302734375, -0.04864501953125, 0.01178741455078125, 0.03240966796875, -0.034698486328125, 0.0292816162109375, 0.005817413330078125, -0.0022449493408203125, -0.039459228515625, -0.026458740234375, -0.00495147705078125, -0.032379150390625, 0.04052734375, -0.04388427734375, -0.01526641845703125, -0.011932373046875, 0.01549530029296875, 0.00402069091796875, -0.00980377197265625, 0.038970947265625, 0.0255126953125, -0.0069732666015625, 0.12078857421875, -0.00496673583984375, -0.000720977783203125, -0.01800537109375, 0.0312347412109375, -0.0279541015625, 0.032958984375, 0.0340576171875, -0.045196533203125, 0.009918212890625, 0.031524658203125, 0.01515960693359375, 0.00464630126953125, 0.03033447265625, 0.004032135009765625, 0.007427215576171875, 0.029022216796875, 0.03472900390625, -0.00008028745651245117, -0.056915283203125, 0.01312255859375, -0.048858642578125, 0.0023021697998046875, 0.054290771484375, 0.003986358642578125, -0.025115966796875, -0.0011749267578125, 0.043701171875, -0.01751708984375, -0.00855255126953125, 0.0035877227783203125, -0.010589599609375, -0.01345062255859375, 0.0261993408203125, 0.008544921875, 0.043731689453125, 0.00009465217590332031, 0.0030002593994140625, -0.04241943359375, 0.00624847412109375, -0.0105133056640625, 0.0008044242858886719, -0.05078125, -0.039337158203125, 0.042510986328125, -0.0189666748046875, -0.00795745849609375, -0.0249481201171875, -0.03509521484375, 0.0299835205078125, -0.016876220703125, 0.0001558065414428711, 0.0153656005859375, -0.0161285400390625, 0.0196990966796875, -0.01287078857421875, -0.0465087890625, -0.01319122314453125, 0.0163421630859375, 0.0193328857421875, -0.00905609130859375, -0.026092529296875, -0.01953125, 0.00936126708984375, -0.0341796875, -0.00884246826171875, 0.03741455078125, -0.00809478759765625, -0.03228759765625, -0.0165252685546875, 0.049163818359375, 0.01126861572265625, 0.0245361328125, 0.017181396484375, 0.00974273681640625, -0.067138671875, 0.049407958984375, -0.032135009765625, -0.01535797119140625, 0.048736572265625, 0.02044677734375, 0.01457977294921875, 0.039031982421875, 0.00968170166015625, 0.0205535888671875, 0.03363037109375, 0.006023406982421875, 0.0203857421875, -0.0305633544921875, -0.02069091796875, -0.044952392578125, -0.002101898193359375, -0.022369384765625, 0.0007867813110351562, -0.01146697998046875, 0.04034423828125, -0.0218505859375, -0.0198211669921875, -0.010650634765625, -0.0199737548828125, 0.025543212890625, -0.03314208984375, -0.0015573501586914062, 0.048309326171875, -0.018280029296875, -0.0246734619140625, 0.038787841796875, 0.031768798828125, 0.007480621337890625, -0.038787841796875, 0.04412841796875, 0.01055908203125, -0.027923583984375, -0.025421142578125, 0.042510986328125, -0.03765869140625, -0.04937744140625, 0.0025997161865234375, 0.001148223876953125, 0.0008425712585449219, 0.0247650146484375, 0.036102294921875, 0.00811767578125, -0.019805908203125, -0.0085906982421875, 0.0265960693359375, 0.03765869140625, 0.0110015869140625, -0.00568389892578125, -0.035980224609375, 0.05487060546875, -0.0494384765625, 0.0086669921875, -0.0687255859375, -0.0272674560546875, 0.01305389404296875, 0.01340484619140625, -0.01453399658203125, -0.0017032623291015625, -0.037567138671875, 0.01540374755859375, 0.012603759765625, 0.0208892822265625, 0.070556640625, -0.04632568359375, -0.0091552734375, -0.0111846923828125, 0.006683349609375, -0.0208282470703125, 0.004428863525390625, -0.0275115966796875, 0.0203094482421875, 0.02215576171875, 0.0025577545166015625, 0.00936126708984375, -0.0286102294921875, 0.055328369140625, -0.01227569580078125, -0.0323486328125, 0.025909423828125, 0.02349853515625, 0.0360107421875, 0.005645751953125, 0.0011882781982421875, 0.0928955078125, 0.0150909423828125, -0.024993896484375, 0.019622802734375, -0.0269775390625, -0.0203704833984375, 0.0034008026123046875, 0.003978729248046875, -0.0273895263671875, 0.0125579833984375, 0.00942230224609375, -0.01081085205078125, 0.0328369140625, -0.0222930908203125, 0.0237884521484375, -0.00003975629806518555, -0.00012731552124023438, 0.0202484130859375, -0.0274505615234375, 0.01309967041015625, 0.0132293701171875, 0.01531219482421875, -0.037078857421875, -0.03985595703125, -0.0112762451171875, 0.01447296142578125, 0.00251007080078125, 0.055450439453125, -0.007305145263671875, 0.04296875, 0.0046844482421875, -0.02825927734375, 0.0104217529296875, 0.0143585205078125, -0.0275726318359375, -0.01311492919921875, -0.0030670166015625, 0.0055389404296875, 0.01361846923828125, -0.0045013427734375, 0.05450439453125, 0.0036029815673828125, 0.0024814605712890625, 0.06903076171875, 0.0035762786865234375, -0.002643585205078125, 0.0236968994140625, 0.003612518310546875, 0.0291290283203125, 0.00531768798828125, 0.053955078125, 0.0499267578125, -0.02459716796875, -0.06634521484375, 0.08001708984375, -0.036346435546875, 0.007480621337890625, -0.0394287109375, 0.00902557373046875, 0.016357421875, 0.000232696533203125, -0.01216888427734375, 0.01422882080078125, -0.064697265625, -0.00298309326171875, 0.035858154296875, 0.00004106760025024414, 0.0217437744140625, -0.00927734375, 0.0110321044921875, -0.008544921875, 0.0523681640625, 0.0221405029296875, 0.0101470947265625, 0.0037784576416015625, 0.0212554931640625, 0.01239776611328125, 0.012176513671875, -0.0174560546875, 0.00981903076171875, 0.0012693405151367188, -0.03619384765625, 0.006191253662109375, 0.054443359375, 0.04571533203125, -0.0579833984375, -0.005985260009765625, -0.03240966796875, 0.01043701171875, 0.02642822265625, -0.00983428955078125, 0.0306396484375, -0.052154541015625, -0.0139617919921875, -0.05780029296875, -0.059417724609375, 0.0211334228515625, 0.052520751953125, 0.0254058837890625, 0.01971435546875, 0.0584716796875, -0.0086517333984375, -0.0035400390625, 0.0164337158203125, 0.02685546875, -0.041656494140625, 0.053131103515625, -0.00033164024353027344, 0.01332855224609375, -0.01308441162109375, 0.0445556640625, 0.036346435546875, -0.022705078125, 0.013427734375, 0.002384185791015625, 0.0030612945556640625, 0.01496124267578125, -0.01441192626953125, -0.004364013671875, 0.0192413330078125, -0.0806884765625, -0.00873565673828125, 0.01160430908203125, -0.05938720703125, 0.0279693603515625, -0.0031147003173828125, -0.0200958251953125, -0.008209228515625, -0.119140625, -0.07818603515625, -0.0126800537109375, -0.056671142578125, 0.032867431640625, -0.01123809814453125, -0.0142669677734375, -0.005527496337890625, 0.0068359375, 0.0227203369140625, -0.0188751220703125, -0.0079498291015625, -0.08447265625, -0.08416748046875, -0.09014892578125, -0.0021991729736328125, -0.0209197998046875, 0.00479888916015625, 0.0147247314453125, 0.006221771240234375, 0.0151214599609375, -0.0191192626953125, 0.0236053466796875, 0.036041259765625, -0.0170135498046875, -0.01198577880859375, 0.0308837890625, -0.03167724609375, -0.0465087890625, 0.0009503364562988281, 0.0179595947265625, 0.009246826171875, -0.0165557861328125, 0.00821685791015625, -0.00925445556640625, -0.0117340087890625, -0.00036072731018066406, 0.005420684814453125, 0.004535675048828125, -0.0158843994140625, 0.0139617919921875, -0.0479736328125, -0.0178070068359375, 0.0024852752685546875, -0.023712158203125, -0.0047760009765625, 0.003620147705078125, 0.0014095306396484375, -0.004848480224609375, 0.0240020751953125, -0.00800323486328125, -0.0223541259765625, 0.0279998779296875, -0.0218963623046875, 0.0653076171875, -0.0129547119140625, 0.007587432861328125, -0.025604248046875, 0.05206298828125, -0.00080108642578125, -0.0248260498046875, 0.0034999847412109375, 0.0160369873046875, -0.0008258819580078125, -0.03607177734375, -0.06658935546875, -0.0272369384765625, 0.029296875, -0.032470703125, 0.037994384765625, -0.051849365234375, -0.0163726806640625, -0.03790283203125, 0.074462890625, -0.03759765625, -0.018707275390625, -0.00728607177734375, 0.03790283203125, -0.07135009765625, -0.07464599609375, -0.01082611083984375, 0.002864837646484375, -0.072021484375, 0.01197052001953125, -0.0102386474609375, -0.037933349609375, 0.0170135498046875, -0.041748046875, -0.0198822021484375, -0.050201416015625, 0.044158935546875, -0.0006012916564941406, -0.0079498291015625, 0.044952392578125, -0.002994537353515625, -0.003910064697265625, -0.03668212890625, 0.0117645263671875, -0.08526611328125, -0.028472900390625, 0.0130462646484375, 0.06329345703125, 0.006809234619140625, -0.035308837890625, -0.005466461181640625, 0.058349609375, 0.0032253265380859375, 0.0018062591552734375, 0.0205078125, 0.0013303756713867188, 0.01078033447265625, 0.03167724609375, 0.0099945068359375, -0.0137786865234375, -0.00007909536361694336, 0.01224517822265625, -0.07049560546875, -0.0164337158203125, 0.0004355907440185547, -0.015960693359375, 0.07196044921875, -0.055450439453125, -0.02838134765625, 0.0121612548828125, 0.0092315673828125, 0.005260467529296875, -0.0012998580932617188, -0.0245819091796875, 0.01432037353515625, -0.0302886962890625, 0.01374053955078125, -0.035400390625, 0.007732391357421875, -0.003650665283203125, 0.0455322265625, 0.03302001953125, -0.002040863037109375, 0.043914794921875, 0.03460693359375, 0.0113983154296875, 0.0201873779296875, 0.074462890625, 0.036468505859375, -0.004352569580078125, 0.0228118896484375, 0.0194244384765625, 0.00426483154296875, 0.027557373046875, 0.0035495758056640625, 0.029388427734375, -0.0036773681640625, 0.0007271766662597656, 0.051055908203125, -0.06640625, 0.0193939208984375, 0.0009946823120117188, 0.0009794235229492188, -0.0089569091796875, 0.002826690673828125, -0.0022068023681640625, -0.004791259765625, -0.0130462646484375, -0.042388916015625, 0.016387939453125, -0.0802001953125, 0.03948974609375, 0.0239715576171875, -0.015899658203125, 0.004871368408203125, -0.00017714500427246094, 0.0081787109375, -0.01514434814453125, 0.068115234375, -0.031951904296875, 0.06317138671875, -0.03173828125, -0.019256591796875, -0.039520263671875, -0.0204010009765625, 0.043121337890625, 0.024261474609375, -0.042236328125, 0.00945281982421875, -0.001781463623046875, 0.0304107666015625, 0.00769805908203125, 0.0034160614013671875, 0.031402587890625, 0.022979736328125, -0.03118896484375, -0.0263824462890625, 0.0025997161865234375, -0.009796142578125, -0.052032470703125, 0.0179290771484375, 0.0027713775634765625, -0.01520538330078125, -0.0360107421875, 0.0762939453125, 0.03662109375, 0.01702880859375, -0.022613525390625, 0.00937652587890625, -0.005687713623046875, 0.02728271484375, 0.01399993896484375, -0.0157470703125, 0.0169219970703125, -0.006046295166015625, 0.005100250244140625, -0.036102294921875, -0.024993896484375, 0.0216522216796875, 0.051025390625, 0.002895355224609375, -0.0005578994750976562, 0.00933074951171875, -0.008331298828125, -0.0278778076171875, 0.042816162109375, 0.037261962890625, -0.00873565673828125, -0.0347900390625, -0.01543426513671875, 0.042633056640625, 0.03472900390625, 0.005855560302734375, 0.001827239990234375, 0.00760650634765625, 0.003437042236328125, 0.0166778564453125, -0.0286102294921875, 0.00457763671875, 0.0017862319946289062, -0.0166015625, -0.0197296142578125, 0.01345062255859375, -0.00917816162109375, 0.00815582275390625, -0.034088134765625, -0.0413818359375, 0.04840087890625, -0.033050537109375, 0.00897216796875, 0.0008535385131835938, -0.0010213851928710938, 0.019134521484375, 0.0291290283203125, 0.01522064208984375, -0.004108428955078125, -0.01093292236328125, -0.0189666748046875, -0.04345703125, -0.005279541015625, 0.005825042724609375, -0.0078582763671875, 0.0010843276977539062, -0.00766754150390625, -0.00217437744140625, 0.029998779296875, -0.0177001953125, 0.0121612548828125, -0.00511932373046875, 0.005687713623046875, -0.00766754150390625, 0.065673828125, -0.0003917217254638672, 0.0531005859375, 0.01029205322265625, 0.03662109375, 0.01030731201171875, 0.031707763671875, -0.0278167724609375, -0.016754150390625, -0.00807952880859375, -0.082763671875, 0.002986907958984375, -0.00543212890625, -0.01316070556640625, 0.02801513671875, 0.0182037353515625, 0.0198822021484375, 0.02764892578125, 0.01529693603515625, -0.0028781890869140625, -0.018585205078125, -0.016143798828125, 0.020355224609375, 0.0279541015625, 0.048736572265625, 0.0224456787109375, 0.004787445068359375, -0.022613525390625, -0.035125732421875, 0.0186309814453125, 0.00943756103515625, 0.0023326873779296875, -0.01544952392578125, -0.0266876220703125, 0.0306396484375, 0.09014892578125, 0.00971221923828125, 0.047515869140625, 0.0247802734375, 0.014923095703125, 0.0077667236328125, -0.0012655258178710938, -0.0584716796875, -0.01910400390625, 0.008544921875, -0.016357421875, -0.031494140625, -0.0031032562255859375, -0.0184478759765625, 0.042205810546875, 0.031768798828125, 0.05712890625, -0.0633544921875, 0.022003173828125, 0.0199737548828125, -0.04583740234375, -0.018829345703125, -0.0200653076171875, 0.030426025390625, 0.0155487060546875, 0.01861572265625, 0.01702880859375, -0.0221710205078125, 0.0025424957275390625, -0.0192718505859375, -0.0205841064453125, -0.01031494140625, 0.01502227783203125, 0.009002685546875, -0.033660888671875, 0.0170745849609375, 0.0243988037109375, -0.015045166015625, 0.002838134765625, 0.00345611572265625, 0.005985260009765625, -0.037872314453125, -0.04681396484375, -0.01114654541015625, -0.034149169921875, -0.037841796875, -0.018157958984375, -0.0015125274658203125, 0.065185546875, 0.0400390625, -0.0032253265380859375, -0.0178680419921875, 0.0369873046875, -0.00760650634765625, 0.028289794921875, 0.004974365234375, 0.0201263427734375, 0.01166534423828125, -0.04693603515625, 0.0107269287109375, -0.03851318359375, -0.0007891654968261719, -0.0165863037109375, -0.01328277587890625, 0.09185791015625, -0.0035037994384765625, -0.0286407470703125, 0.00914764404296875, -0.006072998046875, -0.005764007568359375, 0.01447296142578125, 0.05255126953125, -0.06036376953125, -0.045745849609375, 0.04974365234375, -0.04864501953125, -0.062347412109375, 0.00007712841033935547, -0.0186004638671875, 0.082763671875, -0.0279541015625, 0.00485992431640625, 0.0016660690307617188, 0.04541015625, 0.00946807861328125, 0.034576416015625, -0.002960205078125, 0.0300445556640625, 0.03643798828125, -0.01428985595703125, -0.01381683349609375, -0.00347137451171875, 0.0002586841583251953, 0.06256103515625, 0.033782958984375, 0.0000769495964050293, 0.0224609375, -0.0406494140625, -0.01335906982421875, 0.03497314453125, -0.004749298095703125, -0.0181732177734375, -0.00045108795166015625, -0.0050048828125, 0.00666046142578125, -0.045379638671875, 0.01377105712890625, -0.052459716796875, 0.00504302978515625, 0.0161895751953125, 0.0267333984375, 0.0447998046875, -0.00022292137145996094, 0.00897216796875, -0.0826416015625, 0.036102294921875, 0.056121826171875, 0.0230865478515625, -0.01290130615234375, 0.0181121826171875, -0.027862548828125, 0.020660400390625, -0.0241546630859375, -0.0192718505859375, 0.01297760009765625, -0.0178375244140625, -0.01308441162109375, 0.035614013671875, 0.025390625, 0.01303863525390625, -0.00508880615234375, 0.0009145736694335938, 0.015045166015625, -0.0191192626953125, 0.0411376953125, 0.015655517578125, 0.0299224853515625, -0.0095062255859375, 0.004138946533203125, 0.006229400634765625, 0.03173828125, -0.03546142578125, -0.044952392578125, 0.0013942718505859375, 0.0171966552734375, 0.045135498046875, -0.0032482147216796875, 0.0391845703125, -0.015777587890625, 0.0234527587890625, 0.0080413818359375, 0.01129150390625, 0.0199432373046875, -0.00998687744140625, 0.0038299560546875, 0.01088714599609375, -0.01470184326171875, 0.0521240234375, -0.029998779296875, -0.01091766357421875, 0.0088958740234375, 0.053436279296875, 0.041046142578125, 0.00592803955078125, -0.037017822265625, -0.0280609130859375, 0.00897216796875, 0.033721923828125, 0.0296630859375, -0.02764892578125, 0.004791259765625, -0.01126861572265625, 0.01012420654296875, 0.027618408203125, 0.036834716796875, 0.042144775390625, 0.0556640625, 0.0160980224609375, -0.0060577392578125, 0.0127410888671875, 0.08465576171875, -0.0133209228515625, 0.0797119140625, -0.045440673828125, 0.05914306640625, -0.0028324127197265625, -0.01104736328125, -0.01171875, -0.008697509765625, 0.06707763671875, -0.0201873779296875, 0.05322265625, -0.00399017333984375, 0.01197052001953125, 0.024169921875, -0.0029735565185546875, 0.00417327880859375, -0.00727081298828125, -0.045562744140625, -0.029693603515625, 0.0060272216796875, 0.0118560791015625, 0.01470947265625, 0.03662109375, -0.0007185935974121094, 0.0196533203125, 0.055572509765625, -0.0045166015625, 0.00885772705078125, 0.017120361328125, -0.01021575927734375, 0.006855010986328125, 0.059478759765625, 0.01171112060546875, -0.01320648193359375, -0.0257415771484375, -0.01256561279296875, 0.050750732421875, -0.017486572265625, 0.09893798828125, -0.071533203125, 0.005580902099609375, 0.03338623046875, -0.00897216796875, 0.0232696533203125, 0.01549530029296875, -0.0276641845703125, -0.0139923095703125, 0.0207977294921875, -0.010833740234375, -0.046539306640625, 0.031097412109375, 0.01070404052734375, -0.010406494140625, 0.0129241943359375, 0.02056884765625, 0.003894805908203125, -0.01444244384765625, 0.0130615234375, -0.05096435546875, -0.0806884765625, -0.04180908203125, 0.0423583984375, -0.0236358642578125, -0.0011205673217773438, -0.0170745849609375, 0.038177490234375, -0.0011577606201171875, 0.01024627685546875, -0.01373291015625, -0.010650634765625, -0.0307464599609375, 0.01336669921875, -0.0133514404296875, 0.0095672607421875, 0.03558349609375, -0.01367950439453125, 0.02294921875, 0.00742340087890625, 0.043487548828125, -0.011199951171875, -0.0214385986328125, -0.0215301513671875, 0.00968170166015625, 0.0085906982421875, 0.003299713134765625, 0.002696990966796875, 0.0230255126953125, -0.0267181396484375, -0.055450439453125, -0.0218048095703125, -0.0216522216796875, -0.0216827392578125, -0.01374053955078125, -0.00836944580078125, 0.003948211669921875, -0.046722412109375, 0.017242431640625, -0.0123748779296875, 0.0068817138671875, -0.018890380859375, -0.00170135498046875, 0.0050048828125, -0.069091796875, 0.02545166015625, -0.037139892578125, 0.08319091796875, -0.003429412841796875, 0.0096435546875, -0.080078125, -0.043609619140625, 0.00368499755859375, 0.065673828125, -0.0257720947265625, 0.01303863525390625, 0.07061767578125, -0.01346588134765625, -0.037811279296875, -0.0031070709228515625, -0.0118865966796875, 0.055419921875, -0.07769775390625, 0.0007171630859375, -0.0045318603515625, 0.0272064208984375, -0.0225677490234375, -0.08209228515625, -0.002246856689453125, -0.03277587890625, 0.0221710205078125, 0.0101470947265625, 0.0039215087890625, 0.0289306640625, -0.027740478515625, -0.078369140625, 0.0850830078125, -0.00814056396484375, -0.037139892578125, -0.05712890625, 0.01983642578125, 0.0228729248046875, -0.0223388671875, -0.0266265869140625, -0.0259552001953125, -0.045623779296875, 0.00547027587890625, -0.003681182861328125, 0.06298828125, -0.007556915283203125, -0.0269622802734375, -0.020294189453125, -0.0097503662109375, -0.01371002197265625, 0.01641845703125, -0.0166168212890625, 0.0030975341796875, 0.0165863037109375, 0.03399658203125, -0.01020050048828125, 0.04632568359375, 0.0247802734375, -0.057891845703125, -0.008575439453125, 0.01146697998046875, -0.0269317626953125, -0.0018949508666992188, 0.04571533203125, 0.031768798828125, 0.0179290771484375, -0.010528564453125, -0.043609619140625, -0.04638671875, -0.0242767333984375, -0.017974853515625, 0.03167724609375, -0.0478515625, 0.0286865234375, 0.0038051605224609375, 0.0205841064453125, -0.044036865234375, -0.01751708984375, -0.00798797607421875, -0.03363037109375, 0.0160980224609375, 0.00916290283203125, 0.0206451416015625, -0.047332763671875, 0.0880126953125, -0.04107666015625, 0.004138946533203125, 0.00771331787109375, 0.0587158203125, 0.01873779296875, -0.031890869140625, -0.00684356689453125, 0.06658935546875, -0.05474853515625, -0.0093536376953125, 0.0037326812744140625, -0.0274505615234375, -0.030914306640625, 0.0149993896484375, -0.00927734375, 0.019989013671875, 0.001995086669921875, 0.00383758544921875, -0.0113067626953125, 0.011260986328125, -0.008026123046875, 0.03875732421875, -0.041748046875, -0.00698089599609375, -0.01139068603515625, 0.0167388916015625, -0.006534576416015625, 0.0014772415161132812, 0.0889892578125, -0.0694580078125, -0.00189208984375, -0.01413726806640625, -0.0716552734375, -0.03369140625, -0.0024204254150390625, -0.06640625, -0.0237884521484375, 0.006496429443359375 ]
85dc46f847ced5e9dd20564e8ff985dccc4a42fb
Wordpress Stackexchange Q: bloginfo() and get_template_directory_uri() with SSL? I have a Wordpress theme I'm attempting to put on an SSL-only website. There is no non-SSL version of the site. The Wordpress theme uses various functions like bloginfo('pingback_url'), bloginfo('template_directory'), get_template_directory_uri(), etc... All the typical functions for a theme. All of these functions generate http links, not https, so therefore none of them load, since a non-SSL version of the site does not exist. How do I force Wordpress to use https for EVERYTHING? A: try installing this WordPress plugin. http://wordpress.org/extend/plugins/wordpress-https/installation/ but do read the installation instructions as it has some extra things to do after activating the plugin.
Q: bloginfo() and get_template_directory_uri() with SSL? I have a Wordpress theme I'm attempting to put on an SSL-only website. There is no non-SSL version of the site. The Wordpress theme uses various functions like bloginfo('pingback_url'), bloginfo('template_directory'), get_template_directory_uri(), etc... All the typical functions for a theme. All of these functions generate http links, not https, so therefore none of them load, since a non-SSL version of the site does not exist. How do I force Wordpress to use https for EVERYTHING? A: try installing this WordPress plugin. http://wordpress.org/extend/plugins/wordpress-https/installation/ but do read the installation instructions as it has some extra things to do after activating the plugin. A: If your website is on a load-balancing service that handles SSL, then your server might not be getting anything in the server variable $_SERVER['HTTPS'], and $_SERVER['SERVER_PORT'] might be 80 when it should be 443 (see this Stack Overflow answer for details). If this is the case, and you can't get your host to change that, then you might need to fudge it and tell PHP that it's SSL anyway. Set your home and site URLs to use https, so that all URLs generated by WordPress come out as https URLs. Then drop this code into a plugin (here's a ready-made one, drop it into your plugins folder and activate it): // if site is set to run on SSL, then force-enable SSL detection! if (stripos(get_option('siteurl'), 'https://') === 0) { $_SERVER['HTTPS'] = 'on'; } NB: this can backfire on you, because you probably have code (in plugins or your own code) that checks to see if the page was loaded via SSL, and redirects if it wasn't. Your server won't be able to test this now! As such, you should also add some JavaScript to your page so that there's some level of assurance that your secure pages will be loaded via SSL (this is also done by the ready-made plugin): <script> if (document.location.protocol != "https:") { document.location = document.URL.replace(/^http:/i, "https:"); } </script> NB: this isn't foolproof! However, it should catch most situations, an exception being someone who disables JavaScript and then edits the URL to force it back to http. If they do that, they maybe deserve to have their credit card credentials sold to Elbonia.
wordpress
{ "language": "en", "length": 372, "provenance": "stackexchange_00019.jsonl.gz:427906", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81896" }
[ 0.0190887451171875, -0.031402587890625, -0.016754150390625, -0.02191162109375, -0.016937255859375, -0.016693115234375, 0.023773193359375, 0.01476287841796875, 0.01340484619140625, 0.0174102783203125, -0.00360870361328125, -0.00988006591796875, 0.013092041015625, -0.04095458984375, -0.0036640167236328125, -0.00420379638671875, 0.0312347412109375, -0.0401611328125, 0.016357421875, -0.02239990234375, 0.047119140625, -0.01099395751953125, 0.0262298583984375, 0.0231475830078125, 0.03192138671875, 0.007320404052734375, 0.10772705078125, -0.0093231201171875, 0.0167083740234375, -0.019317626953125, 0.02752685546875, -0.033538818359375, 0.0195465087890625, 0.047454833984375, -0.07958984375, -0.01091766357421875, -0.01010894775390625, 0.034332275390625, -0.033447265625, 0.05316162109375, -0.01195526123046875, 0.0159912109375, 0.04388427734375, 0.022247314453125, -0.005985260009765625, -0.048065185546875, 0.0069427490234375, -0.038238525390625, 0.002330780029296875, -0.0183258056640625, 0.0194549560546875, 0.01168060302734375, 0.04071044921875, 0.004032135009765625, -0.041656494140625, -0.04351806640625, 0.011077880859375, 0.0264739990234375, 0.004497528076171875, -0.0269927978515625, -0.0299835205078125, 0.04736328125, -0.005603790283203125, 0.0190582275390625, 0.0117034912109375, -0.00020885467529296875, 0.004917144775390625, 0.0343017578125, -0.0743408203125, 0.004367828369140625, 0.04248046875, -0.03759765625, -0.004306793212890625, -0.032806396484375, -0.0134735107421875, 0.030609130859375, 0.02001953125, 0.00804901123046875, 0.00732421875, -0.0230865478515625, 0.01250457763671875, -0.0271453857421875, -0.04864501953125, -0.01409912109375, 0.0241546630859375, 0.028778076171875, 0.0018854141235351562, -0.015716552734375, -0.00746917724609375, -0.01056671142578125, -0.03424072265625, 0.0018091201782226562, -0.0015268325805664062, -0.01189422607421875, -0.0299224853515625, -0.01509857177734375, 0.00251007080078125, 0.049102783203125, -0.00365447998046875, 0.0176544189453125, -0.0126495361328125, -0.0283355712890625, 0.0218048095703125, -0.0445556640625, -0.01499176025390625, 0.06475830078125, 0.0021839141845703125, 0.041259765625, 0.037628173828125, 0.0257568359375, 0.02862548828125, -0.046142578125, -0.047882080078125, -0.0264129638671875, -0.0212554931640625, 0.034912109375, -0.050811767578125, -0.0156402587890625, -0.009918212890625, -0.005397796630859375, 0.005046844482421875, 0.0298004150390625, -0.0014886856079101562, -0.02569580078125, -0.01140594482421875, -0.0310516357421875, -0.01168060302734375, -0.01641845703125, 0.035064697265625, 0.033599853515625, -0.034332275390625, 0.002399444580078125, 0.05718994140625, -0.00846099853515625, -0.0090789794921875, -0.032989501953125, 0.00005251169204711914, -0.0222930908203125, -0.0203857421875, 0.00437164306640625, 0.0165252685546875, -0.035614013671875, -0.00765228271484375, 0.0013189315795898438, 0.0174407958984375, -0.025848388671875, 0.019805908203125, 0.04205322265625, 0.0123748779296875, -0.00931549072265625, 0.0100250244140625, 0.05023193359375, 0.04718017578125, -0.00005537271499633789, -0.006984710693359375, -0.05535888671875, -0.00907135009765625, -0.038665771484375, 0.0214080810546875, -0.04986572265625, -0.01059722900390625, -0.0014009475708007812, 0.0264739990234375, -0.0267333984375, -0.0188446044921875, -0.026885986328125, -0.0134124755859375, -0.00013506412506103516, 0.02532958984375, 0.03460693359375, 0.01152801513671875, -0.0172882080078125, 0.0077972412109375, 0.0179595947265625, -0.0018720626831054688, 0.005115509033203125, -0.01849365234375, 0.052886962890625, 0.0177459716796875, 0.02691650390625, 0.026458740234375, -0.0245361328125, 0.09881591796875, -0.01531982421875, -0.0643310546875, 0.037200927734375, -0.01343536376953125, 0.050384521484375, 0.03570556640625, 0.005199432373046875, 0.02337646484375, 0.01186370849609375, -0.0287628173828125, 0.041778564453125, -0.0243682861328125, -0.0491943359375, -0.005046844482421875, -0.00415802001953125, -0.0258026123046875, 0.0098724365234375, -0.022491455078125, 0.01093292236328125, -0.01739501953125, 0.0281219482421875, 0.033172607421875, -0.023468017578125, 0.00489044189453125, 0.0011463165283203125, -0.0023899078369140625, 0.035003662109375, 0.011962890625, 0.007045745849609375, -0.00981903076171875, -0.04693603515625, -0.006504058837890625, 0.00925445556640625, -0.007755279541015625, 0.0333251953125, -0.00566864013671875, 0.036865234375, -0.01800537109375, -0.018463134765625, -0.00830841064453125, -0.008026123046875, 0.003314971923828125, 0.0135040283203125, -0.0284423828125, 0.01494598388671875, 0.0154571533203125, 0.00830841064453125, 0.01715087890625, 0.025115966796875, -0.01288604736328125, 0.035430908203125, -0.00482177734375, -0.0149383544921875, 0.0108642578125, -0.031463623046875, 0.0276947021484375, 0.030120849609375, 0.0399169921875, 0.00946807861328125, -0.016387939453125, -0.03955078125, 0.04449462890625, -0.024200439453125, 0.0165252685546875, -0.034820556640625, 0.052215576171875, 0.028594970703125, -0.028472900390625, -0.036865234375, 0.03369140625, -0.0182647705078125, 0.03070068359375, 0.0275421142578125, 0.0218353271484375, -0.032257080078125, 0.01134490966796875, 0.02569580078125, 0.0090179443359375, 0.025238037109375, -0.037139892578125, 0.01934814453125, -0.0243682861328125, -0.00724029541015625, -0.036407470703125, -0.0297698974609375, -0.0232391357421875, -0.00841522216796875, 0.0362548828125, -0.026641845703125, 0.0006041526794433594, 0.058349609375, 0.025726318359375, -0.000009834766387939453, -0.0045166015625, -0.00856781005859375, 0.01387786865234375, 0.02734375, -0.011322021484375, 0.03497314453125, -0.023651123046875, -0.01428985595703125, -0.04296875, -0.0604248046875, 0.0162200927734375, 0.0369873046875, -0.007808685302734375, 0.0288543701171875, 0.04449462890625, 0.0313720703125, -0.03070068359375, 0.06689453125, -0.043548583984375, -0.0015773773193359375, 0.0201263427734375, -0.0435791015625, 0.002864837646484375, -0.012847900390625, 0.0721435546875, 0.057586669921875, 0.02459716796875, -0.017974853515625, 0.008087158203125, 0.012359619140625, 0.0166778564453125, -0.0224151611328125, -0.025177001953125, 0.01102447509765625, -0.042510986328125, 0.031951904296875, 0.0223236083984375, -0.0780029296875, 0.0198516845703125, -0.009918212890625, -0.037384033203125, -0.02374267578125, -0.0927734375, -0.0270538330078125, -0.0287017822265625, -0.041900634765625, 0.007488250732421875, -0.0006999969482421875, -0.0139617919921875, 0.009033203125, -0.0037384033203125, 0.019500732421875, -0.0028285980224609375, -0.0386962890625, -0.08563232421875, -0.09527587890625, -0.08367919921875, -0.01213836669921875, -0.01229095458984375, -0.00864410400390625, 0.004150390625, 0.0218048095703125, -0.004199981689453125, -0.065185546875, 0.0023593902587890625, 0.06524658203125, 0.0177764892578125, 0.0273590087890625, -0.0308990478515625, 0.0162353515625, 0.0003254413604736328, 0.00426483154296875, -0.0276947021484375, -0.0018529891967773438, -0.004222869873046875, -0.013702392578125, 0.0034809112548828125, -0.04046630859375, -0.01143646240234375, -0.044189453125, -0.00714111328125, -0.0236358642578125, -0.0200347900390625, -0.061431884765625, 0.0049896240234375, -0.0288848876953125, -0.0225982666015625, 0.0419921875, 0.04376220703125, -0.0204010009765625, -0.0249786376953125, 0.004566192626953125, -0.00243377685546875, -0.00046443939208984375, 0.01983642578125, -0.0019550323486328125, 0.0308380126953125, -0.0103607177734375, -0.002552032470703125, -0.0171356201171875, 0.0187530517578125, -0.0171661376953125, -0.027252197265625, -0.0251007080078125, -0.0008611679077148438, -0.021240234375, -0.01488494873046875, -0.06005859375, -0.0350341796875, 0.034881591796875, -0.036712646484375, 0.0174713134765625, -0.0263214111328125, -0.0166168212890625, -0.0165252685546875, 0.07476806640625, -0.0362548828125, -0.0029392242431640625, 0.004619598388671875, 0.0207366943359375, -0.015899658203125, -0.04974365234375, -0.040374755859375, -0.01629638671875, -0.051971435546875, -0.0078887939453125, -0.00441741943359375, -0.03607177734375, 0.028564453125, -0.05126953125, -0.006374359130859375, -0.0357666015625, 0.0037021636962890625, 0.037384033203125, -0.004962921142578125, 0.0176849365234375, -0.00666046142578125, -0.00850677490234375, 0.015167236328125, -0.01116943359375, -0.06146240234375, -0.0281829833984375, -0.00806427001953125, 0.06134033203125, 0.002086639404296875, -0.0197296142578125, -0.0147705078125, 0.04534912109375, 0.01824951171875, -0.0184173583984375, 0.0183258056640625, -0.0037822723388671875, 0.0014829635620117188, 0.032379150390625, 0.0220947265625, -0.0079498291015625, 0.00466156005859375, -0.0141143798828125, -0.05426025390625, 0.0227508544921875, 0.0008287429809570312, -0.005352020263671875, 0.03204345703125, -0.0384521484375, -0.024139404296875, -0.0120697021484375, -0.03411865234375, 0.0248260498046875, -0.01236724853515625, -0.01457977294921875, -0.024078369140625, -0.032470703125, 0.04180908203125, -0.046417236328125, -0.0171356201171875, 0.0150909423828125, 0.05999755859375, 0.007354736328125, -0.01165008544921875, -0.025177001953125, 0.0067138671875, 0.038848876953125, 0.0151214599609375, 0.073974609375, 0.056549072265625, -0.003063201904296875, 0.050201416015625, 0.016265869140625, 0.0091094970703125, 0.00330352783203125, -0.0002598762512207031, 0.01154327392578125, -0.0127105712890625, 0.004642486572265625, 0.01541900634765625, 0.0028018951416015625, 0.031341552734375, 0.0259246826171875, -0.0177459716796875, -0.00635528564453125, -0.0066680908203125, 0.01497650146484375, -0.0158538818359375, -0.0059814453125, -0.0355224609375, 0.025177001953125, -0.08953857421875, 0.045928955078125, 0.049591064453125, -0.027984619140625, 0.0458984375, -0.00919342041015625, -0.0019989013671875, -0.0155487060546875, 0.0200958251953125, 0.00263214111328125, 0.050872802734375, -0.0338134765625, -0.00914764404296875, -0.0309295654296875, -0.02008056640625, 0.10076904296875, 0.0140838623046875, -0.064697265625, 0.0201568603515625, -0.002643585205078125, 0.009857177734375, 0.0277557373046875, -0.016021728515625, 0.04388427734375, 0.007778167724609375, -0.03680419921875, -0.02764892578125, -0.021759033203125, -0.045166015625, -0.06280517578125, 0.0209808349609375, 0.0250091552734375, -0.0172576904296875, 0.0008392333984375, 0.04345703125, 0.04443359375, -0.0077972412109375, -0.0265655517578125, -0.01467132568359375, -0.00691986083984375, -0.0213623046875, 0.0452880859375, 0.0023937225341796875, 0.01319122314453125, -0.07806396484375, 0.0224761962890625, -0.035858154296875, -0.026275634765625, -0.025482177734375, 0.040557861328125, -0.00965118408203125, 0.004039764404296875, 0.03619384765625, -0.0031414031982421875, -0.004642486572265625, 0.059814453125, 0.026702880859375, -0.04010009765625, -0.0229339599609375, 0.014434814453125, 0.04156494140625, -0.0179290771484375, -0.018829345703125, 0.021270751953125, -0.0084075927734375, 0.00677490234375, 0.03814697265625, -0.0313720703125, 0.004230499267578125, 0.011993408203125, -0.00876617431640625, -0.027801513671875, -0.0018224716186523438, -0.01666259765625, 0.0069732666015625, -0.0335693359375, -0.00933837890625, 0.03753662109375, -0.072998046875, 0.013702392578125, 0.0194244384765625, -0.0133819580078125, -0.00336456298828125, 0.035919189453125, 0.010711669921875, 0.02398681640625, -0.01690673828125, 0.00574493408203125, -0.006229400634765625, -0.006053924560546875, 0.035888671875, -0.02520751953125, -0.02154541015625, -0.042724609375, 0.035125732421875, 0.034576416015625, -0.031219482421875, -0.05377197265625, 0.021575927734375, 0.0177154541015625, 0.0128631591796875, 0.07049560546875, 0.0209808349609375, 0.04034423828125, 0.00606536865234375, 0.039093017578125, 0.03289794921875, 0.0005726814270019531, -0.057647705078125, -0.0160064697265625, -0.0026149749755859375, -0.07379150390625, -0.0078582763671875, -0.01139068603515625, -0.02362060546875, 0.04229736328125, 0.05096435546875, 0.0074615478515625, -0.0097503662109375, -0.01488494873046875, 0.004425048828125, -0.0233306884765625, 0.0205841064453125, -0.00806427001953125, -0.0172119140625, 0.0206146240234375, -0.005817413330078125, -0.027069091796875, -0.0031986236572265625, -0.00801849365234375, 0.0192718505859375, 0.01300048828125, -0.01113128662109375, -0.0028591156005859375, -0.023468017578125, 0.054290771484375, 0.046875, 0.0005679130554199219, 0.04949951171875, 0.0088043212890625, 0.0222320556640625, 0.0056610107421875, -0.0026378631591796875, -0.050323486328125, -0.0313720703125, 0.0263519287109375, 0.005886077880859375, -0.01178741455078125, 0.050811767578125, -0.0295257568359375, 0.0369873046875, 0.062103271484375, 0.07080078125, -0.0662841796875, -0.00510406494140625, 0.025421142578125, -0.056884765625, -0.01244354248046875, -0.016082763671875, -0.0219879150390625, -0.050933837890625, 0.0246429443359375, 0.00347900390625, -0.01355743408203125, 0.0017156600952148438, 0.00807952880859375, -0.0181732177734375, -0.0025768280029296875, 0.048370361328125, 0.01302337646484375, -0.014129638671875, -0.017852783203125, 0.005641937255859375, -0.0199432373046875, -0.004718780517578125, 0.050872802734375, -0.03240966796875, 0.00579833984375, -0.05364990234375, -0.036895751953125, -0.005367279052734375, -0.04937744140625, 0.01363372802734375, 0.0162200927734375, 0.04962158203125, 0.056365966796875, 0.00620269775390625, -0.00007331371307373047, 0.030548095703125, 0.0119781494140625, 0.0231475830078125, -0.005451202392578125, -0.0084686279296875, 0.037139892578125, 0.00962066650390625, 0.0004150867462158203, 0.01004791259765625, -0.0100250244140625, -0.0193939208984375, 0.01424407958984375, 0.10723876953125, -0.00763702392578125, -0.02618408203125, 0.04931640625, 0.01204681396484375, -0.045074462890625, -0.0185394287109375, 0.099365234375, -0.040252685546875, 0.01361083984375, 0.015960693359375, 0.023406982421875, -0.06549072265625, -0.0228271484375, -0.0714111328125, 0.110107421875, -0.01084136962890625, 0.044097900390625, -0.0078125, 0.029998779296875, -0.0080413818359375, 0.032318115234375, -0.004825592041015625, 0.0465087890625, 0.032562255859375, -0.035919189453125, -0.01273345947265625, -0.00017380714416503906, -0.041717529296875, 0.047576904296875, 0.09185791015625, 0.01123809814453125, -0.01082611083984375, -0.00946807861328125, 0.06463623046875, 0.044830322265625, -0.0108184814453125, 0.00910186767578125, -0.0081787109375, 0.017791748046875, 0.040679931640625, -0.0249481201171875, 0.0325927734375, -0.0202484130859375, -0.00803375244140625, 0.0038852691650390625, 0.0255126953125, 0.001636505126953125, 0.017486572265625, -0.0120391845703125, -0.06170654296875, 0.032958984375, 0.026947021484375, 0.0253448486328125, 0.0203094482421875, -0.01055908203125, -0.01413726806640625, -0.01409149169921875, 0.0291748046875, -0.0274505615234375, 0.035064697265625, -0.0257415771484375, -0.019439697265625, -0.01398468017578125, 0.0131378173828125, -0.01448822021484375, -0.026397705078125, -0.01165771484375, 0.0198211669921875, -0.0271759033203125, 0.0169525146484375, 0.0022335052490234375, 0.028839111328125, -0.0217437744140625, 0.0242462158203125, 0.02294921875, 0.0008440017700195312, -0.02020263671875, -0.05560302734375, -0.0032634735107421875, 0.005931854248046875, 0.02398681640625, 0.0141754150390625, 0.0118865966796875, -0.0144500732421875, 0.0118408203125, 0.004810333251953125, -0.00820159912109375, 0.02081298828125, -0.002712249755859375, 0.0253448486328125, 0.035308837890625, -0.029083251953125, 0.01715087890625, -0.0263214111328125, -0.028533935546875, 0.031982421875, 0.0509033203125, 0.018280029296875, 0.04986572265625, -0.005786895751953125, -0.0159454345703125, -0.003871917724609375, 0.0176544189453125, 0.00020110607147216797, -0.00487518310546875, -0.01202392578125, -0.01421356201171875, 0.0121307373046875, 0.04571533203125, 0.02691650390625, -0.01556396484375, 0.033721923828125, 0.05084228515625, 0.0158843994140625, -0.022308349609375, 0.01383209228515625, -0.005992889404296875, 0.0357666015625, -0.04302978515625, 0.0122222900390625, -0.0012073516845703125, -0.0254669189453125, -0.01384735107421875, -0.0276336669921875, 0.053070068359375, -0.028106689453125, 0.06378173828125, -0.006763458251953125, 0.01316070556640625, 0.0009832382202148438, -0.005634307861328125, 0.011199951171875, 0.0098876953125, -0.060760498046875, -0.0126800537109375, 0.01303863525390625, -0.0302734375, 0.0090789794921875, 0.0372314453125, -0.03216552734375, 0.0242156982421875, 0.0296783447265625, -0.01137542724609375, 0.0124664306640625, 0.007293701171875, 0.01026153564453125, -0.01322174072265625, 0.013641357421875, 0.0004341602325439453, -0.0010881423950195312, -0.02301025390625, -0.005466461181640625, 0.07427978515625, -0.0013360977172851562, 0.12890625, -0.0770263671875, 0.016937255859375, 0.0213623046875, -0.0164947509765625, 0.036468505859375, 0.0294647216796875, -0.01486968994140625, -0.002841949462890625, 0.002155303955078125, -0.01629638671875, -0.05670166015625, 0.0121612548828125, 0.029266357421875, -0.033416748046875, 0.0127105712890625, 0.0004916191101074219, 0.01019287109375, -0.050567626953125, 0.01336669921875, -0.0275421142578125, -0.0640869140625, -0.0438232421875, 0.034637451171875, 0.0005688667297363281, 0.0157012939453125, -0.0355224609375, 0.0648193359375, -0.019012451171875, 0.00980377197265625, -0.0300750732421875, -0.0325927734375, -0.066162109375, 0.0183258056640625, -0.0003688335418701172, -0.002849578857421875, 0.02056884765625, -0.016876220703125, 0.00982666015625, -0.0089569091796875, 0.048675537109375, -0.008544921875, -0.0197601318359375, 0.004459381103515625, 0.00872039794921875, 0.0149383544921875, -0.03179931640625, -0.003173828125, 0.03668212890625, 0.00048422813415527344, -0.0214691162109375, -0.0096893310546875, -0.01126861572265625, 0.00856781005859375, -0.04388427734375, -0.01461029052734375, 0.0033397674560546875, -0.0880126953125, 0.01085662841796875, 0.00698089599609375, -0.0001474618911743164, -0.031280517578125, 0.019989013671875, -0.014678955078125, -0.049530029296875, 0.042083740234375, -0.0460205078125, 0.03118896484375, 0.0022029876708984375, 0.0423583984375, -0.05242919921875, -0.04296875, -0.00030350685119628906, 0.0421142578125, -0.0303497314453125, 0.0162200927734375, 0.05426025390625, -0.01053619384765625, -0.039459228515625, 0.03369140625, -0.01485443115234375, 0.0894775390625, -0.067626953125, 0.012115478515625, 0.0164337158203125, -0.01528167724609375, -0.043060302734375, -0.070068359375, 0.012420654296875, -0.05987548828125, -0.0282745361328125, 0.040802001953125, -0.01195526123046875, 0.01506805419921875, -0.04315185546875, -0.08416748046875, 0.07196044921875, -0.006435394287109375, -0.044708251953125, -0.08013916015625, -0.00445556640625, -0.0006341934204101562, 0.04833984375, -0.0273284912109375, -0.0023593902587890625, -0.03839111328125, 0.04583740234375, 0.01207733154296875, 0.01192474365234375, 0.0170135498046875, 0.00762939453125, -0.036102294921875, 0.02825927734375, 0.01386260986328125, -0.0133514404296875, -0.00968170166015625, -0.00921630859375, 0.0289306640625, 0.0268707275390625, -0.043426513671875, 0.0230865478515625, 0.0162200927734375, 0.00038909912109375, -0.006946563720703125, -0.0017004013061523438, 0.038787841796875, 0.024993896484375, 0.00873565673828125, 0.01018524169921875, -0.01049041748046875, -0.0232391357421875, -0.06964111328125, -0.0604248046875, -0.0328369140625, 0.01690673828125, 0.03326416015625, -0.054351806640625, 0.055755615234375, 0.0226898193359375, 0.0095062255859375, -0.00569915771484375, -0.0030498504638671875, -0.0019588470458984375, -0.0196380615234375, 0.0195159912109375, -0.0158538818359375, 0.022857666015625, 0.0105743408203125, 0.089599609375, -0.0369873046875, 0.021575927734375, -0.02313232421875, 0.02435302734375, 0.0399169921875, -0.04998779296875, 0.015167236328125, 0.05712890625, -0.045318603515625, 0.001712799072265625, 0.01264190673828125, 0.0198974609375, -0.0345458984375, -0.01593017578125, -0.01177978515625, 0.0006804466247558594, -0.01396942138671875, -0.012298583984375, 0.0125579833984375, 0.0036029815673828125, -0.004909515380859375, 0.06976318359375, 0.0092010498046875, 0.0292205810546875, 0.0060272216796875, 0.05584716796875, 0.0175323486328125, -0.03887939453125, 0.036529541015625, -0.0318603515625, 0.00212860107421875, -0.02362060546875, -0.02972412109375, -0.004497528076171875, -0.03350830078125, -0.0599365234375, -0.031707763671875, -0.008941650390625 ]
f75b43c80176d992089d43109e10b725e4e92f00
Wordpress Stackexchange Q: how do i combine keyword search and taxonomy in a WP_query $args array Worpresss I'm trying to figure out how to get the following code to work as one wp_query . i'm trying to filter the loop on the search values and the taxonomy values: Both of these sections work independently but i'm looking to tie these into one query..? I have tried various combinations but am getting no where....any ideas of the best approach to this issue...? global $query_string; $query_args = explode("&", $query_string); $search_query = array(); foreach($query_args as $key => $string) { $query_split = explode("=", $string); $search_query[$query_split[0]] = $query_split[1]; } // foreach $args = array( 'post_type' => 'listings', 's' => 's', 'keyword' => $search_query['s'], 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'type', 'field' => 'slug', 'terms' => $search_query['type'] ), array( 'taxonomy' => 'rooms', 'field' => 'slug', 'terms' => $search_query['rooms'] ) ) ); $the_query = new WP_Query($args);
Q: how do i combine keyword search and taxonomy in a WP_query $args array Worpresss I'm trying to figure out how to get the following code to work as one wp_query . i'm trying to filter the loop on the search values and the taxonomy values: Both of these sections work independently but i'm looking to tie these into one query..? I have tried various combinations but am getting no where....any ideas of the best approach to this issue...? global $query_string; $query_args = explode("&", $query_string); $search_query = array(); foreach($query_args as $key => $string) { $query_split = explode("=", $string); $search_query[$query_split[0]] = $query_split[1]; } // foreach $args = array( 'post_type' => 'listings', 's' => 's', 'keyword' => $search_query['s'], 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'type', 'field' => 'slug', 'terms' => $search_query['type'] ), array( 'taxonomy' => 'rooms', 'field' => 'slug', 'terms' => $search_query['rooms'] ) ) ); $the_query = new WP_Query($args);
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:427916", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81930" }
[ 0.051666259765625, -0.00868988037109375, 0.004161834716796875, -0.038909912109375, 0.015625, -0.0301666259765625, 0.06658935546875, 0.002567291259765625, 0.017364501953125, 0.035552978515625, -0.05194091796875, -0.0250701904296875, -0.025909423828125, -0.0004954338073730469, -0.0299224853515625, -0.05902099609375, 0.01019287109375, -0.038116455078125, -0.026275634765625, -0.021697998046875, 0.022796630859375, -0.0237884521484375, -0.005435943603515625, 0.025909423828125, 0.02459716796875, -0.0237274169921875, 0.04974365234375, -0.0164337158203125, 0.035736083984375, 0.01039886474609375, 0.00551605224609375, -0.03692626953125, 0.0199127197265625, -0.01189422607421875, 0.036834716796875, 0.006977081298828125, 0.031494140625, -0.01253509521484375, 0.028045654296875, 0.01311492919921875, 0.055206298828125, -0.03228759765625, -0.034088134765625, 0.05615234375, -0.032958984375, -0.0294647216796875, 0.051849365234375, -0.002628326416015625, 0.0186920166015625, -0.0151519775390625, 0.005649566650390625, 0.0294342041015625, 0.003726959228515625, -0.03863525390625, 0.01654052734375, 0.0518798828125, -0.0004448890686035156, -0.044036865234375, 0.0261688232421875, -0.03399658203125, -0.03338623046875, -0.04217529296875, 0.06304931640625, 0.00799560546875, -0.0233917236328125, 0.00766754150390625, -0.008148193359375, 0.0113067626953125, -0.009490966796875, -0.03265380859375, 0.0103759765625, -0.019256591796875, -0.00037384033203125, 0.01160430908203125, -0.0184326171875, -0.0677490234375, 0.01485443115234375, -0.04473876953125, 0.01432037353515625, 0.033782958984375, 0.019378662109375, -0.022064208984375, -0.07757568359375, 0.035125732421875, 0.0031757354736328125, 0.058746337890625, -0.0027141571044921875, -0.02569580078125, -0.0191497802734375, -0.033660888671875, -0.0105133056640625, -0.0421142578125, -0.054443359375, -0.004093170166015625, 0.0140228271484375, -0.05810546875, -0.0208740234375, -0.00955963134765625, -0.0249176025390625, 0.0162506103515625, -0.0130462646484375, -0.0274505615234375, 0.039398193359375, -0.017974853515625, 0.0237579345703125, 0.052398681640625, 0.0001856088638305664, 0.033721923828125, 0.05731201171875, 0.005474090576171875, 0.0163421630859375, 0.040557861328125, -0.042633056640625, -0.037872314453125, -0.0099334716796875, 0.03973388671875, -0.04974365234375, 0.016021728515625, -0.0006952285766601562, 0.0216217041015625, -0.0186004638671875, 0.0009093284606933594, 0.0171661376953125, -0.0004642009735107422, 0.00855255126953125, -0.001224517822265625, 0.00568389892578125, -0.03173828125, 0.00846099853515625, 0.01157379150390625, -0.01554107666015625, 0.00275421142578125, 0.0008306503295898438, 0.033538818359375, 0.005710601806640625, 0.0012350082397460938, 0.035247802734375, -0.0143280029296875, 0.0050201416015625, -0.006977081298828125, 0.05889892578125, -0.01137542724609375, -0.01198577880859375, 0.049163818359375, 0.0064697265625, -0.0005130767822265625, 0.0374755859375, 0.0279083251953125, -0.00786590576171875, -0.01165771484375, -0.0196380615234375, 0.022918701171875, 0.0423583984375, 0.0018033981323242188, -0.06695556640625, -0.0200347900390625, 0.01068115234375, -0.0263519287109375, -0.0242156982421875, -0.0731201171875, -0.007701873779296875, 0.00039887428283691406, 0.02459716796875, -0.022918701171875, -0.00872039794921875, -0.0157318115234375, -0.0328369140625, -0.006744384765625, 0.00910186767578125, -0.0157623291015625, -0.0187530517578125, 0.00804901123046875, 0.04412841796875, -0.01148223876953125, -0.0170440673828125, 0.0158843994140625, 0.0089874267578125, 0.0089263916015625, -0.003246307373046875, 0.0204010009765625, -0.03802490234375, -0.061737060546875, -0.0012998580932617188, -0.027374267578125, -0.06256103515625, 0.037750244140625, -0.00913238525390625, 0.00411224365234375, 0.0012035369873046875, -0.0083160400390625, 0.06158447265625, 0.03936767578125, -0.0517578125, 0.07861328125, 0.0152587890625, -0.049835205078125, -0.0178680419921875, -0.02838134765625, 0.006114959716796875, -0.03289794921875, 0.025146484375, 0.0279541015625, -0.0079803466796875, 0.005031585693359375, -0.032012939453125, 0.0079345703125, -0.005962371826171875, 0.03570556640625, -0.046661376953125, 0.004558563232421875, 0.02099609375, -0.04156494140625, -0.00432586669921875, 0.0021991729736328125, -0.0004668235778808594, 0.00795745849609375, 0.009521484375, 0.009918212890625, 0.00585174560546875, 0.0023365020751953125, 0.0192718505859375, -0.04425048828125, 0.00412750244140625, 0.0362548828125, 0.0657958984375, -0.0204620361328125, 0.0010385513305664062, -0.0224609375, 0.038330078125, 0.004367828369140625, -0.049102783203125, 0.02142333984375, 0.08978271484375, 0.06573486328125, -0.00899505615234375, 0.0291595458984375, 0.04449462890625, -0.00823974609375, -0.0227508544921875, 0.023040771484375, 0.03424072265625, 0.0296173095703125, -0.028076171875, -0.01207733154296875, 0.055908203125, -0.08258056640625, -0.0236358642578125, 0.01232147216796875, 0.00505828857421875, 0.06787109375, 0.016510009765625, 0.040374755859375, -0.001934051513671875, 0.043212890625, 0.0162200927734375, 0.02166748046875, -0.0262908935546875, -0.006969451904296875, -0.0262908935546875, -0.0000483393669128418, -0.0007004737854003906, -0.07525634765625, -0.01522064208984375, -0.030609130859375, 0.0207977294921875, 0.001312255859375, 0.02197265625, 0.00109100341796875, -0.0120697021484375, 0.00994110107421875, 0.006694793701171875, -0.024322509765625, 0.0016756057739257812, -0.01177215576171875, -0.022247314453125, 0.000988006591796875, -0.01436614990234375, 0.0176239013671875, -0.0010194778442382812, -0.016143798828125, 0.0090789794921875, 0.0516357421875, -0.006744384765625, -0.0026397705078125, -0.03778076171875, -0.0004456043243408203, 0.01097869873046875, 0.0164642333984375, -0.01171112060546875, -0.00176239013671875, 0.0149993896484375, 0.047943115234375, -0.00865936279296875, 0.0305328369140625, -0.0235595703125, 0.0132598876953125, 0.01459503173828125, -0.0153656005859375, 0.0132598876953125, -0.03204345703125, 0.0263824462890625, 0.040740966796875, -0.0096893310546875, -0.01763916015625, 0.00995635986328125, -0.0289459228515625, 0.003391265869140625, 0.0288238525390625, -0.007045745849609375, -0.01027679443359375, -0.032989501953125, 0.0229034423828125, 0.01385498046875, 0.0162811279296875, 0.01439666748046875, -0.025665283203125, -0.0111083984375, 0.01629638671875, -0.090576171875, -0.10369873046875, 0.020233154296875, -0.03619384765625, -0.01311492919921875, -0.00594329833984375, -0.0165557861328125, 0.002410888671875, 0.0006532669067382812, -0.005931854248046875, 0.049957275390625, -0.0294189453125, -0.09326171875, -0.0164947509765625, -0.061737060546875, 0.058929443359375, -0.006114959716796875, -0.0018901824951171875, 0.020782470703125, 0.05328369140625, 0.039093017578125, -0.00356292724609375, 0.061431884765625, 0.057373046875, -0.015899658203125, 0.02142333984375, -0.0032196044921875, -0.01309967041015625, -0.01551055908203125, -0.02130126953125, 0.059814453125, 0.043487548828125, -0.032806396484375, 0.036651611328125, 0.0245819091796875, 0.01739501953125, 0.04156494140625, -0.04168701171875, -0.05560302734375, 0.0291748046875, 0.0137786865234375, -0.0300140380859375, 0.008209228515625, -0.032318115234375, -0.0341796875, 0.0005283355712890625, 0.0250091552734375, 0.00015223026275634766, -0.01229095458984375, -0.0097808837890625, -0.02008056640625, 0.00022482872009277344, -0.0105438232421875, -0.0546875, 0.0153045654296875, 0.0195770263671875, 0.0113067626953125, 0.032623291015625, 0.00002574920654296875, -0.0280914306640625, -0.0164642333984375, -0.02069091796875, -0.0032291412353515625, -0.00646209716796875, -0.01108551025390625, -0.0305633544921875, -0.0090789794921875, 0.04656982421875, 0.018157958984375, 0.0030841827392578125, -0.03582763671875, -0.044097900390625, -0.04736328125, 0.04803466796875, -0.06683349609375, -0.0228424072265625, -0.0003864765167236328, 0.0165252685546875, -0.0283966064453125, -0.01235198974609375, -0.0266876220703125, 0.0005807876586914062, -0.03399658203125, -0.005771636962890625, -0.00405120849609375, -0.02777099609375, 0.0016279220581054688, -0.03350830078125, -0.00010520219802856445, -0.04241943359375, 0.038665771484375, -0.01715087890625, 0.017333984375, -0.003101348876953125, 0.01152801513671875, -0.01274871826171875, -0.02581787109375, -0.01212310791015625, -0.06878662109375, -0.00811004638671875, 0.0438232421875, 0.038360595703125, -0.0177764892578125, -0.0278167724609375, -0.0207977294921875, 0.04351806640625, 0.00907135009765625, 0.034576416015625, -0.0160675048828125, -0.0117340087890625, -0.00732421875, 0.00420379638671875, 0.0019178390502929688, -0.01297760009765625, -0.0201263427734375, -0.01568603515625, 0.01470947265625, 0.0236053466796875, -0.0244140625, -0.020782470703125, -0.0268402099609375, -0.0044403076171875, -0.025604248046875, 0.017913818359375, -0.023651123046875, -0.0215606689453125, -0.030914306640625, -0.015869140625, 0.03631591796875, -0.026092529296875, 0.061767578125, 0.0078582763671875, -0.029754638671875, 0.00514984130859375, 0.06097412109375, 0.01296234130859375, -0.0297088623046875, -0.091064453125, -0.019927978515625, 0.01568603515625, -0.0073699951171875, 0.043670654296875, 0.01212310791015625, -0.0041046142578125, 0.05694580078125, -0.02984619140625, 0.0005364418029785156, -0.011566162109375, 0.04693603515625, 0.00879669189453125, -0.0185394287109375, 0.0252227783203125, -0.0124053955078125, -0.0207977294921875, 0.02978515625, -0.0097808837890625, -0.0251617431640625, -0.0036830902099609375, 0.052642822265625, 0.002292633056640625, -0.00033402442932128906, -0.050048828125, -0.02996826171875, 0.023284912109375, 0.007541656494140625, -0.002735137939453125, -0.0004978179931640625, -0.00548553466796875, -0.00957489013671875, -0.0036830902099609375, -0.0031280517578125, 0.01549530029296875, 0.08636474609375, -0.0231475830078125, 0.0584716796875, -0.0254974365234375, -0.0304718017578125, -0.05242919921875, -0.005062103271484375, 0.02215576171875, -0.00753021240234375, -0.04693603515625, 0.034088134765625, -0.002567291259765625, -0.000019848346710205078, 0.01534271240234375, 0.04473876953125, 0.04046630859375, 0.028289794921875, 0.01806640625, -0.0195159912109375, 0.0206451416015625, 0.0175933837890625, -0.018157958984375, -0.000014960765838623047, -0.037200927734375, 0.0151519775390625, -0.007022857666015625, 0.07012939453125, -0.062255859375, 0.0618896484375, -0.0295562744140625, -0.0145111083984375, 0.0096282958984375, 0.019439697265625, 0.0185699462890625, -0.0107879638671875, 0.016448974609375, -0.01371002197265625, 0.05072021484375, -0.03729248046875, -0.0138092041015625, -0.0003285408020019531, -0.01474761962890625, 0.0092620849609375, 0.00945281982421875, 0.037200927734375, 0.0284271240234375, -0.0288238525390625, 0.00608062744140625, 0.0013303756713867188, -0.0025272369384765625, -0.04132080078125, -0.0289154052734375, 0.0224609375, 0.016998291015625, -0.03564453125, 0.026885986328125, -0.0382080078125, 0.048492431640625, 0.0005636215209960938, 0.0124359130859375, 0.017181396484375, 0.00960540771484375, 0.0210723876953125, -0.039794921875, -0.0014028549194335938, -0.05755615234375, 0.00936126708984375, -0.02093505859375, -0.002674102783203125, 0.02001953125, 0.0170440673828125, 0.03521728515625, -0.0426025390625, -0.01189422607421875, 0.055145263671875, -0.0272369384765625, 0.08245849609375, 0.01468658447265625, -0.056549072265625, 0.00688934326171875, -0.050018310546875, 0.01110076904296875, -0.003124237060546875, -0.027740478515625, -0.021820068359375, -0.0226287841796875, -0.01203155517578125, -0.0037326812744140625, 0.02069091796875, 0.02545166015625, -0.04119873046875, -0.00618743896484375, -0.00968170166015625, -0.028076171875, -0.0130157470703125, 0.032867431640625, -0.001316070556640625, 0.0135345458984375, -0.0209503173828125, -0.030853271484375, -0.04364013671875, 0.0128326416015625, -0.0212249755859375, -0.0751953125, -0.01110076904296875, 0.0330810546875, -0.0792236328125, 0.0280609130859375, 0.0323486328125, 0.00890350341796875, 0.03009033203125, -0.01702880859375, -0.006748199462890625, -0.01158905029296875, 0.02130126953125, -0.038116455078125, 0.023223876953125, 0.05859375, -0.005641937255859375, 0.00641632080078125, -0.01157379150390625, -0.00753021240234375, 0.00940704345703125, -0.01033782958984375, -0.0024280548095703125, 0.007663726806640625, -0.01154327392578125, -0.006145477294921875, 0.0172882080078125, 0.004581451416015625, 0.01690673828125, 0.007537841796875, 0.019561767578125, 0.0062408447265625, -0.032562255859375, 0.004665374755859375, 0.015716552734375, 0.0197906494140625, -0.026611328125, 0.0081787109375, 0.027587890625, -0.01102447509765625, -0.0024242401123046875, 0.021026611328125, 0.0192718505859375, -0.0401611328125, -0.002529144287109375, 0.01007080078125, -0.01067352294921875, -0.009490966796875, 0.0260009765625, 0.00563812255859375, 0.0009107589721679688, -0.04754638671875, 0.0030002593994140625, -0.0272369384765625, -0.0235748291015625, 0.021209716796875, -0.01271820068359375, -0.01499176025390625, 0.012908935546875, -0.0007734298706054688, -0.0582275390625, 0.037445068359375, 0.038299560546875, -0.004314422607421875, -0.00997161865234375, 0.034149169921875, -0.0007176399230957031, -0.01096343994140625, -0.08465576171875, 0.0031185150146484375, 0.004932403564453125, -0.03216552734375, 0.01145172119140625, -0.002712249755859375, 0.0223388671875, 0.05487060546875, -0.00994110107421875, 0.0012712478637695312, 0.016448974609375, -0.01346588134765625, 0.005344390869140625, -0.0026950836181640625, -0.02008056640625, 0.01166534423828125, -0.0230865478515625, 0.0087738037109375, -0.034454345703125, 0.028106689453125, -0.017333984375, -0.0242156982421875, 0.06427001953125, -0.04693603515625, -0.0016956329345703125, 0.0416259765625, 0.03326416015625, -0.02496337890625, 0.00849151611328125, 0.028961181640625, -0.0655517578125, -0.09417724609375, 0.025787353515625, -0.08935546875, -0.0301055908203125, -0.027191162109375, -0.0489501953125, 0.0626220703125, 0.00212860107421875, 0.040435791015625, 0.0250091552734375, 0.0205078125, -0.0225830078125, 0.01324462890625, -0.058837890625, 0.06219482421875, 0.033355712890625, 0.036895751953125, -0.05072021484375, 0.00782012939453125, -0.0005927085876464844, -0.006420135498046875, 0.05218505859375, -0.006839752197265625, -0.022369384765625, 0.001422882080078125, 0.07861328125, 0.045196533203125, 0.0003986358642578125, 0.0271759033203125, 0.01091766357421875, 0.042694091796875, 0.040008544921875, -0.01464080810546875, 0.03106689453125, -0.0006127357482910156, -0.028350830078125, 0.045257568359375, -0.0001627206802368164, 0.005443572998046875, 0.00649261474609375, -0.010894775390625, -0.0355224609375, -0.0048065185546875, 0.0186309814453125, -0.008758544921875, 0.01374053955078125, 0.0201263427734375, -0.0238189697265625, 0.002185821533203125, 0.015289306640625, -0.0218963623046875, 0.0236663818359375, -0.0290985107421875, 0.013397216796875, 0.03997802734375, 0.01236724853515625, 0.08349609375, -0.0020008087158203125, 0.015777587890625, 0.0167083740234375, -0.00733184814453125, 0.0272216796875, 0.031280517578125, 0.0206451416015625, -0.03033447265625, -0.007076263427734375, 0.0161895751953125, 0.051513671875, -0.031768798828125, -0.07159423828125, 0.00530242919921875, 0.0196075439453125, -0.00200653076171875, 0.04583740234375, 0.0159454345703125, 0.054168701171875, 0.09088134765625, -0.0205535888671875, 0.007640838623046875, 0.0042266845703125, -0.0057525634765625, -0.0089263916015625, 0.005878448486328125, -0.00438690185546875, 0.01824951171875, -0.069091796875, 0.05633544921875, 0.035186767578125, 0.0965576171875, -0.0059356689453125, 0.0828857421875, -0.0701904296875, -0.036590576171875, -0.03973388671875, 0.03814697265625, -0.0029811859130859375, 0.03399658203125, -0.04388427734375, -0.0268402099609375, -0.0099334716796875, 0.0418701171875, 0.033966064453125, 0.025909423828125, 0.038238525390625, 0.021942138671875, -0.00777435302734375, 0.01287078857421875, 0.0341796875, -0.016143798828125, -0.0169525146484375, -0.006778717041015625, 0.0288238525390625, 0.06365966796875, 0.0109100341796875, -0.01337432861328125, 0.027374267578125, 0.048980712890625, 0.0189971923828125, -0.0011730194091796875, -0.00017631053924560547, -0.05242919921875, -0.01197052001953125, -0.0091094970703125, 0.05279541015625, 0.026275634765625, -0.08441162109375, -0.0231170654296875, -0.0340576171875, -0.065673828125, 0.0626220703125, 0.062225341796875, -0.0041961669921875, -0.007083892822265625, 0.003482818603515625, -0.0316162109375, -0.01186370849609375, 0.020538330078125, 0.013702392578125, -0.0421142578125, -0.0166168212890625, -0.0221710205078125, -0.04217529296875, -0.009002685546875, 0.0218505859375, -0.01351165771484375, -0.0021839141845703125, 0.0439453125, 0.0099945068359375, -0.0124664306640625, 0.00884246826171875, -0.004703521728515625, 0.0015878677368164062, -0.0005917549133300781, 0.04827880859375, -0.03570556640625, -0.028106689453125, 0.00913238525390625, 0.009185791015625, -0.0184478759765625, 0.0660400390625, -0.06988525390625, -0.04119873046875, 0.0230255126953125, 0.0247955322265625, -0.033172607421875, 0.054412841796875, -0.01081085205078125, 0.03021240234375, -0.01146697998046875, -0.05340576171875, 0.0782470703125, 0.051483154296875, 0.0390625, 0.015533447265625, 0.005298614501953125, -0.017333984375, 0.0301666259765625, -0.014556884765625, 0.03070068359375, 0.034027099609375, 0.0212554931640625, 0.003589630126953125, 0.0027027130126953125, -0.022308349609375, 0.0009021759033203125, 0.022674560546875, -0.006847381591796875, -0.0003097057342529297, 0.006988525390625, -0.011199951171875, -0.00186920166015625, 0.030731201171875, -0.0054168701171875, 0.0128631591796875, -0.0170440673828125, -0.0146636962890625, -0.0020656585693359375, -0.0035266876220703125, -0.037261962890625, -0.029510498046875, 0.0011167526245117188, 0.01183319091796875, -0.0183258056640625, -0.055816650390625, -0.06890869140625, -0.0208587646484375, 0.0246124267578125, 0.0090484619140625, -0.0012111663818359375, 0.00557708740234375, -0.024810791015625, -0.03936767578125, 0.0227508544921875, -0.056884765625, 0.0083465576171875, -0.0012407302856445312, -0.01067352294921875, 0.0217742919921875, -0.056640625, -0.030487060546875, -0.0105743408203125, 0.0035037994384765625, 0.0227813720703125, -0.0272216796875, -0.0247955322265625, 0.018310546875, 0.01959228515625, 0.05877685546875, 0.02581787109375, -0.0225677490234375, 0.00954437255859375, 0.0191192626953125, -0.00626373291015625, -0.0555419921875, -0.0019779205322265625, -0.0189666748046875, -0.009246826171875, 0.01499176025390625, -0.004566192626953125, 0.018951416015625, -0.043701171875, -0.10943603515625, 0.0377197265625, -0.0259552001953125, -0.045166015625, -0.0810546875, 0.01395416259765625, 0.022735595703125, -0.0458984375, -0.038665771484375, 0.0069732666015625, -0.042205810546875, 0.0221710205078125, 0.0308685302734375, 0.00954437255859375, 0.0150604248046875, 0.04022216796875, -0.0860595703125, 0.0158843994140625, -0.0236663818359375, 0.0125579833984375, 0.0135650634765625, -0.03875732421875, 0.036865234375, 0.020660400390625, -0.034759521484375, -0.047393798828125, 0.0064239501953125, -0.00775909423828125, 0.00609588623046875, -0.01277923583984375, -0.026153564453125, 0.0054473876953125, 0.0433349609375, 0.035491943359375, 0.022247314453125, -0.0293426513671875, -0.0587158203125, -0.032806396484375, 0.01161956787109375, -0.0157928466796875, 0.0262451171875, -0.07330322265625, 0.0002465248107910156, 0.0113372802734375, -0.0140228271484375, 0.041778564453125, -0.0109100341796875, 0.0036067962646484375, -0.016876220703125, 0.0071258544921875, -0.0294036865234375, 0.003490447998046875, -0.002002716064453125, -0.009918212890625, -0.015960693359375, -0.038177490234375, -0.046417236328125, 0.03173828125, -0.052398681640625, -0.07293701171875, -0.006771087646484375, 0.025665283203125, 0.02093505859375, -0.00460052490234375, 0.044586181640625, -0.0672607421875, 0.05694580078125, 0.02520751953125, -0.01090240478515625, 0.0284271240234375, 0.0026798248291015625, 0.030914306640625, -0.04010009765625, 0.041839599609375, -0.00778961181640625, 0.06689453125, 0.01222991943359375, 0.0286865234375, -0.01415252685546875, 0.038238525390625, 0.032867431640625, -0.0257568359375, 0.04937744140625, -0.00743865966796875, 0.006977081298828125, -0.0056915283203125, 0.01285552978515625, -0.02618408203125, 0.01343536376953125, 0.0228424072265625, 0.0011262893676757812, 0.0196685791015625 ]
ee96a4cd175165df7686ecd13b4d50068333613f
Wordpress Stackexchange Q: BuddyPress: What's the use of wp_bp_xprofile_data table and how does it get updated? I have a questions related to BuddyPress: What's the use of wp_bp_xprofile_data table? How does the data in the table get updated? And when any user updates his information - does the data in this table get updated? A: The wp_bp_xprofile_data table holds all of the custom fields used on the front-end by BuddyPress. It is independent of the WordPress user meta. All of the functions that interact with this table can be found in bp-xprofile/bp-xprofile-functions.php.
Q: BuddyPress: What's the use of wp_bp_xprofile_data table and how does it get updated? I have a questions related to BuddyPress: What's the use of wp_bp_xprofile_data table? How does the data in the table get updated? And when any user updates his information - does the data in this table get updated? A: The wp_bp_xprofile_data table holds all of the custom fields used on the front-end by BuddyPress. It is independent of the WordPress user meta. All of the functions that interact with this table can be found in bp-xprofile/bp-xprofile-functions.php.
wordpress
{ "language": "en", "length": 90, "provenance": "stackexchange_00019.jsonl.gz:427923", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/81943" }
[ 0.0284576416015625, -0.00366973876953125, -0.055694580078125, -0.060302734375, 0.02337646484375, -0.033538818359375, -0.0014438629150390625, 0.0273590087890625, 0.0088043212890625, 0.052093505859375, -0.024993896484375, -0.001461029052734375, 0.00022029876708984375, 0.0019989013671875, -0.050018310546875, -0.032928466796875, 0.0328369140625, 0.00383758544921875, 0.0285186767578125, 0.01110076904296875, -0.003887176513671875, 0.0215911865234375, 0.00160980224609375, -0.011627197265625, 0.0262603759765625, -0.0032138824462890625, 0.0145416259765625, -0.001373291015625, 0.0260772705078125, 0.01678466796875, 0.0203094482421875, -0.032928466796875, 0.0084381103515625, 0.034576416015625, -0.0218353271484375, 0.002826690673828125, 0.04534912109375, 0.001789093017578125, 0.009490966796875, 0.03167724609375, 0.016937255859375, -0.00899505615234375, 0.027313232421875, -0.017547607421875, 0.016143798828125, -0.01983642578125, 0.031951904296875, -0.048553466796875, 0.000919342041015625, 0.003665924072265625, 0.01500701904296875, 0.0621337890625, 0.0224151611328125, -0.010345458984375, 0.007656097412109375, 0.0241851806640625, -0.025146484375, -0.034881591796875, 0.008453369140625, 0.01062774658203125, 0.016265869140625, 0.00936126708984375, 0.01708984375, 0.0263671875, -0.006103515625, -0.031341552734375, 0.007373809814453125, 0.0175933837890625, -0.041900634765625, -0.0240020751953125, 0.046356201171875, 0.005252838134765625, -0.01561737060546875, -0.0322265625, 0.0036716461181640625, -0.007678985595703125, 0.0350341796875, -0.03173828125, -0.038116455078125, 0.035797119140625, -0.0232696533203125, -0.03436279296875, 0.0126495361328125, -0.01435089111328125, 0.00018143653869628906, 0.0211944580078125, -0.0218505859375, -0.007328033447265625, 0.0194091796875, -0.00943756103515625, -0.0161285400390625, -0.001979827880859375, 0.01221466064453125, 0.0399169921875, -0.00939178466796875, -0.02264404296875, 0.0005755424499511719, 0.036163330078125, -0.00954437255859375, 0.0182342529296875, 0.0110321044921875, -0.037811279296875, 0.01983642578125, -0.051513671875, 0.0145111083984375, 0.0232086181640625, 0.007411956787109375, -0.047698974609375, 0.01264190673828125, 0.0016832351684570312, -0.01251983642578125, 0.01346588134765625, -0.0196075439453125, -0.04449462890625, 0.0160064697265625, 0.035888671875, -0.0447998046875, 0.03302001953125, -0.0115509033203125, 0.0218963623046875, -0.007427215576171875, -0.0125732421875, -0.00803375244140625, -0.045013427734375, 0.03302001953125, -0.0278167724609375, -0.065673828125, 0.060516357421875, -0.0216217041015625, 0.02716064453125, -0.00896453857421875, -0.023040771484375, 0.03411865234375, 0.08477783203125, 0.02996826171875, -0.0047760009765625, 0.043304443359375, -0.036346435546875, 0.00423431396484375, 0.042022705078125, -0.0224151611328125, -0.069091796875, -0.02337646484375, -0.00988006591796875, 0.01303863525390625, -0.0254058837890625, 0.0286865234375, 0.054962158203125, -0.01544189453125, -0.031982421875, 0.0166015625, 0.09332275390625, -0.0232086181640625, 0.0223541259765625, 0.09564208984375, 0.0022335052490234375, 0.051239013671875, -0.0176544189453125, 0.044891357421875, 0.0181884765625, -0.006557464599609375, -0.0245819091796875, 0.01253509521484375, -0.0113677978515625, -0.0108184814453125, 0.03399658203125, -0.0168304443359375, 0.004425048828125, 0.02862548828125, -0.034515380859375, 0.00669097900390625, -0.00608062744140625, 0.049530029296875, 0.01019287109375, 0.01404571533203125, 0.018341064453125, -0.015777587890625, 0.038360595703125, 0.046234130859375, -0.0460205078125, -0.02886962890625, -0.05224609375, 0.05950927734375, -0.0138092041015625, -0.0430908203125, 0.02294921875, 0.00917816162109375, 0.07843017578125, 0.0228424072265625, 0.027740478515625, 0.0241851806640625, -0.02093505859375, -0.01239013671875, 0.0780029296875, 0.019683837890625, -0.01280975341796875, -0.04364013671875, 0.020416259765625, -0.0244293212890625, -0.08099365234375, -0.0960693359375, 0.006053924560546875, 0.0088043212890625, 0.004974365234375, -0.04388427734375, 0.033355712890625, -0.038299560546875, 0.071044921875, 0.0165863037109375, 0.00659942626953125, -0.000568389892578125, 0.01084136962890625, -0.0233917236328125, 0.0014467239379882812, -0.024200439453125, 0.0169830322265625, -0.0216217041015625, 0.00333404541015625, 0.006038665771484375, -0.018829345703125, 0.006862640380859375, 0.001888275146484375, -0.00897979736328125, 0.002902984619140625, -0.0008587837219238281, -0.0002224445343017578, -0.0197296142578125, 0.0019350051879882812, -0.002368927001953125, -0.0076446533203125, 0.040771484375, 0.042144775390625, 0.041656494140625, 0.0224609375, -0.0209197998046875, -0.0185089111328125, -0.006015777587890625, -0.08099365234375, -0.0006613731384277344, 0.064453125, 0.039581298828125, 0.0032138824462890625, -0.0087127685546875, -0.01052093505859375, 0.03668212890625, 0.030975341796875, 0.03790283203125, -0.029052734375, 0.019927978515625, 0.08233642578125, -0.0169219970703125, 0.003936767578125, -0.00504302978515625, -0.018096923828125, -0.0128021240234375, 0.02197265625, -0.03411865234375, -0.0002999305725097656, 0.01027679443359375, -0.0214080810546875, -0.0005869865417480469, -0.006298065185546875, 0.02447509765625, -0.02142333984375, 0.047821044921875, -0.006076812744140625, 0.040924072265625, 0.0125732421875, -0.009033203125, 0.00795745849609375, 0.01678466796875, -0.0189666748046875, 0.0005249977111816406, -0.01323699951171875, -0.07122802734375, 0.053192138671875, -0.0030841827392578125, 0.0055084228515625, -0.0046539306640625, 0.0007615089416503906, -0.028167724609375, -0.01129913330078125, -0.03582763671875, -0.0155029296875, 0.015533447265625, -0.011871337890625, -0.003559112548828125, -0.01666259765625, -0.0316162109375, -0.044647216796875, -0.0203094482421875, 0.044281005859375, -0.01073455810546875, 0.019500732421875, 0.0230712890625, -0.01334381103515625, -0.01433563232421875, -0.064208984375, 0.05206298828125, -0.04766845703125, 0.0116119384765625, 0.07354736328125, -0.0128936767578125, 0.02716064453125, 0.00833892822265625, 0.0005135536193847656, -0.00637054443359375, 0.0193023681640625, 0.018218994140625, -0.021697998046875, 0.00927734375, 0.057525634765625, 0.01180267333984375, 0.021820068359375, -0.0233001708984375, -0.054534912109375, -0.0360107421875, 0.0186309814453125, -0.1043701171875, -0.0745849609375, -0.025604248046875, -0.054046630859375, -0.03546142578125, -0.03558349609375, -0.03778076171875, 0.04144287109375, -0.0362548828125, 0.0139312744140625, -0.022735595703125, -0.0350341796875, -0.0251922607421875, -0.0843505859375, -0.0268402099609375, -0.047149658203125, -0.0087127685546875, -0.024932861328125, -0.0149078369140625, 0.050018310546875, -0.0240325927734375, -0.0400390625, -0.02447509765625, -0.03363037109375, -0.00446319580078125, -0.011962890625, 0.0137939453125, -0.042999267578125, 0.0224456787109375, 0.004749298095703125, 0.007724761962890625, 0.02728271484375, -0.0260467529296875, -0.020233154296875, 0.007701873779296875, 0.0011644363403320312, 0.0243377685546875, 0.0029697418212890625, -0.0160675048828125, 0.0225677490234375, 0.025115966796875, -0.034454345703125, 0.0109710693359375, 0.0224609375, -0.0145416259765625, -0.03314208984375, 0.03619384765625, -0.0430908203125, -0.0283966064453125, -0.0189971923828125, 0.029632568359375, 0.0355224609375, -0.01654052734375, 0.0225982666015625, 0.0303802490234375, -0.01105499267578125, 0.0031032562255859375, -0.020843505859375, 0.008758544921875, -0.040679931640625, 0.0274505615234375, -0.006549835205078125, -0.0072174072265625, 0.006805419921875, 0.007843017578125, -0.0030460357666015625, -0.0147705078125, 0.0445556640625, 0.01512908935546875, 0.026397705078125, -0.01007080078125, -0.039794921875, -0.0032901763916015625, 0.0716552734375, -0.048797607421875, -0.0027370452880859375, 0.022369384765625, 0.026702880859375, -0.069091796875, -0.058013916015625, -0.06475830078125, 0.00070953369140625, -0.0184783935546875, -0.0340576171875, -0.0157318115234375, -0.0299835205078125, -0.03131103515625, 0.076416015625, -0.0447998046875, -0.01079559326171875, 0.0223236083984375, -0.02374267578125, -0.026336669921875, 0.01129150390625, -0.04486083984375, -0.0034580230712890625, -0.0298004150390625, -0.0032196044921875, -0.0173797607421875, -0.0007467269897460938, -0.017303466796875, -0.003772735595703125, 0.035308837890625, -0.0298919677734375, 0.038055419921875, 0.03338623046875, 0.0300750732421875, 0.0394287109375, 0.033111572265625, -0.01178741455078125, 0.03271484375, -0.0138702392578125, 0.031707763671875, -0.0189208984375, 0.0004487037658691406, -0.034576416015625, -0.006744384765625, 0.00238037109375, -0.021453857421875, 0.0104217529296875, -0.007720947265625, -0.00841522216796875, -0.029754638671875, -0.0128936767578125, -0.0174102783203125, 0.0019502639770507812, -0.033782958984375, 0.0196380615234375, -0.0011796951293945312, -0.023834228515625, 0.04864501953125, -0.014129638671875, 0.009918212890625, 0.0138397216796875, 0.061859130859375, 0.0027980804443359375, -0.0288238525390625, -0.093017578125, 0.0173492431640625, 0.0567626953125, 0.008392333984375, 0.0159912109375, 0.006229400634765625, -0.053497314453125, 0.08538818359375, 0.024993896484375, 0.0247955322265625, -0.0209808349609375, 0.055145263671875, -0.0016765594482421875, 0.020782470703125, -0.001522064208984375, -0.00580596923828125, -0.01453399658203125, 0.0129241943359375, -0.0162353515625, 0.015960693359375, -0.041473388671875, 0.0122528076171875, 0.00658416748046875, -0.0138092041015625, -0.036529541015625, -0.028564453125, 0.00872802734375, -0.020751953125, -0.0141754150390625, -0.0022487640380859375, -0.0124359130859375, -0.027984619140625, -0.018890380859375, 0.0390625, 0.007389068603515625, -0.009979248046875, -0.01104736328125, 0.03924560546875, 0.01064300537109375, 0.040069580078125, 0.005649566650390625, -0.01261138916015625, 0.054473876953125, -0.044342041015625, -0.0968017578125, 0.052520751953125, -0.0318603515625, 0.00635528564453125, 0.052947998046875, 0.00963592529296875, -0.0201263427734375, 0.03143310546875, -0.0141448974609375, -0.0027370452880859375, 0.04302978515625, 0.01318359375, -0.0091400146484375, 0.006683349609375, 0.03265380859375, -0.03411865234375, -0.048553466796875, 0.05224609375, 0.02783203125, -0.030059814453125, -0.002307891845703125, 0.07574462890625, 0.06439208984375, -0.00807952880859375, 0.0239410400390625, 0.0035877227783203125, 0.0011339187622070312, -0.042816162109375, -0.0274810791015625, -0.045196533203125, -0.018310546875, -0.006656646728515625, 0.006622314453125, 0.013336181640625, -0.011566162109375, 0.04241943359375, 0.0288238525390625, -0.02899169921875, 0.050689697265625, 0.025177001953125, -0.056304931640625, 0.01161956787109375, 0.023681640625, -0.0012874603271484375, -0.0125732421875, 0.003261566162109375, 0.00908660888671875, -0.0150299072265625, 0.007274627685546875, -0.06719970703125, 0.0166168212890625, -0.03546142578125, -0.03228759765625, 0.007465362548828125, -0.0035953521728515625, -0.027069091796875, 0.0160675048828125, -0.00583648681640625, -0.00737762451171875, -0.022216796875, 0.033203125, -0.017578125, -0.012420654296875, -0.029876708984375, 0.01186370849609375, -0.03857421875, -0.016021728515625, 0.09722900390625, 0.05059814453125, -0.01407623291015625, -0.008056640625, -0.0201568603515625, -0.0135040283203125, 0.0005340576171875, -0.035552978515625, -0.0163116455078125, -0.00811767578125, -0.0211181640625, 0.007904052734375, -0.04486083984375, -0.03790283203125, -0.0122222900390625, 0.0224761962890625, 0.016754150390625, 0.0260467529296875, -0.0233612060546875, 0.0771484375, -0.03997802734375, 0.06781005859375, -0.0069427490234375, 0.034942626953125, -0.0019464492797851562, -0.0121612548828125, 0.032501220703125, 0.02044677734375, -0.03240966796875, -0.042816162109375, 0.011993408203125, -0.04376220703125, 0.01519012451171875, -0.0218048095703125, 0.0538330078125, -0.03857421875, -0.0010614395141601562, -0.0090179443359375, 0.044158935546875, -0.09088134765625, 0.0188751220703125, 0.040802001953125, 0.0012187957763671875, 0.01910400390625, -0.038665771484375, -0.045379638671875, 0.01751708984375, 0.00716400146484375, 0.00959014892578125, 0.0286865234375, -0.0667724609375, 0.04888916015625, 0.08453369140625, 0.01461029052734375, 0.029022216796875, 0.021453857421875, -0.01232147216796875, -0.0154876708984375, -0.03314208984375, -0.00939178466796875, 0.01044464111328125, 0.043609619140625, -0.0113067626953125, -0.01181793212890625, 0.04229736328125, -0.027130126953125, 0.01507568359375, 0.0241241455078125, 0.043670654296875, -0.038330078125, 0.005950927734375, -0.01357269287109375, -0.036224365234375, 0.0307769775390625, 0.0241851806640625, -0.060089111328125, -0.052001953125, -0.013427734375, 0.0008864402770996094, -0.021697998046875, 0.0023326873779296875, 0.04998779296875, -0.012054443359375, 0.0007190704345703125, 0.04248046875, 0.007106781005859375, 0.0233154296875, -0.03955078125, -0.011199951171875, -0.0188446044921875, -0.0017557144165039062, 0.0264739990234375, 0.004146575927734375, -0.0418701171875, -0.04278564453125, 0.0012960433959960938, 0.024627685546875, -0.047210693359375, -0.027191162109375, 0.0024051666259765625, 0.09857177734375, 0.047210693359375, 0.0057373046875, -0.029144287109375, 0.0221710205078125, 0.0287322998046875, -0.024169921875, -0.036376953125, 0.034881591796875, 0.032745361328125, -0.033294677734375, 0.0312042236328125, 0.01372528076171875, -0.04412841796875, -0.00553131103515625, -0.04058837890625, 0.04327392578125, -0.050201416015625, 0.00684356689453125, 0.0011491775512695312, 0.045379638671875, 0.0301971435546875, -0.0160675048828125, -0.00452423095703125, -0.037872314453125, -0.0086669921875, -0.004001617431640625, -0.0205230712890625, 0.028961181640625, 0.0101776123046875, -0.03570556640625, 0.040252685546875, -0.01531982421875, 0.01001739501953125, 0.01300811767578125, 0.01079559326171875, -0.00791168212890625, 0.0005373954772949219, -0.049285888671875, 0.033355712890625, -0.0054168701171875, 0.08251953125, -0.064697265625, -0.0174713134765625, 0.0244293212890625, 0.05810546875, 0.033294677734375, 0.01224517822265625, -0.00609588623046875, 0.00536346435546875, 0.003814697265625, -0.0296478271484375, -0.042083740234375, 0.033599853515625, -0.029083251953125, 0.0587158203125, 0.0452880859375, -0.0682373046875, 0.008148193359375, 0.005512237548828125, -0.0160675048828125, 0.0038204193115234375, 0.029266357421875, 0.06787109375, -0.0062103271484375, -0.034576416015625, 0.06414794921875, -0.0258636474609375, -0.03143310546875, -0.02691650390625, 0.00322723388671875, 0.022552490234375, 0.01763916015625, 0.005199432373046875, 0.01509857177734375, -0.01611328125, 0.03448486328125, -0.0021724700927734375, 0.0272216796875, 0.033782958984375, -0.0001386404037475586, 0.1190185546875, 0.007904052734375, 0.01412200927734375, 0.029754638671875, 0.016937255859375, 0.035491943359375, -0.0048675537109375, 0.024444580078125, -0.039947509765625, 0.02069091796875, -0.00815582275390625, 0.0333251953125, -0.0423583984375, -0.0093994140625, 0.0231170654296875, -0.004711151123046875, -0.01085662841796875, -0.004680633544921875, -0.00403594970703125, -0.0249176025390625, -0.027984619140625, -0.034271240234375, 0.00800323486328125, 0.03802490234375, -0.0290069580078125, 0.0008540153503417969, 0.0391845703125, -0.0108795166015625, 0.031463623046875, 0.012908935546875, -0.01520538330078125, -0.00890350341796875, -0.039947509765625, 0.00287628173828125, 0.00852203369140625, 0.06256103515625, 0.035736083984375, -0.032806396484375, 0.036865234375, 0.045074462890625, 0.0287322998046875, -0.02362060546875, -0.00951385498046875, 0.0418701171875, 0.00934600830078125, 0.0574951171875, -0.039947509765625, 0.01221466064453125, -0.02069091796875, -0.04443359375, 0.0009741783142089844, 0.0198211669921875, -0.020416259765625, -0.022430419921875, -0.03863525390625, 0.03680419921875, 0.050262451171875, 0.023773193359375, -0.0022830963134765625, 0.0209503173828125, 0.05670166015625, -0.01342010498046875, 0.0606689453125, -0.005889892578125, -0.0108489990234375, 0.016754150390625, -0.00823974609375, 0.053863525390625, 0.0194091796875, -0.0595703125, -0.0134124755859375, -0.044952392578125, 0.0009632110595703125, 0.0251617431640625, 0.040191650390625, -0.0036296844482421875, 0.0245513916015625, -0.047332763671875, 0.005710601806640625, 0.020416259765625, -0.021514892578125, -0.03466796875, 0.052276611328125, 0.02850341796875, -0.0020904541015625, -0.00815582275390625, -0.0189208984375, 0.01442718505859375, 0.0352783203125, -0.0002467632293701172, 0.041473388671875, -0.0311279296875, 0.019439697265625, -0.01421356201171875, -0.000522613525390625, 0.031402587890625, 0.0011119842529296875, 0.0245361328125, 0.0682373046875, 0.0283050537109375, -0.040069580078125, -0.0176544189453125, 0.0302581787109375, 0.0300750732421875, -0.006450653076171875, 0.034149169921875, -0.022705078125, 0.0152587890625, -0.0272064208984375, 0.00470733642578125, -0.0245513916015625, 0.00843048095703125, 0.0242156982421875, -0.00026226043701171875, 0.018768310546875, -0.012420654296875, 0.0104827880859375, 0.0238189697265625, 0.02099609375, 0.00968170166015625, -0.01245880126953125, -0.0027599334716796875, 0.005184173583984375, 0.019866943359375, -0.0163421630859375, 0.0091705322265625, 0.017120361328125, -0.027008056640625, 0.0243682861328125, -0.01064300537109375, 0.0224151611328125, 0.01332855224609375, -0.040771484375, 0.0161590576171875, 0.022308349609375, 0.045196533203125, 0.00830078125, 0.00971221923828125, -0.00634765625, -0.006084442138671875, 0.0164337158203125, 0.0120391845703125, -0.01739501953125, -0.047760009765625, -0.0048828125, 0.005367279052734375, -0.0318603515625, -0.01050567626953125, -0.0704345703125, -0.0008254051208496094, 0.020660400390625, 0.00916290283203125, -0.045654296875, 0.0062713623046875, 0.016265869140625, 0.03857421875, 0.0001468658447265625, -0.002094268798828125, 0.0279388427734375, 0.044219970703125, -0.039093017578125, -0.000774383544921875, 0.0032825469970703125, -0.0137939453125, 0.0094146728515625, -0.0011463165283203125, 0.0014181137084960938, -0.01265716552734375, -0.01432037353515625, 0.017242431640625, 0.03021240234375, 0.0457763671875, 0.0293121337890625, -0.038421630859375, -0.01219940185546875, -0.0173187255859375, 0.006664276123046875, -0.039581298828125, -0.012542724609375, -0.059539794921875, 0.017181396484375, -0.0325927734375, -0.0003726482391357422, -0.0140380859375, -0.0633544921875, -0.07757568359375, 0.104248046875, -0.0294342041015625, -0.0361328125, -0.061431884765625, -0.02471923828125, -0.0029315948486328125, 0.01092529296875, -0.027801513671875, -0.036529541015625, -0.038543701171875, 0.047821044921875, 0.0281524658203125, 0.04150390625, -0.007053375244140625, 0.042144775390625, -0.078857421875, 0.021728515625, -0.035552978515625, 0.031890869140625, 0.005649566650390625, -0.002605438232421875, 0.034881591796875, 0.018646240234375, -0.0333251953125, -0.0069122314453125, 0.0229644775390625, 0.0102691650390625, 0.01116180419921875, -0.035980224609375, -0.004180908203125, -0.0002894401550292969, 0.0455322265625, 0.00826263427734375, 0.012847900390625, -0.0279693603515625, 0.03350830078125, -0.05181884765625, -0.032012939453125, -0.0058441162109375, -0.004680633544921875, -0.00022912025451660156, -0.0015611648559570312, 0.0147552490234375, -0.044403076171875, -0.00756072998046875, 0.03582763671875, -0.05474853515625, 0.0255889892578125, 0.0177764892578125, -0.02838134765625, -0.05926513671875, -0.0310821533203125, 0.002819061279296875, 0.00507354736328125, 0.03021240234375, -0.030303955078125, 0.03619384765625, 0.002899169921875, 0.034515380859375, -0.0029506683349609375, 0.0122833251953125, -0.056121826171875, -0.0020580291748046875, -0.0209808349609375, 0.019744873046875, -0.01238250732421875, -0.0101470947265625, 0.005100250244140625, 0.0189361572265625, -0.011505126953125, 0.0064544677734375, -0.003139495849609375, 0.0287017822265625, -0.0036334991455078125, 0.027923583984375, -0.005451202392578125, -0.038299560546875, -0.037872314453125, 0.046630859375, 0.0205841064453125, -0.029449462890625, 0.04559326171875, -0.0103912353515625, -0.00626373291015625, -0.0229644775390625, -0.00748443603515625, -0.0703125, 0.006885528564453125, -0.0260162353515625, -0.01114654541015625, 0.0223541259765625 ]
47df86817a53a7fffda0e89fd2a9e36bc3181f14
Wordpress Stackexchange Q: How to custom change author base without $this->front? I have a sample code: function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'u'; $wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . '/%author%'; add_rewrite_rule('u/([^/]+)/?$', 'index.php?author_name=$matches[1]', 'top'); } add_action('init','change_author_permalinks'); but my current front set on my blog is: t%post% (ex: www.domain.com/tauthor/username) I want change to: www.domain.com/u/username But when run code, result is page not found ? How to fix it ? A: This is what I did to change the author base: // change base of author pages- need to save permalinks to take effect function wpa_82004(){ global $wp_rewrite; $wp_rewrite->author_base = 'people'; // or whatever } add_action('init','wpa_82004'); Once you've run this, be sure to re-save your permalinks. (Options->Permalinks) You have to flush your rewrite_rules to even know if this is working.
Q: How to custom change author base without $this->front? I have a sample code: function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'u'; $wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . '/%author%'; add_rewrite_rule('u/([^/]+)/?$', 'index.php?author_name=$matches[1]', 'top'); } add_action('init','change_author_permalinks'); but my current front set on my blog is: t%post% (ex: www.domain.com/tauthor/username) I want change to: www.domain.com/u/username But when run code, result is page not found ? How to fix it ? A: This is what I did to change the author base: // change base of author pages- need to save permalinks to take effect function wpa_82004(){ global $wp_rewrite; $wp_rewrite->author_base = 'people'; // or whatever } add_action('init','wpa_82004'); Once you've run this, be sure to re-save your permalinks. (Options->Permalinks) You have to flush your rewrite_rules to even know if this is working. A: You're close, but you don't need the add_rewrite_rule call. add_action('init', 'wpse82004_init'); function wpse82004_init() { global $wp_rewrite; $wp_rewrite->author_base = 'u'; $wp_rewrite->author_structure = '/' . $wp_rewrite->author_base . '/%author%'; } After that's in place, just re-save permalinks. Here's a plugin to put an option on your permalinks page to do this.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:427940", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/82004" }
[ 0.03643798828125, -0.0018243789672851562, -0.0054473876953125, -0.015777587890625, -0.0008592605590820312, -0.0130462646484375, 0.0131072998046875, -0.023345947265625, -0.01212310791015625, 0.0110015869140625, -0.0172271728515625, 0.038482666015625, -0.01058197021484375, -0.026885986328125, 0.0218963623046875, -0.0083770751953125, 0.028472900390625, -0.0172576904296875, 0.0276641845703125, -0.0028247833251953125, 0.015777587890625, 0.0011005401611328125, 0.049713134765625, 0.0021839141845703125, 0.03778076171875, -0.05303955078125, 0.0877685546875, -0.044158935546875, 0.0246429443359375, -0.06170654296875, 0.02130126953125, 0.0176239013671875, 0.002254486083984375, 0.00823974609375, 0.0025730133056640625, 0.038543701171875, -0.022369384765625, 0.01517486572265625, 0.0189666748046875, 0.0110626220703125, 0.027252197265625, -0.00457000732421875, -0.041961669921875, 0.0231170654296875, -0.01371002197265625, -0.076904296875, 0.0501708984375, -0.051605224609375, 0.043670654296875, -0.00824737548828125, -0.044219970703125, 0.0248260498046875, -0.045440673828125, -0.00046563148498535156, -0.01885986328125, -0.01140594482421875, 0.0235748291015625, -0.032745361328125, 0.03546142578125, -0.0411376953125, -0.0247955322265625, -0.012969970703125, 0.042694091796875, 0.038909912109375, -0.00975799560546875, -0.01238250732421875, 0.005176544189453125, 0.035858154296875, -0.00383758544921875, -0.00628662109375, 0.005992889404296875, -0.0017309188842773438, -0.035736083984375, 0.01316070556640625, -0.030029296875, -0.016265869140625, 0.0070037841796875, -0.038543701171875, -0.00824737548828125, 0.04388427734375, 0.02227783203125, -0.0012521743774414062, 0.0097198486328125, -0.05816650390625, 0.048065185546875, -0.0162811279296875, 0.0054931640625, -0.00791168212890625, -0.037017822265625, 0.007236480712890625, -0.0159912109375, -0.025787353515625, -0.029632568359375, 0.004680633544921875, 0.022125244140625, -0.0288543701171875, 0.0259552001953125, 0.043121337890625, 0.004611968994140625, -0.0099945068359375, 0.023773193359375, -0.0394287109375, 0.0216064453125, -0.0364990234375, 0.003021240234375, 0.0614013671875, 0.035919189453125, 0.0654296875, 0.03375244140625, -0.00345611572265625, 0.005550384521484375, 0.01444244384765625, -0.0102386474609375, -0.005123138427734375, -0.0303497314453125, -0.0308837890625, -0.07049560546875, 0.021453857421875, 0.005107879638671875, -0.002109527587890625, 0.01392364501953125, 0.02545166015625, -0.000583648681640625, -0.01194000244140625, 0.03692626953125, 0.01444244384765625, -0.01434326171875, -0.0256805419921875, -0.0035305023193359375, 0.038238525390625, -0.03167724609375, 0.006755828857421875, 0.0543212890625, 0.035247802734375, 0.0168304443359375, -0.029510498046875, 0.01415252685546875, -0.022430419921875, -0.017974853515625, 0.04376220703125, -0.01105499267578125, -0.056732177734375, -0.01273345947265625, -0.0153350830078125, 0.010955810546875, 0.0228424072265625, 0.01390838623046875, 0.0251007080078125, -0.005748748779296875, -0.032989501953125, 0.0345458984375, -0.0218658447265625, 0.0264129638671875, 0.0006890296936035156, 0.040008544921875, -0.03607177734375, 0.05810546875, -0.041290283203125, 0.00420379638671875, -0.042572021484375, 0.035980224609375, -0.0110321044921875, -0.0012788772583007812, -0.00823211669921875, -0.027984619140625, 0.0001671314239501953, -0.060089111328125, -0.005924224853515625, 0.01514434814453125, -0.021148681640625, 0.0241546630859375, -0.006500244140625, 0.001468658447265625, 0.0262451171875, 0.0186614990234375, 0.01959228515625, -0.01523590087890625, 0.0174560546875, -0.00919342041015625, 0.0794677734375, 0.043914794921875, -0.011505126953125, 0.0106201171875, 0.01183319091796875, -0.052215576171875, 0.066650390625, 0.0161590576171875, 0.106689453125, -0.01898193359375, 0.0159149169921875, -0.0008144378662109375, 0.0302734375, -0.0209503173828125, -0.000015437602996826172, -0.009033203125, -0.0242462158203125, 0.0188446044921875, -0.0009737014770507812, -0.01161956787109375, 0.0160064697265625, -0.01059722900390625, 0.00975799560546875, -0.0013408660888671875, 0.02935791015625, -0.03863525390625, 0.0251617431640625, -0.01213836669921875, 0.021514892578125, 0.04302978515625, 0.0186920166015625, 0.00807952880859375, 0.020416259765625, -0.0169525146484375, -0.044097900390625, -0.045318603515625, 0.057159423828125, -0.005462646484375, 0.0199127197265625, 0.01288604736328125, 0.0255126953125, 0.0251617431640625, -0.0228118896484375, 0.0110931396484375, 0.007053375244140625, 0.0155181884765625, -0.051727294921875, -0.0107879638671875, -0.05078125, -0.047088623046875, -0.0251617431640625, -0.04742431640625, 0.07830810546875, 0.0487060546875, -0.0162811279296875, -0.05902099609375, 0.006744384765625, 0.00023043155670166016, -0.0265045166015625, -0.0141754150390625, 0.058380126953125, 0.04571533203125, 0.002269744873046875, -0.01465606689453125, -0.02398681640625, 0.033111572265625, 0.00020372867584228516, 0.0333251953125, -0.025543212890625, 0.0022125244140625, 0.0297088623046875, 0.0022106170654296875, 0.005023956298828125, 0.0205535888671875, -0.09014892578125, 0.0140533447265625, 0.037353515625, -0.011016845703125, 0.0026721954345703125, -0.03216552734375, 0.023956298828125, 0.0131683349609375, -0.01163482666015625, -0.016510009765625, -0.0199432373046875, 0.0182342529296875, -0.0157470703125, -0.00861358642578125, -0.0173492431640625, -0.046722412109375, 0.00637054443359375, 0.037628173828125, 0.0161895751953125, -0.0061798095703125, 0.0311279296875, 0.008544921875, -0.0253753662109375, 0.004673004150390625, 0.00015866756439208984, -0.01532745361328125, 0.00640869140625, -0.0248260498046875, 0.00493621826171875, -0.00620269775390625, -0.00762176513671875, -0.009521484375, -0.0269622802734375, 0.006633758544921875, -0.0177459716796875, -0.0081634521484375, -0.01303863525390625, 0.018768310546875, 0.0204010009765625, -0.02789306640625, 0.00881195068359375, 0.011505126953125, -0.0146331787109375, 0.0008959770202636719, -0.055267333984375, 0.06256103515625, -0.029632568359375, 0.016143798828125, 0.0743408203125, 0.0141448974609375, 0.01430511474609375, 0.00896453857421875, -0.0300140380859375, -0.0015935897827148438, 0.04376220703125, 0.01436614990234375, -0.01401519775390625, -0.025665283203125, 0.0108642578125, 0.020843505859375, 0.0311431884765625, -0.010528564453125, -0.0262603759765625, 0.00027298927307128906, 0.0223541259765625, -0.01436614990234375, -0.0194549560546875, -0.0119476318359375, -0.0582275390625, -0.0031757354736328125, 0.0042266845703125, -0.0260162353515625, 0.0027179718017578125, 0.0266876220703125, -0.0099029541015625, 0.0222930908203125, -0.042724609375, -0.0718994140625, -0.061431884765625, -0.09375, -0.0238037109375, 0.00021064281463623047, 0.007198333740234375, 0.00414276123046875, -0.0025177001953125, -0.0110321044921875, -0.041473388671875, -0.01207733154296875, 0.03472900390625, 0.005863189697265625, -0.034942626953125, -0.00797271728515625, -0.01641845703125, 0.01233673095703125, -0.0055084228515625, 0.0458984375, 0.044036865234375, -0.039093017578125, 0.004268646240234375, 0.004974365234375, -0.0166168212890625, 0.032928466796875, 0.0328369140625, -0.01438140869140625, -0.0304107666015625, 0.045318603515625, -0.06329345703125, -0.030914306640625, 0.0219879150390625, -0.0143890380859375, 0.03790283203125, 0.01401519775390625, -0.03314208984375, 0.00531005859375, 0.020111083984375, 0.03564453125, 0.0286407470703125, 0.040435791015625, 0.008453369140625, -0.0017547607421875, 0.00044536590576171875, 0.004207611083984375, -0.048004150390625, 0.01947021484375, -0.0267486572265625, 0.01390838623046875, 0.010528564453125, -0.00719451904296875, 0.0024967193603515625, -0.02496337890625, -0.01503753662109375, -0.051422119140625, 0.03271484375, -0.093017578125, -0.03558349609375, -0.04150390625, 0.0008854866027832031, -0.00782012939453125, 0.06512451171875, 0.0302886962890625, -0.0230560302734375, 0.0254058837890625, 0.003780364990234375, -0.06500244140625, -0.0100555419921875, -0.037017822265625, 0.00004220008850097656, -0.064697265625, 0.0024871826171875, -0.013031005859375, -0.0299835205078125, -0.007537841796875, 0.0186004638671875, -0.01244354248046875, -0.0299224853515625, 0.0340576171875, 0.0242462158203125, -0.0241241455078125, 0.025238037109375, -0.04119873046875, 0.025909423828125, -0.02703857421875, 0.01439666748046875, -0.103515625, -0.0302581787109375, 0.015869140625, 0.07000732421875, -0.03204345703125, 0.033966064453125, -0.03668212890625, 0.07366943359375, 0.0093536376953125, -0.0012979507446289062, 0.0001672506332397461, 0.003326416015625, -0.016571044921875, 0.00885009765625, -0.01107025146484375, -0.00952911376953125, 0.020294189453125, 0.020751953125, -0.0428466796875, 0.044677734375, -0.0296478271484375, 0.016571044921875, -0.004199981689453125, -0.05224609375, -0.059051513671875, -0.057708740234375, -0.041015625, 0.032989501953125, -0.0236968994140625, 0.0294036865234375, -0.09271240234375, -0.0714111328125, 0.0557861328125, -0.042999267578125, -0.0023670196533203125, -0.0082550048828125, 0.0660400390625, 0.0234222412109375, -0.0250396728515625, 0.057464599609375, -0.00791168212890625, 0.01421356201171875, -0.00522613525390625, -0.00045108795166015625, -0.00228118896484375, -0.0229339599609375, 0.037506103515625, -0.02606201171875, -0.0037517547607421875, -0.0131072998046875, 0.02545166015625, 0.0188140869140625, -0.005157470703125, 0.0107574462890625, -0.0008473396301269531, 0.0182342529296875, -0.004467010498046875, -0.01558685302734375, 0.02850341796875, -0.00041747093200683594, 0.0080718994140625, -0.01212310791015625, 0.0152435302734375, -0.018798828125, -0.052642822265625, 0.025299072265625, -0.01477813720703125, 0.024871826171875, -0.0220489501953125, 0.01172637939453125, 0.01441192626953125, 0.003070831298828125, -0.005710601806640625, -0.011566162109375, -0.036468505859375, 0.004467010498046875, 0.0196685791015625, -0.00946044921875, 0.0027313232421875, 0.0014362335205078125, -0.005779266357421875, 0.1058349609375, 0.03509521484375, -0.01239013671875, 0.008056640625, -0.0279998779296875, -0.007694244384765625, -0.00986480712890625, -0.02239990234375, 0.055633544921875, 0.01155853271484375, -0.01029205322265625, 0.00342559814453125, -0.060791015625, -0.00308990478515625, -0.0491943359375, 0.04840087890625, -0.00021958351135253906, 0.00244903564453125, -0.0272674560546875, 0.08837890625, 0.018341064453125, 0.0101318359375, -0.01004791259765625, 0.035186767578125, 0.05755615234375, 0.015716552734375, 0.010009765625, 0.0118255615234375, 0.01291656494140625, -0.01776123046875, 0.02874755859375, -0.046112060546875, -0.005855560302734375, 0.0382080078125, 0.0789794921875, 0.0293121337890625, -0.00557708740234375, -0.032012939453125, -0.04547119140625, -0.0098876953125, 0.0086822509765625, -0.02410888671875, -0.04119873046875, -0.017730712890625, 0.0134429931640625, 0.0171966552734375, -0.030364990234375, -0.0002980232238769531, -0.022979736328125, -0.0560302734375, -0.037506103515625, 0.002475738525390625, -0.010589599609375, -0.03289794921875, -0.032073974609375, 0.0196075439453125, -0.026824951171875, -0.01532745361328125, -0.01136016845703125, -0.00010061264038085938, -0.0261383056640625, 0.0097198486328125, 0.04852294921875, -0.006855010986328125, 0.0150909423828125, -0.016143798828125, -0.00878143310546875, 0.01454925537109375, -0.01233673095703125, 0.053619384765625, 0.01202392578125, -0.060455322265625, 0.0322265625, -0.03057861328125, 0.01390838623046875, -0.01261138916015625, -0.01070404052734375, -0.035247802734375, -0.014801025390625, -0.0020847320556640625, 0.0003399848937988281, -0.01904296875, -0.002796173095703125, 0.00400543212890625, 0.037689208984375, -0.009063720703125, 0.0248260498046875, -0.0306396484375, 0.08282470703125, 0.0125885009765625, 0.0268707275390625, 0.0051727294921875, 0.0323486328125, -0.0074615478515625, -0.0124969482421875, -0.01067352294921875, -0.0179901123046875, -0.013702392578125, -0.00748443603515625, -0.00908660888671875, 0.01444244384765625, 0.062347412109375, 0.0026874542236328125, 0.0015411376953125, 0.007205963134765625, 0.00434112548828125, -0.0299835205078125, -0.0066375732421875, -0.0211181640625, 0.0251922607421875, -0.042938232421875, 0.0152130126953125, 0.05963134765625, -0.0231781005859375, -0.037384033203125, -0.01523590087890625, 0.0096588134765625, -0.004268646240234375, 0.0261383056640625, -0.058074951171875, 0.028411865234375, 0.053009033203125, 0.048553466796875, 0.06170654296875, 0.00782012939453125, 0.04522705078125, 0.0220489501953125, -0.0134429931640625, 0.0168914794921875, 0.043426513671875, 0.0484619140625, 0.01451873779296875, 0.029876708984375, 0.056060791015625, -0.004642486572265625, 0.005115509033203125, 0.03924560546875, 0.06396484375, -0.09539794921875, 0.0218963623046875, 0.0081939697265625, 0.033599853515625, 0.05548095703125, 0.0177001953125, -0.0185699462890625, 0.00782012939453125, 0.0108489990234375, -0.039154052734375, -0.0183868408203125, 0.020233154296875, 0.0244293212890625, -0.0014371871948242188, -0.045379638671875, 0.0467529296875, 0.01328277587890625, 0.0028076171875, 0.0034770965576171875, 0.0197296142578125, 0.00652313232421875, -0.0250701904296875, -0.00007140636444091797, 0.01763916015625, -0.005947113037109375, -0.0098724365234375, 0.0689697265625, -0.014068603515625, 0.0165863037109375, 0.0075836181640625, 0.01297760009765625, 0.0135498046875, 0.0287933349609375, -0.010955810546875, 0.00518798828125, -0.0029659271240234375, 0.01026153564453125, -0.0048675537109375, -0.03643798828125, 0.01078033447265625, 0.0231781005859375, -0.0279693603515625, 0.0250091552734375, 0.0019054412841796875, -0.041595458984375, -0.01496124267578125, -0.04931640625, 0.050567626953125, -0.0382080078125, -0.009552001953125, 0.007511138916015625, 0.0004630088806152344, 0.00475311279296875, 0.016448974609375, 0.00428009033203125, -0.054962158203125, -0.0555419921875, 0.01042938232421875, -0.06793212890625, 0.017486572265625, 0.005535125732421875, -0.07244873046875, 0.1300048828125, -0.0033550262451171875, 0.047607421875, 0.0087127685546875, 0.04376220703125, -0.00823974609375, 0.0224761962890625, -0.043060302734375, 0.06072998046875, 0.0273895263671875, 0.0418701171875, -0.053741455078125, -0.028656005859375, 0.0119781494140625, 0.050811767578125, 0.0579833984375, 0.018096923828125, -0.03790283203125, 0.0128326416015625, 0.0308990478515625, -0.01849365234375, -0.03314208984375, 0.05963134765625, -0.0203704833984375, 0.00988006591796875, 0.005245208740234375, -0.01541900634765625, 0.0279541015625, -0.02801513671875, -0.061065673828125, 0.0008111000061035156, 0.027587890625, 0.04534912109375, -0.0306854248046875, 0.0159759521484375, -0.039520263671875, -0.02593994140625, 0.053192138671875, -0.04010009765625, -0.0109405517578125, 0.036376953125, 0.034820556640625, -0.039276123046875, -0.0299835205078125, -0.0243072509765625, 0.039154052734375, 0.00402069091796875, 0.01442718505859375, 0.0287628173828125, 0.019134521484375, 0.035003662109375, -0.017181396484375, 0.00695037841796875, 0.0211639404296875, -0.01398468017578125, 0.0546875, 0.0487060546875, 0.0251617431640625, 0.011566162109375, 0.0307159423828125, 0.01305389404296875, 0.05859375, -0.047698974609375, -0.0241851806640625, 0.0003294944763183594, 0.0032939910888671875, 0.0009975433349609375, -0.03216552734375, -0.00290679931640625, -0.006072998046875, -0.00836181640625, -0.015838623046875, 0.0033206939697265625, 0.007389068603515625, 0.01190948486328125, -0.0033321380615234375, 0.0012025833129882812, -0.012939453125, 0.03118896484375, -0.0467529296875, -0.0165863037109375, 0.00531768798828125, 0.022247314453125, 0.037567138671875, 0.004985809326171875, 0.045989990234375, -0.00688934326171875, -0.00811767578125, 0.0292510986328125, -0.014068603515625, 0.0140380859375, -0.04156494140625, -0.047821044921875, 0.0248260498046875, 0.046478271484375, -0.006916046142578125, -0.0007271766662597656, -0.007663726806640625, 0.004192352294921875, 0.00402069091796875, 0.004489898681640625, 0.056549072265625, -0.01247406005859375, 0.00887298583984375, -0.0247802734375, 0.0172576904296875, -0.0026798248291015625, 0.006748199462890625, -0.0267486572265625, 0.048797607421875, 0.0028972625732421875, -0.00501251220703125, 0.0184783935546875, 0.00433349609375, -0.027557373046875, 0.026702880859375, 0.020965576171875, 0.06597900390625, 0.02972412109375, -0.01114654541015625, 0.00921630859375, -0.0294189453125, -0.07586669921875, 0.02972412109375, 0.048583984375, 0.007598876953125, -0.0132904052734375, -0.031280517578125, 0.0031223297119140625, 0.0089263916015625, -0.0080718994140625, -0.01076507568359375, 0.045989990234375, 0.023345947265625, 0.004528045654296875, -0.06317138671875, -0.024871826171875, -0.0003514289855957031, 0.0117340087890625, 0.005306243896484375, 0.09918212890625, -0.0289764404296875, -0.0018529891967773438, -0.03277587890625, 0.006916046142578125, -0.050506591796875, -0.041748046875, 0.0469970703125, -0.05474853515625, -0.0296478271484375, 0.0240936279296875, -0.047515869140625, 0.037750244140625, 0.0234375, -0.020538330078125, 0.03643798828125, -0.008636474609375, 0.01107025146484375, -0.026458740234375, -0.023712158203125, -0.046844482421875, -0.08917236328125, -0.0526123046875, 0.025848388671875, -0.01172637939453125, -0.0306549072265625, -0.06292724609375, 0.0192108154296875, 0.02423095703125, -0.0222320556640625, -0.0025539398193359375, 0.004680633544921875, 0.005382537841796875, 0.03216552734375, 0.024658203125, -0.0416259765625, 0.038238525390625, -0.009185791015625, -0.00799560546875, 0.0255584716796875, 0.04180908203125, 0.01934814453125, -0.045074462890625, -0.0020313262939453125, -0.0305023193359375, -0.0023555755615234375, -0.01491546630859375, -0.005306243896484375, -0.00850677490234375, -0.005039215087890625, -0.018035888671875, 0.0007157325744628906, -0.0196075439453125, 0.001117706298828125, 0.01325225830078125, 0.016326904296875, 0.0198211669921875, -0.0069732666015625, -0.016571044921875, 0.0150909423828125, 0.01099395751953125, 0.00508880615234375, -0.08013916015625, 0.060882568359375, -0.02923583984375, 0.037139892578125, -0.04327392578125, -0.040740966796875, 0.0230712890625, 0.036376953125, -0.053955078125, -0.027740478515625, -0.053619384765625, -0.02813720703125, -0.07965087890625, 0.0142974853515625, 0.050933837890625, -0.004444122314453125, -0.020477294921875, -0.019287109375, -0.03118896484375, 0.060302734375, -0.0740966796875, -0.01495361328125, 0.031402587890625, -0.00013816356658935547, -0.03070068359375, -0.09527587890625, -0.00562286376953125, -0.0821533203125, 0.01409912109375, -0.01526641845703125, 0.0003223419189453125, 0.014312744140625, -0.0242156982421875, -0.0024585723876953125, 0.023468017578125, 0.0082855224609375, -0.016143798828125, -0.029754638671875, -0.00897216796875, -0.019317626953125, 0.061981201171875, 0.018310546875, -0.03302001953125, -0.0266571044921875, 0.006160736083984375, 0.0137176513671875, 0.051300048828125, -0.01332855224609375, 0.0280303955078125, -0.02252197265625, 0.0197601318359375, -0.000034928321838378906, 0.0009284019470214844, 0.039794921875, -0.01239013671875, 0.038726806640625, 0.059814453125, -0.018310546875, 0.053070068359375, -0.030975341796875, -0.038665771484375, -0.0161590576171875, -0.051300048828125, -0.0169219970703125, -0.0244903564453125, 0.08392333984375, -0.0167999267578125, 0.0062255859375, -0.0141754150390625, -0.021087646484375, 0.00811004638671875, 0.006946563720703125, 0.00640106201171875, 0.00820159912109375, -0.042205810546875, -0.005512237548828125, -0.004993438720703125, -0.022430419921875, 0.0002149343490600586, -0.0112457275390625, -0.035736083984375, 0.0166778564453125, -0.0133209228515625, -0.024810791015625, 0.005084991455078125, -0.01349639892578125, 0.0313720703125, -0.0294189453125, -0.0171966552734375, 0.005889892578125, 0.01364898681640625, -0.0081329345703125, -0.0020084381103515625, -0.0202484130859375, 0.039276123046875, -0.01593017578125, -0.00489044189453125, 0.0252838134765625, 0.0212554931640625, -0.01317596435546875, 0.013031005859375, -0.04254150390625, 0.00957489013671875, -0.0065155029296875, -0.01611328125, -0.01611328125, 0.0416259765625, 0.018890380859375, 0.09375, -0.02691650390625, -0.0293426513671875, -0.027740478515625, 0.01873779296875, -0.024749755859375, 0.0233001708984375, 0.0196685791015625, -0.0156707763671875, -0.006702423095703125, 0.01483917236328125, 0.0081634521484375, -0.039703369140625, 0.0215301513671875, -0.01451873779296875, 0.01953125, 0.0208892822265625 ]
db3c262258fc1092a672c96e94ce3040cd2bf62e
Wordpress Stackexchange Q: What is the difference with get_sidebar and dynamic_sidebar? What is the difference with get_sidebar() and dynamic_sidebar()? I was wondering which one I should use. Maybe one use widgets and the other one doesn't? A: Please refer to the get_sidebar() and dynamic_sidebar() Codex entries. The get_sidebar( $slug ) template tag includes the sidebar-$slug.php template-part file. The dynamic_sidebar( $slug ) template tag outputs the $slug dynamic sidebar, as defined by register_sidebar( array( 'id' => $slug ) ).
Q: What is the difference with get_sidebar and dynamic_sidebar? What is the difference with get_sidebar() and dynamic_sidebar()? I was wondering which one I should use. Maybe one use widgets and the other one doesn't? A: Please refer to the get_sidebar() and dynamic_sidebar() Codex entries. The get_sidebar( $slug ) template tag includes the sidebar-$slug.php template-part file. The dynamic_sidebar( $slug ) template tag outputs the $slug dynamic sidebar, as defined by register_sidebar( array( 'id' => $slug ) ).
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:427944", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/82016" }
[ 0.02545166015625, -0.00800323486328125, -0.0006456375122070312, -0.0251922607421875, 0.016937255859375, -0.0128326416015625, 0.033782958984375, -0.006168365478515625, -0.06390380859375, 0.031219482421875, -0.037689208984375, 0.0401611328125, -0.03997802734375, 0.007747650146484375, 0.0310821533203125, -0.044464111328125, 0.0650634765625, -0.021270751953125, 0.03863525390625, -0.025848388671875, 0.0024967193603515625, 0.00955963134765625, 0.035247802734375, 0.159912109375, 0.04864501953125, -0.09033203125, 0.023895263671875, 0.00917816162109375, 0.005939483642578125, -0.02655029296875, 0.0189971923828125, 0.02471923828125, 0.024627685546875, -0.0134735107421875, 0.005298614501953125, 0.055206298828125, 0.0014829635620117188, 0.00986480712890625, 0.004467010498046875, -0.0107879638671875, 0.031982421875, -0.034393310546875, 0.0323486328125, -0.021697998046875, 0.00872802734375, 0.004703521728515625, 0.0172576904296875, -0.034576416015625, -0.007122039794921875, -0.00617218017578125, 0.0250396728515625, -0.0163421630859375, 0.045806884765625, 0.00848388671875, -0.02813720703125, -0.006603240966796875, 0.009124755859375, -0.022247314453125, 0.02825927734375, -0.00872039794921875, -0.019317626953125, -0.00467681884765625, 0.0310821533203125, 0.002429962158203125, -0.0019893646240234375, -0.0243988037109375, -0.0175018310546875, 0.0313720703125, -0.036651611328125, 0.0015497207641601562, 0.038787841796875, -0.0276336669921875, -0.00234222412109375, -0.0299072265625, -0.0164642333984375, 0.00653839111328125, -0.01078033447265625, -0.004985809326171875, 0.00577545166015625, -0.0144805908203125, -0.02685546875, 0.01416778564453125, -0.08526611328125, -0.0207672119140625, 0.016143798828125, 0.006015777587890625, -0.01534271240234375, -0.017730712890625, -0.00930023193359375, -0.0213775634765625, -0.00959014892578125, -0.04632568359375, -0.0084991455078125, 0.037139892578125, 0.0024166107177734375, -0.045196533203125, 0.0004658699035644531, 0.032073974609375, -0.0136566162109375, 0.029937744140625, -0.028533935546875, -0.028839111328125, 0.013671875, -0.049896240234375, -0.0007739067077636719, 0.002040863037109375, -0.0158538818359375, 0.0384521484375, 0.043975830078125, 0.052764892578125, 0.01432037353515625, 0.00914764404296875, -0.005519866943359375, -0.034271240234375, -0.0196075439453125, 0.0222930908203125, -0.035919189453125, 0.0256805419921875, 0.0188446044921875, 0.03656005859375, 0.019989013671875, 0.033660888671875, 0.05181884765625, -0.010711669921875, 0.013946533203125, 0.047515869140625, -0.011383056640625, -0.08502197265625, -0.01398468017578125, 0.0130767822265625, -0.05029296875, -0.0144195556640625, 0.0582275390625, 0.050323486328125, 0.03265380859375, -0.0139312744140625, 0.002521514892578125, -0.005603790283203125, 0.0295257568359375, -0.0019426345825195312, -0.0101470947265625, -0.020538330078125, 0.0258941650390625, -0.004787445068359375, -0.005451202392578125, -0.005191802978515625, 0.030426025390625, 0.0258331298828125, -0.00287628173828125, -0.019744873046875, 0.00009524822235107422, 0.007762908935546875, -0.0127410888671875, 0.01268768310546875, 0.04052734375, 0.018310546875, 0.00827789306640625, -0.0211181640625, -0.0028133392333984375, 0.00966644287109375, -0.0004572868347167969, 0.0035114288330078125, -0.0005679130554199219, -0.011505126953125, -0.0244140625, -0.006381988525390625, 0.023834228515625, 0.0004436969757080078, 0.0213470458984375, 0.003997802734375, 0.024505615234375, -0.020294189453125, -0.0194091796875, 0.039306640625, 0.02740478515625, 0.051666259765625, -0.054351806640625, 0.005950927734375, 0.023712158203125, 0.002338409423828125, -0.0283203125, -0.055267333984375, -0.0015630722045898438, 0.0178680419921875, -0.06756591796875, -0.0003364086151123047, 0.0054779052734375, 0.046173095703125, 0.048858642578125, 0.005596160888671875, 0.0117340087890625, -0.0169219970703125, -0.0264892578125, 0.0400390625, 0.0198822021484375, -0.008331298828125, -0.0252532958984375, -0.0015726089477539062, -0.00846099853515625, -0.044403076171875, -0.0526123046875, 0.0047760009765625, -0.0002701282501220703, 0.044189453125, -0.0239105224609375, 0.0174560546875, -0.0253143310546875, 0.033935546875, 0.03369140625, 0.0533447265625, -0.015594482421875, 0.0109405517578125, -0.0207366943359375, 0.032379150390625, -0.0200347900390625, -0.005451202392578125, -0.0223236083984375, 0.0279693603515625, -0.0224761962890625, -0.00412750244140625, -0.004444122314453125, -0.0270233154296875, -0.0007843971252441406, 0.027374267578125, 0.06427001953125, -0.007312774658203125, -0.00567626953125, -0.0257110595703125, 0.04425048828125, 0.034881591796875, -0.07916259765625, 0.00608062744140625, 0.032623291015625, 0.01373291015625, -0.038482666015625, -0.00518798828125, 0.0113525390625, -0.01727294921875, 0.006160736083984375, 0.036865234375, 0.035430908203125, 0.0229034423828125, -0.0157928466796875, -0.027069091796875, 0.035400390625, -0.046966552734375, -0.0034961700439453125, -0.0205841064453125, -0.032806396484375, 0.01493072509765625, 0.03863525390625, 0.0260162353515625, -0.004314422607421875, -0.0295867919921875, -0.04388427734375, 0.042266845703125, -0.0001780986785888672, 0.0316162109375, -0.0278472900390625, 0.0211029052734375, -0.0104827880859375, -0.01131439208984375, 0.012054443359375, -0.03350830078125, 0.01146697998046875, 0.0090484619140625, 0.029296875, 0.0307464599609375, -0.0035152435302734375, -0.01358795166015625, -0.004940032958984375, 0.0024566650390625, 0.004863739013671875, 0.06268310546875, 0.039825439453125, 0.025177001953125, -0.0161895751953125, -0.05712890625, 0.024810791015625, 0.04705810546875, -0.032257080078125, -0.002452850341796875, 0.0228271484375, 0.006191253662109375, -0.0114898681640625, -0.069580078125, 0.0357666015625, 0.0107879638671875, 0.01702880859375, 0.009368896484375, -0.008453369140625, 0.0789794921875, 0.00730133056640625, 0.05133056640625, -0.01226806640625, 0.0197601318359375, 0.0665283203125, -0.01525115966796875, 0.0082855224609375, -0.0071868896484375, 0.085693359375, 0.046630859375, -0.0163116455078125, 0.00676727294921875, 0.01190948486328125, -0.01056671142578125, 0.004276275634765625, -0.022979736328125, -0.0217437744140625, 0.02679443359375, -0.0841064453125, 0.009124755859375, 0.0045928955078125, -0.0046844482421875, 0.034454345703125, -0.025238037109375, -0.005340576171875, 0.009063720703125, -0.035186767578125, -0.0275115966796875, 0.0220947265625, -0.048980712890625, -0.0163421630859375, -0.015045166015625, -0.0400390625, -0.0057373046875, -0.00991058349609375, 0.0016775131225585938, 0.0615234375, -0.004726409912109375, -0.039947509765625, 0.01873779296875, -0.060302734375, 0.0299530029296875, -0.005947113037109375, 0.01213836669921875, 0.0115966796875, 0.06024169921875, 0.00569915771484375, -0.03240966796875, 0.0169525146484375, -0.000011861324310302734, -0.0020160675048828125, 0.047332763671875, -0.01180267333984375, 0.00484466552734375, 0.043304443359375, -0.00959014892578125, 0.00885009765625, 0.035919189453125, -0.0299530029296875, -0.0208587646484375, 0.005542755126953125, 0.01123046875, 0.0330810546875, -0.00634002685546875, -0.0082244873046875, 0.0257415771484375, 0.016143798828125, -0.040557861328125, -0.0528564453125, -0.0196075439453125, -0.061614990234375, 0.047943115234375, 0.020904541015625, 0.0139007568359375, -0.002735137939453125, 0.051971435546875, -0.006549835205078125, -0.01129913330078125, 0.0056610107421875, -0.0467529296875, 0.05718994140625, 0.000377655029296875, 0.01177215576171875, -0.007198333740234375, -0.0267333984375, -0.052581787109375, 0.0382080078125, -0.0182952880859375, -0.004642486572265625, -0.0128631591796875, 0.01116943359375, -0.002918243408203125, -0.03997802734375, 0.06866455078125, 0.0016298294067382812, -0.0049591064453125, -0.00978851318359375, -0.0276641845703125, 0.01009368896484375, 0.06427001953125, -0.0022373199462890625, -0.0231781005859375, 0.018218994140625, 0.0234222412109375, -0.05694580078125, -0.032379150390625, -0.057525634765625, 0.0055694580078125, -0.035064697265625, 0.00417327880859375, 0.0123291015625, -0.01128387451171875, -0.02301025390625, 0.069091796875, -0.028289794921875, -0.005359649658203125, 0.0306854248046875, -0.0228729248046875, 0.0218963623046875, -0.00638580322265625, 0.00417327880859375, -0.00875091552734375, -0.01016998291015625, -0.0255279541015625, 0.0008349418640136719, -0.004550933837890625, -0.0056304931640625, 0.0155487060546875, 0.0450439453125, -0.039886474609375, 0.0102386474609375, 0.02337646484375, 0.037353515625, 0.001682281494140625, 0.04345703125, -0.01294708251953125, 0.0190582275390625, -0.0011415481567382812, 0.05096435546875, -0.0172119140625, -0.0286407470703125, -0.045013427734375, -0.06201171875, -0.022186279296875, -0.0169525146484375, 0.00743865966796875, 0.0009579658508300781, -0.0119171142578125, -0.054351806640625, 0.0027008056640625, 0.05450439453125, -0.01045989990234375, 0.0224456787109375, -0.0009341239929199219, 0.020111083984375, -0.01055145263671875, 0.042724609375, 0.00368499755859375, 0.0089874267578125, 0.00472259521484375, 0.10760498046875, 0.01381683349609375, -0.0167999267578125, -0.0516357421875, -0.0110015869140625, 0.0406494140625, -0.01291656494140625, 0.0104522705078125, 0.038116455078125, -0.040557861328125, 0.0217742919921875, 0.0249481201171875, 0.003749847412109375, 0.018463134765625, 0.06915283203125, -0.0072479248046875, 0.01702880859375, -0.0110626220703125, -0.0078887939453125, -0.01824951171875, 0.02752685546875, -0.034271240234375, 0.0256195068359375, -0.0137481689453125, 0.037017822265625, -0.022247314453125, -0.0190277099609375, -0.07257080078125, 0.00788116455078125, -0.00469207763671875, -0.0031681060791015625, 0.01384735107421875, 0.00951385498046875, 0.01291656494140625, -0.0433349609375, -0.020172119140625, -0.00768280029296875, -0.019439697265625, -0.08355712890625, 0.01447296142578125, -0.01428985595703125, 0.007358551025390625, 0.0017147064208984375, 0.0302276611328125, -0.0037822723388671875, 0.0239105224609375, 0.0127716064453125, -0.00688934326171875, -0.038909912109375, 0.008941650390625, 0.01021575927734375, -0.0139312744140625, 0.0014276504516601562, 0.022796630859375, 0.020721435546875, -0.037384033203125, 0.0087738037109375, -0.0031280517578125, -0.00860595703125, -0.04083251953125, 0.039215087890625, -0.0016756057739257812, 0.01374053955078125, 0.0017404556274414062, 0.048583984375, -0.01641845703125, 0.03912353515625, -0.01641845703125, 0.034027099609375, 0.029083251953125, 0.006816864013671875, -0.0015306472778320312, 0.0250091552734375, 0.01076507568359375, -0.0310821533203125, 0.006103515625, -0.0274658203125, 0.01242828369140625, 0.03302001953125, 0.04241943359375, 0.0007395744323730469, -0.036407470703125, 0.0049285888671875, -0.061737060546875, -0.0145263671875, 0.054840087890625, 0.0210723876953125, -0.031585693359375, -0.03558349609375, -0.023284912109375, 0.033599853515625, -0.0167694091796875, -0.0094451904296875, 0.040252685546875, -0.00511932373046875, 0.033599853515625, 0.0303802490234375, -0.0291748046875, 0.0249786376953125, 0.0290679931640625, -0.01457977294921875, -0.01190185546875, 0.01477813720703125, -0.0596923828125, -0.01708984375, -0.01168060302734375, -0.014312744140625, 0.01157379150390625, -0.046356201171875, 0.029083251953125, -0.036407470703125, 0.006404876708984375, -0.0165863037109375, 0.001399993896484375, 0.06207275390625, 0.0660400390625, -0.05621337890625, 0.0081024169921875, -0.06243896484375, -0.0006899833679199219, -0.056488037109375, -0.0706787109375, -0.031585693359375, -0.0061492919921875, 0.001781463623046875, 0.032562255859375, 0.034423828125, 0.05706787109375, -0.01332855224609375, 0.0014467239379882812, -0.0112152099609375, 0.060272216796875, -0.0176849365234375, -0.01226043701171875, 0.033355712890625, -0.00441741943359375, 0.0101776123046875, -0.00601959228515625, 0.0028438568115234375, -0.04095458984375, -0.00963592529296875, -0.01190185546875, -0.01336669921875, -0.01506805419921875, -0.0005559921264648438, -0.018157958984375, 0.040069580078125, 0.0033512115478515625, 0.033660888671875, -0.027801513671875, -0.017913818359375, 0.008209228515625, 0.0236358642578125, 0.00290679931640625, 0.03277587890625, 0.053070068359375, -0.038055419921875, -0.00970458984375, -0.0034503936767578125, -0.04168701171875, 0.07354736328125, -0.02685546875, 0.034271240234375, 0.04144287109375, -0.053192138671875, 0.08050537109375, 0.07183837890625, 0.00899505615234375, 0.044891357421875, 0.004817962646484375, 0.0275421142578125, 0.0217437744140625, 0.034820556640625, 0.045745849609375, -0.01146697998046875, 0.07025146484375, 0.00679779052734375, -0.01385498046875, 0.0258331298828125, -0.049224853515625, 0.0277557373046875, 0.052093505859375, 0.08148193359375, -0.055572509765625, -0.01190948486328125, 0.039031982421875, -0.0513916015625, 0.00995635986328125, 0.010894775390625, -0.033294677734375, -0.0209808349609375, 0.0557861328125, -0.015594482421875, -0.0099639892578125, 0.028900146484375, 0.01503753662109375, -0.013916015625, -0.010772705078125, 0.052581787109375, 0.0440673828125, 0.02825927734375, 0.020172119140625, -0.016357421875, 0.053192138671875, 0.005283355712890625, -0.00006157159805297852, -0.009979248046875, -0.0225677490234375, -0.038116455078125, -0.01558685302734375, -0.0411376953125, 0.0006313323974609375, 0.09466552734375, 0.0012197494506835938, 0.0235137939453125, 0.00919342041015625, 0.02490234375, 0.0169219970703125, -0.032958984375, -0.0304412841796875, -0.0038242340087890625, -0.0128021240234375, -0.0091094970703125, 0.01432037353515625, -0.0034275054931640625, 0.01232147216796875, -0.016204833984375, 0.0021305084228515625, -0.0198211669921875, -0.026885986328125, 0.0865478515625, -0.042205810546875, -0.01363372802734375, 0.0285186767578125, 0.034912109375, -0.018218994140625, -0.032806396484375, 0.033294677734375, -0.0653076171875, -0.0079193115234375, -0.0054168701171875, -0.00397491455078125, -0.032562255859375, -0.0455322265625, -0.050048828125, 0.0595703125, 0.047149658203125, 0.025543212890625, 0.0372314453125, 0.00531768798828125, -0.07989501953125, -0.03631591796875, -0.048797607421875, 0.028106689453125, -0.0096282958984375, 0.0308990478515625, -0.0247955322265625, 0.016845703125, 0.001995086669921875, -0.0177154541015625, 0.04791259765625, 0.00959014892578125, 0.02978515625, -0.0171051025390625, 0.01187896728515625, 0.0293426513671875, -0.037322998046875, -0.0087738037109375, -0.000026106834411621094, 0.0394287109375, 0.00884246826171875, -0.04840087890625, 0.025665283203125, -0.03424072265625, -0.0250091552734375, 0.032379150390625, 0.00495147705078125, -0.004161834716796875, -0.006290435791015625, -0.007038116455078125, 0.02667236328125, -0.03228759765625, -0.0222625732421875, -0.0148162841796875, -0.005786895751953125, 0.052947998046875, 0.042327880859375, -0.037811279296875, -0.01026153564453125, -0.041229248046875, 0.059356689453125, 0.005931854248046875, 0.00576019287109375, -0.0245513916015625, -0.0034332275390625, 0.029571533203125, -0.011383056640625, -0.0102386474609375, 0.0296173095703125, 0.0032367706298828125, 0.04620361328125, 0.00743865966796875, 0.03717041015625, -0.0587158203125, 0.00016379356384277344, 0.0450439453125, 0.06689453125, -0.0255889892578125, -0.02923583984375, 0.01568603515625, -0.006832122802734375, -0.01068115234375, -0.0130767822265625, -0.0103759765625, -0.0236358642578125, 0.0156402587890625, -0.0418701171875, -0.01397705078125, 0.0162506103515625, 0.0207366943359375, -0.003910064697265625, -0.026458740234375, 0.0093536376953125, -0.017669677734375, -0.04901123046875, 0.01279449462890625, 0.04278564453125, 0.04681396484375, 0.007221221923828125, 0.0413818359375, -0.01184844970703125, -0.0254364013671875, 0.003326416015625, 0.030548095703125, -0.0265045166015625, 0.02520751953125, -0.04913330078125, -0.040771484375, 0.016510009765625, 0.041748046875, 0.028167724609375, -0.01131439208984375, 0.01364898681640625, 0.02972412109375, 0.007587432861328125, -0.0102081298828125, 0.010223388671875, 0.006671905517578125, 0.033721923828125, -0.0341796875, -0.0003514289855957031, -0.00463104248046875, -0.016571044921875, -0.03167724609375, -0.0374755859375, 0.04595947265625, 0.0203094482421875, 0.055999755859375, 0.0085906982421875, 0.0292816162109375, 0.04876708984375, -0.00933837890625, 0.0286712646484375, 0.04412841796875, -0.040802001953125, -0.0125274658203125, 0.019561767578125, -0.01419830322265625, -0.00243377685546875, 0.024200439453125, -0.016998291015625, 0.037506103515625, -0.00167083740234375, -0.0099334716796875, -0.0083160400390625, 0.006435394287109375, 0.02227783203125, -0.0025501251220703125, 0.00991058349609375, 0.0124969482421875, -0.091552734375, -0.041229248046875, -0.0168914794921875, -0.004825592041015625, 0.012847900390625, 0.0504150390625, 0.030914306640625, -0.00640869140625, -0.033782958984375, 0.0176849365234375, -0.025726318359375, -0.044921875, 0.04962158203125, 0.01024627685546875, -0.0171051025390625, -0.019989013671875, -0.02508544921875, 0.0101318359375, 0.04425048828125, -0.0230560302734375, 0.007354736328125, 0.005756378173828125, 0.01509857177734375, -0.02777099609375, -0.01139068603515625, -0.03863525390625, -0.034149169921875, 0.00603485107421875, 0.037872314453125, -0.00960540771484375, -0.007572174072265625, -0.050628662109375, 0.005374908447265625, -0.00859832763671875, -0.031585693359375, 0.01080322265625, 0.003429412841796875, -0.017364501953125, 0.0213165283203125, -0.0059967041015625, 0.0049285888671875, 0.0306396484375, -0.0267333984375, 0.038330078125, 0.00870513916015625, 0.048583984375, -0.00467681884765625, 0.021697998046875, 0.016845703125, -0.018035888671875, 0.0249176025390625, -0.05035400390625, -0.00865936279296875, -0.004150390625, 0.02606201171875, 0.0217437744140625, 0.0322265625, -0.00794219970703125, -0.05810546875, -0.0182037353515625, 0.0143890380859375, -0.05279541015625, 0.0006289482116699219, -0.038818359375, -0.010833740234375, 0.024261474609375, -0.0226593017578125, -0.0118408203125, 0.00205230712890625, -0.0311431884765625, 0.0291290283203125, -0.03515625, -0.0005512237548828125, 0.0026264190673828125, 0.0300750732421875, -0.05450439453125, 0.0118560791015625, -0.01457977294921875, -0.0248870849609375, -0.00836944580078125, 0.0307159423828125, 0.03668212890625, -0.04010009765625, 0.0160980224609375, 0.050628662109375, 0.0305633544921875, 0.09136962890625, 0.011260986328125, 0.00537109375, 0.0127105712890625, 0.0193634033203125, -0.05963134765625, -0.049591064453125, 0.00839996337890625, 0.016265869140625, -0.0142364501953125, 0.019683837890625, -0.017547607421875, -0.007633209228515625, -0.0255279541015625, -0.0299530029296875, 0.070556640625, 0.004791259765625, -0.0222930908203125, -0.03814697265625, 0.019866943359375, -0.0023632049560546875, -0.010406494140625, -0.014404296875, -0.0042724609375, -0.0193634033203125, 0.0203857421875, 0.040374755859375, 0.0132293701171875, 0.045562744140625, -0.003688812255859375, -0.0182342529296875, 0.03424072265625, 0.037261962890625, 0.0377197265625, -0.0141448974609375, -0.0265655517578125, -0.0031185150146484375, 0.0024280548095703125, -0.045135498046875, -0.0535888671875, 0.0139007568359375, 0.040435791015625, -0.038299560546875, -0.01328277587890625, 0.0028324127197265625, 0.025360107421875, 0.0859375, 0.055267333984375, 0.01538848876953125, -0.06622314453125, 0.00225830078125, 0.0270843505859375, -0.07177734375, -0.0036411285400390625, 0.05169677734375, -0.069091796875, -0.0172576904296875, 0.00763702392578125, -0.0149078369140625, 0.028228759765625, -0.039276123046875, -0.0416259765625, 0.0267181396484375, -0.003467559814453125, 0.004184722900390625, -0.048736572265625, -0.0386962890625, 0.06268310546875, -0.0235748291015625, 0.0204620361328125, -0.0189666748046875, 0.02423095703125, 0.037017822265625, 0.003265380859375, 0.01378631591796875, 0.060638427734375, -0.07684326171875, -0.0008258819580078125, -0.006641387939453125, 0.036712646484375, -0.0335693359375, -0.01181793212890625, -0.01300048828125, 0.006084442138671875, -0.0004792213439941406, -0.01074981689453125, 0.01226806640625, 0.054290771484375, 0.024383544921875, 0.059356689453125, 0.00860595703125, 0.10382080078125, 0.0038471221923828125, 0.06134033203125, -0.020843505859375, -0.01418304443359375, -0.0072021484375, -0.0325927734375, -0.006496429443359375, -0.016510009765625, -0.0123443603515625, -0.090087890625, 0.048095703125, 0.0013971328735351562, -0.0007419586181640625, 0.05078125 ]
7ab3ecf577c41fa76065b65b6644f7c649a33417
Wordpress Stackexchange Q: Tracing the life of a query I can't find documentation regarding this - but is there a way to see how a query might bounce around from one filter to another? I've got a list of possible wp_filters and their relevance but I can't determine what's happening to a query I'm making. Here's the basics - I'm attempting to use the Relevanssi plugin with WooCommerce and the Vintage theme, searching through custom fields. I can see that the query is returning correctly before it's being displayed; just before it's displayed all the posts are removed. A: Well you can try and run debug_backtrace(); on your function. For example: function wpse_82183_debug( $query ) { //your query goes here, this is just a basic one if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'posts_per_page', 1 ); //magic happens here var_dump(debug_backtrace()); } } add_action( 'pre_get_posts', 'wpse_82183_debug' ); There are also a number of plugins that help figure stuff out, I recently made this list: http://wycks.github.com/WordPress-Gear/ (click debug tools) Have a look at : * *http://wordpress.org/extend/plugins/wordpress-hook-sniffer/ *http://wordpress.org/extend/plugins/debug-bar-template-trace/ *http://wordpress.org/extend/plugins/debug-bar-action-hooks/
Q: Tracing the life of a query I can't find documentation regarding this - but is there a way to see how a query might bounce around from one filter to another? I've got a list of possible wp_filters and their relevance but I can't determine what's happening to a query I'm making. Here's the basics - I'm attempting to use the Relevanssi plugin with WooCommerce and the Vintage theme, searching through custom fields. I can see that the query is returning correctly before it's being displayed; just before it's displayed all the posts are removed. A: Well you can try and run debug_backtrace(); on your function. For example: function wpse_82183_debug( $query ) { //your query goes here, this is just a basic one if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'posts_per_page', 1 ); //magic happens here var_dump(debug_backtrace()); } } add_action( 'pre_get_posts', 'wpse_82183_debug' ); There are also a number of plugins that help figure stuff out, I recently made this list: http://wycks.github.com/WordPress-Gear/ (click debug tools) Have a look at : * *http://wordpress.org/extend/plugins/wordpress-hook-sniffer/ *http://wordpress.org/extend/plugins/debug-bar-template-trace/ *http://wordpress.org/extend/plugins/debug-bar-action-hooks/
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:427994", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/82183" }
[ 0.02813720703125, 0.02386474609375, -0.0166473388671875, -0.0032444000244140625, 0.0290069580078125, -0.025115966796875, 0.0226898193359375, -0.0460205078125, 0.019775390625, 0.0289764404296875, -0.021270751953125, -0.0335693359375, 0.0164031982421875, -0.02178955078125, -0.01535797119140625, -0.019073486328125, 0.0489501953125, -0.03326416015625, 0.016387939453125, -0.003040313720703125, -0.0091552734375, 0.00843048095703125, 0.0322265625, 0.04937744140625, 0.01047515869140625, -0.03668212890625, 0.12158203125, -0.0031642913818359375, 0.053466796875, 0.01276397705078125, 0.02996826171875, -0.069580078125, 0.02386474609375, 0.027557373046875, -0.01342010498046875, 0.04840087890625, 0.01385498046875, 0.0009417533874511719, 0.00890350341796875, 0.024749755859375, 0.0171966552734375, 0.0004417896270751953, 0.0193939208984375, 0.00035309791564941406, 0.004749298095703125, -0.049346923828125, 0.04107666015625, -0.0301971435546875, 0.0243988037109375, -0.0015211105346679688, 0.0253143310546875, 0.0225372314453125, 0.016510009765625, 0.005825042724609375, -0.0252838134765625, 0.0182342529296875, -0.04364013671875, 0.0289306640625, 0.016265869140625, 0.0136260986328125, 0.00814056396484375, -0.00977325439453125, 0.0171051025390625, -0.01308441162109375, -0.000019431114196777344, 0.028656005859375, 0.0309906005859375, 0.01122283935546875, 0.0069427490234375, -0.0128173828125, -0.01459503173828125, -0.011383056640625, -0.012786865234375, 0.0220184326171875, -0.01251220703125, -0.06610107421875, 0.057647705078125, -0.03948974609375, -0.0030269622802734375, 0.045562744140625, -0.000904083251953125, -0.04071044921875, -0.0703125, 0.033599853515625, -0.00788116455078125, 0.0399169921875, -0.0038909912109375, -0.01125335693359375, -0.0279693603515625, -0.004856109619140625, -0.0245819091796875, -0.02685546875, -0.036529541015625, 0.0145263671875, 0.003200531005859375, -0.01971435546875, 0.001613616943359375, 0.01477813720703125, -0.02227783203125, -0.015655517578125, -0.0305023193359375, -0.01335906982421875, -0.05096435546875, 0.00554656982421875, 0.0083770751953125, 0.00598907470703125, 0.0244293212890625, 0.053985595703125, 0.060821533203125, 0.02001953125, -0.003269195556640625, 0.1004638671875, -0.03680419921875, -0.0237579345703125, -0.023712158203125, 0.0284881591796875, -0.029449462890625, -0.0301055908203125, -0.0074615478515625, -0.014373779296875, -0.012237548828125, -0.01183319091796875, 0.01422882080078125, -0.01381683349609375, 0.031768798828125, -0.00710296630859375, -0.025543212890625, -0.0039825439453125, 0.01280975341796875, 0.01556396484375, -0.0186920166015625, 0.0014772415161132812, 0.02105712890625, 0.01947021484375, -0.00479888916015625, -0.01377105712890625, 0.01462554931640625, 0.00672149658203125, 0.01216888427734375, 0.0169830322265625, 0.0007348060607910156, -0.051971435546875, -0.0189971923828125, 0.02008056640625, 0.00725555419921875, -0.0206146240234375, 0.03759765625, 0.0322265625, -0.028106689453125, -0.0019207000732421875, 0.007366180419921875, 0.046966552734375, 0.045501708984375, -0.0224456787109375, -0.0285491943359375, -0.037200927734375, -0.003772735595703125, -0.03192138671875, -0.020751953125, -0.0445556640625, -0.0298614501953125, -0.0085601806640625, 0.01105499267578125, -0.055999755859375, -0.030975341796875, -0.0065765380859375, -0.006710052490234375, 0.0082244873046875, 0.00916290283203125, 0.01422119140625, 0.047332763671875, -0.0379638671875, -0.0137786865234375, -0.03839111328125, -0.022186279296875, -0.01386260986328125, -0.031982421875, 0.017059326171875, 0.05767822265625, -0.019805908203125, -0.0159912109375, -0.023529052734375, 0.0965576171875, -0.01001739501953125, -0.0201263427734375, 0.036163330078125, 0.01534271240234375, 0.03131103515625, -0.0296478271484375, 0.0131072998046875, 0.0224609375, 0.042816162109375, -0.0426025390625, 0.0235595703125, 0.0172271728515625, -0.01517486572265625, -0.042388916015625, -0.02142333984375, -0.00860595703125, -0.0007405281066894531, 0.042694091796875, 0.055450439453125, -0.0288543701171875, -0.01201629638671875, -0.10125732421875, 0.0306396484375, -0.03143310546875, 0.056732177734375, 0.0316162109375, 0.032318115234375, 0.025726318359375, 0.06829833984375, -0.0792236328125, 0.0161590576171875, -0.0269317626953125, 0.02996826171875, -0.035186767578125, 0.005489349365234375, -0.002399444580078125, -0.017852783203125, 0.018798828125, -0.03778076171875, -0.00726318359375, -0.0017213821411132812, 0.0416259765625, 0.01593017578125, -0.0165557861328125, -0.004222869873046875, 0.04241943359375, 0.01216888427734375, -0.00319671630859375, 0.020782470703125, 0.056365966796875, 0.03509521484375, -0.050567626953125, -0.0225677490234375, -0.0293426513671875, -0.0574951171875, -0.0014677047729492188, 0.0654296875, 0.024078369140625, 0.048583984375, -0.02642822265625, -0.029083251953125, 0.022735595703125, -0.0948486328125, -0.001918792724609375, -0.01119232177734375, 0.0028514862060546875, 0.052032470703125, -0.03704833984375, 0.0280609130859375, 0.00768280029296875, 0.01158905029296875, -0.005672454833984375, 0.034332275390625, 0.00699615478515625, 0.020843505859375, -0.0241851806640625, 0.0220489501953125, -0.008697509765625, -0.0032711029052734375, -0.0093994140625, -0.0032863616943359375, 0.006229400634765625, -0.02008056640625, 0.014862060546875, 0.0061798095703125, -0.004337310791015625, -0.0003094673156738281, 0.02154541015625, -0.0115966796875, -0.0009794235229492188, -0.01041412353515625, -0.01175689697265625, -0.01137542724609375, -0.04150390625, 0.01458740234375, 0.04107666015625, -0.02099609375, -0.01294708251953125, 0.051483154296875, 0.01218414306640625, -0.020172119140625, -0.0372314453125, -0.03936767578125, 0.00788116455078125, -0.02166748046875, 0.030426025390625, 0.0467529296875, 0.035491943359375, 0.053985595703125, -0.0150909423828125, 0.0592041015625, 0.019989013671875, 0.006862640380859375, 0.031829833984375, -0.0306396484375, 0.03131103515625, -0.01250457763671875, 0.033538818359375, 0.07049560546875, -0.01367950439453125, 0.02191162109375, 0.0014505386352539062, 0.0190277099609375, 0.022186279296875, -0.0169525146484375, -0.03387451171875, -0.0018625259399414062, -0.06463623046875, -0.0009870529174804688, 0.0191802978515625, 0.0394287109375, -0.0023288726806640625, -0.03204345703125, -0.007717132568359375, 0.022369384765625, -0.06298828125, -0.1083984375, -0.045928955078125, -0.061981201171875, -0.01172637939453125, -0.01235198974609375, -0.03466796875, 0.022064208984375, 0.0026454925537109375, 0.01013946533203125, 0.0101318359375, -0.0265655517578125, -0.035064697265625, -0.0616455078125, -0.041015625, -0.011871337890625, 0.006443023681640625, -0.006969451904296875, -0.0020961761474609375, 0.0501708984375, -0.01019287109375, -0.07098388671875, -0.03253173828125, -0.016357421875, -0.039825439453125, -0.0197601318359375, -0.007659912109375, 0.048004150390625, 0.011474609375, 0.007476806640625, -0.0099639892578125, 0.0389404296875, -0.0501708984375, -0.01047515869140625, 0.01360321044921875, -0.00037550926208496094, 0.0261993408203125, -0.01953125, -0.008819580078125, 0.03533935546875, 0.01181793212890625, -0.017547607421875, -0.031280517578125, -0.0240325927734375, -0.062225341796875, 0.037506103515625, 0.0390625, 0.02294921875, 0.01959228515625, -0.01715087890625, 0.05694580078125, 0.0112457275390625, -0.0031986236572265625, -0.02630615234375, 0.06597900390625, 0.0175323486328125, 0.0533447265625, -0.039825439453125, 0.00896453857421875, -0.031982421875, 0.0094757080078125, 0.012237548828125, -0.01517486572265625, 0.01078033447265625, -0.0092926025390625, 0.03350830078125, 0.004669189453125, 0.022125244140625, -0.003387451171875, -0.01029205322265625, -0.01468658447265625, -0.0081329345703125, -0.0212554931640625, 0.014129638671875, -0.0166168212890625, -0.0167694091796875, 0.0127716064453125, 0.0007238388061523438, -0.03302001953125, -0.00833892822265625, -0.037322998046875, -0.01239776611328125, -0.09051513671875, -0.004894256591796875, -0.020416259765625, -0.047027587890625, -0.0090789794921875, -0.02362060546875, -0.064697265625, -0.054473876953125, 0.040130615234375, -0.022674560546875, 0.015869140625, -0.01363372802734375, 0.01320648193359375, -0.0382080078125, -0.01227569580078125, -0.026031494140625, -0.0693359375, -0.028411865234375, 0.0011167526245117188, 0.06414794921875, 0.031707763671875, -0.04718017578125, -0.023834228515625, 0.037567138671875, 0.004413604736328125, 0.00717926025390625, 0.0333251953125, 0.00518035888671875, 0.045196533203125, -0.02288818359375, 0.01003265380859375, -0.0251617431640625, -0.01050567626953125, -0.039886474609375, -0.0101470947265625, -0.027191162109375, -0.0357666015625, -0.02435302734375, -0.02667236328125, 0.004730224609375, -0.064208984375, -0.01560211181640625, 0.0059967041015625, -0.02911376953125, -0.01319122314453125, -0.01397705078125, 0.0200958251953125, -0.023040771484375, 0.0101470947265625, -0.0316162109375, -0.028350830078125, 0.0087890625, 0.052764892578125, 0.028717041015625, 0.01079559326171875, 0.0137786865234375, -0.00472259521484375, 0.004314422607421875, 0.015777587890625, 0.0247039794921875, -0.00907135009765625, 0.00222015380859375, 0.0226593017578125, -0.01540374755859375, 0.0039520263671875, -0.04705810546875, 0.072509765625, -0.006832122802734375, -0.01165008544921875, 0.0185089111328125, 0.00403594970703125, 0.0262298583984375, -0.00421905517578125, -0.04058837890625, -0.0286407470703125, -0.036041259765625, 0.060028076171875, -0.028564453125, 0.07208251953125, -0.0421142578125, -0.005794525146484375, -0.0036067962646484375, -0.0222015380859375, 0.065673828125, 0.04119873046875, -0.01537322998046875, 0.007457733154296875, 0.0154266357421875, -0.0069580078125, 0.0088653564453125, 0.034393310546875, -0.0225982666015625, 0.0389404296875, -0.01806640625, -0.0117340087890625, -0.0225982666015625, -0.004589080810546875, 0.035614013671875, -0.06121826171875, -0.0863037109375, 0.0298004150390625, -0.039886474609375, -0.0478515625, 0.07611083984375, -0.047119140625, 0.0260162353515625, 0.025146484375, -0.0226593017578125, -0.0005359649658203125, -0.0032100677490234375, -0.055206298828125, -0.0413818359375, 0.021697998046875, -0.04241943359375, 0.0268707275390625, 0.057525634765625, 0.03155517578125, -0.056549072265625, 0.06304931640625, -0.014434814453125, -0.0419921875, -0.02490234375, 0.038665771484375, 0.033172607421875, -0.044647216796875, 0.032928466796875, 0.0006856918334960938, 0.059906005859375, -0.0517578125, -0.0213470458984375, 0.042999267578125, 0.03619384765625, -0.043426513671875, -0.034088134765625, 0.0230560302734375, 0.01898193359375, -0.037384033203125, 0.0223388671875, 0.0035610198974609375, -0.01349639892578125, -0.034393310546875, -0.02276611328125, 0.0280303955078125, 0.0257110595703125, 0.013763427734375, -0.025390625, 0.0161590576171875, 0.0306243896484375, -0.0121002197265625, -0.0007457733154296875, 0.0237579345703125, 0.0155487060546875, -0.023468017578125, -0.0421142578125, 0.00957489013671875, 0.0038166046142578125, 0.03887939453125, -0.0377197265625, -0.04510498046875, 0.0400390625, -0.0235595703125, 0.04827880859375, -0.0224151611328125, -0.025726318359375, 0.041229248046875, 0.0024662017822265625, 0.0771484375, 0.048431396484375, -0.0308685302734375, -0.035675048828125, -0.043701171875, -0.0418701171875, 0.024200439453125, 0.00344085693359375, -0.0374755859375, -0.0007066726684570312, -0.01123809814453125, 0.023468017578125, -0.003528594970703125, -0.01059722900390625, -0.0160675048828125, -0.00830078125, -0.004535675048828125, -0.002635955810546875, -0.0506591796875, 0.0731201171875, -0.0177001953125, 0.03912353515625, -0.0279998779296875, 0.000026524066925048828, 0.0008249282836914062, 0.019012451171875, 0.02099609375, 0.0203704833984375, -0.045501708984375, -0.04962158203125, -0.01209259033203125, 0.038543701171875, 0.10406494140625, -0.0148468017578125, 0.019073486328125, -0.00859832763671875, 0.007785797119140625, -0.012359619140625, 0.0104217529296875, -0.01499176025390625, -0.0199432373046875, 0.05560302734375, -0.0192413330078125, -0.01282501220703125, 0.00988006591796875, 0.00624847412109375, -0.0166168212890625, 0.01052093505859375, -0.027496337890625, 0.00272369384765625, 0.0088348388671875, 0.01904296875, 0.044708251953125, -0.007511138916015625, 0.037689208984375, -0.005657196044921875, 0.01467132568359375, 0.01611328125, -0.0292510986328125, 0.0275726318359375, 0.0293426513671875, 0.043609619140625, -0.0202484130859375, 0.01079559326171875, 0.0305328369140625, -0.028656005859375, -0.01409912109375, 0.026641845703125, 0.02838134765625, -0.055145263671875, -0.00658416748046875, 0.00994110107421875, 0.01812744140625, 0.01345062255859375, 0.00566864013671875, 0.0206451416015625, 0.0018358230590820312, 0.0276641845703125, 0.06787109375, 0.006099700927734375, 0.0285186767578125, 0.0218048095703125, -0.0122833251953125, -0.014862060546875, 0.02044677734375, 0.0030956268310546875, -0.06170654296875, 0.04034423828125, 0.036102294921875, 0.004062652587890625, -0.0199432373046875, -0.0008139610290527344, 0.016571044921875, 0.0010986328125, -0.036468505859375, 0.0499267578125, -0.03656005859375, 0.0201416015625, -0.01335906982421875, 0.01641845703125, 0.047088623046875, 0.025604248046875, 0.0252532958984375, -0.05584716796875, 0.004852294921875, 0.00466156005859375, 0.00870513916015625, -0.005580902099609375, 0.0278472900390625, 0.042633056640625, -0.0535888671875, 0.0178680419921875, -0.01189422607421875, 0.00547027587890625, -0.0254974365234375, -0.029327392578125, 0.0809326171875, -0.02264404296875, -0.00868988037109375, 0.0106201171875, 0.041961669921875, 0.013458251953125, 0.00005507469177246094, 0.003631591796875, -0.0291290283203125, 0.01275634765625, -0.0038776397705078125, -0.006439208984375, -0.036102294921875, -0.007122039794921875, -0.06768798828125, 0.044952392578125, -0.0164947509765625, 0.01355743408203125, 0.0194244384765625, -0.003719329833984375, -0.039093017578125, -0.031158447265625, -0.06866455078125, 0.1021728515625, -0.00904083251953125, 0.0921630859375, -0.066162109375, -0.009429931640625, 0.05328369140625, 0.019989013671875, 0.035430908203125, -0.00852203369140625, -0.020782470703125, 0.0030345916748046875, 0.05133056640625, 0.00524139404296875, -0.019134521484375, 0.04229736328125, 0.002613067626953125, 0.0034580230712890625, 0.03326416015625, -0.036773681640625, 0.049560546875, -0.045928955078125, 0.0036449432373046875, 0.008819580078125, 0.00859832763671875, 0.0020618438720703125, 0.007350921630859375, 0.026153564453125, 0.0269775390625, -0.0035953521728515625, -0.0238494873046875, 0.0231781005859375, 0.0093231201171875, 0.01593017578125, 0.0120086669921875, -0.0239105224609375, -0.02813720703125, -0.0190277099609375, 0.015869140625, 0.0066070556640625, 0.03668212890625, 0.034332275390625, 0.025177001953125, 0.083251953125, -0.0426025390625, 0.01296234130859375, 0.0068206787109375, -0.0364990234375, 0.04571533203125, -0.0029010772705078125, 0.038604736328125, -0.06134033203125, -0.0010194778442382812, 0.0288238525390625, 0.07586669921875, -0.03216552734375, -0.04913330078125, 0.00946044921875, -0.001697540283203125, 0.0002582073211669922, 0.00467681884765625, 0.009246826171875, -0.010223388671875, 0.049560546875, -0.01401519775390625, -0.038604736328125, -0.01512908935546875, 0.02374267578125, -0.01483154296875, -0.011260986328125, 0.045074462890625, -0.0489501953125, 0.01247406005859375, -0.033416748046875, -0.00461578369140625, 0.0246124267578125, 0.0158538818359375, -0.0007562637329101562, -0.0254364013671875, -0.0005831718444824219, -0.052581787109375, 0.050750732421875, -0.00884246826171875, 0.06475830078125, -0.0833740234375, -0.037933349609375, -0.00919342041015625, 0.06768798828125, 0.04205322265625, 0.0301971435546875, 0.021148681640625, -0.0081939697265625, 0.0051727294921875, 0.0190277099609375, 0.046661376953125, -0.0231781005859375, 0.00566864013671875, -0.060211181640625, 0.0322265625, 0.021240234375, 0.0016717910766601562, -0.004497528076171875, 0.027740478515625, 0.0186920166015625, 0.004711151123046875, -0.0216217041015625, 0.002941131591796875, -0.048370361328125, 0.040924072265625, -0.006885528564453125, 0.042083740234375, 0.0179595947265625, -0.05462646484375, -0.01328277587890625, -0.0027637481689453125, -0.04052734375, 0.017791748046875, 0.05035400390625, -0.0108489990234375, -0.0024890899658203125, 0.0154571533203125, -0.03662109375, 0.0200958251953125, 0.0187530517578125, 0.0038318634033203125, -0.033966064453125, -0.0020732879638671875, -0.03045654296875, -0.037261962890625, -0.005573272705078125, -0.005962371826171875, -0.0187530517578125, 0.0101318359375, 0.047943115234375, 0.020751953125, 0.01216888427734375, 0.009185791015625, -0.02960205078125, 0.0208740234375, 0.00867462158203125, 0.040802001953125, -0.0181884765625, -0.032989501953125, -0.01229095458984375, -0.0120086669921875, -0.0141754150390625, 0.043060302734375, -0.036895751953125, 0.0022220611572265625, -0.0289306640625, 0.0230560302734375, -0.018402099609375, -0.01457977294921875, -0.0194244384765625, -0.0013914108276367188, -0.00017559528350830078, -0.00765228271484375, 0.0203399658203125, 0.0162200927734375, 0.0019931793212890625, 0.04144287109375, 0.004791259765625, 0.017608642578125, 0.0077056884765625, -0.0204925537109375, 0.018463134765625, 0.03955078125, -0.02655029296875, 0.048797607421875, -0.0006809234619140625, -0.0214691162109375, 0.024871826171875, 0.01366424560546875, -0.02349853515625, -0.0007724761962890625, 0.01715087890625, -0.042633056640625, -0.0225830078125, 0.04327392578125, -0.01038360595703125, 0.023345947265625, -0.0302581787109375, 0.01297760009765625, -0.0190582275390625, -0.0200347900390625, -0.020233154296875, 0.0021514892578125, -0.0310821533203125, 0.007144927978515625, 0.00800323486328125, -0.01291656494140625, 0.0059356689453125, -0.0196990966796875, 0.049285888671875, 0.02099609375, -0.072998046875, 0.0261383056640625, -0.0219268798828125, 0.00675201416015625, 0.0102996826171875, 0.00115203857421875, -0.0116424560546875, 0.0054931640625, -0.005031585693359375, -0.0211181640625, -0.03125, 0.0211639404296875, -0.0211181640625, 0.0184326171875, 0.031402587890625, -0.01019287109375, -0.003932952880859375, -0.031005859375, -0.0097503662109375, 0.03814697265625, -0.01898193359375, -0.0186004638671875, 0.00801849365234375, 0.00908660888671875, -0.01065826416015625, -0.0306243896484375, 0.0009703636169433594, -0.0170135498046875, -0.001613616943359375, 0.01018524169921875, -0.0030612945556640625, 0.0263214111328125, -0.036163330078125, -0.07781982421875, 0.05023193359375, -0.00482177734375, -0.0245513916015625, -0.068359375, 0.01145172119140625, 0.035614013671875, -0.042999267578125, -0.0262298583984375, -0.0237274169921875, -0.08538818359375, -0.016357421875, 0.0242767333984375, 0.02606201171875, 0.04931640625, 0.004932403564453125, -0.052276611328125, -0.004222869873046875, -0.02777099609375, 0.0298004150390625, -0.01459503173828125, -0.0263519287109375, 0.0296783447265625, 0.00670623779296875, -0.0357666015625, -0.006641387939453125, 0.0294647216796875, -0.005329132080078125, 0.01222991943359375, 0.0303192138671875, -0.050079345703125, 0.002178192138671875, 0.0767822265625, 0.044647216796875, 0.0310211181640625, -0.01849365234375, 0.00495147705078125, -0.01168060302734375, 0.00010412931442260742, -0.03131103515625, 0.005771636962890625, -0.055419921875, -0.03814697265625, -0.01280975341796875, 0.0013637542724609375, -0.0217742919921875, 0.0043487548828125, -0.027252197265625, -0.01500701904296875, 0.00884246826171875, 0.0010881423950195312, -0.0248260498046875, -0.0762939453125, 0.0004067420959472656, -0.0121612548828125, -0.040985107421875, 0.00315093994140625, 0.0394287109375, -0.043487548828125, 0.03741455078125, 0.0362548828125, 0.0113677978515625, -0.007656097412109375, 0.0163116455078125, 0.0455322265625, 0.00365447998046875, -0.007904052734375, -0.0372314453125, 0.0132904052734375, 0.002979278564453125, -0.0087890625, -0.0013446807861328125, -0.016387939453125, -0.0035266876220703125, -0.031829833984375, 0.03582763671875, 0.0118865966796875, 0.0767822265625, 0.0190582275390625, 0.033966064453125, -0.01180267333984375, -0.02227783203125, 0.0128936767578125, -0.04180908203125, 0.00821685791015625, 0.0302581787109375, 0.01036834716796875, -0.0396728515625, 0.02642822265625, 0.0386962890625, 0.00897216796875, 0.0213623046875 ]