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
76b2dc47da2290ad3852b33345990e71b7ec7c4e
Wordpress Stackexchange Q: Remove post from new menu in top bar I have removed the post menu from the admin side bar like so: add_action('admin_menu','remove_default_post_type'); function remove_default_post_type() { remove_menu_page('edit.php'); } How can I now remove it from the top bar 'new' menu as well? A: The users can still create new posts if the URL is known, like; domain.com/wp-admin/post-new.php Here is the code you can use for that ... added it to the file functions.php function hide_add_new() { global $submenu; // For Removing New Posts from Admin Menu unset($submenu['post-new.php?post_type=post'][10]); // For Removing New Pages unset($submenu['post-new.php?post_type=page'][10]); // For Removing CPTs unset($submenu['post-new.php?post_type=custom_post_type'][10]); } add_action('admin_menu', 'hide_add_new'); //Thanks to Howdy_McGee function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu('new-post'); $wp_admin_bar->remove_menu('new-page'); $wp_admin_bar->remove_menu('new-cpt'); } add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' ); function disable_new_post() { if ( get_current_screen()->post_type == 'my_post_type' ) wp_die( "You ain't allowed to do that!" ); } add_action( 'load-post-new.php', 'disable_new_post' );
Q: Remove post from new menu in top bar I have removed the post menu from the admin side bar like so: add_action('admin_menu','remove_default_post_type'); function remove_default_post_type() { remove_menu_page('edit.php'); } How can I now remove it from the top bar 'new' menu as well? A: The users can still create new posts if the URL is known, like; domain.com/wp-admin/post-new.php Here is the code you can use for that ... added it to the file functions.php function hide_add_new() { global $submenu; // For Removing New Posts from Admin Menu unset($submenu['post-new.php?post_type=post'][10]); // For Removing New Pages unset($submenu['post-new.php?post_type=page'][10]); // For Removing CPTs unset($submenu['post-new.php?post_type=custom_post_type'][10]); } add_action('admin_menu', 'hide_add_new'); //Thanks to Howdy_McGee function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu('new-post'); $wp_admin_bar->remove_menu('new-page'); $wp_admin_bar->remove_menu('new-cpt'); } add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' ); function disable_new_post() { if ( get_current_screen()->post_type == 'my_post_type' ) wp_die( "You ain't allowed to do that!" ); } add_action( 'load-post-new.php', 'disable_new_post' ); A: To remove submenus you can inspect the menu you will see every li will have an ID similar to wp-admin-bar-new-content to remove said menu item, just remove wp-admin-bar-. With that we can look at +New -> Post item which has an ID of wp-admin-bar-new-post so we can remove it like so: function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu('new-post'); } add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' ); Reference Link / Tutorial A: Try with the following code : add_action( 'admin_bar_menu', 'wpse126922_remove_newpost', 999 ); function wpse126922_remove_newpost ( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'new-post' ); } A: Thanks to Abhik this code worked for me: function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu('new-content'); $wp_admin_bar->remove_menu('new-post'); $wp_admin_bar->remove_menu('new-page'); $wp_admin_bar->remove_menu('comments'); } add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' ); function disable_new_post() { if ( get_current_screen()->post_type == 'post' ) wp_die( "You ain't allowed to do that!" ); } add_action( 'load-post-new.php', 'disable_new_post' );function disable_new_post() { if ( get_current_screen()->post_type == 'my_post_type' ) wp_die( "You ain't allowed to do that!" ); } add_action( 'load-post-new.php', 'disable_new_post' );
wordpress
{ "language": "en", "length": 294, "provenance": "stackexchange_00019.jsonl.gz:440311", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/126922" }
[ 0.09442138671875, -0.0096282958984375, 0.0421142578125, 0.0034046173095703125, 0.034637451171875, -0.052001953125, 0.10662841796875, -0.0694580078125, -0.04241943359375, 0.00786590576171875, 0.037933349609375, -0.007312774658203125, -0.028350830078125, -0.051788330078125, 0.01361083984375, -0.02001953125, 0.0182952880859375, 0.007305145263671875, 0.034088134765625, -0.00042176246643066406, 0.0052337646484375, 0.0113525390625, 0.021392822265625, 0.044769287109375, 0.0035419464111328125, -0.002620697021484375, 0.0335693359375, 0.0011930465698242188, -0.00218963623046875, -0.010101318359375, 0.01287078857421875, 0.0013303756713867188, -0.0257568359375, 0.031097412109375, 0.0191650390625, 0.03363037109375, -0.042205810546875, 0.0550537109375, 0.054107666015625, -0.02655029296875, 0.0095062255859375, 0.009429931640625, 0.0158538818359375, 0.021484375, -0.0288848876953125, -0.0341796875, 0.01263427734375, -0.0157623291015625, 0.0286865234375, -0.038055419921875, 0.017730712890625, -0.0180206298828125, 0.0304718017578125, -0.0157470703125, -0.0274810791015625, 0.0108489990234375, 0.016815185546875, -0.05255126953125, 0.039031982421875, 0.0494384765625, -0.0203094482421875, -0.023223876953125, 0.0022735595703125, -0.0948486328125, -0.033203125, 0.00745391845703125, -0.00778961181640625, -0.00450897216796875, -0.0853271484375, -0.0029506683349609375, 0.06573486328125, -0.044830322265625, 0.02178955078125, -0.0014276504516601562, 0.00005805492401123047, -0.0362548828125, 0.00978851318359375, 0.0021381378173828125, 0.01824951171875, 0.0023937225341796875, 0.00864410400390625, 0.03997802734375, -0.04351806640625, -0.0182037353515625, 0.0103302001953125, 0.00833892822265625, -0.02337646484375, -0.02020263671875, -0.0261077880859375, -0.0167388916015625, -0.0236663818359375, -0.020843505859375, -0.00829315185546875, -0.0106658935546875, -0.01529693603515625, -0.0252227783203125, 0.04754638671875, 0.050506591796875, -0.0033054351806640625, -0.0034122467041015625, -0.00994873046875, -0.04656982421875, 0.011749267578125, -0.030670166015625, 0.0263214111328125, 0.049774169921875, -0.032135009765625, -0.043121337890625, 0.043121337890625, 0.0229034423828125, 0.01229095458984375, 0.00815582275390625, -0.0251312255859375, 0.01064300537109375, -0.0273590087890625, 0.028533935546875, -0.04705810546875, 0.01430511474609375, -0.02203369140625, 0.061065673828125, -0.0216522216796875, -0.0089263916015625, 0.01383209228515625, 0.000028014183044433594, 0.03887939453125, 0.03448486328125, -0.03704833984375, 0.00007784366607666016, -0.010284423828125, -0.00330352783203125, -0.043304443359375, 0.006916046142578125, 0.0816650390625, 0.0604248046875, 0.0447998046875, -0.0214080810546875, -0.0038318634033203125, -0.0290374755859375, 0.00901031494140625, 0.0227203369140625, 0.0291290283203125, -0.059478759765625, -0.035247802734375, 0.0277099609375, 0.0224456787109375, 0.01462554931640625, 0.00876617431640625, 0.00017511844635009766, 0.03472900390625, -0.00313568115234375, -0.0202178955078125, -0.0254058837890625, 0.050628662109375, 0.026641845703125, -0.03717041015625, 0.01155853271484375, 0.060150146484375, -0.0236358642578125, -0.06396484375, -0.052001953125, -0.002353668212890625, 0.00988006591796875, 0.0017557144165039062, -0.039398193359375, -0.058685302734375, -0.003997802734375, -0.017242431640625, -0.0142822265625, 0.028900146484375, -0.01447296142578125, 0.024871826171875, -0.06671142578125, 0.01500701904296875, -0.007091522216796875, -0.01284027099609375, 0.037567138671875, 0.0330810546875, -0.020538330078125, 0.014984130859375, 0.057586669921875, -0.02191162109375, -0.03790283203125, 0.006214141845703125, -0.0130767822265625, -0.072265625, 0.0462646484375, 0.0134735107421875, 0.06915283203125, 0.015716552734375, 0.023956298828125, 0.050018310546875, 0.013885498046875, -0.0188751220703125, -0.038360595703125, 0.0270233154296875, -0.007843017578125, -0.030517578125, -0.0193939208984375, -0.0016498565673828125, 0.0231781005859375, -0.0131378173828125, 0.040191650390625, -0.01538848876953125, 0.016693115234375, -0.050018310546875, 0.0217742919921875, -0.019744873046875, 0.052459716796875, 0.0184478759765625, 0.01629638671875, 0.0013456344604492188, 0.002349853515625, -0.01708984375, -0.024261474609375, -0.0191650390625, 0.0236968994140625, -0.0035381317138671875, 0.030242919921875, -0.014923095703125, 0.04473876953125, -0.034271240234375, -0.0123291015625, -0.03411865234375, -0.0044403076171875, 0.07080078125, -0.00884246826171875, -0.0191802978515625, -0.031982421875, 0.044097900390625, 0.00785064697265625, -0.061065673828125, 0.04998779296875, 0.020233154296875, -0.006923675537109375, -0.041656494140625, 0.015106201171875, 0.006256103515625, -0.0338134765625, -0.026092529296875, 0.037567138671875, 0.0308074951171875, 0.0172882080078125, -0.03253173828125, -0.02227783203125, 0.03057861328125, -0.037811279296875, 0.005218505859375, -0.005970001220703125, -0.0004868507385253906, 0.004673004150390625, 0.00015151500701904297, -0.0204315185546875, 0.051300048828125, 0.0155792236328125, 0.014251708984375, 0.0230865478515625, 0.0098724365234375, -0.0016794204711914062, 0.01261138916015625, -0.0016689300537109375, 0.00568389892578125, -0.00933074951171875, -0.0322265625, 0.0030803680419921875, 0.04327392578125, -0.01163482666015625, 0.046966552734375, 0.02703857421875, -0.035247802734375, -0.01378631591796875, 0.029022216796875, 0.03912353515625, -0.0292510986328125, -0.002552032470703125, 0.07440185546875, -0.051300048828125, -0.060638427734375, 0.00972747802734375, 0.016387939453125, -0.01517486572265625, -0.03594970703125, 0.007808685302734375, 0.0322265625, -0.0185546875, -0.01551055908203125, -0.06304931640625, 0.039276123046875, -0.0360107421875, -0.010162353515625, -0.02459716796875, 0.005645751953125, 0.003910064697265625, -0.02197265625, 0.0224609375, 0.0181121826171875, -0.0247039794921875, 0.0180511474609375, 0.001117706298828125, 0.0064697265625, -0.0018405914306640625, 0.07940673828125, 0.0635986328125, -0.00634002685546875, 0.01922607421875, 0.00798797607421875, -0.01119232177734375, 0.0029430389404296875, 0.0294342041015625, -0.00511932373046875, -0.01873779296875, -0.037445068359375, 0.008026123046875, 0.0015878677368164062, -0.0269317626953125, 0.00815582275390625, -0.0145416259765625, 0.0009098052978515625, -0.01042938232421875, -0.0300750732421875, 0.007808685302734375, -0.00638580322265625, -0.0390625, 0.01258087158203125, 0.0217132568359375, -0.01172637939453125, -0.01016998291015625, 0.049713134765625, 0.0100555419921875, 0.018798828125, -0.00469970703125, -0.0124359130859375, 0.0177459716796875, -0.00662994384765625, 0.0018463134765625, -0.0102081298828125, -0.025848388671875, 0.01030731201171875, 0.0670166015625, 0.0085296630859375, -0.0657958984375, 0.01166534423828125, -0.032379150390625, -0.0301666259765625, 0.0294952392578125, 0.037322998046875, -0.004848480224609375, 0.00127410888671875, 0.007110595703125, 0.01438140869140625, 0.0260467529296875, -0.038848876953125, -0.0229644775390625, -0.033294677734375, -0.003570556640625, 0.01493072509765625, -0.034454345703125, 0.019317626953125, -0.0110626220703125, -0.01194000244140625, -0.0447998046875, -0.0256195068359375, -0.00891876220703125, -0.03973388671875, 0.004940032958984375, -0.00240325927734375, 0.0150604248046875, -0.0088348388671875, 0.033935546875, 0.0129852294921875, -0.00815582275390625, 0.0445556640625, -0.0194244384765625, 0.01151275634765625, -0.0107879638671875, 0.0009627342224121094, -0.04534912109375, 0.043670654296875, -0.0137939453125, 0.00672149658203125, 0.01523590087890625, 0.00749969482421875, 0.0223388671875, -0.021240234375, 0.01131439208984375, -0.054412841796875, 0.051788330078125, -0.02734375, 0.007305145263671875, -0.0182952880859375, -0.0141143798828125, 0.0167694091796875, 0.0885009765625, -0.05078125, -0.00978851318359375, -0.046966552734375, -0.0058135986328125, 0.025787353515625, -0.0513916015625, -0.0214385986328125, -0.00890350341796875, -0.09124755859375, 0.00820159912109375, -0.015106201171875, -0.0167694091796875, -0.03765869140625, 0.0626220703125, -0.06573486328125, -0.036407470703125, 0.061004638671875, -0.0186004638671875, 0.0224609375, 0.0189666748046875, -0.01371002197265625, -0.01380157470703125, -0.055877685546875, 0.0007014274597167969, -0.046600341796875, -0.006504058837890625, -0.010650634765625, 0.03619384765625, 0.0258026123046875, -0.023223876953125, -0.0186767578125, 0.0102081298828125, 0.02471923828125, -0.0175323486328125, -0.00908660888671875, -0.01241302490234375, -0.015655517578125, -0.00013530254364013672, -0.021820068359375, -0.011993408203125, -0.0021991729736328125, 0.0165557861328125, -0.0224456787109375, 0.0152587890625, -0.019683837890625, -0.01436614990234375, 0.02459716796875, -0.0301666259765625, -0.080322265625, -0.06329345703125, -0.0188446044921875, -0.0150146484375, -0.00177001953125, -0.00537109375, -0.043365478515625, -0.08074951171875, 0.0031261444091796875, -0.0259246826171875, -0.049407958984375, 0.016998291015625, 0.0228729248046875, 0.0219268798828125, 0.0013418197631835938, -0.001857757568359375, -0.0014944076538085938, 0.03326416015625, -0.00533294677734375, 0.054901123046875, 0.03656005859375, -0.004184722900390625, 0.033905029296875, 0.0149383544921875, 0.00225067138671875, -0.031524658203125, 0.055145263671875, 0.0223541259765625, 0.017669677734375, 0.00231170654296875, -0.0016832351684570312, 0.014984130859375, -0.0173492431640625, -0.0206146240234375, 0.006908416748046875, -0.0223236083984375, 0.036102294921875, 0.0026798248291015625, 0.008636474609375, -0.0458984375, 0.01531982421875, 0.007293701171875, 0.006732940673828125, 0.039276123046875, 0.0177459716796875, 0.0027866363525390625, -0.01448822021484375, -0.017852783203125, -0.00971221923828125, 0.0003657341003417969, 0.0283355712890625, -0.0010061264038085938, 0.0283050537109375, 0.00817108154296875, -0.0152435302734375, -0.006160736083984375, -0.0030536651611328125, 0.018707275390625, 0.01322174072265625, -0.032318115234375, -0.032928466796875, 0.0097808837890625, 0.0810546875, -0.00006288290023803711, 0.0255279541015625, 0.0576171875, 0.02099609375, 0.0083160400390625, -0.033721923828125, -0.0004000663757324219, -0.014007568359375, -0.045257568359375, 0.023101806640625, 0.0313720703125, -0.0031948089599609375, 0.053314208984375, 0.043304443359375, 0.03839111328125, 0.043304443359375, -0.043701171875, 0.041748046875, 0.0208282470703125, 0.042449951171875, -0.0089874267578125, 0.01390838623046875, -0.0009474754333496094, 0.0262298583984375, 0.00370025634765625, -0.052398681640625, -0.037017822265625, 0.0298309326171875, 0.0535888671875, 0.0302581787109375, 0.0035572052001953125, -0.01220703125, -0.000946044921875, -0.016876220703125, 0.061004638671875, 0.0166473388671875, -0.0745849609375, -0.0084228515625, 0.04254150390625, 0.0137481689453125, -0.039886474609375, -0.033538818359375, 0.0479736328125, -0.04571533203125, 0.01485443115234375, -0.0255126953125, -0.028289794921875, 0.006755828857421875, 0.0217742919921875, -0.02685546875, -0.0261383056640625, 0.006221771240234375, -0.0270233154296875, -0.01019287109375, -0.0311126708984375, -0.016998291015625, 0.045623779296875, -0.032928466796875, 0.00421142578125, -0.01232147216796875, 0.0173492431640625, 0.0166015625, 0.007381439208984375, 0.07293701171875, 0.0439453125, -0.0025959014892578125, -0.01378631591796875, -0.051300048828125, -0.0404052734375, -0.040069580078125, -0.032745361328125, -0.04364013671875, 0.0019283294677734375, 0.01438140869140625, -0.0122222900390625, 0.00579071044921875, -0.005985260009765625, -0.0147552490234375, 0.035919189453125, 0.032379150390625, 0.0164642333984375, -0.022216796875, 0.0789794921875, -0.01172637939453125, 0.0294342041015625, -0.0010404586791992188, 0.0316162109375, -0.0033130645751953125, 0.00324249267578125, 0.0196075439453125, -0.035369873046875, -0.0242767333984375, -0.0309600830078125, -0.038726806640625, 0.007038116455078125, 0.042724609375, -0.01081085205078125, 0.0231170654296875, -0.005870819091796875, 0.004718780517578125, -0.04425048828125, -0.00510406494140625, -0.046295166015625, 0.0284271240234375, -0.0438232421875, -0.005016326904296875, 0.0291595458984375, -0.00482177734375, -0.0210113525390625, 0.006160736083984375, -0.00800323486328125, 0.03253173828125, 0.00846099853515625, -0.036102294921875, 0.0677490234375, 0.08258056640625, -0.00026035308837890625, 0.056610107421875, 0.0151214599609375, 0.01361083984375, 0.03411865234375, -0.0254974365234375, 0.0197601318359375, 0.033294677734375, 0.045440673828125, -0.004245758056640625, 0.00727081298828125, 0.043853759765625, -0.0228118896484375, 0.0168304443359375, 0.06072998046875, 0.067138671875, -0.10784912109375, 0.0185394287109375, 0.0304412841796875, -0.005641937255859375, 0.02008056640625, -0.0118255615234375, -0.01294708251953125, -0.0279083251953125, 0.036865234375, -0.0267791748046875, -0.0290374755859375, -0.00885009765625, -0.0130462646484375, -0.0020904541015625, 0.004940032958984375, 0.05792236328125, 0.028564453125, 0.01239776611328125, -0.0175323486328125, -0.006572723388671875, 0.021759033203125, -0.0128936767578125, -0.0184478759765625, 0.0080718994140625, -0.0262451171875, -0.06463623046875, -0.00015532970428466797, -0.038726806640625, 0.012847900390625, 0.0499267578125, 0.007625579833984375, -0.01377105712890625, 0.06298828125, -0.036651611328125, 0.0478515625, 0.010406494140625, -0.014434814453125, -0.045562744140625, -0.04833984375, 0.01416015625, 0.006580352783203125, -0.0099639892578125, 0.0347900390625, 0.01309967041015625, -0.08111572265625, 0.01371002197265625, 0.003437042236328125, 0.0859375, -0.06390380859375, -0.0181884765625, 0.006511688232421875, -0.0125274658203125, 0.0211944580078125, -0.013946533203125, 0.01513671875, -0.0280609130859375, 0.024322509765625, -0.0173492431640625, 0.00304412841796875, -0.0010690689086914062, -0.0277252197265625, -0.0693359375, 0.09979248046875, -0.018798828125, 0.040374755859375, 0.01299285888671875, 0.040435791015625, -0.02471923828125, 0.0136260986328125, -0.025604248046875, 0.06927490234375, 0.03436279296875, 0.01493072509765625, -0.030731201171875, -0.0163726806640625, -0.00537109375, 0.0328369140625, 0.040069580078125, 0.012603759765625, 0.0179443359375, 0.00494384765625, 0.0523681640625, 0.045135498046875, -0.00988006591796875, -0.005279541015625, -0.018829345703125, -0.005035400390625, 0.0092010498046875, -0.0440673828125, 0.0123748779296875, 0.0014057159423828125, -0.0296173095703125, 0.00911712646484375, 0.01439666748046875, 0.003948211669921875, 0.01082611083984375, -0.0292205810546875, -0.0194549560546875, 0.01427459716796875, -0.001338958740234375, 0.0197601318359375, -0.00946044921875, 0.0007867813110351562, -0.00576019287109375, -0.0343017578125, 0.02020263671875, -0.034576416015625, 0.028472900390625, 0.014678955078125, -0.003627777099609375, -0.004253387451171875, 0.0182037353515625, -0.01251983642578125, -0.038238525390625, -0.010284423828125, 0.024810791015625, -0.050567626953125, 0.034271240234375, 0.0184326171875, 0.024749755859375, -0.048492431640625, -0.0005502700805664062, 0.0261383056640625, 0.051239013671875, -0.033843994140625, -0.052215576171875, 0.0152435302734375, -0.00112152099609375, -0.01006317138671875, 0.0197601318359375, 0.027557373046875, -0.0084228515625, 0.0311126708984375, -0.0116729736328125, 0.00015783309936523438, 0.01200103759765625, 0.0099334716796875, -0.0109405517578125, -0.00048804283142089844, 0.0026760101318359375, 0.018402099609375, -0.055633544921875, 0.00577545166015625, 0.023468017578125, 0.06243896484375, 0.0189208984375, 0.040740966796875, -0.0079345703125, -0.0279083251953125, -0.00787353515625, -0.004180908203125, -0.05084228515625, 0.0254669189453125, -0.07476806640625, -0.06671142578125, -0.0228424072265625, 0.0628662109375, 0.006679534912109375, 0.01183319091796875, 0.03179931640625, 0.028839111328125, 0.00567626953125, -0.00875091552734375, 0.048919677734375, -0.00675201416015625, -0.0246734619140625, 0.0006833076477050781, -0.039825439453125, 0.0006933212280273438, -0.01187896728515625, 0.01248931884765625, 0.048370361328125, -0.0208587646484375, 0.0114593505859375, -0.0001430511474609375, 0.00650787353515625, -0.01490020751953125, 0.04132080078125, 0.0283050537109375, 0.039703369140625, 0.04742431640625, -0.08465576171875, -0.03192138671875, -0.0199737548828125, -0.01067352294921875, 0.02886962890625, 0.0294342041015625, -0.02447509765625, 0.0252685546875, 0.0281829833984375, 0.008209228515625, -0.01885986328125, -0.0104522705078125, 0.00997161865234375, 0.0102386474609375, 0.03961181640625, 0.035400390625, -0.018463134765625, -0.0011119842529296875, 0.0047149658203125, 0.006877899169921875, 0.0128173828125, 0.0157012939453125, 0.0230560302734375, 0.0291900634765625, -0.04010009765625, 0.0419921875, -0.053924560546875, -0.034271240234375, -0.01318359375, 0.0283660888671875, 0.0216064453125, -0.004352569580078125, -0.0198516845703125, 0.012786865234375, 0.06842041015625, -0.0166168212890625, 0.032806396484375, -0.01525115966796875, 0.005428314208984375, -0.0596923828125, 0.0004544258117675781, -0.015167236328125, 0.0305023193359375, 0.0013818740844726562, -0.0253753662109375, 0.04278564453125, 0.0161590576171875, -0.006122589111328125, 0.01419830322265625, -0.002227783203125, -0.0240020751953125, 0.022247314453125, -0.0164642333984375, 0.019195556640625, 0.036041259765625, -0.0181427001953125, -0.0088653564453125, 0.0215606689453125, -0.00030732154846191406, 0.010040283203125, 0.035308837890625, -0.004436492919921875, 0.046600341796875, -0.042205810546875, 0.004901885986328125, -0.0157928466796875, 0.028106689453125, -0.021026611328125, 0.0012645721435546875, -0.01331329345703125, 0.0018825531005859375, -0.0220794677734375, 0.05474853515625, -0.034698486328125, -0.029296875, -0.005764007568359375, 0.00015020370483398438, -0.0224456787109375, -0.0675048828125, -0.08502197265625, 0.0247344970703125, 0.07122802734375, 0.0259552001953125, -0.1065673828125, 0.07696533203125, -0.03924560546875, 0.056427001953125, 0.00836944580078125, 0.0273895263671875, -0.0265655517578125, 0.0120849609375, -0.038848876953125, -0.026702880859375, -0.055450439453125, 0.02685546875, -0.049774169921875, -0.0227508544921875, -0.0015869140625, -0.007122039794921875, -0.01019287109375, -0.046722412109375, -0.025360107421875, -0.0025157928466796875, 0.0254364013671875, 0.0037841796875, -0.004169464111328125, 0.0191650390625, -0.030426025390625, -0.046295166015625, 0.0034122467041015625, -0.035430908203125, -0.0293121337890625, -0.0018453598022460938, -0.0014982223510742188, 0.02117919921875, -0.014556884765625, -0.033782958984375, 0.014801025390625, -0.0014371871948242188, -0.0311737060546875, 0.0037937164306640625, 0.0013628005981445312, -0.03399658203125, 0.066162109375, 0.01406097412109375, -0.047088623046875, 0.00931549072265625, 0.02197265625, 0.007038116455078125, 0.04278564453125, 0.0219879150390625, -0.022125244140625, 0.0104217529296875, -0.000028133392333984375, 0.0157318115234375, 0.025299072265625, -0.00592041015625, 0.001190185546875, 0.01922607421875, 0.0183868408203125, -0.03765869140625, 0.0167694091796875, -0.011871337890625, 0.016845703125, -0.0007853507995605469, -0.036163330078125, -0.050872802734375, -0.0309295654296875, 0.07330322265625, 0.0638427734375, 0.03717041015625, -0.0198974609375, -0.0160369873046875, -0.045501708984375, -0.015411376953125, -0.03924560546875, 0.015716552734375, -0.0760498046875, -0.017486572265625, 0.0224761962890625, -0.004047393798828125, -0.002529144287109375, -0.001983642578125, -0.0073699951171875, -0.01262664794921875, 0.011505126953125, -0.0095367431640625, -0.02325439453125, 0.043182373046875, 0.024749755859375, -0.030029296875, -0.01132965087890625, -0.0260009765625, -0.00438690185546875, 0.007297515869140625, -0.060455322265625, -0.031402587890625, 0.0034637451171875, -0.0421142578125, 0.01250457763671875, -0.01453399658203125, 0.0357666015625, -0.045501708984375, 0.00024580955505371094, -0.021820068359375, 0.0034732818603515625, 0.006984710693359375, -0.00481414794921875, -0.0291900634765625, 0.025238037109375, 0.0194854736328125, 0.04815673828125, 0.02691650390625, 0.07257080078125, 0.00904083251953125, 0.044677734375, 0.0268707275390625, -0.04949951171875, 0.04229736328125, -0.036163330078125, -0.0096435546875, 0.020782470703125, -0.00275421142578125, -0.06304931640625, 0.035400390625, -0.00383758544921875, 0.0380859375, 0.02264404296875 ]
ddbd014b1f235a2997b2f320985faa687fcf39e3
Wordpress Stackexchange Q: List of default WordPress URLs I'm looking for a list of all possible URLs (or URL patterns) that would deliver content or would otherwise cause WordPress to respond to the request with something other than a 404. Let's assume a fresh standard install of the current version. I've looked around and there's lots of documentation on how to create custom URLs to your content or admin area or for various other things, but I haven't found a comprehensive list of what exists by default. Does such a list exist or is there an easy way to compile it? A: Currently I can't offer a full answer to your question, but here as a starting point a (PHP 5.3+/closure) plugin that dumps the global WP_Rewrite object into the shutdown hook. <?php /* Plugin Name: Show WP_Rewrite Dump at the last hook (shutdown) */ add_action( 'shutdown', function() { var_dump( $GLOBALS['wp_rewrite'] ); } ); This doesn't take redirects into account. If someone would for e.g. write exit( wp_redirect( home_url() ) ); somewhere, you wouldn't know that inside WP_Rewrite.
Q: List of default WordPress URLs I'm looking for a list of all possible URLs (or URL patterns) that would deliver content or would otherwise cause WordPress to respond to the request with something other than a 404. Let's assume a fresh standard install of the current version. I've looked around and there's lots of documentation on how to create custom URLs to your content or admin area or for various other things, but I haven't found a comprehensive list of what exists by default. Does such a list exist or is there an easy way to compile it? A: Currently I can't offer a full answer to your question, but here as a starting point a (PHP 5.3+/closure) plugin that dumps the global WP_Rewrite object into the shutdown hook. <?php /* Plugin Name: Show WP_Rewrite Dump at the last hook (shutdown) */ add_action( 'shutdown', function() { var_dump( $GLOBALS['wp_rewrite'] ); } ); This doesn't take redirects into account. If someone would for e.g. write exit( wp_redirect( home_url() ) ); somewhere, you wouldn't know that inside WP_Rewrite.
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:440363", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127096" }
[ 0.049072265625, -0.0105133056640625, 0.02178955078125, -0.0252838134765625, -0.00588226318359375, -0.0194091796875, 0.03985595703125, -0.0361328125, -0.038909912109375, -0.001956939697265625, 0.01155853271484375, -0.0273590087890625, -0.0183563232421875, -0.054046630859375, 0.0278778076171875, -0.046173095703125, 0.048095703125, -0.0249481201171875, 0.012603759765625, -0.00839996337890625, 0.0035915374755859375, 0.0246734619140625, 0.0158843994140625, 0.08380126953125, 0.00824737548828125, -0.0237579345703125, 0.0287933349609375, -0.0171051025390625, -0.0036869049072265625, -0.014801025390625, 0.0175933837890625, 0.00431060791015625, 0.0119476318359375, 0.0225372314453125, -0.02069091796875, -0.0277862548828125, -0.005786895751953125, 0.0160980224609375, 0.00844573974609375, 0.01360321044921875, 0.0338134765625, -0.032958984375, 0.076171875, -0.00919342041015625, 0.03741455078125, -0.0265655517578125, 0.052459716796875, -0.035614013671875, 0.0308380126953125, -0.007904052734375, 0.00817108154296875, 0.035797119140625, 0.0091705322265625, -0.0238800048828125, -0.0179901123046875, -0.01345062255859375, 0.036773681640625, 0.00576019287109375, 0.0296783447265625, -0.07147216796875, -0.054412841796875, 0.0181732177734375, 0.037689208984375, 0.027191162109375, -0.012664794921875, 0.00457763671875, 0.0011053085327148438, 0.0217742919921875, -0.0151824951171875, -0.0132293701171875, 0.005588531494140625, -0.0011119842529296875, -0.02032470703125, -0.02545166015625, 0.0134735107421875, 0.0164642333984375, 0.003421783447265625, -0.01555633544921875, 0.004619598388671875, 0.033905029296875, 0.0266876220703125, -0.0299835205078125, -0.0020160675048828125, -0.0267486572265625, 0.0487060546875, 0.0003666877746582031, 0.007083892822265625, -0.018798828125, -0.062744140625, -0.0294189453125, -0.0345458984375, -0.0292205810546875, -0.045440673828125, -0.016876220703125, -0.00708770751953125, -0.01439666748046875, 0.00913238525390625, -0.02142333984375, -0.004062652587890625, -0.019256591796875, 0.0172882080078125, -0.0262451171875, 0.0091400146484375, 0.0002930164337158203, -0.00033283233642578125, 0.033447265625, 0.0203704833984375, 0.0257720947265625, 0.016204833984375, 0.0023326873779296875, -0.0158843994140625, 0.0163726806640625, -0.00594329833984375, 0.04376220703125, -0.02911376953125, -0.04718017578125, -0.0909423828125, 0.01385498046875, -0.04205322265625, 0.01511383056640625, 0.00034546852111816406, 0.0177154541015625, 0.0099639892578125, -0.031463623046875, -0.006805419921875, -0.0213470458984375, -0.01189422607421875, -0.036712646484375, -0.032257080078125, 0.0200347900390625, -0.01500701904296875, 0.0305633544921875, 0.052215576171875, 0.00809478759765625, -0.0245513916015625, -0.0135345458984375, 0.0147552490234375, 0.019500732421875, -0.00659942626953125, 0.01496124267578125, -0.0244903564453125, -0.0300445556640625, 0.0083770751953125, -0.005542755126953125, 0.0543212890625, 0.030609130859375, 0.0192413330078125, 0.006816864013671875, 0.00508880615234375, -0.0283966064453125, 0.0027217864990234375, -0.0007996559143066406, 0.063720703125, -0.01068878173828125, -0.01345062255859375, -0.054229736328125, 0.047882080078125, -0.045562744140625, -0.029327392578125, -0.061767578125, 0.0012540817260742188, -0.012786865234375, -0.0106658935546875, -0.03399658203125, -0.0526123046875, 0.00977325439453125, -0.01531982421875, -0.006561279296875, 0.01629638671875, 0.037139892578125, -0.0214996337890625, -0.02203369140625, -0.00630950927734375, -0.0004744529724121094, -0.0110931396484375, 0.012908935546875, -0.0109710693359375, -0.01338958740234375, 0.01105499267578125, 0.09173583984375, 0.0421142578125, -0.01953125, 0.0019683837890625, 0.01837158203125, -0.08984375, 0.0655517578125, -0.004650115966796875, 0.0997314453125, 0.04571533203125, -0.00414276123046875, 0.02252197265625, -0.01430511474609375, -0.01580810546875, 0.0246124267578125, -0.01251983642578125, -0.00537109375, -0.0139617919921875, 0.019927978515625, -0.0259246826171875, -0.012725830078125, 0.00809478759765625, 0.006145477294921875, 0.005428314208984375, 0.00423431396484375, -0.044891357421875, 0.01410675048828125, -0.0290679931640625, 0.0294342041015625, 0.0213623046875, 0.01824951171875, 0.0004227161407470703, -0.01134490966796875, -0.00958251953125, -0.04571533203125, -0.03192138671875, 0.033599853515625, 0.005725860595703125, -0.006023406982421875, -0.01045989990234375, 0.005359649658203125, 0.00004184246063232422, -0.0231781005859375, -0.033172607421875, 0.0198822021484375, 0.02178955078125, -0.0169219970703125, -0.0257110595703125, -0.0193328857421875, 0.0015325546264648438, 0.010223388671875, -0.044921875, 0.034149169921875, 0.0250091552734375, 0.025787353515625, -0.036865234375, -0.00173187255859375, -0.01329803466796875, -0.0233154296875, 0.0029449462890625, 0.04443359375, 0.0277557373046875, 0.0188140869140625, -0.0190887451171875, -0.022796630859375, 0.03076171875, -0.061767578125, -0.003841400146484375, -0.00803375244140625, 0.00028514862060546875, 0.03668212890625, 0.002300262451171875, -0.004985809326171875, 0.0023937225341796875, -0.05706787109375, 0.004718780517578125, 0.0229949951171875, -0.03143310546875, -0.043548583984375, -0.02581787109375, 0.0268707275390625, 0.015350341796875, -0.0036258697509765625, -0.028961181640625, 0.0031185150146484375, -0.002895355224609375, 0.01422882080078125, 0.0116729736328125, 0.017181396484375, -0.0013895034790039062, 0.011077880859375, -0.004581451416015625, -0.03704833984375, -0.01245880126953125, 0.01175689697265625, 0.09832763671875, -0.04339599609375, -0.0012273788452148438, -0.0200653076171875, -0.0111083984375, -0.00273895263671875, -0.0165252685546875, 0.0208587646484375, -0.045166015625, -0.01020050048828125, -0.0186309814453125, -0.0687255859375, -0.0084075927734375, 0.018310546875, 0.0399169921875, -0.0024051666259765625, 0.021575927734375, 0.0216827392578125, -0.01369476318359375, 0.0289459228515625, 0.042083740234375, -0.04168701171875, -0.025360107421875, -0.075927734375, 0.0604248046875, -0.04486083984375, 0.01055908203125, 0.08538818359375, -0.00286865234375, 0.018951416015625, 0.0014257431030273438, 0.038177490234375, 0.0168609619140625, 0.0008678436279296875, -0.0171356201171875, 0.0267791748046875, -0.115478515625, -0.0723876953125, 0.0088958740234375, 0.060394287109375, -0.007015228271484375, -0.039825439453125, 0.01035308837890625, 0.030181884765625, -0.034271240234375, -0.048614501953125, -0.0179290771484375, -0.0174560546875, -0.0110321044921875, 0.01104736328125, -0.0004246234893798828, 0.0014123916625976562, 0.021484375, 0.007442474365234375, -0.0174407958984375, -0.048187255859375, -0.10272216796875, -0.10504150390625, -0.09283447265625, -0.0077056884765625, -0.0196990966796875, 0.02545166015625, 0.01074981689453125, 0.026275634765625, 0.00585174560546875, -0.055267333984375, 0.01131439208984375, -0.0010728836059570312, -0.015625, 0.00079345703125, -0.032470703125, -0.00949859619140625, 0.02557373046875, -0.026763916015625, 0.09405517578125, 0.05615234375, -0.037994384765625, 0.0287933349609375, -0.015106201171875, -0.032623291015625, -0.02911376953125, 0.01904296875, 0.0340576171875, -0.040191650390625, -0.013092041015625, -0.069580078125, -0.0201416015625, 0.01263427734375, -0.029205322265625, 0.0435791015625, 0.009185791015625, -0.015350341796875, 0.02362060546875, -0.005107879638671875, 0.004299163818359375, -0.022918701171875, 0.01837158203125, -0.0261077880859375, 0.0116119384765625, -0.01529693603515625, 0.019866943359375, -0.0193634033203125, 0.085693359375, 0.01678466796875, -0.044219970703125, 0.034820556640625, 0.01358795166015625, 0.01708984375, -0.034210205078125, -0.035797119140625, -0.05181884765625, 0.029449462890625, -0.0592041015625, 0.01296234130859375, -0.05841064453125, -0.0049896240234375, -0.0233612060546875, 0.07427978515625, -0.03009033203125, -0.01062774658203125, -0.017974853515625, 0.0124053955078125, -0.0089569091796875, -0.040313720703125, -0.01224517822265625, -0.011077880859375, -0.0908203125, 0.0185089111328125, 0.0013380050659179688, -0.036407470703125, -0.006656646728515625, -0.020416259765625, -0.041717529296875, -0.050689697265625, 0.00868988037109375, -0.00084686279296875, 0.0040130615234375, -0.0005998611450195312, 0.009735107421875, -0.0147247314453125, 0.007160186767578125, -0.0248565673828125, -0.047515869140625, -0.032379150390625, -0.0034465789794921875, 0.06378173828125, 0.042633056640625, -0.06964111328125, 0.0196685791015625, 0.07257080078125, -0.007904052734375, 0.043670654296875, -0.0027065277099609375, -0.0164794921875, 0.042938232421875, 0.004924774169921875, 0.0112152099609375, -0.0013685226440429688, -0.00644683837890625, -0.00887298583984375, -0.0287628173828125, 0.00830078125, -0.001453399658203125, 0.00853729248046875, 0.0249786376953125, -0.020751953125, -0.01528167724609375, -0.00506591796875, -0.0165252685546875, 0.0268707275390625, 0.00446319580078125, -0.0200347900390625, 0.00830841064453125, -0.058441162109375, 0.0225677490234375, -0.02301025390625, -0.015899658203125, 0.02227783203125, 0.03741455078125, 0.018524169921875, -0.0095672607421875, -0.006053924560546875, 0.0010042190551757812, 0.0272979736328125, 0.0316162109375, 0.0167083740234375, -0.0135498046875, 0.01055145263671875, 0.010467529296875, -0.01410675048828125, 0.01837158203125, -0.00774383544921875, 0.020721435546875, -0.0219879150390625, -0.033355712890625, 0.0277252197265625, -0.0256195068359375, 0.00646209716796875, 0.048614501953125, -0.00615692138671875, -0.01384735107421875, -0.01953125, 0.0257110595703125, -0.029083251953125, 0.0258941650390625, -0.034515380859375, -0.01220703125, 0.00467681884765625, 0.026031494140625, 0.0416259765625, 0.033843994140625, 0.0007314682006835938, 0.036102294921875, 0.0218048095703125, 0.00795745849609375, 0.05645751953125, 0.038299560546875, 0.01238250732421875, 0.04193115234375, 0.027801513671875, -0.00797271728515625, 0.00395965576171875, -0.01039886474609375, 0.08233642578125, -0.0082855224609375, -0.07354736328125, 0.009674072265625, -0.0216827392578125, -0.0180816650390625, 0.032989501953125, -0.004150390625, 0.0163116455078125, 0.03857421875, -0.0138702392578125, -0.00787353515625, -0.035980224609375, 0.03826904296875, -0.0533447265625, 0.0259857177734375, 0.003635406494140625, 0.00922393798828125, 0.02972412109375, 0.076416015625, 0.006137847900390625, 0.045257568359375, -0.0233001708984375, -0.01509857177734375, 0.0120086669921875, 0.0098419189453125, 0.01230621337890625, 0.041656494140625, -0.0219268798828125, 0.015960693359375, 0.043792724609375, -0.0472412109375, -0.032684326171875, 0.029541015625, 0.056243896484375, -0.032135009765625, -0.0298614501953125, 0.00994873046875, -0.02886962890625, -0.0296173095703125, 0.047607421875, -0.02099609375, -0.05419921875, -0.044342041015625, -0.016693115234375, 0.04656982421875, -0.00653839111328125, -0.055694580078125, 0.00872802734375, -0.057220458984375, -0.0014562606811523438, -0.00366973876953125, -0.0526123046875, 0.02899169921875, 0.03363037109375, 0.0022945404052734375, -0.015472412109375, 0.00614166259765625, -0.06060791015625, -0.01087188720703125, -0.03521728515625, -0.01551055908203125, 0.09027099609375, -0.01499176025390625, 0.0272216796875, -0.007099151611328125, -0.02520751953125, 0.01776123046875, 0.0146636962890625, 0.056396484375, 0.0267333984375, -0.029052734375, -0.024658203125, -0.0474853515625, 0.00335693359375, 0.046112060546875, -0.036407470703125, 0.0153961181640625, -0.0215911865234375, 0.03369140625, 0.0112457275390625, 0.018951416015625, -0.005519866943359375, -0.01971435546875, 0.0237884521484375, 0.0293731689453125, -0.0028533935546875, -0.004405975341796875, 0.043792724609375, -0.005069732666015625, 0.0201568603515625, -0.01123046875, -0.00244140625, 0.005340576171875, -0.02947998046875, 0.000423431396484375, -0.018829345703125, -0.0185394287109375, -0.0237274169921875, 0.002994537353515625, 0.037841796875, 0.06170654296875, -0.0029888153076171875, -0.01517486572265625, -0.0010881423950195312, -0.00315093994140625, -0.0297088623046875, 0.043365478515625, 0.0105743408203125, 0.0178070068359375, -0.0198974609375, 0.045318603515625, 0.0631103515625, -0.043792724609375, -0.019195556640625, -0.006992340087890625, 0.006107330322265625, 0.00909423828125, -0.01139068603515625, -0.07666015625, 0.059295654296875, 0.09393310546875, 0.01580810546875, 0.0657958984375, 0.00909423828125, 0.01389312744140625, 0.052093505859375, 0.0020542144775390625, 0.0203094482421875, -0.03985595703125, 0.04638671875, 0.0017900466918945312, -0.0277252197265625, 0.029296875, -0.0272979736328125, 0.00406646728515625, 0.06805419921875, 0.042755126953125, -0.0889892578125, 0.01003265380859375, 0.00647735595703125, 0.013824462890625, 0.024749755859375, 0.0093536376953125, -0.00972747802734375, 0.0001398324966430664, -0.01522064208984375, -0.017608642578125, -0.042755126953125, -0.0321044921875, 0.0215911865234375, -0.007274627685546875, -0.00740814208984375, 0.0127105712890625, -0.0092620849609375, -0.01459503173828125, -0.0110931396484375, 0.0011501312255859375, -0.015472412109375, -0.04156494140625, -0.00412750244140625, 0.023895263671875, 0.00115203857421875, -0.027496337890625, 0.049163818359375, -0.037872314453125, 0.0389404296875, -0.011566162109375, -0.0297393798828125, 0.0030040740966796875, 0.046539306640625, -0.041168212890625, 0.0357666015625, 0.038421630859375, -0.03887939453125, 0.027862548828125, 0.01326751708984375, 0.00545501708984375, 0.006252288818359375, -0.00844573974609375, 0.0007443428039550781, -0.036407470703125, -0.009521484375, 0.00713348388671875, -0.0074310302734375, 0.08367919921875, -0.0540771484375, -0.004825592041015625, 0.024200439453125, 0.00742340087890625, 0.0030345916748046875, -0.03265380859375, 0.004520416259765625, -0.0245361328125, 0.00933074951171875, -0.03155517578125, -0.00485992431640625, -0.0021228790283203125, -0.05718994140625, -0.042510986328125, 0.047119140625, -0.02947998046875, 0.03228759765625, 0.0300140380859375, 0.0010404586791992188, -0.005764007568359375, -0.0010881423950195312, -0.0149993896484375, 0.053955078125, 0.0161285400390625, 0.01285552978515625, -0.0293426513671875, -0.0116424560546875, 0.012603759765625, 0.0394287109375, 0.0221405029296875, 0.004913330078125, -0.061553955078125, -0.0011892318725585938, 0.022247314453125, 0.01055908203125, -0.0005545616149902344, 0.05999755859375, -0.00603485107421875, 0.0285491943359375, 0.0181427001953125, -0.039306640625, 0.01049041748046875, -0.01406097412109375, -0.004604339599609375, 0.013153076171875, 0.0226287841796875, 0.0230255126953125, 0.016632080078125, -0.011077880859375, -0.044036865234375, 0.015838623046875, 0.02923583984375, -0.0088958740234375, -0.0015954971313476562, 0.03778076171875, 0.0201416015625, -0.062286376953125, 0.02313232421875, -0.046142578125, 0.0531005859375, -0.0146636962890625, -0.01445770263671875, 0.03955078125, 0.0284271240234375, 0.0080108642578125, -0.04266357421875, -0.014404296875, 0.0021266937255859375, -0.02520751953125, 0.0626220703125, 0.024810791015625, 0.0103759765625, -0.04583740234375, -0.003025054931640625, 0.031707763671875, 0.0762939453125, -0.044830322265625, -0.05889892578125, 0.0064239501953125, 0.017669677734375, 0.0234832763671875, 0.012176513671875, 0.0462646484375, -0.04888916015625, -0.002040863037109375, -0.0297698974609375, -0.01318359375, 0.011199951171875, -0.0006961822509765625, -0.01544952392578125, -0.02886962890625, 0.036529541015625, 0.01146697998046875, -0.0037784576416015625, -0.046966552734375, -0.0156707763671875, 0.041839599609375, 0.045135498046875, 0.0066070556640625, -0.022125244140625, -0.019927978515625, 0.0234222412109375, 0.04150390625, -0.0276031494140625, -0.01300811767578125, -0.0174102783203125, -0.07403564453125, -0.00643157958984375, 0.0323486328125, 0.04388427734375, 0.029571533203125, 0.063232421875, 0.0162506103515625, -0.04132080078125, 0.0096588134765625, 0.034332275390625, -0.039520263671875, 0.0135345458984375, -0.047027587890625, 0.0304107666015625, -0.0124969482421875, -0.011199951171875, 0.006591796875, 0.01427459716796875, 0.0269012451171875, -0.01593017578125, 0.026763916015625, -0.0004858970642089844, -0.023284912109375, 0.04010009765625, -0.04351806640625, 0.045166015625, -0.01082611083984375, -0.082763671875, -0.029998779296875, -0.00972747802734375, -0.020843505859375, 0.041900634765625, 0.04986572265625, -0.01397705078125, 0.016357421875, -0.0167999267578125, 0.00670623779296875, 0.016265869140625, -0.024078369140625, -0.024169921875, -0.0277862548828125, 0.024383544921875, -0.027252197265625, -0.06585693359375, -0.036285400390625, -0.0215606689453125, 0.023162841796875, 0.011260986328125, 0.11578369140625, -0.031646728515625, 0.0086669921875, 0.0251312255859375, -0.0014734268188476562, 0.004425048828125, 0.0208892822265625, -0.033843994140625, -0.00890350341796875, 0.0265960693359375, -0.0025043487548828125, -0.05621337890625, -0.0175933837890625, 0.044952392578125, -0.04010009765625, 0.017425537109375, -0.036712646484375, 0.0254974365234375, -0.044708251953125, 0.0299835205078125, -0.036834716796875, -0.07794189453125, -0.06561279296875, 0.01678466796875, 0.0034580230712890625, 0.01184844970703125, -0.018157958984375, 0.055023193359375, -0.0178680419921875, -0.00153350830078125, 0.0028362274169921875, -0.041595458984375, -0.007450103759765625, 0.03338623046875, -0.023651123046875, -0.0257110595703125, -0.0028553009033203125, -0.01308441162109375, 0.018341064453125, -0.00424957275390625, 0.039031982421875, 0.006885528564453125, 0.0235443115234375, -0.0428466796875, -0.04107666015625, 0.003414154052734375, -0.0142669677734375, 0.004291534423828125, -0.04290771484375, 0.0235443115234375, 0.0187225341796875, -0.012603759765625, 0.0014104843139648438, 0.003719329833984375, -0.032440185546875, -0.00836181640625, 0.0006046295166015625, -0.03717041015625, 0.01557159423828125, 0.006336212158203125, 0.007720947265625, -0.01108551025390625, -0.025726318359375, 0.0209808349609375, -0.025390625, 0.044891357421875, -0.060577392578125, 0.035552978515625, -0.0158538818359375, -0.0167083740234375, -0.053497314453125, 0.01309967041015625, -0.03289794921875, 0.0052642822265625, -0.01039886474609375, 0.00939178466796875, 0.034088134765625, -0.004364013671875, -0.038543701171875, -0.01324462890625, -0.007709503173828125, 0.04058837890625, -0.0099639892578125, -0.032501220703125, -0.01157379150390625, 0.0014200210571289062, -0.0240936279296875, -0.039520263671875, 0.0227508544921875, -0.06646728515625, -0.035552978515625, 0.022125244140625, -0.017578125, 0.019927978515625, -0.04193115234375, -0.09442138671875, 0.06256103515625, -0.013153076171875, -0.02581787109375, -0.026153564453125, 0.020233154296875, 0.00616455078125, -0.0173797607421875, -0.0163116455078125, 0.0158233642578125, -0.02447509765625, -0.0118560791015625, 0.0122833251953125, 0.028076171875, 0.0208282470703125, 0.0016183853149414062, 0.020477294921875, 0.0213623046875, 0.034942626953125, 0.0130157470703125, 0.0443115234375, -0.0229034423828125, 0.05157470703125, 0.0655517578125, -0.0102996826171875, -0.0007448196411132812, -0.0258026123046875, -0.061431884765625, -0.0023365020751953125, -0.03277587890625, -0.0008254051208496094, 0.00487518310546875, 0.01442718505859375, 0.020050048828125, -0.0035915374755859375, -0.01425933837890625, -0.0230255126953125, -0.030792236328125, -0.0131072998046875, -0.017669677734375, 0.0170440673828125, -0.05181884765625, -0.0165863037109375, -0.01053619384765625, -0.009490966796875, -0.031280517578125, -0.02154541015625, -0.0242919921875, -0.004695892333984375, 0.0217132568359375, 0.016510009765625, 0.01552581787109375, 0.0036525726318359375, 0.0604248046875, -0.030303955078125, 0.041412353515625, -0.0230560302734375, 0.0286407470703125, 0.02960205078125, -0.055084228515625, -0.00412750244140625, 0.004703521728515625, -0.00368499755859375, 0.0130615234375, 0.01192474365234375, 0.019775390625, -0.0293426513671875, -0.009796142578125, -0.028961181640625, 0.0401611328125, -0.0034313201904296875, 0.05047607421875, 0.0078887939453125, 0.0258636474609375, 0.0197601318359375, 0.003856658935546875, -0.0138702392578125, 0.002376556396484375, -0.007061004638671875, 0.0285797119140625, -0.024017333984375, 0.00711822509765625, 0.0203704833984375, -0.041900634765625, 0.00936126708984375, 0.023956298828125, -0.01568603515625, 0.0112457275390625, -0.0338134765625, 0.0224761962890625, -0.00597381591796875, -0.01139068603515625 ]
11140504688ef59e5629f0521a7cb86f3f3771a1
Wordpress Stackexchange Q: WordPress plugin installation error I have installed WordPress 3.8 and now I am trying to install WooCommerce - excelling eCommerce 2.0.20 plugin but every time I am getting this error: Note: I am trying to install plugin in local machine. Fatal error: Maximum execution time of 60 seconds exceeded in M:\XAMPP\htdocs\woocommerce\wp-includes\class-http.php on line 1327 I have tried with bellow code: * *php.ini (in wp-admin folder) memory_limit = 32M upload_max_filesize = 100M upload_max_filesize = 100M post_max_size = 32M file_uploads = On *wp-config.php set_time_limit(60); but still I am facing this error. I know this very common issue but I need your help to solve this issue. I will appreciate If you help me :) Thanks A: I had the same problem but it occured while importing the theme-unit-test-data.xml along with its attachments. I am using WP 3.8.1. It's a WordPress issue so editing the php.ini has no effect. WP uses a hardcoded value (60 secs) for http_request_timeout of WP_Http in class-http.php. To solve it, place this code in functions.php of your currently active theme: add_filter( 'http_request_timeout', 'mytheme_bump_request_timeout', 100 ); function mytheme_bump_request_timeout(){ return 300; //Change this to your desired timeout value in ms }
Q: WordPress plugin installation error I have installed WordPress 3.8 and now I am trying to install WooCommerce - excelling eCommerce 2.0.20 plugin but every time I am getting this error: Note: I am trying to install plugin in local machine. Fatal error: Maximum execution time of 60 seconds exceeded in M:\XAMPP\htdocs\woocommerce\wp-includes\class-http.php on line 1327 I have tried with bellow code: * *php.ini (in wp-admin folder) memory_limit = 32M upload_max_filesize = 100M upload_max_filesize = 100M post_max_size = 32M file_uploads = On *wp-config.php set_time_limit(60); but still I am facing this error. I know this very common issue but I need your help to solve this issue. I will appreciate If you help me :) Thanks A: I had the same problem but it occured while importing the theme-unit-test-data.xml along with its attachments. I am using WP 3.8.1. It's a WordPress issue so editing the php.ini has no effect. WP uses a hardcoded value (60 secs) for http_request_timeout of WP_Http in class-http.php. To solve it, place this code in functions.php of your currently active theme: add_filter( 'http_request_timeout', 'mytheme_bump_request_timeout', 100 ); function mytheme_bump_request_timeout(){ return 300; //Change this to your desired timeout value in ms } A: Edit php.ini Should be located at xampp/php/php.ini Find this line: max_execution_time Change its value to 300 max_execution_time = 300 Here 300 means 5 minutes of execution time for the http request.
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:440431", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127295" }
[ 0.0273284912109375, -0.026702880859375, 0.0011529922485351562, -0.0195770263671875, -0.0120086669921875, -0.0203399658203125, 0.0126495361328125, -0.0157012939453125, -0.021881103515625, 0.01404571533203125, 0.01024627685546875, 0.01552581787109375, -0.0106048583984375, -0.029937744140625, 0.0103302001953125, -0.00739288330078125, 0.021942138671875, 0.05523681640625, 0.05560302734375, 0.01110076904296875, -0.007038116455078125, 0.034454345703125, -0.0084991455078125, 0.037078857421875, -0.0196075439453125, 0.0165252685546875, 0.091552734375, -0.02667236328125, -0.0135345458984375, -0.03863525390625, -0.00856781005859375, -0.0014829635620117188, 0.02252197265625, 0.03668212890625, -0.081787109375, -0.045654296875, -0.026214599609375, 0.0166778564453125, -0.0295257568359375, 0.042327880859375, 0.01454925537109375, -0.016082763671875, -0.0164642333984375, -0.006343841552734375, -0.0137176513671875, -0.01457977294921875, -0.01117706298828125, -0.046783447265625, 0.0242767333984375, -0.01922607421875, 0.0045623779296875, 0.039947509765625, 0.01486968994140625, -0.004894256591796875, -0.0176849365234375, 0.004993438720703125, -0.0297698974609375, 0.10064697265625, 0.013275146484375, -0.0013322830200195312, -0.04034423828125, 0.05487060546875, -0.0167236328125, -0.0211334228515625, 0.01441192626953125, -0.00548553466796875, 0.05987548828125, 0.03411865234375, 0.00661468505859375, 0.0254364013671875, -0.00033283233642578125, 0.039642333984375, 0.0037384033203125, 0.00042748451232910156, -0.0196990966796875, -0.016021728515625, 0.032073974609375, 0.01406097412109375, 0.022857666015625, -0.0094451904296875, 0.033203125, -0.0345458984375, 0.0223846435546875, -0.018524169921875, -0.01232147216796875, -0.0080718994140625, 0.01412200927734375, 0.004138946533203125, -0.0160675048828125, -0.01407623291015625, -0.024871826171875, -0.0321044921875, -0.030914306640625, 0.0219573974609375, -0.001277923583984375, -0.030364990234375, 0.0287933349609375, 0.0016565322875976562, 0.048919677734375, 0.03570556640625, 0.0084075927734375, -0.05926513671875, 0.045745849609375, -0.028106689453125, 0.005069732666015625, 0.05023193359375, -0.015716552734375, -0.0106658935546875, 0.025726318359375, -0.006496429443359375, 0.00231170654296875, 0.0360107421875, -0.004058837890625, -0.0609130859375, -0.01708984375, 0.005218505859375, -0.02484130859375, -0.023773193359375, 0.0305328369140625, -0.068115234375, -0.01885986328125, 0.018646240234375, -0.0175628662109375, -0.041595458984375, 0.000125885009765625, -0.01953125, -0.01399993896484375, 0.0009064674377441406, 0.03173828125, 0.0024318695068359375, -0.03472900390625, -0.0054931640625, 0.006618499755859375, 0.029876708984375, 0.00658416748046875, -0.00417327880859375, 0.0265960693359375, 0.01776123046875, 0.0004832744598388672, 0.0009751319885253906, 0.0148162841796875, 0.004947662353515625, 0.007274627685546875, -0.01503753662109375, 0.02117919921875, 0.0132598876953125, 0.00691986083984375, 0.0086822509765625, 0.0241546630859375, -0.0304718017578125, 0.01203155517578125, 0.01506805419921875, 0.048797607421875, -0.0104217529296875, -0.0157012939453125, -0.0223541259765625, 0.0028285980224609375, -0.01340484619140625, -0.0180816650390625, -0.0274505615234375, -0.06170654296875, 0.0014944076538085938, 0.048431396484375, -0.036376953125, -0.0306549072265625, 0.00789642333984375, -0.01380157470703125, 0.0026397705078125, 0.025909423828125, 0.036834716796875, -0.042205810546875, -0.04193115234375, 0.034210205078125, 0.0102081298828125, -0.03485107421875, 0.04107666015625, -0.00870513916015625, 0.056243896484375, 0.0406494140625, -0.0220489501953125, -0.026031494140625, -0.0384521484375, 0.1173095703125, -0.052490234375, -0.033599853515625, -0.02813720703125, 0.01145172119140625, -0.0016994476318359375, 0.0243377685546875, 0.0005812644958496094, 0.03936767578125, -0.005107879638671875, 0.0345458984375, 0.055938720703125, -0.035125732421875, -0.086669921875, -0.00290679931640625, 0.0002493858337402344, -0.056884765625, 0.0162353515625, 0.00262451171875, 0.01158905029296875, 0.0287628173828125, 0.01262664794921875, -0.0273895263671875, 0.047119140625, -0.0218048095703125, 0.019378662109375, -0.005298614501953125, -0.01384735107421875, 0.02301025390625, 0.003437042236328125, -0.01488494873046875, -0.033538818359375, -0.0298614501953125, 0.021240234375, -0.045074462890625, 0.059844970703125, -0.0164794921875, 0.0670166015625, -0.00916290283203125, -0.08917236328125, 0.003940582275390625, -0.027923583984375, -0.023529052734375, 0.05340576171875, -0.017608642578125, 0.047271728515625, 0.049102783203125, 0.03594970703125, 0.0946044921875, -0.05194091796875, 0.0009098052978515625, 0.0164947509765625, -0.0273590087890625, -0.0263824462890625, -0.0360107421875, -0.1090087890625, 0.0262451171875, 0.065673828125, 0.040618896484375, -0.00862884521484375, 0.0012006759643554688, 0.0265960693359375, 0.004108428955078125, -0.09332275390625, -0.00980377197265625, 0.01439666748046875, -0.007282257080078125, -0.018798828125, 0.002315521240234375, 0.003391265869140625, 0.0673828125, 0.0194091796875, 0.01168060302734375, 0.057342529296875, -0.0411376953125, -0.05548095703125, 0.00946807861328125, -0.0009546279907226562, 0.0103302001953125, -0.0310821533203125, -0.0245208740234375, -0.00457000732421875, 0.00740814208984375, 0.00542449951171875, 0.0112762451171875, 0.0011816024780273438, -0.020172119140625, 0.0089111328125, 0.0292205810546875, -0.012725830078125, -0.003997802734375, -0.0033931732177734375, -0.030120849609375, -0.04229736328125, -0.054473876953125, 0.03350830078125, 0.0281219482421875, -0.035797119140625, 0.00107574462890625, 0.043548583984375, 0.006847381591796875, -0.00286102294921875, -0.023162841796875, -0.021331787109375, 0.004940032958984375, 0.028839111328125, 0.040008544921875, -0.002277374267578125, 0.041656494140625, -0.01403045654296875, -0.033050537109375, 0.03887939453125, 0.0028896331787109375, -0.05206298828125, 0.05133056640625, -0.028778076171875, 0.0272216796875, -0.0149993896484375, 0.06597900390625, 0.049560546875, -0.0306243896484375, 0.013671875, 0.023681640625, -0.016143798828125, 0.01352691650390625, 0.0202789306640625, 0.00023174285888671875, 0.0010738372802734375, -0.043609619140625, 0.03192138671875, 0.0496826171875, 0.07379150390625, -0.0082550048828125, -0.06109619140625, -0.01306915283203125, 0.040435791015625, -0.0909423828125, -0.10906982421875, -0.0240020751953125, -0.061187744140625, 0.0137939453125, -0.03448486328125, -0.0202789306640625, -0.01326751708984375, -0.0084381103515625, 0.019012451171875, 0.015289306640625, -0.054779052734375, -0.031463623046875, -0.053253173828125, -0.036712646484375, -0.0237579345703125, 0.0022678375244140625, -0.01287078857421875, -0.017974853515625, 0.060028076171875, -0.01004791259765625, -0.02423095703125, -0.037109375, -0.0105743408203125, -0.00884246826171875, -0.03668212890625, -0.015289306640625, 0.003002166748046875, 0.032257080078125, 0.00383758544921875, -0.0016584396362304688, 0.035919189453125, -0.0032596588134765625, -0.0140533447265625, -0.01470184326171875, -0.0116729736328125, -0.0164642333984375, 0.001140594482421875, 0.01617431640625, -0.0183563232421875, -0.021240234375, -0.048492431640625, -0.01309967041015625, -0.0006256103515625, -0.0213165283203125, 0.0241851806640625, 0.01763916015625, -0.0243988037109375, 0.01506805419921875, -0.01001739501953125, -0.015228271484375, 0.00778961181640625, 0.0302734375, -0.040924072265625, 0.04638671875, -0.016326904296875, -0.0303192138671875, -0.046112060546875, 0.036285400390625, -0.020782470703125, 0.00632476806640625, 0.007350921630859375, -0.01523590087890625, 0.0026302337646484375, -0.027618408203125, -0.04473876953125, -0.00801849365234375, 0.0308837890625, -0.0009508132934570312, 0.046844482421875, -0.0237884521484375, -0.0247802734375, -0.0016641616821289062, 0.104248046875, -0.0096893310546875, -0.035614013671875, -0.0367431640625, 0.016845703125, -0.032012939453125, -0.01727294921875, 0.006519317626953125, 0.007904052734375, -0.023834228515625, 0.002826690673828125, -0.031341552734375, -0.00241851806640625, 0.0101165771484375, -0.02252197265625, 0.0211944580078125, -0.033477783203125, 0.0172271728515625, -0.028961181640625, 0.00791168212890625, 0.0118560791015625, -0.036346435546875, 0.0020751953125, -0.0106658935546875, -0.0443115234375, -0.051727294921875, -0.01202392578125, -0.031982421875, 0.03643798828125, 0.0222015380859375, -0.0029163360595703125, -0.00977325439453125, 0.03216552734375, 0.003444671630859375, 0.055694580078125, -0.004817962646484375, -0.017181396484375, 0.01367950439453125, 0.01148223876953125, 0.0128173828125, 0.0235595703125, -0.0006422996520996094, -0.036224365234375, -0.0546875, -0.022247314453125, -0.01395416259765625, 0.0021495819091796875, 0.0192718505859375, -0.0296173095703125, -0.076171875, -0.030120849609375, 0.0399169921875, 0.0068817138671875, 0.031951904296875, 0.006153106689453125, -0.02978515625, -0.0465087890625, 0.0477294921875, -0.06158447265625, 0.01024627685546875, -0.00771331787109375, 0.1279296875, 0.0157470703125, 0.0084228515625, 0.016143798828125, 0.0016021728515625, 0.0231170654296875, 0.0251312255859375, 0.02252197265625, -0.0322265625, -0.0251007080078125, 0.057342529296875, -0.0019435882568359375, 0.0235595703125, 0.00395965576171875, 0.038665771484375, 0.01383209228515625, -0.0309600830078125, 0.0263824462890625, 0.0207366943359375, -0.02685546875, -0.01885986328125, -0.025848388671875, 0.015960693359375, 0.004425048828125, -0.001708984375, -0.0114288330078125, 0.0198822021484375, -0.0066680908203125, -0.033203125, 0.0149993896484375, -0.036834716796875, 0.0204620361328125, 0.002841949462890625, 0.00376129150390625, 0.0166168212890625, -0.008636474609375, -0.01468658447265625, -0.0305328369140625, 0.0019311904907226562, -0.021392822265625, 0.01470947265625, -0.02044677734375, -0.03338623046875, -0.013580322265625, -0.00733184814453125, 0.01102447509765625, 0.0008530616760253906, -0.02520751953125, -0.0277099609375, 0.004566192626953125, 0.0034122467041015625, -0.0130157470703125, -0.042022705078125, 0.04486083984375, 0.05230712890625, -0.022430419921875, 0.005039215087890625, -0.037841796875, 0.01230621337890625, -0.042266845703125, 0.016357421875, -0.0219573974609375, -0.007518768310546875, 0.0038280487060546875, -0.01018524169921875, 0.045166015625, -0.031829833984375, -0.0187835693359375, 0.05322265625, 0.0401611328125, 0.03289794921875, 0.0253143310546875, -0.050079345703125, -0.022430419921875, 0.007007598876953125, -0.0251922607421875, -0.038238525390625, -0.006847381591796875, 0.0037670135498046875, 0.0193328857421875, -0.0005826950073242188, -0.015472412109375, 0.036773681640625, 0.00841522216796875, -0.034149169921875, 0.03814697265625, 0.004634857177734375, -0.03717041015625, -0.050628662109375, -0.01213836669921875, 0.034698486328125, -0.00412750244140625, -0.0094451904296875, 0.020599365234375, -0.0083160400390625, 0.02569580078125, 0.028564453125, -0.0135650634765625, -0.0015506744384765625, 0.006175994873046875, -0.050811767578125, -0.0281829833984375, -0.016876220703125, 0.02191162109375, -0.00792694091796875, -0.017852783203125, -0.0292510986328125, 0.051300048828125, -0.03857421875, 0.0021648406982421875, -0.01322174072265625, 0.01038360595703125, -0.056640625, 0.032958984375, 0.0028591156005859375, 0.006900787353515625, -0.00530242919921875, -0.01971435546875, -0.03155517578125, -0.0284881591796875, 0.024658203125, 0.0203094482421875, -0.00185394287109375, 0.0015878677368164062, -0.0260009765625, 0.0023021697998046875, -0.0194549560546875, 0.0122833251953125, -0.0343017578125, 0.0226898193359375, 0.0215606689453125, 0.0027179718017578125, -0.047760009765625, 0.03643798828125, 0.00688934326171875, -0.019683837890625, -0.025634765625, 0.00684356689453125, 0.059417724609375, -0.002582550048828125, 0.0008687973022460938, -0.004180908203125, -0.0154876708984375, -0.033538818359375, 0.0190582275390625, 0.0123748779296875, 0.04742431640625, -0.012847900390625, -0.01476287841796875, -0.006298065185546875, -0.0028667449951171875, -0.0175323486328125, 0.04669189453125, 0.026580810546875, -0.0017538070678710938, 0.0131072998046875, -0.03802490234375, 0.03460693359375, 0.0007510185241699219, 0.043731689453125, -0.01544189453125, -0.05841064453125, 0.0020122528076171875, 0.04205322265625, -0.0017261505126953125, -0.01215362548828125, 0.0377197265625, -0.01473236083984375, 0.04107666015625, 0.00582122802734375, 0.0174560546875, 0.023284912109375, 0.042938232421875, -0.044036865234375, -0.0721435546875, 0.02020263671875, 0.01495361328125, -0.04205322265625, -0.0022144317626953125, -0.033477783203125, 0.02386474609375, 0.0176849365234375, 0.05316162109375, -0.07098388671875, 0.039520263671875, 0.024627685546875, -0.0201568603515625, -0.00904083251953125, -0.0037364959716796875, 0.02435302734375, -0.0299835205078125, 0.064453125, -0.02056884765625, -0.0007829666137695312, 0.0197906494140625, -0.043731689453125, 0.006923675537109375, -0.027374267578125, 0.06805419921875, 0.01416015625, -0.0643310546875, 0.0177459716796875, 0.06072998046875, -0.0250701904296875, -0.016632080078125, 0.050689697265625, -0.0102996826171875, -0.007183074951171875, -0.026611328125, 0.020782470703125, 0.0071258544921875, -0.014373779296875, 0.0083465576171875, 0.0211334228515625, 0.005863189697265625, 0.03271484375, 0.0034160614013671875, -0.00830841064453125, 0.00951385498046875, -0.004253387451171875, 0.0189361572265625, -0.035552978515625, 0.00464630126953125, 0.046722412109375, -0.08526611328125, 0.011444091796875, -0.034576416015625, 0.012359619140625, 0.01270294189453125, 0.0228729248046875, 0.006855010986328125, 0.00024187564849853516, -0.02325439453125, 0.052825927734375, -0.0274200439453125, -0.0189971923828125, -0.0300140380859375, 0.055267333984375, -0.033416748046875, 0.00003784894943237305, 0.005809783935546875, 0.0003440380096435547, -0.00853729248046875, -0.0084381103515625, -0.036865234375, 0.112548828125, 0.003574371337890625, -0.0162506103515625, 0.01227569580078125, 0.0638427734375, -0.043731689453125, 0.033935546875, -0.0213165283203125, 0.0274505615234375, 0.006252288818359375, -0.0023136138916015625, -0.01324462890625, 0.011260986328125, -0.0175933837890625, -0.01605224609375, 0.01023101806640625, -0.00316619873046875, -0.0013904571533203125, -0.03045654296875, 0.0308990478515625, 0.010955810546875, -0.004650115966796875, 0.0102691650390625, 0.0140533447265625, -0.0299835205078125, 0.02728271484375, -0.00923919677734375, 0.033447265625, -0.031158447265625, 0.023406982421875, 0.026763916015625, -0.043975830078125, -0.064208984375, -0.040557861328125, 0.064697265625, 0.0135498046875, -0.04620361328125, -0.024993896484375, -0.01288604736328125, -0.032440185546875, 0.032196044921875, -0.032745361328125, -0.00043702125549316406, 0.0019855499267578125, -0.027557373046875, 0.023040771484375, -0.0124969482421875, 0.005222320556640625, -0.005275726318359375, -0.0032024383544921875, 0.0191192626953125, -0.0489501953125, -0.01288604736328125, 0.00399017333984375, -0.0190582275390625, 0.01126861572265625, 0.007476806640625, 0.0214080810546875, 0.0017023086547851562, 0.0176239013671875, 0.0364990234375, 0.018280029296875, -0.0161895751953125, -0.0382080078125, 0.0078887939453125, -0.021759033203125, -0.0031032562255859375, 0.0040283203125, -0.00931549072265625, -0.033782958984375, -0.01030731201171875, 0.00046753883361816406, -0.0012912750244140625, 0.00789642333984375, 0.0179595947265625, 0.007137298583984375, 0.020477294921875, -0.02996826171875, -0.0208740234375, 0.01354217529296875, -0.03851318359375, -0.003154754638671875, 0.0489501953125, 0.01849365234375, 0.0157470703125, -0.060272216796875, -0.0222015380859375, -0.0261688232421875, 0.0321044921875, -0.0088043212890625, 0.021453857421875, -0.0268402099609375, -0.027313232421875, 0.0002830028533935547, 0.05084228515625, -0.01419830322265625, 0.0287628173828125, 0.03045654296875, 0.0445556640625, 0.010894775390625, -0.01042938232421875, 0.05889892578125, -0.017303466796875, -0.0093231201171875, -0.0287017822265625, -0.0406494140625, -0.0350341796875, -0.025146484375, 0.02056884765625, 0.010223388671875, -0.03265380859375, 0.01177978515625, 0.004467010498046875, 0.0224609375, -0.031982421875, -0.0008473396301269531, 0.02813720703125, 0.057952880859375, 0.053497314453125, -0.036651611328125, -0.0003705024719238281, -0.00823974609375, 0.002567291259765625, 0.002838134765625, 0.0244140625, -0.0012865066528320312, 0.0198516845703125, -0.003345489501953125, -0.044830322265625, -0.02056884765625, 0.02392578125, 0.03643798828125, 0.0098114013671875, -0.03387451171875, 0.005035400390625, -0.06951904296875, -0.033477783203125, -0.04571533203125, 0.0284271240234375, 0.0235137939453125, 0.0821533203125, -0.01078033447265625, 0.0305938720703125, 0.005313873291015625, -0.02886962890625, 0.0294189453125, 0.0144195556640625, -0.0176239013671875, 0.004364013671875, -0.0031280517578125, -0.0092620849609375, -0.0196990966796875, -0.01544952392578125, 0.04327392578125, -0.035125732421875, -0.01555633544921875, 0.0012235641479492188, 0.034271240234375, 0.0017347335815429688, 0.006778717041015625, -0.0186920166015625, -0.032623291015625, -0.0248870849609375, 0.01104736328125, 0.02227783203125, 0.037353515625, -0.0196380615234375, 0.00160980224609375, 0.0029888153076171875, 0.0191650390625, 0.0195465087890625, 0.037353515625, 0.036773681640625, 0.031097412109375, -0.0809326171875, -0.042633056640625, -0.0252685546875, -0.0215911865234375, -0.0306243896484375, 0.0013551712036132812, 0.029449462890625, -0.032562255859375, -0.01242828369140625, 0.043212890625, 0.02838134765625, -0.0095367431640625, -0.07208251953125, -0.01245880126953125, 0.0963134765625, -0.0203857421875, 0.0012664794921875, 0.00650787353515625, -0.023834228515625, -0.036956787109375, 0.01611328125, 0.0034961700439453125, 0.018218994140625, -0.006702423095703125, -0.034942626953125, -0.0099029541015625, 0.0249481201171875, -0.011016845703125, -0.01026153564453125, -0.01214599609375, -0.0215606689453125, 0.036102294921875, -0.015716552734375, 0.0016889572143554688, -0.0280609130859375, -0.0240478515625, -0.029205322265625, -0.047393798828125, -0.061309814453125, 0.048492431640625, -0.04888916015625, -0.016357421875, 0.0299072265625, 0.007282257080078125, -0.0601806640625, -0.07073974609375, -0.0318603515625, -0.0201263427734375, -0.016387939453125, -0.0158538818359375, 0.05877685546875, -0.0243682861328125, -0.0207366943359375, -0.06317138671875, -0.0232086181640625, -0.05096435546875, 0.034393310546875, 0.0299072265625, -0.030670166015625, -0.0011796951293945312, -0.025177001953125, -0.033172607421875, 0.0628662109375, 0.0007886886596679688, -0.011871337890625, -0.1077880859375, 0.00568389892578125, 0.001163482666015625, 0.04547119140625, -0.033782958984375, -0.00926971435546875, -0.036865234375, 0.047515869140625, -0.00673675537109375, -0.0206146240234375, 0.027679443359375, -0.017547607421875, -0.01371002197265625, 0.02606201171875, 0.0440673828125, -0.02630615234375, 0.01531219482421875, 0.01381683349609375, 0.043731689453125, 0.0732421875, 0.029327392578125, 0.03533935546875, 0.002471923828125, -0.09857177734375, 0.00592041015625, 0.0216217041015625, -0.0303497314453125, 0.00020062923431396484, 0.09320068359375, 0.004299163818359375, 0.0264434814453125, -0.0102386474609375, -0.017669677734375, -0.015106201171875, -0.003719329833984375, -0.025360107421875, 0.0175323486328125, -0.07513427734375, -0.0251617431640625, 0.0130462646484375, 0.0146026611328125, 0.0166778564453125, 0.020233154296875, 0.0033245086669921875, -0.033935546875, 0.0025653839111328125, -0.01447296142578125, -0.0771484375, 0.00461578369140625, -0.0014257431030273438, -0.0179290771484375, -0.0499267578125, 0.003650665283203125, 0.007701873779296875, -0.04754638671875, -0.02618408203125, 0.004367828369140625, 0.0273284912109375, -0.04925537109375, 0.03314208984375, 0.00113677978515625, 0.020538330078125, -0.05126953125, -0.010711669921875, 0.0076904296875, -0.0013208389282226562, -0.0137939453125, -0.017974853515625, 0.007038116455078125, -0.005405426025390625, -0.028167724609375, 0.07177734375, -0.02130126953125, 0.04254150390625, -0.007404327392578125, 0.031646728515625, 0.0147857666015625, -0.007476806640625, 0.08026123046875, -0.0435791015625, 0.012603759765625, 0.018310546875, 0.0221405029296875, -0.0123291015625, 0.0166168212890625, -0.0305328369140625, 0.0019378662109375, 0.00878143310546875 ]
5732094187904f0b62ef72308c20dd6828122bc4
Wordpress Stackexchange Q: Assign single template to multiple custom post types? I have a number of custom post types that I would like to display with the same template which I have created initially as single-photography.php in my theme. Is there any way to assign this template to multiple custom post types? I understand I can probably do this within the single.php file with a conditional include based on get_post_type(), but I'm wondering if there is a better way? A: You can filter template_include and pass your custom template as return value depending on your own conditions. Sample code, not tested: add_filter( 'template_include', function( $template ) { // your custom post types $my_types = array( 'photography', 'painting' ); $post_type = get_post_type(); if ( ! in_array( $post_type, $my_types ) ) return $template; return get_stylesheet_directory() . '/single-photography.php'; });
Q: Assign single template to multiple custom post types? I have a number of custom post types that I would like to display with the same template which I have created initially as single-photography.php in my theme. Is there any way to assign this template to multiple custom post types? I understand I can probably do this within the single.php file with a conditional include based on get_post_type(), but I'm wondering if there is a better way? A: You can filter template_include and pass your custom template as return value depending on your own conditions. Sample code, not tested: add_filter( 'template_include', function( $template ) { // your custom post types $my_types = array( 'photography', 'painting' ); $post_type = get_post_type(); if ( ! in_array( $post_type, $my_types ) ) return $template; return get_stylesheet_directory() . '/single-photography.php'; });
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:440444", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127342" }
[ 0.037200927734375, -0.01605224609375, 0.0107574462890625, -0.041961669921875, 0.003322601318359375, -0.0030384063720703125, 0.04534912109375, -0.014404296875, -0.056060791015625, 0.0034465789794921875, 0.0130462646484375, 0.007358551025390625, -0.05682373046875, -0.0294036865234375, 0.024322509765625, -0.0509033203125, 0.0204010009765625, -0.025970458984375, 0.01387786865234375, -0.023529052734375, 0.038787841796875, -0.0229034423828125, 0.004650115966796875, 0.035797119140625, 0.01096343994140625, -0.00247955322265625, 0.021636962890625, -0.00882720947265625, -0.0162506103515625, -0.0235748291015625, 0.0020999908447265625, 0.037445068359375, 0.0133514404296875, 0.002567291259765625, -0.006641387939453125, 0.024993896484375, 0.0065460205078125, -0.002655029296875, 0.0012426376342773438, 0.032073974609375, -0.01568603515625, 0.021575927734375, 0.0237274169921875, 0.00630950927734375, 0.0015583038330078125, -0.042083740234375, 0.00928497314453125, -0.05206298828125, 0.020751953125, -0.011444091796875, 0.0129852294921875, -0.048828125, 0.033935546875, -0.0382080078125, -0.036468505859375, -0.0203399658203125, -0.005340576171875, -0.00916290283203125, 0.020050048828125, -0.0009064674377441406, -0.034454345703125, 0.004467010498046875, 0.020355224609375, -0.0219879150390625, -0.0286102294921875, 0.0070648193359375, -0.0022640228271484375, 0.01160430908203125, -0.042694091796875, -0.03802490234375, 0.031585693359375, -0.020965576171875, 0.02227783203125, -0.03680419921875, 0.0174560546875, 0.01465606689453125, 0.0011205673217773438, 0.01221466064453125, 0.003009796142578125, -0.020660400390625, 0.0155792236328125, -0.01331329345703125, -0.011138916015625, -0.030059814453125, 0.0102691650390625, -0.0024051666259765625, -0.00772857666015625, -0.0023479461669921875, -0.01502227783203125, -0.015411376953125, -0.0189971923828125, -0.035308837890625, -0.0174713134765625, 0.024505615234375, -0.012359619140625, -0.02032470703125, 0.016937255859375, 0.0174713134765625, -0.0155029296875, 0.005817413330078125, 0.0199432373046875, -0.05731201171875, 0.056549072265625, -0.033416748046875, 0.01531219482421875, 0.00016367435455322266, -0.00432586669921875, 0.000005602836608886719, 0.04522705078125, 0.03228759765625, -0.0075836181640625, 0.051544189453125, -0.01180267333984375, 0.005401611328125, -0.04278564453125, -0.0119171142578125, -0.0318603515625, -0.0031642913818359375, -0.005344390869140625, 0.0034351348876953125, 0.01512908935546875, 0.036224365234375, 0.04229736328125, -0.02264404296875, -0.01104736328125, 0.005645751953125, -0.00882720947265625, -0.08062744140625, 0.039886474609375, -0.020538330078125, -0.031829833984375, 0.009765625, 0.040679931640625, 0.037322998046875, 0.0277099609375, -0.0001226663589477539, 0.01093292236328125, 0.00522613525390625, -0.002773284912109375, 0.023468017578125, 0.033294677734375, -0.054931640625, -0.033538818359375, 0.036285400390625, 0.016204833984375, 0.0241241455078125, 0.0269775390625, 0.0153350830078125, -0.01154327392578125, -0.0302276611328125, 0.01290130615234375, 0.0168304443359375, -0.0022640228271484375, 0.004154205322265625, 0.041046142578125, -0.0247344970703125, 0.0201416015625, -0.0252685546875, 0.0340576171875, -0.0193634033203125, 0.0247344970703125, 0.003170013427734375, 0.002063751220703125, 0.002552032470703125, -0.036285400390625, 0.02215576171875, -0.0264739990234375, -0.005970001220703125, 0.018341064453125, -0.033203125, -0.019561767578125, -0.007572174072265625, 0.00025725364685058594, 0.00003510713577270508, -0.00745391845703125, 0.026397705078125, -0.0258941650390625, 0.007694244384765625, 0.006221771240234375, 0.0268707275390625, -0.016204833984375, -0.04229736328125, 0.02178955078125, 0.00164794921875, -0.082763671875, 0.045745849609375, -0.004192352294921875, 0.032501220703125, 0.020172119140625, 0.0005564689636230469, 0.054290771484375, 0.0269927978515625, -0.030670166015625, 0.0098876953125, -0.00638580322265625, -0.010711669921875, -0.03546142578125, -0.00740814208984375, -0.0172882080078125, 0.0179443359375, -0.019622802734375, -0.01087188720703125, -0.00472259521484375, 0.0238037109375, 0.0110015869140625, -0.0096282958984375, -0.004547119140625, 0.007534027099609375, -0.038665771484375, -0.0020198822021484375, 0.028076171875, -0.0295562744140625, -0.00926971435546875, -0.01019287109375, 0.0006127357482910156, 0.0152130126953125, 0.0245513916015625, 0.0091094970703125, -0.01541900634765625, -0.004901885986328125, -0.00917816162109375, -0.032470703125, -0.02392578125, 0.07000732421875, 0.07000732421875, 0.00951385498046875, -0.02899169921875, -0.017242431640625, -0.01169586181640625, 0.047637939453125, -0.13671875, 0.02923583984375, -0.006061553955078125, -0.023773193359375, -0.0455322265625, 0.01531219482421875, 0.0206298828125, 0.0081329345703125, 0.00264739990234375, 0.036285400390625, 0.018524169921875, 0.03253173828125, 0.00963592529296875, 0.048797607421875, 0.0709228515625, 0.02508544921875, 0.0164031982421875, -0.0011920928955078125, 0.00608062744140625, 0.0284423828125, -0.0150146484375, 0.007568359375, 0.01148223876953125, -0.07305908203125, 0.022186279296875, 0.03619384765625, -0.03082275390625, -0.017242431640625, 0.03515625, 0.0008249282836914062, -0.000026702880859375, 0.023223876953125, 0.01433563232421875, -0.00511932373046875, 0.04278564453125, -0.0018558502197265625, 0.01959228515625, -0.00551605224609375, -0.042205810546875, 0.018707275390625, 0.0242462158203125, -0.0161895751953125, 0.0150146484375, 0.01169586181640625, -0.0091552734375, 0.0457763671875, -0.0275421142578125, -0.0055999755859375, 0.027374267578125, 0.012420654296875, -0.006626129150390625, 0.0335693359375, -0.05316162109375, -0.01448822021484375, -0.031890869140625, -0.0682373046875, -0.01198577880859375, 0.0268402099609375, -0.004329681396484375, -0.038543701171875, 0.00736236572265625, 0.0202484130859375, -0.02227783203125, 0.0294647216796875, 0.0161590576171875, -0.033905029296875, 0.05517578125, -0.054107666015625, 0.06439208984375, -0.05224609375, 0.053375244140625, 0.0567626953125, -0.045989990234375, 0.03057861328125, -0.0142669677734375, 0.0400390625, 0.0041656494140625, 0.0138397216796875, -0.007160186767578125, -0.07550048828125, 0.0379638671875, -0.0100860595703125, 0.0190277099609375, 0.064697265625, -0.01068878173828125, -0.03631591796875, 0.0174713134765625, 0.042266845703125, 0.0161590576171875, 0.005512237548828125, 0.09869384765625, -0.0035419464111328125, 0.005115509033203125, -0.03857421875, -0.00919342041015625, -0.0435791015625, -0.0308074951171875, -0.0159759521484375, 0.01396942138671875, 0.01995849609375, -0.05877685546875, -0.02752685546875, -0.059295654296875, -0.023773193359375, -0.019012451171875, 0.004901885986328125, 0.0100555419921875, 0.0728759765625, 0.019866943359375, -0.054931640625, 0.0135650634765625, 0.049468994140625, -0.0275726318359375, 0.0280914306640625, 0.04620361328125, -0.05224609375, 0.007434844970703125, 0.00724029541015625, -0.020050048828125, 0.026611328125, -0.022918701171875, -0.033905029296875, -0.0238800048828125, -0.0017910003662109375, 0.002288818359375, -0.0002968311309814453, 0.026458740234375, 0.0280609130859375, 0.03253173828125, -0.023651123046875, -0.057891845703125, -0.01181793212890625, -0.05615234375, 0.0107269287109375, 0.041259765625, 0.0015573501586914062, -0.043701171875, 0.04815673828125, 0.0009207725524902344, 0.02130126953125, -0.01111602783203125, -0.00878143310546875, 0.054290771484375, 0.01363372802734375, 0.0128631591796875, -0.01302337646484375, -0.04327392578125, -0.042999267578125, 0.05059814453125, -0.0187225341796875, 0.01560211181640625, -0.01305389404296875, 0.02569580078125, -0.03802490234375, -0.08551025390625, 0.070556640625, -0.035430908203125, -0.0021915435791015625, -0.06365966796875, -0.042877197265625, 0.0036716461181640625, 0.12445068359375, -0.0721435546875, -0.0037479400634765625, -0.02288818359375, 0.0024261474609375, 0.015960693359375, -0.0400390625, -0.0257415771484375, -0.0223846435546875, -0.033843994140625, 0.006488800048828125, -0.00470733642578125, -0.0304412841796875, -0.005428314208984375, -0.0372314453125, -0.0291900634765625, -0.026641845703125, 0.02978515625, -0.034576416015625, 0.020233154296875, 0.0250701904296875, 0.0052032470703125, -0.006908416748046875, -0.017120361328125, -0.042877197265625, -0.04718017578125, -0.017730712890625, 0.016845703125, 0.04144287109375, -0.0170135498046875, 0.0002853870391845703, -0.0157012939453125, 0.03973388671875, 0.0078582763671875, 0.0168304443359375, -0.017486572265625, 0.0028400421142578125, -0.0005807876586914062, -0.01143646240234375, -0.01534271240234375, -0.004138946533203125, -0.044891357421875, -0.037017822265625, -0.0087738037109375, 0.0190887451171875, -0.01480865478515625, -0.01300811767578125, 0.003849029541015625, -0.00594329833984375, -0.025115966796875, -0.00977325439453125, 0.0188446044921875, 0.037811279296875, 0.00931549072265625, -0.006439208984375, -0.024688720703125, -0.018341064453125, 0.030059814453125, -0.006008148193359375, -0.0253448486328125, 0.00930023193359375, 0.0811767578125, 0.0287322998046875, -0.02105712890625, -0.055572509765625, 0.01143646240234375, 0.0307159423828125, 0.0232086181640625, 0.00605010986328125, 0.0174713134765625, -0.0208740234375, 0.0134124755859375, 0.018524169921875, -0.0092315673828125, -0.031768798828125, 0.056060791015625, -0.0043182373046875, -0.01482391357421875, 0.0215606689453125, -0.031494140625, 0.03271484375, 0.034637451171875, -0.02154541015625, -0.025299072265625, -0.0095062255859375, 0.061859130859375, -0.0081939697265625, -0.01396942138671875, -0.07244873046875, -0.027587890625, 0.01082611083984375, 0.0138702392578125, 0.022186279296875, 0.030731201171875, -0.01226806640625, 0.030487060546875, -0.01415252685546875, 0.0019359588623046875, 0.037994384765625, 0.0380859375, 0.028350830078125, 0.0345458984375, 0.042205810546875, 0.00982666015625, -0.019073486328125, 0.0044403076171875, -0.0016908645629882812, 0.006221771240234375, -0.037933349609375, -0.0196990966796875, 0.0205078125, 0.0160369873046875, -0.0097503662109375, -0.007129669189453125, 0.051116943359375, 0.018218994140625, -0.00766754150390625, 0.01500701904296875, -0.050933837890625, 0.00539398193359375, -0.04974365234375, -0.0267486572265625, 0.0174713134765625, -0.0262603759765625, 0.014068603515625, -0.01372528076171875, 0.017303466796875, -0.02392578125, -0.0085601806640625, 0.03692626953125, 0.035736083984375, 0.0249786376953125, 0.017547607421875, -0.004070281982421875, -0.0252685546875, 0.011383056640625, -0.021942138671875, -0.04217529296875, -0.00502777099609375, 0.00429534912109375, 0.054473876953125, -0.041229248046875, -0.0438232421875, 0.041473388671875, -0.0294036865234375, -0.012542724609375, -0.00794219970703125, -0.006114959716796875, -0.0284271240234375, -0.0015745162963867188, 0.0257110595703125, 0.005672454833984375, 0.004383087158203125, -0.032745361328125, -0.00589752197265625, -0.034423828125, -0.00047707557678222656, -0.004238128662109375, -0.053253173828125, 0.02728271484375, 0.0253448486328125, -0.035919189453125, -0.01934814453125, 0.007686614990234375, -0.05853271484375, -0.032806396484375, -0.0035858154296875, -0.01445770263671875, 0.008758544921875, -0.021026611328125, 0.02545166015625, -0.01163482666015625, -0.0284881591796875, 0.00475311279296875, 0.0064697265625, 0.0645751953125, 0.031524658203125, 0.00020492076873779297, -0.0006661415100097656, -0.055694580078125, -0.0214385986328125, -0.030517578125, -0.06597900390625, -0.024658203125, -0.0094451904296875, 0.00518035888671875, 0.0304718017578125, -0.0000832676887512207, -0.01508331298828125, -0.00431060791015625, -0.001621246337890625, -0.007564544677734375, 0.04248046875, -0.00024509429931640625, 0.0576171875, 0.01078033447265625, 0.05804443359375, 0.01291656494140625, -0.0011148452758789062, -0.045928955078125, -0.0108184814453125, -0.02691650390625, -0.06597900390625, 0.00994110107421875, 0.0203857421875, -0.0237884521484375, 0.0535888671875, 0.061492919921875, 0.0256500244140625, -0.005420684814453125, -0.036773681640625, 0.0010595321655273438, -0.0267486572265625, 0.037322998046875, -0.0264892578125, -0.01568603515625, 0.0013647079467773438, 0.0168914794921875, 0.059844970703125, 0.0109710693359375, -0.0543212890625, 0.0279541015625, 0.012847900390625, 0.039337158203125, 0.0038738250732421875, -0.0234375, 0.034027099609375, 0.0184783935546875, -0.008575439453125, 0.037506103515625, -0.006397247314453125, 0.0141448974609375, 0.030853271484375, -0.00958251953125, 0.0155487060546875, -0.005096435546875, 0.0249786376953125, -0.018798828125, 0.004894256591796875, 0.00946807861328125, -0.01303863525390625, 0.005062103271484375, 0.05059814453125, 0.05218505859375, -0.07318115234375, -0.006496429443359375, -0.00811767578125, -0.0005702972412109375, 0.02752685546875, -0.013458251953125, 0.00432586669921875, -0.0180206298828125, 0.0114288330078125, 0.037689208984375, -0.02349853515625, -0.010467529296875, -0.00003844499588012695, -0.00003045797348022461, -0.01413726806640625, 0.03564453125, -0.0003733634948730469, -0.021148681640625, -0.024658203125, 0.01428985595703125, -0.01424407958984375, -0.01384735107421875, 0.03460693359375, -0.0187225341796875, -0.01018524169921875, -0.0229644775390625, 0.020782470703125, -0.0137481689453125, -0.0051727294921875, 0.019500732421875, 0.0259857177734375, 0.0268707275390625, 0.041290283203125, -0.00634765625, 0.0181121826171875, -0.00023305416107177734, 0.00875091552734375, -0.032257080078125, -0.04364013671875, 0.0097503662109375, 0.0301513671875, -0.06292724609375, 0.0287933349609375, -0.0233917236328125, -0.00841522216796875, -0.0166168212890625, 0.009307861328125, 0.08038330078125, 0.0011730194091796875, -0.029052734375, 0.031463623046875, 0.03594970703125, -0.021697998046875, 0.03521728515625, 0.025146484375, -0.062225341796875, -0.08807373046875, 0.04974365234375, -0.09808349609375, -0.03173828125, 0.039764404296875, -0.0810546875, 0.09271240234375, -0.01294708251953125, 0.060150146484375, 0.0328369140625, 0.01727294921875, -0.0271148681640625, 0.0028972625732421875, -0.0157928466796875, 0.012420654296875, -0.010955810546875, 0.040496826171875, -0.0269775390625, -0.0008535385131835938, 0.0136566162109375, 0.03192138671875, 0.0394287109375, 0.00540924072265625, -0.009490966796875, 0.0114288330078125, 0.0828857421875, 0.04473876953125, 0.005542755126953125, 0.019317626953125, -0.01739501953125, -0.01439666748046875, 0.01421356201171875, 0.033172607421875, 0.045623779296875, -0.00437164306640625, -0.06658935546875, 0.00982666015625, 0.01422119140625, 0.011566162109375, 0.006267547607421875, -0.024383544921875, -0.0552978515625, 0.00015044212341308594, 0.0443115234375, -0.0089569091796875, 0.01082611083984375, 0.0278778076171875, 0.0203094482421875, -0.0196685791015625, 0.05267333984375, -0.03271484375, 0.049102783203125, -0.016387939453125, 0.0005755424499511719, 0.004222869873046875, 0.0012226104736328125, -0.0113677978515625, -0.00592803955078125, -0.0137481689453125, 0.018280029296875, -0.007659912109375, 0.046630859375, 0.02294921875, 0.0242919921875, -0.03497314453125, 0.0225067138671875, 0.021087646484375, 0.042266845703125, -0.03485107421875, -0.038848876953125, 0.0197906494140625, 0.0089111328125, -0.0165863037109375, -0.0164947509765625, -0.008880615234375, -0.034149169921875, 0.0160064697265625, -0.04595947265625, -0.0061798095703125, 0.029266357421875, 0.015045166015625, -0.0159149169921875, -0.017852783203125, -0.0199127197265625, -0.003993988037109375, -0.0738525390625, 0.0288848876953125, 0.0207366943359375, 0.082763671875, 0.0212860107421875, 0.08770751953125, 0.004596710205078125, -0.049163818359375, 0.0027370452880859375, 0.006557464599609375, -0.01678466796875, -0.005290985107421875, -0.0085906982421875, -0.0421142578125, -0.0009632110595703125, 0.033050537109375, 0.038360595703125, 0.00833892822265625, 0.045867919921875, 0.00800323486328125, -0.0296783447265625, 0.0009183883666992188, 0.024627685546875, -0.0235443115234375, 0.02081298828125, -0.0111236572265625, -0.0277862548828125, -0.0055084228515625, -0.04248046875, -0.007808685302734375, -0.0266571044921875, 0.027679443359375, -0.020050048828125, 0.058441162109375, -0.007526397705078125, -0.038330078125, 0.0220947265625, -0.002300262451171875, 0.09686279296875, 0.006694793701171875, -0.09124755859375, -0.0031032562255859375, -0.02777099609375, -0.09954833984375, 0.06048583984375, 0.0638427734375, -0.044097900390625, 0.01082611083984375, 0.013153076171875, 0.01380157470703125, 0.006862640380859375, -0.02288818359375, 0.02423095703125, -0.02642822265625, 0.01128387451171875, 0.004741668701171875, -0.07037353515625, -0.044647216796875, -0.031463623046875, 0.0382080078125, 0.0018377304077148438, 0.07916259765625, -0.0173492431640625, 0.0203094482421875, -0.006092071533203125, 0.03558349609375, -0.0229339599609375, -0.0119171142578125, 0.0440673828125, 0.00945281982421875, 0.0198974609375, -0.0174560546875, -0.0097808837890625, -0.0038700103759765625, 0.054168701171875, -0.03546142578125, -0.012939453125, 0.0194244384765625, 0.0206756591796875, -0.019744873046875, 0.04364013671875, -0.0243377685546875, -0.0177459716796875, -0.04693603515625, -0.0273590087890625, 0.041778564453125, 0.0165557861328125, -0.008880615234375, 0.0462646484375, 0.01309967041015625, -0.043243408203125, 0.0252227783203125, -0.06689453125, 0.025054931640625, 0.03570556640625, 0.033905029296875, -0.08551025390625, 0.0263671875, -0.005405426025390625, -0.0258941650390625, 0.0195159912109375, 0.0650634765625, 0.01297760009765625, -0.03973388671875, 0.0218353271484375, -0.0244140625, 0.00971221923828125, -0.037322998046875, -0.0191650390625, 0.037567138671875, -0.0029430389404296875, -0.002994537353515625, -0.032135009765625, -0.017913818359375, -0.030242919921875, 0.01222991943359375, 0.0215606689453125, 0.0103759765625, -0.01277923583984375, -0.03436279296875, -0.01558685302734375, 0.04266357421875, -0.0121002197265625, -0.002239227294921875, -0.01445770263671875, -0.057098388671875, -0.0007739067077636719, 0.0128173828125, -0.0838623046875, 0.047515869140625, 0.059844970703125, 0.015472412109375, -0.00911712646484375, -0.015625, -0.02655029296875, -0.00909423828125, 0.0265045166015625, 0.03240966796875, -0.0200958251953125, -0.008819580078125, 0.041015625, 0.0051116943359375, 0.093994140625, -0.0133514404296875, -0.00472259521484375, 0.028564453125, -0.0242156982421875, -0.02667236328125, -0.061492919921875, 0.025390625, -0.0758056640625, -0.01116180419921875, 0.0089263916015625, -0.003925323486328125, 0.0179595947265625, -0.0472412109375, -0.08001708984375, 0.058746337890625, -0.0123291015625, -0.03704833984375, -0.050384521484375, 0.042205810546875, -0.0160064697265625, 0.0318603515625, -0.00022423267364501953, -0.022247314453125, 0.026397705078125, 0.035675048828125, 0.0080413818359375, -0.0029697418212890625, 0.04388427734375, 0.0037899017333984375, -0.0345458984375, -0.0054779052734375, -0.005840301513671875, -0.0176849365234375, -0.0124664306640625, -0.0239715576171875, 0.020416259765625, 0.002384185791015625, -0.057464599609375, -0.04107666015625, 0.02313232421875, 0.046112060546875, -0.0170440673828125, -0.038482666015625, -0.044921875, -0.01457977294921875, 0.07977294921875, 0.0672607421875, 0.0267181396484375, -0.0352783203125, 0.0277557373046875, -0.0095977783203125, -0.090576171875, 0.013458251953125, 0.034271240234375, -0.0438232421875, 0.0010824203491210938, 0.0294189453125, -0.01506805419921875, -0.020599365234375, -0.00018680095672607422, -0.04644775390625, 0.00691986083984375, -0.00830841064453125, -0.0092315673828125, -0.044036865234375, 0.06207275390625, -0.0066375732421875, 0.0003108978271484375, 0.016815185546875, -0.0325927734375, -0.01529693603515625, 0.0079803466796875, -0.00920867919921875, -0.00681304931640625, 0.016815185546875, -0.0018711090087890625, 0.004852294921875, 0.0244903564453125, 0.0142364501953125, 0.00876617431640625, 0.018402099609375, -0.01552581787109375, 0.00823211669921875, 0.0016279220581054688, 0.0031032562255859375, -0.0118255615234375, 0.026763916015625, 0.01253509521484375, 0.0123138427734375, -0.003833770751953125, 0.0643310546875, -0.005062103271484375, 0.0223388671875, -0.0296173095703125, 0.0194244384765625, -0.0174407958984375, 0.00824737548828125, 0.00833892822265625, 0.006999969482421875, -0.020050048828125, -0.0263824462890625, 0.028778076171875, 0.039642333984375, -0.0012035369873046875, 0.0203094482421875 ]
feb4b20ce4362000f991acf0bf208515ca8e95cc
Wordpress Stackexchange Q: Get current active wp color scheme Is there a way to return the current active color scheme? This is how to register a new admin color scheme <?php register_admin_color_schemes(); ?> is there something like get_admin_color_scheme(); that will return which is active? A: If you want to access the colors in PHP, you have to do a little trick. In the file from toschos answer they use the global variable $_wp_admin_css_colors. This gets destroyed at any point of the runtime. I actually found the right hook to copy it: <?php $admin_colors; add_action('admin_head', function(){global $_wp_admin_css_colors; $admin_colors = $_wp_admin_css_colors;}); ?> So now I can access the colors at any point in the script I want like this: $admin_colors[get_user_option('admin_color')]['colors']; // array(0 => #222, 1 => #333, 2 => #0074a2, 3 => #2ea2cc) Here is an excerpt of $admin_colors to demonstrate the structure: $admin_colors = Array ( [fresh] => stdClass Object ( [name] => Default [url] => https://example.com/wordpress/wp-admin/css/colors.min.css [colors] => Array ( [0] => #222 [1] => #333 [2] => #0074a2 [3] => #2ea2cc ) [icon_colors] => Array ( [base] => #999 [focus] => #2ea2cc [current] => #fff ) ) )
Q: Get current active wp color scheme Is there a way to return the current active color scheme? This is how to register a new admin color scheme <?php register_admin_color_schemes(); ?> is there something like get_admin_color_scheme(); that will return which is active? A: If you want to access the colors in PHP, you have to do a little trick. In the file from toschos answer they use the global variable $_wp_admin_css_colors. This gets destroyed at any point of the runtime. I actually found the right hook to copy it: <?php $admin_colors; add_action('admin_head', function(){global $_wp_admin_css_colors; $admin_colors = $_wp_admin_css_colors;}); ?> So now I can access the colors at any point in the script I want like this: $admin_colors[get_user_option('admin_color')]['colors']; // array(0 => #222, 1 => #333, 2 => #0074a2, 3 => #2ea2cc) Here is an excerpt of $admin_colors to demonstrate the structure: $admin_colors = Array ( [fresh] => stdClass Object ( [name] => Default [url] => https://example.com/wordpress/wp-admin/css/colors.min.css [colors] => Array ( [0] => #222 [1] => #333 [2] => #0074a2 [3] => #2ea2cc ) [icon_colors] => Array ( [base] => #999 [focus] => #2ea2cc [current] => #fff ) ) ) A: The current admin color scheme is a user setting, you can get its value with: $current_color = get_user_option( 'admin_color' ); See the function admin_color_scheme_picker() in wp-admin/includes/misc.php for an usage example. A: Every user can set his own admin color scheme, so you can also get the color scheme according to an user ID: get_user_option( 'admin_color', get_current_user_id() ); Further reading: WP 3.8 Default Admin Colour For All Users A: I think this is the simple way to get the current admin color scheme or set it also, see the code: Set the default admin color scheme: <?php /** * Set the default admin color scheme for WordPress user. */ add_filter('get_user_option_admin_color', 'set_default_admin_color'); function set_default_admin_color($result) { // set new default admin color scheme $result = 'midnight'; // return the new default color return $result; } Get the current admin color scheme: /** * Get the current admin color scheme from WordPress user. */ add_filter('get_user_option_admin_color', 'get_current_admin_color'); function get_current_admin_color($result) { global $_wp_admin_css_colors; // get current admin color scheme name $current_color_scheme = $result; // get all available colors from scheme name $colors = $_wp_admin_css_colors[$current_color_scheme]; // now you can use this colors or store it // var_dump($colors); // important: we should return the default color scheme return $result; } Get all available admin colors schemes: /** * Get all available admin colors schemes from WordPress user. */ add_filter('get_user_option_admin_color', 'get_all_admin_colors'); function get_all_admin_colors($result) { global $_wp_admin_css_colors; // get all available color schemes $colors = $_wp_admin_css_colors; // now you can use this color schemes or store it // var_dump($colors); // important: we should return the default color scheme return $result; } @see gist here also: https://gist.github.com/mohamdio/bb9a1a18446aca257935846d217060e9
wordpress
{ "language": "en", "length": 454, "provenance": "stackexchange_00019.jsonl.gz:440461", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127401" }
[ 0.017669677734375, -0.00882720947265625, 0.0012311935424804688, -0.03155517578125, -0.007747650146484375, -0.0157623291015625, 0.00394439697265625, -0.002773284912109375, 0.0226593017578125, 0.002605438232421875, -0.0233612060546875, -0.0191802978515625, -0.034637451171875, -0.0225372314453125, -0.01386260986328125, -0.02471923828125, 0.054962158203125, -0.058319091796875, 0.004566192626953125, 0.0157623291015625, -0.0160675048828125, 0.052825927734375, 0.035888671875, 0.03314208984375, 0.03216552734375, -0.07952880859375, 0.051239013671875, 0.003692626953125, 0.0189361572265625, -0.028411865234375, 0.0206298828125, 0.033355712890625, -0.01274871826171875, 0.01200103759765625, 0.039459228515625, -0.03521728515625, 0.0292816162109375, 0.0033435821533203125, 0.028289794921875, 0.0095672607421875, 0.02410888671875, -0.008453369140625, 0.0110931396484375, 0.037689208984375, -0.0273895263671875, -0.0300140380859375, 0.0174102783203125, -0.017669677734375, -0.007358551025390625, 0.0035343170166015625, 0.01155853271484375, 0.0014524459838867188, 0.03509521484375, -0.0328369140625, 0.000980377197265625, -0.0016498565673828125, 0.00897216796875, -0.0362548828125, 0.04803466796875, -0.03033447265625, -0.041748046875, -0.059661865234375, 0.045013427734375, -0.02392578125, -0.01165008544921875, 0.005168914794921875, 0.028717041015625, 0.0108795166015625, -0.0701904296875, -0.0202789306640625, 0.04302978515625, -0.0144500732421875, -0.0189056396484375, -0.01386260986328125, -0.00623321533203125, 0.006328582763671875, -0.0205230712890625, -0.01081085205078125, -0.0038127899169921875, 0.03143310546875, 0.034149169921875, 0.011505126953125, -0.03094482421875, 0.012054443359375, 0.007579803466796875, 0.0281219482421875, -0.0008912086486816406, -0.044891357421875, -0.0033817291259765625, -0.0308685302734375, -0.014923095703125, 0.017913818359375, -0.0033588409423828125, -0.0278472900390625, -0.041839599609375, -0.06256103515625, 0.034332275390625, 0.037506103515625, -0.01190185546875, -0.01031494140625, -0.0223236083984375, -0.0297698974609375, -0.018524169921875, -0.01056671142578125, -0.0037384033203125, 0.0341796875, -0.0016374588012695312, 0.054443359375, 0.0166473388671875, 0.01424407958984375, 0.019744873046875, -0.036773681640625, -0.00363922119140625, -0.03167724609375, -0.007259368896484375, 0.018707275390625, -0.024017333984375, 0.008514404296875, 0.0158843994140625, 0.006175994873046875, 0.006053924560546875, 0.034820556640625, 0.0305023193359375, -0.0101318359375, 0.006046295166015625, 0.0201873779296875, -0.0297698974609375, -0.05279541015625, 0.0082855224609375, 0.0265350341796875, -0.038482666015625, 0.01357269287109375, 0.088623046875, 0.01363372802734375, 0.0022029876708984375, -0.032867431640625, 0.02374267578125, 0.038421630859375, 0.01202392578125, -0.018463134765625, 0.046356201171875, -0.00263214111328125, -0.0238800048828125, 0.0185699462890625, -0.005115509033203125, 0.015838623046875, 0.008819580078125, 0.0020389556884765625, -0.01326751708984375, -0.049102783203125, 0.0245361328125, -0.06719970703125, -0.0212860107421875, 0.0733642578125, -0.0071868896484375, 0.06671142578125, 0.055267333984375, 0.0030879974365234375, -0.0149078369140625, -0.0156707763671875, 0.0574951171875, -0.016204833984375, -0.020416259765625, 0.0465087890625, 0.007778167724609375, 0.01458740234375, -0.018218994140625, 0.00829315185546875, 0.025482177734375, -0.0185089111328125, 0.020660400390625, -0.00205230712890625, 0.04937744140625, 0.0230255126953125, -0.0027027130126953125, 0.0045318603515625, 0.0242767333984375, 0.0013980865478515625, 0.02197265625, -0.01171875, -0.0389404296875, -0.035552978515625, 0.0247344970703125, -0.03472900390625, -0.0206146240234375, -0.020263671875, -0.0024547576904296875, 0.013763427734375, 0.045867919921875, 0.012451171875, -0.002750396728515625, -0.0084991455078125, -0.01287841796875, 0.00168609619140625, -0.0277862548828125, 0.01274871826171875, -0.01471710205078125, 0.05181884765625, -0.032806396484375, -0.0293426513671875, 0.0167083740234375, -0.0182952880859375, 0.0163726806640625, -0.034271240234375, -0.045867919921875, -0.019989013671875, -0.0106964111328125, 0.024932861328125, -0.0015535354614257812, 0.035003662109375, 0.0021343231201171875, -0.005710601806640625, -0.0121612548828125, -0.0127105712890625, 0.0088043212890625, 0.036529541015625, -0.024993896484375, 0.043121337890625, -0.007472991943359375, 0.01141357421875, 0.038360595703125, -0.040771484375, 0.03192138671875, 0.0149078369140625, 0.01041412353515625, 0.01313018798828125, -0.0195465087890625, 0.0035114288330078125, 0.0236663818359375, 0.01995849609375, 0.019195556640625, 0.01442718505859375, -0.0093994140625, 0.028228759765625, 0.0020751953125, 0.00363922119140625, 0.050262451171875, -0.0692138671875, 0.017913818359375, 0.022186279296875, 0.047760009765625, 0.04217529296875, -0.00044655799865722656, -0.037384033203125, 0.1212158203125, 0.00792694091796875, 0.020294189453125, -0.041107177734375, -0.0186614990234375, 0.019195556640625, -0.012481689453125, 0.03192138671875, 0.024932861328125, 0.0291595458984375, -0.00909423828125, 0.053314208984375, -0.00015234947204589844, -0.01275634765625, -0.03887939453125, 0.01287841796875, 0.005466461181640625, -0.0482177734375, -0.038177490234375, -0.020965576171875, 0.026763916015625, -0.0036525726318359375, 0.0012311935424804688, 0.0002727508544921875, -0.03485107421875, 0.00514984130859375, 0.033416748046875, -0.00530242919921875, 0.0058746337890625, 0.0384521484375, 0.0028553009033203125, -0.01788330078125, -0.0144805908203125, -0.00679779052734375, 0.007251739501953125, 0.001220703125, -0.0113067626953125, 0.04254150390625, -0.06109619140625, -0.010467529296875, -0.01708984375, -0.049957275390625, -0.02490234375, 0.0177154541015625, 0.030548095703125, 0.0168914794921875, 0.03509521484375, 0.002681732177734375, -0.033416748046875, 0.043182373046875, 0.021697998046875, -0.01093292236328125, 0.040008544921875, 0.00733184814453125, 0.007381439208984375, 0.0006594657897949219, 0.05078125, 0.03228759765625, -0.007755279541015625, -0.0088348388671875, -0.00957489013671875, -0.01226806640625, -0.006069183349609375, -0.00942230224609375, -0.018035888671875, -0.0064697265625, -0.046295166015625, 0.032867431640625, 0.0010290145874023438, -0.0172576904296875, -0.00986480712890625, -0.0509033203125, -0.0182952880859375, -0.0303497314453125, -0.1153564453125, -0.06524658203125, -0.03936767578125, -0.061614990234375, -0.0039005279541015625, -0.01708984375, -0.029296875, 0.0177459716796875, 0.0023250579833984375, 0.0179290771484375, 0.00855255126953125, -0.033416748046875, -0.0325927734375, -0.050140380859375, -0.07135009765625, -0.03302001953125, 0.00975799560546875, -0.00982666015625, 0.00354766845703125, 0.061187744140625, 0.0141754150390625, -0.0302886962890625, 0.01397705078125, 0.0089111328125, -0.0022449493408203125, 0.021026611328125, -0.01425933837890625, -0.038970947265625, -0.0100250244140625, -0.005794525146484375, 0.0283355712890625, 0.0086517333984375, -0.0024890899658203125, 0.02178955078125, -0.00860595703125, 0.017333984375, 0.0345458984375, 0.0307159423828125, -0.0020294189453125, 0.00751495361328125, 0.0225677490234375, -0.0287017822265625, 0.00545501708984375, -0.0174713134765625, -0.046051025390625, 0.0328369140625, 0.0231170654296875, -0.00738525390625, 0.02642822265625, -0.03765869140625, 0.005237579345703125, -0.004421234130859375, -0.06549072265625, -0.0136260986328125, 0.08514404296875, 0.01526641845703125, 0.02960205078125, 0.0213623046875, 0.019073486328125, -0.004039764404296875, 0.0278778076171875, 0.0228424072265625, 0.028472900390625, 0.007289886474609375, -0.005435943603515625, -0.04071044921875, -0.027923583984375, 0.0199432373046875, -0.042572021484375, 0.047332763671875, -0.060577392578125, -0.0048675537109375, -0.048248291015625, 0.058349609375, -0.0206451416015625, -0.013946533203125, -0.020263671875, 0.022979736328125, -0.05523681640625, -0.06634521484375, -0.01548004150390625, 0.011871337890625, -0.1961669921875, 0.004367828369140625, -0.0206756591796875, -0.05316162109375, 0.005451202392578125, 0.015960693359375, -0.1058349609375, -0.07867431640625, 0.036834716796875, -0.0084381103515625, -0.00820159912109375, 0.03228759765625, -0.0179290771484375, -0.0087432861328125, -0.0150299072265625, -0.006954193115234375, -0.086181640625, -0.022918701171875, -0.0033702850341796875, 0.083740234375, 0.01187896728515625, -0.017730712890625, -0.0189056396484375, 0.05755615234375, -0.0189971923828125, 0.0322265625, -0.0269927978515625, 0.032806396484375, 0.005603790283203125, -0.04974365234375, -0.01390838623046875, -0.0296173095703125, -0.02362060546875, -0.021820068359375, -0.0296478271484375, -0.03155517578125, -0.0061492919921875, -0.02301025390625, 0.038848876953125, -0.0161895751953125, -0.004604339599609375, 0.0254364013671875, 0.01183319091796875, 0.02435302734375, -0.006191253662109375, 0.007633209228515625, 0.0280914306640625, -0.03399658203125, 0.05560302734375, 0.0113983154296875, -0.0186920166015625, -0.0036792755126953125, 0.046875, 0.004894256591796875, -0.033782958984375, 0.0010156631469726562, -0.01316070556640625, 0.04412841796875, -0.031829833984375, 0.0247039794921875, 0.034149169921875, -0.0299224853515625, 0.034454345703125, 0.0186614990234375, -0.0185699462890625, 0.03167724609375, -0.003124237060546875, 0.01108551025390625, -0.022613525390625, -0.01016998291015625, -0.00554656982421875, 0.0199737548828125, 0.0037841796875, -0.00394439697265625, -0.030609130859375, -0.0069122314453125, 0.0406494140625, 0.0266571044921875, -0.0033111572265625, -0.05169677734375, -0.043182373046875, 0.0032825469970703125, -0.0504150390625, 0.048370361328125, 0.05322265625, -0.01000213623046875, 0.06317138671875, 0.0300140380859375, -0.0030078887939453125, 0.031463623046875, 0.034942626953125, 0.046783447265625, 0.050933837890625, -0.01236724853515625, 0.002536773681640625, 0.0084686279296875, -0.0178375244140625, 0.078369140625, -0.0302581787109375, -0.08758544921875, 0.0026226043701171875, -0.01387786865234375, 0.0248565673828125, 0.042144775390625, -0.039520263671875, 0.03607177734375, 0.0443115234375, -0.004215240478515625, -0.021636962890625, -0.03692626953125, 0.007205963134765625, -0.046142578125, 0.00201416015625, -0.0005846023559570312, -0.00576019287109375, -0.0018625259399414062, 0.07763671875, 0.0242767333984375, 0.03704833984375, -0.0290985107421875, -0.010955810546875, 0.0030193328857421875, 0.0259246826171875, -0.00601959228515625, 0.002246856689453125, 0.0301666259765625, -0.02801513671875, 0.0574951171875, -0.0552978515625, 0.0172576904296875, -0.0003154277801513672, 0.05419921875, 0.0219879150390625, -0.029693603515625, 0.03472900390625, -0.021392822265625, -0.0005526542663574219, 0.0294036865234375, -0.012054443359375, -0.0273590087890625, -0.0246429443359375, 0.03155517578125, 0.06201171875, -0.005466461181640625, -0.0294952392578125, 0.049346923828125, -0.0305633544921875, 0.0183868408203125, 0.019439697265625, -0.0305633544921875, 0.00865936279296875, 0.002349853515625, -0.06744384765625, -0.0355224609375, -0.004764556884765625, -0.0300140380859375, 0.010223388671875, -0.0174560546875, -0.037689208984375, 0.026824951171875, 0.031768798828125, 0.032196044921875, -0.050567626953125, -0.038238525390625, -0.0278778076171875, -0.0267181396484375, 0.06353759765625, 0.0015535354614257812, -0.0390625, 0.008758544921875, -0.058441162109375, 0.0023708343505859375, 0.005504608154296875, -0.03125, -0.00628662109375, -0.0239715576171875, -0.00720977783203125, 0.0140533447265625, 0.04302978515625, 0.045745849609375, -0.05792236328125, 0.0718994140625, 0.0311279296875, 0.08306884765625, 0.01904296875, 0.01248931884765625, 0.00655364990234375, 0.041229248046875, 0.01305389404296875, -0.036346435546875, -0.07122802734375, 0.01290130615234375, -0.0193634033203125, -0.016845703125, 0.012359619140625, 0.005619049072265625, 0.0124359130859375, 0.0082855224609375, 0.04315185546875, 0.00569915771484375, 0.0225067138671875, 0.0020294189453125, 0.0078277587890625, -0.0149078369140625, -0.044647216796875, 0.00449371337890625, -0.02288818359375, 0.004718780517578125, -0.0057525634765625, 0.014251708984375, -0.0260467529296875, -0.0203094482421875, 0.005767822265625, 0.00811004638671875, 0.016204833984375, 0.0164794921875, -0.024261474609375, -0.0008587837219238281, 0.03350830078125, 0.013519287109375, 0.035797119140625, -0.013763427734375, 0.030303955078125, 0.01080322265625, -0.0007658004760742188, 0.0189971923828125, 0.0095977783203125, 0.048797607421875, 0.003887176513671875, 0.0107574462890625, 0.048248291015625, 0.0006551742553710938, -0.0012683868408203125, 0.053131103515625, 0.03399658203125, -0.072021484375, -0.0011587142944335938, -0.0254058837890625, 0.004299163818359375, 0.031951904296875, 0.01541900634765625, -0.06744384765625, -0.0751953125, 0.060638427734375, -0.039703369140625, -0.0208892822265625, 0.0181884765625, 0.0079193115234375, 0.0133209228515625, -0.005603790283203125, 0.05194091796875, -0.006023406982421875, -0.019927978515625, -0.0237274169921875, -0.00519561767578125, -0.00731658935546875, 0.01238250732421875, 0.01824951171875, -0.0399169921875, -0.00638580322265625, -0.03399658203125, -0.03515625, -0.0239410400390625, -0.042449951171875, -0.0112762451171875, -0.00832366943359375, 0.03662109375, 0.05181884765625, -0.0257110595703125, 0.01122283935546875, 0.02935791015625, 0.009002685546875, 0.00919342041015625, -0.0036106109619140625, 0.0276947021484375, -0.0042877197265625, -0.020904541015625, 0.01183319091796875, -0.0277252197265625, -0.028656005859375, -0.0012378692626953125, 0.0111236572265625, 0.04339599609375, -0.022613525390625, -0.0202789306640625, 0.038604736328125, -0.005603790283203125, -0.0203857421875, 0.006946563720703125, -0.01457977294921875, -0.02996826171875, -0.0194549560546875, -0.00021445751190185547, -0.0406494140625, 0.020416259765625, 0.0143280029296875, -0.0033931732177734375, 0.02728271484375, -0.0286865234375, -0.007793426513671875, 0.07086181640625, 0.0086669921875, -0.06298828125, -0.03045654296875, -0.022491455078125, 0.016998291015625, 0.018402099609375, -0.020263671875, -0.038360595703125, 0.01285552978515625, -0.048309326171875, -0.0031833648681640625, 0.037261962890625, 0.019287109375, -0.020111083984375, -0.0167999267578125, 0.052398681640625, -0.00835418701171875, -0.0203094482421875, 0.044769287109375, 0.00984954833984375, 0.0190277099609375, 0.0290374755859375, -0.0372314453125, 0.00698089599609375, -0.0236663818359375, -0.026580810546875, 0.031280517578125, 0.0030956268310546875, 0.0020618438720703125, 0.029388427734375, 0.005268096923828125, -0.05987548828125, 0.0239410400390625, 0.06268310546875, -0.06842041015625, -0.0295867919921875, 0.035186767578125, -0.0279541015625, 0.038421630859375, 0.01363372802734375, -0.0277099609375, 0.026031494140625, 0.0102081298828125, -0.0173492431640625, 0.007568359375, 0.01441192626953125, -0.0167999267578125, -0.0296173095703125, -0.0205841064453125, 0.01751708984375, -0.0218353271484375, 0.0178985595703125, 0.0163726806640625, 0.03826904296875, 0.0015287399291992188, 0.006195068359375, -0.01206207275390625, 0.0006036758422851562, -0.0147247314453125, -0.044769287109375, 0.0008974075317382812, -0.01190948486328125, 0.02923583984375, 0.046295166015625, 0.07476806640625, -0.02020263671875, -0.005947113037109375, -0.05810546875, -0.010528564453125, 0.047119140625, 0.0252227783203125, -0.0016088485717773438, -0.012603759765625, -0.0196380615234375, -0.036041259765625, -0.064208984375, 0.008056640625, 0.047119140625, 0.062103271484375, 0.004039764404296875, 0.03973388671875, 0.015045166015625, -0.0214080810546875, -0.0261993408203125, 0.0258941650390625, 0.00856781005859375, 0.0008730888366699219, -0.0110931396484375, -0.0004208087921142578, 0.00010925531387329102, 0.030670166015625, 0.0077972412109375, -0.0350341796875, 0.01727294921875, 0.007720947265625, -0.041656494140625, -0.0249786376953125, 0.00016307830810546875, -0.01308441162109375, 0.0215301513671875, -0.037384033203125, 0.027374267578125, -0.01015472412109375, -0.011566162109375, -0.0168609619140625, -0.015869140625, 0.0367431640625, -0.00634002685546875, 0.047943115234375, -0.00159454345703125, 0.0577392578125, -0.0012083053588867188, 0.0010786056518554688, -0.0711669921875, 0.02740478515625, -0.0792236328125, -0.01184844970703125, -0.052398681640625, -0.01239776611328125, 0.042266845703125, 0.037750244140625, 0.002838134765625, 0.01161956787109375, -0.00939178466796875, -0.0311126708984375, 0.00835418701171875, 0.037628173828125, -0.01236724853515625, 0.0311431884765625, 0.0301513671875, 0.00026154518127441406, -0.0149688720703125, -0.01113128662109375, -0.01678466796875, 0.0255889892578125, 0.017059326171875, 0.024566650390625, -0.00015807151794433594, 0.0223846435546875, 0.01739501953125, 0.0287322998046875, -0.038360595703125, -0.00681304931640625, 0.027374267578125, -0.035186767578125, -0.015380859375, 0.00197601318359375, -0.04840087890625, 0.013153076171875, 0.031280517578125, 0.0013141632080078125, -0.015533447265625, -0.006900787353515625, 0.038421630859375, 0.01678466796875, 0.05389404296875, -0.0186614990234375, -0.06976318359375, -0.036651611328125, 0.0237884521484375, -0.0007352828979492188, 0.049652099609375, 0.005710601806640625, 0.02960205078125, 0.0019512176513671875, -0.036407470703125, 0.041229248046875, -0.0379638671875, 0.0335693359375, 0.0189666748046875, -0.006954193115234375, -0.01216888427734375, 0.03228759765625, -0.0043792724609375, 0.0282135009765625, 0.019287109375, 0.036529541015625, 0.011260986328125, -0.005008697509765625, 0.080322265625, 0.0643310546875, 0.05621337890625, -0.0298004150390625, 0.0033664703369140625, 0.10504150390625, -0.0220489501953125, -0.0008335113525390625, -0.06060791015625, -0.0187225341796875, -0.0137176513671875, -0.00970458984375, 0.026641845703125, 0.01215362548828125, -0.0029125213623046875, -0.01032257080078125, 0.0113983154296875, 0.00962066650390625, -0.01776123046875, -0.00417327880859375, -0.0151519775390625, -0.026092529296875, 0.04412841796875, -0.0170745849609375, 0.005413055419921875, 0.002147674560546875, 0.0175018310546875, -0.0224151611328125, 0.0036792755126953125, -0.0140380859375, 0.0163116455078125, 0.015594482421875, -0.0296783447265625, 0.004276275634765625, 0.014190673828125, 0.009033203125, -0.035919189453125, -0.0384521484375, 0.00981903076171875, -0.0701904296875, -0.00878143310546875, 0.0275115966796875, 0.0034503936767578125, -0.034912109375, -0.07940673828125, 0.00621795654296875, -0.041839599609375, 0.01348876953125, -0.0031909942626953125, -0.00229644775390625, 0.012786865234375, -0.04412841796875, -0.0653076171875, -0.0026531219482421875, 0.0018854141235351562, -0.046661376953125, -0.0156097412109375, 0.0232696533203125, 0.016845703125, -0.045989990234375, -0.002300262451171875, -0.06622314453125, -0.017852783203125, -0.0004317760467529297, 0.0299072265625, 0.014923095703125, 0.019134521484375, 0.049591064453125, -0.07049560546875, 0.02520751953125, -0.0112457275390625, 0.01251983642578125, 0.006679534912109375, -0.009857177734375, 0.0245819091796875, 0.044342041015625, -0.01105499267578125, -0.036773681640625, -0.00699615478515625, -0.033721923828125, -0.024078369140625, -0.0697021484375, -0.01085662841796875, -0.030487060546875, 0.061676025390625, 0.020050048828125, -0.00269317626953125, -0.00614166259765625, -0.024749755859375, 0.0050811767578125, -0.045989990234375, -0.04888916015625, 0.0469970703125, -0.09820556640625, -0.030914306640625, -0.004863739013671875, -0.0009512901306152344, -0.034881591796875, 0.0347900390625, -0.035186767578125, -0.000881195068359375, 0.0307769775390625, 0.0032711029052734375, -0.029815673828125, -0.03240966796875, 0.0027713775634765625, -0.006683349609375, 0.002964019775390625, 0.00835418701171875, 0.01519012451171875, 0.00418853759765625, 0.06646728515625, -0.0024242401123046875, -0.01129913330078125, 0.0138702392578125, 0.014617919921875, 0.00577545166015625, -0.0212554931640625, 0.0213623046875, -0.0006451606750488281, 0.01629638671875, -0.010406494140625, -0.0137481689453125, -0.01490020751953125, -0.01526641845703125, 0.0183258056640625, -0.026702880859375, 0.0248260498046875, 0.01378631591796875, 0.020782470703125, -0.00797271728515625, 0.0416259765625, -0.00310516357421875, -0.028778076171875, -0.0032634735107421875, -0.0240020751953125, 0.0010213851928710938, 0.0277252197265625, 0.0430908203125, -0.039947509765625, 0.0267791748046875, -0.013336181640625, 0.04986572265625, 0.018310546875 ]
2ee4ef52ed700667c9e31387572c3347ec3b2e69
Wordpress Stackexchange Q: How to fix empty dashboard issue in WordPress? A site of my company uses blog on WordPress 3.3.1 with theme based on Twenty Ten. Last week I upgraded Apache and PHP on our production server. Afterwards the dashboard refused to work. When a user logs in, a blank dashboard appears. A menu with links is still present, but none of the links work, so one cannot create new posts etc. In the page source I see the following message: Fatal error: Access to undeclared static property: WP_Screen::$this in blog/wp-admin/includes/screen.php on line 706 There were no changes to WordPress configuration made and no new plugins installed. How to fix the issue? A: There is a bug in WordPress 3.3.1 causing the issue. It may affect other versions as well. To solve the issue you can update WordPress to the current stable release and do integration testing afterwards. Or you can do a quick bug fix. To fix the bug: * *Open file blog/wp-admin/includes/screen.php in your favorite text editor. *On line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?> *Replace it with the statement: <?php echo $this->_help_sidebar; ?> *Save your changes. Hope it helps you.
Q: How to fix empty dashboard issue in WordPress? A site of my company uses blog on WordPress 3.3.1 with theme based on Twenty Ten. Last week I upgraded Apache and PHP on our production server. Afterwards the dashboard refused to work. When a user logs in, a blank dashboard appears. A menu with links is still present, but none of the links work, so one cannot create new posts etc. In the page source I see the following message: Fatal error: Access to undeclared static property: WP_Screen::$this in blog/wp-admin/includes/screen.php on line 706 There were no changes to WordPress configuration made and no new plugins installed. How to fix the issue? A: There is a bug in WordPress 3.3.1 causing the issue. It may affect other versions as well. To solve the issue you can update WordPress to the current stable release and do integration testing afterwards. Or you can do a quick bug fix. To fix the bug: * *Open file blog/wp-admin/includes/screen.php in your favorite text editor. *On line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?> *Replace it with the statement: <?php echo $this->_help_sidebar; ?> *Save your changes. Hope it helps you. A: Dmitry's answer of replacing the wrong PHP statement appears best to me: Replace <?php echo self::$this->_help_sidebar; ?> With <?php echo $this->_help_sidebar; ?> A: you have three options * *Downgrade the php - you probably not going to like it *Upgrade wordpres - you running 3.3.1? it is upgrade time in any case *Fix the error in core - Not as bad as it sound, as "screen" code controls the help screen and you might not need help in operating wordpress any longer. A: Even though you haven't made any configuration changes or added new plugins to WordPress, upgrading the underlying PHP version could be causing a conflict with one of the plugins you'd already been using successfully. Since you can't get to your admin dashboard to disable plugins, try simply re-naming your /wp-content/plugins folder to something like /wp-content/plugins-OLD and then try to access the admin again. If you can successfully get in after disabling your plugins, then you can go about re-enabling them 1 by 1 to see which one is possibly the culprit and leave it disabled until you upgrade the core of WordPress and the plugin itself to the latest versions that hopefully don't have these problems.
wordpress
{ "language": "en", "length": 396, "provenance": "stackexchange_00019.jsonl.gz:440472", "question_score": "43", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127427" }
[ 0.0697021484375, -0.01371002197265625, 0.04888916015625, -0.02569580078125, -0.00478363037109375, -0.0165863037109375, 0.046966552734375, -0.045928955078125, 0.0248870849609375, -0.00787353515625, -0.06683349609375, -0.005573272705078125, -0.0102996826171875, -0.00142669677734375, -0.00508880615234375, -0.05609130859375, 0.0428466796875, -0.028411865234375, 0.051483154296875, -0.0005888938903808594, -0.0012617111206054688, 0.038330078125, 0.041046142578125, -0.00817108154296875, 0.006122589111328125, -0.043548583984375, 0.0195465087890625, -0.002979278564453125, -0.002841949462890625, -0.019622802734375, 0.01270294189453125, 0.0144195556640625, -0.002536773681640625, 0.059967041015625, -0.0469970703125, -0.0059814453125, -0.0106964111328125, 0.0299224853515625, -0.00457000732421875, 0.03790283203125, 0.021881103515625, -0.00930023193359375, 0.0350341796875, 0.004627227783203125, 0.00754547119140625, 0.00434112548828125, 0.01160430908203125, -0.044342041015625, 0.0015115737915039062, 0.026641845703125, 0.001201629638671875, 0.0213165283203125, 0.0020046234130859375, 0.0201263427734375, -0.02099609375, -0.0294342041015625, -0.002227783203125, -0.010040283203125, 0.0242767333984375, 0.0089263916015625, -0.00778961181640625, -0.0193328857421875, 0.00363922119140625, -0.0426025390625, -0.02197265625, 0.0118408203125, 0.009185791015625, 0.01438140869140625, 0.00446319580078125, -0.0226593017578125, -0.015655517578125, -0.004001617431640625, -0.006534576416015625, -0.00618743896484375, 0.0168304443359375, -0.0035858154296875, -0.0024166107177734375, -0.0037250518798828125, 0.0114898681640625, 0.034027099609375, 0.00870513916015625, -0.001613616943359375, -0.043487548828125, 0.0101470947265625, -0.0008544921875, 0.022674560546875, -0.020294189453125, -0.01212310791015625, 0.01247406005859375, -0.0069580078125, 0.0033779144287109375, -0.03900146484375, 0.005908966064453125, 0.025054931640625, 0.01073455810546875, -0.0660400390625, 0.03106689453125, 0.0902099609375, -0.017364501953125, 0.01898193359375, -0.05841064453125, -0.007183074951171875, -0.004878997802734375, -0.04510498046875, -0.0009551048278808594, 0.042694091796875, 0.022003173828125, -0.00096893310546875, 0.0112152099609375, 0.0035400390625, 0.00015246868133544922, 0.005451202392578125, -0.017669677734375, -0.0489501953125, -0.027099609375, 0.05810546875, -0.0041046142578125, -0.02410888671875, 0.00606536865234375, 0.00682830810546875, -0.038482666015625, -0.005184173583984375, -0.0694580078125, 0.034271240234375, 0.0230865478515625, -0.005260467529296875, 0.008697509765625, 0.042724609375, -0.0023059844970703125, -0.00791168212890625, -0.036224365234375, 0.0238494873046875, 0.054718017578125, 0.042327880859375, -0.0027370452880859375, -0.0089111328125, 0.0153045654296875, -0.0185089111328125, -0.0187225341796875, 0.035247802734375, -0.025634765625, -0.054718017578125, -0.00902557373046875, -0.034759521484375, 0.01203155517578125, 0.038116455078125, 0.040313720703125, 0.0098876953125, -0.0214080810546875, -0.049896240234375, 0.024200439453125, -0.0149688720703125, 0.04608154296875, 0.027313232421875, -0.0079803466796875, -0.005130767822265625, 0.049835205078125, -0.034576416015625, -0.037872314453125, -0.0411376953125, 0.0042724609375, 0.0122528076171875, 0.01561737060546875, -0.03851318359375, -0.043182373046875, -0.0206756591796875, -0.020904541015625, 0.0032958984375, 0.0229034423828125, -0.01458740234375, -0.02020263671875, -0.0010652542114257812, 0.01068878173828125, 0.024322509765625, 0.01346588134765625, 0.03045654296875, 0.0028285980224609375, 0.0273895263671875, 0.02642822265625, -0.0218658447265625, -0.017181396484375, -0.03240966796875, 0.042449951171875, -0.017822265625, -0.057525634765625, 0.0250091552734375, 0.007110595703125, 0.062164306640625, 0.01288604736328125, 0.01033782958984375, 0.0245819091796875, 0.0159759521484375, -0.028472900390625, 0.00922393798828125, 0.0029277801513671875, -0.0267333984375, -0.0190582275390625, -0.01293182373046875, -0.022796630859375, 0.019317626953125, 0.00873565673828125, 0.054656982421875, -0.0312042236328125, 0.019775390625, -0.0166015625, 0.02581787109375, 0.00418853759765625, 0.040863037109375, 0.00548553466796875, 0.00794219970703125, 0.0018520355224609375, -0.01404571533203125, -0.020843505859375, 0.01861572265625, -0.0126495361328125, 0.0072174072265625, -0.027496337890625, 0.0501708984375, -0.02105712890625, 0.03436279296875, -0.0199737548828125, -0.058258056640625, -0.0080718994140625, -0.006366729736328125, 0.04095458984375, -0.0107574462890625, -0.015655517578125, -0.02178955078125, 0.056396484375, -0.0149078369140625, 0.03277587890625, 0.018341064453125, 0.0138702392578125, 0.019989013671875, -0.056427001953125, -0.01104736328125, -0.03326416015625, -0.0009274482727050781, 0.0177459716796875, 0.0465087890625, 0.04229736328125, -0.0150146484375, -0.031402587890625, -0.0171966552734375, -0.0288238525390625, -0.08807373046875, -0.004329681396484375, -0.01399993896484375, -0.03466796875, 0.027008056640625, 0.0217742919921875, 0.038665771484375, 0.0009655952453613281, 0.0166778564453125, -0.0369873046875, 0.046173095703125, -0.005157470703125, -0.00804901123046875, -0.05780029296875, 0.03759765625, 0.0024566650390625, -0.0504150390625, -0.02874755859375, -0.0292816162109375, 0.0087890625, 0.0172576904296875, 0.036285400390625, 0.035003662109375, -0.0240325927734375, -0.0152435302734375, 0.0127410888671875, 0.0223846435546875, 0.00594329833984375, 0.026336669921875, -0.03778076171875, 0.0251007080078125, -0.01450347900390625, -0.004360198974609375, 0.0083160400390625, -0.0017881393432617188, -0.02752685546875, 0.00933074951171875, -0.017181396484375, -0.01343536376953125, -0.004840850830078125, -0.0207977294921875, -0.0005350112915039062, -0.03277587890625, 0.025146484375, 0.00620269775390625, 0.0312042236328125, 0.025665283203125, -0.0030193328857421875, 0.0293426513671875, 0.0136871337890625, -0.0102081298828125, 0.043914794921875, -0.0290069580078125, 0.0177459716796875, -0.00830078125, 0.086181640625, 0.06414794921875, -0.007129669189453125, 0.0227813720703125, 0.015960693359375, 0.001598358154296875, 0.0009407997131347656, 0.032318115234375, 0.031280517578125, 0.01409149169921875, -0.0186614990234375, 0.0572509765625, 0.0246429443359375, 0.021636962890625, 0.002346038818359375, -0.0270843505859375, -0.032073974609375, 0.0098724365234375, -0.0877685546875, -0.089599609375, -0.0577392578125, -0.0653076171875, -0.0271759033203125, -0.0095672607421875, -0.0369873046875, 0.040740966796875, 0.004566192626953125, 0.0083160400390625, 0.058990478515625, -0.035369873046875, -0.085205078125, -0.046875, -0.09716796875, -0.050994873046875, -0.0178985595703125, -0.00991058349609375, -0.0013132095336914062, 0.01395416259765625, -0.0091705322265625, -0.018951416015625, -0.013092041015625, 0.004718780517578125, 0.00226593017578125, -0.041168212890625, -0.00627899169921875, -0.0130157470703125, 0.042816162109375, -0.00560760498046875, -0.00823211669921875, 0.01389312744140625, -0.010162353515625, -0.038238525390625, -0.01953125, -0.05645751953125, -0.032470703125, 0.0511474609375, 0.0325927734375, -0.053466796875, 0.0170745849609375, -0.0589599609375, -0.0099334716796875, -0.01029205322265625, -0.0413818359375, 0.00844573974609375, 0.0254058837890625, -0.0269012451171875, 0.0047454833984375, -0.033966064453125, -0.006565093994140625, -0.00817108154296875, -0.0204925537109375, 0.0192413330078125, -0.01055908203125, -0.026123046875, -0.016204833984375, -0.004688262939453125, -0.00803375244140625, -0.035308837890625, 0.0251922607421875, -0.005336761474609375, 0.0106201171875, -0.01025390625, -0.00632476806640625, -0.01367950439453125, 0.005825042724609375, 0.034820556640625, -0.0115509033203125, 0.01438140869140625, 0.002719879150390625, -0.01953125, 0.0071868896484375, 0.058135986328125, -0.07080078125, 0.004917144775390625, 0.0338134765625, 0.0258026123046875, -0.05767822265625, -0.0297698974609375, -0.094970703125, 0.0023193359375, -0.0235443115234375, -0.0238800048828125, -0.000024497509002685547, -0.037933349609375, -0.01018524169921875, -0.01441192626953125, -0.0163726806640625, -0.0173187255859375, 0.05487060546875, -0.01116943359375, 0.0204010009765625, -0.007450103759765625, 0.0180816650390625, -0.041107177734375, -0.0167388916015625, -0.0011034011840820312, -0.07977294921875, -0.0244598388671875, 0.0015430450439453125, 0.06549072265625, 0.0070648193359375, -0.026123046875, 0.003108978271484375, 0.0491943359375, 0.01003265380859375, 0.0341796875, -0.004451751708984375, -0.005489349365234375, 0.005527496337890625, -0.006427764892578125, 0.004058837890625, -0.01158905029296875, -0.042572021484375, -0.034210205078125, -0.0290679931640625, 0.000025153160095214844, -0.0160064697265625, -0.0501708984375, 0.01438140869140625, -0.0142669677734375, -0.024566650390625, -0.0400390625, 0.036956787109375, 0.055511474609375, 0.01345062255859375, 0.027008056640625, -0.042816162109375, -0.0263519287109375, 0.019378662109375, -0.038421630859375, 0.0007734298706054688, 0.01108551025390625, 0.048431396484375, 0.006977081298828125, -0.0014905929565429688, 0.005084991455078125, -0.03448486328125, 0.02301025390625, 0.023284912109375, 0.04547119140625, 0.0170440673828125, -0.0142974853515625, 0.049468994140625, 0.001308441162109375, 0.0029239654541015625, 0.0021305084228515625, 0.0192413330078125, -0.00284576416015625, -0.037200927734375, 0.02996826171875, -0.00041222572326660156, -0.019775390625, 0.0256195068359375, 0.006404876708984375, 0.0174560546875, -0.0186309814453125, 0.00099945068359375, 0.011810302734375, -0.026153564453125, -0.0255279541015625, -0.0233612060546875, 0.003437042236328125, -0.0167083740234375, 0.041259765625, -0.00812530517578125, 0.017608642578125, 0.01617431640625, 0.051727294921875, -0.0224609375, 0.0273284912109375, 0.021026611328125, 0.01363372802734375, 0.0183258056640625, 0.0180511474609375, -0.01473236083984375, -0.001071929931640625, -0.01198577880859375, 0.059814453125, 0.0087432861328125, -0.046051025390625, -0.013916015625, 0.00563812255859375, 0.0100860595703125, 0.0009274482727050781, 0.0010929107666015625, 0.05377197265625, 0.019927978515625, -0.01485443115234375, -0.02276611328125, -0.01267242431640625, -0.024871826171875, -0.045440673828125, 0.02215576171875, 0.005313873291015625, -0.02032470703125, -0.01214599609375, 0.006114959716796875, 0.0030078887939453125, -0.017822265625, 0.0008215904235839844, -0.01386260986328125, 0.004436492919921875, 0.03857421875, 0.00376129150390625, 0.006679534912109375, -0.002605438232421875, 0.048187255859375, 0.059814453125, -0.0474853515625, 0.00794219970703125, 0.01165771484375, 0.03680419921875, 0.01366424560546875, -0.039642333984375, 0.0209503173828125, -0.03472900390625, -0.01233673095703125, 0.07696533203125, -0.01202392578125, -0.08563232421875, -0.03594970703125, 0.0210723876953125, 0.049774169921875, -0.0579833984375, 0.019775390625, 0.007717132568359375, -0.00786590576171875, 0.030548095703125, 0.0799560546875, 0.01235198974609375, -0.03973388671875, -0.052490234375, -0.00839996337890625, 0.0085906982421875, 0.005443572998046875, -0.0225067138671875, -0.0129852294921875, -0.01467132568359375, -0.03057861328125, 0.037933349609375, -0.01446533203125, 0.01421356201171875, -0.031707763671875, 0.0006871223449707031, -0.00844573974609375, 0.007904052734375, 0.029571533203125, 0.006671905517578125, -0.01288604736328125, 0.00984954833984375, -0.011505126953125, -0.0209808349609375, -0.0101776123046875, -0.039215087890625, -0.045684814453125, -0.0291595458984375, 0.03472900390625, 0.039459228515625, -0.0098419189453125, -0.037994384765625, -0.0469970703125, -0.001617431640625, 0.050750732421875, 0.07672119140625, 0.009368896484375, 0.05328369140625, 0.025543212890625, 0.0239105224609375, 0.028717041015625, 0.0302734375, -0.049530029296875, -0.021453857421875, 0.0021514892578125, 0.0204620361328125, -0.01294708251953125, -0.004245758056640625, 0.01318359375, -0.018096923828125, 0.040008544921875, -0.0162200927734375, 0.0071258544921875, 0.00547027587890625, 0.006397247314453125, 0.0013704299926757812, 0.03515625, 0.042205810546875, 0.0173187255859375, 0.04412841796875, -0.0146942138671875, -0.0002884864807128906, 0.0112152099609375, 0.00653839111328125, 0.00691986083984375, -0.0019855499267578125, 0.00490570068359375, -0.003902435302734375, -0.0631103515625, 0.10498046875, 0.09136962890625, -0.030670166015625, 0.0159454345703125, 0.004119873046875, -0.018768310546875, -0.0194854736328125, 0.023956298828125, 0.02777099609375, -0.021209716796875, 0.0304718017578125, -0.005870819091796875, -0.0257110595703125, -0.01036834716796875, -0.037384033203125, 0.01158905029296875, 0.098388671875, 0.062164306640625, -0.08013916015625, -0.0325927734375, -0.0153961181640625, -0.037689208984375, 0.028656005859375, 0.00943756103515625, -0.01947021484375, -0.040863037109375, 0.043426513671875, -0.029083251953125, -0.01447296142578125, 0.0213623046875, -0.0126495361328125, 0.0075225830078125, 0.007183074951171875, 0.058868408203125, 0.007198333740234375, -0.03729248046875, -0.0401611328125, 0.06396484375, -0.033050537109375, 0.0085296630859375, -0.004100799560546875, 0.0196533203125, -0.048248291015625, -0.08514404296875, -0.032073974609375, -0.0168304443359375, -0.047088623046875, 0.0283050537109375, 0.003238677978515625, 0.01154327392578125, 0.045013427734375, -0.020538330078125, 0.0428466796875, -0.005062103271484375, 0.003520965576171875, 0.055755615234375, -0.0474853515625, 0.0101470947265625, 0.048553466796875, -0.0296783447265625, 0.0263671875, 0.035888671875, -0.059661865234375, -0.0243377685546875, -0.07110595703125, 0.05279541015625, -0.02545166015625, 0.0014019012451171875, 0.0033245086669921875, 0.0372314453125, -0.009521484375, -0.01434326171875, 0.03399658203125, -0.0926513671875, -0.043609619140625, 0.0138397216796875, -0.0180816650390625, -0.00858306884765625, 0.01219940185546875, -0.06170654296875, 0.07196044921875, -0.023101806640625, 0.01593017578125, 0.004001617431640625, 0.022125244140625, -0.04071044921875, -0.007549285888671875, -0.016632080078125, 0.05596923828125, -0.00423431396484375, 0.041351318359375, -0.046356201171875, -0.01447296142578125, 0.00909423828125, 0.04345703125, -0.0312347412109375, -0.0000795125961303711, -0.0273284912109375, -0.0210723876953125, -0.0190887451171875, -0.00891876220703125, 0.0035076141357421875, 0.042236328125, -0.006740570068359375, 0.031524658203125, -0.0260009765625, -0.047454833984375, 0.03253173828125, -0.08453369140625, -0.038604736328125, 0.0031642913818359375, 0.01097869873046875, 0.0018978118896484375, 0.01224517822265625, 0.0226287841796875, -0.00888824462890625, 0.018157958984375, -0.0026149749755859375, 0.03125, 0.00638580322265625, -0.0020999908447265625, -0.00702667236328125, -0.034454345703125, 0.0103759765625, -0.0172271728515625, 0.024444580078125, -0.00146484375, -0.034759521484375, -0.01800537109375, 0.022247314453125, -0.04632568359375, -0.051483154296875, -0.02655029296875, -0.0022220611572265625, -0.033294677734375, 0.04925537109375, 0.039825439453125, 0.054351806640625, 0.0094757080078125, 0.0005269050598144531, 0.01042938232421875, 0.054168701171875, -0.0236358642578125, -0.0406494140625, -0.00496673583984375, 0.0095367431640625, 0.0229034423828125, 0.03753662109375, 0.037811279296875, 0.0208740234375, 0.0662841796875, -0.0216064453125, 0.0221710205078125, 0.019500732421875, -0.00716400146484375, -0.0004169940948486328, 0.03582763671875, -0.016845703125, 0.032745361328125, 0.0173187255859375, -0.0655517578125, -0.0005273818969726562, 0.022430419921875, 0.00811004638671875, 0.025360107421875, -0.048583984375, -0.003902435302734375, -0.0232391357421875, -0.01373291015625, -0.01198577880859375, 0.049468994140625, -0.07012939453125, -0.0255584716796875, 0.0372314453125, 0.060516357421875, -0.0005087852478027344, 0.007843017578125, 0.016693115234375, 0.01206207275390625, -0.021484375, -0.0096435546875, 0.0175933837890625, -0.02911376953125, -0.01244354248046875, 0.0072479248046875, -0.007671356201171875, -0.0039043426513671875, -0.01053619384765625, 0.00272369384765625, 0.0748291015625, -0.024078369140625, -0.01312255859375, -0.000965118408203125, 0.006153106689453125, -0.0217132568359375, 0.049530029296875, -0.009796142578125, 0.04290771484375, 0.0170440673828125, -0.05419921875, -0.0198211669921875, -0.007442474365234375, 0.0239105224609375, -0.0103759765625, 0.00972747802734375, -0.016387939453125, 0.03668212890625, -0.0257415771484375, 0.01541900634765625, -0.0205841064453125, -0.0089111328125, 0.0164031982421875, 0.01323699951171875, 0.0114593505859375, 0.01995849609375, -0.05584716796875, -0.024261474609375, -0.0266876220703125, 0.047027587890625, 0.0161895751953125, 0.11273193359375, -0.03271484375, 0.0247802734375, -0.03277587890625, 0.04571533203125, -0.05657958984375, -0.00394439697265625, -0.0506591796875, 0.0077056884765625, 0.028656005859375, 0.01125335693359375, -0.08624267578125, 0.04229736328125, 0.00244140625, 0.025787353515625, 0.049468994140625, -0.03778076171875, 0.01387786865234375, 0.01398468017578125, -0.01519012451171875, -0.0311431884765625, -0.041107177734375, -0.016815185546875, 0.01479339599609375, -0.006717681884765625, -0.007694244384765625, -0.0133209228515625, -0.004108428955078125, -0.01149749755859375, -0.04083251953125, 0.01219940185546875, -0.0233154296875, 0.0002453327178955078, 0.01702880859375, 0.03729248046875, 0.006259918212890625, -0.01206207275390625, -0.02288818359375, 0.028076171875, -0.01140594482421875, 0.02532958984375, -0.007732391357421875, 0.0157012939453125, 0.053863525390625, 0.028289794921875, 0.003101348876953125, -0.058990478515625, -0.0237884521484375, 0.1016845703125, -0.009979248046875, -0.0160369873046875, 0.00783538818359375, -0.01424407958984375, -0.0083465576171875, -0.034210205078125, -0.003047943115234375, -0.0203857421875, -0.05938720703125, -0.052886962890625, 0.01312255859375, 0.052703857421875, 0.0030460357666015625, -0.07318115234375, 0.050537109375, -0.037994384765625, 0.0439453125, 0.003200531005859375, -0.002048492431640625, 0.034423828125, 0.0287933349609375, 0.00980377197265625, 0.036651611328125, 0.0205230712890625, -0.01152801513671875, 0.048431396484375, 0.0096435546875, 0.04229736328125, -0.004222869873046875, 0.031494140625, -0.0115203857421875, -0.02264404296875, 0.032562255859375, -0.0298309326171875, -0.00318145751953125, 0.0133056640625, 0.00411224365234375, -0.054718017578125, -0.027191162109375, 0.031280517578125, -0.0241546630859375, -0.0182647705078125, 0.0019168853759765625, -0.0382080078125, -0.031463623046875, -0.05548095703125, -0.060638427734375, 0.02105712890625, 0.01336669921875, -0.037109375, -0.046844482421875, -0.01403045654296875, -0.032379150390625, 0.06689453125, -0.0008225440979003906, -0.040863037109375, -0.00963592529296875, 0.054229736328125, 0.03228759765625, -0.002567291259765625, 0.037750244140625, 0.003864288330078125, -0.037322998046875, 0.010467529296875, 0.0071868896484375, 0.026763916015625, -0.004451751708984375, -0.002899169921875, 0.004230499267578125, 0.033905029296875, -0.038116455078125, -0.00978851318359375, 0.00689697265625, 0.005462646484375, 0.0198516845703125, -0.006343841552734375, -0.00025725364685058594, -0.020263671875, -0.00910186767578125, -0.0216522216796875, -0.00679779052734375, 0.01448822021484375, -0.058624267578125, -0.047332763671875, -0.03326416015625, -0.044403076171875, 0.03485107421875, -0.11773681640625, -0.0165863037109375, 0.0125274658203125, -0.01078033447265625, -0.0004916191101074219, 0.01434326171875, -0.0264129638671875, -0.0005717277526855469, 0.01517486572265625, 0.004352569580078125, -0.028839111328125, -0.05291748046875, 0.06622314453125, -0.03533935546875, -0.005573272705078125, 0.00041031837463378906, 0.036834716796875, 0.0217132568359375, 0.0016460418701171875, -0.0058441162109375, -0.0210113525390625, -0.046295166015625, 0.02642822265625, -0.0140380859375, 0.0167388916015625, -0.061065673828125, -0.019287109375, 0.0077362060546875, 0.0098724365234375, -0.0174102783203125, 0.020538330078125, 0.034149169921875, -0.01751708984375, -0.020111083984375, 0.01544189453125, -0.0295867919921875, -0.0239410400390625, -0.023223876953125, 0.0301513671875, -0.00968170166015625, -0.01099395751953125, 0.0308990478515625, -0.0377197265625, 0.004150390625, 0.01421356201171875, 0.031494140625, -0.0694580078125, 0.030029296875, -0.035430908203125, 0.045562744140625, 0.0184326171875 ]
d696833444643f8971972a8814cab02155e13236
Wordpress Stackexchange Q: Convert WordPress posts to products in WooCommerce Is there anyway I could convert all the posts e have right now on our WordPress install into products using some MySQL query or something like that? A: You can update the post_type in mysql table wp_posts update the post_type to product sample query UPDATE wp_posts SET post_type = 'product' WHERE post_type = 'post';
Q: Convert WordPress posts to products in WooCommerce Is there anyway I could convert all the posts e have right now on our WordPress install into products using some MySQL query or something like that? A: You can update the post_type in mysql table wp_posts update the post_type to product sample query UPDATE wp_posts SET post_type = 'product' WHERE post_type = 'post'; A: You could install the Post Type Switcher plugin Or Run SQL query on your database to change the post to product post type UPDATE `wp_posts` SET `post_type` = 'product' WHERE `post_type` = 'post'; Backup your DB 1st. UPDATE `wp_posts` SET `post_type` = 'wpsc-product' WHERE `post_type` = 'post'; A: Please use $wpdb to interact with the Database. global $wpdb; $wpdb->update( // Table name $wpdb->posts, // New values array( 'post_type' => 'product', ), // SQL "WHERE" clause base / affected rows array( 'post_type' => 'post', ), // Data Type (available: %s string, %d integer, %f float) '%s', // SQL "WHERE" clause Type '%s' ); Keep in mind that this query will change the post_type of every post to product. Having a backup of your DB before doing this is recommended. It would be even better if you use a (local) test installation and refine your update process there. More info about updating rows in the DB. A detailed Guide on How To handle MySQL on the Command Line can be found in this extensive meta post. A: Additionally (optional): SQL query for converting the categories to product_cat UPDATE `wp_term_taxonomy` SET `taxonomy`='product_cat' WHERE `taxonomy`='category' A: I used https://wpsheeteditor.com/. the other solutions were great if you wanted to do all pages, I'd have done the SQL query, but there were about 30 pages that needed doing and 40 that didn't. Even if a few just needed to be changed back I'd have done that but this sheet editor plugin was a huge help.
wordpress
{ "language": "en", "length": 312, "provenance": "stackexchange_00019.jsonl.gz:440563", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127744" }
[ 0.004650115966796875, 0.00853729248046875, -0.0219573974609375, 0.0141448974609375, 0.0242919921875, -0.034637451171875, 0.0657958984375, -0.0179443359375, 0.0041046142578125, 0.013458251953125, -0.005847930908203125, -0.020904541015625, -0.031494140625, -0.0237274169921875, -0.03009033203125, -0.05267333984375, 0.05059814453125, -0.01131439208984375, 0.036895751953125, 0.0028057098388671875, -0.0167236328125, 0.04296875, 0.041168212890625, 0.05322265625, 0.0196685791015625, -0.01641845703125, 0.0787353515625, -0.03363037109375, 0.038360595703125, -0.01006317138671875, 0.032623291015625, -0.0128326416015625, 0.0276641845703125, -0.01910400390625, 0.0249481201171875, 0.038543701171875, 0.01325225830078125, -0.0124969482421875, 0.0155029296875, 0.0093536376953125, 0.0294342041015625, -0.0183258056640625, 0.0318603515625, 0.01385498046875, 0.005950927734375, -0.024322509765625, 0.0181884765625, -0.0565185546875, 0.045013427734375, -0.04827880859375, 0.0003845691680908203, 0.029541015625, 0.0235137939453125, -0.056121826171875, -0.032135009765625, -0.004962921142578125, -0.0185089111328125, -0.0020465850830078125, 0.02728271484375, -0.0257110595703125, -0.0159454345703125, -0.0299835205078125, 0.030975341796875, 0.003078460693359375, 0.0185546875, 0.022125244140625, 0.0125274658203125, 0.016632080078125, -0.031402587890625, 0.0298614501953125, 0.01776123046875, -0.045196533203125, -0.0118255615234375, 0.0105438232421875, 0.01372528076171875, -0.024658203125, -0.0035800933837890625, -0.035125732421875, 0.01050567626953125, 0.0556640625, 0.03607177734375, 0.0227508544921875, 0.04046630859375, -0.07781982421875, 0.00623321533203125, -0.0694580078125, 0.005397796630859375, 0.00687408447265625, -0.040618896484375, -0.04608154296875, -0.02337646484375, -0.004650115966796875, -0.10614013671875, 0.00919342041015625, -0.00833892822265625, -0.01331329345703125, -0.0091552734375, -0.0192108154296875, -0.004241943359375, 0.034759521484375, 0.01241302490234375, -0.049285888671875, 0.05572509765625, -0.02349853515625, 0.0212860107421875, 0.004199981689453125, -0.007503509521484375, -0.0218353271484375, 0.054046630859375, 0.0274200439453125, -0.005062103271484375, 0.09869384765625, -0.035980224609375, -0.030731201171875, -0.0142822265625, 0.04107666015625, -0.034423828125, 0.0230865478515625, 0.00974273681640625, 0.019317626953125, -0.0162506103515625, 0.0004916191101074219, 0.024169921875, 0.008331298828125, -0.005855560302734375, -0.0009617805480957031, 0.0007405281066894531, -0.036651611328125, 0.0003910064697265625, 0.0108795166015625, -0.016937255859375, 0.020782470703125, 0.03277587890625, 0.0296630859375, -0.01544189453125, 0.003849029541015625, -0.0013628005981445312, 0.01058197021484375, -0.01280975341796875, 0.026763916015625, 0.021575927734375, -0.039459228515625, -0.039764404296875, 0.01026153564453125, 0.0704345703125, 0.027557373046875, 0.015289306640625, 0.0031948089599609375, 0.031219482421875, 0.0192108154296875, -0.012847900390625, 0.017364501953125, -0.035430908203125, 0.03363037109375, 0.07904052734375, -0.024993896484375, 0.055694580078125, -0.045166015625, 0.0634765625, -0.023590087890625, -0.00621795654296875, 0.0015230178833007812, 0.04876708984375, 0.0186767578125, -0.0016756057739257812, 0.02252197265625, -0.0281524658203125, -0.0200653076171875, 0.02252197265625, 0.01270294189453125, -0.007419586181640625, -0.0163421630859375, 0.060150146484375, -0.0114898681640625, -0.031585693359375, -0.008758544921875, -0.0240478515625, -0.045318603515625, 0.06622314453125, 0.01715087890625, -0.00888824462890625, -0.01374053955078125, 0.026947021484375, 0.01125335693359375, 0.003307342529296875, -0.00914764404296875, 0.035797119140625, 0.0089111328125, -0.0178680419921875, 0.034942626953125, 0.013641357421875, 0.03759765625, -0.025726318359375, 0.025299072265625, 0.0008292198181152344, -0.05096435546875, -0.005859375, -0.00696563720703125, -0.01363372802734375, 0.0125732421875, 0.0008897781372070312, 0.039031982421875, -0.02508544921875, 0.01132965087890625, -0.040283203125, 0.004955291748046875, 0.004199981689453125, 0.037506103515625, 0.01357269287109375, 0.0254364013671875, 0.0162200927734375, -0.00146484375, -0.026611328125, 0.005275726318359375, -0.022552490234375, -0.0211181640625, -0.00994873046875, 0.036773681640625, -0.00977325439453125, -0.0014209747314453125, -0.025146484375, -0.0299224853515625, -0.0008344650268554688, 0.03887939453125, 0.01279449462890625, -0.0014581680297851562, 0.0039520263671875, -0.0019292831420898438, 0.050323486328125, 0.0224761962890625, 0.0187225341796875, -0.024871826171875, -0.0105133056640625, -0.047332763671875, -0.042999267578125, 0.00978851318359375, 0.001773834228515625, -0.035797119140625, -0.00379180908203125, 0.05078125, 0.024688720703125, -0.0051422119140625, -0.0034923553466796875, 0.0047760009765625, 0.06951904296875, 0.0188140869140625, 0.01445770263671875, 0.00045990943908691406, 0.0243988037109375, 0.07080078125, -0.01290130615234375, 0.0013370513916015625, 0.004390716552734375, -0.061126708984375, 0.010345458984375, 0.047760009765625, 0.0007262229919433594, 0.0289459228515625, -0.0233306884765625, 0.0252532958984375, -0.0296173095703125, -0.01033782958984375, 0.004486083984375, -0.0173797607421875, 0.043426513671875, 0.02142333984375, 0.032440185546875, 0.01358795166015625, -0.03948974609375, 0.01233673095703125, 0.0188446044921875, -0.0108795166015625, -0.0019588470458984375, 0.00965118408203125, -0.012664794921875, 0.01479339599609375, -0.036651611328125, -0.002140045166015625, 0.023223876953125, -0.0030269622802734375, 0.0014886856079101562, -0.00962066650390625, 0.0026187896728515625, -0.003604888916015625, 0.01296234130859375, -0.050262451171875, 0.030059814453125, 0.0499267578125, -0.052337646484375, -0.041168212890625, 0.0020923614501953125, 0.01319122314453125, -0.04058837890625, 0.016937255859375, -0.0123748779296875, -0.0166168212890625, 0.03070068359375, -0.06793212890625, 0.041351318359375, -0.0416259765625, 0.05303955078125, 0.07061767578125, -0.005321502685546875, -0.003986358642578125, 0.0037479400634765625, 0.0185546875, 0.0285797119140625, 0.00812530517578125, -0.00931549072265625, 0.01555633544921875, -0.09991455078125, -0.0467529296875, 0.011962890625, 0.07513427734375, -0.01308441162109375, -0.040863037109375, 0.0226898193359375, 0.037445068359375, -0.05230712890625, -0.07928466796875, -0.043975830078125, -0.061431884765625, 0.0018129348754882812, -0.0482177734375, -0.0190582275390625, 0.0294647216796875, -0.0517578125, 0.01367950439453125, -0.0147857666015625, 0.01404571533203125, -0.0269775390625, -0.0170135498046875, -0.053131103515625, 0.015655517578125, -0.0185699462890625, 0.03216552734375, 0.00909423828125, -0.00505828857421875, -0.0018663406372070312, -0.0184173583984375, 0.0009021759033203125, 0.0665283203125, -0.00775909423828125, -0.019989013671875, 0.0060272216796875, -0.0087890625, 0.010162353515625, -0.0029926300048828125, 0.0027370452880859375, 0.041259765625, -0.038787841796875, 0.006328582763671875, -0.007648468017578125, 0.0161590576171875, 0.00405120849609375, -0.00853729248046875, 0.00914764404296875, 0.0167236328125, -0.006786346435546875, -0.038604736328125, -0.01276397705078125, -0.0012273788452148438, -0.01299285888671875, 0.0301055908203125, -0.0289764404296875, -0.0018291473388671875, -0.0011339187622070312, 0.0321044921875, 0.034698486328125, 0.0043792724609375, 0.01308441162109375, -0.00679779052734375, -0.007396697998046875, 0.0080108642578125, 0.02056884765625, -0.028167724609375, 0.0007529258728027344, -0.047943115234375, 0.0482177734375, 0.0133514404296875, 0.0009670257568359375, -0.00400543212890625, 0.00598907470703125, -0.034423828125, -0.07220458984375, 0.06195068359375, -0.0225372314453125, 0.0230712890625, -0.054962158203125, -0.048370361328125, -0.0119476318359375, 0.1256103515625, -0.0010404586791992188, -0.0149078369140625, -0.011993408203125, 0.007663726806640625, -0.0186309814453125, -0.04937744140625, -0.037689208984375, -0.01947021484375, -0.0216827392578125, 0.0018672943115234375, -0.011077880859375, -0.01024627685546875, -0.0023632049560546875, -0.0131072998046875, 0.002330780029296875, -0.0283355712890625, 0.0086517333984375, -0.023040771484375, 0.01351165771484375, 0.018829345703125, -0.0145263671875, 0.01947021484375, -0.01309967041015625, -0.033447265625, -0.0628662109375, -0.020263671875, 0.036773681640625, 0.04656982421875, -0.00536346435546875, -0.0121917724609375, -0.01433563232421875, 0.05377197265625, -0.0171661376953125, 0.01117706298828125, 0.010406494140625, 0.052337646484375, -0.039337158203125, -0.06951904296875, -0.00495147705078125, -0.06396484375, -0.0182647705078125, -0.06884765625, 0.0169219970703125, -0.004543304443359375, -0.0382080078125, 0.0300750732421875, -0.03717041015625, 0.023834228515625, -0.0643310546875, -0.0130157470703125, 0.0010471343994140625, 0.0250244140625, -0.029510498046875, 0.016937255859375, -0.020111083984375, -0.056396484375, 0.055206298828125, 0.01056671142578125, -0.0223388671875, -0.00366973876953125, 0.04766845703125, 0.006793975830078125, -0.0263214111328125, -0.0246124267578125, -0.0230255126953125, 0.01398468017578125, 0.0299224853515625, 0.04534912109375, 0.0135650634765625, 0.00452423095703125, 0.0270233154296875, 0.0112457275390625, -0.0304412841796875, -0.01493072509765625, 0.0506591796875, -0.003631591796875, 0.004581451416015625, -0.006862640380859375, -0.04925537109375, 0.052825927734375, 0.026611328125, -0.022552490234375, 0.000362396240234375, -0.00868988037109375, 0.039642333984375, -0.00982666015625, -0.02215576171875, -0.059722900390625, -0.051788330078125, 0.0160369873046875, -0.01558685302734375, -0.0297088623046875, 0.0098114013671875, 0.002582550048828125, -0.01361846923828125, -0.0236968994140625, 0.0049591064453125, -0.0234222412109375, 0.002216339111328125, -0.0237579345703125, 0.0238189697265625, -0.030181884765625, -0.01702880859375, -0.007076263427734375, 0.002346038818359375, -0.0036067962646484375, -0.004589080810546875, -0.036590576171875, -0.01538848876953125, -0.01335906982421875, 0.0173797607421875, 0.0232391357421875, -0.0143280029296875, 0.038665771484375, 0.031524658203125, -0.0290069580078125, -0.0274200439453125, -0.060791015625, 0.0024089813232421875, -0.061065673828125, -0.01186370849609375, -0.002376556396484375, 0.0024471282958984375, 0.0262298583984375, 0.04833984375, 0.0006628036499023438, 0.036651611328125, -0.01224517822265625, 0.044342041015625, 0.051116943359375, 0.0125885009765625, 0.02203369140625, -0.0027942657470703125, -0.0237579345703125, -0.00726318359375, -0.022003173828125, -0.03179931640625, 0.00554656982421875, 0.02197265625, 0.024200439453125, 0.004215240478515625, -0.01678466796875, 0.0063934326171875, -0.02215576171875, -0.01366424560546875, -0.003124237060546875, -0.01441192626953125, -0.0172271728515625, -0.01311492919921875, -0.004657745361328125, 0.016510009765625, 0.0030612945556640625, -0.016510009765625, 0.006778717041015625, -0.040496826171875, 0.0139617919921875, -0.0021648406982421875, -0.00146484375, -0.000022530555725097656, -0.0028362274169921875, -0.0229034423828125, -0.0335693359375, -0.0108489990234375, 0.01043701171875, 0.0114593505859375, -0.019500732421875, -0.03302001953125, 0.0288543701171875, 0.03375244140625, 0.0265655517578125, -0.02093505859375, -0.037109375, -0.0113525390625, -0.0230712890625, 0.05096435546875, 0.0030059814453125, -0.0301971435546875, -0.012542724609375, -0.01520538330078125, -0.02508544921875, 0.0264129638671875, 0.018829345703125, -0.049835205078125, -0.00988006591796875, 0.01153564453125, 0.03369140625, -0.0197906494140625, -0.0667724609375, -0.029388427734375, -0.03997802734375, 0.0193634033203125, -0.0137939453125, 0.00296783447265625, 0.0400390625, -0.0124053955078125, 0.04132080078125, 0.0223541259765625, 0.03271484375, -0.01045989990234375, -0.022918701171875, -0.00754547119140625, -0.0216827392578125, -0.0037899017333984375, -0.003574371337890625, 0.00351715087890625, -0.01436614990234375, 0.0167999267578125, -0.016937255859375, 0.0101318359375, -0.0355224609375, 0.006069183349609375, -0.0239410400390625, 0.032958984375, -0.060028076171875, -0.01245880126953125, 0.010162353515625, -0.0178680419921875, 0.0174560546875, 0.004550933837890625, 0.005039215087890625, -0.01131439208984375, -0.0049591064453125, -0.0031375885009765625, 0.004329681396484375, -0.049957275390625, 0.04388427734375, 0.036224365234375, -0.0096435546875, 0.0095977783203125, -0.0175933837890625, -0.00982666015625, 0.004314422607421875, 0.0213165283203125, -0.0020294189453125, 0.00801849365234375, 0.026214599609375, -0.0188140869140625, -0.0296173095703125, -0.01187896728515625, -0.033203125, 0.0330810546875, 0.07989501953125, 0.10626220703125, -0.1263427734375, 0.0379638671875, 0.04266357421875, -0.01435089111328125, 0.02325439453125, 0.00856781005859375, -0.003108978271484375, -0.019622802734375, 0.0232696533203125, -0.01216888427734375, -0.003978729248046875, -0.0101470947265625, -0.0179595947265625, 0.0035724639892578125, 0.0079498291015625, 0.06640625, 0.0092620849609375, -0.068603515625, -0.004619598388671875, 0.040283203125, -0.0237274169921875, -0.0496826171875, -0.0088958740234375, 0.0204315185546875, 0.019744873046875, -0.0587158203125, 0.0726318359375, -0.0379638671875, 0.06671142578125, 0.0029773712158203125, 0.0027675628662109375, 0.031524658203125, 0.06298828125, -0.023040771484375, 0.01165771484375, 0.0173492431640625, 0.010650634765625, -0.07281494140625, -0.00884246826171875, -0.002178192138671875, 0.05340576171875, -0.03985595703125, 0.02337646484375, -0.04815673828125, 0.0285491943359375, -0.006053924560546875, 0.01308441162109375, 0.038848876953125, -0.01251220703125, -0.01268768310546875, 0.068115234375, 0.0135498046875, -0.0380859375, -0.0171966552734375, 0.00264739990234375, -0.0088653564453125, 0.0361328125, -0.01308441162109375, 0.031036376953125, -0.00640869140625, -0.0170440673828125, -0.09259033203125, 0.09771728515625, -0.0265350341796875, 0.0340576171875, 0.03326416015625, 0.0207977294921875, -0.049560546875, -0.016998291015625, -0.0262451171875, 0.047637939453125, 0.02850341796875, 0.051513671875, -0.036163330078125, -0.020599365234375, 0.0167388916015625, 0.03558349609375, 0.0192413330078125, -0.0018310546875, -0.04388427734375, -0.0111846923828125, 0.04974365234375, 0.055450439453125, 0.033599853515625, 0.031036376953125, -0.0001767873764038086, -0.0185699462890625, 0.07794189453125, -0.048431396484375, 0.0294647216796875, 0.0005731582641601562, 0.041015625, 0.00621795654296875, 0.016571044921875, 0.0168609619140625, -0.00353240966796875, 0.0108184814453125, 0.00788116455078125, -0.011260986328125, 0.0044708251953125, -0.03399658203125, 0.01152801513671875, 0.0279388427734375, 0.00514984130859375, 0.01398468017578125, 0.0265350341796875, -0.0225372314453125, 0.0355224609375, -0.011993408203125, 0.03387451171875, 0.004550933837890625, -0.0009322166442871094, 0.10235595703125, 0.006862640380859375, 0.0063018798828125, 0.039459228515625, -0.006561279296875, 0.054534912109375, 0.039947509765625, 0.028778076171875, -0.021575927734375, 0.031524658203125, 0.0285491943359375, 0.056427001953125, -0.056121826171875, -0.052337646484375, 0.011077880859375, 0.004497528076171875, 0.028564453125, -0.0021514892578125, 0.025909423828125, -0.04412841796875, -0.0131683349609375, -0.00966644287109375, 0.013275146484375, 0.0243072509765625, -0.0012578964233398438, 0.01232147216796875, 0.051788330078125, -0.033599853515625, 0.0081939697265625, -0.0360107421875, 0.01387786865234375, 0.006183624267578125, 0.0772705078125, 0.01496124267578125, 0.0693359375, -0.048187255859375, -0.037353515625, 0.0090789794921875, 0.02545166015625, 0.007152557373046875, -0.00836944580078125, -0.04803466796875, -0.05792236328125, -0.00978851318359375, 0.046173095703125, -0.001667022705078125, 0.0445556640625, 0.034210205078125, 0.05645751953125, 0.0189056396484375, -0.005222320556640625, 0.0723876953125, -0.008026123046875, 0.0044097900390625, -0.01369476318359375, 0.0360107421875, 0.00443267822265625, 0.00732421875, -0.033905029296875, 0.087158203125, -0.0074920654296875, -0.01458740234375, 0.05670166015625, -0.0139007568359375, 0.0142059326171875, 0.07745361328125, 0.0166168212890625, 0.066650390625, 0.022186279296875, -0.046905517578125, -0.002079010009765625, -0.0322265625, -0.01494598388671875, 0.0031261444091796875, 0.0183868408203125, -0.047393798828125, 0.0604248046875, -0.004947662353515625, 0.005069732666015625, 0.045257568359375, -0.017578125, -0.01629638671875, 0.01081085205078125, 0.03961181640625, -0.01053619384765625, -0.032623291015625, -0.02520751953125, -0.0284271240234375, 0.0289764404296875, 0.01751708984375, 0.046783447265625, -0.005435943603515625, 0.040435791015625, -0.0263824462890625, 0.002887725830078125, -0.0151214599609375, -0.0269012451171875, 0.0276031494140625, 0.00162506103515625, -0.0007567405700683594, -0.0089263916015625, -0.0258636474609375, -0.0254058837890625, 0.053955078125, -0.040252685546875, -0.019683837890625, -0.0338134765625, 0.04034423828125, -0.0195770263671875, 0.00992584228515625, -0.0105743408203125, -0.0160369873046875, -0.004016876220703125, 0.008758544921875, 0.02294921875, 0.0026111602783203125, -0.0032901763916015625, 0.036895751953125, 0.0306243896484375, -0.0247344970703125, 0.043853759765625, -0.0546875, 0.0592041015625, 0.03607177734375, 0.03155517578125, 0.0299530029296875, 0.0274658203125, -0.007904052734375, 0.01503753662109375, 0.032989501953125, -0.007579803466796875, 0.044403076171875, -0.03558349609375, -0.020050048828125, 0.0215606689453125, 0.036407470703125, 0.0229339599609375, 0.0175018310546875, -0.0166778564453125, -0.03338623046875, -0.013092041015625, 0.007289886474609375, -0.026275634765625, -0.024627685546875, -0.01110076904296875, -0.00811004638671875, -0.023590087890625, -0.0755615234375, -0.0595703125, -0.022613525390625, 0.0220947265625, -0.0240478515625, -0.01190185546875, 0.0031185150146484375, -0.01451873779296875, -0.007266998291015625, -0.045867919921875, -0.072021484375, 0.0302276611328125, 0.04583740234375, 0.001739501953125, -0.0115814208984375, -0.051361083984375, -0.034820556640625, -0.044952392578125, 0.03900146484375, 0.046356201171875, -0.046661376953125, -0.025634765625, 0.02423095703125, 0.037750244140625, 0.074462890625, 0.073974609375, -0.037200927734375, -0.0006456375122070312, 0.014892578125, -0.00499725341796875, -0.06939697265625, 0.010955810546875, -0.08551025390625, 0.01282501220703125, -0.007152557373046875, 0.00780487060546875, 0.038665771484375, -0.00445556640625, -0.0482177734375, 0.04534912109375, -0.01299285888671875, -0.025146484375, -0.06866455078125, -0.0164947509765625, -0.01148223876953125, 0.04071044921875, -0.0244293212890625, -0.00882720947265625, -0.04925537109375, 0.04937744140625, -0.004791259765625, 0.020660400390625, 0.016571044921875, -0.0269775390625, -0.0210723876953125, -0.00415802001953125, 0.00104522705078125, -0.0001614093780517578, 0.00974273681640625, -0.0169830322265625, 0.0137786865234375, 0.0250396728515625, -0.02899169921875, -0.0215606689453125, -0.00490570068359375, -0.0036067962646484375, 0.00787353515625, 0.006931304931640625, -0.0125885009765625, -0.0197601318359375, -0.006267547607421875, 0.036590576171875, 0.009033203125, 0.00521087646484375, -0.00995635986328125, -0.005664825439453125, 0.00457000732421875, 0.0209503173828125, 0.0006647109985351562, -0.02001953125, 0.0193328857421875, -0.004741668701171875, -0.0007762908935546875, -0.004566192626953125, -0.00635528564453125, -0.015838623046875, -0.0183563232421875, -0.025360107421875, -0.021453857421875, -0.006023406982421875, -0.005901336669921875, 0.0181732177734375, -0.012481689453125, -0.00762939453125, -0.0017986297607421875, 0.0035686492919921875, 0.0094451904296875, 0.03167724609375, 0.014862060546875, -0.0195159912109375, 0.020355224609375, 0.0155487060546875, 0.01690673828125, -0.01085662841796875, 0.010711669921875, -0.01235198974609375, -0.025238037109375, 0.041107177734375, 0.0067901611328125, 0.050537109375, -0.0135955810546875, 0.0533447265625, 0.0164031982421875, 0.0738525390625, -0.0227203369140625, -0.024017333984375, -0.016937255859375, 0.037689208984375, -0.0142059326171875, -0.00499725341796875, 0.032470703125, -0.048248291015625, 0.00421905517578125, -0.01421356201171875, -0.04180908203125, -0.038543701171875, -0.01001739501953125, 0.045379638671875, -0.0311126708984375, 0.006496429443359375 ]
eaee1920658a4e2ece3c3d3beef3160ba1e70a4d
Wordpress Stackexchange Q: Get only the top level categories using get_categories() without foreach loop Very simple Question: Here is my get_categories() code: <?php $args = array( 'show_option_all' => '', 'show_option_none' => '', 'orderby' => 'ID', 'order' => 'ASC', 'show_count' => 0, 'hide_empty' => 0, 'exclude' => '1', 'hierarchical' => 0, 'depth' => 1, 'number' => 12 ); ?> <?php $categories = get_categories( $args ); ?> <div class="middle-left"> <ul> <?php for( $i=0; $i<4; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> <div class="middle-middle"> <ul> <?php for( $i=4; $i<8; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> <div class="middle-right"> <ul> <?php for( $i=8; $i<12; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> After a long search I got the way how to get into the stdClass object without foreach loop and I want to proceed with this way. But I want only the top level categories, no subcats. How can I modify the argument here? A: set parent to 0 $args = array( 'parent' => 0, 'hide_empty' => 0 );
Q: Get only the top level categories using get_categories() without foreach loop Very simple Question: Here is my get_categories() code: <?php $args = array( 'show_option_all' => '', 'show_option_none' => '', 'orderby' => 'ID', 'order' => 'ASC', 'show_count' => 0, 'hide_empty' => 0, 'exclude' => '1', 'hierarchical' => 0, 'depth' => 1, 'number' => 12 ); ?> <?php $categories = get_categories( $args ); ?> <div class="middle-left"> <ul> <?php for( $i=0; $i<4; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> <div class="middle-middle"> <ul> <?php for( $i=4; $i<8; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> <div class="middle-right"> <ul> <?php for( $i=8; $i<12; $i++ ) { echo "<li>" . $categories[$i]->{'name'} . "</li>"; } ?> </ul> </div> After a long search I got the way how to get into the stdClass object without foreach loop and I want to proceed with this way. But I want only the top level categories, no subcats. How can I modify the argument here? A: set parent to 0 $args = array( 'parent' => 0, 'hide_empty' => 0 ); A: Use get_terms with a parent argument. From the Codex page for that function, emphasis mine: parent (integer) Get direct children of this term (only terms whose explicit parent is this value). If 0 is passed, only top-level terms are returned. Default is an empty string. Untested, but this should do it. $categories = get_terms( 'category', array('parent' => 0) ); Of course, you need to add any other arguments you require. A: A native Wordpress solution to return the CURRENT parent category. You do not need to use foreach outside the function... function primary_categories($arr_excluded_cats) { if($arr_excluded_cats == null) { $arr_excluded_cats = array(); } $post_cats = get_the_category(); $args = array( 'orderby' => 'name', 'order' => 'ASC', 'parent' => 0 ); $primary_categories = get_categories($args); foreach ($primary_categories as $primary_category) { foreach ($post_cats as $post_cat) { if(($primary_category->slug == $post_cat->slug) && (!in_array($primary_category->slug, $arr_excluded_cats))) { return $primary_category->slug; } } } } //if you have more than two parent categories associated with the post, you can delete the ones you don't want here $dont_return_these = array( 'receitas','enciclopedico' ); //use the function like this: echo primary_categories($dont_return_these); Comments: * *if you only have one parent category by post, pass null instead of array *if you want another output instead of slug change this to return $primary_category-> slug;
wordpress
{ "language": "en", "length": 389, "provenance": "stackexchange_00019.jsonl.gz:440598", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127872" }
[ 0.04620361328125, -0.0127105712890625, 0.01319122314453125, -0.045166015625, 0.00577545166015625, -0.015411376953125, 0.032623291015625, -0.0047454833984375, -0.0118255615234375, 0.004913330078125, -0.01425933837890625, -0.0080108642578125, -0.0611572265625, -0.0297698974609375, -0.0308074951171875, -0.048919677734375, 0.024017333984375, 0.00601959228515625, 0.033935546875, -0.002925872802734375, -0.0007920265197753906, 0.007747650146484375, 0.006618499755859375, 0.06817626953125, 0.0019502639770507812, -0.07183837890625, 0.0267333984375, -0.019317626953125, -0.013946533203125, -0.04205322265625, 0.0018930435180664062, 0.057952880859375, 0.029296875, -0.01334381103515625, 0.0192108154296875, 0.03863525390625, 0.01525115966796875, -0.0079803466796875, 0.0316162109375, -0.0030040740966796875, 0.02130126953125, 0.001995086669921875, -0.007213592529296875, 0.0240020751953125, -0.05548095703125, 0.002593994140625, -0.01763916015625, 0.01036834716796875, -0.004619598388671875, -0.05523681640625, 0.03509521484375, 0.00499725341796875, 0.0582275390625, -0.022552490234375, -0.0235137939453125, 0.037933349609375, 0.0307769775390625, -0.04345703125, 0.0262603759765625, -0.020111083984375, -0.025177001953125, 0.00482177734375, 0.034271240234375, -0.0181427001953125, -0.021728515625, 0.00408935546875, -0.0022525787353515625, 0.01256561279296875, -0.022857666015625, -0.031829833984375, 0.039947509765625, -0.027008056640625, -0.00678253173828125, -0.026092529296875, -0.0287933349609375, 0.0037670135498046875, 0.01031494140625, -0.00949859619140625, 0.00731658935546875, -0.01102447509765625, -0.0168304443359375, 0.0269012451171875, -0.06365966796875, 0.0254669189453125, -0.01248931884765625, 0.043609619140625, -0.0309295654296875, -0.039642333984375, -0.0233612060546875, 0.00397491455078125, -0.0225982666015625, 0.00495147705078125, 0.0012369155883789062, 0.02752685546875, -0.01514434814453125, -0.017578125, 0.00637054443359375, 0.0189971923828125, -0.00769805908203125, -0.01251983642578125, -0.00800323486328125, -0.021209716796875, -0.01187896728515625, -0.029327392578125, 0.0294647216796875, 0.038818359375, -0.0177001953125, 0.011016845703125, 0.0643310546875, 0.0177001953125, 0.00933837890625, 0.07421875, 0.004283905029296875, 0.00228118896484375, -0.0006356239318847656, -0.014739990234375, -0.06085205078125, 0.06549072265625, -0.0166778564453125, 0.041900634765625, 0.0132598876953125, 0.03985595703125, -0.015106201171875, -0.032745361328125, 0.0092010498046875, 0.0218658447265625, -0.010894775390625, -0.037689208984375, 0.0242767333984375, -0.004207611083984375, -0.032257080078125, 0.0196380615234375, 0.0499267578125, 0.03704833984375, 0.0251617431640625, -0.0020351409912109375, 0.03436279296875, 0.006168365478515625, 0.00725555419921875, -0.0276031494140625, 0.033782958984375, 0.0163116455078125, 0.0185546875, 0.004154205322265625, -0.00885772705078125, -0.006824493408203125, 0.01404571533203125, 0.0296783447265625, 0.0220794677734375, -0.0282440185546875, 0.0189971923828125, -0.030487060546875, 0.0462646484375, -0.00408172607421875, -0.040252685546875, -0.0139617919921875, 0.0174102783203125, -0.0232696533203125, -0.03631591796875, -0.047637939453125, -0.013580322265625, 0.00832366943359375, 0.0280914306640625, -0.057769775390625, -0.06927490234375, -0.0037708282470703125, -0.034576416015625, -0.0122833251953125, 0.0174560546875, 0.00682830810546875, 0.03466796875, -0.0186004638671875, 0.0274505615234375, 0.0220489501953125, 0.016632080078125, 0.0230560302734375, -0.045135498046875, -0.039642333984375, 0.05224609375, -0.01123046875, -0.034912109375, -0.033905029296875, -0.03564453125, 0.0283355712890625, -0.064208984375, 0.033233642578125, -0.006744384765625, 0.059967041015625, 0.0203094482421875, 0.0005269050598144531, 0.051971435546875, 0.00524139404296875, -0.07159423828125, 0.0390625, 0.024078369140625, 0.01468658447265625, -0.035491943359375, 0.01275634765625, 0.0131378173828125, -0.061065673828125, 0.0216217041015625, 0.0297088623046875, -0.0280609130859375, -0.025970458984375, -0.02947998046875, -0.005462646484375, 0.01316070556640625, 0.032623291015625, -0.005565643310546875, 0.019073486328125, 0.0070343017578125, 0.010833740234375, -0.00113677978515625, -0.043548583984375, -0.0323486328125, -0.005706787109375, 0.005786895751953125, 0.0374755859375, 0.005084991455078125, 0.0050811767578125, -0.00290679931640625, -0.0202484130859375, 0.0089874267578125, 0.03485107421875, 0.07177734375, 0.0046844482421875, 0.0118865966796875, -0.0249176025390625, 0.060455322265625, 0.038238525390625, -0.085693359375, -0.0264129638671875, 0.05706787109375, 0.02685546875, -0.0548095703125, 0.00972747802734375, 0.01342010498046875, -0.0196533203125, -0.004985809326171875, 0.0447998046875, 0.0313720703125, 0.0361328125, -0.032989501953125, -0.0355224609375, 0.0616455078125, -0.07061767578125, -0.0302886962890625, -0.00670623779296875, -0.0184783935546875, -0.0196685791015625, 0.0028057098388671875, -0.00896453857421875, 0.032318115234375, 0.0169525146484375, 0.010162353515625, 0.010589599609375, 0.007183074951171875, -0.01004791259765625, -0.0273284912109375, 0.020050048828125, 0.0158233642578125, -0.03546142578125, -0.0635986328125, 0.0028247833251953125, 0.0205841064453125, -0.018280029296875, 0.0163726806640625, 0.005893707275390625, -0.0267333984375, -0.0026493072509765625, 0.021942138671875, 0.01242828369140625, -0.0055999755859375, 0.01166534423828125, -0.03289794921875, -0.0176239013671875, -0.01471710205078125, 0.01268768310546875, -0.015625, -0.02874755859375, 0.0065765380859375, 0.059906005859375, 0.040679931640625, -0.0142822265625, -0.03082275390625, -0.026153564453125, 0.005340576171875, -0.00510406494140625, -0.0209197998046875, 0.0028934478759765625, 0.03466796875, 0.0140533447265625, -0.00569915771484375, -0.028045654296875, -0.0027313232421875, -0.0048980712890625, 0.036376953125, 0.01207733154296875, 0.0186309814453125, -0.0148162841796875, 0.032440185546875, 0.0261077880859375, -0.04754638671875, 0.0299072265625, 0.00881195068359375, -0.0302276611328125, 0.0269012451171875, 0.0221710205078125, 0.0022029876708984375, -0.008056640625, -0.0170440673828125, 0.03704833984375, 0.040802001953125, 0.07952880859375, 0.01245880126953125, -0.037689208984375, 0.00504302978515625, 0.03924560546875, -0.039886474609375, -0.07318115234375, 0.03021240234375, -0.050537109375, 0.003871917724609375, -0.0184173583984375, -0.038848876953125, -0.0301971435546875, 0.01003265380859375, -0.0010814666748046875, 0.033355712890625, -0.0170745849609375, -0.006015777587890625, 0.00214385986328125, -0.03851318359375, -0.009918212890625, 0.0099334716796875, -0.00853729248046875, 0.0163421630859375, 0.0246734619140625, 0.00609588623046875, -0.053802490234375, -0.0028095245361328125, 0.0452880859375, -0.003124237060546875, 0.018768310546875, -0.0188446044921875, 0.01036834716796875, -0.0268707275390625, 0.01462554931640625, -0.029571533203125, -0.035430908203125, 0.0166778564453125, -0.0258331298828125, -0.021514892578125, -0.004222869873046875, 0.013641357421875, 0.01352691650390625, 0.017730712890625, 0.044464111328125, 0.0506591796875, 0.00550079345703125, -0.0229034423828125, 0.0193328857421875, -0.00826263427734375, -0.0054168701171875, -0.0229339599609375, 0.01428985595703125, -0.0128173828125, 0.03955078125, -0.0214080810546875, 0.013763427734375, -0.041900634765625, -0.034637451171875, 0.01366424560546875, 0.0000029802322387695312, 0.01326751708984375, 0.049102783203125, 0.047332763671875, -0.0030059814453125, -0.02423095703125, 0.005664825439453125, 0.0216064453125, 0.01236724853515625, -0.024261474609375, -0.01116943359375, -0.0285186767578125, 0.039154052734375, -0.00327301025390625, -0.003662109375, -0.0052337646484375, -0.024993896484375, 0.007038116455078125, 0.055877685546875, -0.0345458984375, -0.0167236328125, -0.047088623046875, -0.006317138671875, -0.007472991943359375, -0.0391845703125, -0.020721435546875, 0.0179901123046875, -0.09271240234375, 0.00888824462890625, 0.01763916015625, -0.051055908203125, 0.0004551410675048828, -0.0235137939453125, -0.063720703125, -0.024505615234375, 0.035888671875, -0.0199127197265625, 0.040435791015625, -0.0230712890625, 0.025634765625, -0.022613525390625, -0.0239410400390625, -0.003936767578125, -0.043182373046875, -0.0102081298828125, 0.018218994140625, 0.005191802978515625, -0.026336669921875, 0.0462646484375, -0.0148468017578125, 0.048614501953125, -0.014068603515625, 0.0216827392578125, -0.0160675048828125, 0.031463623046875, -0.0386962890625, -0.026092529296875, -0.023040771484375, -0.034210205078125, -0.056793212890625, -0.06292724609375, 0.0202484130859375, -0.0109710693359375, -0.01690673828125, 0.005374908447265625, -0.035003662109375, 0.0157012939453125, -0.062469482421875, -0.0556640625, -0.030517578125, -0.018096923828125, -0.0113677978515625, 0.003765106201171875, -0.051055908203125, -0.0667724609375, 0.029052734375, 0.01462554931640625, -0.0242156982421875, -0.0013818740844726562, 0.053192138671875, 0.02593994140625, -0.0225830078125, -0.041259765625, 0.0050201416015625, 0.0223388671875, -0.0494384765625, 0.038787841796875, -0.01422119140625, -0.036163330078125, 0.12091064453125, -0.0285491943359375, 0.057098388671875, -0.0134429931640625, 0.0256500244140625, 0.023834228515625, -0.001895904541015625, 0.01371002197265625, 0.050384521484375, -0.068115234375, 0.0282745361328125, -0.00921630859375, 0.0106353759765625, -0.004001617431640625, 0.0068511962890625, 0.0213775634765625, -0.03118896484375, -0.029876708984375, -0.024932861328125, -0.00909423828125, 0.00201416015625, 0.0416259765625, 0.051910400390625, -0.0015716552734375, 0.0347900390625, 0.028656005859375, -0.006488800048828125, 0.0416259765625, 0.0340576171875, 0.0059814453125, 0.033172607421875, 0.0028533935546875, -0.00608062744140625, -0.00476837158203125, -0.01232147216796875, 0.0185394287109375, 0.0031795501708984375, -0.0380859375, -0.00010985136032104492, -0.00998687744140625, 0.0230865478515625, -0.004787445068359375, -0.031494140625, 0.006999969482421875, 0.01105499267578125, 0.00829315185546875, 0.0003905296325683594, -0.043914794921875, 0.02349853515625, -0.0238800048828125, 0.019622802734375, 0.0102996826171875, -0.0181121826171875, 0.01129913330078125, 0.050537109375, 0.00905609130859375, 0.033233642578125, -0.024871826171875, -0.006687164306640625, 0.00988006591796875, 0.00689697265625, 0.00678253173828125, 0.0271453857421875, -0.01019287109375, -0.01006317138671875, 0.054351806640625, -0.0684814453125, -0.0195159912109375, 0.032958984375, 0.08984375, 0.0287933349609375, -0.01776123046875, -0.0200653076171875, -0.019866943359375, -0.023468017578125, 0.038482666015625, -0.004993438720703125, -0.005580902099609375, -0.051239013671875, -0.0261077880859375, 0.027862548828125, 0.01763916015625, -0.0195770263671875, -0.01507568359375, -0.02935791015625, -0.0109100341796875, 0.0218048095703125, -0.0261993408203125, 0.019866943359375, 0.02276611328125, -0.068359375, -0.02215576171875, 0.0162811279296875, -0.029510498046875, -0.02557373046875, -0.0229644775390625, -0.0302276611328125, 0.041534423828125, -0.0252838134765625, 0.088134765625, -0.0316162109375, -0.049224853515625, 0.01482391357421875, -0.011627197265625, 0.08782958984375, 0.081787109375, -0.0633544921875, 0.00047397613525390625, -0.06719970703125, -0.0129852294921875, -0.01427459716796875, -0.0240325927734375, -0.03399658203125, -0.00836944580078125, -0.00971221923828125, 0.00013577938079833984, 0.02508544921875, 0.043060302734375, -0.00971221923828125, 0.01409912109375, -0.01751708984375, -0.0018358230590820312, -0.0005240440368652344, 0.0241241455078125, -0.0095367431640625, 0.01175689697265625, 0.0029582977294921875, 0.0013761520385742188, -0.0095062255859375, -0.0087127685546875, 0.01201629638671875, -0.03515625, -0.02490234375, 0.0243072509765625, -0.050994873046875, -0.0303497314453125, 0.01097869873046875, -0.0080718994140625, 0.0004220008850097656, 0.01342010498046875, 0.0010404586791992188, -0.0118408203125, -0.0064239501953125, 0.024566650390625, -0.005645751953125, 0.04278564453125, 0.0129241943359375, -0.00811004638671875, -0.0225677490234375, -0.045745849609375, 0.0218505859375, 0.025054931640625, 0.0306396484375, -0.038787841796875, -0.0411376953125, 0.0291595458984375, 0.06475830078125, -0.036590576171875, 0.00542449951171875, 0.0548095703125, -0.0127716064453125, -0.006786346435546875, -0.005199432373046875, 0.0679931640625, 0.0305023193359375, 0.08740234375, -0.0155487060546875, 0.0019168853759765625, 0.04229736328125, -0.052642822265625, -0.0279998779296875, 0.0138397216796875, 0.047607421875, -0.0269927978515625, 0.00021064281463623047, 0.0355224609375, -0.0212860107421875, -0.0550537109375, 0.04925537109375, -0.0228271484375, -0.035430908203125, -0.018218994140625, -0.051605224609375, -0.0217437744140625, -0.01071929931640625, -0.0225830078125, -0.004665374755859375, 0.005481719970703125, 0.042816162109375, 0.0288238525390625, 0.0101318359375, -0.03411865234375, -0.0038852691650390625, 0.031951904296875, -0.031982421875, 0.01446533203125, -0.00591278076171875, -0.0108642578125, -0.08282470703125, 0.01380157470703125, 0.0172271728515625, -0.01427459716796875, 0.053497314453125, -0.042877197265625, -0.033935546875, 0.044891357421875, -0.0273895263671875, 0.035186767578125, 0.0235748291015625, -0.1048583984375, -0.0034809112548828125, -0.027740478515625, -0.02630615234375, -0.004344940185546875, -0.030029296875, 0.0037384033203125, -0.0022296905517578125, 0.0024776458740234375, -0.0130157470703125, -0.01049041748046875, 0.0303497314453125, -0.02032470703125, -0.0203857421875, 0.0247344970703125, 0.042572021484375, -0.00754547119140625, -0.01043701171875, 0.03131103515625, -0.0401611328125, -0.010833740234375, 0.018310546875, 0.02178955078125, -0.00557708740234375, 0.0007729530334472656, -0.02850341796875, 0.0401611328125, -0.030853271484375, -0.0029964447021484375, 0.011871337890625, 0.0206756591796875, -0.0015888214111328125, -0.002338409423828125, -0.0161895751953125, 0.037261962890625, 0.059295654296875, -0.0280303955078125, -0.0156402587890625, -0.028106689453125, -0.0117340087890625, 0.047454833984375, 0.0014467239379882812, 0.0057830810546875, -0.006046295166015625, -0.003063201904296875, 0.0165252685546875, 0.037109375, 0.007843017578125, 0.005336761474609375, -0.006557464599609375, 0.0311126708984375, 0.03765869140625, -0.034637451171875, 0.03631591796875, -0.016204833984375, -0.0156707763671875, 0.01457977294921875, 0.0019683837890625, -0.0114593505859375, 0.0083770751953125, 0.03839111328125, -0.03839111328125, 0.002178192138671875, 0.01303863525390625, 0.01258087158203125, -0.01064300537109375, 0.06317138671875, 0.0283966064453125, -0.029754638671875, -0.058074951171875, -0.0292510986328125, 0.037322998046875, 0.003574371337890625, -0.005985260009765625, 0.02484130859375, 0.020538330078125, 0.0689697265625, -0.0038661956787109375, 0.005344390869140625, 0.0232696533203125, 0.00598907470703125, 0.0114898681640625, 0.04547119140625, 0.02178955078125, -0.010650634765625, -0.00565338134765625, 0.08160400390625, 0.0300750732421875, -0.036224365234375, -0.056060791015625, 0.005214691162109375, 0.01047515869140625, 0.0264892578125, 0.0170745849609375, 0.056182861328125, 0.0242462158203125, 0.06842041015625, -0.0928955078125, -0.0171051025390625, 0.053192138671875, 0.028167724609375, 0.00031113624572753906, -0.053253173828125, 0.003467559814453125, -0.045166015625, -0.0157623291015625, -0.0191802978515625, 0.00030493736267089844, 0.06201171875, 0.0212860107421875, 0.05364990234375, -0.07891845703125, -0.043853759765625, 0.005084991455078125, -0.025604248046875, -0.0207366943359375, -0.007007598876953125, 0.00931549072265625, 0.0213470458984375, -0.036590576171875, 0.028472900390625, 0.01238250732421875, 0.019378662109375, 0.03985595703125, 0.05816650390625, 0.002109527587890625, 0.006954193115234375, 0.08416748046875, 0.0013875961303710938, -0.00800323486328125, 0.00165557861328125, -0.0084991455078125, 0.032379150390625, -0.00664520263671875, -0.01091766357421875, 0.0178680419921875, 0.046112060546875, -0.005573272705078125, 0.045440673828125, 0.00018513202667236328, -0.011688232421875, 0.00588226318359375, -0.039337158203125, 0.050048828125, 0.0226287841796875, -0.06707763671875, -0.03338623046875, -0.0180816650390625, 0.00975799560546875, 0.043670654296875, 0.025299072265625, -0.01241302490234375, 0.031982421875, -0.004955291748046875, -0.030792236328125, 0.03997802734375, -0.0123138427734375, 0.0013637542724609375, 0.035675048828125, -0.00015938282012939453, -0.016632080078125, -0.0258636474609375, 0.007755279541015625, -0.01387786865234375, 0.00566864013671875, 0.04290771484375, 0.01198577880859375, 0.033355712890625, 0.016815185546875, -0.00244140625, 0.0509033203125, -0.061614990234375, -0.038818359375, 0.046630859375, -0.034698486328125, 0.00400543212890625, 0.00040650367736816406, 0.0175323486328125, 0.0194854736328125, 0.053558349609375, -0.0271759033203125, 0.00759124755859375, 0.015777587890625, 0.00984954833984375, -0.046875, 0.0521240234375, -0.0131378173828125, -0.012359619140625, -0.0322265625, -0.044891357421875, 0.0467529296875, 0.047393798828125, 0.0184783935546875, 0.0006699562072753906, -0.00006109476089477539, 0.0014810562133789062, 0.0293121337890625, 0.0283355712890625, 0.0212249755859375, 0.01532745361328125, -0.00922393798828125, 0.0160064697265625, 0.016693115234375, -0.0087432861328125, 0.0275421142578125, 0.015167236328125, 0.00531005859375, 0.01922607421875, -0.02374267578125, 0.004001617431640625, 0.06317138671875, 0.03326416015625, -0.0531005859375, 0.011260986328125, 0.07684326171875, -0.049224853515625, 0.00510406494140625, -0.02117919921875, -0.041351318359375, -0.0443115234375, 0.0162811279296875, 0.00431060791015625, -0.003047943115234375, -0.0270843505859375, -0.0281829833984375, 0.0132293701171875, 0.0150146484375, 0.005222320556640625, -0.061431884765625, 0.0234375, 0.0012845993041992188, 0.057861328125, -0.051666259765625, 0.0239715576171875, -0.00400543212890625, -0.00034332275390625, -0.064208984375, 0.0160064697265625, -0.01800537109375, -0.0015888214111328125, -0.007720947265625, 0.0091705322265625, 0.015411376953125, -0.00818634033203125, 0.01204681396484375, 0.0225067138671875, 0.0157012939453125, 0.059478759765625, -0.006191253662109375, -0.0003819465637207031, 0.009490966796875, 0.03167724609375, -0.05352783203125, -0.0408935546875, 0.037628173828125, -0.00902557373046875, -0.0306243896484375, 0.01531982421875, -0.00417327880859375, 0.0269622802734375, -0.03265380859375, -0.062744140625, 0.0948486328125, -0.0172271728515625, -0.024200439453125, 0.0175933837890625, 0.0265045166015625, -0.0283660888671875, 0.0361328125, 0.0215606689453125, -0.00995635986328125, 0.028472900390625, 0.004734039306640625, 0.0295867919921875, -0.0009684562683105469, 0.0262603759765625, 0.0323486328125, -0.08685302734375, 0.00887298583984375, -0.0134735107421875, 0.005367279052734375, -0.0301361083984375, 0.00930023193359375, 0.0221710205078125, 0.0279998779296875, -0.0189361572265625, 0.0263671875, 0.021942138671875, 0.00952911376953125, 0.0310821533203125, -0.0224456787109375, -0.07525634765625, -0.048614501953125, 0.036590576171875, 0.0101776123046875, 0.0191192626953125, 0.005161285400390625, -0.0386962890625, 0.0022869110107421875, -0.0202484130859375, -0.002655029296875, 0.04736328125, -0.0989990234375, -0.006855010986328125, 0.026275634765625, 0.006618499755859375, 0.0142974853515625, -0.03619384765625, -0.02667236328125, -0.02374267578125, -0.0364990234375, -0.00307464599609375, -0.017303466796875, 0.035064697265625, -0.030181884765625, -0.01141357421875, -0.04571533203125, -0.03607177734375, -0.0008859634399414062, -0.06451416015625, -0.03472900390625, -0.06744384765625, -0.002162933349609375, 0.0106353759765625, 0.021697998046875, -0.00443267822265625, 0.0283355712890625, 0.01145172119140625, 0.0509033203125, -0.03057861328125, 0.017303466796875, 0.0217437744140625, 0.01309967041015625, -0.01971435546875, 0.032989501953125, 0.046630859375, 0.01776123046875, 0.02398681640625, 0.057464599609375, -0.01282501220703125, 0.07379150390625, 0.035430908203125, -0.044830322265625, 0.046630859375, -0.047607421875, -0.002513885498046875, -0.01236724853515625, -0.0230255126953125, -0.015899658203125, 0.00384521484375, 0.0214080810546875, -0.02691650390625, 0.01317596435546875 ]
fd917a01d0e5201ecd82e038e4f0ec2db8e4fd37
Wordpress Stackexchange Q: how to limit edit_form_after_title hook to page and post edit only? heelo, I want to use this great hook edit_form_after_title it was announced on December 1, 2012: http://make.wordpress.org/core/2012/12/01/more-hooks-on-the-edit-screen/ it curreclty hook for : post-new, post, page-new, page. how do I make it to work only in edit page/post (only post, page) thanks all A: Personally I'd use a different approach, because @Shazzad's solution seems too much global dependent, and @s_ha_dum's needs 2 hooks instead of one. I'd use get_current_screen function to get a WP_Screen object, then I'd look at its property to run (or not) something after the title: function do_something_after_title() { $scr = get_current_screen(); if ( ( $scr->base !== 'post' && $scr->base !== 'page' ) || $scr->action === 'add' ) return; echo '<h2>After title only for post or page edit screen</h2>'; } add_action( 'edit_form_after_title', 'do_something_after_title' );
Q: how to limit edit_form_after_title hook to page and post edit only? heelo, I want to use this great hook edit_form_after_title it was announced on December 1, 2012: http://make.wordpress.org/core/2012/12/01/more-hooks-on-the-edit-screen/ it curreclty hook for : post-new, post, page-new, page. how do I make it to work only in edit page/post (only post, page) thanks all A: Personally I'd use a different approach, because @Shazzad's solution seems too much global dependent, and @s_ha_dum's needs 2 hooks instead of one. I'd use get_current_screen function to get a WP_Screen object, then I'd look at its property to run (or not) something after the title: function do_something_after_title() { $scr = get_current_screen(); if ( ( $scr->base !== 'post' && $scr->base !== 'page' ) || $scr->action === 'add' ) return; echo '<h2>After title only for post or page edit screen</h2>'; } add_action( 'edit_form_after_title', 'do_something_after_title' ); A: Don't know if there was any change during the time that passed from the original question but as of 4.0 you get the post as a parameter to the hook and all that is needed to do is to check the post type. If you wonder what happens when creating a new post the answer is that WordPress generates a dummy post if the post type set to the correct type. function do_something_after_title( $post ) { if( 'post' !== $post->post_type && 'page' !== $post->post_type ) { return; } echo '<h2>After title only for post or page edit screen</h2>'; } add_action( 'edit_form_after_title', 'do_something_after_title' ); A: Check post type using $typenow and $pagenow global variables. add_action( 'edit_form_after_title', 'myprefix_edit_form_after_title' ); function myprefix_edit_form_after_title() { global $typenow, $pagenow; if( in_array($typenow, array('post', 'page') ) && $pagenow == 'post.php' ) { echo '<h2>This is edit_form_after_title!</h2>'; } }
wordpress
{ "language": "en", "length": 279, "provenance": "stackexchange_00019.jsonl.gz:440610", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127904" }
[ 0.0211029052734375, -0.00934600830078125, -0.01154327392578125, -0.0056915283203125, -0.006969451904296875, -0.0300445556640625, 0.042694091796875, -0.010284423828125, 0.007328033447265625, 0.0006680488586425781, -0.001983642578125, 0.034149169921875, -0.0245819091796875, -0.032562255859375, 0.022613525390625, -0.001796722412109375, 0.026397705078125, -0.05987548828125, -0.009552001953125, -0.0244140625, -0.0032501220703125, -0.0209808349609375, 0.043670654296875, 0.031768798828125, 0.0022296905517578125, -0.023406982421875, 0.07928466796875, -0.0197906494140625, 0.00011444091796875, -0.016204833984375, 0.0117340087890625, -0.020172119140625, 0.0241241455078125, 0.02752685546875, -0.0249176025390625, 0.028350830078125, 0.00974273681640625, -0.0113525390625, -0.003448486328125, 0.055511474609375, 0.06005859375, -0.0265350341796875, -0.032958984375, 0.0240631103515625, -0.028900146484375, -0.0247802734375, 0.058746337890625, 0.0020580291748046875, 0.048370361328125, -0.018707275390625, -0.0284271240234375, 0.0426025390625, -0.03302001953125, 0.027099609375, -0.004779815673828125, 0.00731658935546875, -0.007656097412109375, 0.01059722900390625, 0.03936767578125, 0.009490966796875, -0.0243377685546875, -0.021392822265625, 0.008758544921875, -0.045684814453125, 0.0128631591796875, -0.0104217529296875, 0.00984954833984375, 0.01093292236328125, -0.00925445556640625, 0.0220184326171875, 0.02978515625, -0.0289154052734375, -0.00818634033203125, -0.018402099609375, -0.0036716461181640625, 0.007495880126953125, 0.0190887451171875, 0.0019102096557617188, 0.0053253173828125, 0.0139923095703125, -0.006744384765625, -0.03509521484375, 0.0106353759765625, -0.0198516845703125, -0.0001323223114013672, -0.009735107421875, -0.01560211181640625, 0.018341064453125, -0.003597259521484375, -0.0191802978515625, -0.0099639892578125, -0.01522064208984375, 0.01398468017578125, 0.00644683837890625, -0.020355224609375, -0.0242767333984375, 0.00978851318359375, 0.0171966552734375, -0.0005550384521484375, 0.0032520294189453125, 0.019775390625, -0.037689208984375, 0.0146942138671875, -0.0311126708984375, 0.01100921630859375, 0.043609619140625, -0.033294677734375, -0.033111572265625, 0.01593017578125, 0.01016998291015625, -0.00955963134765625, -0.0202178955078125, -0.01256561279296875, 0.0200958251953125, -0.0269622802734375, -0.0104522705078125, -0.04327392578125, 0.0032405853271484375, -0.017486572265625, 0.02874755859375, -0.00972747802734375, -0.0169677734375, 0.03717041015625, -0.033355712890625, 0.040435791015625, 0.00995635986328125, -0.0401611328125, -0.0098724365234375, 0.04254150390625, 0.0225982666015625, -0.02197265625, 0.0014791488647460938, 0.05206298828125, 0.0139923095703125, 0.006595611572265625, -0.0164337158203125, -0.059051513671875, -0.007640838623046875, -0.005222320556640625, -0.0052642822265625, -0.044036865234375, -0.02105712890625, 0.054962158203125, -0.032440185546875, 0.006435394287109375, -0.003498077392578125, -0.00955963134765625, 0.034698486328125, 0.030059814453125, -0.048309326171875, 0.058135986328125, -0.0455322265625, 0.027191162109375, 0.0290374755859375, -0.0176849365234375, -0.0396728515625, 0.049346923828125, -0.050323486328125, 0.0252685546875, -0.06121826171875, -0.0085296630859375, -0.00267791748046875, 0.024444580078125, -0.07037353515625, -0.0819091796875, 0.00937652587890625, -0.048126220703125, -0.0142669677734375, 0.0181884765625, -0.006298065185546875, 0.046173095703125, 0.015380859375, 0.01136016845703125, -0.0117645263671875, -0.01348876953125, -0.00533294677734375, -0.033538818359375, 0.007251739501953125, 0.030181884765625, -0.004688262939453125, -0.0195159912109375, -0.035003662109375, 0.0220794677734375, -0.00691986083984375, -0.06585693359375, 0.0289154052734375, 0.0110321044921875, 0.053680419921875, 0.0195770263671875, 0.01183319091796875, 0.06365966796875, 0.0167083740234375, -0.01479339599609375, 0.0004177093505859375, -0.0115203857421875, -0.034820556640625, 0.01239013671875, -0.0005145072937011719, -0.034912109375, 0.023406982421875, 0.0236968994140625, 0.0133209228515625, 0.00592041015625, -0.0167388916015625, -0.05511474609375, 0.005115509033203125, -0.0200042724609375, 0.037506103515625, -0.021942138671875, -0.01097869873046875, 0.0254058837890625, -0.0247344970703125, -0.00765228271484375, -0.045196533203125, -0.040771484375, -0.00879669189453125, -0.0355224609375, 0.0076904296875, 0.01525115966796875, 0.032501220703125, 0.0230865478515625, -0.019256591796875, 0.007038116455078125, -0.01593017578125, 0.08416748046875, -0.0066680908203125, -0.012664794921875, -0.027252197265625, 0.0252838134765625, 0.0139007568359375, -0.09283447265625, 0.0546875, 0.01898193359375, 0.046966552734375, -0.02587890625, -0.0167083740234375, -0.0494384765625, -0.07513427734375, 0.01126861572265625, 0.06396484375, 0.0236053466796875, 0.0237274169921875, -0.01126861572265625, 0.0154876708984375, -0.0013866424560546875, -0.03448486328125, 0.031707763671875, -0.0234375, -0.0064697265625, 0.062103271484375, -0.02508544921875, 0.048431396484375, 0.01073455810546875, -0.0204620361328125, -0.0032367706298828125, 0.047576904296875, -0.01520538330078125, -0.006191253662109375, 0.005466461181640625, -0.055694580078125, 0.0239410400390625, -0.09600830078125, -0.06353759765625, -0.0306243896484375, 0.00011026859283447266, -0.0008578300476074219, 0.03155517578125, 0.020477294921875, -0.017242431640625, -0.01381683349609375, 0.03326416015625, 0.016326904296875, 0.00885009765625, -0.002773284912109375, -0.0298004150390625, -0.021392822265625, -0.0151519775390625, 0.0291900634765625, -0.02001953125, -0.04315185546875, -0.005420684814453125, -0.01241302490234375, 0.0205535888671875, -0.013031005859375, 0.0230865478515625, -0.06268310546875, 0.01520538330078125, -0.017608642578125, 0.03240966796875, -0.0131378173828125, 0.0016469955444335938, -0.004856109619140625, -0.0305328369140625, 0.04205322265625, 0.035919189453125, -0.043853759765625, -0.00855255126953125, -0.024658203125, 0.03887939453125, -0.0364990234375, 0.0469970703125, 0.06256103515625, -0.06402587890625, 0.048370361328125, -0.0038604736328125, -0.020050048828125, -0.00682830810546875, -0.0141143798828125, -0.0228424072265625, 0.029693603515625, -0.11639404296875, 0.003589630126953125, 0.0291290283203125, 0.05975341796875, 0.0153656005859375, -0.029510498046875, 0.0168304443359375, 0.0367431640625, -0.046356201171875, -0.060821533203125, -0.00811004638671875, -0.0643310546875, 0.017730712890625, 0.0136566162109375, -0.011993408203125, -0.0215606689453125, 0.048797607421875, 0.01366424560546875, -0.041656494140625, -0.00507354736328125, 0.0186767578125, -0.016693115234375, -0.027801513671875, -0.05218505859375, 0.0045318603515625, 0.0045623779296875, 0.00046253204345703125, 0.049072265625, 0.0025730133056640625, -0.053314208984375, 0.01035308837890625, -0.018890380859375, -0.0163421630859375, 0.01548004150390625, -0.01059722900390625, -0.026885986328125, 0.0101318359375, 0.01117706298828125, -0.03021240234375, -0.0007219314575195312, 0.035308837890625, -0.02142333984375, -0.02313232421875, -0.0120697021484375, 0.003444671630859375, 0.044342041015625, 0.03570556640625, 0.0195770263671875, 0.055419921875, -0.01629638671875, -0.007175445556640625, -0.0188446044921875, -0.055511474609375, 0.0196075439453125, 0.0340576171875, -0.0113677978515625, 0.005649566650390625, -0.019439697265625, 0.00812530517578125, 0.025421142578125, -0.0244598388671875, 0.03155517578125, -0.0110321044921875, -0.0160369873046875, -0.0016336441040039062, 0.005275726318359375, 0.029876708984375, 0.007053375244140625, 0.0141143798828125, 0.01045989990234375, 0.0487060546875, -0.01097869873046875, 0.061920166015625, -0.046783447265625, -0.038421630859375, 0.037750244140625, -0.0206451416015625, 0.0299072265625, -0.06341552734375, -0.0255279541015625, -0.037994384765625, 0.06878662109375, -0.04949951171875, -0.0237884521484375, -0.03643798828125, 0.0171051025390625, 0.007373809814453125, -0.04046630859375, 0.0390625, -0.0191497802734375, -0.10308837890625, 0.06427001953125, 0.0257415771484375, -0.01505279541015625, -0.0306549072265625, 0.0540771484375, -0.08404541015625, -0.0244903564453125, 0.026397705078125, -0.02532958984375, -0.00168609619140625, 0.03131103515625, -0.0325927734375, 0.03204345703125, -0.045623779296875, -0.0186614990234375, -0.08050537109375, 0.01168060302734375, -0.0292816162109375, 0.038909912109375, 0.0160980224609375, -0.008270263671875, -0.0198516845703125, 0.0155181884765625, 0.02252197265625, 0.0176544189453125, -0.003147125244140625, -0.00896453857421875, 0.015869140625, -0.004222869873046875, -0.0013055801391601562, -0.0182342529296875, -0.0035419464111328125, 0.007373809814453125, -0.00801849365234375, 0.037078857421875, -0.0306396484375, -0.0266571044921875, -0.0160675048828125, -0.0391845703125, -0.0362548828125, -0.025909423828125, -0.0193328857421875, 0.031463623046875, -0.033538818359375, 0.010894775390625, -0.060394287109375, -0.09295654296875, 0.0162200927734375, -0.000797271728515625, -0.0122528076171875, -0.001495361328125, 0.041015625, 0.02618408203125, -0.026031494140625, 0.0208587646484375, -0.0263824462890625, 0.03704833984375, 0.007015228271484375, 0.022369384765625, -0.01174163818359375, -0.042449951171875, 0.10064697265625, 0.00982666015625, -0.017547607421875, -0.0249786376953125, 0.043243408203125, 0.011474609375, -0.0023212432861328125, -0.01727294921875, -0.0265350341796875, 0.047576904296875, -0.046661376953125, -0.046966552734375, 0.0232391357421875, 0.0007686614990234375, 0.0199737548828125, -0.0290069580078125, 0.08453369140625, 0.01050567626953125, -0.0035305023193359375, -0.019073486328125, 0.0616455078125, 0.0100555419921875, 0.0211944580078125, 0.01396942138671875, -0.0119781494140625, 0.0243988037109375, -0.00611114501953125, -0.00656890869140625, 0.0030422210693359375, 0.00435638427734375, 0.03729248046875, -0.0259246826171875, 0.00884246826171875, -0.0124053955078125, 0.0009570121765136719, 0.0308990478515625, 0.01251983642578125, -0.00909423828125, -0.0276031494140625, -0.0120697021484375, 0.0151519775390625, -0.0245513916015625, 0.0248870849609375, 0.005657196044921875, 0.0019588470458984375, 0.021270751953125, 0.0102386474609375, 0.039093017578125, -0.00502777099609375, 0.00601959228515625, 0.044921875, 0.02471923828125, -0.019805908203125, 0.03277587890625, 0.02911376953125, 0.0216217041015625, 0.004184722900390625, -0.0355224609375, 0.03875732421875, 0.05511474609375, -0.01560211181640625, -0.001857757568359375, 0.06134033203125, -0.0271759033203125, -0.00965118408203125, 0.01326751708984375, -0.028594970703125, -0.0241851806640625, 0.046051025390625, 0.00153350830078125, 0.00824737548828125, 0.003894805908203125, 0.00814056396484375, 0.026153564453125, -0.022613525390625, 0.044036865234375, 0.055694580078125, -0.063720703125, 0.00901031494140625, 0.048553466796875, 0.0037937164306640625, -0.00783538818359375, -0.00001990795135498047, 0.0124359130859375, -0.003162384033203125, 0.0121612548828125, -0.0172576904296875, -0.0176544189453125, -0.006622314453125, 0.01471710205078125, -0.032379150390625, 0.006587982177734375, 0.02813720703125, 0.0174713134765625, -0.041717529296875, 0.0009927749633789062, -0.0265655517578125, 0.0024871826171875, -0.017822265625, 0.02178955078125, -0.045867919921875, 0.020751953125, -0.043701171875, 0.003383636474609375, 0.038330078125, 0.0203857421875, -0.04254150390625, -0.0018100738525390625, -0.057586669921875, -0.008270263671875, -0.0253753662109375, -0.06561279296875, -0.0214996337890625, -0.027984619140625, 0.00601959228515625, 0.02606201171875, -0.0125274658203125, -0.0250091552734375, 0.00362396240234375, 0.01381683349609375, 0.00965118408203125, 0.0426025390625, 0.0016775131225585938, 0.08489990234375, -0.0238037109375, 0.045257568359375, 0.00563812255859375, 0.031524658203125, -0.017547607421875, -0.00907135009765625, 0.017120361328125, -0.0748291015625, -0.050933837890625, -0.006072998046875, -0.028106689453125, 0.060333251953125, 0.03314208984375, -0.0063934326171875, 0.0174407958984375, -0.01374053955078125, 0.0003647804260253906, -0.018768310546875, 0.00675201416015625, -0.01953125, -0.020416259765625, 0.0367431640625, -0.0300140380859375, 0.00380706787109375, -0.016571044921875, -0.00862884521484375, 0.027862548828125, -0.0264434814453125, 0.0262603759765625, 0.0226898193359375, 0.00550079345703125, 0.01348114013671875, 0.06329345703125, -0.033966064453125, 0.03021240234375, 0.02813720703125, 0.00737762451171875, 0.044677734375, -0.0091552734375, 0.0177001953125, 0.0023403167724609375, 0.0328369140625, -0.007366180419921875, 0.01495361328125, 0.0413818359375, -0.0181121826171875, 0.02020263671875, 0.06597900390625, 0.07720947265625, -0.092529296875, 0.017486572265625, 0.0233154296875, 0.0261688232421875, 0.056488037109375, -0.02862548828125, 0.033172607421875, 0.0013818740844726562, 0.05487060546875, -0.00821685791015625, -0.0229034423828125, 0.01690673828125, -0.01319122314453125, -0.004718780517578125, -0.02008056640625, 0.072998046875, 0.012115478515625, -0.033782958984375, -0.0245208740234375, 0.01806640625, -0.0175018310546875, -0.0628662109375, -0.023895263671875, 0.0182037353515625, -0.04071044921875, -0.09869384765625, 0.001110076904296875, 0.00902557373046875, 0.0092620849609375, -0.00023484230041503906, -0.016387939453125, -0.0011339187622070312, 0.02227783203125, -0.03997802734375, 0.0185699462890625, 0.012664794921875, -0.036468505859375, -0.043609619140625, -0.017547607421875, -0.0044708251953125, -0.0020923614501953125, -0.001068115234375, 0.02325439453125, -0.0220184326171875, -0.033203125, -0.003696441650390625, 0.0110626220703125, 0.056854248046875, -0.00797271728515625, -0.038421630859375, 0.012451171875, 0.0082550048828125, 0.006084442138671875, -0.0109100341796875, -0.01006317138671875, -0.0272064208984375, -0.01385498046875, -0.006328582763671875, -0.041534423828125, -0.01320648193359375, -0.031829833984375, -0.06341552734375, 0.1251220703125, -0.02142333984375, 0.02484130859375, -0.0010023117065429688, 0.04229736328125, -0.03466796875, 0.015655517578125, -0.07342529296875, 0.055938720703125, 0.0030307769775390625, 0.05560302734375, -0.062164306640625, 0.005100250244140625, 0.0011882781982421875, 0.00946044921875, 0.0178680419921875, 0.007175445556640625, -0.005706787109375, -0.007415771484375, 0.031768798828125, 0.04736328125, -0.00640869140625, 0.0084991455078125, 0.01397705078125, 0.0316162109375, 0.01119232177734375, -0.0298004150390625, 0.0323486328125, -0.06744384765625, -0.0159149169921875, 0.0293426513671875, 0.008148193359375, 0.000362396240234375, 0.0020771026611328125, 0.0482177734375, -0.02728271484375, -0.00214385986328125, 0.02093505859375, -0.02001953125, -0.0210113525390625, 0.035919189453125, 0.0191497802734375, 0.006443023681640625, 0.01148223876953125, -0.034210205078125, 0.04302978515625, 0.0171966552734375, 0.0296173095703125, 0.05908203125, 0.0284881591796875, 0.0106048583984375, 0.01271820068359375, 0.029541015625, 0.0257110595703125, 0.0034389495849609375, 0.032623291015625, 0.03912353515625, 0.01995849609375, -0.00545501708984375, 0.03387451171875, 0.058380126953125, 0.053802490234375, -0.05291748046875, 0.0172271728515625, -0.006298065185546875, -0.0028247833251953125, -0.007244110107421875, -0.037384033203125, 0.00008893013000488281, 0.032257080078125, 0.0401611328125, -0.0287933349609375, 0.00510406494140625, 0.0220184326171875, 0.0289764404296875, -0.003429412841796875, 0.0013580322265625, -0.03436279296875, -0.00980377197265625, -0.0380859375, -0.006778717041015625, 0.0059967041015625, 0.03057861328125, 0.008270263671875, 0.050933837890625, 0.01013946533203125, -0.0028514862060546875, 0.0004863739013671875, 0.0091705322265625, -0.0227508544921875, 0.0261993408203125, -0.04705810546875, -0.042205810546875, -0.0199432373046875, 0.031768798828125, 0.041656494140625, 0.049224853515625, 0.06365966796875, 0.00562286376953125, -0.010162353515625, 0.019195556640625, -0.003459930419921875, -0.03564453125, -0.0311126708984375, -0.01715087890625, -0.006710052490234375, 0.008544921875, -0.01277923583984375, 0.0022144317626953125, 0.004573822021484375, 0.0159912109375, -0.04949951171875, 0.00371551513671875, 0.005680084228515625, -0.04400634765625, 0.01074981689453125, 0.03533935546875, 0.0284576416015625, -0.0032482147216796875, -0.0849609375, -0.0011692047119140625, -0.0130157470703125, -0.07769775390625, 0.00959014892578125, 0.049774169921875, -0.00833892822265625, -0.017608642578125, -0.007251739501953125, -0.0008664131164550781, 0.00661468505859375, 0.0090789794921875, -0.00991058349609375, 0.012603759765625, 0.02972412109375, 0.0007643699645996094, -0.04693603515625, -0.01605224609375, -0.02618408203125, 0.05596923828125, 0.0316162109375, 0.0016603469848632812, 0.0008263587951660156, 0.04034423828125, -0.01552581787109375, 0.0266876220703125, -0.0247344970703125, -0.03717041015625, 0.039886474609375, 0.027099609375, 0.020233154296875, -0.0135345458984375, -0.0275115966796875, 0.039337158203125, 0.01136016845703125, -0.01166534423828125, 0.032745361328125, -0.040191650390625, 0.01458740234375, -0.01129913330078125, 0.0096435546875, -0.01446533203125, 0.0026874542236328125, 0.00662994384765625, -0.0014314651489257812, 0.0277099609375, 0.011077880859375, -0.0030536651611328125, 0.001964569091796875, -0.028350830078125, 0.01451873779296875, 0.010498046875, 0.0181427001953125, -0.016021728515625, 0.0178375244140625, -0.09130859375, 0.01079559326171875, 0.0235443115234375, -0.0011224746704101562, 0.003753662109375, 0.04034423828125, -0.0172271728515625, 0.009307861328125, -0.0184783935546875, -0.040283203125, -0.0382080078125, 0.004608154296875, -0.032440185546875, 0.00829315185546875, -0.038238525390625, -0.0008530616760253906, -0.0131683349609375, -0.022552490234375, -0.03515625, -0.05963134765625, -0.00775146484375, 0.0249786376953125, -0.030914306640625, -0.05828857421875, -0.0657958984375, -0.0236663818359375, 0.0148773193359375, 0.007843017578125, -0.042633056640625, 0.0340576171875, -0.0283660888671875, -0.0106658935546875, -0.0121002197265625, -0.013458251953125, -0.01016998291015625, -0.007110595703125, -0.04052734375, -0.00757598876953125, -0.039642333984375, 0.0207977294921875, -0.00209808349609375, 0.01361846923828125, 0.052154541015625, -0.0228424072265625, -0.08709716796875, 0.00885009765625, 0.01495361328125, 0.05548095703125, 0.016448974609375, -0.0301361083984375, -0.042266845703125, 0.033782958984375, 0.0211181640625, -0.058197021484375, -0.009613037109375, -0.0197906494140625, -0.004734039306640625, 0.01763916015625, -0.023681640625, -0.00710296630859375, -0.043853759765625, -0.040557861328125, 0.0176544189453125, 0.02716064453125, -0.038726806640625, -0.02728271484375, 0.02899169921875, -0.0010900497436523438, 0.01171112060546875, 0.0081787109375, -0.0176849365234375, -0.018280029296875, 0.0012369155883789062, 0.0196075439453125, 0.01210784912109375, 0.02630615234375, 0.0290679931640625, -0.0299072265625, 0.0079193115234375, -0.0116729736328125, -0.01068878173828125, 0.0128173828125, -0.0272369384765625, 0.034332275390625, 0.0232696533203125, -0.05609130859375, 0.03106689453125, -0.0035839080810546875, 0.021331787109375, -0.00279998779296875, -0.05267333984375, -0.04583740234375, -0.038177490234375, 0.061492919921875, 0.033355712890625, 0.02801513671875, -0.0145111083984375, 0.020660400390625, -0.0239410400390625, -0.06610107421875, -0.00969696044921875, 0.0203399658203125, -0.03399658203125, 0.0019893646240234375, -0.0033416748046875, -0.043914794921875, -0.007366180419921875, 0.01349639892578125, -0.056640625, 0.0045623779296875, -0.00994110107421875, 0.0064544677734375, -0.0513916015625, 0.01030731201171875, 0.063720703125, -0.053497314453125, -0.0036468505859375, 0.0182342529296875, -0.007656097412109375, 0.01751708984375, 0.0089874267578125, 0.015869140625, 0.0206451416015625, -0.058837890625, 0.003955841064453125, -0.0069427490234375, 0.06536865234375, -0.04736328125, -0.0278472900390625, -0.04107666015625, 0.03619384765625, 0.01239776611328125, 0.02752685546875, -0.0178680419921875, 0.0189361572265625, 0.013916015625, 0.09991455078125, -0.040374755859375, 0.059722900390625, 0.0021114349365234375, -0.0080413818359375, -0.007587432861328125, 0.039459228515625, 0.051361083984375, -0.0202789306640625, -0.00574493408203125, 0.01007080078125, -0.0059967041015625, -0.0556640625, 0.0307769775390625, -0.0157470703125, 0.01555633544921875, 0.017791748046875 ]
dd69594f754e4f0df559cf0d25b1dd270bf3d834
Wordpress Stackexchange Q: user_login vs. user_nicename When you call the get_users() functions, a list of user objects are returned. Each of those users has a number of properties. What is the difference between user_login and user_nicename in those returned properties for each user? And which of those two properties are displayed in the URL? (I am asking because both properties are the same in my case!). A: Simple difference, user_login is used to validate login to the site, while user_nicename is used to create Author Permalink, Post Permalink
Q: user_login vs. user_nicename When you call the get_users() functions, a list of user objects are returned. Each of those users has a number of properties. What is the difference between user_login and user_nicename in those returned properties for each user? And which of those two properties are displayed in the URL? (I am asking because both properties are the same in my case!). A: Simple difference, user_login is used to validate login to the site, while user_nicename is used to create Author Permalink, Post Permalink A: I wrote a blog post about WordPress names to document this. Here's the scoop: * *Username: column "user_login" from wp_users, this is what would typically be called a "user ID" in plain English. *Nickname: metakey "nickname" from wp_usermeta. This is similar to a "handle" in various chat programs. It's preferred to display this field instead of wp_users.user_login if you need something other than a user's true name to identify someone. *Column "user_nicename" from wp_users. This is the user_login converted to a WordPress "slug" for use in URLs. A: user_nicename is url sanitized version of user_login. In general, if you don't use any special characters in your login, then your nicename will always be the same as login. But if you enter email address in the login field during registration, then you will see the difference. For instance, if your login is [email protected] then you will have userexample-com nicename and it will be used in author's urls (like author's archive, post permalink, etc).
wordpress
{ "language": "en", "length": 249, "provenance": "stackexchange_00019.jsonl.gz:440611", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127905" }
[ 0.0455322265625, -0.00933837890625, -0.0204010009765625, -0.015777587890625, -0.003421783447265625, -0.03363037109375, 0.02642822265625, 0.003818511962890625, -0.030487060546875, 0.054107666015625, 0.004291534423828125, 0.060394287109375, 0.006561279296875, -0.01033782958984375, 0.0121612548828125, 0.004909515380859375, 0.02880859375, -0.04083251953125, 0.009613037109375, -0.041290283203125, 0.022491455078125, -0.0189666748046875, 0.0145111083984375, 0.0249786376953125, 0.04315185546875, -0.0670166015625, 0.06201171875, -0.0208587646484375, 0.04510498046875, 0.004039764404296875, 0.023040771484375, -0.0386962890625, 0.023651123046875, 0.0298004150390625, -0.041778564453125, 0.0002808570861816406, -0.01100921630859375, 0.022552490234375, 0.01523590087890625, -0.024566650390625, 0.03594970703125, -0.0037841796875, -0.041015625, -0.0352783203125, -0.028717041015625, -0.0282440185546875, 0.03173828125, 0.01220703125, 0.012298583984375, -0.021484375, 0.0225677490234375, 0.0294342041015625, 0.026214599609375, 0.02716064453125, -0.00885772705078125, 0.037933349609375, -0.0302581787109375, 0.003002166748046875, 0.035247802734375, 0.0204925537109375, -0.02679443359375, -0.0222320556640625, 0.0138702392578125, -0.0419921875, -0.006114959716796875, 0.0206451416015625, 0.0007953643798828125, 0.0243682861328125, -0.0090179443359375, -0.041961669921875, -0.0256805419921875, -0.004566192626953125, -0.0098419189453125, -0.0224456787109375, -0.0020847320556640625, 0.02667236328125, -0.0216522216796875, -0.016326904296875, 0.0177764892578125, 0.0104522705078125, -0.047637939453125, 0.0107879638671875, -0.11175537109375, 0.033203125, -0.0285797119140625, 0.05859375, -0.025787353515625, -0.02532958984375, 0.004974365234375, -0.0177154541015625, -0.0038890838623046875, -0.0582275390625, -0.01088714599609375, 0.045654296875, 0.016510009765625, -0.032135009765625, 0.00682830810546875, 0.03607177734375, -0.00778961181640625, -0.0036468505859375, -0.004352569580078125, -0.0162811279296875, -0.0211944580078125, -0.00957489013671875, -0.01493072509765625, 0.0267333984375, 0.034576416015625, 0.07073974609375, 0.01357269287109375, -0.005153656005859375, -0.0010814666748046875, 0.004230499267578125, -0.028228759765625, -0.068115234375, 0.0110015869140625, 0.043670654296875, -0.03759765625, 0.034149169921875, 0.0178985595703125, 0.02099609375, -0.0218048095703125, -0.005954742431640625, 0.024505615234375, -0.01593017578125, 0.00846099853515625, 0.00024175643920898438, -0.0170135498046875, -0.0139617919921875, -0.039947509765625, 0.056671142578125, -0.016510009765625, -0.00856781005859375, 0.00007528066635131836, 0.0096435546875, -0.023193359375, -0.034210205078125, -0.00836181640625, 0.0079803466796875, -0.0013151168823242188, 0.0330810546875, -0.01479339599609375, -0.0684814453125, -0.0161285400390625, 0.0004754066467285156, -0.0260772705078125, 0.024993896484375, 0.0207977294921875, 0.007068634033203125, -0.031280517578125, -0.0687255859375, 0.001338958740234375, -0.0144195556640625, -0.059356689453125, 0.032073974609375, 0.038909912109375, 0.039215087890625, -0.03216552734375, 0.0014543533325195312, 0.04644775390625, 0.055328369140625, 0.046905517578125, 0.00464630126953125, -0.0197296142578125, -0.010894775390625, -0.048828125, -0.009979248046875, -0.00980377197265625, -0.0075836181640625, 0.02618408203125, -0.0031299591064453125, 0.02288818359375, 0.0018596649169921875, 0.042236328125, 0.0284576416015625, 0.01255035400390625, 0.01129150390625, -0.049652099609375, 0.0836181640625, 0.0012197494506835938, -0.0239410400390625, -0.0032825469970703125, -0.04461669921875, 0.017578125, 0.02117919921875, -0.034515380859375, -0.01041412353515625, 0.020538330078125, 0.019805908203125, 0.0238494873046875, 0.0095977783203125, 0.0221710205078125, 0.0261688232421875, -0.021484375, 0.0269927978515625, 0.002902984619140625, -0.0494384765625, 0.0231170654296875, -0.015411376953125, -0.001049041748046875, 0.004730224609375, 0.03814697265625, -0.043182373046875, 0.058380126953125, -0.0401611328125, -0.04302978515625, 0.011993408203125, -0.0205078125, 0.0257568359375, -0.03692626953125, 0.0273895263671875, 0.0184478759765625, 0.01218414306640625, -0.03375244140625, 0.034332275390625, 0.03955078125, -0.005218505859375, -0.010955810546875, 0.023529052734375, -0.0037899017333984375, -0.001735687255859375, -0.001190185546875, 0.004573822021484375, -0.0013580322265625, 0.007381439208984375, 0.0220184326171875, 0.003292083740234375, 0.002544403076171875, 0.00246429443359375, 0.03436279296875, 0.0143280029296875, 0.015472412109375, -0.01088714599609375, 0.05999755859375, 0.08245849609375, 0.0031375885009765625, 0.006977081298828125, -0.007350921630859375, -0.0362548828125, 0.0035305023193359375, 0.032379150390625, 0.0338134765625, -0.019287109375, -0.0367431640625, -0.022430419921875, 0.0241241455078125, 0.01226806640625, 0.0224456787109375, -0.0126953125, 0.0210723876953125, 0.061920166015625, -0.01282501220703125, 0.0150146484375, 0.005069732666015625, -0.025238037109375, 0.004108428955078125, 0.04534912109375, -0.01142120361328125, 0.023956298828125, -0.0014247894287109375, 0.020050048828125, -0.033477783203125, -0.02557373046875, 0.03167724609375, -0.0350341796875, -0.04638671875, -0.0213165283203125, -0.038604736328125, -0.021270751953125, -0.019775390625, -0.01309967041015625, 0.04022216796875, -0.00023567676544189453, -0.01251983642578125, 0.02044677734375, 0.06121826171875, 0.0016632080078125, -0.001514434814453125, -0.0301361083984375, -0.0128021240234375, 0.007297515869140625, -0.00620269775390625, -0.026031494140625, -0.0088653564453125, 0.006832122802734375, 0.026611328125, -0.032257080078125, 0.0206451416015625, 0.05108642578125, 0.0184783935546875, -0.0177764892578125, 0.025726318359375, -0.01043701171875, -0.030487060546875, 0.041107177734375, -0.0270233154296875, -0.0445556640625, 0.028289794921875, -0.01275634765625, -0.0025424957275390625, -0.01268768310546875, 0.0293426513671875, 0.0391845703125, 0.025787353515625, -0.03759765625, 0.0276336669921875, -0.02325439453125, 0.01316070556640625, 0.01201629638671875, 0.002704620361328125, 0.016448974609375, -0.056732177734375, 0.01378631591796875, 0.00753021240234375, 0.06341552734375, -0.007694244384765625, -0.046173095703125, 0.00562286376953125, 0.03125, -0.0204620361328125, -0.036956787109375, -0.09967041015625, -0.06365966796875, 0.050018310546875, -0.023895263671875, 0.004230499267578125, 0.009552001953125, -0.0292205810546875, 0.036956787109375, 0.00653839111328125, -0.014434814453125, -0.038604736328125, -0.0341796875, -0.0293426513671875, 0.0225677490234375, -0.016693115234375, -0.00983428955078125, -0.002536773681640625, 0.01129913330078125, -0.0295257568359375, -0.0038967132568359375, -0.03668212890625, -0.0115966796875, 0.005340576171875, -0.06390380859375, -0.0230712890625, 0.0197601318359375, 0.00251007080078125, 0.006671905517578125, 0.04095458984375, 0.0156402587890625, -0.0245361328125, -0.006061553955078125, 0.026092529296875, -0.0277099609375, 0.0623779296875, -0.005279541015625, -0.05889892578125, 0.034759521484375, 0.07537841796875, -0.034149169921875, -0.0009350776672363281, -0.030517578125, -0.056182861328125, 0.07232666015625, 0.04974365234375, -0.007904052734375, 0.0036163330078125, -0.01055908203125, -0.005016326904296875, 0.0120697021484375, -0.0297698974609375, -0.00804901123046875, 0.020172119140625, -0.006439208984375, 0.0218505859375, 0.01515960693359375, -0.00331878662109375, -0.046661376953125, -0.023651123046875, -0.0296478271484375, -0.0086669921875, -0.006122589111328125, -0.01479339599609375, 0.00247955322265625, -0.0443115234375, 0.036468505859375, -0.0389404296875, 0.006420135498046875, -0.03656005859375, -0.01493072509765625, -0.00414276123046875, 0.0792236328125, 0.0164337158203125, 0.003757476806640625, 0.00865936279296875, 0.0176544189453125, -0.08251953125, -0.0433349609375, -0.08648681640625, 0.0091400146484375, -0.045074462890625, -0.044464111328125, -0.0192413330078125, -0.01375579833984375, -0.01421356201171875, 0.057342529296875, -0.034698486328125, -0.031097412109375, 0.006870269775390625, 0.043487548828125, 0.03460693359375, -0.040313720703125, 0.0193023681640625, -0.0220794677734375, 0.03167724609375, -0.01404571533203125, -0.01309967041015625, -0.00801849365234375, -0.0136871337890625, 0.016998291015625, 0.03997802734375, -0.033782958984375, -0.007404327392578125, 0.019195556640625, -0.00832366943359375, 0.0014715194702148438, 0.0287628173828125, 0.0014820098876953125, 0.060821533203125, 0.0161285400390625, 0.0037250518798828125, 0.0052642822265625, 0.005741119384765625, -0.0662841796875, -0.0692138671875, -0.0560302734375, -0.027740478515625, 0.0799560546875, -0.01471710205078125, -0.00016319751739501953, -0.045318603515625, 0.0029926300048828125, 0.0202178955078125, 0.0128326416015625, 0.0196380615234375, -0.0084991455078125, -0.004215240478515625, -0.042388916015625, 0.03509521484375, 0.04986572265625, 0.0048675537109375, -0.01361846923828125, 0.03125, 0.01352691650390625, -0.040985107421875, 0.0018320083618164062, 0.0249176025390625, 0.03839111328125, -0.0174560546875, 0.0384521484375, 0.0265655517578125, -0.03240966796875, 0.0550537109375, 0.0162353515625, 0.05364990234375, -0.01111602783203125, 0.005527496337890625, -0.02972412109375, -0.02978515625, 0.051300048828125, 0.007354736328125, -0.0308685302734375, 0.019378662109375, -0.0028076171875, 0.0101318359375, 0.0055084228515625, -0.01059722900390625, -0.008880615234375, -0.01526641845703125, 0.0018243789672851562, -0.03631591796875, 0.01436614990234375, -0.0196380615234375, -0.04632568359375, -0.01641845703125, -0.0013179779052734375, -0.059814453125, -0.038116455078125, -0.039398193359375, 0.0154876708984375, -0.025115966796875, 0.044708251953125, 0.00432586669921875, 0.0038852691650390625, -0.009490966796875, -0.01477813720703125, -0.0262298583984375, 0.10467529296875, 0.01528167724609375, -0.050506591796875, 0.025787353515625, -0.035919189453125, 0.0309600830078125, 0.01508331298828125, 0.01210784912109375, 0.037811279296875, -0.03509521484375, -0.020660400390625, -0.006984710693359375, -0.02777099609375, -0.0191650390625, -0.04034423828125, 0.01219940185546875, -0.0267333984375, 0.003688812255859375, -0.0023097991943359375, 0.07373046875, -0.025787353515625, 0.04827880859375, -0.00975799560546875, 0.0037384033203125, 0.0062713623046875, -0.00057220458984375, 0.0338134765625, 0.0170135498046875, -0.0231475830078125, 0.0013895034790039062, 0.00850677490234375, -0.0029964447021484375, 0.01544189453125, 0.016357421875, 0.035858154296875, 0.0274810791015625, 0.0118560791015625, -0.022674560546875, -0.038818359375, 0.0026187896728515625, 0.03369140625, -0.0178070068359375, -0.05157470703125, -0.01558685302734375, -0.0009317398071289062, 0.01433563232421875, -0.045654296875, -0.018951416015625, -0.01013946533203125, -0.047607421875, -0.0280914306640625, 0.03472900390625, -0.045257568359375, -0.00258636474609375, 0.0021305084228515625, -0.03656005859375, -0.0513916015625, -0.01454925537109375, -0.00843048095703125, 0.051666259765625, -0.01641845703125, -0.0428466796875, -0.0058135986328125, 0.0130767822265625, 0.0240936279296875, -0.04754638671875, -0.0024471282958984375, -0.03314208984375, -0.0214080810546875, 0.05987548828125, 0.0206146240234375, -0.050506591796875, 0.0083160400390625, -0.0175628662109375, 0.0077362060546875, -0.018157958984375, -0.01401519775390625, -0.053680419921875, -0.00766754150390625, -0.036224365234375, 0.015380859375, -0.0119781494140625, 0.045654296875, -0.0133514404296875, 0.01255035400390625, -0.04132080078125, -0.0005078315734863281, -0.0107879638671875, 0.018402099609375, 0.00827789306640625, 0.013824462890625, 0.01340484619140625, 0.02020263671875, 0.0008435249328613281, -0.0206146240234375, 0.014739990234375, -0.0217742919921875, -0.03326416015625, -0.046417236328125, 0.036102294921875, 0.0016078948974609375, 0.04534912109375, -0.015960693359375, 0.006374359130859375, 0.0258026123046875, 0.01476287841796875, -0.004425048828125, -0.024139404296875, 0.03582763671875, -0.009521484375, 0.0162811279296875, 0.005260467529296875, 0.0625, -0.00768280029296875, -0.056793212890625, 0.028839111328125, 0.002773284912109375, 0.032073974609375, 0.0235748291015625, 0.0073699951171875, 0.0128631591796875, 0.01544189453125, -0.0328369140625, 0.0158233642578125, 0.019683837890625, 0.01523590087890625, 0.037139892578125, -0.0213165283203125, -0.0006737709045410156, 0.01343536376953125, 0.09033203125, 0.0179901123046875, -0.0259857177734375, 0.07421875, -0.0440673828125, 0.01354217529296875, 0.06939697265625, 0.066162109375, -0.12237548828125, 0.0215911865234375, 0.0345458984375, 0.03082275390625, 0.0181121826171875, 0.035736083984375, -0.03692626953125, -0.060699462890625, 0.039398193359375, -0.036041259765625, 0.01105499267578125, 0.033050537109375, 0.0078125, 0.026123046875, -0.036376953125, 0.045135498046875, 0.0047607421875, 0.0032520294189453125, -0.0190582275390625, 0.00800323486328125, 0.00983428955078125, 0.006160736083984375, -0.0032711029052734375, -0.0203094482421875, -0.03778076171875, -0.04296875, -0.0279693603515625, -0.046234130859375, -0.0176239013671875, 0.0156097412109375, 0.005878448486328125, 0.060455322265625, 0.0259552001953125, 0.0106048583984375, -0.02947998046875, -0.0026302337646484375, 0.00811004638671875, 0.045989990234375, -0.00791168212890625, -0.0064697265625, 0.0068817138671875, -0.035980224609375, -0.005840301513671875, -0.01390838623046875, 0.018890380859375, -0.0159149169921875, -0.055206298828125, 0.0826416015625, 0.00872802734375, -0.0399169921875, 0.0092926025390625, -0.045196533203125, -0.018951416015625, -0.0000040531158447265625, 0.03948974609375, -0.050689697265625, -0.026824951171875, 0.0225067138671875, -0.02435302734375, -0.016632080078125, 0.01177215576171875, -0.097900390625, 0.04718017578125, 0.02752685546875, 0.06402587890625, -0.0165557861328125, -0.0165252685546875, -0.004703521728515625, -0.045013427734375, -0.058563232421875, 0.04351806640625, -0.0157928466796875, 0.050140380859375, -0.0100860595703125, 0.0225372314453125, 0.0167083740234375, -0.0433349609375, 0.05645751953125, 0.03375244140625, -0.04669189453125, -0.0307464599609375, -0.0295867919921875, 0.005878448486328125, -0.021484375, 0.043243408203125, 0.03167724609375, 0.0662841796875, 0.082275390625, 0.0006680488586425781, 0.057586669921875, -0.01496124267578125, -0.02203369140625, 0.047332763671875, -0.00205230712890625, -0.026580810546875, 0.01497650146484375, 0.027618408203125, -0.05084228515625, 0.00826263427734375, 0.036163330078125, 0.00122833251953125, 0.003971099853515625, 0.045013427734375, 0.050079345703125, 0.0011959075927734375, 0.00799560546875, -0.024322509765625, 0.04644775390625, 0.032073974609375, 0.0292510986328125, 0.038482666015625, 0.01447296142578125, 0.0352783203125, 0.0268707275390625, 0.03424072265625, 0.033843994140625, 0.01025390625, 0.061065673828125, 0.0390625, 0.039459228515625, -0.0389404296875, -0.0360107421875, 0.038604736328125, 0.088623046875, -0.03009033203125, -0.0299224853515625, 0.005619049072265625, 0.03363037109375, 0.046142578125, 0.0255584716796875, 0.070068359375, -0.07757568359375, -0.001560211181640625, -0.037384033203125, 0.03857421875, 0.04254150390625, -0.04852294921875, 0.006195068359375, 0.037384033203125, -0.0256195068359375, 0.078857421875, 0.005977630615234375, -0.0005764961242675781, -0.02752685546875, -0.021636962890625, 0.00579833984375, 0.0101318359375, 0.00980377197265625, 0.0106353759765625, 0.0064697265625, -0.037322998046875, -0.0224151611328125, 0.00940704345703125, -0.0293731689453125, -0.00910186767578125, 0.0166473388671875, 0.050445556640625, -0.00252532958984375, -0.01428985595703125, 0.014556884765625, 0.017486572265625, -0.0119476318359375, -0.01313018798828125, 0.016357421875, -0.00962066650390625, -0.00600433349609375, -0.005100250244140625, 0.010711669921875, 0.0078582763671875, -0.0025959014892578125, -0.021331787109375, 0.039215087890625, 0.0112457275390625, -0.004329681396484375, 0.067138671875, 0.00010120868682861328, -0.001567840576171875, 0.01177215576171875, -0.04052734375, 0.05218505859375, 0.01108551025390625, -0.01226806640625, -0.0136871337890625, -0.01119232177734375, -0.00010865926742553711, 0.01374053955078125, 0.026947021484375, 0.0311737060546875, 0.0036640167236328125, 0.04913330078125, -0.035614013671875, 0.033721923828125, 0.01236724853515625, 0.0262603759765625, -0.0229034423828125, -0.00615692138671875, -0.01221466064453125, -0.06927490234375, -0.0166778564453125, -0.01385498046875, -0.0011653900146484375, -0.01418304443359375, 0.03631591796875, 0.013214111328125, 0.0002601146697998047, -0.046875, 0.03643798828125, -0.047576904296875, -0.0467529296875, 0.068603515625, 0.004749298095703125, -0.0296478271484375, 0.0034503936767578125, -0.0355224609375, 0.06329345703125, 0.0036182403564453125, 0.0214080810546875, 0.042999267578125, -0.00989532470703125, -0.006076812744140625, -0.01690673828125, 0.00612640380859375, -0.031646728515625, -0.036041259765625, -0.01412200927734375, 0.00539398193359375, 0.004791259765625, -0.02960205078125, -0.0335693359375, 0.034515380859375, -0.0195770263671875, -0.0341796875, 0.0156707763671875, -0.04931640625, -0.0054473876953125, 0.0030841827392578125, 0.026031494140625, 0.025115966796875, -0.02880859375, -0.0288238525390625, 0.01497650146484375, -0.003337860107421875, -0.037811279296875, 0.0207061767578125, -0.0206298828125, 0.07110595703125, -0.0164337158203125, 0.041351318359375, 0.00506591796875, -0.0241241455078125, -0.0021514892578125, 0.02362060546875, 0.002445220947265625, -0.0286865234375, -0.0211334228515625, -0.046417236328125, -0.0074462890625, 0.00983428955078125, -0.013519287109375, -0.037811279296875, -0.0285797119140625, 0.0016803741455078125, -0.050689697265625, -0.0158233642578125, -0.03533935546875, 0.035369873046875, -0.0008983612060546875, -0.0202789306640625, -0.07781982421875, -0.04205322265625, 0.0207366943359375, 0.035125732421875, -0.03631591796875, 0.01605224609375, -0.01177215576171875, -0.0484619140625, -0.0018329620361328125, 0.018280029296875, 0.015899658203125, 0.0110626220703125, 0.0081634521484375, 0.037689208984375, -0.01493072509765625, 0.074951171875, -0.041778564453125, -0.0310211181640625, -0.01111602783203125, 0.008636474609375, 0.00868988037109375, -0.040283203125, 0.0026493072509765625, -0.0267486572265625, -0.00008434057235717773, -0.0007228851318359375, -0.0362548828125, -0.0207366943359375, -0.048980712890625, -0.0174713134765625, 0.1038818359375, 0.018585205078125, -0.0191192626953125, 0.003894805908203125, -0.0242462158203125, -0.00759124755859375, 0.02117919921875, 0.0113677978515625, -0.04302978515625, -0.0458984375, 0.0118408203125, 0.018096923828125, -0.0286102294921875, 0.041534423828125, 0.015655517578125, -0.042022705078125, 0.03302001953125, 0.03369140625, -0.00521087646484375, 0.014862060546875, 0.0037822723388671875, 0.029876708984375, 0.04150390625, -0.01532745361328125, 0.01959228515625, -0.0194244384765625, -0.026885986328125, -0.0255279541015625, -0.016448974609375, 0.0235595703125, 0.004749298095703125, 0.051300048828125, 0.00820159912109375, -0.0090179443359375, -0.0187225341796875, -0.0440673828125, -0.043670654296875, -0.0225372314453125, -0.00449371337890625, 0.03240966796875, -0.06689453125, 0.0088958740234375, -0.002521514892578125, -0.0161590576171875, 0.033203125, -0.033660888671875, -0.01531219482421875, 0.0104217529296875, -0.0019741058349609375, -0.033203125, 0.037322998046875, -0.024688720703125, 0.0189971923828125, -0.028594970703125, -0.0579833984375, 0.02642822265625, 0.0131683349609375, -0.04364013671875, 0.025848388671875, 0.0249481201171875, 0.002925872802734375, -0.024444580078125, 0.0219268798828125, 0.005634307861328125, 0.002773284912109375, -0.01238250732421875, -0.0277557373046875, -0.012420654296875, 0.0206756591796875, -0.0197296142578125, 0.0239105224609375, 0.033782958984375, 0.041961669921875, 0.0289306640625, 0.029876708984375, 0.01355743408203125, -0.0034923553466796875, 0.00069427490234375, 0.039276123046875, 0.0089111328125, -0.04248046875, 0.01031494140625, -0.041534423828125, -0.0024852752685546875, -0.007293701171875, -0.019500732421875, -0.041961669921875, 0.00659942626953125, 0.032501220703125, -0.014251708984375, 0.0260009765625 ]
3eb34312b127c4cbee0ecda2278f162a9f2acc15
Wordpress Stackexchange Q: Using Templates with Custom Post Type UI I'm using this nifty little plugin called Custom Post Type UI to add custom post types to my WordPress site and am having a little trouble working out the best way to apply a page template to my custom post types. Does anyone know the best way to achieve this? Any help is appreciated. Thanks in advance! A: WordPress has a built-in template hierarchy that determines what template file will be loaded for a given type of post or page. If you have a look at the visual overview of the hierarchy, you'll find that custom posts have their own specific entries. For example, if your custom post type is named book, then a single post's template will be single-book.php if it exists, single.php if it does not. (index.php is the global fallback -- a theme really only needs to contain style.css and index.php to function.) Any desired template files (ie, single-{$posttype}.php) should be added to your active theme. References * *Post Types *Template Hierarchy
Q: Using Templates with Custom Post Type UI I'm using this nifty little plugin called Custom Post Type UI to add custom post types to my WordPress site and am having a little trouble working out the best way to apply a page template to my custom post types. Does anyone know the best way to achieve this? Any help is appreciated. Thanks in advance! A: WordPress has a built-in template hierarchy that determines what template file will be loaded for a given type of post or page. If you have a look at the visual overview of the hierarchy, you'll find that custom posts have their own specific entries. For example, if your custom post type is named book, then a single post's template will be single-book.php if it exists, single.php if it does not. (index.php is the global fallback -- a theme really only needs to contain style.css and index.php to function.) Any desired template files (ie, single-{$posttype}.php) should be added to your active theme. References * *Post Types *Template Hierarchy A: I had the same question about the CPT UI. (~10y later now, so I thought I'd post what I found) Specifically, where in CPT UI do I find the template structure I should use to customize my front-end cpt display? I found if you visit the "Registered Types/Taxonomies" in the CPT UI there is a column for Template Hierarchy. this would be the URL: wp-admin/admin.php?page=cptui_listings#post-types
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:440633", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/127973" }
[ 0.025665283203125, -0.0221099853515625, 0.0006098747253417969, 0.00588226318359375, -0.02239990234375, -0.016998291015625, 0.0268402099609375, -0.02935791015625, -0.045684814453125, 0.0394287109375, 0.02581787109375, 0.0030059814453125, -0.01003265380859375, -0.0196533203125, 0.006134033203125, -0.023590087890625, 0.0357666015625, -0.025787353515625, 0.03814697265625, -0.035369873046875, 0.0291595458984375, -0.0206146240234375, 0.0567626953125, 0.03094482421875, 0.0275726318359375, -0.0244598388671875, 0.044189453125, -0.02227783203125, 0.0276947021484375, -0.0206298828125, 0.02880859375, -0.00003838539123535156, 0.01122283935546875, 0.01165771484375, 0.005161285400390625, 0.02752685546875, 0.001308441162109375, 0.006103515625, 0.026214599609375, 0.01029205322265625, 0.0011882781982421875, 0.0149078369140625, 0.0278167724609375, 0.01910400390625, 0.0046844482421875, -0.032012939453125, -0.0005707740783691406, -0.059478759765625, 0.0009469985961914062, -0.0269317626953125, 0.005130767822265625, -0.046112060546875, 0.033905029296875, -0.044830322265625, -0.0252838134765625, -0.0185546875, 0.00479888916015625, -0.035919189453125, 0.037200927734375, -0.0140533447265625, -0.0283203125, -0.025299072265625, 0.034942626953125, 0.0002589225769042969, 0.0082244873046875, -0.004058837890625, -0.01300811767578125, 0.0309906005859375, -0.029754638671875, 0.005405426025390625, 0.0221405029296875, -0.0166168212890625, 0.0133209228515625, -0.027313232421875, 0.00556182861328125, -0.032257080078125, 0.0037097930908203125, -0.030548095703125, -0.006359100341796875, 0.0022449493408203125, 0.00823211669921875, 0.01207733154296875, -0.006534576416015625, -0.05859375, 0.0195770263671875, -0.0247802734375, -0.01153564453125, -0.005367279052734375, -0.0272674560546875, -0.0195465087890625, -0.0249481201171875, -0.0469970703125, -0.016998291015625, 0.0262298583984375, -0.0022907257080078125, -0.00937652587890625, 0.00531768798828125, 0.030914306640625, 0.0124969482421875, 0.051025390625, 0.00304412841796875, -0.049468994140625, 0.08343505859375, -0.0430908203125, 0.02032470703125, 0.054107666015625, 0.002574920654296875, 0.04345703125, 0.06890869140625, 0.018341064453125, 0.031402587890625, 0.038604736328125, 0.00371551513671875, -0.00966644287109375, -0.0367431640625, -0.0107269287109375, -0.018402099609375, -0.01456451416015625, 0.00778961181640625, -0.01849365234375, 0.01226043701171875, 0.02874755859375, 0.03173828125, -0.0265655517578125, -0.0289764404296875, -0.01027679443359375, -0.005970001220703125, -0.08367919921875, 0.017913818359375, 0.0011911392211914062, -0.0279541015625, 0.0021724700927734375, 0.02166748046875, 0.036712646484375, 0.0197601318359375, -0.01023101806640625, 0.005481719970703125, -0.0241241455078125, -0.0035686492919921875, -0.015777587890625, 0.0256805419921875, -0.0156097412109375, -0.0085296630859375, 0.004467010498046875, -0.025604248046875, 0.0230255126953125, 0.004154205322265625, 0.0183563232421875, -0.00514984130859375, -0.045013427734375, 0.00765228271484375, -0.04205322265625, 0.01922607421875, 0.0170745849609375, 0.01450347900390625, -0.046661376953125, 0.0205230712890625, -0.03448486328125, 0.0242462158203125, -0.03271484375, -0.0189971923828125, 0.00473785400390625, 0.00582122802734375, -0.0238037109375, -0.0181732177734375, 0.0174713134765625, -0.004543304443359375, 0.0115814208984375, 0.0178070068359375, -0.04278564453125, 0.01502227783203125, -0.0038814544677734375, 0.004856109619140625, 0.016143798828125, 0.01275634765625, 0.01971435546875, -0.0114593505859375, 0.00342559814453125, 0.0164031982421875, 0.039581298828125, 0.00043773651123046875, -0.023773193359375, 0.03314208984375, -0.0037975311279296875, -0.05059814453125, 0.020111083984375, 0.0244903564453125, 0.0299224853515625, 0.006893157958984375, 0.0038204193115234375, 0.05572509765625, 0.026092529296875, -0.0557861328125, 0.025238037109375, 0.0155181884765625, 0.0011348724365234375, -0.047119140625, -0.005096435546875, -0.0091552734375, -0.00804901123046875, -0.007770538330078125, 0.0025005340576171875, -0.0038471221923828125, 0.0065155029296875, -0.01219940185546875, -0.0058746337890625, 0.0009031295776367188, 0.029754638671875, 0.01142120361328125, -0.020050048828125, 0.0158843994140625, -0.009735107421875, -0.00408172607421875, -0.04522705078125, -0.05078125, 0.0374755859375, 0.05096435546875, 0.025634765625, 0.00812530517578125, -0.01055908203125, 0.020721435546875, -0.0291748046875, 0.0029010772705078125, 0.0626220703125, 0.03460693359375, 0.02752685546875, -0.03729248046875, 0.004917144775390625, -0.03350830078125, 0.0477294921875, -0.10009765625, 0.0264434814453125, -0.0236358642578125, -0.016998291015625, -0.042633056640625, -0.00485992431640625, 0.0023937225341796875, -0.01258087158203125, 0.012451171875, 0.042572021484375, 0.0116424560546875, 0.0400390625, 0.00005984306335449219, 0.07147216796875, -0.0011968612670898438, 0.006908416748046875, 0.0263214111328125, 0.017120361328125, 0.008941650390625, 0.020538330078125, 0.00298309326171875, 0.0010919570922851562, 0.01385498046875, -0.07635498046875, 0.02703857421875, 0.02490234375, -0.017425537109375, 0.0014400482177734375, -0.0150299072265625, 0.0242767333984375, -0.007472991943359375, 0.01160430908203125, 0.01256561279296875, -0.0206146240234375, 0.060882568359375, -0.0006923675537109375, 0.0416259765625, 0.0294036865234375, -0.0400390625, 0.003200531005859375, 0.011993408203125, 0.0084686279296875, 0.004924774169921875, 0.00018131732940673828, -0.00763702392578125, 0.042449951171875, -0.032623291015625, -0.00800323486328125, 0.0433349609375, -0.0014810562133789062, -0.0201263427734375, 0.00980377197265625, -0.043853759765625, -0.002834320068359375, -0.0149078369140625, -0.048065185546875, -0.001220703125, 0.0264739990234375, 0.02215576171875, -0.0012960433959960938, 0.0131988525390625, 0.03582763671875, -0.007015228271484375, 0.03656005859375, 0.0222930908203125, -0.015106201171875, 0.051422119140625, -0.0572509765625, 0.058868408203125, -0.0330810546875, 0.04052734375, 0.0689697265625, -0.017181396484375, 0.023406982421875, -0.0078582763671875, 0.0264129638671875, -0.0026378631591796875, 0.01071929931640625, 0.001964569091796875, -0.053192138671875, 0.0229949951171875, 0.0196533203125, 0.0250396728515625, 0.07745361328125, 0.020965576171875, -0.038909912109375, 0.0372314453125, 0.047698974609375, 0.01141357421875, -0.0418701171875, 0.032196044921875, -0.06878662109375, -0.00274658203125, -0.06304931640625, -0.041839599609375, -0.006008148193359375, -0.038482666015625, 0.00109100341796875, -0.00008273124694824219, -0.036529541015625, -0.069091796875, -0.0726318359375, -0.08697509765625, -0.0287017822265625, 0.00809478759765625, 0.0076904296875, -0.004970550537109375, 0.060394287109375, 0.007457733154296875, -0.05377197265625, 0.0008425712585449219, 0.056304931640625, -0.0175628662109375, -0.00374603271484375, 0.045806884765625, -0.033233642578125, 0.0184478759765625, 0.01087188720703125, -0.045135498046875, 0.0313720703125, -0.025482177734375, -0.04296875, -0.036712646484375, -0.033721923828125, -0.0266876220703125, 0.032928466796875, 0.055267333984375, -0.047943115234375, -0.0037384033203125, -0.06890869140625, -0.075927734375, 0.003597259521484375, -0.055938720703125, 0.025390625, 0.035400390625, -0.0008192062377929688, -0.03265380859375, 0.057403564453125, -0.0031299591064453125, 0.0024089813232421875, 0.0192718505859375, -0.03448486328125, 0.040740966796875, 0.00969696044921875, 0.007781982421875, -0.01702880859375, 0.00044727325439453125, -0.04144287109375, 0.00563812255859375, -0.006744384765625, -0.019256591796875, -0.0151519775390625, -0.0038852691650390625, -0.01416015625, -0.07989501953125, 0.05755615234375, -0.0173492431640625, 0.0038814544677734375, -0.03448486328125, -0.038055419921875, 0.0206146240234375, 0.12066650390625, -0.044647216796875, -0.0005016326904296875, 0.014129638671875, 0.00434112548828125, 0.0087890625, -0.037353515625, -0.043701171875, -0.0293426513671875, -0.0501708984375, 0.01708984375, 0.011810302734375, -0.0227203369140625, -0.016693115234375, 0.00640106201171875, -0.041717529296875, -0.0229339599609375, 0.0323486328125, -0.04461669921875, 0.0228118896484375, 0.03277587890625, -0.00534820556640625, 0.006053924560546875, -0.01708984375, -0.04071044921875, -0.03924560546875, -0.012603759765625, -0.0158538818359375, 0.048858642578125, 0.0195465087890625, -0.030029296875, -0.012664794921875, 0.018951416015625, 0.0303497314453125, 0.017425537109375, -0.0004220008850097656, -0.004238128662109375, -0.0167236328125, -0.01275634765625, 0.0029468536376953125, -0.024017333984375, -0.008514404296875, 0.0258026123046875, -0.03271484375, 0.04595947265625, -0.0130462646484375, -0.0246124267578125, 0.0305938720703125, -0.037994384765625, -0.037384033203125, -0.035858154296875, -0.0168609619140625, 0.0110626220703125, 0.0008268356323242188, -0.00004941225051879883, -0.03167724609375, -0.05023193359375, 0.023529052734375, 0.03302001953125, -0.0163421630859375, 0.016998291015625, 0.042449951171875, 0.01505279541015625, -0.0295257568359375, -0.07550048828125, 0.007122039794921875, 0.040008544921875, 0.0216827392578125, 0.012908935546875, 0.005718231201171875, -0.027191162109375, 0.03619384765625, 0.01143646240234375, -0.010040283203125, -0.026611328125, 0.064208984375, -0.01068115234375, -0.01427459716796875, 0.0244598388671875, -0.031463623046875, 0.021331787109375, 0.037506103515625, -0.01715087890625, -0.05047607421875, -0.00567626953125, 0.074951171875, -0.041015625, 0.034820556640625, -0.061492919921875, -0.034149169921875, 0.01334381103515625, -0.005748748779296875, 0.0115203857421875, -0.0015859603881835938, 0.006099700927734375, -0.0035686492919921875, -0.026092529296875, 0.0168914794921875, 0.041778564453125, 0.042449951171875, 0.01294708251953125, 0.0239105224609375, 0.0679931640625, 0.0210113525390625, -0.01123046875, -0.005207061767578125, 0.035003662109375, 0.00040721893310546875, -0.03900146484375, -0.03173828125, -0.0170135498046875, 0.01319122314453125, -0.0034770965576171875, 0.0217437744140625, 0.038604736328125, 0.0223236083984375, 0.0025691986083984375, -0.00449371337890625, -0.005706787109375, 0.00946807861328125, -0.041839599609375, -0.043243408203125, 0.02618408203125, -0.036895751953125, -0.00066375732421875, 0.003841400146484375, 0.048309326171875, -0.03314208984375, -0.0245819091796875, 0.032440185546875, 0.02728271484375, 0.01239013671875, 0.0204620361328125, 0.0168304443359375, -0.0265655517578125, -0.01050567626953125, -0.01171875, -0.053955078125, -0.02996826171875, -0.0023860931396484375, 0.05218505859375, -0.015960693359375, -0.0189056396484375, 0.0243377685546875, -0.0034084320068359375, -0.0078125, -0.003498077392578125, 0.005001068115234375, -0.0220184326171875, 0.00197601318359375, 0.041046142578125, 0.0189056396484375, -0.0002219676971435547, -0.040252685546875, 0.06475830078125, -0.04193115234375, 0.03668212890625, 0.006744384765625, -0.011962890625, 0.018096923828125, 0.007175445556640625, -0.027801513671875, -0.01458740234375, -0.0009121894836425781, -0.06207275390625, -0.032562255859375, -0.004413604736328125, 0.001811981201171875, -0.0049896240234375, -0.0313720703125, 0.035888671875, -0.015777587890625, -0.01239776611328125, -0.01248931884765625, 0.02587890625, 0.036956787109375, 0.01425933837890625, -0.024627685546875, 0.0196685791015625, -0.04864501953125, -0.0244903564453125, -0.0711669921875, -0.07489013671875, -0.0640869140625, -0.005580902099609375, -0.014434814453125, 0.01520538330078125, -0.01003265380859375, 0.002819061279296875, -0.0013685226440429688, 0.0328369140625, -0.007720947265625, 0.041229248046875, -0.0208740234375, 0.0946044921875, -0.01134490966796875, 0.09051513671875, -0.0025157928466796875, 0.0249481201171875, -0.0297698974609375, -0.00982666015625, 0.01181793212890625, -0.032958984375, -0.0264892578125, -0.0291900634765625, -0.0214996337890625, 0.053497314453125, 0.07904052734375, 0.006481170654296875, 0.0021114349365234375, -0.0418701171875, -0.0016870498657226562, -0.0234527587890625, 0.05267333984375, -0.0400390625, -0.030670166015625, 0.0246124267578125, 0.004192352294921875, 0.0179290771484375, 0.005950927734375, -0.0262908935546875, 0.0037364959716796875, 0.0244903564453125, -0.00571441650390625, -0.00543975830078125, -0.0391845703125, 0.053131103515625, 0.04443359375, 0.0088653564453125, 0.04241943359375, 0.0022029876708984375, 0.02606201171875, 0.005977630615234375, -0.0037631988525390625, -0.0212860107421875, -0.032806396484375, 0.0504150390625, 0.01025390625, -0.049835205078125, 0.0361328125, -0.035614013671875, 0.0135040283203125, 0.0782470703125, 0.04400634765625, -0.12176513671875, 0.00296783447265625, 0.0070953369140625, -0.00919342041015625, 0.00839996337890625, -0.0196075439453125, -0.004791259765625, -0.02203369140625, 0.0222930908203125, 0.0186614990234375, -0.01396942138671875, 0.00803375244140625, 0.003826141357421875, 0.01198577880859375, -0.0178680419921875, 0.074462890625, 0.018768310546875, 0.01317596435546875, -0.0271759033203125, -0.017242431640625, 0.00848388671875, 0.01045989990234375, 0.01043701171875, -0.01959228515625, -0.0205841064453125, -0.0018405914306640625, 0.02703857421875, -0.0621337890625, -0.0019664764404296875, 0.05279541015625, 0.01290130615234375, 0.00850677490234375, 0.043243408203125, -0.013702392578125, 0.03070068359375, -0.0008730888366699219, 0.006591796875, -0.03070068359375, -0.0200653076171875, 0.0105743408203125, 0.023223876953125, -0.057037353515625, 0.025146484375, -0.04449462890625, -0.0017490386962890625, -0.027099609375, -0.0150909423828125, 0.109619140625, -0.0258331298828125, -0.0224609375, 0.0038547515869140625, 0.0338134765625, -0.0082244873046875, 0.01221466064453125, 0.023223876953125, -0.044403076171875, -0.037750244140625, 0.033355712890625, -0.045928955078125, -0.006771087646484375, 0.033355712890625, -0.06597900390625, 0.07855224609375, -0.002300262451171875, 0.0224151611328125, 0.01313018798828125, 0.032501220703125, -0.01971435546875, 0.0169830322265625, -0.0088958740234375, 0.0184478759765625, -0.00411224365234375, 0.043121337890625, -0.01340484619140625, 0.00705718994140625, 0.0036487579345703125, 0.0250244140625, 0.04949951171875, 0.00653076171875, -0.002643585205078125, 0.0210723876953125, 0.0775146484375, 0.034271240234375, 0.0024356842041015625, 0.0185699462890625, -0.006137847900390625, -0.0164947509765625, -0.0000445246696472168, -0.0031871795654296875, 0.02947998046875, -0.0165252685546875, -0.026824951171875, 0.01506805419921875, 0.0142059326171875, 0.00341033935546875, 0.005611419677734375, -0.03277587890625, -0.0340576171875, 0.00229644775390625, 0.0274810791015625, 0.0028667449951171875, 0.027008056640625, 0.01074981689453125, 0.04144287109375, -0.037506103515625, 0.00708770751953125, -0.019317626953125, 0.057708740234375, 0.004974365234375, 0.010711669921875, -0.00766754150390625, 0.004390716552734375, -0.020751953125, -0.0190887451171875, 0.00003540515899658203, 0.019195556640625, -0.01483917236328125, 0.054473876953125, -0.01128387451171875, 0.0090484619140625, -0.05987548828125, -0.0065765380859375, 0.02880859375, 0.05670166015625, -0.0369873046875, -0.062744140625, 0.0169677734375, 0.00965118408203125, -0.0101470947265625, 0.0070343017578125, -0.00812530517578125, -0.018768310546875, 0.046966552734375, -0.0298919677734375, -0.0125732421875, 0.01371002197265625, 0.0171051025390625, -0.019256591796875, -0.033721923828125, 0.003753662109375, 0.005100250244140625, -0.0292205810546875, -0.0004992485046386719, 0.018157958984375, 0.0379638671875, 0.012359619140625, 0.048431396484375, -0.0194549560546875, -0.0181427001953125, 0.00888824462890625, -0.010345458984375, -0.0255889892578125, 0.00138092041015625, -0.0148468017578125, -0.035369873046875, 0.01071929931640625, 0.0338134765625, 0.031280517578125, -0.01035308837890625, 0.023040771484375, 0.004131317138671875, 0.007537841796875, -0.011627197265625, 0.01406097412109375, -0.003116607666015625, -0.005245208740234375, -0.00836944580078125, -0.0211029052734375, -0.01702880859375, -0.040496826171875, 0.0183868408203125, 0.012481689453125, 0.00540924072265625, -0.01197052001953125, 0.048858642578125, 0.0060882568359375, -0.00695037841796875, 0.06878662109375, 0.006313323974609375, 0.08294677734375, 0.0193939208984375, -0.044525146484375, -0.02032470703125, -0.018280029296875, -0.06732177734375, 0.043304443359375, 0.061370849609375, -0.0161895751953125, 0.0014657974243164062, 0.002841949462890625, 0.004638671875, -0.0121002197265625, -0.019287109375, 0.03271484375, 0.01274871826171875, 0.0061798095703125, 0.0270843505859375, -0.053802490234375, -0.03533935546875, -0.0172882080078125, 0.03350830078125, 0.00913238525390625, 0.08624267578125, -0.0159454345703125, 0.01476287841796875, 0.000022470951080322266, 0.0479736328125, -0.043212890625, -0.0005621910095214844, 0.043975830078125, 0.021453857421875, 0.00882720947265625, -0.027740478515625, -0.0572509765625, 0.005794525146484375, 0.023529052734375, -0.015472412109375, -0.0218658447265625, 0.0014905929565429688, 0.019287109375, 0.02008056640625, 0.029693603515625, -0.025482177734375, -0.01145172119140625, -0.04473876953125, -0.0369873046875, 0.0399169921875, 0.01544952392578125, 0.021148681640625, 0.07379150390625, -0.0038318634033203125, 0.0015363693237304688, 0.009368896484375, -0.0634765625, 0.01123809814453125, 0.02825927734375, -0.006252288818359375, -0.06982421875, 0.046295166015625, -0.0031070709228515625, -0.0123748779296875, 0.017242431640625, 0.06976318359375, 0.01154327392578125, -0.0570068359375, 0.0287322998046875, -0.020355224609375, 0.019073486328125, -0.0472412109375, -0.01861572265625, 0.020355224609375, 0.0117340087890625, -0.006870269775390625, -0.008056640625, -0.033111572265625, -0.0217437744140625, 0.0209808349609375, 0.0172882080078125, 0.01739501953125, -0.0016536712646484375, -0.0673828125, -0.01226806640625, 0.044403076171875, 0.0024089813232421875, -0.041412353515625, 0.0023822784423828125, -0.0213165283203125, 0.024322509765625, 0.01427459716796875, -0.0172271728515625, 0.0245513916015625, 0.06414794921875, 0.0004341602325439453, 0.0118408203125, -0.0031948089599609375, -0.0263214111328125, 0.007678985595703125, 0.034698486328125, 0.0582275390625, -0.044464111328125, 0.004322052001953125, 0.0322265625, 0.03778076171875, 0.08221435546875, 0.006649017333984375, -0.00615692138671875, 0.05230712890625, -0.0250701904296875, -0.02874755859375, -0.047760009765625, 0.0013418197631835938, -0.057098388671875, 0.0013427734375, -0.006053924560546875, 0.02392578125, 0.0384521484375, -0.031463623046875, -0.06494140625, 0.061737060546875, -0.027923583984375, -0.03173828125, -0.035186767578125, 0.041015625, 0.01322174072265625, -0.036407470703125, -0.022918701171875, -0.0253448486328125, 0.0036792755126953125, 0.020263671875, 0.00551605224609375, 0.045654296875, 0.03955078125, -0.0039215087890625, -0.0275115966796875, -0.0216522216796875, -0.02935791015625, 0.0158538818359375, -0.019805908203125, -0.015533447265625, 0.0019063949584960938, -0.003368377685546875, -0.06158447265625, -0.0135040283203125, 0.0146942138671875, 0.096435546875, -0.00933837890625, -0.0220947265625, -0.0265655517578125, -0.00482177734375, 0.067626953125, 0.0343017578125, 0.0111083984375, -0.0212860107421875, -0.0014638900756835938, -0.05230712890625, -0.07073974609375, 0.01059722900390625, 0.033477783203125, -0.061676025390625, 0.019378662109375, 0.033721923828125, -0.0258941650390625, -0.01611328125, 0.0022487640380859375, -0.04949951171875, 0.00872039794921875, -0.0193023681640625, -0.01220703125, -0.043060302734375, 0.03759765625, 0.032196044921875, -0.0248870849609375, 0.03216552734375, -0.01593017578125, -0.00986480712890625, 0.030853271484375, -0.0153656005859375, -0.0235595703125, 0.040863037109375, -0.05523681640625, 0.0090789794921875, -0.00965118408203125, 0.0521240234375, -0.053741455078125, 0.02667236328125, 0.0003058910369873047, 0.025390625, -0.0175933837890625, 0.0235595703125, -0.0274810791015625, 0.0771484375, -0.0021800994873046875, 0.06646728515625, -0.0014171600341796875, 0.02886962890625, -0.0270843505859375, 0.047454833984375, 0.0044403076171875, -0.01030731201171875, 0.0182647705078125, -0.0159149169921875, 0.004062652587890625, -0.03594970703125, -0.022796630859375, -0.030181884765625, 0.0208892822265625, -0.0118408203125, -0.036865234375, 0.0240325927734375 ]
e7c02ee9d19cc4733bc99326e64b1e96882bfd5d
Wordpress Stackexchange Q: Adding help information to custom post edit page I have two custom post types created (using Types plugin) with a bunch of custom fields. I need to add a help information, instructions for admins that will show at the top of add new/edit CPT page of dashboard. How can I add a text visible only on those two pages (add/edit post type 1 and add/edit post type 2)? A: Try this: function options_instructions_example() { global $my_admin_page; $screen = get_current_screen(); if ( is_admin() && ($screen->id == 'custom_post_type_name') ) { function add_content_after_editor() { global $post; $id = $post->ID; echo '<div class="postbox" style="background:#0074a2;color:#fff;margin-top:20px;"><div class="inside">'; echo 'Instructions go here.'; echo '</div></div>'; } add_action( 'edit_form_after_title', 'add_content_after_editor' ); } } add_action( 'admin_notices', 'options_instructions_example' ); It will result in something that looks similar to this: http://i.stack.imgur.com/5rU66.png
Q: Adding help information to custom post edit page I have two custom post types created (using Types plugin) with a bunch of custom fields. I need to add a help information, instructions for admins that will show at the top of add new/edit CPT page of dashboard. How can I add a text visible only on those two pages (add/edit post type 1 and add/edit post type 2)? A: Try this: function options_instructions_example() { global $my_admin_page; $screen = get_current_screen(); if ( is_admin() && ($screen->id == 'custom_post_type_name') ) { function add_content_after_editor() { global $post; $id = $post->ID; echo '<div class="postbox" style="background:#0074a2;color:#fff;margin-top:20px;"><div class="inside">'; echo 'Instructions go here.'; echo '</div></div>'; } add_action( 'edit_form_after_title', 'add_content_after_editor' ); } } add_action( 'admin_notices', 'options_instructions_example' ); It will result in something that looks similar to this: http://i.stack.imgur.com/5rU66.png A: You can also add meta boxes with the content, which help the users. This is more useful. The writers can hide this box and set their personal options to hide the hints from you, if is not necessary for the writers. To add the boxes to the different post type use the specific hooks: add_meta_boxes_xxx, xxx is for the post type 1 and post type 2. Small hint to identifier hooks use the plugin Debug Objects, list Hooks and screen info to find the right anchor. A screenshot say more, how I find the hook. A: You can add the help text above the meta boxes in the Edit Screens easily when using a plugin like ACF or Types. A: Accomplish it by using edit_form_top hook. Code - add_action('edit_form_top', 'wpse128204_edit_form_top'); function wpse128204_edit_form_top( $post ) { if( in_array( $post->post_type, array( 'post type 1', 'post type 2' ) ) ){ // You want to do something here } }
wordpress
{ "language": "en", "length": 288, "provenance": "stackexchange_00019.jsonl.gz:440702", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128204" }
[ 0.0499267578125, -0.01092529296875, 0.004787445068359375, -0.045440673828125, -0.0006799697875976562, -0.0252532958984375, 0.00682830810546875, -0.0153045654296875, -0.0302276611328125, 0.02191162109375, -0.00835418701171875, 0.004871368408203125, -0.007076263427734375, -0.035675048828125, 0.01312255859375, -0.031707763671875, 0.029205322265625, -0.00588226318359375, 0.0225982666015625, -0.0074920654296875, -0.0123748779296875, 0.0111846923828125, 0.0227813720703125, 0.0489501953125, -0.011138916015625, -0.036376953125, 0.0821533203125, -0.0011186599731445312, -0.00316619873046875, -0.006053924560546875, 0.0044097900390625, -0.01395416259765625, 0.0009937286376953125, 0.0374755859375, -0.0184173583984375, -0.01203155517578125, 0.046112060546875, -0.002429962158203125, 0.008575439453125, 0.042816162109375, 0.031982421875, -0.002643585205078125, 0.0328369140625, 0.0033054351806640625, 0.0056610107421875, -0.0241851806640625, 0.0224456787109375, -0.0457763671875, 0.0103607177734375, 0.0024471282958984375, -0.01274871826171875, 0.00286865234375, 0.0030231475830078125, -0.00862884521484375, -0.01024627685546875, -0.01654052734375, -0.023590087890625, -0.00695037841796875, 0.033721923828125, 0.025543212890625, -0.0138397216796875, -0.04058837890625, 0.009033203125, -0.03582763671875, -0.0223541259765625, 0.01092529296875, 0.0291595458984375, -0.0046539306640625, -0.05029296875, -0.0440673828125, 0.031494140625, -0.0181121826171875, 0.0206756591796875, -0.0341796875, -0.0176849365234375, -0.00946807861328125, 0.0037441253662109375, -0.01386260986328125, 0.00605010986328125, -0.0214996337890625, -0.0025043487548828125, 0.0233612060546875, 0.01373291015625, -0.036712646484375, -0.0027027130126953125, -0.03021240234375, -0.0259857177734375, 0.004241943359375, 0.012176513671875, -0.005565643310546875, -0.0090484619140625, -0.039886474609375, 0.0109100341796875, 0.02386474609375, 0.0037078857421875, -0.047271728515625, 0.038818359375, 0.058319091796875, -0.0037479400634765625, 0.016998291015625, 0.00557708740234375, -0.0511474609375, 0.04669189453125, -0.057281494140625, 0.01505279541015625, 0.01212310791015625, -0.0293731689453125, -0.03692626953125, 0.0278167724609375, 0.015594482421875, -0.012603759765625, -0.00592041015625, -0.0109405517578125, -0.033477783203125, 0.0125579833984375, 0.0099029541015625, -0.026153564453125, 0.01299285888671875, 0.0007681846618652344, 0.00237274169921875, -0.0081024169921875, 0.007175445556640625, 0.01094818115234375, -0.06427001953125, 0.0015287399291992188, -0.051422119140625, -0.044464111328125, 0.00908660888671875, 0.036956787109375, -0.020904541015625, -0.0231781005859375, 0.02423095703125, 0.07855224609375, 0.031036376953125, 0.02838134765625, -0.0057373046875, -0.024200439453125, -0.0311279296875, -0.0263824462890625, -0.0068359375, 0.006862640380859375, 0.003482818603515625, 0.038665771484375, -0.03240966796875, -0.0204925537109375, 0.033935546875, 0.00820159912109375, 0.0016641616821289062, -0.02557373046875, -0.0802001953125, 0.0227813720703125, -0.0599365234375, 0.059417724609375, -0.0092010498046875, -0.06573486328125, -0.0094757080078125, -0.033447265625, -0.0002930164337158203, -0.0243682861328125, -0.016937255859375, 0.007266998291015625, 0.0027713775634765625, 0.0206756591796875, -0.0643310546875, -0.04681396484375, -0.01678466796875, -0.078369140625, -0.001873016357421875, 0.0222930908203125, -0.022064208984375, 0.01337432861328125, -0.01366424560546875, 0.00795745849609375, 0.00286102294921875, -0.01000213623046875, 0.0265350341796875, 0.00591278076171875, 0.0224456787109375, 0.023773193359375, 0.0215606689453125, -0.00408172607421875, -0.0277099609375, 0.041290283203125, -0.0276336669921875, -0.0709228515625, 0.0545654296875, -0.01422119140625, 0.072021484375, 0.0361328125, 0.01276397705078125, 0.017913818359375, 0.003368377685546875, 0.01181793212890625, -0.034210205078125, -0.025543212890625, -0.005786895751953125, -0.0225830078125, 0.0148162841796875, -0.03265380859375, 0.04400634765625, -0.05511474609375, 0.0161590576171875, 0.00006651878356933594, 0.031494140625, -0.0283050537109375, 0.03662109375, -0.021942138671875, 0.044342041015625, -0.0199432373046875, -0.0158843994140625, 0.0167694091796875, -0.007450103759765625, -0.00949859619140625, -0.0394287109375, -0.01412200927734375, 0.0290069580078125, 0.00634765625, 0.07073974609375, 0.01094818115234375, 0.044952392578125, 0.033660888671875, -0.054534912109375, 0.0335693359375, 0.0080108642578125, 0.0174713134765625, -0.0005006790161132812, -0.0182952880859375, -0.0026912689208984375, 0.03399658203125, -0.005893707275390625, 0.02606201171875, 0.0126953125, 0.0002391338348388672, 0.0033626556396484375, -0.03021240234375, -0.0044708251953125, -0.0119476318359375, -0.06732177734375, 0.01085662841796875, 0.057373046875, 0.025848388671875, 0.036712646484375, -0.004383087158203125, 0.02838134765625, 0.06207275390625, -0.00316619873046875, 0.01499176025390625, -0.004398345947265625, 0.006160736083984375, 0.0278167724609375, 0.002651214599609375, -0.0017328262329101562, 0.022430419921875, -0.06378173828125, 0.0251617431640625, 0.04058837890625, -0.0212249755859375, 0.02301025390625, 0.00677490234375, -0.06475830078125, 0.0253753662109375, -0.06951904296875, -0.039459228515625, -0.028717041015625, 0.048797607421875, -0.01224517822265625, 0.05419921875, 0.040802001953125, -0.03619384765625, -0.0308837890625, 0.030364990234375, 0.07989501953125, -0.016510009765625, -0.044586181640625, 0.0186309814453125, -0.044586181640625, -0.04766845703125, 0.03948974609375, 0.0028133392333984375, -0.034881591796875, -0.014862060546875, -0.004520416259765625, -0.02508544921875, -0.00664520263671875, 0.0181121826171875, -0.0237274169921875, 0.006847381591796875, -0.020782470703125, 0.0115203857421875, 0.0080108642578125, 0.0193634033203125, 0.0190887451171875, -0.016845703125, 0.02679443359375, 0.007633209228515625, -0.01214599609375, 0.019439697265625, -0.0268096923828125, 0.02581787109375, -0.0133056640625, 0.05694580078125, 0.0643310546875, -0.0014972686767578125, -0.00252532958984375, -0.01520538330078125, -0.01084136962890625, -0.04669189453125, 0.02777099609375, -0.011444091796875, -0.052734375, 0.01043701171875, 0.055328369140625, 0.031280517578125, 0.0213165283203125, 0.01145172119140625, -0.023101806640625, -0.005947113037109375, 0.04443359375, -0.04656982421875, -0.0440673828125, -0.0243072509765625, -0.0887451171875, -0.0242919921875, 0.00690460205078125, -0.061553955078125, 0.0218963623046875, 0.03558349609375, 0.0087738037109375, -0.041961669921875, -0.01049041748046875, -0.0003895759582519531, -0.04718017578125, -0.038818359375, -0.0238494873046875, 0.0018968582153320312, 0.0220947265625, 0.01413726806640625, 0.042266845703125, 0.0202484130859375, -0.039581298828125, 0.042388916015625, -0.018310546875, -0.01544952392578125, 0.0416259765625, 0.01032257080078125, -0.0474853515625, 0.03875732421875, 0.0129241943359375, -0.0010023117065429688, 0.0054473876953125, 0.01187896728515625, -0.028472900390625, -0.0272979736328125, -0.041656494140625, 0.0128021240234375, 0.003421783447265625, 0.018402099609375, 0.016143798828125, 0.03485107421875, -0.025970458984375, 0.0017709732055664062, -0.0063629150390625, -0.0310821533203125, -0.00563812255859375, 0.0078277587890625, -0.0025787353515625, -0.01338958740234375, 0.0148773193359375, 0.007843017578125, 0.0052490234375, 0.0217132568359375, 0.007633209228515625, -0.0396728515625, -0.009307861328125, 0.001941680908203125, -0.015869140625, -0.01128387451171875, -0.01311492919921875, 0.0209197998046875, -0.00533294677734375, 0.0284576416015625, -0.01155853271484375, 0.0299835205078125, -0.04534912109375, -0.050262451171875, 0.031005859375, -0.0540771484375, -0.01018524169921875, -0.030059814453125, -0.007343292236328125, 0.006488800048828125, 0.07586669921875, -0.0684814453125, -0.00780487060546875, -0.010406494140625, 0.006870269775390625, 0.01401519775390625, -0.020599365234375, -0.0260162353515625, -0.0187225341796875, -0.1021728515625, 0.029052734375, 0.0191802978515625, -0.0268096923828125, -0.02508544921875, 0.042694091796875, -0.06488037109375, -0.02239990234375, 0.05450439453125, -0.018218994140625, 0.00969696044921875, 0.02886962890625, -0.008209228515625, 0.0167999267578125, -0.038238525390625, -0.01137542724609375, -0.0958251953125, -0.0255584716796875, 0.01029205322265625, 0.076904296875, -0.0132598876953125, -0.0083465576171875, -0.04852294921875, 0.03460693359375, 0.03729248046875, 0.0036830902099609375, 0.006740570068359375, -0.00093841552734375, 0.003597259521484375, -0.031951904296875, 0.0017347335815429688, -0.035736083984375, -0.0296783447265625, -0.0107574462890625, -0.0186614990234375, 0.0265045166015625, -0.022064208984375, -0.03228759765625, 0.0160369873046875, -0.024017333984375, -0.0570068359375, -0.043182373046875, -0.038818359375, 0.023468017578125, -0.01702880859375, -0.01055908203125, -0.060028076171875, -0.07763671875, -0.04315185546875, -0.00878143310546875, -0.028167724609375, 0.04156494140625, -0.01554107666015625, 0.0248260498046875, 0.005794525146484375, -0.03790283203125, -0.0079498291015625, 0.03802490234375, 0.002979278564453125, 0.0208282470703125, 0.04071044921875, -0.0140838623046875, 0.0062255859375, 0.013641357421875, -0.01375579833984375, -0.034454345703125, 0.066162109375, -0.00711822509765625, -0.035888671875, 0.0220184326171875, -0.056976318359375, 0.04931640625, -0.039642333984375, -0.033050537109375, -0.006618499755859375, -0.003154754638671875, 0.04852294921875, -0.03411865234375, 0.08978271484375, -0.01087188720703125, 0.024749755859375, -0.01532745361328125, 0.0302581787109375, 0.044036865234375, 0.022979736328125, 0.01080322265625, -0.023406982421875, -0.000029146671295166016, 0.0040740966796875, 0.0274810791015625, -0.01036834716796875, -0.007381439208984375, 0.00926971435546875, 0.06201171875, -0.0102386474609375, 0.007457733154296875, -0.012664794921875, 0.08258056640625, -0.018280029296875, -0.053558349609375, -0.0111083984375, -0.0297698974609375, 0.05560302734375, 0.034820556640625, 0.03900146484375, 0.01282501220703125, 0.01486968994140625, 0.01308441162109375, 0.02276611328125, 0.055572509765625, 0.01035308837890625, 0.0045318603515625, -0.0054779052734375, 0.0209808349609375, -0.01268768310546875, -0.01392364501953125, 0.06671142578125, -0.003116607666015625, 0.019561767578125, -0.01235198974609375, 0.01898193359375, 0.013275146484375, 0.005847930908203125, 0.007099151611328125, 0.041473388671875, -0.002346038818359375, 0.01374053955078125, 0.0151519775390625, -0.01241302490234375, -0.0027408599853515625, 0.0298919677734375, 0.01419830322265625, -0.0269927978515625, -0.00934600830078125, 0.01788330078125, -0.00044226646423339844, -0.02703857421875, 0.023101806640625, 0.061981201171875, -0.035919189453125, 0.016815185546875, 0.021881103515625, -0.01465606689453125, 0.0164947509765625, -0.01255035400390625, 0.06976318359375, -0.0117034912109375, 0.05340576171875, 0.01552581787109375, 0.0013742446899414062, -0.022430419921875, -0.00968170166015625, -0.029449462890625, 0.0026416778564453125, -0.01007843017578125, -0.0019273757934570312, -0.04095458984375, 0.016510009765625, -0.00766754150390625, 0.00601959228515625, -0.00940704345703125, 0.0147552490234375, -0.0116729736328125, -0.0021762847900390625, -0.00107574462890625, 0.012969970703125, 0.0210113525390625, -0.0157470703125, -0.01499176025390625, -0.0094451904296875, -0.023681640625, -0.002292633056640625, -0.054962158203125, -0.0645751953125, 0.0101776123046875, -0.0070953369140625, 0.0196990966796875, 0.0151824951171875, -0.00896453857421875, -0.03070068359375, -0.00939178466796875, 0.0278778076171875, 0.03643798828125, 0.07733154296875, 0.02032470703125, 0.1014404296875, -0.042144775390625, 0.07647705078125, 0.0291900634765625, 0.0653076171875, -0.0169830322265625, -0.02606201171875, 0.01184844970703125, -0.0308685302734375, -0.0102996826171875, -0.0345458984375, 0.0218505859375, 0.01105499267578125, 0.01593017578125, -0.0055694580078125, 0.002498626708984375, 0.02313232421875, 0.0086822509765625, -0.01763916015625, -0.00955963134765625, 0.01438140869140625, -0.0030364990234375, 0.028594970703125, -0.024078369140625, 0.015655517578125, 0.001979827880859375, 0.01070404052734375, 0.01451873779296875, -0.0265655517578125, 0.0193023681640625, 0.0268402099609375, -0.082275390625, 0.08319091796875, 0.1199951171875, 0.0255126953125, 0.061492919921875, 0.0081634521484375, 0.01497650146484375, 0.0225372314453125, -0.004276275634765625, 0.0019817352294921875, 0.0106658935546875, 0.054473876953125, 0.01316070556640625, -0.0133209228515625, 0.05145263671875, -0.0143890380859375, 0.0181121826171875, 0.049072265625, 0.0657958984375, -0.08197021484375, 0.003955841064453125, -0.0023479461669921875, -0.0138397216796875, 0.048553466796875, -0.0001932382583618164, 0.004177093505859375, -0.01476287841796875, 0.046630859375, -0.0262298583984375, -0.0089874267578125, 0.0161590576171875, -0.018341064453125, -0.0131988525390625, -0.0064239501953125, 0.010345458984375, -0.0099029541015625, -0.01050567626953125, -0.00614166259765625, -0.0006971359252929688, 0.00748443603515625, -0.00396728515625, -0.0149078369140625, 0.0034332275390625, -0.0305328369140625, -0.07452392578125, -0.021209716796875, -0.03692626953125, -0.00765228271484375, 0.040496826171875, -0.0051116943359375, -0.0072784423828125, 0.03070068359375, -0.0287322998046875, 0.032745361328125, -0.0103912353515625, -0.0175323486328125, -0.01532745361328125, -0.016326904296875, -0.0177001953125, 0.02008056640625, -0.025604248046875, 0.01236724853515625, -0.0230712890625, -0.00348663330078125, -0.020477294921875, -0.003398895263671875, 0.1041259765625, -0.036285400390625, -0.04010009765625, 0.0176239013671875, -0.0049285888671875, -0.0098876953125, -0.00774383544921875, 0.0209503173828125, -0.05413818359375, -0.029815673828125, -0.0126953125, -0.047027587890625, 0.01070404052734375, -0.0192108154296875, -0.056182861328125, 0.119140625, -0.01503753662109375, -0.0012073516845703125, 0.0188140869140625, 0.0478515625, -0.06170654296875, 0.0179443359375, -0.0245513916015625, 0.070068359375, -0.0178680419921875, 0.02252197265625, -0.067626953125, -0.00982666015625, 0.00408935546875, 0.0277862548828125, 0.028411865234375, 0.02191162109375, -0.0299530029296875, 0.0082855224609375, -0.00899505615234375, -0.03302001953125, -0.052520751953125, 0.054962158203125, 0.00951385498046875, 0.00043463706970214844, 0.037017822265625, -0.0082550048828125, 0.035308837890625, -0.0233001708984375, -0.01059722900390625, 0.0260467529296875, 0.0186309814453125, 0.0109100341796875, -0.0006661415100097656, 0.00402069091796875, -0.03375244140625, -0.002941131591796875, 0.0258636474609375, -0.03485107421875, -0.023040771484375, 0.0295257568359375, 0.01190948486328125, -0.040374755859375, 0.017242431640625, -0.032440185546875, 0.044586181640625, 0.0135955810546875, 0.0270843505859375, 0.004840850830078125, 0.0262908935546875, -0.011993408203125, 0.010711669921875, 0.020904541015625, 0.04449462890625, -0.0413818359375, 0.004444122314453125, 0.0032405853271484375, 0.01116180419921875, -0.025360107421875, 0.042724609375, 0.0211029052734375, 0.01128387451171875, -0.036346435546875, 0.005451202392578125, 0.0031604766845703125, 0.0211944580078125, 0.0011472702026367188, -0.01059722900390625, 0.04443359375, 0.0181427001953125, 0.041046142578125, -0.048736572265625, -0.006305694580078125, -0.005352020263671875, 0.0160675048828125, -0.0386962890625, -0.042266845703125, 0.026031494140625, -0.01377105712890625, -0.05078125, 0.020477294921875, 0.020416259765625, 0.024658203125, 0.00616455078125, 0.055206298828125, 0.04620361328125, -0.0023365020751953125, -0.0295562744140625, -0.00612640380859375, 0.001674652099609375, 0.037017822265625, -0.0304718017578125, 0.0124969482421875, -0.0180206298828125, 0.03857421875, 0.0197601318359375, 0.03411865234375, 0.0174560546875, 0.0118560791015625, 0.0179290771484375, 0.010955810546875, 0.034454345703125, -0.009490966796875, -0.0012216567993164062, -0.054229736328125, 0.0245513916015625, 0.0093536376953125, 0.00981903076171875, 0.028106689453125, -0.020416259765625, 0.0292510986328125, -0.00379180908203125, -0.01203155517578125, 0.00502777099609375, -0.01629638671875, 0.049346923828125, -0.0014810562133789062, 0.0292510986328125, 0.017578125, -0.06610107421875, -0.0078125, -0.06256103515625, -0.052337646484375, 0.037261962890625, 0.04339599609375, 0.007061004638671875, -0.0130767822265625, 0.01361083984375, 0.00872802734375, -0.031341552734375, -0.006557464599609375, 0.0236053466796875, 0.011016845703125, 0.0160369873046875, 0.0258636474609375, -0.0196380615234375, -0.00508880615234375, -0.0118865966796875, 0.034637451171875, 0.029510498046875, 0.041107177734375, -0.0032958984375, 0.033172607421875, -0.0193023681640625, 0.055206298828125, -0.0577392578125, -0.035308837890625, 0.050048828125, -0.0019550323486328125, 0.01263427734375, 0.0016078948974609375, 0.00788116455078125, 0.054656982421875, 0.01239013671875, -0.03216552734375, 0.031585693359375, 0.0034236907958984375, -0.005970001220703125, -0.037322998046875, 0.01910400390625, -0.0191650390625, -0.044677734375, -0.035125732421875, 0.00447845458984375, -0.006389617919921875, 0.019622802734375, 0.0160675048828125, 0.02935791015625, 0.01194000244140625, 0.00655364990234375, 0.0277557373046875, -0.018646240234375, 0.036285400390625, 0.027923583984375, -0.036834716796875, 0.006351470947265625, 0.05029296875, -0.0042877197265625, 0.042755126953125, 0.027069091796875, 0.045013427734375, 0.031951904296875, 0.02276611328125, -0.0050048828125, -0.02227783203125, 0.02728271484375, -0.0275726318359375, -0.00899505615234375, -0.00493621826171875, 0.007091522216796875, -0.0149383544921875, 0.006103515625, -0.03485107421875, -0.03717041015625, 0.0109710693359375, 0.024871826171875, -0.0048980712890625, -0.02838134765625, -0.083740234375, 0.00838470458984375, 0.03631591796875, -0.0016689300537109375, -0.046295166015625, 0.0241546630859375, -0.03997802734375, 0.031982421875, -0.0021038055419921875, -0.025146484375, 0.007843017578125, 0.0361328125, 0.00272369384765625, 0.00521087646484375, -0.034698486328125, -0.0149993896484375, -0.015899658203125, 0.0211181640625, 0.039337158203125, -0.0340576171875, -0.003589630126953125, 0.00818634033203125, 0.01003265380859375, 0.05517578125, 0.007568359375, -0.018768310546875, 0.01342010498046875, 0.00406646728515625, -0.01325225830078125, -0.04052734375, 0.0026683807373046875, -0.0172119140625, -0.0082550048828125, 0.0021839141845703125, -0.00609588623046875, 0.01568603515625, -0.034393310546875, -0.074462890625, 0.05078125, 0.0014181137084960938, -0.030303955078125, -0.0185546875, -0.044677734375, -0.036865234375, 0.07421875, 0.0160675048828125, -0.034637451171875, -0.0311126708984375, 0.042938232421875, -0.0194854736328125, 0.01532745361328125, 0.0255889892578125, -0.0242919921875, -0.04852294921875, -0.041259765625, -0.04046630859375, -0.0274810791015625, 0.04815673828125, -0.033477783203125, 0.0202178955078125, 0.00568389892578125, -0.0574951171875, -0.061187744140625, -0.04949951171875, -0.0152130126953125, 0.00850677490234375, -0.06671142578125, -0.040069580078125, -0.033111572265625, 0.03125, 0.046295166015625, 0.013763427734375, -0.0347900390625, 0.048065185546875, 0.0023651123046875, -0.0304107666015625, -0.0033416748046875, 0.001495361328125, -0.032623291015625, -0.02764892578125, 0.0177154541015625, -0.01090240478515625, 0.00392913818359375, 0.0217437744140625, -0.0278778076171875, -0.0011692047119140625, 0.054931640625, 0.013458251953125, -0.0723876953125, 0.018341064453125, 0.0633544921875, -0.036376953125, 0.005199432373046875, -0.00823211669921875, -0.002628326416015625, 0.035980224609375, -0.00881195068359375, -0.036224365234375, -0.0699462890625, -0.011871337890625, 0.056915283203125, -0.050689697265625, 0.07562255859375, -0.063720703125, -0.011383056640625, -0.0117645263671875, 0.005023956298828125, -0.01502227783203125, -0.0139923095703125, -0.01490020751953125, 0.044219970703125, -0.00861358642578125, 0.07830810546875, -0.0094146728515625, 0.0496826171875, -0.0279693603515625, 0.04156494140625, 0.01354217529296875, -0.0120391845703125, 0.033905029296875, -0.0193023681640625, 0.010101318359375, 0.0057373046875, -0.0183868408203125, -0.02587890625, -0.006862640380859375, 0.0010824203491210938, 0.004344940185546875, 0.0059051513671875 ]
0bebcf8b2394d773f972a310c2cbae7b06ab5143
Wordpress Stackexchange Q: How do I set up the defualt page icon for admin menu? What do i Change this to So its shows the default page icon?', plugins_url( 'myplugin/images/icon.png' ) add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', plugins_url( 'myplugin/images/icon.png' ), 10 ); I find out how to do this. Step 1. Screenshot or find the image you like. Step 2. Name it icon.png step 3. Create a folder myplugin inside the plugin folder and then create inside that folder images folder and then put the icon.png image inside the image folder and thats it. in short plugin > myplugin > image > icon.png A: Assuming you're running WP 3.8, you can choose from a collection of icons (listed here). In your case, replace your icon URL with dashicons-admin-page, like so: add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', 'dashicons-admin-page', 10 ); You can use these icons in various places around WP. There are various articles on this like this one.
Q: How do I set up the defualt page icon for admin menu? What do i Change this to So its shows the default page icon?', plugins_url( 'myplugin/images/icon.png' ) add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', plugins_url( 'myplugin/images/icon.png' ), 10 ); I find out how to do this. Step 1. Screenshot or find the image you like. Step 2. Name it icon.png step 3. Create a folder myplugin inside the plugin folder and then create inside that folder images folder and then put the icon.png image inside the image folder and thats it. in short plugin > myplugin > image > icon.png A: Assuming you're running WP 3.8, you can choose from a collection of icons (listed here). In your case, replace your icon URL with dashicons-admin-page, like so: add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', 'dashicons-admin-page', 10 ); You can use these icons in various places around WP. There are various articles on this like this one. A: <?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); ?> <?php add_menu_page( 'My Page Title', 'My Page', 'edit_others_posts', 'my_page_slug', 'my_page_function', plugins_url( 'myplugin/images/icon.png' ), 6 ); ?> moreinfo:
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:440748", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128374" }
[ 0.06134033203125, 0.003505706787109375, 0.05047607421875, 0.0087127685546875, 0.01338958740234375, -0.018829345703125, 0.06951904296875, -0.08050537109375, 0.0325927734375, -0.01568603515625, -0.027252197265625, -0.0081939697265625, -0.039093017578125, -0.0307769775390625, -0.01378631591796875, -0.029815673828125, 0.038726806640625, -0.0095367431640625, 0.033843994140625, 0.0006856918334960938, 0.00565338134765625, 0.03692626953125, 0.0027637481689453125, 0.041015625, 0.00839996337890625, -0.050750732421875, 0.09320068359375, -0.00415802001953125, 0.0005216598510742188, -0.03277587890625, 0.02642822265625, 0.0199127197265625, 0.01435089111328125, 0.0204620361328125, 0.0005078315734863281, 0.0232696533203125, 0.020172119140625, 0.01959228515625, 0.0146331787109375, 0.004940032958984375, 0.0224609375, -0.007633209228515625, 0.01165008544921875, 0.0438232421875, -0.030731201171875, -0.041290283203125, 0.0210418701171875, -0.0285186767578125, 0.0172576904296875, -0.05474853515625, 0.025634765625, -0.0093536376953125, 0.037994384765625, -0.026123046875, -0.022308349609375, 0.0006237030029296875, -0.045806884765625, 0.0122528076171875, 0.0243988037109375, 0.03680419921875, 0.002628326416015625, -0.01031494140625, -0.0146331787109375, -0.0335693359375, 0.0132293701171875, -0.0214385986328125, -0.010009765625, 0.0019216537475585938, -0.02947998046875, 0.0281219482421875, 0.054046630859375, -0.022735595703125, -0.00827789306640625, -0.046478271484375, -0.04339599609375, 0.040740966796875, -0.005126953125, -0.01837158203125, 0.0264434814453125, -0.040374755859375, 0.03216552734375, -0.01003265380859375, 0.01184844970703125, 0.0246124267578125, -0.012847900390625, 0.025482177734375, 0.0011224746704101562, -0.025299072265625, -0.01922607421875, -0.00988006591796875, -0.0263824462890625, 0.029205322265625, -0.0215606689453125, -0.01015472412109375, -0.024993896484375, -0.00334930419921875, 0.0081939697265625, 0.03619384765625, -0.007396697998046875, 0.036102294921875, -0.0025882720947265625, -0.048614501953125, 0.071533203125, -0.056121826171875, 0.0014791488647460938, 0.028533935546875, 0.0124664306640625, 0.028900146484375, 0.021270751953125, 0.0161590576171875, 0.007595062255859375, -0.0172119140625, -0.03765869140625, -0.05865478515625, -0.0025844573974609375, 0.0177154541015625, -0.04901123046875, 0.000598907470703125, 0.02685546875, -0.0167388916015625, 0.01136016845703125, 0.0183868408203125, 0.0251007080078125, -0.01560211181640625, 0.005100250244140625, -0.007610321044921875, -0.0196533203125, -0.0318603515625, -0.01114654541015625, 0.040252685546875, -0.03314208984375, -0.00945281982421875, 0.0885009765625, 0.057373046875, 0.03485107421875, -0.033599853515625, 0.005130767822265625, -0.031951904296875, -0.00591278076171875, 0.0071868896484375, -0.0009098052978515625, -0.004344940185546875, 0.018798828125, -0.016082763671875, -0.026824951171875, 0.0018339157104492188, -0.01849365234375, 0.0212249755859375, 0.0240325927734375, -0.004364013671875, -0.0174713134765625, -0.032318115234375, 0.00377655029296875, 0.040679931640625, -0.00696563720703125, 0.0433349609375, 0.0379638671875, 0.005451202392578125, -0.05023193359375, -0.022979736328125, -0.04437255859375, 0.003326416015625, 0.050750732421875, -0.035491943359375, -0.01480865478515625, -0.0007266998291015625, -0.01238250732421875, 0.0030765533447265625, 0.01543426513671875, -0.007762908935546875, -0.005924224853515625, 0.01023101806640625, -0.025360107421875, 0.014251708984375, 0.0121917724609375, 0.007289886474609375, 0.02313232421875, 0.004669189453125, 0.00905609130859375, 0.0026798248291015625, -0.017669677734375, -0.01812744140625, 0.05035400390625, -0.0187530517578125, -0.05975341796875, 0.00392913818359375, 0.0021514892578125, 0.05084228515625, 0.0462646484375, 0.0223388671875, 0.0051727294921875, -0.01134490966796875, -0.043304443359375, -0.00679779052734375, 0.020751953125, 0.00011557340621948242, -0.0127105712890625, 0.003635406494140625, 0.00716400146484375, -0.0467529296875, -0.045135498046875, 0.033782958984375, 0.01262664794921875, 0.036285400390625, -0.01506805419921875, 0.038238525390625, -0.01090240478515625, 0.049896240234375, 0.0662841796875, 0.02557373046875, -0.022613525390625, -0.01371002197265625, 0.0212860107421875, -0.053466796875, -0.04437255859375, 0.040496826171875, -0.046112060546875, -0.005535125732421875, -0.021148681640625, 0.015045166015625, -0.00298309326171875, -0.04962158203125, -0.0111846923828125, 0.0159454345703125, 0.025421142578125, 0.015594482421875, -0.04034423828125, -0.01128387451171875, 0.0238037109375, -0.0101318359375, -0.002315521240234375, 0.072998046875, -0.007343292236328125, 0.02294921875, -0.0135345458984375, -0.0161285400390625, -0.00922393798828125, -0.05615234375, 0.01517486572265625, 0.037628173828125, 0.028472900390625, 0.0297393798828125, -0.023193359375, 0.006866455078125, 0.01422119140625, -0.05572509765625, 0.01259613037109375, 0.0016460418701171875, -0.011871337890625, -0.031707763671875, 0.01340484619140625, -0.0180816650390625, 0.0477294921875, -0.004962921142578125, 0.027923583984375, 0.0139007568359375, -0.037353515625, -0.05029296875, 0.0156402587890625, -0.006622314453125, 0.0302886962890625, 0.03143310546875, -0.00914764404296875, 0.016021728515625, -0.043426513671875, 0.028289794921875, 0.014190673828125, 0.0236358642578125, -0.01087188720703125, -0.004638671875, 0.0214996337890625, 0.034759521484375, -0.015533447265625, 0.00801849365234375, 0.036712646484375, -0.02728271484375, -0.0170440673828125, 0.011016845703125, -0.0014286041259765625, -0.01419830322265625, -0.0072479248046875, -0.03326416015625, -0.0299072265625, -0.0033550262451171875, -0.00868988037109375, -0.07861328125, 0.0206756591796875, 0.04742431640625, -0.028533935546875, -0.009674072265625, 0.023223876953125, 0.016571044921875, -0.02691650390625, 0.01312255859375, -0.03900146484375, -0.006069183349609375, -0.0197601318359375, -0.0259857177734375, 0.029632568359375, -0.034149169921875, 0.04681396484375, 0.0687255859375, 0.00009632110595703125, 0.00400543212890625, -0.0124359130859375, 0.0190887451171875, -0.01076507568359375, 0.0254058837890625, 0.00209808349609375, -0.0280303955078125, 0.01029205322265625, 0.05316162109375, 0.0021266937255859375, -0.0031795501708984375, -0.034149169921875, -0.052490234375, -0.0386962890625, -0.0364990234375, -0.1202392578125, -0.0660400390625, -0.026519775390625, -0.044647216796875, -0.00151824951171875, 0.0020236968994140625, -0.01141357421875, 0.00498199462890625, 0.0208740234375, 0.0172882080078125, -0.04229736328125, 0.00878143310546875, 0.006565093994140625, -0.01727294921875, -0.00795745849609375, -0.024658203125, -0.0164031982421875, -0.0204315185546875, -0.0014667510986328125, -0.0029087066650390625, 0.0009679794311523438, -0.0227203369140625, 0.0168914794921875, 0.0183258056640625, 0.004940032958984375, -0.00797271728515625, 0.048004150390625, -0.045013427734375, 0.01538848876953125, 0.01161956787109375, 0.07196044921875, 0.0300445556640625, -0.033233642578125, -0.0178070068359375, -0.034912109375, -0.0244293212890625, 0.0219573974609375, -0.006633758544921875, 0.021209716796875, -0.0107879638671875, 0.010040283203125, -0.037445068359375, -0.02984619140625, 0.0037364959716796875, -0.033966064453125, 0.0531005859375, -0.0006775856018066406, -0.0217437744140625, 0.01451873779296875, 0.019775390625, 0.007289886474609375, -0.021148681640625, 0.025054931640625, -0.0186004638671875, 0.0021305084228515625, -0.0147552490234375, -0.0179901123046875, -0.02056884765625, 0.024261474609375, -0.0113983154296875, -0.002391815185546875, 0.00960540771484375, 0.0257110595703125, 0.0178985595703125, 0.0129241943359375, 0.007701873779296875, -0.00836944580078125, 0.0093536376953125, -0.04278564453125, 0.0195770263671875, -0.0195159912109375, 0.004711151123046875, -0.0223388671875, 0.031768798828125, -0.019927978515625, -0.0257110595703125, -0.00884246826171875, 0.016448974609375, 0.00897979736328125, -0.040283203125, 0.004329681396484375, -0.02239990234375, -0.1259765625, 0.0247955322265625, 0.0118865966796875, -0.055145263671875, 0.019439697265625, -0.0279388427734375, -0.06085205078125, -0.052520751953125, 0.0281829833984375, -0.0222320556640625, -0.017730712890625, 0.0556640625, -0.05413818359375, 0.024505615234375, -0.019775390625, -0.0240020751953125, -0.11065673828125, -0.0195159912109375, -0.05230712890625, 0.12109375, 0.040679931640625, -0.039306640625, -0.01885986328125, 0.0594482421875, 0.01111602783203125, 0.0216827392578125, -0.006683349609375, 0.0084991455078125, -0.006397247314453125, -0.047821044921875, -0.00482940673828125, -0.0280609130859375, -0.00027251243591308594, -0.0255584716796875, -0.0802001953125, -0.0306243896484375, -0.0005645751953125, 0.04339599609375, 0.048187255859375, -0.03460693359375, -0.036407470703125, -0.0345458984375, -0.01171112060546875, 0.00809478759765625, 0.0211181640625, -0.010009765625, -0.052276611328125, -0.0289459228515625, 0.020965576171875, 0.00977325439453125, 0.00402069091796875, 0.000823974609375, 0.00766754150390625, 0.0160064697265625, -0.0241241455078125, 0.00740814208984375, 0.017242431640625, 0.01312255859375, -0.011077880859375, 0.0447998046875, 0.0198211669921875, 0.021087646484375, 0.00879669189453125, -0.00853729248046875, 0.00955963134765625, -0.015716552734375, 0.01462554931640625, -0.0065460205078125, -0.0242767333984375, 0.01541900634765625, -0.015838623046875, 0.01425933837890625, 0.03814697265625, -0.0053558349609375, -0.0256805419921875, -0.038177490234375, 0.041107177734375, 0.011322021484375, -0.00007176399230957031, -0.049713134765625, -0.028656005859375, -0.00420379638671875, 0.0141143798828125, 0.049835205078125, 0.0097808837890625, 0.0109100341796875, 0.035003662109375, 0.052978515625, -0.00505828857421875, 0.040924072265625, 0.0489501953125, 0.0139617919921875, 0.032135009765625, 0.025299072265625, -0.022247314453125, -0.003326416015625, -0.01425933837890625, 0.057647705078125, 0.034698486328125, -0.019287109375, -0.00955963134765625, -0.004795074462890625, 0.040557861328125, -0.008453369140625, 0.00922393798828125, 0.00904083251953125, -0.0084075927734375, -0.03131103515625, -0.0189361572265625, -0.006916046142578125, -0.041107177734375, -0.03570556640625, 0.002292633056640625, 0.00795745849609375, -0.0081939697265625, 0.00891876220703125, 0.0474853515625, 0.0088653564453125, 0.01580810546875, -0.01178741455078125, -0.0008406639099121094, -0.00856781005859375, 0.0362548828125, 0.0237579345703125, 0.005641937255859375, -0.01454925537109375, -0.0022678375244140625, -0.0003902912139892578, -0.0156402587890625, 0.0404052734375, -0.00839996337890625, 0.0311126708984375, -0.023681640625, -0.052001953125, 0.0416259765625, -0.06689453125, 0.0004940032958984375, 0.022491455078125, -0.064208984375, -0.09283447265625, -0.01953125, 0.04364013671875, 0.06365966796875, -0.0560302734375, -0.034088134765625, 0.058013916015625, -0.01515960693359375, 0.049652099609375, -0.0219268798828125, -0.032440185546875, 0.04327392578125, 0.0509033203125, -0.01739501953125, -0.0413818359375, -0.0100860595703125, -0.0860595703125, -0.0017375946044921875, -0.0044097900390625, 0.01538848876953125, -0.00464630126953125, -0.05609130859375, 0.0211639404296875, 0.00786590576171875, -0.00803375244140625, -0.005611419677734375, 0.0289764404296875, 0.025543212890625, 0.00670623779296875, 0.02490234375, -0.007732391357421875, -0.059967041015625, -0.0338134765625, 0.037384033203125, -0.007205963134765625, -0.01453399658203125, -0.02886962890625, 0.00904083251953125, 0.03485107421875, 0.0021514892578125, 0.0165863037109375, -0.023712158203125, 0.049591064453125, 0.00600433349609375, 0.12445068359375, -0.005340576171875, 0.01309967041015625, 0.00848388671875, -0.0264129638671875, -0.0048980712890625, -0.00861358642578125, 0.024566650390625, -0.00017905235290527344, 0.005107879638671875, -0.017913818359375, -0.01971435546875, -0.020355224609375, -0.010406494140625, 0.03375244140625, 0.06982421875, 0.0014438629150390625, 0.004070281982421875, 0.00421142578125, 0.00400543212890625, -0.0162811279296875, 0.017425537109375, -0.003387451171875, -0.01232147216796875, 0.0472412109375, -0.0165557861328125, 0.048736572265625, 0.01535797119140625, 0.0020885467529296875, -0.0044403076171875, -0.01209259033203125, 0.0130157470703125, 0.026611328125, -0.0499267578125, 0.08734130859375, 0.0819091796875, -0.004711151123046875, 0.019683837890625, 0.00350189208984375, -0.017578125, -0.024810791015625, -0.007213592529296875, 0.01422882080078125, -0.005504608154296875, 0.0162811279296875, -0.01580810546875, 0.0194244384765625, 0.033294677734375, -0.001956939697265625, 0.031829833984375, 0.0386962890625, 0.04608154296875, -0.044097900390625, 0.026153564453125, -0.00998687744140625, -0.0389404296875, 0.0246124267578125, 0.0072021484375, -0.0060577392578125, -0.013092041015625, 0.045562744140625, -0.0634765625, -0.00716400146484375, 0.0285797119140625, -0.0305633544921875, -0.0034046173095703125, 0.032623291015625, 0.046173095703125, 0.0242462158203125, -0.0287933349609375, -0.0235595703125, 0.0228729248046875, -0.007808685302734375, 0.0265350341796875, 0.01488494873046875, -0.031829833984375, -0.004352569580078125, -0.0015468597412109375, 0.01033782958984375, -0.043365478515625, -0.01357269287109375, 0.0570068359375, 0.034088134765625, -0.00006103515625, 0.04595947265625, -0.00018346309661865234, -0.004955291748046875, 0.016448974609375, -0.0316162109375, 0.0228118896484375, -0.0037136077880859375, 0.004344940185546875, -0.005512237548828125, -0.024658203125, 0.000031828880310058594, -0.023223876953125, 0.00151824951171875, -0.0114898681640625, -0.01090240478515625, 0.1298828125, -0.04132080078125, -0.023468017578125, 0.01342010498046875, 0.00959014892578125, -0.007678985595703125, -0.01483917236328125, 0.0287628173828125, -0.03668212890625, -0.0272216796875, -0.024200439453125, -0.031707763671875, 0.00298309326171875, -0.0333251953125, -0.05010986328125, 0.0675048828125, -0.029541015625, -0.002254486083984375, -0.018646240234375, 0.03131103515625, -0.000037789344787597656, 0.01428985595703125, -0.02880859375, 0.0307159423828125, -0.009918212890625, 0.048187255859375, -0.0184783935546875, 0.0253753662109375, 0.016448974609375, 0.01702880859375, 0.0408935546875, 0.026702880859375, -0.0254058837890625, 0.008941650390625, 0.0304718017578125, -0.0114593505859375, -0.0152740478515625, 0.055694580078125, -0.00519561767578125, -0.00829315185546875, 0.018096923828125, -0.031463623046875, 0.02899169921875, -0.040008544921875, -0.00803375244140625, 0.0023708343505859375, 0.0224761962890625, 0.01361846923828125, -0.017791748046875, -0.00933074951171875, -0.045318603515625, -0.010406494140625, 0.0400390625, -0.048797607421875, 0.0202178955078125, 0.0251617431640625, 0.02008056640625, 0.041229248046875, -0.02471923828125, 0.0076141357421875, 0.027069091796875, 0.019500732421875, -0.0202789306640625, 0.0218353271484375, 0.0162200927734375, -0.062255859375, 0.0132293701171875, -0.0216827392578125, 0.0286407470703125, -0.02313232421875, 0.0309906005859375, -0.0223388671875, 0.0191497802734375, -0.063232421875, 0.0038967132568359375, -0.007457733154296875, 0.02392578125, -0.0247039794921875, -0.038299560546875, 0.0045318603515625, -0.00606536865234375, 0.0237579345703125, 0.0008845329284667969, 0.03704833984375, -0.0249176025390625, -0.01053619384765625, -0.00677490234375, 0.003635406494140625, 0.0136260986328125, -0.011444091796875, 0.00244140625, 0.027557373046875, 0.01126861572265625, 0.038482666015625, -0.0205230712890625, 0.0299835205078125, 0.01494598388671875, -0.0074615478515625, -0.0333251953125, 0.038421630859375, 0.033355712890625, 0.0243682861328125, -0.0130615234375, 0.035400390625, -0.01404571533203125, 0.0120849609375, -0.04278564453125, -0.05206298828125, -0.00400543212890625, 0.03912353515625, -0.02130126953125, 0.0242156982421875, 0.0234832763671875, 0.0309295654296875, 0.005008697509765625, -0.00518798828125, 0.05657958984375, -0.00916290283203125, 0.0322265625, -0.043853759765625, 0.0285491943359375, 0.0007281303405761719, -0.0024566650390625, 0.007396697998046875, 0.0022106170654296875, 0.041473388671875, -0.05084228515625, 0.0192108154296875, -0.01383209228515625, -0.0159454345703125, 0.044952392578125, -0.034332275390625, 0.005596160888671875, -0.046051025390625, -0.0924072265625, -0.0267791748046875, -0.0193939208984375, -0.0166473388671875, 0.020233154296875, 0.042236328125, -0.003864288330078125, 0.00904083251953125, -0.008758544921875, 0.0272979736328125, -0.0163116455078125, -0.031890869140625, 0.01045989990234375, 0.0019626617431640625, 0.03631591796875, 0.020263671875, 0.00958251953125, 0.006916046142578125, 0.00733184814453125, 0.019317626953125, 0.01529693603515625, 0.0289306640625, -0.0189361572265625, 0.0232086181640625, -0.03973388671875, 0.00737762451171875, -0.0474853515625, -0.032928466796875, 0.0131988525390625, -0.01303863525390625, -0.01039886474609375, 0.013336181640625, -0.019287109375, 0.0174102783203125, 0.0106048583984375, -0.033416748046875, -0.0284576416015625, -0.005146026611328125, 0.0254364013671875, 0.0256805419921875, 0.042724609375, -0.006862640380859375, -0.0316162109375, -0.06317138671875, 0.01165771484375, 0.042449951171875, 0.045196533203125, -0.043487548828125, 0.0372314453125, -0.00267791748046875, 0.01021575927734375, 0.019317626953125, -0.007354736328125, 0.03863525390625, 0.044525146484375, -0.05950927734375, -0.03717041015625, -0.01282501220703125, -0.0189056396484375, 0.018035888671875, -0.0184783935546875, 0.056732177734375, -0.0118865966796875, 0.0017452239990234375, 0.07513427734375, 0.01419830322265625, -0.00493621826171875, -0.07354736328125, -0.02197265625, 0.0740966796875, 0.006885528564453125, 0.01885986328125, 0.0234832763671875, -0.0311737060546875, -0.05084228515625, 0.0013980865478515625, 0.01099395751953125, -0.0285491943359375, -0.0232086181640625, -0.1240234375, 0.035247802734375, 0.04119873046875, 0.041778564453125, -0.10186767578125, 0.0648193359375, -0.0048370361328125, 0.04644775390625, 0.01306915283203125, 0.040863037109375, -0.02850341796875, -0.035400390625, -0.064697265625, 0.006191253662109375, -0.06048583984375, 0.0171356201171875, -0.0163421630859375, 0.017303466796875, 0.0374755859375, -0.032867431640625, -0.0072174072265625, -0.019317626953125, 0.02679443359375, 0.032318115234375, -0.01763916015625, -0.00312042236328125, -0.006336212158203125, -0.004978179931640625, -0.025543212890625, -0.04290771484375, 0.0207672119140625, -0.06549072265625, -0.046630859375, 0.00251007080078125, 0.00922393798828125, 0.019927978515625, -0.04986572265625, -0.078369140625, 0.024078369140625, -0.004077911376953125, -0.035552978515625, -0.01079559326171875, 0.01201629638671875, -0.0142974853515625, -0.02166748046875, -0.0086822509765625, -0.032928466796875, 0.0214996337890625, 0.03466796875, 0.0201568603515625, 0.051055908203125, -0.0060577392578125, 0.01082611083984375, -0.034515380859375, 0.0244140625, 0.0087127685546875, 0.025604248046875, 0.029266357421875, -0.0198822021484375, 0.034423828125, 0.04705810546875, -0.038848876953125, -0.06268310546875, -0.0301055908203125, -0.024658203125, -0.0142669677734375, -0.002307891845703125, 0.0081329345703125, -0.0030078887939453125, 0.0579833984375, 0.015869140625, 0.00009590387344360352, -0.0313720703125, -0.0147247314453125, -0.0748291015625, -0.0033321380615234375, -0.00457763671875, 0.007251739501953125, -0.05560302734375, 0.0018682479858398438, 0.03997802734375, 0.007770538330078125, -0.00279998779296875, 0.032806396484375, 0.004730224609375, -0.0186004638671875, 0.059722900390625, -0.02117919921875, -0.0281829833984375, -0.005764007568359375, 0.077880859375, -0.04071044921875, 0.021575927734375, 0.006114959716796875, 0.002788543701171875, 0.045684814453125, 0.003509521484375, -0.027313232421875, 0.029541015625, -0.050079345703125, 0.0175323486328125, -0.031494140625, -0.004093170166015625, -0.0633544921875, 0.0252532958984375, -0.01202392578125, 0.0269012451171875, 0.0030727386474609375, 0.041290283203125, -0.02239990234375, 0.024810791015625, -0.00016105175018310547, 0.0419921875, -0.00725555419921875, 0.0208282470703125, -0.001068115234375, 0.007465362548828125, -0.0499267578125, 0.0118865966796875, -0.0189208984375, -0.04876708984375, 0.007843017578125, -0.0224456787109375, 0.0099334716796875, -0.0704345703125, 0.038818359375, -0.027191162109375, -0.00606536865234375, 0.03131103515625 ]
4756223ee30ebdb76826209cb40cc0d91c7593d9
Wordpress Stackexchange Q: Options Framework options not being output I am using the Options Framework. In my theme's options.php, I have the following code: function optionsframework_options() { $options = array(); $options[] = array( 'name' => __('Footer Navigation', 'options_framework_theme'), 'type' => 'heading'); $options[] = array( 'name' => __('Button 1 URL', 'options_framework_theme'), 'desc' => __('Enter the URL clicking on the button takes you to.', 'options_framework_theme'), 'id' => 'footer-nav1_URL', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Button 1 Text', 'options_framework_theme'), 'desc' => __('Enter the text you see underneath the button.', 'options_framework_theme'), 'id' => 'footer-nav1_text', 'std' => '', 'type' => 'text'); In my theme's footer.php, I have the following code: <?php if (of_get_option('footer-nav1_URL', '') !== '') { ?> <a href="<?php echo of_get_option('footer-nav1_URL', '');?>"> <span id="icon1" class="index2"></span> <span class="iconshadow index1"></span> <span class="name"><?php echo of_get_option('footer-nav1_text', '');?></span> </a> <?php }?> Those options are not being output in the footer. The footer is working normally otherwise. Other options called in front-page.php are working okay though. Why won't these options work? A: I think the problem is that you are using uppercase letters in the options id: footer-nav1_URL Try instead: footer-nav1_url In general you should avoid using uppercase letters in options names in WordPress.
Q: Options Framework options not being output I am using the Options Framework. In my theme's options.php, I have the following code: function optionsframework_options() { $options = array(); $options[] = array( 'name' => __('Footer Navigation', 'options_framework_theme'), 'type' => 'heading'); $options[] = array( 'name' => __('Button 1 URL', 'options_framework_theme'), 'desc' => __('Enter the URL clicking on the button takes you to.', 'options_framework_theme'), 'id' => 'footer-nav1_URL', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Button 1 Text', 'options_framework_theme'), 'desc' => __('Enter the text you see underneath the button.', 'options_framework_theme'), 'id' => 'footer-nav1_text', 'std' => '', 'type' => 'text'); In my theme's footer.php, I have the following code: <?php if (of_get_option('footer-nav1_URL', '') !== '') { ?> <a href="<?php echo of_get_option('footer-nav1_URL', '');?>"> <span id="icon1" class="index2"></span> <span class="iconshadow index1"></span> <span class="name"><?php echo of_get_option('footer-nav1_text', '');?></span> </a> <?php }?> Those options are not being output in the footer. The footer is working normally otherwise. Other options called in front-page.php are working okay though. Why won't these options work? A: I think the problem is that you are using uppercase letters in the options id: footer-nav1_URL Try instead: footer-nav1_url In general you should avoid using uppercase letters in options names in WordPress.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:440798", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128525" }
[ 0.0247344970703125, -0.0294036865234375, 0.0080108642578125, 0.0245208740234375, -0.004650115966796875, -0.0360107421875, 0.07440185546875, -0.0139007568359375, 0.0150909423828125, 0.0019397735595703125, -0.044769287109375, -0.018402099609375, -0.035308837890625, -0.0171356201171875, -0.023223876953125, -0.0595703125, 0.029327392578125, -0.03436279296875, 0.0146636962890625, -0.02069091796875, 0.01556396484375, -0.009796142578125, 0.0248260498046875, 0.1009521484375, 0.055084228515625, -0.10089111328125, 0.04681396484375, 0.01218414306640625, 0.026763916015625, 0.000812530517578125, 0.01580810546875, 0.003078460693359375, -0.0108184814453125, 0.01363372802734375, 0.033905029296875, -0.0307769775390625, -0.0030994415283203125, 0.015167236328125, 0.0295257568359375, 0.01326751708984375, 0.036712646484375, -0.0178375244140625, 0.034820556640625, 0.01349639892578125, -0.00618743896484375, -0.036376953125, 0.0477294921875, -0.021759033203125, 0.007541656494140625, 0.00812530517578125, 0.02972412109375, -0.0164031982421875, 0.038604736328125, 0.0159759521484375, -0.0220184326171875, -0.0246124267578125, -0.020477294921875, 0.06158447265625, 0.0167236328125, -0.01361846923828125, -0.023834228515625, 0.032745361328125, 0.00000852346420288086, 0.015777587890625, -0.0013628005981445312, -0.0126800537109375, 0.0011320114135742188, 0.01172637939453125, -0.028167724609375, -0.0181884765625, 0.0369873046875, -0.012481689453125, 0.0042724609375, -0.04608154296875, 0.0185546875, -0.006992340087890625, 0.003551483154296875, -0.0308074951171875, 0.0016965866088867188, 0.004364013671875, -0.0196533203125, -0.00429534912109375, -0.05633544921875, -0.00809478759765625, 0.0035228729248046875, 0.0006961822509765625, -0.022918701171875, -0.0174407958984375, -0.0205230712890625, -0.0243377685546875, -0.0307464599609375, -0.0244903564453125, -0.004001617431640625, 0.01180267333984375, -0.028411865234375, 0.0107574462890625, 0.00827789306640625, 0.0228118896484375, 0.0120086669921875, 0.041168212890625, 0.0141143798828125, -0.042694091796875, 0.06268310546875, -0.04742431640625, -0.02069091796875, 0.038421630859375, 0.00318145751953125, 0.0484619140625, 0.021942138671875, 0.039703369140625, 0.0069427490234375, -0.00811004638671875, -0.004146575927734375, -0.052978515625, 0.0099029541015625, -0.0015745162963867188, -0.02178955078125, -0.0194549560546875, 0.022674560546875, -0.06005859375, 0.0157470703125, 0.028961181640625, 0.00276947021484375, -0.02410888671875, -0.03350830078125, -0.03192138671875, -0.0251312255859375, -0.0264739990234375, 0.0229949951171875, 0.0158843994140625, -0.036346435546875, -0.007099151611328125, 0.057464599609375, 0.042327880859375, 0.02508544921875, -0.0222625732421875, -0.01531219482421875, 0.021942138671875, -0.01395416259765625, 0.02142333984375, 0.05780029296875, -0.055267333984375, -0.033721923828125, 0.039215087890625, -0.0271759033203125, 0.0009908676147460938, 0.024932861328125, 0.0278167724609375, -0.0321044921875, -0.054107666015625, 0.01496124267578125, 0.0223846435546875, 0.04595947265625, -0.0167236328125, -0.003589630126953125, -0.02569580078125, 0.034088134765625, -0.0295257568359375, -0.023681640625, -0.035980224609375, -0.018310546875, -0.0018253326416015625, 0.02667236328125, -0.042572021484375, -0.04571533203125, -0.00013530254364013672, -0.022979736328125, -0.01352691650390625, 0.006389617919921875, 0.051666259765625, -0.007579803466796875, 0.00439453125, -0.020721435546875, 0.018646240234375, 0.0121917724609375, 0.00940704345703125, -0.01319122314453125, 0.01348876953125, 0.025054931640625, -0.058074951171875, -0.065185546875, -0.0721435546875, 0.01953125, -0.0279541015625, -0.03607177734375, 0.033782958984375, 0.01050567626953125, 0.035125732421875, 0.0165557861328125, 0.00608062744140625, 0.03521728515625, 0.01190948486328125, -0.034332275390625, 0.02728271484375, -0.00862884521484375, -0.0025806427001953125, -0.04034423828125, 0.01904296875, -0.0210723876953125, -0.028564453125, -0.0238037109375, -0.007755279541015625, 0.00959014892578125, -0.01216888427734375, -0.008819580078125, -0.0107421875, 0.004261016845703125, 0.036224365234375, 0.0176239013671875, 0.0165863037109375, 0.01396942138671875, 0.02020263671875, -0.040496826171875, 0.0323486328125, -0.0258636474609375, 0.0170135498046875, 0.0024204254150390625, 0.021484375, -0.01277923583984375, 0.0235748291015625, -0.005603790283203125, 0.0137939453125, -0.009429931640625, 0.05511474609375, 0.041656494140625, 0.009552001953125, -0.018402099609375, -0.01898193359375, 0.0169219970703125, 0.0196685791015625, -0.0291290283203125, 0.0299224853515625, 0.0157470703125, 0.00716400146484375, -0.061248779296875, -0.0180511474609375, -0.0206451416015625, -0.0029544830322265625, 0.00875091552734375, 0.047821044921875, 0.002956390380859375, 0.050811767578125, -0.01428985595703125, -0.0022983551025390625, 0.0594482421875, 0.029449462890625, 0.0216064453125, -0.0239410400390625, -0.0036983489990234375, 0.0167388916015625, 0.0225372314453125, 0.00380706787109375, 0.019012451171875, 0.00421142578125, 0.00481414794921875, 0.03643798828125, -0.0272216796875, -0.007617950439453125, 0.0198974609375, -0.01715087890625, -0.003009796142578125, -0.0251617431640625, -0.004314422607421875, -0.02166748046875, 0.028472900390625, -0.012176513671875, -0.0013818740844726562, -0.0125885009765625, -0.06097412109375, 0.021759033203125, 0.04046630859375, -0.004230499267578125, -0.01363372802734375, 0.006855010986328125, 0.017578125, -0.0223541259765625, -0.005767822265625, 0.0015745162963867188, -0.0435791015625, -0.009979248046875, 0.0222320556640625, 0.061065673828125, 0.036285400390625, -0.01432037353515625, 0.009307861328125, -0.0301666259765625, -0.001293182373046875, 0.01125335693359375, 0.0196990966796875, 0.02703857421875, 0.0390625, 0.0164031982421875, -0.01025390625, 0.027374267578125, -0.01137542724609375, -0.00559234619140625, 0.00614166259765625, -0.0175933837890625, 0.0247344970703125, -0.01026153564453125, 0.054931640625, 0.059722900390625, 0.0005173683166503906, 0.003055572509765625, -0.00061798095703125, -0.01434326171875, 0.0018520355224609375, 0.0021820068359375, -0.0097503662109375, 0.00588226318359375, -0.042083740234375, 0.05303955078125, 0.01010894775390625, 0.0204925537109375, 0.005741119384765625, -0.0457763671875, -0.00652313232421875, -0.0021800994873046875, -0.06658935546875, -0.0540771484375, 0.0252227783203125, -0.0618896484375, 0.037017822265625, -0.01245880126953125, -0.041473388671875, -0.0203704833984375, 0.0229644775390625, 0.010223388671875, -0.01194000244140625, -0.058746337890625, -0.06097412109375, -0.07415771484375, -0.092041015625, 0.01678466796875, 0.0102691650390625, 0.0244293212890625, 0.019500732421875, 0.0137481689453125, 0.01062774658203125, -0.02056884765625, 0.045806884765625, -0.0418701171875, -0.007770538330078125, 0.0272216796875, 0.03173828125, -0.052337646484375, -0.0501708984375, -0.004711151123046875, 0.056640625, 0.0038547515869140625, -0.030914306640625, 0.01448822021484375, -0.031005859375, -0.04888916015625, 0.000591278076171875, 0.00020635128021240234, 0.0233306884765625, -0.0193634033203125, 0.0106201171875, -0.0465087890625, -0.0255279541015625, -0.0171661376953125, -0.04974365234375, 0.03997802734375, 0.05340576171875, -0.0018100738525390625, -0.00710296630859375, 0.0084686279296875, -0.0025691986083984375, -0.005855560302734375, 0.0126800537109375, -0.034088134765625, 0.01262664794921875, 0.0000045299530029296875, 0.006015777587890625, -0.011138916015625, 0.02496337890625, -0.00957489013671875, -0.0233612060546875, 0.0095672607421875, 0.0067138671875, -0.005939483642578125, 0.01141357421875, -0.0280303955078125, -0.05572509765625, 0.0096282958984375, -0.08245849609375, -0.025970458984375, -0.002376556396484375, 0.027252197265625, 0.0426025390625, 0.04840087890625, -0.035003662109375, -0.01123809814453125, -0.0301513671875, 0.002593994140625, 0.0008115768432617188, -0.05926513671875, 0.00003975629806518555, -0.01403045654296875, -0.116943359375, -0.0151214599609375, 0.00537872314453125, -0.052764892578125, 0.01348114013671875, -0.0291290283203125, -0.060638427734375, -0.046630859375, -0.00659942626953125, 0.0226593017578125, 0.0010776519775390625, -0.0033092498779296875, -0.0204315185546875, -0.00206756591796875, 0.01212310791015625, -0.0192718505859375, -0.057891845703125, -0.020355224609375, 0.02886962890625, 0.036529541015625, 0.0005517005920410156, -0.0104827880859375, -0.01172637939453125, 0.06903076171875, 0.006500244140625, 0.0235137939453125, 0.00795745849609375, 0.01366424560546875, -0.005859375, -0.0022182464599609375, 0.00003713369369506836, -0.03143310546875, 0.0010175704956054688, 0.01049041748046875, -0.05450439453125, 0.03619384765625, -0.0194854736328125, 0.0122528076171875, 0.029876708984375, -0.059478759765625, -0.0257720947265625, -0.00408935546875, -0.05169677734375, -0.0248565673828125, 0.0036678314208984375, -0.05023193359375, 0.00980377197265625, -0.05621337890625, 0.039886474609375, -0.016571044921875, -0.0067901611328125, 0.01132965087890625, 0.09619140625, 0.0196075439453125, -0.01910400390625, -0.04498291015625, 0.002655029296875, 0.0248260498046875, -0.01079559326171875, 0.0343017578125, 0.01153564453125, -0.025146484375, 0.054351806640625, -0.003704071044921875, 0.03582763671875, -0.0146026611328125, -0.0011034011840820312, -0.0205841064453125, -0.057952880859375, 0.061798095703125, 0.0135955810546875, -0.01512908935546875, 0.0015115737915039062, -0.01263427734375, 0.01242828369140625, -0.0243072509765625, 0.00653839111328125, -0.00148773193359375, 0.01318359375, -0.00835418701171875, -0.031829833984375, 0.0004715919494628906, -0.0210418701171875, 0.09716796875, 0.034759521484375, 0.0037059783935546875, 0.05120849609375, 0.04412841796875, 0.005496978759765625, 0.0272369384765625, 0.0455322265625, -0.01222991943359375, 0.044769287109375, -0.01361083984375, -0.0257110595703125, 0.004596710205078125, -0.0259552001953125, 0.08477783203125, 0.0194854736328125, -0.039520263671875, 0.027740478515625, -0.00795745849609375, 0.00799560546875, 0.003948211669921875, 0.004711151123046875, -0.00621795654296875, -0.0100250244140625, 0.017181396484375, 0.0139007568359375, -0.00829315185546875, 0.0173797607421875, 0.001251220703125, 0.053680419921875, 0.0345458984375, -0.01033782958984375, -0.0174560546875, 0.06365966796875, 0.0182342529296875, 0.00908660888671875, -0.0145416259765625, -0.055084228515625, -0.051177978515625, 0.036285400390625, 0.04168701171875, -0.0616455078125, 0.040618896484375, -0.004207611083984375, 0.062744140625, -0.04412841796875, 0.02508544921875, -0.034332275390625, 0.032745361328125, 0.03887939453125, -0.020721435546875, 0.045196533203125, -0.02239990234375, -0.025054931640625, 0.03680419921875, 0.0287933349609375, -0.051177978515625, -0.023712158203125, -0.01177215576171875, 0.01035308837890625, -0.0010213851928710938, -0.01357269287109375, 0.02093505859375, -0.0013217926025390625, 0.0116119384765625, 0.0274810791015625, -0.036102294921875, 0.007720947265625, 0.0230560302734375, -0.0168609619140625, -0.0195465087890625, 0.0201416015625, -0.10498046875, -0.02972412109375, -0.02239990234375, -0.0163421630859375, 0.058563232421875, -0.041015625, 0.0389404296875, 0.00562286376953125, -0.03912353515625, -0.044189453125, 0.0158538818359375, 0.044677734375, 0.046905517578125, -0.06011962890625, 0.021881103515625, -0.05328369140625, 0.004184722900390625, -0.041748046875, -0.048919677734375, -0.050048828125, -0.02392578125, 0.0268707275390625, 0.006496429443359375, -0.01226806640625, -0.0596923828125, -0.0166015625, 0.0202484130859375, 0.044952392578125, 0.0278472900390625, 0.004062652587890625, 0.06317138671875, -0.030487060546875, 0.0125274658203125, 0.0015916824340820312, 0.041656494140625, -0.01117706298828125, -0.0052642822265625, 0.0030879974365234375, -0.018707275390625, 0.006748199462890625, -0.006740570068359375, 0.008056640625, -0.0010499954223632812, 0.04095458984375, 0.0093994140625, -0.006244659423828125, -0.0156707763671875, 0.00028133392333984375, -0.0040435791015625, 0.03271484375, 0.01189422607421875, -0.0249481201171875, 0.046783447265625, -0.0117340087890625, -0.01511383056640625, -0.00826263427734375, 0.005828857421875, -0.0067138671875, 0.0030994415283203125, -0.01422882080078125, 0.01396942138671875, -0.065673828125, 0.08544921875, 0.1163330078125, 0.0305633544921875, 0.058380126953125, -0.0010013580322265625, 0.00856781005859375, 0.01282501220703125, 0.04327392578125, -0.029876708984375, -0.01029205322265625, 0.04034423828125, 0.01180267333984375, -0.015228271484375, 0.01308441162109375, -0.0291900634765625, 0.042266845703125, 0.05615234375, 0.0592041015625, -0.0987548828125, 0.02685546875, 0.020477294921875, -0.0005207061767578125, 0.05267333984375, -0.0187225341796875, -0.002925872802734375, -0.0041351318359375, 0.039642333984375, -0.002132415771484375, -0.0273284912109375, 0.0255279541015625, 0.004241943359375, -0.00013875961303710938, -0.006755828857421875, 0.0140838623046875, 0.01294708251953125, -0.07659912109375, 0.03521728515625, 0.03192138671875, 0.030609130859375, -0.01751708984375, -0.006397247314453125, -0.032440185546875, -0.01200103759765625, -0.049224853515625, -0.0006008148193359375, -0.0645751953125, 0.01003265380859375, -0.005313873291015625, -0.038177490234375, 0.00960540771484375, 0.02056884765625, -0.0321044921875, 0.00313568115234375, -0.002307891845703125, 0.005523681640625, 0.00922393798828125, 0.033050537109375, 0.04376220703125, -0.0210113525390625, 0.0184173583984375, 0.010040283203125, -0.0185089111328125, -0.0206146240234375, -0.01849365234375, 0.0189971923828125, 0.09381103515625, 0.0064697265625, -0.036224365234375, 0.03173828125, 0.01419830322265625, -0.0196380615234375, 0.013519287109375, 0.0055999755859375, -0.052337646484375, -0.03607177734375, 0.011688232421875, -0.0282440185546875, 0.00556182861328125, 0.006587982177734375, -0.045166015625, 0.09466552734375, 0.0108184814453125, -0.0243682861328125, -0.01045989990234375, 0.06475830078125, -0.048675537109375, 0.0228424072265625, -0.030364990234375, 0.053253173828125, 0.0166015625, -0.0144500732421875, -0.056427001953125, -0.0035400390625, -0.037261962890625, 0.0149078369140625, -0.0175628662109375, 0.0083465576171875, -0.0005331039428710938, 0.0181884765625, 0.037445068359375, 0.032623291015625, 0.00368499755859375, 0.005954742431640625, -0.00975799560546875, -0.0248260498046875, 0.0205535888671875, -0.036895751953125, 0.0002765655517578125, -0.0024929046630859375, 0.01629638671875, 0.01107025146484375, 0.002796173095703125, 0.00835418701171875, -0.0143280029296875, -0.048797607421875, -0.036865234375, 0.00400543212890625, -0.01556396484375, 0.0099945068359375, 0.022491455078125, 0.033355712890625, 0.0289459228515625, 0.0034923553466796875, -0.0399169921875, 0.0091400146484375, 0.0240325927734375, 0.0036678314208984375, -0.01605224609375, 0.0081634521484375, 0.0110931396484375, 0.004241943359375, -0.0233154296875, -0.0272674560546875, 0.00011467933654785156, 0.0167999267578125, 0.02703857421875, 0.0251312255859375, 0.0333251953125, -0.0258331298828125, -0.015594482421875, 0.0364990234375, 0.04180908203125, -0.019256591796875, 0.004261016845703125, -0.0087890625, -0.0020160675048828125, 0.0212249755859375, -0.034759521484375, 0.039947509765625, -0.0023899078369140625, -0.0008893013000488281, -0.032867431640625, 0.007709503173828125, 0.0079345703125, 0.0260009765625, -0.00872802734375, -0.01178741455078125, -0.03302001953125, 0.01477813720703125, -0.00676727294921875, 0.002010345458984375, -0.0032939910888671875, 0.0232391357421875, -0.005084991455078125, 0.00971221923828125, -0.04010009765625, 0.005138397216796875, -0.00787353515625, 0.0621337890625, -0.041717529296875, 0.0263214111328125, -0.0477294921875, -0.0819091796875, -0.0245361328125, 0.046173095703125, 0.0183563232421875, 0.03271484375, 0.036773681640625, 0.04913330078125, 0.0289459228515625, 0.004047393798828125, 0.045928955078125, -0.00263214111328125, -0.023345947265625, -0.0176849365234375, -0.0335693359375, 0.01071929931640625, -0.0151214599609375, 0.0236968994140625, -0.0031795501708984375, 0.035614013671875, 0.0047607421875, 0.02752685546875, 0.005100250244140625, 0.01209259033203125, -0.006839752197265625, 0.0164337158203125, 0.00972747802734375, 0.048126220703125, -0.01995849609375, -0.00868988037109375, -0.006927490234375, -0.050933837890625, -0.00614166259765625, 0.043853759765625, 0.0207366943359375, -0.0298004150390625, -0.05279541015625, -0.02362060546875, -0.01666259765625, 0.006439208984375, 0.005237579345703125, 0.04876708984375, 0.0089874267578125, 0.00885772705078125, -0.018280029296875, -0.017791748046875, 0.0009489059448242188, 0.038787841796875, -0.0002608299255371094, 0.0325927734375, -0.00899505615234375, 0.0084991455078125, 0.022796630859375, 0.040740966796875, -0.038421630859375, -0.03375244140625, 0.063232421875, -0.036163330078125, -0.004695892333984375, -0.0029754638671875, -0.052703857421875, -0.0007729530334472656, 0.046173095703125, -0.01401519775390625, 0.0158843994140625, -0.01198577880859375, 0.022186279296875, -0.00945281982421875, 0.00803375244140625, -0.00981903076171875, -0.036346435546875, -0.032440185546875, 0.005260467529296875, 0.030517578125, 0.08624267578125, 0.0286865234375, 0.015289306640625, 0.0297698974609375, 0.0229949951171875, 0.01386260986328125, 0.0290374755859375, 0.01444244384765625, 0.0247802734375, -0.0216217041015625, -0.00487518310546875, -0.00659942626953125, -0.0210113525390625, 0.028656005859375, 0.000507354736328125, 0.0088043212890625, -0.00150299072265625, 0.0095977783203125, 0.07037353515625, 0.0258636474609375, 0.031829833984375, -0.03497314453125, -0.0212249755859375, 0.06695556640625, 0.0030078887939453125, -0.006504058837890625, -0.003459930419921875, -0.004840850830078125, -0.037200927734375, -0.0205841064453125, 0.0234527587890625, -0.025146484375, 0.00878143310546875, -0.04052734375, -0.0065460205078125, 0.0014362335205078125, 0.0033893585205078125, -0.04986572265625, 0.005321502685546875, 0.0207366943359375, 0.02874755859375, -0.037933349609375, 0.00998687744140625, -0.0046234130859375, -0.01177978515625, -0.048736572265625, 0.027557373046875, -0.029388427734375, -0.0157470703125, 0.0118865966796875, 0.019744873046875, 0.0292205810546875, -0.009033203125, -0.009307861328125, 0.041473388671875, 0.0117645263671875, 0.0758056640625, -0.0281219482421875, -0.031097412109375, -0.0094146728515625, -0.0005645751953125, -0.0194854736328125, -0.05157470703125, 0.0357666015625, -0.06890869140625, -0.0297088623046875, 0.066650390625, -0.02374267578125, 0.013427734375, -0.023193359375, -0.052032470703125, 0.08941650390625, 0.014190673828125, -0.03448486328125, -0.033050537109375, -0.030242919921875, 0.005115509033203125, 0.03485107421875, -0.00433349609375, -0.0281829833984375, -0.051239013671875, 0.029022216796875, -0.0026798248291015625, 0.0218048095703125, 0.011932373046875, -0.004039764404296875, -0.06134033203125, -0.00421905517578125, -0.0161590576171875, -0.01739501953125, 0.0014543533325195312, -0.022430419921875, 0.0276641845703125, 0.0248565673828125, -0.018035888671875, -0.016357421875, -0.00978851318359375, 0.007694244384765625, 0.02130126953125, -0.0716552734375, -0.0594482421875, -0.043060302734375, 0.029510498046875, 0.021331787109375, 0.01910400390625, -0.007106781005859375, -0.04791259765625, -0.034912109375, -0.0323486328125, -0.0401611328125, 0.0313720703125, -0.11126708984375, -0.0196533203125, 0.004535675048828125, -0.028778076171875, 0.0031948089599609375, 0.019439697265625, -0.0323486328125, 0.0207977294921875, 0.0276641845703125, -0.0149078369140625, -0.0233306884765625, -0.0299224853515625, 0.0260009765625, -0.0100555419921875, 0.043792724609375, -0.046417236328125, 0.041229248046875, 0.0292510986328125, -0.03009033203125, -0.00836181640625, -0.0180511474609375, 0.0028171539306640625, 0.007129669189453125, 0.013214111328125, 0.044952392578125, -0.00130462646484375, -0.0196380615234375, 0.0019969940185546875, 0.037109375, -0.00026869773864746094, 0.034393310546875, -0.03448486328125, 0.0789794921875, -0.003627777099609375, 0.055999755859375, -0.04583740234375, 0.10601806640625, 0.0079193115234375, 0.0234832763671875, -0.0282135009765625, 0.0228118896484375, 0.03057861328125, -0.0268402099609375, -0.006626129150390625, -0.03375244140625, -0.018218994140625, -0.041534423828125, 0.0002028942108154297, 0.047332763671875, -0.034149169921875, 0.027099609375 ]
7c10b6b420b8989a1051e1ad49c18603952f4a5a
Wordpress Stackexchange Q: How do I create a relationship between two custom post types? I want to build a TV series database using WordPress. I have followed some tutorials and I have two custom post types: one for movies, one for and series. I followed this post for the structure. My question is: how can I make the relationship between the movies and series post types? A: I recommend the Posts 2 Posts plugin, which I've just started using. It allows you to create many-to-many relationships between posts and page types, meaning you can link movies to series, and any other CPTs you may create. This plugin also allows you to create connection metadata which will allow you to get finer detail when creating your connections. It is quite flexible in its usage, allowing for control over admin metaboxes, connection types, and ways to display your connections on the front end. Lastly, it is well-documented.
Q: How do I create a relationship between two custom post types? I want to build a TV series database using WordPress. I have followed some tutorials and I have two custom post types: one for movies, one for and series. I followed this post for the structure. My question is: how can I make the relationship between the movies and series post types? A: I recommend the Posts 2 Posts plugin, which I've just started using. It allows you to create many-to-many relationships between posts and page types, meaning you can link movies to series, and any other CPTs you may create. This plugin also allows you to create connection metadata which will allow you to get finer detail when creating your connections. It is quite flexible in its usage, allowing for control over admin metaboxes, connection types, and ways to display your connections on the front end. Lastly, it is well-documented. A: Using a Plugin Some very good plugins for relationships: * *ACF Relationship Field *Posts-2-Posts Using a Metabox You can build a simple relationship using metaboxes: add_action( 'admin_init', 'add_meta_boxes' ); function add_meta_boxes() { add_meta_box( 'some_metabox', 'Movies Relationship', 'movies_field', 'series' ); } function movies_field() { global $post; $selected_movies = get_post_meta( $post->ID, '_movies', true ); $all_movies = get_posts( array( 'post_type' => 'movies', 'numberposts' => -1, 'orderby' => 'post_title', 'order' => 'ASC' ) ); ?> <input type="hidden" name="movies_nonce" value="<?php echo wp_create_nonce( basename( __FILE__ ) ); ?>" /> <table class="form-table"> <tr valign="top"><th scope="row"> <label for="movies">Movies</label></th> <td><select multiple name="movies"> <?php foreach ( $all_movies as $movie ) : ?> <option value="<?php echo $movie->ID; ?>"<?php echo (in_array( $movie->ID, $selected_movies )) ? ' selected="selected"' : ''; ?>><?php echo $movie->post_title; ?></option> <?php endforeach; ?> </select></td></tr> </table> } add_action( 'save_post', 'save_movie_field' ); function save_movie_field( $post_id ) { // only run this for series if ( 'series' != get_post_type( $post_id ) ) return $post_id; // verify nonce if ( empty( $_POST['movies_nonce'] ) || !wp_verify_nonce( $_POST['movies_nonce'], basename( __FILE__ ) ) ) return $post_id; // check autosave if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return $post_id; // check permissions if ( !current_user_can( 'edit_post', $post_id ) ) return $post_id; // save update_post_meta( $post_id, '_movies', array_map( 'intval', $_POST['movies'] ) ); } And then, to get the movies relationship as a list for series posts: $series = new WP_Query( array( 'post_type' => 'movies', 'post__in' => get_post_meta( $series_id, '_movies', true ), 'nopaging' => true ) ); if ( $series-> have_posts() ) { while ( $series->have_posts() ) { $series->the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ></a></li> <?php } } A: Unfortunately, the Posts 2 Posts plugin is deprecated and no longer maintained. There is a new alternative plugin for that MB Relationships. It's inspired by P2P and provides a similar API to create relationships between posts, terms and users. MB Relationships supports bi-directional relationships by default and use a custom table to store relationships (like P2P) for a better performance (than post meta). It's worth taking a look at the plugin.
wordpress
{ "language": "en", "length": 487, "provenance": "stackexchange_00019.jsonl.gz:440826", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128622" }
[ 0.0692138671875, -0.01190185546875, -0.00017964839935302734, -0.023040771484375, 0.00974273681640625, -0.0308990478515625, 0.07403564453125, -0.00748443603515625, -0.0225067138671875, -0.0007715225219726562, 0.0216522216796875, 0.006717681884765625, -0.052825927734375, -0.04193115234375, 0.013336181640625, -0.03192138671875, 0.033966064453125, -0.015960693359375, 0.029510498046875, -0.0190887451171875, 0.0147552490234375, -0.021759033203125, 0.065185546875, 0.01611328125, 0.0303955078125, -0.0413818359375, 0.08709716796875, -0.0322265625, 0.036895751953125, -0.014251708984375, 0.0277862548828125, -0.0296630859375, 0.020111083984375, -0.0027370452880859375, -0.02740478515625, -0.05181884765625, -0.006671905517578125, -0.005096435546875, -0.0167388916015625, 0.01039886474609375, -0.006519317626953125, 0.0182037353515625, 0.049896240234375, 0.015228271484375, 0.009918212890625, -0.0213165283203125, -0.01076507568359375, -0.056549072265625, 0.0157623291015625, -0.0125579833984375, -0.01102447509765625, -0.035400390625, 0.0158233642578125, 0.027496337890625, -0.01216888427734375, -0.01171875, 0.00487518310546875, -0.052093505859375, 0.0187225341796875, 0.002849578857421875, 0.010009765625, -0.02252197265625, 0.029541015625, 0.004486083984375, -0.01120758056640625, 0.00908660888671875, -0.0097503662109375, 0.017303466796875, 0.01490020751953125, -0.025665283203125, -0.0216827392578125, -0.004852294921875, 0.0179290771484375, -0.048919677734375, 0.03179931640625, 0.0227813720703125, -0.007213592529296875, -0.00452423095703125, 0.00940704345703125, 0.01422119140625, -0.005184173583984375, -0.0031833648681640625, -0.01392364501953125, -0.0210723876953125, -0.00527191162109375, -0.0133819580078125, -0.0155181884765625, -0.001155853271484375, -0.01953125, -0.00588226318359375, -0.0117950439453125, -0.06573486328125, -0.0025539398193359375, 0.03619384765625, 0.0159454345703125, -0.027923583984375, 0.00911712646484375, 0.0182342529296875, -0.0206146240234375, 0.0211639404296875, 0.0074462890625, -0.03753662109375, 0.056671142578125, -0.033935546875, 0.050933837890625, 0.0160675048828125, -0.05047607421875, -0.058319091796875, 0.0738525390625, 0.022064208984375, -0.003368377685546875, 0.0924072265625, 0.029510498046875, 0.0249481201171875, -0.014434814453125, -0.0572509765625, -0.034820556640625, 0.05657958984375, 0.0027904510498046875, 0.0164642333984375, -0.0220184326171875, -0.00855255126953125, -0.0187530517578125, -0.0031414031982421875, -0.00699615478515625, -0.03753662109375, -0.005710601806640625, 0.023468017578125, -0.0159454345703125, 0.0286712646484375, -0.0360107421875, 0.0122833251953125, 0.1041259765625, 0.047149658203125, 0.01294708251953125, -0.0254669189453125, 0.0159912109375, -0.0067596435546875, -0.020660400390625, 0.00023090839385986328, 0.0229949951171875, -0.027496337890625, -0.0197601318359375, 0.00893402099609375, 0.0182952880859375, 0.01364898681640625, 0.007472991943359375, 0.0260772705078125, -0.0003027915954589844, -0.03387451171875, 0.0189056396484375, -0.036956787109375, 0.0057830810546875, 0.0089569091796875, 0.0207977294921875, 0.0006995201110839844, -0.0130615234375, 0.00037932395935058594, 0.037139892578125, 0.0111083984375, -0.007778167724609375, -0.01554107666015625, 0.006771087646484375, -0.06982421875, -0.057952880859375, 0.00740814208984375, -0.05706787109375, -0.00275421142578125, 0.031463623046875, -0.0009746551513671875, 0.0200958251953125, -0.019317626953125, -0.0153045654296875, 0.0019121170043945312, 0.0019311904907226562, 0.01189422607421875, -0.007656097412109375, -0.0264892578125, 0.0006909370422363281, 0.066162109375, 0.023406982421875, -0.0121612548828125, 0.015350341796875, 0.0133514404296875, -0.03228759765625, 0.052825927734375, 0.011077880859375, 0.03533935546875, -0.01396942138671875, 0.01546478271484375, 0.01453399658203125, 0.056854248046875, -0.03704833984375, 0.004390716552734375, -0.0215911865234375, -0.02410888671875, -0.0001112818717956543, -0.011993408203125, -0.01389312744140625, 0.040283203125, -0.0738525390625, 0.0384521484375, -0.0347900390625, 0.05157470703125, 0.002410888671875, 0.00753021240234375, -0.006046295166015625, 0.041473388671875, -0.01099395751953125, 0.026275634765625, 0.02001953125, 0.0039215087890625, -0.035186767578125, -0.0148162841796875, -0.0119476318359375, -0.00719451904296875, 0.00019490718841552734, -0.0103302001953125, -0.01332855224609375, -0.02777099609375, 0.00244140625, -0.019805908203125, -0.017578125, 0.0391845703125, -0.0065155029296875, 0.00899505615234375, -0.0224456787109375, 0.01141357421875, -0.0297698974609375, 0.0277862548828125, -0.03131103515625, 0.016265869140625, 0.04193115234375, 0.00704193115234375, -0.0195159912109375, 0.038818359375, 0.052520751953125, -0.0029697418212890625, -0.0175933837890625, 0.008270263671875, 0.02142333984375, 0.001953125, -0.04669189453125, -0.0075531005859375, -0.017730712890625, -0.066650390625, -0.00571441650390625, 0.0159759521484375, 0.009735107421875, 0.052520751953125, 0.00496673583984375, 0.01471710205078125, 0.001163482666015625, -0.060211181640625, 0.00911712646484375, 0.037139892578125, -0.0093994140625, 0.0282745361328125, -0.00516510009765625, -0.0209808349609375, 0.00102996826171875, -0.00006008148193359375, 0.002117156982421875, -0.010650634765625, 0.0648193359375, -0.004749298095703125, 0.057891845703125, 0.0438232421875, -0.025146484375, -0.0019817352294921875, 0.00878143310546875, 0.019622802734375, 0.0091094970703125, 0.0008640289306640625, 0.0191802978515625, 0.009521484375, -0.02001953125, -0.01548004150390625, 0.0232696533203125, 0.0078277587890625, -0.02471923828125, -0.018951416015625, -0.0672607421875, -0.021575927734375, 0.01116180419921875, -0.0350341796875, -0.01151275634765625, -0.012786865234375, -0.016937255859375, -0.01306915283203125, 0.016082763671875, 0.0219879150390625, -0.01180267333984375, 0.0226593017578125, 0.00673675537109375, -0.0142669677734375, 0.035064697265625, -0.0887451171875, 0.0589599609375, -0.0528564453125, 0.071044921875, 0.073486328125, 0.004497528076171875, 0.008270263671875, -0.0012416839599609375, 0.03753662109375, -0.008880615234375, 0.0306549072265625, 0.015655517578125, -0.06060791015625, 0.0245208740234375, -0.0283050537109375, 0.03277587890625, 0.030975341796875, 0.048126220703125, 0.005245208740234375, 0.0145416259765625, 0.06964111328125, -0.00057220458984375, -0.0215606689453125, 0.045013427734375, -0.026458740234375, 0.0205078125, -0.0189208984375, -0.00823211669921875, -0.030426025390625, 0.0008082389831542969, -0.0099639892578125, -0.030517578125, -0.01444244384765625, -0.0584716796875, -0.07989501953125, -0.060028076171875, 0.01163482666015625, -0.0101165771484375, 0.008819580078125, 0.0184783935546875, 0.03997802734375, 0.00930023193359375, -0.0298309326171875, 0.0236968994140625, 0.00447845458984375, -0.0169677734375, 0.016204833984375, 0.0014514923095703125, -0.005367279052734375, 0.004558563232421875, 0.0073699951171875, 0.005390167236328125, 0.013824462890625, -0.0095367431640625, -0.01282501220703125, 0.005767822265625, 0.00804901123046875, 0.035247802734375, 0.0015048980712890625, -0.035552978515625, 0.04693603515625, 0.038909912109375, -0.0209808349609375, 0.00377655029296875, 0.002696990966796875, -0.0166015625, -0.03509521484375, -0.0024509429931640625, -0.01082611083984375, -0.055694580078125, 0.026763916015625, -0.007350921630859375, -0.005329132080078125, -0.006633758544921875, -0.03985595703125, 0.038177490234375, 0.003963470458984375, 0.0182952880859375, 0.00882720947265625, 0.034271240234375, 0.00102996826171875, -0.006046295166015625, 0.00588226318359375, 0.01519012451171875, -0.0096435546875, 0.007965087890625, -0.03900146484375, -0.064208984375, 0.04052734375, -0.0355224609375, 0.0294647216796875, -0.0548095703125, -0.042266845703125, -0.00580596923828125, 0.11761474609375, -0.060699462890625, -0.01107025146484375, -0.009857177734375, 0.013427734375, -0.0160980224609375, -0.04931640625, -0.038360595703125, -0.025054931640625, -0.0143280029296875, 0.000640869140625, 0.0023860931396484375, -0.025115966796875, -0.01549530029296875, 0.0160064697265625, -0.00557708740234375, -0.022735595703125, 0.04119873046875, -0.04638671875, 0.02838134765625, 0.03265380859375, 0.0010433197021484375, 0.0078887939453125, -0.047607421875, -0.0233001708984375, -0.0156402587890625, -0.0276336669921875, 0.0289306640625, 0.042388916015625, 0.0022754669189453125, -0.02581787109375, 0.0012254714965820312, 0.03857421875, 0.0218353271484375, 0.033111572265625, 0.006816864013671875, -0.015045166015625, 0.0089569091796875, 0.0050048828125, 0.01934814453125, -0.019439697265625, -0.039794921875, -0.0794677734375, 0.00746917724609375, 0.031341552734375, -0.031494140625, 0.0296783447265625, -0.08026123046875, 0.03497314453125, -0.07611083984375, -0.044677734375, -0.00887298583984375, -0.003154754638671875, 0.006702423095703125, -0.007083892822265625, -0.041259765625, -0.06280517578125, 0.0031280517578125, -0.0032749176025390625, -0.00043773651123046875, 0.01407623291015625, 0.0704345703125, 0.0247802734375, 0.0004096031188964844, -0.07958984375, 0.0191802978515625, 0.0303955078125, 0.01052093505859375, 0.0286102294921875, 0.0311126708984375, -0.00036787986755371094, -0.011474609375, -0.006114959716796875, 0.0115509033203125, 0.0035991668701171875, 0.0164642333984375, 0.00738525390625, -0.0129852294921875, 0.01122283935546875, -0.01151275634765625, -0.0006957054138183594, 0.00428009033203125, -0.00023734569549560547, -0.0241851806640625, 0.01261138916015625, 0.04345703125, -0.022552490234375, 0.037445068359375, -0.0247802734375, 0.01444244384765625, 0.0149078369140625, -0.04296875, 0.0230712890625, 0.0153350830078125, -0.00415802001953125, -0.03515625, -0.04345703125, 0.01116180419921875, -0.007232666015625, -0.03570556640625, -0.003936767578125, 0.00778961181640625, 0.0194549560546875, -0.005336761474609375, 0.0036602020263671875, -0.00386810302734375, 0.05474853515625, -0.0157928466796875, -0.083740234375, -0.00484466552734375, -0.0033416748046875, 0.025482177734375, 0.020416259765625, 0.0092315673828125, 0.02587890625, 0.019134521484375, 0.00994110107421875, 0.00875091552734375, 0.01169586181640625, 0.0172882080078125, -0.0200958251953125, -0.0089263916015625, -0.0037288665771484375, -0.00010609626770019531, -0.0482177734375, 0.1102294921875, 0.000469207763671875, 0.0242156982421875, -0.0261993408203125, 0.0823974609375, 0.059356689453125, 0.0290374755859375, 0.0060882568359375, -0.003475189208984375, -0.0202484130859375, 0.01153564453125, -0.0645751953125, -0.035675048828125, -0.0017652511596679688, 0.022674560546875, 0.0345458984375, -0.0185394287109375, -0.032196044921875, 0.016082763671875, -0.050018310546875, -0.0279388427734375, -0.00836944580078125, 0.056396484375, 0.0173492431640625, -0.0153656005859375, 0.0010786056518554688, 0.00406646728515625, 0.053680419921875, 0.0033397674560546875, 0.0051727294921875, -0.0033626556396484375, 0.042816162109375, -0.05377197265625, 0.033599853515625, -0.022003173828125, -0.020843505859375, -0.0168609619140625, -0.03155517578125, 0.0088958740234375, -0.035614013671875, 0.01165771484375, -0.02880859375, -0.0186767578125, 0.0265045166015625, -0.04315185546875, 0.02667236328125, -0.037994384765625, 0.00904083251953125, -0.03082275390625, -0.0037937164306640625, 0.07806396484375, 0.04901123046875, -0.0250701904296875, -0.014678955078125, -0.016998291015625, -0.01358795166015625, -0.061737060546875, -0.042724609375, -0.036468505859375, 0.0158538818359375, -0.0188446044921875, 0.015960693359375, -0.002288818359375, 0.0200958251953125, 0.021759033203125, 0.021453857421875, -0.03729248046875, 0.003116607666015625, 0.031707763671875, 0.07122802734375, -0.039215087890625, 0.10284423828125, 0.0195465087890625, 0.0142822265625, -0.06793212890625, -0.023529052734375, -0.0126495361328125, -0.0799560546875, -0.004886627197265625, -0.007904052734375, 0.00042939186096191406, 0.05242919921875, 0.01258087158203125, 0.007801055908203125, 0.032928466796875, -0.0222320556640625, -0.0010080337524414062, -0.0206146240234375, 0.003170013427734375, -0.037017822265625, 0.0208740234375, 0.0034809112548828125, -0.0163116455078125, 0.04559326171875, -0.0059814453125, -0.01329803466796875, 0.03594970703125, -0.01934814453125, 0.042022705078125, 0.0159912109375, -0.007282257080078125, 0.0015735626220703125, -0.0228271484375, -0.0148773193359375, -0.01114654541015625, -0.009613037109375, -0.00226593017578125, -0.0162811279296875, -0.0009469985961914062, -0.01544189453125, 0.01354217529296875, 0.00691986083984375, -0.00965118408203125, -0.0178070068359375, -0.0285186767578125, -0.0167999267578125, 0.00620269775390625, -0.04071044921875, 0.0098724365234375, 0.005825042724609375, 0.022247314453125, -0.023284912109375, 0.006671905517578125, 0.0517578125, -0.01070404052734375, 0.0157928466796875, -0.01397705078125, 0.0005931854248046875, 0.039276123046875, -0.023162841796875, -0.0097198486328125, -0.004108428955078125, -0.01157379150390625, 0.020477294921875, 0.023406982421875, 0.01055908203125, 0.0298919677734375, -0.036285400390625, -0.025665283203125, 0.008544921875, -0.0033969879150390625, 0.0008807182312011719, 0.0272216796875, -0.0257568359375, -0.044647216796875, 0.0273590087890625, -0.0234375, -0.01036834716796875, 0.0303802490234375, 0.004138946533203125, 0.0300750732421875, 0.0219573974609375, 0.005275726318359375, -0.00933837890625, -0.025848388671875, 0.0217132568359375, -0.043182373046875, -0.036468505859375, 0.00982666015625, 0.023162841796875, -0.036346435546875, 0.0297393798828125, -0.0257720947265625, -0.01551055908203125, -0.01537322998046875, -0.04827880859375, 0.03173828125, -0.0021572113037109375, -0.0158538818359375, 0.01056671142578125, 0.0214691162109375, 0.01172637939453125, -0.013702392578125, 0.0080413818359375, -0.10235595703125, -0.09539794921875, 0.007671356201171875, -0.0941162109375, -0.01012420654296875, 0.0032444000244140625, -0.03570556640625, 0.0251312255859375, -0.01003265380859375, 0.01477813720703125, 0.0245513916015625, 0.004589080810546875, 0.01021575927734375, -0.0003421306610107422, -0.044403076171875, 0.0299835205078125, 0.0005497932434082031, 0.039306640625, -0.060699462890625, -0.0178680419921875, 0.0076904296875, 0.03826904296875, 0.0670166015625, 0.017791748046875, -0.0312042236328125, -0.01318359375, 0.049530029296875, 0.025360107421875, -0.01100921630859375, 0.03594970703125, 0.0157623291015625, -0.016571044921875, 0.0247955322265625, 0.023162841796875, 0.041778564453125, -0.00952911376953125, -0.00609588623046875, 0.031585693359375, 0.007076263427734375, 0.00025844573974609375, -0.0132293701171875, 0.0005955696105957031, -0.00914764404296875, -0.0140380859375, 0.0022830963134765625, 0.0230865478515625, 0.0296630859375, 0.022796630859375, 0.0400390625, -0.0001652240753173828, 0.0489501953125, -0.0231475830078125, 0.05267333984375, -0.022674560546875, 0.01361846923828125, 0.04852294921875, 0.0230560302734375, -0.02337646484375, 0.008087158203125, 0.00969696044921875, -0.0020580291748046875, -0.009368896484375, 0.04876708984375, 0.0108642578125, -0.00008577108383178711, -0.0667724609375, -0.011993408203125, 0.062744140625, 0.07562255859375, -0.04571533203125, -0.050933837890625, 0.005859375, 0.01554107666015625, 0.032684326171875, -0.0067901611328125, 0.036376953125, 0.0137786865234375, 0.0357666015625, -0.040130615234375, 0.0267486572265625, 0.00653076171875, 0.0135040283203125, -0.023590087890625, -0.0077056884765625, -0.0280609130859375, 0.027801513671875, -0.062286376953125, 0.021728515625, 0.03515625, 0.06622314453125, 0.006107330322265625, 0.05767822265625, -0.01277923583984375, -0.0296173095703125, 0.0258636474609375, 0.0099945068359375, 0.009796142578125, -0.0218658447265625, -0.006481170654296875, -0.06396484375, 0.041290283203125, 0.020111083984375, 0.0302734375, 0.03375244140625, 0.043548583984375, 0.033416748046875, 0.0076904296875, 0.0042724609375, 0.032501220703125, -0.0173492431640625, -0.031463623046875, -0.029998779296875, 0.00868988037109375, 0.0297698974609375, 0.0186920166015625, -0.0016641616821289062, 0.044464111328125, 0.0197296142578125, 0.0088043212890625, 0.037750244140625, -0.0012598037719726562, -0.0289459228515625, 0.032745361328125, 0.0020160675048828125, 0.10040283203125, 0.023895263671875, -0.03668212890625, -0.01183319091796875, -0.023193359375, -0.04376220703125, 0.00615692138671875, 0.0251617431640625, -0.00033593177795410156, 0.00521087646484375, 0.0233001708984375, -0.0261993408203125, 0.021575927734375, 0.004547119140625, 0.00431060791015625, 0.0080413818359375, 0.0138092041015625, -0.00893402099609375, -0.029571533203125, -0.010772705078125, -0.0142059326171875, 0.018646240234375, 0.01544189453125, 0.0225830078125, 0.0164337158203125, 0.0288543701171875, -0.035491943359375, 0.0421142578125, -0.06622314453125, -0.02496337890625, 0.0070648193359375, -0.007808685302734375, -0.0003554821014404297, 0.0073699951171875, 0.04241943359375, 0.00428009033203125, 0.053619384765625, -0.038787841796875, -0.01139068603515625, -0.02386474609375, 0.03289794921875, -0.014007568359375, 0.0214385986328125, -0.0338134765625, 0.002094268798828125, 0.0013780593872070312, -0.0234832763671875, 0.0300445556640625, -0.003177642822265625, -0.0031909942626953125, 0.030029296875, 0.0029239654541015625, -0.0202484130859375, 0.0191192626953125, -0.048797607421875, 0.05206298828125, 0.036712646484375, -0.036529541015625, -0.051544189453125, 0.0300445556640625, -0.00983428955078125, -0.00374603271484375, 0.01233673095703125, 0.06695556640625, 0.0303802490234375, -0.05181884765625, 0.039459228515625, 0.042388916015625, 0.047576904296875, -0.017181396484375, 0.0190887451171875, 0.0423583984375, -0.0187530517578125, 0.0270538330078125, -0.052825927734375, -0.0291290283203125, -0.059051513671875, 0.0263214111328125, 0.0235137939453125, -0.006206512451171875, -0.007129669189453125, -0.0279998779296875, 0.0182037353515625, 0.033203125, -0.0006055831909179688, -0.03875732421875, 0.047119140625, -0.040618896484375, -0.004364013671875, 0.025726318359375, -0.03460693359375, 0.0193634033203125, 0.040283203125, 0.00511932373046875, -0.03778076171875, -0.0258026123046875, 0.03851318359375, -0.026824951171875, 0.0400390625, 0.035888671875, -0.041656494140625, 0.0157012939453125, 0.072021484375, 0.040771484375, 0.1094970703125, 0.0161590576171875, -0.024139404296875, -0.00963592529296875, 0.004749298095703125, -0.01044464111328125, -0.01898193359375, 0.0260009765625, -0.04925537109375, -0.03411865234375, -0.0139007568359375, 0.013580322265625, 0.0187225341796875, -0.02203369140625, -0.0615234375, 0.10552978515625, -0.033660888671875, -0.0184173583984375, -0.10797119140625, -0.01503753662109375, -0.005764007568359375, 0.03656005859375, -0.032073974609375, -0.0299072265625, -0.050750732421875, 0.0556640625, -0.01995849609375, 0.027587890625, 0.0269622802734375, -0.010009765625, -0.0341796875, -0.01491546630859375, -0.01544952392578125, -0.00846099853515625, 0.0246429443359375, -0.0034618377685546875, 0.005950927734375, 0.0111083984375, -0.06512451171875, 0.00334930419921875, -0.039031982421875, 0.035491943359375, 0.0172882080078125, -0.043365478515625, -0.05511474609375, -0.0303497314453125, 0.0233154296875, 0.051788330078125, 0.01442718505859375, -0.017333984375, -0.01119232177734375, -0.061767578125, -0.03515625, -0.02081298828125, 0.00872802734375, -0.0693359375, -0.004878997802734375, 0.029266357421875, -0.00020742416381835938, 0.0101776123046875, -0.019866943359375, 0.004436492919921875, -0.01934814453125, 0.0003650188446044922, -0.0211181640625, 0.025848388671875, 0.0875244140625, -0.0006670951843261719, -0.025054931640625, 0.01617431640625, -0.011962890625, -0.04571533203125, 0.00391387939453125, -0.01495361328125, -0.007419586181640625, -0.07135009765625, 0.01491546630859375, 0.050201416015625, -0.0172882080078125, 0.0308685302734375, -0.0248565673828125, -0.033111572265625, -0.04010009765625, 0.001613616943359375, 0.00010257959365844727, -0.007213592529296875, -0.0280609130859375, 0.0178985595703125, 0.0286865234375, 0.03021240234375, 0.0191192626953125, -0.01378631591796875, -0.0195159912109375, 0.043670654296875, -0.0227203369140625, -0.013092041015625, -0.0278778076171875, -0.0153350830078125, 0.0014247894287109375, 0.0169219970703125, -0.01220703125, -0.0531005859375, 0.0321044921875, 0.055023193359375, 0.01268768310546875, 0.02239990234375 ]
2968d66ce125805b3fe2045dee1c912fc9d40493
Wordpress Stackexchange Q: How to disable the single view for a custom post type? Given this custom post type: register_post_type( 'sample_post_type', [ 'labels' => [ 'name' => _x('Sample Posts', 'post type general name'), 'singular_name' => _x('Sample Post', 'post type singular name'), ], 'public' => true, 'show_in_nav_menus' => false, 'exclude_from_search' => true, ] ); How can I disable the single post view for this particular post type? Displaying a simple 404 is fine, or redirecting to the homepage. Since this is a plugin, I can't create a single-sample_post_type.php file to set up an empty page. A: One. From your functions file. add_action( 'template_redirect', 'redirect_cpt_singular_posts' ); function redirect_cpt_singular_posts() { if ( is_singular('your-cpt-slug') ) { wp_redirect( home_url(), 302 ); exit; } } Two. From your single.cpt.php file: <?php wp_redirect( home_url() ); exit; ?>
Q: How to disable the single view for a custom post type? Given this custom post type: register_post_type( 'sample_post_type', [ 'labels' => [ 'name' => _x('Sample Posts', 'post type general name'), 'singular_name' => _x('Sample Post', 'post type singular name'), ], 'public' => true, 'show_in_nav_menus' => false, 'exclude_from_search' => true, ] ); How can I disable the single post view for this particular post type? Displaying a simple 404 is fine, or redirecting to the homepage. Since this is a plugin, I can't create a single-sample_post_type.php file to set up an empty page. A: One. From your functions file. add_action( 'template_redirect', 'redirect_cpt_singular_posts' ); function redirect_cpt_singular_posts() { if ( is_singular('your-cpt-slug') ) { wp_redirect( home_url(), 302 ); exit; } } Two. From your single.cpt.php file: <?php wp_redirect( home_url() ); exit; ?> A: To be able to disable the single view for a CPT you can either redirect users to a specific URL, or disable it while registering CPT itself. METHOD 1: Redirect CPT single to a custom URL, archive page is publicly available. You can use template_redirect hook to redirect a user, you can use any URL you want in place of home_url() and the desired error code as 2nd argument. <?php add_action( 'template_redirect', 'wpse_128636_redirect_post' ); function wpse_128636_redirect_post() { if ( is_singular( 'sample_post_type' ) ) : wp_redirect( home_url(), 301 ); exit; endif; } ?> METHOD 2: Completely disable Single and Archive page from front-end; Works for Custom Post Types only. An alternative approach is to set publicly_queryable to false while registering the custom post. 'publicly_queryable' => false This hides single as well as archive page for the CPT, this can be used for custom posts only. Even though the archive and single is hidden, you can still add a page template or a custom block to list posts if needed. A: Working from of Sven's really good answer, I rewrote his function to make it easier to add multiple post types using in_array() in the if statement and then redirecting to the archive page instead of the home page. (by the way, I think the setting query_var and/or publically_queryable to false will disable not only the single views, but also the native archive view, overriding 'has_archive' => true. In that case you can still set up a custom WP_query and create your own archive page, in a template, but the main query won't do that any more, will it?) function fq_disable_single_cpt_views() { $queried_post_type = get_query_var('post_type'); $cpts_without_single_views = array( 'my-post-type', 'my-other-post-type' ); if ( is_single() && in_array( $queried_post_type, $cpts_without_single_views ) ) { wp_redirect( home_url( '/' . $queried_post_type . '/' ), 301 ); exit; } } add_action( 'template_redirect', 'fq_disable_single_cpt_views' ); A: In case you want to completely disable custom post type single view on frontend but be able to display archive page things are getting a little complicated. Setting publicly_queryable to false or rewrite to false will prevent for displaying both single and archive view. There is no flag in register_post_type function arguments to prevent creating only single view rewrite rules. https://github.com/WordPress/WordPress/blob/5.2.3/wp-includes/class-wp-post-type.php#L540 However you can remove rewrite tag after registering your post type and this will leave archive view rewrite rules untouched but remove only single view rewrite rules. /** * Register event post type */ function wpse_128636_register_event_post_type() { $labels = array( 'name' => __( 'Events' ), 'singular_name' => __( 'Event' ), 'add_new' => __( 'Add new' ), 'add_new_item' => __( 'Add new' ), 'edit_item' => __( 'Edit' ), 'new_item' => __( 'New' ), 'view_item' => __( 'View' ), 'search_items' => __( 'Search' ), 'not_found' => __( 'Not found' ), 'not_found_in_trash' => __( 'Not found Events in trash' ), 'parent_item_colon' => __( 'Parent' ), 'menu_name' => __( 'Events' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'supports' => array( 'title', 'page-attributes' ), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'publicly_queryable' => true, 'exclude_from_search' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'event'), 'capability_type' => 'post', ); register_post_type( 'event', $args ); remove_rewrite_tag( '%event%' ); // This line will remove event rewrite rules for single view } add_action( 'init', 'wpse_128636_register_event_post_type' ); Another bonus is that from now on you can create simple WordPress pages using event post type permalink structure (event/simple-page) which can be helpful in complex websites. Remember to flush rewrite rules after code modification. A: Tested all the ones mentioned above and the actual solution is simpler than any redirects suggested. In order to have archive be accessible and list the items, and single post not be accessible and auto redirect to 404 set 'query_var' => false when registering your CPT. If you set publicly_queryable to false your archives will be redirected to home, any other combo wont work. Set the query_var to false and that is it. Here is full CPT https://gist.github.com/danyj/bfd038d3c8d578548c4d700bd0a7942a see line 50 https://gist.github.com/danyj/bfd038d3c8d578548c4d700bd0a7942a#file-thz_cpt_items_single_view_redirect-php-L50 as stated here https://codex.wordpress.org/Function_Reference/register_post_type Note: If query_var is empty, null, or a boolean FALSE, WordPress will still attempt to interpret it (4.2.2) and previews/views of your custom post will return 404s. A: Just setting the argument 'publicly_queryable' => false when you call register_post_type() A: A simpler way to do that can be passing the following args when registering the Custom Post Type register_post_type('sample_post_type',array( 'labels' => array( 'name' => _x('Sample Posts', 'post type general name'), 'singular_name' => _x('Sample Post', 'post type singular name') ), 'public' => true, 'exclude_from_search' => true, 'show_in_admin_bar' => false, 'show_in_nav_menus' => false, 'publicly_queryable' => false, 'query_var' => false )); A: In WordPress 5.9.0 a new filter was added which allows not only disabling the single but removing any links to it from the admin screens. add_filter( 'is_post_type_viewable', function( $is_viewable, $post_type ) { if ( 'sample_post_type' === $post_type->name ) { return false; } return $is_viewable; }, 10, 2 ); The single won't load but if you enter the URL manually, the home page will load instead of a 404. To show a 404 instead of the home page, you may remove the rewrite rule after the post type is registered. remove_rewrite_tag( '%sample_post_type%' ); After making these changes you will need to flush the rewrite rules. Using these 2 methods will accomplish the goal without extra template, redirects and broken links in the admin. A: My current solution (mostly "the redirect solution") with a slight implementation difference. This will keep archive pages enabled (has_archive = TRUE) But will allow you to enable or disable single pages when using register_post_type() with x_has_single = TRUE (the param is passed along with the post type object properties). add_action( 'init', function() { $args = [ ... // other vars 'public' => FALSE, 'publicly_queryable' => TRUE, 'show_ui' => TRUE, 'has_archive' => 'customers', 'rewrite' => [ 'slug' => 'customers', 'with_front' => FALSE ], 'x_has_single' => FALSE, ]; register_post_type( 'customers', $args ); } ); add_action( 'template_redirect', function() { $post_type = get_post_type() ?: FALSE; $post_type_obj = get_post_type_object( $post_type ); $has_single = $post_type_obj->x_has_single ?? TRUE; if ( FALSE === $has_single && $post_type && is_singular( $post_type ) ) { wp_redirect( get_post_type_archive_link( $post_type ) ?: '/', 301 ); exit; } } );
wordpress
{ "language": "en", "length": 1153, "provenance": "stackexchange_00019.jsonl.gz:440831", "question_score": "72", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128636" }
[ 0.1102294921875, -0.00605010986328125, 0.034759521484375, -0.05657958984375, 0.016143798828125, -0.0230560302734375, 0.051544189453125, -0.0343017578125, -0.0029315948486328125, 0.0242156982421875, 0.0158843994140625, -0.024627685546875, -0.01325225830078125, -0.047943115234375, 0.00957489013671875, -0.01108551025390625, 0.044952392578125, -0.00676727294921875, 0.0401611328125, -0.0024356842041015625, 0.02587890625, 0.0123138427734375, 0.018218994140625, 0.0269927978515625, 0.0007071495056152344, -0.0004673004150390625, 0.0361328125, -0.0494384765625, -0.01113128662109375, -0.03131103515625, 0.0079345703125, 0.04150390625, 0.005275726318359375, 0.04022216796875, -0.01690673828125, 0.00220489501953125, -0.03887939453125, 0.05224609375, 0.0181884765625, -0.00004965066909790039, 0.00240325927734375, -0.0013494491577148438, -0.0103759765625, 0.01495361328125, -0.02471923828125, -0.03289794921875, 0.01184844970703125, -0.0209197998046875, 0.007617950439453125, -0.01271820068359375, 0.00994110107421875, -0.00339508056640625, 0.031341552734375, -0.050048828125, -0.030181884765625, -0.0267181396484375, 0.00516510009765625, -0.051025390625, 0.01361083984375, 0.019317626953125, 0.0114898681640625, 0.0009851455688476562, 0.017913818359375, -0.019866943359375, -0.007579803466796875, 0.0015354156494140625, -0.0238494873046875, 0.0212249755859375, -0.05615234375, -0.0128631591796875, 0.0269775390625, -0.033660888671875, 0.0224151611328125, -0.0114898681640625, -0.00921630859375, -0.0137939453125, 0.01119232177734375, -0.0013589859008789062, 0.0225372314453125, -0.0039043426513671875, 0.01537322998046875, -0.01305389404296875, -0.0161285400390625, -0.01313018798828125, 0.00966644287109375, 0.0194244384765625, -0.01776123046875, -0.0198822021484375, -0.015869140625, -0.01004791259765625, -0.040740966796875, 0.0074310302734375, 0.0130767822265625, -0.006565093994140625, -0.0386962890625, -0.016845703125, 0.033050537109375, 0.00445556640625, -0.0006785392761230469, -0.0212249755859375, 0.049163818359375, -0.07147216796875, 0.0255584716796875, -0.0247344970703125, 0.018585205078125, 0.046356201171875, 0.01555633544921875, 0.00923919677734375, 0.03509521484375, -0.0034465789794921875, 0.0169525146484375, 0.01360321044921875, -0.053070068359375, -0.0045318603515625, -0.0390625, 0.039520263671875, -0.06219482421875, -0.0184783935546875, -0.022735595703125, 0.047393798828125, -0.003986358642578125, 0.0252685546875, 0.06170654296875, 0.015716552734375, -0.021575927734375, -0.0025730133056640625, -0.00804901123046875, -0.0728759765625, 0.039276123046875, 0.0104217529296875, -0.040740966796875, -0.01352691650390625, 0.071044921875, 0.041534423828125, 0.0374755859375, -0.0164031982421875, 0.04150390625, 0.01471710205078125, -0.0268402099609375, 0.024444580078125, 0.017852783203125, -0.0306396484375, -0.032501220703125, -0.005390167236328125, 0.0294036865234375, 0.03759765625, 0.0171051025390625, -0.002044677734375, -0.0025653839111328125, -0.01509857177734375, -0.0205078125, -0.01396942138671875, 0.0450439453125, -0.0008549690246582031, -0.03045654296875, -0.045318603515625, -0.006591796875, -0.0226593017578125, 0.004047393798828125, -0.0504150390625, 0.0396728515625, 0.0031280517578125, -0.004337310791015625, -0.019866943359375, -0.051513671875, -0.005832672119140625, -0.0264892578125, -0.017852783203125, 0.0173797607421875, 0.037841796875, -0.01654052734375, -0.028656005859375, -0.036407470703125, -0.01020050048828125, -0.01303863525390625, 0.0198822021484375, -0.00395965576171875, 0.002079010009765625, 0.01108551025390625, 0.043243408203125, 0.0004870891571044922, -0.024444580078125, 0.007266998291015625, 0.0095977783203125, -0.080810546875, 0.110107421875, 0.008514404296875, 0.06719970703125, -0.00405120849609375, -0.0121002197265625, 0.04766845703125, 0.058746337890625, -0.0167388916015625, 0.02655029296875, 0.0015010833740234375, -0.05560302734375, -0.02655029296875, -0.0458984375, -0.01189422607421875, 0.05010986328125, 0.0129241943359375, 0.0221405029296875, -0.01468658447265625, -0.0010919570922851562, -0.0433349609375, 0.0100860595703125, -0.01531219482421875, 0.0413818359375, -0.0310821533203125, 0.031463623046875, 0.0289154052734375, 0.0146636962890625, -0.030548095703125, -0.002979278564453125, 0.01629638671875, -0.0008454322814941406, 0.0235443115234375, 0.02911376953125, -0.005184173583984375, -0.00989532470703125, 0.00232696533203125, -0.0279998779296875, -0.01983642578125, 0.0286712646484375, 0.06707763671875, -0.01055908203125, -0.001575469970703125, -0.0191497802734375, 0.030731201171875, 0.007221221923828125, -0.05291748046875, 0.038543701171875, -0.003116607666015625, -0.00809478759765625, -0.048583984375, 0.0200653076171875, -0.007724761962890625, -0.017181396484375, -0.010986328125, 0.036407470703125, 0.017913818359375, 0.005191802978515625, -0.02960205078125, 0.0129852294921875, 0.0130157470703125, -0.03387451171875, -0.005611419677734375, 0.015228271484375, 0.020477294921875, 0.029541015625, 0.005382537841796875, 0.004787445068359375, 0.03387451171875, -0.01329803466796875, 0.0360107421875, 0.019317626953125, -0.0230560302734375, -0.0225982666015625, 0.0230255126953125, -0.0167999267578125, 0.011077880859375, 0.03375244140625, 0.004558563232421875, 0.00937652587890625, 0.0290985107421875, 0.0222015380859375, 0.03668212890625, 0.026519775390625, -0.027252197265625, 0.00772857666015625, 0.020660400390625, -0.0003635883331298828, -0.01293182373046875, 0.01265716552734375, 0.07000732421875, -0.03948974609375, -0.053497314453125, 0.00518035888671875, 0.022369384765625, 0.0031299591064453125, -0.0167694091796875, -0.0005459785461425781, -0.02239990234375, -0.014739990234375, -0.00443267822265625, -0.06646728515625, 0.01204681396484375, 0.00738525390625, 0.018951416015625, 0.0297088623046875, 0.036834716796875, 0.025909423828125, -0.00018930435180664062, 0.0169219970703125, 0.01139068603515625, -0.00885772705078125, 0.008331298828125, -0.056671142578125, 0.052154541015625, -0.0304412841796875, 0.087646484375, 0.06756591796875, -0.0287933349609375, 0.0582275390625, 0.01568603515625, -0.0362548828125, 0.01482391357421875, 0.02301025390625, -0.007785797119140625, -0.0299835205078125, -0.0304718017578125, 0.00786590576171875, 0.0111541748046875, 0.035552978515625, 0.00965118408203125, -0.0265655517578125, 0.025665283203125, 0.03814697265625, -0.016845703125, -0.01007080078125, 0.00917816162109375, -0.041473388671875, 0.054168701171875, -0.00304412841796875, -0.004505157470703125, -0.0408935546875, 0.0364990234375, 0.0306549072265625, 0.0172119140625, -0.00945281982421875, -0.04656982421875, -0.030609130859375, -0.054290771484375, 0.0108184814453125, 0.0013828277587890625, 0.0140838623046875, 0.01739501953125, 0.05029296875, 0.026519775390625, -0.0382080078125, 0.05377197265625, 0.013946533203125, -0.0268096923828125, 0.031585693359375, -0.0209503173828125, -0.0043792724609375, 0.01396942138671875, 0.01509857177734375, -0.0240325927734375, -0.006145477294921875, 0.01031494140625, -0.04681396484375, 0.005428314208984375, 0.01409912109375, 0.021484375, 0.008026123046875, -0.008331298828125, 0.004009246826171875, 0.003429412841796875, -0.03948974609375, -0.049530029296875, -0.032989501953125, -0.06890869140625, -0.01236724853515625, 0.052520751953125, 0.027557373046875, -0.04766845703125, 0.0294189453125, 0.01297760009765625, 0.013671875, 0.0335693359375, -0.015167236328125, 0.03289794921875, 0.007556915283203125, 0.010711669921875, -0.038421630859375, 0.0217132568359375, -0.00283050537109375, 0.0048828125, -0.0005507469177246094, 0.013275146484375, -0.016357421875, -0.01023101806640625, -0.06524658203125, -0.05413818359375, 0.03546142578125, -0.062744140625, -0.0018405914306640625, -0.0259857177734375, -0.01922607421875, 0.0133056640625, 0.08892822265625, -0.073486328125, 0.01507568359375, -0.02203369140625, -0.0185089111328125, 0.041595458984375, -0.03656005859375, -0.05828857421875, -0.0176849365234375, -0.07012939453125, 0.005413055419921875, -0.01554107666015625, -0.031524658203125, 0.0052490234375, -0.0340576171875, -0.04608154296875, -0.05474853515625, 0.038116455078125, -0.0119476318359375, 0.012420654296875, 0.0161895751953125, 0.004100799560546875, 0.00009196996688842773, -0.01544189453125, -0.0171356201171875, -0.048736572265625, -0.01038360595703125, 0.0208282470703125, 0.02435302734375, -0.00811004638671875, 0.0077056884765625, -0.026397705078125, 0.0260467529296875, 0.022857666015625, -0.02880859375, -0.0017633438110351562, -0.033233642578125, 0.0302276611328125, 0.0384521484375, -0.0213775634765625, 0.0216064453125, 0.007259368896484375, -0.004878997802734375, -0.060638427734375, -0.01702880859375, -0.019622802734375, -0.0134735107421875, 0.026458740234375, -0.053436279296875, -0.07135009765625, -0.041778564453125, -0.030029296875, 0.033660888671875, 0.0067138671875, -0.00080108642578125, -0.06549072265625, -0.0909423828125, 0.023284912109375, 0.0005817413330078125, -0.035888671875, -0.0019140243530273438, 0.004638671875, 0.0254974365234375, -0.0192718505859375, 0.01091766357421875, 0.0086517333984375, 0.04327392578125, 0.01806640625, 0.04168701171875, 0.0212860107421875, -0.01174163818359375, 0.040802001953125, 0.018585205078125, -0.043609619140625, 0.01403045654296875, 0.06512451171875, 0.00452423095703125, -0.0279541015625, 0.00545501708984375, -0.05169677734375, 0.0247802734375, 0.04180908203125, 0.0246429443359375, -0.03765869140625, 0.04693603515625, 0.045989990234375, -0.0472412109375, 0.0242767333984375, -0.01363372802734375, -0.03326416015625, 0.0234527587890625, 0.053070068359375, 0.002117156982421875, 0.0163726806640625, 0.0106201171875, 0.0167236328125, -0.01230621337890625, -0.00855255126953125, 0.0204925537109375, 0.04150390625, -0.01421356201171875, 0.0039520263671875, 0.043121337890625, -0.03741455078125, -0.0110321044921875, -0.00739288330078125, -0.0055389404296875, -0.0011777877807617188, -0.04705810546875, -0.0007700920104980469, -0.0068359375, 0.0162506103515625, 0.006671905517578125, 0.00897979736328125, 0.0367431640625, 0.035980224609375, -0.00612640380859375, -0.0093994140625, -0.002964019775390625, 0.015380859375, -0.03521728515625, 0.0020618438720703125, -0.0042572021484375, 0.0011606216430664062, 0.025421142578125, 0.033966064453125, 0.044158935546875, 0.00954437255859375, -0.036865234375, 0.01512908935546875, 0.036834716796875, 0.0202789306640625, 0.0141448974609375, -0.0077362060546875, -0.01812744140625, 0.00632476806640625, 0.01140594482421875, -0.06585693359375, -0.045440673828125, 0.024749755859375, 0.06756591796875, -0.0181121826171875, -0.0278778076171875, 0.01514434814453125, -0.00321197509765625, 0.0025005340576171875, 0.04937744140625, 0.005092620849609375, -0.070556640625, -0.01739501953125, 0.021514892578125, 0.031707763671875, -0.0377197265625, -0.032501220703125, 0.025543212890625, -0.050872802734375, 0.01385498046875, 0.00904083251953125, -0.01224517822265625, -0.004215240478515625, 0.01180267333984375, 0.0256195068359375, -0.0110321044921875, -0.00612640380859375, -0.02716064453125, 0.02325439453125, -0.032684326171875, -0.026763916015625, 0.03302001953125, -0.02203369140625, 0.021575927734375, -0.00428009033203125, -0.0216217041015625, 0.025054931640625, 0.0033626556396484375, 0.0982666015625, 0.052520751953125, -0.05023193359375, 0.004970550537109375, -0.051513671875, 0.00020062923431396484, 0.01239776611328125, -0.03076171875, -0.0196990966796875, -0.0158843994140625, 0.02166748046875, 0.004955291748046875, 0.021453857421875, -0.0299072265625, -0.00615692138671875, 0.007049560546875, 0.00933074951171875, -0.0012788772583007812, -0.015960693359375, 0.06292724609375, -0.0244140625, 0.060211181640625, -0.01242828369140625, 0.03167724609375, 0.0113525390625, -0.0259857177734375, 0.01113128662109375, -0.01458740234375, -0.018585205078125, -0.021087646484375, 0.0130615234375, 0.0341796875, 0.06787109375, -0.01036834716796875, -0.0312347412109375, 0.01448822021484375, 0.003955841064453125, -0.033477783203125, -0.0302734375, 0.01324462890625, -0.00304412841796875, -0.027618408203125, 0.006092071533203125, 0.00937652587890625, 0.00418853759765625, -0.04229736328125, 0.02325439453125, 0.0216522216796875, 0.019134521484375, 0.002658843994140625, -0.04547119140625, 0.0267486572265625, 0.06982421875, 0.04364013671875, 0.0792236328125, -0.0011491775512695312, 0.039398193359375, 0.04302978515625, -0.0034160614013671875, -0.023834228515625, -0.00041556358337402344, 0.039337158203125, -0.007015228271484375, -0.0222930908203125, 0.0308380126953125, -0.0124053955078125, -0.005664825439453125, 0.0654296875, 0.03619384765625, -0.11822509765625, 0.009521484375, 0.016357421875, 0.0266876220703125, 0.0003044605255126953, -0.0028514862060546875, -0.004543304443359375, -0.00005823373794555664, -0.017364501953125, 0.023712158203125, -0.031341552734375, -0.017730712890625, 0.0206451416015625, 0.0012464523315429688, 0.019775390625, 0.039642333984375, 0.0025157928466796875, -0.065673828125, -0.01361083984375, 0.044281005859375, -0.029815673828125, -0.04638671875, -0.01397705078125, 0.0218963623046875, -0.0235595703125, -0.07366943359375, 0.0341796875, -0.01190185546875, 0.01410675048828125, 0.067626953125, -0.01053619384765625, -0.0134124755859375, 0.0546875, -0.0310516357421875, 0.031005859375, 0.00791168212890625, -0.06585693359375, -0.0175933837890625, -0.02276611328125, -0.01251983642578125, 0.027252197265625, -0.0166015625, 0.0225372314453125, -0.003215789794921875, -0.018646240234375, -0.0018510818481445312, -0.0005092620849609375, 0.04534912109375, 0.00641632080078125, -0.040496826171875, 0.006824493408203125, -0.004024505615234375, 0.0066375732421875, -0.008392333984375, 0.01837158203125, -0.044586181640625, -0.041107177734375, -0.004756927490234375, -0.052581787109375, -0.0125579833984375, -0.0207366943359375, -0.036102294921875, 0.1173095703125, -0.02655029296875, 0.03057861328125, 0.0294342041015625, 0.040985107421875, -0.03277587890625, 0.033721923828125, -0.022552490234375, 0.0518798828125, -0.0202789306640625, 0.031341552734375, -0.026092529296875, 0.002498626708984375, 0.0103759765625, 0.01511383056640625, 0.047821044921875, 0.0193328857421875, -0.043060302734375, 0.0290069580078125, 0.0517578125, 0.0199432373046875, -0.01288604736328125, 0.037384033203125, -0.0287322998046875, 0.0188140869140625, 0.0203857421875, -0.032470703125, 0.0272369384765625, -0.00571441650390625, -0.05572509765625, -0.01200103759765625, 0.021148681640625, 0.00324249267578125, -0.01012420654296875, -0.06524658203125, -0.04583740234375, 0.0005035400390625, 0.01264190673828125, 0.0330810546875, 0.01235198974609375, 0.04925537109375, 0.054351806640625, -0.0347900390625, 0.08795166015625, -0.057952880859375, 0.0751953125, -0.01303863525390625, -0.0101318359375, -0.0027256011962890625, -0.00334930419921875, 0.004180908203125, -0.00852203369140625, -0.0120086669921875, 0.02606201171875, 0.0019006729125976562, 0.0328369140625, 0.0218353271484375, 0.014190673828125, -0.02239990234375, 0.04534912109375, 0.0007662773132324219, 0.0177459716796875, -0.04803466796875, -0.009368896484375, 0.012481689453125, 0.0188140869140625, 0.00606536865234375, -0.032012939453125, 0.01788330078125, 0.0236663818359375, 0.03497314453125, -0.051666259765625, 0.018646240234375, 0.0379638671875, 0.0228118896484375, -0.0246429443359375, -0.04864501953125, -0.03558349609375, 0.0190582275390625, -0.032318115234375, -0.01904296875, 0.029510498046875, 0.06988525390625, 0.023101806640625, 0.0284881591796875, -0.0030517578125, -0.035308837890625, -0.0225067138671875, 0.0224456787109375, -0.015594482421875, 0.01983642578125, -0.0748291015625, -0.06890869140625, 0.04351806640625, 0.059539794921875, 0.033599853515625, 0.029388427734375, 0.046875, 0.0546875, 0.006725311279296875, 0.0026302337646484375, 0.06536865234375, -0.001796722412109375, -0.0018939971923828125, -0.0235443115234375, -0.0242156982421875, -0.020111083984375, -0.022705078125, 0.013671875, 0.0031604766845703125, -0.00411224365234375, -0.001323699951171875, 0.043365478515625, -0.00605010986328125, -0.030029296875, 0.01849365234375, -0.00562286376953125, 0.092041015625, 0.022308349609375, -0.058074951171875, -0.024139404296875, -0.000446319580078125, -0.08447265625, 0.043731689453125, 0.058837890625, -0.018402099609375, -0.003864288330078125, -0.01149749755859375, 0.026824951171875, 0.00103759765625, -0.044158935546875, 0.0043487548828125, -0.01763916015625, 0.01175689697265625, 0.004055023193359375, -0.09429931640625, -0.02557373046875, -0.03314208984375, -0.01081085205078125, -0.00896453857421875, 0.12060546875, -0.0116729736328125, 0.01180267333984375, -0.0203399658203125, 0.0791015625, -0.06573486328125, -0.01953125, 0.006072998046875, -0.0012159347534179688, 0.03326416015625, -0.0013380050659179688, -0.04437255859375, 0.00750732421875, 0.054718017578125, -0.03387451171875, 0.033050537109375, 0.0075225830078125, 0.002811431884765625, -0.055694580078125, 0.0112152099609375, -0.041046142578125, -0.04248046875, -0.059906005859375, -0.0212860107421875, 0.0237579345703125, 0.003940582275390625, -0.00589752197265625, 0.031951904296875, -0.01041412353515625, -0.04620361328125, 0.0166473388671875, -0.054107666015625, 0.01421356201171875, 0.0313720703125, 0.01439666748046875, -0.01947021484375, 0.0177154541015625, -0.006275177001953125, 0.0023708343505859375, 0.03204345703125, 0.0034313201904296875, 0.0189971923828125, -0.0293121337890625, -0.00399017333984375, -0.05194091796875, -0.03173828125, -0.034515380859375, -0.036041259765625, 0.02423095703125, -0.004077911376953125, -0.0601806640625, -0.01151275634765625, -0.01319122314453125, -0.0076141357421875, 0.00002282857894897461, 0.0177764892578125, 0.01074981689453125, -0.007568359375, -0.01666259765625, -0.0227203369140625, 0.0306549072265625, -0.0208587646484375, -0.00917816162109375, -0.00876617431640625, -0.05755615234375, 0.0212860107421875, -0.03472900390625, 0.0228424072265625, -0.009246826171875, 0.033233642578125, -0.0218353271484375, 0.0204010009765625, -0.0300140380859375, 0.005096435546875, -0.01251220703125, 0.00742340087890625, 0.057464599609375, -0.02178955078125, -0.04388427734375, -0.028350830078125, -0.0225982666015625, 0.022552490234375, -0.033111572265625, -0.01776123046875, -0.0031948089599609375, -0.0004024505615234375, -0.010284423828125, -0.056427001953125, 0.01285552978515625, -0.04876708984375, -0.0261993408203125, -0.0016794204711914062, -0.0169219970703125, -0.00685882568359375, -0.03570556640625, -0.0287933349609375, 0.042510986328125, 0.0003955364227294922, -0.0161590576171875, -0.0009493827819824219, 0.0263671875, -0.00021827220916748047, 0.00406646728515625, 0.009246826171875, -0.0262451171875, -0.0011301040649414062, -0.0086212158203125, 0.017730712890625, 0.056365966796875, 0.0206756591796875, 0.02044677734375, 0.023712158203125, 0.03643798828125, 0.03216552734375, 0.0037136077880859375, -0.005298614501953125, 0.005100250244140625, 0.01422882080078125, 0.0242156982421875, -0.0390625, 0.022918701171875, -0.0029735565185546875, 0.042755126953125, 0.0025177001953125, -0.039306640625, -0.02996826171875, -0.0292205810546875, 0.0205841064453125, 0.043975830078125, 0.009033203125, -0.01129150390625, -0.04144287109375, -0.060516357421875, -0.0103607177734375, 0.0005035400390625, 0.024932861328125, -0.076416015625, 0.01666259765625, 0.0400390625, 0.0008435249328613281, 0.00032448768615722656, 0.03271484375, -0.004486083984375, -0.0017232894897460938, 0.042083740234375, -0.02764892578125, -0.0189971923828125, 0.08233642578125, -0.0289459228515625, -0.00740814208984375, -0.00800323486328125, -0.0306854248046875, -0.037200927734375, -0.037933349609375, -0.043487548828125, -0.01403045654296875, 0.0117950439453125, -0.01177978515625, 0.017242431640625, -0.00801849365234375, 0.051483154296875, -0.036163330078125, 0.01384735107421875, -0.0153045654296875, 0.003345489501953125, 0.01262664794921875, 0.000026285648345947266, -0.0274810791015625, -0.004878997802734375, 0.003757476806640625, 0.0015058517456054688, 0.0060272216796875, 0.0279388427734375, -0.01303863525390625, 0.0214080810546875, -0.00786590576171875, -0.0032958984375, 0.00986480712890625, 0.006412506103515625, 0.015655517578125, 0.007541656494140625, 0.0186004638671875, -0.004001617431640625, 0.0152740478515625, 0.01995849609375, -0.00939178466796875, 0.0056610107421875 ]
5d3fb41a69cbe9696eeb38045707f343274b1ea5
Wordpress Stackexchange Q: Change the filename format of saved featured images Does anyone know how I could change the way wordpress saves the featured image's additional image sizes? Right now I have the main image saving like so: test_builder_banner_2.jpg and for each additional image size it saves like so: test_builder_banner-610x260.jpg All I want to do is get rid of the "-" between the name of the file and the file size, and replace it with an underscore. Is there a filter I can use or something of that sort? A: There is a filter to use for the array containing the filename that is saved to postmeta but since there are no filters available to change the filename before it is saved you have to manually change it using rename(). function wpse_filter_image_resize_name( $filename ) { $new_name = preg_replace( "/-(?<match>\\d)/ui", "_$1", $filename ); if ( rename( $filename, $new_name ) ) return $new_name; return $filename; } add_filter( 'image_make_intermediate_size', 'wpse_filter_image_resize_name' );
Q: Change the filename format of saved featured images Does anyone know how I could change the way wordpress saves the featured image's additional image sizes? Right now I have the main image saving like so: test_builder_banner_2.jpg and for each additional image size it saves like so: test_builder_banner-610x260.jpg All I want to do is get rid of the "-" between the name of the file and the file size, and replace it with an underscore. Is there a filter I can use or something of that sort? A: There is a filter to use for the array containing the filename that is saved to postmeta but since there are no filters available to change the filename before it is saved you have to manually change it using rename(). function wpse_filter_image_resize_name( $filename ) { $new_name = preg_replace( "/-(?<match>\\d)/ui", "_$1", $filename ); if ( rename( $filename, $new_name ) ) return $new_name; return $filename; } add_filter( 'image_make_intermediate_size', 'wpse_filter_image_resize_name' );
wordpress
{ "language": "en", "length": 156, "provenance": "stackexchange_00019.jsonl.gz:440874", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128775" }
[ -0.044189453125, -0.0256500244140625, -0.04547119140625, 0.0244140625, -0.002544403076171875, -0.035797119140625, 0.053741455078125, 0.026702880859375, 0.00768280029296875, 0.0209197998046875, -0.0207061767578125, 0.00159454345703125, 0.00666046142578125, -0.0160064697265625, 0.006092071533203125, -0.0182342529296875, 0.042755126953125, -0.0257415771484375, 0.0234832763671875, -0.00693511962890625, -0.006649017333984375, 0.035980224609375, 0.005615234375, 0.045166015625, -0.01546478271484375, -0.0050048828125, 0.08905029296875, -0.0288848876953125, -0.0168609619140625, -0.03985595703125, 0.01357269287109375, 0.0208282470703125, 0.03192138671875, 0.007232666015625, -0.005153656005859375, 0.057769775390625, 0.01904296875, -0.0104522705078125, 0.0032291412353515625, 0.0025730133056640625, 0.0181121826171875, -0.005290985107421875, 0.0184478759765625, -0.0635986328125, -0.009124755859375, 0.0125885009765625, 0.00861358642578125, -0.0207061767578125, 0.006198883056640625, 0.01421356201171875, 0.007381439208984375, 0.02532958984375, 0.031463623046875, -0.0029544830322265625, -0.0106964111328125, -0.0096893310546875, -0.08441162109375, 0.1051025390625, 0.035430908203125, 0.00322723388671875, -0.0240478515625, 0.00235748291015625, -0.00033926963806152344, -0.02044677734375, -0.0092315673828125, 0.01654052734375, 0.0153045654296875, 0.004547119140625, 0.0199737548828125, -0.01812744140625, -0.0221710205078125, -0.007755279541015625, -0.015869140625, -0.015716552734375, -0.03887939453125, 0.027557373046875, 0.0015583038330078125, -0.01291656494140625, 0.01270294189453125, -0.000013232231140136719, 0.06591796875, -0.034942626953125, 0.0261077880859375, 0.01119232177734375, 0.032135009765625, 0.037445068359375, 0.0056610107421875, -0.0274810791015625, -0.0252227783203125, 0.0189361572265625, -0.0179595947265625, -0.0237884521484375, -0.020782470703125, 0.06695556640625, 0.009735107421875, 0.00975799560546875, 0.0011081695556640625, -0.013916015625, 0.0166168212890625, -0.0005731582641601562, 0.040283203125, -0.04754638671875, 0.013153076171875, -0.0097503662109375, 0.007801055908203125, 0.069580078125, 0.0122222900390625, 0.0042266845703125, 0.029998779296875, -0.0029621124267578125, 0.018157958984375, 0.016265869140625, -0.0086517333984375, -0.04052734375, 0.00626373291015625, 0.0193634033203125, -0.03167724609375, 0.042510986328125, 0.0099945068359375, 0.0098724365234375, 0.0115203857421875, 0.00179290771484375, 0.03973388671875, -0.0384521484375, 0.034149169921875, 0.00647735595703125, -0.038970947265625, -0.03167724609375, -0.01285552978515625, 0.051544189453125, -0.0181121826171875, -0.0027370452880859375, 0.02142333984375, -0.00106048583984375, -0.00931549072265625, -0.0235748291015625, 0.0301666259765625, -0.0287017822265625, -0.026824951171875, 0.047821044921875, -0.041839599609375, -0.051666259765625, -0.0046844482421875, -0.037994384765625, 0.0095672607421875, 0.0283050537109375, -0.0026187896728515625, 0.012237548828125, 0.0174102783203125, -0.06109619140625, 0.036346435546875, -0.05645751953125, 0.037353515625, 0.00905609130859375, -0.049896240234375, -0.0174102783203125, 0.0188751220703125, -0.025909423828125, -0.033172607421875, -0.058074951171875, -0.01953125, -0.00988006591796875, 0.01174163818359375, -0.0287322998046875, -0.036590576171875, 0.02227783203125, -0.0235443115234375, -0.005062103271484375, 0.0201873779296875, -0.023468017578125, 0.03045654296875, -0.0018434524536132812, -0.0107421875, 0.01320648193359375, 0.00836181640625, 0.03155517578125, -0.0093841552734375, 0.01165771484375, 0.00917816162109375, 0.0657958984375, 0.02728271484375, -0.0138092041015625, 0.061859130859375, -0.0240478515625, -0.0216064453125, -0.0401611328125, 0.00917816162109375, 0.0087890625, 0.0222320556640625, 0.01369476318359375, 0.00811004638671875, -0.0089874267578125, -0.033905029296875, -0.01053619384765625, 0.0014791488647460938, 0.0130157470703125, -0.004787445068359375, -0.00128173828125, 0.00843048095703125, 0.0195770263671875, 0.051971435546875, -0.00579833984375, -0.005893707275390625, -0.0062408447265625, -0.06231689453125, 0.00936126708984375, -0.0178680419921875, 0.0245819091796875, -0.050262451171875, 0.00968170166015625, 0.039642333984375, 0.01172637939453125, -0.032745361328125, -0.0205078125, 0.006992340087890625, 0.0161895751953125, -0.00452423095703125, -0.01068115234375, -0.0022296905517578125, 0.0286865234375, -0.005924224853515625, 0.00936126708984375, -0.020782470703125, 0.002666473388671875, 0.0198974609375, 0.012359619140625, -0.037353515625, -0.0094757080078125, -0.0012388229370117188, -0.01366424560546875, 0.01422882080078125, 0.07366943359375, 0.005344390869140625, 0.02069091796875, 0.009033203125, -0.021697998046875, 0.0020771026611328125, -0.138671875, 0.01995849609375, 0.0623779296875, 0.01019287109375, 0.0192718505859375, 0.0002925395965576172, 0.0474853515625, 0.0643310546875, 0.0631103515625, 0.04180908203125, -0.001583099365234375, 0.029693603515625, 0.015960693359375, -0.0256500244140625, -0.033599853515625, 0.052581787109375, -0.07757568359375, 0.0273284912109375, 0.043701171875, -0.034912109375, -0.038665771484375, -0.0238037109375, 0.045623779296875, 0.010040283203125, 0.0304107666015625, 0.00664520263671875, 0.0024089813232421875, 0.007747650146484375, 0.032928466796875, 0.0177001953125, 0.0062103271484375, -0.036041259765625, 0.034454345703125, 0.0252532958984375, -0.01007843017578125, 0.00299835205078125, 0.018646240234375, -0.00920867919921875, -0.0180206298828125, -0.0203704833984375, 0.022216796875, -0.016204833984375, -0.00955963134765625, -0.029296875, 0.004199981689453125, -0.06451416015625, -0.0201568603515625, -0.01025390625, -0.0626220703125, -0.00807952880859375, 0.00994873046875, -0.0362548828125, -0.0230560302734375, -0.0001360177993774414, 0.0455322265625, 0.0202178955078125, -0.005214691162109375, 0.0279998779296875, -0.0013265609741210938, -0.00908660888671875, -0.021087646484375, 0.02398681640625, -0.044708251953125, 0.050262451171875, 0.058502197265625, -0.03692626953125, 0.037811279296875, -0.0146026611328125, -0.01361846923828125, -0.00559234619140625, -0.0190277099609375, -0.0298309326171875, -0.02642822265625, -0.058685302734375, -0.0007266998291015625, 0.018707275390625, 0.035125732421875, -0.0095977783203125, -0.01389312744140625, -0.00821685791015625, 0.0288543701171875, -0.01132965087890625, 0.0076446533203125, -0.0640869140625, -0.05780029296875, -0.037689208984375, 0.04425048828125, -0.0361328125, 0.0328369140625, 0.049591064453125, 0.007965087890625, 0.0201263427734375, -0.028656005859375, -0.00601959228515625, -0.002544403076171875, -0.012603759765625, -0.0285797119140625, 0.0049591064453125, -0.02288818359375, -0.00019562244415283203, -0.005405426025390625, 0.00904083251953125, 0.016387939453125, 0.020416259765625, 0.054290771484375, 0.0249786376953125, -0.03857421875, 0.0206298828125, -0.0260009765625, -0.01337432861328125, -0.01120758056640625, 0.0374755859375, 0.047760009765625, -0.034210205078125, 0.03436279296875, -0.01251983642578125, -0.0487060546875, -0.0212249755859375, 0.059417724609375, 0.0277099609375, -0.050018310546875, 0.026947021484375, -0.0780029296875, -0.042388916015625, -0.0292816162109375, -0.061859130859375, 0.037384033203125, 0.056396484375, 0.0006222724914550781, -0.005207061767578125, 0.01245880126953125, 0.0009274482727050781, 0.00909423828125, 0.033111572265625, -0.05084228515625, 0.023712158203125, -0.0017261505126953125, -0.0018777847290039062, -0.035064697265625, 0.040313720703125, -0.004833221435546875, 0.00704193115234375, 0.025604248046875, 0.0096435546875, 0.01442718505859375, -0.01922607421875, -0.0025920867919921875, -0.04681396484375, 0.0345458984375, -0.09942626953125, 0.00908660888671875, -0.07080078125, -0.0020904541015625, -0.0347900390625, 0.064697265625, -0.0257110595703125, -0.0152587890625, 0.01493072509765625, 0.0162200927734375, -0.053680419921875, -0.018218994140625, -0.04669189453125, 0.00945281982421875, -0.08258056640625, -0.00848388671875, -0.0130462646484375, -0.037078857421875, 0.0063934326171875, -0.0222625732421875, -0.0210418701171875, -0.0537109375, 0.02496337890625, 0.0026264190673828125, 0.0205535888671875, -0.0224151611328125, -0.007236480712890625, -0.0142364501953125, -0.00009649991989135742, -0.02587890625, -0.11309814453125, -0.0203704833984375, -0.0160980224609375, 0.10101318359375, -0.0255584716796875, 0.028076171875, -0.0243072509765625, 0.07275390625, 0.028900146484375, 0.0291900634765625, 0.022735595703125, -0.01335906982421875, -0.0207672119140625, 0.014404296875, 0.04962158203125, -0.034515380859375, -0.00759124755859375, -0.03582763671875, -0.06304931640625, -0.01467132568359375, -0.009124755859375, 0.031280517578125, 0.02618408203125, -0.0166015625, -0.031341552734375, -0.0191497802734375, 0.037384033203125, 0.050201416015625, 0.0212249755859375, 0.006458282470703125, -0.070068359375, -0.0283660888671875, 0.05474853515625, 0.00829315185546875, 0.0251922607421875, 0.017059326171875, 0.08306884765625, -0.01120758056640625, -0.024932861328125, -0.08978271484375, 0.0080718994140625, 0.0399169921875, 0.022552490234375, 0.035125732421875, 0.00530242919921875, -0.043212890625, 0.081787109375, 0.0245361328125, -0.01473236083984375, -0.0150909423828125, 0.064208984375, 0.015472412109375, -0.0011529922485351562, 0.00984954833984375, -0.0096435546875, 0.00757598876953125, -0.008758544921875, -0.020721435546875, -0.001682281494140625, -0.039794921875, 0.0275421142578125, 0.00931549072265625, 0.01947021484375, -0.0360107421875, -0.0150146484375, -0.001575469970703125, -0.0011243820190429688, 0.00457763671875, 0.01084136962890625, -0.00859832763671875, -0.0189056396484375, 0.03692626953125, 0.0152587890625, -0.0105133056640625, -0.01007843017578125, -0.017242431640625, 0.038360595703125, -0.01425933837890625, 0.0021686553955078125, -0.00405120849609375, 0.0163726806640625, -0.08343505859375, -0.008056640625, -0.0008749961853027344, -0.06146240234375, 0.01172637939453125, -0.02093505859375, -0.002933502197265625, 0.022125244140625, 0.016082763671875, 0.03228759765625, -0.005481719970703125, -0.007740020751953125, -0.019744873046875, 0.05682373046875, -0.035980224609375, 0.01546478271484375, 0.027618408203125, -0.0185089111328125, 0.037841796875, -0.0003578662872314453, 0.00673675537109375, 0.0034770965576171875, -0.008941650390625, 0.038177490234375, 0.0504150390625, -0.0142822265625, 0.00844573974609375, 0.02130126953125, -0.0113067626953125, -0.013214111328125, 0.01244354248046875, -0.02099609375, 0.0216827392578125, 0.014404296875, 0.0104827880859375, -0.027435302734375, -0.02716064453125, 0.0287322998046875, -0.0187530517578125, 0.011566162109375, -0.013336181640625, -0.06024169921875, -0.024078369140625, -0.01480865478515625, 0.0155181884765625, 0.04827880859375, -0.0275115966796875, -0.0107269287109375, -0.061248779296875, -0.01319122314453125, -0.0259857177734375, 0.0240631103515625, -0.0618896484375, 0.017181396484375, 0.0218353271484375, -0.005405426025390625, 0.0007624626159667969, -0.032928466796875, 0.0251922607421875, -0.003177642822265625, -0.010406494140625, -0.0301055908203125, 0.07537841796875, -0.044830322265625, 0.032440185546875, -0.0200958251953125, 0.00783538818359375, -0.0029277801513671875, 0.034637451171875, 0.00567626953125, 0.0039005279541015625, 0.0086517333984375, -0.02978515625, -0.0135650634765625, -0.0279388427734375, 0.0633544921875, 0.016021728515625, -0.0024776458740234375, -0.0234222412109375, -0.0027103424072265625, 0.0165252685546875, 0.017974853515625, 0.038818359375, 0.022308349609375, 0.01331329345703125, -0.0285797119140625, 0.04376220703125, -0.031494140625, 0.02703857421875, 0.016998291015625, -0.0087738037109375, -0.023529052734375, -0.0248260498046875, 0.0055389404296875, 0.00885772705078125, -0.03662109375, -0.01580810546875, 0.0504150390625, 0.0145721435546875, 0.0240325927734375, -0.0094146728515625, 0.029998779296875, 0.020904541015625, 0.005126953125, -0.00931549072265625, 0.00408172607421875, -0.038818359375, -0.018798828125, -0.045867919921875, 0.00788116455078125, -0.055389404296875, -0.0129547119140625, 0.0275726318359375, -0.027618408203125, 0.003314971923828125, -0.000766754150390625, -0.030303955078125, -0.017181396484375, 0.054779052734375, -0.019195556640625, -0.0176544189453125, 0.00830841064453125, 0.03192138671875, 0.03887939453125, -0.019927978515625, 0.034088134765625, 0.00949859619140625, -0.0325927734375, 0.01003265380859375, 0.031585693359375, 0.05865478515625, 0.01247406005859375, 0.036956787109375, 0.0626220703125, -0.00038552284240722656, 0.0261688232421875, 0.0016632080078125, 0.0231475830078125, -0.031829833984375, 0.01062774658203125, -0.016510009765625, -0.005641937255859375, 0.09320068359375, 0.0259552001953125, -0.00968170166015625, -0.0007567405700683594, 0.01491546630859375, -0.025360107421875, 0.0050048828125, 0.01186370849609375, 0.00724029541015625, -0.00722503662109375, 0.00856781005859375, 0.0323486328125, 0.011260986328125, -0.02801513671875, -0.051727294921875, 0.04168701171875, -0.033447265625, 0.0017061233520507812, 0.026092529296875, -0.018280029296875, -0.028228759765625, -0.04766845703125, -0.0166473388671875, 0.00707244873046875, -0.03924560546875, -0.010467529296875, 0.0135955810546875, 0.05694580078125, 0.031829833984375, 0.013092041015625, -0.03314208984375, 0.00421142578125, 0.02386474609375, 0.0482177734375, -0.005863189697265625, -0.004756927490234375, 0.00933837890625, -0.031951904296875, -0.01399993896484375, -0.038726806640625, 0.0274200439453125, -0.0121612548828125, -0.034576416015625, 0.053558349609375, -0.01232147216796875, -0.0224456787109375, 0.00534820556640625, 0.0044403076171875, -0.0118560791015625, 0.006534576416015625, 0.021697998046875, -0.05133056640625, -0.050689697265625, 0.00902557373046875, -0.072265625, 0.01039886474609375, -0.01285552978515625, -0.054595947265625, 0.09368896484375, 0.0106353759765625, 0.0360107421875, -0.0018796920776367188, 0.039154052734375, -0.0131683349609375, 0.01047515869140625, -0.0285797119140625, 0.0201873779296875, -0.035400390625, 0.031097412109375, -0.00537872314453125, 0.0281982421875, 0.0038433074951171875, -0.0145111083984375, 0.017425537109375, -0.005619049072265625, -0.03277587890625, -0.003986358642578125, 0.0682373046875, 0.03607177734375, 0.016937255859375, 0.034454345703125, -0.023834228515625, -0.009979248046875, -0.0210113525390625, -0.0145111083984375, 0.004367828369140625, -0.0207977294921875, -0.053863525390625, 0.0175018310546875, 0.03240966796875, 0.055816650390625, -0.031829833984375, 0.024383544921875, -0.0212249755859375, -0.0259552001953125, 0.03497314453125, -0.0386962890625, -0.001018524169921875, 0.03436279296875, 0.02496337890625, -0.00275421142578125, -0.0195465087890625, -0.018890380859375, 0.0423583984375, 0.01129913330078125, -0.0031299591064453125, 0.0237274169921875, -0.005706787109375, 0.03826904296875, -0.01238250732421875, -0.03118896484375, 0.0013256072998046875, 0.042266845703125, 0.03704833984375, 0.014678955078125, 0.0184173583984375, -0.0019702911376953125, 0.06695556640625, 0.0254669189453125, 0.0295562744140625, -0.048675537109375, -0.00031638145446777344, 0.01410675048828125, 0.0174102783203125, 0.005878448486328125, -0.0142669677734375, 0.033172607421875, -0.03466796875, -0.0154266357421875, -0.004215240478515625, 0.0232086181640625, 0.051300048828125, 0.00482940673828125, 0.006519317626953125, -0.007122039794921875, -0.0545654296875, 0.037841796875, -0.035888671875, 0.01358795166015625, 0.036651611328125, 0.05059814453125, 0.01444244384765625, 0.038604736328125, 0.0298004150390625, -0.01192474365234375, -0.03472900390625, 0.058319091796875, -0.0032825469970703125, 0.04998779296875, -0.04925537109375, -0.016204833984375, 0.007366180419921875, 0.0290679931640625, 0.000171661376953125, 0.021514892578125, 0.06573486328125, 0.0260467529296875, -0.0660400390625, -0.01160430908203125, 0.015045166015625, -0.045440673828125, 0.030548095703125, -0.059661865234375, 0.03082275390625, 0.023712158203125, -0.0173187255859375, 0.004638671875, -0.0269012451171875, 0.0570068359375, -0.04510498046875, 0.03350830078125, -0.01641845703125, -0.01126861572265625, 0.00821685791015625, -0.00936126708984375, 0.039337158203125, -0.0034542083740234375, -0.0697021484375, -0.01995849609375, -0.014617919921875, -0.01332855224609375, 0.005954742431640625, 0.031707763671875, -0.01183319091796875, 0.02691650390625, 0.00028395652770996094, -0.02197265625, 0.01447296142578125, -0.01503753662109375, 0.00862884521484375, 0.01326751708984375, 0.0087432861328125, -0.00400543212890625, -0.036376953125, -0.027252197265625, -0.03216552734375, 0.045440673828125, 0.00540924072265625, 0.08245849609375, -0.032012939453125, 0.02410888671875, -0.024078369140625, 0.01422119140625, -0.031158447265625, -0.035614013671875, 0.05242919921875, -0.0221405029296875, -0.01309967041015625, 0.0006952285766601562, 0.0170440673828125, -0.0119781494140625, 0.036834716796875, -0.056793212890625, -0.0229644775390625, -0.0267181396484375, 0.0307464599609375, 0.01300048828125, 0.00677490234375, -0.0440673828125, -0.0300750732421875, -0.004726409912109375, 0.00821685791015625, -0.01727294921875, -0.030120849609375, 0.000732421875, 0.021484375, 0.045989990234375, 0.0207977294921875, 0.05706787109375, -0.0023250579833984375, 0.08184814453125, 0.034210205078125, -0.041748046875, -0.048126220703125, 0.002288818359375, -0.01474761962890625, -0.0311279296875, -0.0033721923828125, 0.0498046875, -0.02490234375, -0.052642822265625, 0.006710052490234375, 0.00988006591796875, 0.002178192138671875, -0.055908203125, 0.003902435302734375, 0.038818359375, -0.0012445449829101562, -0.008392333984375, -0.030517578125, -0.0212249755859375, -0.02557373046875, -0.006870269775390625, 0.03521728515625, -0.0023021697998046875, 0.0013532638549804688, 0.00292205810546875, -0.020355224609375, 0.0279693603515625, 0.02532958984375, -0.03900146484375, 0.020599365234375, -0.00112152099609375, 0.0022411346435546875, 0.0283966064453125, -0.0513916015625, 0.0014019012451171875, 0.002948760986328125, -0.050811767578125, -0.08721923828125, -0.06488037109375, 0.032623291015625, -0.08502197265625, -0.01287078857421875, 0.017425537109375, 0.006011962890625, 0.0318603515625, 0.0012874603271484375, -0.01934814453125, 0.050018310546875, -0.0743408203125, -0.04547119140625, -0.01474761962890625, 0.0117645263671875, 0.01239013671875, -0.0357666015625, -0.0008292198181152344, -0.043121337890625, 0.00008726119995117188, -0.01003265380859375, -0.0082855224609375, -0.009033203125, -0.046478271484375, -0.06378173828125, 0.003879547119140625, 0.01470184326171875, -0.0364990234375, -0.04412841796875, 0.011383056640625, -0.0277557373046875, 0.07403564453125, 0.017181396484375, -0.0260162353515625, 0.00384521484375, 0.037841796875, 0.0079803466796875, 0.01296234130859375, 0.034423828125, -0.01485443115234375, 0.002941131591796875, 0.01055908203125, 0.025543212890625, -0.0179443359375, 0.02490234375, 0.004703521728515625, 0.031768798828125, 0.039520263671875, -0.00508880615234375, 0.0209197998046875, -0.01444244384765625, -0.052764892578125, -0.03167724609375, -0.0005755424499511719, -0.019256591796875, 0.0177459716796875, 0.07708740234375, 0.0863037109375, 0.0138702392578125, -0.05511474609375, -0.0032024383544921875, -0.0016355514526367188, 0.0183258056640625, -0.007350921630859375, -0.0011835098266601562, -0.06280517578125, -0.03240966796875, 0.0114898681640625, -0.01079559326171875, -0.0150146484375, 0.01032257080078125, -0.03814697265625, -0.018218994140625, -0.00601959228515625, 0.0015048980712890625, -0.042266845703125, 0.006622314453125, 0.036529541015625, -0.039794921875, -0.006282806396484375, -0.0225677490234375, 0.017181396484375, 0.0118560791015625, -0.0289764404296875, -0.02764892578125, 0.05584716796875, -0.034576416015625, 0.015899658203125, -0.00550079345703125, -0.035858154296875, -0.048065185546875, 0.049774169921875, -0.017974853515625, 0.01476287841796875, 0.0054931640625, 0.01477813720703125, 0.00510406494140625, 0.022674560546875, -0.0156402587890625, 0.0364990234375, -0.03643798828125, -0.035400390625, -0.0293731689453125, 0.004604339599609375, -0.0016336441040039062, 0.0018682479858398438, 0.05230712890625, -0.0311431884765625, 0.008392333984375, 0.041961669921875, -0.0298919677734375, -0.005153656005859375, -0.015045166015625, -0.049407958984375, 0.0028076171875, -0.0045928955078125 ]
a49a6ad101fbfe3b397d7d6ce8869005506f517c
Wordpress Stackexchange Q: How to change the quantity of feeds in custom post type? I created a custom post type "podcast" and all podcasts are inside it. when I visit http://example.com/?feed=podcast, it only shows latest 10 podcasts. How do I change it to 99? I googled and found the code below: function feedFilter($query) { if (is_feed()) { $query->set('posts_per_page','30'); } return $query;} add_filter('pre_get_posts', 'feedFilter'); It doesn't work. How to customize the feed items quantity in a custom post type? A: The file where the pre_get_posts action runs is wp-includes/query.php, If we look in that file, we'll see that after the action is executed, the posts_per_page setting is overridden for feeds with this bit of code: if ( $this->is_feed ) { $q['posts_per_page'] = get_option('posts_per_rss'); $q['nopaging'] = false; } In this case, we can add a filter to the value of posts_per_rss to customize the feed quantity that way. function feed_action( $query ){ if( $query->is_feed( 'podcast' ) ) { add_filter( 'option_posts_per_rss', 'feed_posts' ); } } add_action( 'pre_get_posts', 'feed_action' ); function feed_posts(){ return 99; }
Q: How to change the quantity of feeds in custom post type? I created a custom post type "podcast" and all podcasts are inside it. when I visit http://example.com/?feed=podcast, it only shows latest 10 podcasts. How do I change it to 99? I googled and found the code below: function feedFilter($query) { if (is_feed()) { $query->set('posts_per_page','30'); } return $query;} add_filter('pre_get_posts', 'feedFilter'); It doesn't work. How to customize the feed items quantity in a custom post type? A: The file where the pre_get_posts action runs is wp-includes/query.php, If we look in that file, we'll see that after the action is executed, the posts_per_page setting is overridden for feeds with this bit of code: if ( $this->is_feed ) { $q['posts_per_page'] = get_option('posts_per_rss'); $q['nopaging'] = false; } In this case, we can add a filter to the value of posts_per_rss to customize the feed quantity that way. function feed_action( $query ){ if( $query->is_feed( 'podcast' ) ) { add_filter( 'option_posts_per_rss', 'feed_posts' ); } } add_action( 'pre_get_posts', 'feed_action' ); function feed_posts(){ return 99; } A: You can use post_limits filter for feeds, or From backend you should be able to manage post count for feed: Just change it to number of posts in Syndication feeds you want to get. A: your code is almost correct. I've modified somewhat. function feedFilter($query) { if (is_feed()) { $query->set('posts_per_page','30'); } } add_action('pre_get_posts', 'feedFilter'); Above should work
wordpress
{ "language": "en", "length": 227, "provenance": "stackexchange_00019.jsonl.gz:440881", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128814" }
[ 0.0780029296875, 0.0013599395751953125, 0.01904296875, -0.005519866943359375, 0.031768798828125, -0.04144287109375, 0.0640869140625, -0.040069580078125, -0.0289154052734375, 0.01324462890625, -0.0357666015625, 0.004436492919921875, -0.04901123046875, -0.0192718505859375, -0.00806427001953125, -0.0732421875, 0.05023193359375, -0.0284576416015625, 0.0430908203125, -0.0146942138671875, 0.0204315185546875, 0.0007886886596679688, 0.060791015625, 0.06280517578125, 0.0234375, 0.00046825408935546875, 0.03912353515625, -0.0300140380859375, 0.01690673828125, -0.01409149169921875, 0.0217742919921875, -0.0163116455078125, 0.035919189453125, 0.0097808837890625, -0.045013427734375, -0.00736236572265625, -0.0162200927734375, 0.0029811859130859375, -0.037445068359375, 0.0367431640625, 0.025726318359375, -0.0174713134765625, 0.021026611328125, -0.00478363037109375, 0.00662994384765625, -0.004589080810546875, 0.0179595947265625, -0.04608154296875, 0.030487060546875, 0.0092315673828125, -0.0185546875, 0.0154571533203125, 0.003917694091796875, -0.041473388671875, -0.0036907196044921875, -0.021331787109375, 0.0008459091186523438, -0.0025653839111328125, 0.029754638671875, -0.03253173828125, -0.0240631103515625, -0.00849151611328125, 0.028594970703125, 0.01617431640625, 0.0141143798828125, 0.0014848709106445312, 0.0210113525390625, 0.01299285888671875, -0.032806396484375, -0.0186920166015625, 0.012115478515625, -0.0095672607421875, 0.00696563720703125, -0.010955810546875, 0.0123748779296875, -0.0293426513671875, -0.01453399658203125, -0.0297698974609375, 0.02349853515625, 0.020263671875, -0.0009794235229492188, -0.01000213623046875, -0.01702880859375, -0.0167694091796875, -0.003177642822265625, -0.00798797607421875, -0.0071258544921875, 0.00510406494140625, 0.0015211105346679688, 0.0248565673828125, -0.004833221435546875, -0.025238037109375, 0.003963470458984375, 0.036468505859375, 0.00887298583984375, -0.0142822265625, 0.03338623046875, 0.0207672119140625, -0.00484466552734375, -0.004436492919921875, -0.0139923095703125, -0.0191497802734375, 0.0001289844512939453, -0.0163726806640625, 0.02117919921875, 0.01605224609375, -0.031158447265625, 0.04388427734375, 0.09857177734375, 0.05633544921875, 0.022216796875, 0.0701904296875, -0.037750244140625, -0.0297393798828125, -0.00917816162109375, -0.0145263671875, -0.07122802734375, 0.01444244384765625, 0.00684356689453125, -0.032073974609375, 0.018341064453125, 0.02935791015625, -0.01256561279296875, -0.053985595703125, 0.012908935546875, -0.0243072509765625, -0.0374755859375, 0.003490447998046875, -0.03692626953125, 0.081298828125, -0.029449462890625, -0.008758544921875, 0.04986572265625, 0.022796630859375, -0.0076751708984375, -0.0455322265625, 0.04443359375, -0.02789306640625, -0.022979736328125, 0.03509521484375, -0.01425933837890625, -0.028472900390625, -0.00048542022705078125, -0.022705078125, 0.03497314453125, 0.041351318359375, 0.035003662109375, -0.0276336669921875, -0.01168060302734375, -0.0182037353515625, -0.0300445556640625, 0.0102996826171875, 0.0225067138671875, 0.034942626953125, -0.0289764404296875, 0.0227813720703125, 0.041290283203125, -0.0188446044921875, -0.02587890625, -0.04632568359375, 0.01401519775390625, -0.0299835205078125, -0.0233001708984375, -0.05377197265625, -0.06463623046875, 0.033050537109375, -0.0313720703125, 0.00023484230041503906, 0.019012451171875, 0.0238189697265625, 0.01088714599609375, 0.0191650390625, 0.0185089111328125, 0.0192108154296875, 0.00616455078125, -0.0120697021484375, 0.00649261474609375, 0.0232086181640625, 0.039306640625, -0.004482269287109375, -0.01369476318359375, -0.033203125, 0.08929443359375, -0.03668212890625, -0.06768798828125, 0.00701141357421875, 0.0164031982421875, 0.03125, 0.03472900390625, 0.010528564453125, 0.07049560546875, 0.004680633544921875, -0.03173828125, -0.01049041748046875, -0.004055023193359375, -0.031768798828125, 0.025604248046875, -0.036346435546875, 0.007427215576171875, 0.0557861328125, -0.0011167526245117188, 0.02996826171875, -0.007778167724609375, 0.02484130859375, -0.05462646484375, 0.0526123046875, -0.0302734375, 0.03729248046875, -0.034149169921875, 0.0080718994140625, 0.0184173583984375, 0.004459381103515625, -0.01549530029296875, -0.038543701171875, 0.0121917724609375, 0.0273590087890625, -0.02044677734375, 0.017974853515625, -0.0283966064453125, 0.0152130126953125, -0.0169219970703125, -0.0599365234375, -0.0140228271484375, 0.042877197265625, 0.08349609375, -0.02386474609375, -0.009979248046875, -0.032867431640625, 0.05157470703125, -0.002254486083984375, -0.043365478515625, 0.041900634765625, 0.058074951171875, 0.0147705078125, -0.01529693603515625, 0.01096343994140625, 0.044952392578125, -0.041961669921875, -0.0011034011840820312, 0.038055419921875, 0.033966064453125, 0.00447845458984375, 0.0189666748046875, 0.0288848876953125, 0.05731201171875, 0.0117340087890625, 0.0289306640625, -0.00945281982421875, 0.0090179443359375, 0.04595947265625, -0.0280914306640625, -0.00952911376953125, 0.0121002197265625, -0.043426513671875, 0.00415802001953125, 0.036041259765625, 0.01381683349609375, 0.0006818771362304688, 0.020416259765625, 0.00765228271484375, -0.0124969482421875, 0.033966064453125, -0.005306243896484375, 0.02557373046875, 0.036407470703125, 0.02593994140625, 0.04071044921875, 0.041748046875, -0.0187225341796875, 0.0153350830078125, 0.00792694091796875, -0.0148468017578125, 0.0028705596923828125, -0.01418304443359375, -0.040802001953125, -0.01837158203125, -0.0188751220703125, 0.03497314453125, -0.01186370849609375, -0.03887939453125, 0.00382232666015625, 0.0709228515625, -0.04779052734375, -0.0218505859375, -0.02191162109375, -0.081787109375, -0.0433349609375, 0.00528717041015625, -0.01227569580078125, 0.01119232177734375, 0.03485107421875, 0.01953125, -0.0154876708984375, 0.025299072265625, -0.005706787109375, -0.0023365020751953125, 0.058929443359375, -0.09747314453125, 0.0714111328125, -0.02789306640625, 0.0985107421875, 0.0997314453125, -0.006343841552734375, 0.0498046875, -0.0054779052734375, -0.01068115234375, -0.02264404296875, 0.022735595703125, -0.0178375244140625, -0.0225067138671875, -0.038726806640625, 0.0211029052734375, 0.01361083984375, -0.00601959228515625, -0.0009031295776367188, -0.0234222412109375, -0.0160675048828125, 0.0012760162353515625, -0.035980224609375, 0.01143646240234375, 0.054168701171875, -0.0791015625, -0.0029735565185546875, -0.026153564453125, -0.047393798828125, -0.027374267578125, -0.006366729736328125, -0.010894775390625, -0.003787994384765625, 0.0015478134155273438, 0.0022430419921875, -0.0013866424560546875, -0.017730712890625, 0.04425048828125, 0.0245819091796875, 0.00518798828125, -0.0028743743896484375, 0.0474853515625, 0.01351165771484375, -0.038055419921875, 0.032806396484375, 0.044097900390625, -0.01180267333984375, 0.0144500732421875, 0.00518798828125, -0.050872802734375, 0.037139892578125, -0.04241943359375, 0.115478515625, 0.06683349609375, -0.04534912109375, 0.0487060546875, -0.028900146484375, -0.002017974853515625, 0.0005230903625488281, 0.0204010009765625, 0.0328369140625, 0.01285552978515625, 0.02960205078125, -0.0307159423828125, -0.0238800048828125, -0.0258636474609375, -0.060546875, 0.033966064453125, 0.054901123046875, 0.0098724365234375, -0.01102447509765625, -0.00139617919921875, -0.04913330078125, -0.0179443359375, 0.0377197265625, -0.058807373046875, -0.01485443115234375, -0.003993988037109375, -0.034576416015625, 0.00626373291015625, 0.022430419921875, -0.007568359375, 0.0282135009765625, 0.0261688232421875, 0.0162811279296875, 0.00795745849609375, -0.0111083984375, -0.04010009765625, 0.0018177032470703125, 0.011566162109375, -0.06158447265625, -0.01380157470703125, -0.011474609375, 0.002323150634765625, 0.002593994140625, 0.03558349609375, -0.0369873046875, -0.0212860107421875, -0.020355224609375, 0.0267486572265625, -0.00934600830078125, -0.10546875, 0.0179290771484375, -0.0201416015625, -0.0275726318359375, -0.01227569580078125, -0.025390625, -0.01480865478515625, 0.00075531005859375, -0.022735595703125, -0.00988006591796875, -0.0214996337890625, 0.0282440185546875, -0.0099945068359375, -0.003177642822265625, 0.0164794921875, -0.031890869140625, -0.01084136962890625, -0.02386474609375, -0.00521087646484375, -0.0501708984375, -0.01727294921875, 0.0113677978515625, 0.02349853515625, 0.01629638671875, -0.034210205078125, -0.005157470703125, 0.040679931640625, 0.044342041015625, 0.0163726806640625, 0.0105743408203125, -0.01332855224609375, 0.00267791748046875, -0.03265380859375, 0.005702972412109375, -0.050537109375, -0.0169525146484375, -0.00504302978515625, 0.00698089599609375, 0.02581787109375, -0.0227813720703125, -0.0015411376953125, -0.01189422607421875, -0.01337432861328125, -0.1199951171875, -0.058990478515625, -0.0174560546875, -0.00719451904296875, -0.01708984375, -0.006755828857421875, -0.05340576171875, -0.09637451171875, 0.0075531005859375, -0.0156707763671875, -0.00920867919921875, 0.00937652587890625, 0.04339599609375, 0.0189666748046875, -0.00739288330078125, -0.017181396484375, -0.01025390625, 0.01995849609375, 0.0085906982421875, 0.03875732421875, 0.00904083251953125, -0.007843017578125, 0.03546142578125, -0.0168609619140625, 0.0038318634033203125, -0.04327392578125, 0.06683349609375, -0.004962921142578125, 0.022735595703125, -0.0013647079467773438, -0.02789306640625, 0.037811279296875, 0.013916015625, -0.0011539459228515625, -0.0352783203125, 0.0275421142578125, 0.056793212890625, -0.0258636474609375, 0.022857666015625, -0.0175628662109375, -0.01491546630859375, 0.0213470458984375, 0.02020263671875, 0.02734375, 0.0026569366455078125, 0.0110626220703125, -0.0021209716796875, -0.0202178955078125, 0.030670166015625, -0.00885009765625, 0.0262451171875, -0.03936767578125, 0.057403564453125, -0.022369384765625, 0.0011606216430664062, -0.0188446044921875, 0.0126953125, -0.045928955078125, -0.030517578125, -0.061553955078125, -0.01340484619140625, 0.0207061767578125, 0.01519775390625, 0.0498046875, 0.004852294921875, 0.03021240234375, 0.0474853515625, -0.0062713623046875, -0.0057830810546875, -0.01366424560546875, 0.045501708984375, -0.039154052734375, -0.034912109375, -0.0007662773132324219, -0.01088714599609375, -0.0029659271240234375, 0.051177978515625, -0.0127410888671875, 0.032440185546875, -0.01352691650390625, 0.078369140625, 0.08038330078125, -0.007732391357421875, -0.0018901824951171875, 0.044158935546875, -0.036468505859375, -0.006443023681640625, -0.042999267578125, -0.0162200927734375, -0.0258941650390625, 0.00861358642578125, -0.00910186767578125, 0.01202392578125, 0.027191162109375, 0.009857177734375, 0.0306396484375, -0.022796630859375, 0.031402587890625, 0.0268402099609375, -0.02911376953125, -0.01506805419921875, -0.0041046142578125, 0.01105499267578125, -0.013763427734375, -0.0030975341796875, 0.006908416748046875, 0.00792694091796875, 0.03765869140625, -0.012054443359375, 0.0070648193359375, 0.002956390380859375, -0.00799560546875, -0.050048828125, -0.02044677734375, 0.0014133453369140625, -0.0234222412109375, -0.0227203369140625, 0.005687713623046875, -0.0213165283203125, 0.029815673828125, -0.0241851806640625, 0.039581298828125, -0.0399169921875, -0.0006747245788574219, -0.0528564453125, 0.01502227783203125, 0.0216827392578125, 0.015777587890625, -0.040130615234375, -0.01812744140625, -0.0081024169921875, -0.03179931640625, -0.043487548828125, -0.013916015625, -0.05517578125, 0.022857666015625, -0.01788330078125, 0.0080108642578125, 0.013427734375, 0.0088043212890625, -0.002849578857421875, 0.00888824462890625, 0.002532958984375, 0.0114593505859375, -0.01215362548828125, 0.0128936767578125, 0.025787353515625, 0.02008056640625, 0.00803375244140625, 0.00502777099609375, 0.0094757080078125, -0.02880859375, 0.0038013458251953125, -0.048828125, -0.026153564453125, 0.00794219970703125, -0.05718994140625, 0.00567626953125, 0.02838134765625, -0.01079559326171875, 0.015380859375, -0.002872467041015625, -0.006160736083984375, -0.0152435302734375, -0.0193634033203125, 0.00540924072265625, 0.0343017578125, -0.001712799072265625, -0.04345703125, -0.029388427734375, 0.0265045166015625, 0.0034942626953125, 0.0226898193359375, -0.0160980224609375, -0.00928497314453125, 0.0087127685546875, -0.056915283203125, 0.0557861328125, 0.056854248046875, 0.01236724853515625, 0.0323486328125, -0.006744384765625, -0.0085601806640625, -0.0106201171875, -0.0278167724609375, 0.0011606216430664062, 0.0260772705078125, 0.032012939453125, -0.0175628662109375, 0.0076751708984375, 0.036163330078125, -0.009490966796875, -0.00888824462890625, 0.005115509033203125, 0.002445220947265625, -0.028411865234375, 0.0003039836883544922, -0.0209808349609375, 0.004669189453125, 0.03643798828125, 0.00502777099609375, 0.0070953369140625, 0.0032978057861328125, 0.03948974609375, -0.005771636962890625, -0.0007410049438476562, 0.0362548828125, 0.0012273788452148438, -0.00492095947265625, -0.016082763671875, 0.026031494140625, -0.0010080337524414062, -0.021759033203125, -0.0316162109375, 0.00986480712890625, -0.0345458984375, -0.0095977783203125, 0.0153045654296875, 0.006305694580078125, -0.005191802978515625, -0.054718017578125, 0.01082611083984375, -0.02105712890625, -0.010833740234375, 0.015045166015625, -0.03912353515625, 0.01287841796875, 0.03997802734375, -0.0260162353515625, 0.0139923095703125, 0.0256195068359375, -0.06695556640625, -0.03826904296875, -0.0260162353515625, 0.03076171875, 0.03851318359375, -0.0579833984375, 0.033294677734375, -0.036224365234375, -0.018035888671875, -0.01739501953125, -0.03631591796875, 0.08306884765625, -0.034454345703125, -0.0038127899169921875, 0.0197906494140625, 0.006076812744140625, -0.01032257080078125, 0.01617431640625, 0.01507568359375, -0.062042236328125, -0.05206298828125, 0.0038433074951171875, -0.06585693359375, 0.0052947998046875, 0.0136871337890625, -0.04315185546875, 0.1507568359375, -0.007251739501953125, 0.0196380615234375, -0.005542755126953125, 0.07366943359375, -0.0011892318725585938, 0.0657958984375, -0.04461669921875, 0.0115966796875, 0.035125732421875, 0.049163818359375, -0.04296875, -0.0179290771484375, 0.0068359375, 0.050567626953125, 0.0194854736328125, 0.01386260986328125, -0.0443115234375, -0.01158905029296875, 0.027099609375, 0.0496826171875, 0.0220794677734375, 0.033203125, -0.0281982421875, 0.043121337890625, 0.0293426513671875, -0.0640869140625, 0.008941650390625, 0.022491455078125, -0.0299224853515625, 0.0027256011962890625, -0.00333404541015625, -0.0102691650390625, -0.0311279296875, 0.029388427734375, -0.018646240234375, -0.0277252197265625, 0.01800537109375, -0.01348114013671875, 0.003833770751953125, 0.045806884765625, 0.06646728515625, -0.0660400390625, -0.01088714599609375, -0.036651611328125, 0.06488037109375, -0.00431060791015625, 0.043243408203125, 0.034942626953125, 0.00653839111328125, 0.060272216796875, 0.016998291015625, 0.0233154296875, 0.0166168212890625, 0.0108795166015625, 0.03143310546875, 0.0179290771484375, 0.0131988525390625, -0.0107421875, 0.00958251953125, 0.03448486328125, 0.04388427734375, -0.035003662109375, -0.043121337890625, 0.0010862350463867188, 0.0098114013671875, -0.0034961700439453125, -0.003208160400390625, 0.005603790283203125, 0.003200531005859375, 0.0281982421875, -0.07177734375, 0.0159759521484375, 0.0328369140625, 0.0276947021484375, -0.007732391357421875, 0.022979736328125, -0.043792724609375, -0.029815673828125, -0.0127716064453125, -0.041778564453125, 0.006072998046875, 0.06829833984375, 0.033294677734375, 0.025177001953125, -0.05120849609375, -0.0289764404296875, 0.0022373199462890625, -0.0056304931640625, 0.0146942138671875, -0.007381439208984375, -0.016693115234375, 0.008209228515625, -0.002895355224609375, 0.031707763671875, 0.032440185546875, -0.04071044921875, -0.013336181640625, -0.027557373046875, -0.0225677490234375, 0.005847930908203125, 0.0323486328125, -0.011474609375, -0.0250244140625, -0.0195465087890625, -0.01079559326171875, 0.01300811767578125, -0.00762939453125, 0.0216217041015625, 0.0189056396484375, 0.005970001220703125, 0.0233306884765625, -0.0136566162109375, 0.01329803466796875, 0.00385284423828125, 0.006969451904296875, 0.0231170654296875, 0.0004684925079345703, 0.049591064453125, -0.057464599609375, -0.016204833984375, -0.045684814453125, -0.05389404296875, 0.041046142578125, 0.04669189453125, -0.004581451416015625, -0.0009641647338867188, -0.004230499267578125, 0.0032253265380859375, 0.006114959716796875, -0.0253448486328125, 0.0179290771484375, 0.03521728515625, 0.0061798095703125, 0.030242919921875, -0.016510009765625, -0.0252227783203125, -0.00513458251953125, 0.052642822265625, 0.030059814453125, -0.0017366409301757812, 0.011688232421875, 0.03955078125, 0.00647735595703125, -0.0088958740234375, 0.01325225830078125, 0.0021533966064453125, 0.0225677490234375, -0.00930023193359375, -0.0014514923095703125, -0.01329803466796875, -0.00748443603515625, -0.05059814453125, 0.0672607421875, -0.07098388671875, -0.02703857421875, -0.041015625, 0.042266845703125, -0.0360107421875, -0.01026153564453125, -0.038421630859375, 0.0012922286987304688, -0.00881195068359375, -0.0268096923828125, 0.0302886962890625, -0.029998779296875, -0.03131103515625, 0.042724609375, 0.02471923828125, 0.016082763671875, 0.02191162109375, -0.006420135498046875, 0.033660888671875, 0.0287933349609375, -0.033111572265625, 0.01971435546875, 0.026763916015625, -0.01416015625, -0.0006508827209472656, 0.031524658203125, -0.01251220703125, 0.01544189453125, 0.01873779296875, 0.0043487548828125, -0.00128173828125, 0.01483917236328125, -0.0298614501953125, -0.00392913818359375, 0.03387451171875, -0.006317138671875, 0.005359649658203125, 0.00681304931640625, -0.01490020751953125, -0.01497650146484375, -0.01549530029296875, -0.005039215087890625, 0.0111541748046875, -0.0460205078125, -0.01702880859375, -0.006561279296875, 0.039825439453125, -0.0247955322265625, -0.039703369140625, 0.039093017578125, -0.062408447265625, 0.0242767333984375, -0.0235137939453125, -0.055084228515625, 0.0267181396484375, 0.0755615234375, 0.01354217529296875, -0.015472412109375, -0.0234222412109375, -0.0167236328125, -0.0265960693359375, -0.0277252197265625, -0.00542449951171875, -0.006046295166015625, -0.0169219970703125, -0.034454345703125, -0.031707763671875, -0.007465362548828125, 0.02593994140625, -0.008056640625, 0.0285797119140625, 0.00922393798828125, -0.01006317138671875, -0.0704345703125, 0.01309967041015625, -0.08990478515625, 0.01873779296875, 0.030242919921875, -0.01396942138671875, 0.01220703125, -0.0198211669921875, -0.0361328125, 0.051116943359375, 0.0069732666015625, -0.0238037109375, -0.05523681640625, 0.0489501953125, 0.01280975341796875, -0.01427459716796875, -0.00815582275390625, -0.00457000732421875, -0.02496337890625, -0.01424407958984375, -0.00836944580078125, 0.0241546630859375, 0.032806396484375, -0.01146697998046875, -0.0258636474609375, -0.0052032470703125, -0.0021915435791015625, -0.0067138671875, -0.034942626953125, 0.0262298583984375, -0.0170745849609375, -0.01406097412109375, -0.047882080078125, -0.002849578857421875, -0.0037555694580078125, 0.0555419921875, 0.006084442138671875, -0.02984619140625, -0.08349609375, -0.043060302734375, 0.1016845703125, 0.0682373046875, 0.037933349609375, -0.034271240234375, 0.01239776611328125, -0.0003514289855957031, -0.00887298583984375, -0.01959228515625, -0.004581451416015625, -0.04229736328125, -0.036224365234375, -0.0182952880859375, -0.019195556640625, -0.0018396377563476562, -0.0394287109375, -0.05633544921875, -0.006443023681640625, -0.059295654296875, 0.00872039794921875, -0.0108489990234375, 0.0186004638671875, -0.0058441162109375, -0.026763916015625, -0.0450439453125, 0.01165008544921875, -0.017120361328125, -0.042724609375, 0.01100921630859375, -0.037506103515625, -0.0321044921875, -0.007843017578125, 0.026458740234375, -0.02587890625, 0.053314208984375, -0.023834228515625, -0.004673004150390625, -0.012420654296875, -0.0041046142578125, 0.01157379150390625, -0.01515960693359375, 0.006122589111328125, -0.00527191162109375, -0.019775390625, 0.0400390625, -0.007129669189453125, 0.034820556640625, -0.01049041748046875, 0.00855255126953125, 0.00907135009765625, 0.00012040138244628906, 0.021759033203125, 0.0013370513916015625, -0.0205230712890625, 0.005069732666015625, -0.058135986328125, -0.06866455078125, 0.0250091552734375, -0.045745849609375, -0.00875091552734375, 0.02362060546875 ]
43771bff9eafd7485b7d38f6f2d1f90a959e45a7
Wordpress Stackexchange Q: redirect wp-login.php to another page I would like to redirect this page wp-login.php to /login page. So when a user clicks on a link like this <a href="/wp-login.php">login</a>, wordpress will redirect him to /register . I found this function and modified it : add_action('init','custom_login'); function custom_login(){ global $pagenow; if (( 'wp-login.php' == $pagenow ) && (!is_user_logged_in())) { wp_redirect('/login'); exit(); } I am not good with wordpress coding. The redirection works fine, but the authentication seems to be broken. When I enter my login/pass, the same page (/login) reloads without being authenticated. Any suggestion to fix the function for redirection ? A: If you're only concerned about login links displayed on your pages, you should be able to modify the URL by hooking the login_url filter. This won't redirect a user that types http://MYSITE/wp-login.php directly into their browser, but it should affect the login links displayed throughout your site. This is the example code from the login_url Codex page: add_filter( 'login_url', 'my_login_page', 10, 2 ); function my_login_page( $login_url, $redirect ) { return home_url( '/my-login-page/?redirect_to=' . $redirect ); }
Q: redirect wp-login.php to another page I would like to redirect this page wp-login.php to /login page. So when a user clicks on a link like this <a href="/wp-login.php">login</a>, wordpress will redirect him to /register . I found this function and modified it : add_action('init','custom_login'); function custom_login(){ global $pagenow; if (( 'wp-login.php' == $pagenow ) && (!is_user_logged_in())) { wp_redirect('/login'); exit(); } I am not good with wordpress coding. The redirection works fine, but the authentication seems to be broken. When I enter my login/pass, the same page (/login) reloads without being authenticated. Any suggestion to fix the function for redirection ? A: If you're only concerned about login links displayed on your pages, you should be able to modify the URL by hooking the login_url filter. This won't redirect a user that types http://MYSITE/wp-login.php directly into their browser, but it should affect the login links displayed throughout your site. This is the example code from the login_url Codex page: add_filter( 'login_url', 'my_login_page', 10, 2 ); function my_login_page( $login_url, $redirect ) { return home_url( '/my-login-page/?redirect_to=' . $redirect ); } A: 1. Modify your .htaccess file – add this line after index.php rewrite rule: RewriteRule ^index\.php$ – [L]<br /> RewriteRule ^yoursecretpath$ wp-login.php [L,NC,QSA] where yoursecretpath is your path to admin panel. 2. Modify login_header function in wp-login.php file – add this code just before line 59 (where HTML doc type tag starts, so to prevent headers sending error): <?php $uri = $_SERVER['REQUEST_URI']; if(stripos($uri, ‘wp-login’) or stripos($uri, ‘wp-admin’) && !stripos($GLOBALS["HTTP_COOKIE"], ‘wordpress_logged_in’)) { header("Location: ".get_site_url().'/yoursecretpath' ); exit(); } ?> A: I actually already have an open source plugin that does this already: https://github.com/tripflex/wp-login-flow It was created to require users to verify their emails but you can disable that feature and just use the rewrite feature which is functional in the latest version on WordPress repo (1.0.0). You can look at the code to see how I handle the rewrites: https://github.com/tripflex/wp-login-flow/blob/master/classes/rewrite.php#L312 I'm actually working on this now to have some major updates and patches, but for now 1.0.0 works perfectly fine for rewrites. Enjoy :) A: If you will create a custom login page on your address /login, then create a rewrite: function restrict_admin() { if ( ! current_user_can( 'manage_options' ) && '/wp-admin/admin-ajax.php' != $_SERVER['PHP_SELF'] ) { wp_redirect( site_url() ); } } add_action( 'admin_init', 'restrict_admin', 1 ); This code will check if the user is an administrator and if they are not WordPress will redirect them back to the website home page. Create also a side template for your custom login and use the login defaults of WordPress inside the template: $args = array( 'redirect' => site_url( $_SERVER['REQUEST_URI'] ) ); wp_login_form( $args ); You can also change the redirect adress for the login page. But is also useful, that you check on login errors and maybe you add code for right redirect after failed login. For this jobs use the hook wp_login_failed and authenticate.
wordpress
{ "language": "en", "length": 479, "provenance": "stackexchange_00019.jsonl.gz:440886", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/128838" }
[ 0.07440185546875, 0.01580810546875, 0.026824951171875, -0.00799560546875, 0.0312042236328125, -0.045166015625, 0.08197021484375, -0.04742431640625, -0.03851318359375, 0.0204010009765625, 0.03240966796875, -0.01384735107421875, -0.0380859375, -0.05035400390625, 0.029144287109375, -0.03826904296875, 0.014617919921875, 0.01209259033203125, 0.0400390625, -0.01378631591796875, 0.00841522216796875, 0.0058441162109375, 0.03472900390625, 0.00787353515625, 0.01036834716796875, -0.01316070556640625, 0.09124755859375, -0.053558349609375, 0.0330810546875, -0.005931854248046875, 0.016571044921875, -0.0369873046875, 0.03094482421875, 0.03778076171875, -0.0460205078125, -0.055877685546875, -0.00811767578125, 0.0129852294921875, -0.0194244384765625, 0.02197265625, 0.03515625, -0.02459716796875, -0.0011453628540039062, -0.0254364013671875, -0.00998687744140625, -0.031524658203125, 0.0465087890625, -0.0147705078125, -0.0020160675048828125, -0.01462554931640625, 0.011962890625, 0.031890869140625, 0.0291595458984375, -0.01160430908203125, -0.00395965576171875, 0.01448822021484375, -0.02081298828125, 0.0075836181640625, 0.023681640625, 0.00997161865234375, -0.004817962646484375, -0.0130615234375, 0.01264190673828125, -0.017730712890625, -0.0238189697265625, -0.002323150634765625, -0.039703369140625, 0.006591796875, -0.0157928466796875, -0.03765869140625, -0.01238250732421875, -0.0208282470703125, -0.0248870849609375, -0.00777435302734375, -0.028289794921875, 0.00859832763671875, 0.01142120361328125, -0.02105712890625, 0.01287078857421875, 0.0282135009765625, -0.009552001953125, -0.0189971923828125, -0.02288818359375, -0.017486572265625, 0.005161285400390625, 0.005573272705078125, -0.02978515625, -0.01558685302734375, -0.012908935546875, -0.0096435546875, -0.01367950439453125, 0.00678253173828125, -0.02166748046875, -0.00652313232421875, -0.01068878173828125, -0.0254364013671875, -0.001800537109375, 0.003330230712890625, 0.0210723876953125, 0.011566162109375, 0.01212310791015625, -0.050567626953125, 0.034637451171875, -0.0262603759765625, -0.00445556640625, 0.06671142578125, 0.042236328125, 0.041900634765625, -0.01125335693359375, -0.00807952880859375, 0.014678955078125, -0.02398681640625, -0.059173583984375, -0.035980224609375, -0.00803375244140625, 0.049530029296875, -0.0496826171875, -0.0300445556640625, -0.007183074951171875, 0.0034942626953125, -0.036224365234375, -0.0179595947265625, 0.044403076171875, -0.0137939453125, 0.0043182373046875, -0.0239715576171875, -0.0170135498046875, -0.027435302734375, 0.0157470703125, 0.01568603515625, -0.037872314453125, 0.01520538330078125, 0.053497314453125, 0.0019273757934570312, -0.00044226646423339844, -0.0184173583984375, 0.06689453125, -0.0272216796875, -0.005672454833984375, 0.02960205078125, 0.00839996337890625, -0.0298004150390625, -0.03619384765625, -0.006443023681640625, 0.0408935546875, 0.0382080078125, 0.01837158203125, 0.0147705078125, -0.00438690185546875, -0.0199127197265625, 0.03387451171875, -0.0307464599609375, -0.00908660888671875, 0.01169586181640625, 0.0679931640625, 0.00867462158203125, 0.0246124267578125, -0.002429962158203125, 0.006084442138671875, 0.02825927734375, 0.046112060546875, 0.005718231201171875, -0.008453369140625, -0.00963592529296875, -0.047760009765625, -0.0181732177734375, -0.048553466796875, -0.0258941650390625, 0.02056884765625, 0.0167694091796875, 0.0147552490234375, -0.0250091552734375, -0.01788330078125, 0.025177001953125, 0.0085906982421875, 0.0200042724609375, -0.025177001953125, 0.050537109375, 0.019744873046875, 0.0504150390625, 0.03948974609375, -0.011016845703125, 0.05987548828125, 0.019622802734375, -0.045501708984375, 0.044921875, 0.0115203857421875, 0.047119140625, -0.0110626220703125, 0.0183258056640625, 0.0163421630859375, 0.042327880859375, -0.064453125, 0.01885986328125, -0.0379638671875, -0.0213775634765625, 0.026123046875, -0.00460052490234375, -0.01441192626953125, 0.0537109375, 0.0487060546875, 0.01253509521484375, 0.00370025634765625, -0.0003650188446044922, -0.0202484130859375, 0.01456451416015625, -0.0199737548828125, 0.0237274169921875, 0.00882720947265625, 0.0189208984375, 0.0012006759643554688, 0.0011301040649414062, 0.007373809814453125, -0.055328369140625, -0.03363037109375, 0.022491455078125, -0.01189422607421875, 0.03961181640625, -0.01458740234375, 0.0211639404296875, -0.0068817138671875, -0.043212890625, -0.021575927734375, -0.01800537109375, 0.03033447265625, -0.03338623046875, -0.021484375, -0.039825439453125, -0.02838134765625, -0.021759033203125, -0.048736572265625, 0.083251953125, 0.0287628173828125, 0.01352691650390625, -0.062347412109375, -0.00930023193359375, -0.01218414306640625, -0.00460052490234375, -0.0032215118408203125, 0.040771484375, 0.043121337890625, 0.02691650390625, -0.02392578125, -0.0006995201110839844, 0.0252838134765625, -0.06689453125, 0.002323150634765625, 0.0006089210510253906, 0.0262603759765625, 0.045654296875, -0.0133209228515625, -0.0148773193359375, 0.0194091796875, -0.0267791748046875, -0.0143280029296875, 0.037506103515625, -0.0061798095703125, -0.01108551025390625, -0.0211639404296875, 0.01032257080078125, -0.0030498504638671875, -0.0665283203125, -0.03863525390625, -0.0160369873046875, -0.02850341796875, -0.034088134765625, -0.03271484375, -0.04534912109375, -0.0191192626953125, -0.03759765625, 0.046478271484375, -0.027191162109375, -0.00226593017578125, 0.005706787109375, 0.0213623046875, -0.061187744140625, -0.04400634765625, 0.01503753662109375, 0.01114654541015625, -0.0210418701171875, -0.01119232177734375, 0.019012451171875, -0.0302276611328125, -0.022308349609375, 0.018463134765625, -0.035552978515625, -0.00923919677734375, 0.0080108642578125, 0.049652099609375, -0.0126800537109375, 0.0280609130859375, -0.0085296630859375, -0.0244598388671875, 0.04913330078125, 0.0115966796875, -0.05950927734375, 0.0200958251953125, -0.040313720703125, 0.052398681640625, -0.038787841796875, 0.037506103515625, 0.06280517578125, -0.0267486572265625, 0.05340576171875, 0.0084991455078125, -0.0014448165893554688, 0.0179595947265625, -0.00878143310546875, -0.0074615478515625, -0.01320648193359375, -0.0282745361328125, 0.0207977294921875, 0.020843505859375, 0.0085906982421875, 0.0096282958984375, -0.038604736328125, -0.00893402099609375, -0.002391815185546875, -0.06683349609375, -0.055267333984375, -0.076904296875, -0.0753173828125, 0.03179931640625, 0.0025081634521484375, -0.01904296875, 0.0202178955078125, 0.041900634765625, 0.039886474609375, 0.0115966796875, -0.01013946533203125, -0.039337158203125, -0.0283966064453125, -0.048431396484375, 0.0274200439453125, -0.0005774497985839844, 0.005889892578125, 0.01116180419921875, 0.01335906982421875, 0.004245758056640625, -0.0156097412109375, 0.02166748046875, 0.053131103515625, -0.00389862060546875, -0.0343017578125, -0.037811279296875, -0.0193023681640625, 0.02301025390625, -0.0185699462890625, 0.060516357421875, -0.0143890380859375, 0.0352783203125, -0.0012445449829101562, 0.0017404556274414062, -0.02703857421875, 0.01490020751953125, -0.0201416015625, -0.0207672119140625, -0.034423828125, -0.00942230224609375, -0.063720703125, 0.0206451416015625, -0.007495880126953125, -0.03045654296875, 0.01556396484375, 0.041595458984375, -0.038604736328125, 0.0174407958984375, -0.0478515625, -0.0016908645629882812, 0.00872039794921875, 0.0006914138793945312, -0.0117950439453125, 0.034271240234375, -0.0063629150390625, -0.0030651092529296875, -0.0185394287109375, 0.0293121337890625, -0.015777587890625, -0.01233673095703125, 0.01178741455078125, 0.0038604736328125, 0.0028896331787109375, -0.019012451171875, -0.039459228515625, -0.0640869140625, 0.047882080078125, 0.0024509429931640625, -0.0165863037109375, -0.0101318359375, -0.0246734619140625, 0.0173492431640625, 0.09478759765625, -0.023956298828125, -0.0005283355712890625, 0.023162841796875, 0.0164794921875, 0.0051422119140625, -0.01953125, -0.05816650390625, -0.0242919921875, -0.094482421875, -0.007251739501953125, -0.01947021484375, -0.018524169921875, 0.00582122802734375, -0.006870269775390625, -0.0278167724609375, -0.0516357421875, 0.016082763671875, 0.056854248046875, 0.0177001953125, 0.015655517578125, -0.023529052734375, 0.026153564453125, 0.01004791259765625, -0.006702423095703125, -0.04083251953125, -0.005397796630859375, -0.0115203857421875, 0.056732177734375, 0.0435791015625, -0.03375244140625, -0.0123291015625, 0.0301971435546875, 0.0374755859375, 0.005275726318359375, 0.0099639892578125, -0.03131103515625, 0.0220947265625, 0.0003876686096191406, 0.00096893310546875, -0.005733489990234375, 0.008331298828125, -0.00928497314453125, -0.039276123046875, -0.0007987022399902344, -0.042694091796875, -0.004344940185546875, 0.014801025390625, -0.019927978515625, -0.05352783203125, -0.0284423828125, -0.01265716552734375, -0.0014734268188476562, 0.005130767822265625, -0.0241241455078125, -0.0217742919921875, -0.052764892578125, 0.0316162109375, -0.01276397705078125, -0.02410888671875, 0.00055694580078125, 0.04736328125, 0.02569580078125, -0.01763916015625, 0.0159149169921875, 0.0283203125, 0.007122039794921875, 0.006195068359375, 0.06268310546875, -0.01947021484375, 0.006511688232421875, 0.0733642578125, -0.031707763671875, 0.01464080810546875, -0.023834228515625, 0.057708740234375, -0.0118865966796875, -0.036468505859375, 0.039703369140625, -0.034393310546875, -0.0164337158203125, 0.025787353515625, -0.0003285408020019531, -0.01515960693359375, 0.027252197265625, 0.0203399658203125, -0.0265655517578125, 0.0107269287109375, -0.004184722900390625, -0.0321044921875, 0.0128326416015625, 0.0091705322265625, 0.0212860107421875, 0.038909912109375, -0.0206756591796875, 0.0206451416015625, 0.001617431640625, 0.0007500648498535156, 0.0169677734375, -0.01702880859375, -0.008056640625, 0.0211944580078125, -0.0022487640380859375, -0.013824462890625, 0.016815185546875, -0.02105712890625, 0.09893798828125, 0.0230712890625, -0.035369873046875, 0.04083251953125, -0.048858642578125, -0.0215606689453125, 0.01241302490234375, 0.00606536865234375, 0.046417236328125, -0.0031681060791015625, -0.04364013671875, -0.01229095458984375, -0.005397796630859375, -0.03839111328125, -0.06695556640625, 0.0167694091796875, -0.0168609619140625, 0.00698089599609375, 0.0253143310546875, 0.051116943359375, -0.0013580322265625, 0.038665771484375, -0.0136871337890625, 0.0117950439453125, 0.042572021484375, 0.0282440185546875, 0.0160064697265625, 0.00952911376953125, -0.0161590576171875, 0.01479339599609375, 0.0199737548828125, -0.0285186767578125, -0.037506103515625, 0.0198516845703125, 0.061553955078125, 0.004505157470703125, 0.01372528076171875, -0.01032257080078125, -0.0156097412109375, 0.0024566650390625, 0.04931640625, -0.01629638671875, -0.0894775390625, -0.027130126953125, 0.007335662841796875, 0.034912109375, -0.05157470703125, -0.0246429443359375, -0.0010862350463867188, -0.04901123046875, 0.00475311279296875, 0.00945281982421875, -0.0214080810546875, -0.007305145263671875, -0.02008056640625, -0.026123046875, -0.037078857421875, -0.03314208984375, -0.01024627685546875, 0.020965576171875, -0.0229339599609375, -0.020477294921875, 0.01445770263671875, -0.0274200439453125, 0.00937652587890625, -0.017425537109375, 0.0013208389282226562, 0.00199127197265625, -0.01471710205078125, 0.08111572265625, 0.01910400390625, -0.06884765625, 0.0022830963134765625, -0.01580810546875, -0.00806427001953125, -0.0024871826171875, -0.00557708740234375, -0.043731689453125, -0.01332855224609375, 0.0185699462890625, 0.02142333984375, 0.0247802734375, -0.00010025501251220703, -0.04876708984375, -0.0175628662109375, 0.0093231201171875, -0.01197052001953125, 0.007965087890625, 0.06463623046875, -0.0304412841796875, 0.034423828125, 0.017974853515625, 0.057098388671875, -0.0080718994140625, -0.0242156982421875, 0.0238800048828125, -0.0075531005859375, -0.02215576171875, -0.046661376953125, 0.0015630722045898438, -0.00006908178329467773, 0.050201416015625, -0.019012451171875, -0.0226287841796875, -0.0014295578002929688, -0.0102691650390625, -0.02587890625, 0.0309906005859375, 0.041748046875, 0.009521484375, 0.006389617919921875, 0.0226593017578125, 0.0283203125, 0.004283905029296875, 0.00592041015625, -0.014190673828125, 0.016326904296875, 0.0200958251953125, -0.03826904296875, -0.07470703125, 0.042388916015625, 0.0794677734375, 0.030303955078125, 0.0533447265625, -0.0018787384033203125, 0.0195770263671875, 0.053436279296875, -0.0277557373046875, 0.0118560791015625, 0.036163330078125, 0.0726318359375, -0.0092315673828125, -0.01473236083984375, 0.0557861328125, -0.028350830078125, -0.0015239715576171875, 0.0909423828125, 0.056549072265625, -0.142822265625, 0.01031494140625, 0.00441741943359375, 0.03814697265625, 0.046417236328125, 0.019012451171875, -0.0052337646484375, 0.044525146484375, -0.0021533966064453125, -0.041961669921875, -0.0264129638671875, 0.0173797607421875, 0.0311431884765625, -0.0049896240234375, 0.0008916854858398438, 0.024444580078125, 0.00879669189453125, -0.07928466796875, 0.0025691986083984375, 0.04901123046875, -0.0256805419921875, -0.01502227783203125, -0.00597381591796875, 0.0220947265625, -0.02362060546875, -0.0555419921875, 0.026947021484375, -0.0275726318359375, -0.00505828857421875, 0.037078857421875, -0.0014486312866210938, 0.06689453125, 0.04248046875, 0.01065826416015625, 0.0202484130859375, -0.00739288330078125, 0.0002994537353515625, 0.046966552734375, -0.0241851806640625, -0.0190582275390625, -0.0210723876953125, -0.047698974609375, -0.004756927490234375, -0.0183258056640625, -0.004856109619140625, -0.0201263427734375, -0.0225677490234375, 0.08819580078125, -0.000499725341796875, -0.0287933349609375, 0.005615234375, 0.006587982177734375, 0.00041294097900390625, -0.019500732421875, 0.048614501953125, -0.06085205078125, -0.04571533203125, -0.008026123046875, -0.064453125, -0.00901031494140625, -0.049957275390625, -0.039886474609375, 0.092041015625, -0.02099609375, 0.0267333984375, 0.0039520263671875, 0.04388427734375, -0.01152801513671875, 0.036346435546875, -0.0285797119140625, 0.06390380859375, 0.0478515625, 0.0245513916015625, 0.0044097900390625, 0.00533294677734375, 0.031890869140625, 0.0020236968994140625, 0.045013427734375, 0.0178070068359375, -0.04718017578125, -0.016937255859375, 0.02288818359375, 0.027435302734375, 0.00675201416015625, 0.037689208984375, -0.0048828125, 0.009674072265625, 0.035491943359375, -0.05047607421875, 0.004199981689453125, 0.007625579833984375, -0.0141143798828125, 0.00252532958984375, -0.0035457611083984375, -0.0404052734375, -0.028717041015625, 0.0118865966796875, -0.1143798828125, 0.0175323486328125, 0.047332763671875, 0.052764892578125, 0.00553131103515625, 0.0009121894836425781, -0.01021575927734375, -0.0148468017578125, 0.0259246826171875, -0.0309600830078125, 0.015472412109375, -0.0255584716796875, 0.00508880615234375, 0.0282135009765625, 0.022979736328125, 0.0218353271484375, -0.031036376953125, 0.00267791748046875, 0.01085662841796875, -0.0168609619140625, 0.0831298828125, 0.04486083984375, 0.0277099609375, -0.0262451171875, 0.00885009765625, 0.02032470703125, 0.08575439453125, -0.060455322265625, -0.0171356201171875, 0.010986328125, 0.01291656494140625, 0.0270538330078125, -0.00234222412109375, 0.062744140625, -0.04998779296875, -0.0285186767578125, -0.0081024169921875, 0.00394439697265625, 0.040130615234375, -0.020721435546875, 0.007137298583984375, 0.00403594970703125, -0.01270294189453125, 0.040679931640625, 0.00078582763671875, -0.00928497314453125, 0.012847900390625, 0.00643157958984375, -0.020477294921875, 0.0259246826171875, 0.026275634765625, 0.01201629638671875, -0.01119232177734375, 0.04443359375, -0.00908660888671875, 0.01210784912109375, -0.0511474609375, -0.058990478515625, -0.0003571510314941406, 0.054046630859375, 0.007808685302734375, -0.0091094970703125, -0.002635955810546875, 0.00007170438766479492, -0.01261138916015625, -0.0118408203125, 0.0236053466796875, -0.0230255126953125, 0.0296173095703125, -0.026641845703125, -0.0012407302856445312, -0.00559234619140625, -0.0199737548828125, -0.01259613037109375, -0.006542205810546875, 0.030975341796875, -0.0021495819091796875, 0.04486083984375, -0.00807952880859375, -0.0215606689453125, -0.016845703125, -0.028289794921875, 0.07171630859375, 0.013702392578125, -0.07525634765625, -0.01580810546875, -0.033172607421875, -0.04229736328125, 0.048828125, 0.051849365234375, 0.00518035888671875, -0.01047515869140625, -0.0001856088638305664, 0.00852203369140625, 0.0264434814453125, -0.036468505859375, -0.005001068115234375, -0.03656005859375, 0.0158843994140625, -0.018646240234375, -0.07379150390625, -0.009918212890625, -0.02581787109375, -0.008453369140625, -0.0050048828125, 0.0909423828125, -0.0085296630859375, 0.006328582763671875, -0.01430511474609375, 0.00498199462890625, -0.03021240234375, -0.01267242431640625, 0.017547607421875, -0.006450653076171875, -0.01351165771484375, -0.00469207763671875, -0.0599365234375, 0.07452392578125, -0.014923095703125, 0.022003173828125, 0.06597900390625, -0.0203704833984375, -0.009368896484375, -0.0029392242431640625, 0.0010395050048828125, -0.02911376953125, -0.045684814453125, -0.0240020751953125, 0.0161590576171875, 0.008636474609375, 0.026458740234375, -0.0074310302734375, 0.049835205078125, -0.0281219482421875, -0.0232696533203125, 0.0074462890625, -0.061431884765625, -0.003704071044921875, 0.030975341796875, -0.0024852752685546875, 0.007171630859375, -0.0027980804443359375, -0.01361083984375, -0.0074310302734375, 0.01467132568359375, -0.0289306640625, 0.006450653076171875, -0.0146484375, -0.016510009765625, 0.037841796875, 0.0244140625, 0.006618499755859375, 0.01342010498046875, 0.0164337158203125, -0.04766845703125, 0.016693115234375, -0.0645751953125, -0.042633056640625, -0.033966064453125, -0.00803375244140625, 0.0095672607421875, 0.0011281967163085938, -0.0784912109375, -0.03033447265625, 0.0241851806640625, 0.0013532638549804688, -0.01806640625, -0.046173095703125, 0.00879669189453125, -0.0369873046875, 0.07330322265625, -0.058319091796875, 0.002559661865234375, 0.01395416259765625, 0.04388427734375, -0.036529541015625, 0.01544189453125, -0.037017822265625, -0.02545166015625, -0.030517578125, -0.0211181640625, 0.035736083984375, -0.0003771781921386719, -0.01309967041015625, -0.049560546875, -0.0400390625, 0.003932952880859375, -0.051422119140625, -0.02069091796875, 0.004169464111328125, 0.0011053085327148438, 0.010772705078125, -0.007114410400390625, -0.00246429443359375, 0.02191162109375, -0.01102447509765625, 0.0252532958984375, -0.028656005859375, -0.017822265625, -0.055450439453125, -0.085693359375, 0.035888671875, 0.001617431640625, -0.035980224609375, -0.036865234375, 0.048095703125, 0.002819061279296875, -0.0227203369140625, -0.005619049072265625, -0.037445068359375, 0.000060439109802246094, 0.00136566162109375, 0.0203399658203125, 0.0270843505859375, 0.004520416259765625, 0.0482177734375, -0.025360107421875, 0.039337158203125, 0.020172119140625, -0.00942230224609375, -0.0229644775390625, 0.005062103271484375, 0.0272216796875, 0.039520263671875, 0.007328033447265625, 0.014862060546875, 0.0245208740234375, -0.0238189697265625, 0.007396697998046875, -0.02239990234375, 0.01502227783203125, -0.03033447265625, -0.0163116455078125, -0.0162353515625, -0.0121002197265625, 0.0208587646484375, -0.049163818359375, -0.0179290771484375, 0.01226806640625, -0.0201263427734375, 0.0005617141723632812, -0.0673828125, -0.0285491943359375, -0.0033054351806640625, -0.00849151611328125, -0.0177459716796875, 0.017822265625, -0.0297393798828125, 0.001491546630859375, 0.040283203125, 0.003154754638671875, -0.01172637939453125, -0.00444793701171875, 0.08392333984375, -0.05328369140625, 0.0062255859375, -0.002773284912109375, 0.0258026123046875, 0.0244598388671875, -0.0281524658203125, 0.04034423828125, 0.042022705078125, -0.0306396484375, -0.0214385986328125, 0.0286865234375, -0.0098876953125, -0.004039764404296875, -0.0498046875, -0.02227783203125, 0.0282440185546875, -0.01021575927734375, 0.02886962890625, 0.0216217041015625, 0.0032558441162109375, 0.00887298583984375, 0.0526123046875, 0.00911712646484375, 0.007633209228515625, -0.0146331787109375, 0.02716064453125, -0.01180267333984375, -0.0229034423828125, -0.0006899833679199219, -0.0200042724609375, 0.0103302001953125, 0.0009002685546875, 0.041229248046875, -0.0181884765625, 0.01934814453125, -0.0169830322265625, 0.007610321044921875, 0.0180816650390625 ]
453de97079c13d62d63a45b419b0ea3c8ae3ad0c
Wordpress Stackexchange Q: How to create Image gallery Metabox in wordpress I want to create a metabox like woocommerce product gallery. I search on google find out related tutorial, plugin, example but unfortunately i don't get anything. So please, anyone can help me. solved this problem. Thanks A: I personally like Advanced custom Fields for Meta Fields They have a "premium" gallery plugin, that for small amount of money, is very useful and works well Another option is the free attachments plugin , Have a read through the documentation and you will see how to create a custom instance of attachemnts that you can use as a gallery.
Q: How to create Image gallery Metabox in wordpress I want to create a metabox like woocommerce product gallery. I search on google find out related tutorial, plugin, example but unfortunately i don't get anything. So please, anyone can help me. solved this problem. Thanks A: I personally like Advanced custom Fields for Meta Fields They have a "premium" gallery plugin, that for small amount of money, is very useful and works well Another option is the free attachments plugin , Have a read through the documentation and you will see how to create a custom instance of attachemnts that you can use as a gallery.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:440959", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129098" }
[ 0.033477783203125, -0.005645751953125, 0.020050048828125, -0.0252227783203125, -0.007564544677734375, 0.0088043212890625, 0.01451873779296875, -0.033050537109375, 0.005817413330078125, 0.0247344970703125, -0.0157470703125, -0.004261016845703125, -0.0288848876953125, -0.019134521484375, -0.0377197265625, -0.03802490234375, 0.020721435546875, 0.0235137939453125, 0.0513916015625, 0.005279541015625, 0.00337982177734375, 0.01413726806640625, 0.033843994140625, 0.01039886474609375, 0.0428466796875, -0.0220794677734375, 0.052947998046875, -0.0047149658203125, 0.04803466796875, 0.004070281982421875, 0.03973388671875, -0.040313720703125, 0.01001739501953125, -0.006374359130859375, 0.020782470703125, 0.021270751953125, -0.0094146728515625, 0.0095367431640625, 0.02581787109375, -0.005237579345703125, 0.019317626953125, -0.0160064697265625, 0.0002613067626953125, -0.001972198486328125, -0.00872039794921875, -0.01110076904296875, -0.01061248779296875, -0.0704345703125, 0.04046630859375, -0.0196075439453125, 0.004489898681640625, 0.0206298828125, 0.01556396484375, -0.0301055908203125, -0.03216552734375, -0.044769287109375, -0.00733184814453125, -0.0145721435546875, 0.039306640625, -0.045806884765625, -0.0270538330078125, -0.036529541015625, 0.04522705078125, 0.030426025390625, 0.01311492919921875, -0.00691986083984375, -0.06854248046875, 0.032135009765625, -0.0162506103515625, 0.01177215576171875, 0.01824951171875, -0.046173095703125, 0.01678466796875, -0.0189056396484375, -0.025177001953125, -0.01116943359375, 0.0047760009765625, -0.018096923828125, 0.0242767333984375, -0.020233154296875, 0.02215576171875, 0.01558685302734375, 0.010009765625, -0.036041259765625, 0.0115966796875, -0.0270233154296875, -0.0173492431640625, -0.008056640625, -0.002857208251953125, -0.054107666015625, 0.0026073455810546875, -0.085693359375, -0.056793212890625, 0.033203125, 0.0125885009765625, -0.04595947265625, -0.0016222000122070312, -0.034332275390625, 0.0075531005859375, 0.017181396484375, 0.01971435546875, -0.04034423828125, 0.041778564453125, -0.0036449432373046875, 0.0008220672607421875, -0.0013475418090820312, -0.01136016845703125, -0.01421356201171875, 0.021270751953125, 0.0345458984375, -0.035430908203125, 0.011962890625, 0.003520965576171875, -0.023284912109375, 0.0039520263671875, 0.011077880859375, -0.00804901123046875, 0.034423828125, 0.0004248619079589844, 0.01270294189453125, 0.00365447998046875, 0.0016775131225585938, 0.0819091796875, -0.01198577880859375, -0.0023784637451171875, 0.0182037353515625, -0.0340576171875, -0.06549072265625, 0.0019893646240234375, 0.001613616943359375, -0.03582763671875, 0.0180206298828125, 0.06842041015625, 0.0552978515625, 0.0285797119140625, 0.00016605854034423828, 0.03033447265625, -0.0121917724609375, 0.0135498046875, -0.00466156005859375, 0.0004112720489501953, -0.030181884765625, -0.005641937255859375, -0.0035991668701171875, 0.008636474609375, 0.00910186767578125, 0.0110015869140625, 0.0184478759765625, 0.01247406005859375, -0.03497314453125, 0.01534271240234375, -0.00273895263671875, 0.00754547119140625, 0.0209503173828125, 0.0635986328125, 0.01192474365234375, 0.0721435546875, -0.0263671875, 0.01033782958984375, -0.0277862548828125, -0.010040283203125, 0.015838623046875, 0.003795623779296875, -0.007457733154296875, -0.003631591796875, -0.0193023681640625, 0.00795745849609375, 0.01076507568359375, 0.0250396728515625, 0.01197052001953125, 0.026275634765625, -0.01293182373046875, -0.00318145751953125, 0.0340576171875, 0.00661468505859375, 0.0244293212890625, 0.005035400390625, 0.0205841064453125, 0.01395416259765625, 0.037109375, 0.0067138671875, -0.0323486328125, 0.036376953125, -0.0142059326171875, -0.02850341796875, 0.0238037109375, 0.01213836669921875, 0.0003669261932373047, -0.00922393798828125, 0.00730133056640625, 0.0276031494140625, 0.037841796875, -0.0609130859375, 0.03973388671875, 0.0010232925415039062, -0.00833892822265625, -0.0042724609375, 0.004451751708984375, -0.0078582763671875, -0.026214599609375, -0.031951904296875, -0.00933074951171875, 0.00013518333435058594, 0.039031982421875, -0.0039520263671875, 0.0078125, -0.014251708984375, 0.0099945068359375, -0.048614501953125, 0.005550384521484375, 0.02996826171875, -0.0175018310546875, 0.0021877288818359375, -0.0169219970703125, 0.013427734375, 0.01168060302734375, -0.023101806640625, 0.0273895263671875, -0.0006732940673828125, 0.0225982666015625, -0.007442474365234375, -0.01560211181640625, -0.01161956787109375, 0.00627899169921875, 0.0285797119140625, 0.0281982421875, -0.0457763671875, -0.00516510009765625, 0.0000438690185546875, 0.022918701171875, -0.055938720703125, 0.03363037109375, -0.01499176025390625, -0.04705810546875, -0.038970947265625, -0.017608642578125, -0.0121917724609375, -0.0780029296875, 0.00753021240234375, 0.0665283203125, 0.01641845703125, 0.03338623046875, -0.0108489990234375, 0.0205230712890625, 0.0623779296875, -0.00554656982421875, 0.0004215240478515625, 0.0199127197265625, -0.03643798828125, 0.005619049072265625, -0.044891357421875, 0.033782958984375, 0.029632568359375, -0.00426483154296875, -0.0168914794921875, 0.0570068359375, -0.026702880859375, -0.006061553955078125, 0.01457977294921875, 0.013092041015625, -0.00732421875, 0.03363037109375, 0.02630615234375, -0.0010728836059570312, 0.02105712890625, 0.051849365234375, 0.0572509765625, 0.045867919921875, -0.0217132568359375, 0.03656005859375, -0.0026645660400390625, -0.01464080810546875, 0.0126495361328125, 0.00804901123046875, -0.0204010009765625, 0.035125732421875, -0.072509765625, 0.0192718505859375, 0.04339599609375, 0.00957489013671875, 0.01163482666015625, 0.032806396484375, -0.01273345947265625, -0.01114654541015625, 0.00128936767578125, -0.05645751953125, -0.0008473396301269531, 0.0226898193359375, -0.0164642333984375, -0.037628173828125, 0.005611419677734375, -0.0028781890869140625, -0.04241943359375, 0.0309600830078125, -0.00487518310546875, -0.04376220703125, -0.0222015380859375, -0.061859130859375, 0.06768798828125, -0.068115234375, 0.06072998046875, 0.077880859375, -0.07012939453125, 0.06781005859375, -0.015533447265625, 0.018096923828125, -0.022308349609375, 0.0200042724609375, -0.00707244873046875, -0.035614013671875, -0.041900634765625, -0.042449951171875, 0.03021240234375, 0.047332763671875, -0.005031585693359375, -0.0250701904296875, 0.0005288124084472656, 0.042633056640625, -0.017913818359375, -0.0250091552734375, 0.0221710205078125, -0.0596923828125, -0.0094757080078125, -0.0306243896484375, -0.043975830078125, -0.005237579345703125, 0.0008549690246582031, 0.00324249267578125, -0.05120849609375, -0.014801025390625, -0.00568389892578125, -0.056396484375, -0.026611328125, 0.00360107421875, 0.01322174072265625, 0.00568389892578125, -0.006229400634765625, 0.033599853515625, -0.0147552490234375, -0.051177978515625, -0.0275421142578125, 0.03192138671875, 0.0218963623046875, -0.001140594482421875, 0.0200653076171875, -0.03106689453125, -0.01541900634765625, 0.00801849365234375, 0.042236328125, 0.01390838623046875, -0.0169525146484375, -0.00891876220703125, -0.00838470458984375, -0.0160064697265625, -0.0036640167236328125, 0.0380859375, 0.0029125213623046875, -0.015472412109375, 0.019378662109375, -0.0404052734375, 0.0028629302978515625, -0.00652313232421875, -0.01438140869140625, -0.00447845458984375, -0.0211181640625, -0.0032711029052734375, -0.015167236328125, 0.0293121337890625, 0.00013196468353271484, 0.00215911865234375, 0.01910400390625, -0.03497314453125, 0.02886962890625, -0.0024127960205078125, -0.0157623291015625, -0.0232086181640625, 0.01538848876953125, -0.0254669189453125, 0.0494384765625, 0.01096343994140625, -0.000060498714447021484, -0.0151519775390625, 0.03521728515625, -0.035552978515625, -0.06536865234375, 0.056884765625, -0.0126190185546875, 0.0208282470703125, -0.048187255859375, -0.033233642578125, -0.0086669921875, 0.09234619140625, -0.041290283203125, -0.0238037109375, 0.028533935546875, 0.006656646728515625, -0.0082550048828125, 0.03582763671875, -0.049163818359375, -0.0266571044921875, -0.09307861328125, 0.00024890899658203125, 0.036529541015625, -0.06903076171875, 0.004062652587890625, -0.0221710205078125, -0.06488037109375, -0.0287017822265625, 0.0254669189453125, -0.034912109375, 0.00817108154296875, 0.0147247314453125, 0.01540374755859375, -0.037017822265625, -0.0017385482788085938, -0.03240966796875, -0.131591796875, -0.021881103515625, -0.001583099365234375, 0.10302734375, -0.039703369140625, 0.02996826171875, -0.051361083984375, 0.0653076171875, -0.0123443603515625, 0.0285491943359375, -0.00565338134765625, 0.0171966552734375, 0.003070831298828125, -0.0177001953125, 0.0010204315185546875, -0.03228759765625, -0.0113983154296875, -0.054046630859375, -0.005962371826171875, 0.004703521728515625, -0.02978515625, 0.002391815185546875, -0.0248870849609375, 0.006542205810546875, -0.0091552734375, -0.02716064453125, -0.0279998779296875, 0.005558013916015625, 0.004291534423828125, -0.02593994140625, -0.029754638671875, -0.020111083984375, -0.0400390625, -0.016265869140625, -0.0139923095703125, 0.06048583984375, 0.051422119140625, 0.01395416259765625, 0.025604248046875, -0.13232421875, -0.0141754150390625, 0.0232696533203125, 0.0240478515625, 0.018096923828125, -0.010772705078125, -0.0146331787109375, 0.0364990234375, -0.00473785400390625, 0.00638580322265625, -0.058685302734375, 0.053314208984375, -0.017791748046875, -0.0338134765625, 0.039276123046875, -0.045074462890625, 0.03790283203125, 0.0010118484497070312, -0.014373779296875, -0.01006317138671875, -0.045745849609375, 0.0458984375, 0.01099395751953125, 0.006748199462890625, -0.048736572265625, -0.01406097412109375, -0.0008854866027832031, -0.0015277862548828125, 0.032684326171875, 0.022308349609375, -0.01043701171875, -0.005840301513671875, -0.008056640625, -0.003215789794921875, -0.023681640625, -0.034271240234375, -0.0167083740234375, -0.0159149169921875, 0.032806396484375, -0.0094146728515625, 0.0108642578125, 0.00913238525390625, -0.01348876953125, 0.00689697265625, -0.0176544189453125, -0.042205810546875, 0.00896453857421875, 0.0266876220703125, 0.0013141632080078125, -0.0223846435546875, 0.043670654296875, 0.036712646484375, -0.03900146484375, -0.0152740478515625, -0.050933837890625, 0.01605224609375, -0.0699462890625, 0.0114898681640625, 0.00774383544921875, -0.00441741943359375, 0.0176849365234375, 0.06768798828125, -0.044769287109375, 0.054779052734375, -0.002719879150390625, 0.0205535888671875, 0.025787353515625, 0.052825927734375, 0.0310211181640625, -0.050933837890625, 0.00461578369140625, 0.01320648193359375, -0.019500732421875, -0.0184478759765625, 0.0023822784423828125, 0.029815673828125, 0.026092529296875, -0.0195770263671875, -0.0225372314453125, 0.0088348388671875, -0.034820556640625, 0.00070953369140625, -0.043243408203125, -0.05780029296875, -0.0247039794921875, 0.01139068603515625, -0.01064300537109375, -0.005519866943359375, -0.0217437744140625, -0.0015840530395507812, 0.0321044921875, -0.004955291748046875, 0.05126953125, -0.043487548828125, 0.0151214599609375, 0.00506591796875, 0.00875091552734375, -0.040374755859375, -0.01045989990234375, 0.01123046875, -0.024932861328125, -0.023681640625, -0.017669677734375, -0.01727294921875, 0.0501708984375, -0.02081298828125, 0.00879669189453125, -0.04296875, 0.0211181640625, -0.0731201171875, 0.025909423828125, 0.0057220458984375, 0.000009179115295410156, -0.0008864402770996094, -0.044769287109375, -0.00315093994140625, -0.0254364013671875, 0.03179931640625, -0.0026988983154296875, -0.0165252685546875, -0.01436614990234375, -0.005947113037109375, 0.0411376953125, -0.024810791015625, -0.0310516357421875, 0.0247955322265625, -0.010894775390625, -0.016082763671875, 0.0101165771484375, 0.0183258056640625, 0.0008769035339355469, 0.0117645263671875, 0.042694091796875, 0.014801025390625, -0.0214385986328125, -0.032867431640625, -0.0258941650390625, -0.0236968994140625, -0.038604736328125, -0.0139923095703125, 0.0158233642578125, -0.00777435302734375, 0.04986572265625, 0.056976318359375, 0.00876617431640625, -0.0011577606201171875, -0.024810791015625, -0.01016998291015625, -0.01166534423828125, 0.05926513671875, -0.0246734619140625, -0.0026416778564453125, 0.01739501953125, -0.0372314453125, 0.02850341796875, -0.004314422607421875, -0.0229339599609375, 0.0472412109375, -0.035797119140625, 0.047454833984375, 0.032470703125, -0.044464111328125, 0.06024169921875, 0.0272979736328125, -0.003337860107421875, 0.029022216796875, -0.00292205810546875, -0.0002357959747314453, -0.0006456375122070312, 0.037841796875, -0.00705718994140625, -0.0230255126953125, 0.08270263671875, 0.032989501953125, -0.034149169921875, 0.06707763671875, -0.04034423828125, 0.023040771484375, 0.0241851806640625, 0.063232421875, -0.06103515625, 0.0281219482421875, 0.00446319580078125, 0.016998291015625, 0.05682373046875, -0.0272369384765625, 0.0020809173583984375, -0.0165863037109375, 0.0394287109375, -0.0013933181762695312, -0.02215576171875, 0.007610321044921875, -0.018524169921875, -0.0011844635009765625, 0.015380859375, 0.012664794921875, 0.004016876220703125, -0.0594482421875, -0.014495849609375, 0.0246734619140625, -0.0080108642578125, 0.00860595703125, 0.00803375244140625, -0.0217132568359375, -0.00666046142578125, -0.005939483642578125, 0.00937652587890625, -0.044921875, 0.02252197265625, 0.0240936279296875, -0.003414154052734375, 0.058074951171875, 0.04876708984375, -0.0027027130126953125, 0.0018749237060546875, 0.0110626220703125, 0.0028629302978515625, -0.0123138427734375, -0.0265960693359375, 0.004123687744140625, 0.01201629638671875, -0.0657958984375, 0.00753021240234375, -0.0457763671875, 0.01528167724609375, -0.0171966552734375, 0.0037593841552734375, 0.0675048828125, -0.01326751708984375, -0.0293426513671875, 0.02386474609375, 0.04425048828125, -0.010162353515625, 0.032257080078125, -0.002132415771484375, -0.0211181640625, 0.01580810546875, 0.01641845703125, -0.0217742919921875, 0.00637054443359375, 0.0228424072265625, -0.08270263671875, 0.020172119140625, -0.00675201416015625, 0.0286712646484375, -0.00954437255859375, 0.005649566650390625, -0.008087158203125, -0.029754638671875, -0.0017099380493164062, 0.01306915283203125, -0.0026607513427734375, 0.01427459716796875, -0.032562255859375, -0.01171875, -0.00765228271484375, 0.056671142578125, 0.0293121337890625, 0.008270263671875, 0.0009207725524902344, -0.01435089111328125, 0.0229034423828125, 0.01387786865234375, -0.0181732177734375, 0.03338623046875, -0.01202392578125, 0.013427734375, 0.0269622802734375, -0.0273284912109375, 0.0231781005859375, -0.002933502197265625, -0.02166748046875, 0.0017766952514648438, -0.00640106201171875, -0.03570556640625, -0.0028133392333984375, 0.05169677734375, -0.0107879638671875, -0.01363372802734375, 0.0120697021484375, -0.0252685546875, 0.00893402099609375, 0.006481170654296875, 0.0012731552124023438, 0.031982421875, 0.0189361572265625, -0.0069122314453125, 0.0386962890625, 0.003467559814453125, 0.052215576171875, 0.0458984375, 0.038665771484375, 0.02801513671875, 0.0002918243408203125, 0.037872314453125, 0.01776123046875, -0.04107666015625, 0.0242767333984375, -0.037139892578125, -0.018035888671875, -0.10150146484375, 0.0017070770263671875, 0.0733642578125, 0.05255126953125, -0.03448486328125, -0.057830810546875, -0.00006252527236938477, -0.006908416748046875, 0.0274658203125, 0.00809478759765625, 0.0211181640625, -0.033721923828125, 0.00036025047302246094, -0.060516357421875, 0.016571044921875, 0.0255584716796875, 0.033172607421875, -0.0301666259765625, -0.009368896484375, -0.04339599609375, -0.0174407958984375, -0.01004791259765625, -0.007778167724609375, 0.01256561279296875, 0.0135955810546875, -0.00592041015625, 0.03851318359375, -0.0005064010620117188, 0.0033321380615234375, -0.0217742919921875, 0.043792724609375, 0.0022735595703125, 0.031097412109375, -0.05419921875, -0.033599853515625, 0.0206756591796875, 0.05224609375, 0.000010609626770019531, 0.031494140625, 0.03155517578125, 0.04278564453125, 0.012298583984375, -0.01275634765625, 0.0210113525390625, -0.01036834716796875, -0.0139312744140625, -0.040069580078125, 0.04443359375, 0.0462646484375, 0.0214080810546875, -0.0025997161865234375, -0.0037670135498046875, 0.063232421875, -0.05596923828125, 0.0276336669921875, -0.0224609375, -0.031402587890625, 0.037567138671875, -0.0633544921875, 0.037567138671875, -0.059844970703125, -0.064697265625, -0.00848388671875, -0.0288543701171875, -0.044708251953125, 0.0286407470703125, 0.037811279296875, -0.051788330078125, 0.042724609375, -0.00794219970703125, 0.01383209228515625, 0.006221771240234375, -0.03668212890625, 0.0057830810546875, -0.014373779296875, 0.014862060546875, 0.00368499755859375, -0.051116943359375, -0.033660888671875, -0.0220947265625, 0.04736328125, 0.0167388916015625, 0.05908203125, -0.01409912109375, 0.0296173095703125, -0.0142669677734375, -0.0338134765625, 0.01255035400390625, -0.00858306884765625, 0.01293182373046875, -0.0001220703125, -0.0211334228515625, -0.0161590576171875, 0.03570556640625, -0.0168609619140625, 0.03570556640625, -0.0556640625, -0.0465087890625, -0.02337646484375, 0.030364990234375, 0.0176849365234375, 0.006916046142578125, -0.034912109375, -0.032073974609375, -0.056976318359375, -0.018157958984375, 0.02069091796875, -0.0161285400390625, -0.0175018310546875, 0.007781982421875, 0.016876220703125, -0.0164031982421875, 0.01313018798828125, -0.00574493408203125, 0.0262298583984375, 0.04998779296875, -0.004039764404296875, -0.06036376953125, -0.0116729736328125, -0.0218963623046875, -0.0010938644409179688, -0.01438140869140625, 0.051239013671875, 0.003429412841796875, -0.094970703125, 0.01263427734375, 0.0234527587890625, 0.0024471282958984375, -0.046356201171875, -0.00806427001953125, 0.05169677734375, -0.026153564453125, -0.0180816650390625, -0.0162200927734375, -0.02239990234375, -0.0657958984375, 0.02178955078125, 0.04339599609375, -0.013580322265625, 0.0169677734375, -0.038116455078125, 0.00490570068359375, 0.025390625, 0.018798828125, -0.05419921875, 0.042724609375, -0.00001621246337890625, -0.01476287841796875, 0.02178955078125, -0.031463623046875, 0.0167236328125, 0.063232421875, -0.00525665283203125, -0.0394287109375, -0.0301971435546875, 0.0179595947265625, -0.045440673828125, 0.051239013671875, 0.03399658203125, -0.070556640625, 0.0408935546875, 0.053802490234375, 0.06964111328125, 0.09124755859375, 0.06414794921875, -0.0304412841796875, -0.031585693359375, 0.0189361572265625, 0.0066680908203125, -0.0002899169921875, 0.0177154541015625, -0.01044464111328125, -0.03662109375, -0.01009368896484375, -0.01123046875, 0.01042938232421875, -0.038482666015625, -0.0933837890625, 0.042633056640625, -0.0136871337890625, -0.04046630859375, -0.06756591796875, 0.034454345703125, 0.0131988525390625, 0.037994384765625, -0.021087646484375, 0.019775390625, -0.017578125, 0.001068115234375, 0.0016279220581054688, -0.026458740234375, 0.04840087890625, -0.02471923828125, 0.000244140625, 0.01090240478515625, 0.04205322265625, -0.02215576171875, -0.01328277587890625, -0.000005304813385009766, 0.00438690185546875, 0.0259857177734375, -0.03564453125, -0.052642822265625, -0.0034847259521484375, 0.0029354095458984375, 0.0122833251953125, -0.055084228515625, -0.0038700103759765625, -0.03240966796875, 0.0018463134765625, 0.00385284423828125, -0.006023406982421875, -0.007354736328125, 0.025665283203125, -0.032196044921875, -0.0114898681640625, -0.044158935546875, 0.0004324913024902344, -0.06964111328125, -0.0401611328125, 0.0226898193359375, -0.0011463165283203125, -0.03375244140625, 0.034881591796875, -0.021148681640625, -0.0109405517578125, 0.0391845703125, -0.00431060791015625, -0.03570556640625, -0.00363922119140625, 0.0904541015625, -0.047515869140625, 0.015350341796875, 0.0164947509765625, -0.005870819091796875, 0.06280517578125, -0.005794525146484375, -0.004917144775390625, -0.0031986236572265625, -0.030517578125, 0.0246124267578125, -0.007122039794921875, 0.02545166015625, -0.0272979736328125, -0.01153564453125, -0.0190887451171875, 0.0270843505859375, 0.0179901123046875, 0.040283203125, -0.03759765625, 0.05914306640625, 0.0302581787109375, 0.04638671875, -0.01358795166015625, -0.058837890625, -0.034454345703125, 0.034942626953125, -0.0128326416015625, 0.00789642333984375, 0.0243072509765625, -0.037353515625, 0.010223388671875, -0.0296173095703125, -0.01302337646484375, -0.03997802734375, 0.0023403167724609375, 0.0106964111328125, -0.0245819091796875, 0.0253143310546875 ]
3d390ee8f16755955b2532062d8822333ce1c269
Wordpress Stackexchange Q: How to re-Import the WordPress XML file after editing? I have exported all my content to WordPress XML file via WordPress>Tools>Export as I needed to edit 300 posts at a time. Now, my concern is how to re import the file to override the default one? By re-importing the file via WordPress Tools it does only import new posts, so it's not adapted to that particular case without breaking my site/database. I need to find a way to re import the file. Any suggestion is appreciated. A: What do you need to edit and why can't you edit in the WP editor? Can you use Search RegEx? It's a plugin to search and replace with grep and regular expressions through content. If you need to develop a regex search string to find certain content, check https://stackoverflow.com/questions/tagged/regex
Q: How to re-Import the WordPress XML file after editing? I have exported all my content to WordPress XML file via WordPress>Tools>Export as I needed to edit 300 posts at a time. Now, my concern is how to re import the file to override the default one? By re-importing the file via WordPress Tools it does only import new posts, so it's not adapted to that particular case without breaking my site/database. I need to find a way to re import the file. Any suggestion is appreciated. A: What do you need to edit and why can't you edit in the WP editor? Can you use Search RegEx? It's a plugin to search and replace with grep and regular expressions through content. If you need to develop a regex search string to find certain content, check https://stackoverflow.com/questions/tagged/regex A: If you really need to do this, then you'll have to delete the existing posts completely - ie 'Bin' them, and then Empty the bin/trash. You'll then be able to import the WXR file via Tools | Import.
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:440971", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129144" }
[ -0.006008148193359375, -0.028045654296875, 0.02471923828125, 0.055694580078125, -0.0364990234375, -0.022979736328125, 0.06231689453125, -0.054534912109375, 0.00110626220703125, 0.008544921875, -0.03289794921875, -0.016357421875, -0.0089263916015625, -0.026397705078125, -0.007305145263671875, -0.046142578125, 0.00188446044921875, -0.019775390625, -0.016265869140625, -0.0260162353515625, 0.00397491455078125, -0.025238037109375, 0.019744873046875, 0.006221771240234375, 0.002483367919921875, 0.032257080078125, 0.050445556640625, -0.01395416259765625, 0.01262664794921875, -0.018341064453125, 0.00978851318359375, -0.032562255859375, 0.0316162109375, 0.044647216796875, -0.09002685546875, -0.00705718994140625, -0.038848876953125, 0.0255279541015625, -0.0259246826171875, 0.034271240234375, 0.0245208740234375, -0.008697509765625, 0.01221466064453125, 0.034881591796875, -0.01494598388671875, -0.047760009765625, 0.04327392578125, -0.0204620361328125, 0.028594970703125, 0.0142974853515625, -0.0103607177734375, 0.017974853515625, 0.0074310302734375, -0.047088623046875, 0.00444793701171875, 0.00014901161193847656, -0.03631591796875, 0.05328369140625, 0.0233612060546875, 0.0017309188842773438, -0.00821685791015625, 0.007251739501953125, -0.00731658935546875, -0.001483917236328125, -0.03387451171875, -0.0060272216796875, 0.0009531974792480469, -0.0002143383026123047, -0.080322265625, -0.034454345703125, 0.0523681640625, -0.02294921875, -0.00458526611328125, 0.0113677978515625, -0.0004868507385253906, 0.0017805099487304688, 0.03570556640625, 0.0217437744140625, 0.007480621337890625, 0.0245361328125, 0.0323486328125, -0.0024967193603515625, 0.028900146484375, -0.0565185546875, 0.0300750732421875, -0.04388427734375, 0.0010900497436523438, -0.004638671875, -0.02093505859375, 0.00901031494140625, -0.0166778564453125, 0.0033550262451171875, -0.046630859375, 0.0095977783203125, 0.01186370849609375, -0.0105438232421875, -0.03680419921875, -0.026702880859375, 0.006343841552734375, 0.0399169921875, 0.0161590576171875, -0.0472412109375, 0.07550048828125, -0.04205322265625, 0.015777587890625, 0.0135345458984375, -0.0047454833984375, -0.01727294921875, 0.040435791015625, 0.032562255859375, -0.01568603515625, 0.0677490234375, 0.0126800537109375, 0.0057525634765625, -0.0310516357421875, 0.018402099609375, 0.0150146484375, -0.0155029296875, -0.00849151611328125, 0.015106201171875, -0.02972412109375, 0.00910186767578125, -0.10650634765625, -0.030792236328125, 0.01763916015625, -0.052581787109375, 0.00007480382919311523, 0.09698486328125, -0.006114959716796875, 0.03179931640625, -0.0399169921875, 0.005802154541015625, 0.0677490234375, 0.029632568359375, 0.007091522216796875, -0.0301055908203125, 0.0205230712890625, 0.0088653564453125, -0.0024547576904296875, -0.00545501708984375, -0.0160369873046875, -0.0355224609375, -0.00624847412109375, -0.0101776123046875, 0.0474853515625, 0.0193634033203125, 0.0257720947265625, 0.0225830078125, 0.0011186599731445312, -0.0037975311279296875, 0.009033203125, 0.00527191162109375, 0.03887939453125, 0.0070037841796875, 0.025634765625, -0.07965087890625, 0.061431884765625, -0.0755615234375, 0.0357666015625, -0.08331298828125, -0.00016069412231445312, -0.0193634033203125, 0.01885986328125, -0.011322021484375, -0.0467529296875, 0.037994384765625, -0.02886962890625, -0.01018524169921875, 0.0183258056640625, 0.0036640167236328125, -0.0029811859130859375, -0.00292205810546875, 0.005001068115234375, -0.0154266357421875, -0.00609588623046875, 0.0196533203125, 0.014251708984375, -0.0270233154296875, -0.0071563720703125, 0.09063720703125, 0.038299560546875, -0.0063323974609375, -0.00502777099609375, 0.0196685791015625, -0.041473388671875, 0.0215911865234375, 0.00490570068359375, 0.050689697265625, 0.034210205078125, 0.0253753662109375, 0.0106201171875, -0.0355224609375, -0.020843505859375, 0.0108642578125, 0.0033359527587890625, -0.007549285888671875, -0.016876220703125, 0.00617218017578125, -0.0015859603881835938, -0.01244354248046875, -0.001140594482421875, -0.00942230224609375, 0.0008764266967773438, 0.005901336669921875, -0.03521728515625, -0.0023899078369140625, -0.0222625732421875, 0.006908416748046875, -0.0238037109375, 0.0135955810546875, 0.0277862548828125, 0.004795074462890625, -0.0164642333984375, -0.039642333984375, -0.0176544189453125, 0.0067901611328125, -0.0161285400390625, 0.01055908203125, 0.0149688720703125, 0.02044677734375, 0.01229095458984375, -0.0025196075439453125, -0.005802154541015625, -0.016265869140625, -0.00885009765625, -0.02178955078125, -0.00815582275390625, -0.016754150390625, -0.01126861572265625, -0.0027179718017578125, 0.012939453125, 0.0204315185546875, 0.038360595703125, 0.0631103515625, 0.006870269775390625, -0.01451873779296875, -0.0026683807373046875, -0.0711669921875, 0.03350830078125, 0.049774169921875, 0.0268707275390625, 0.0212554931640625, 0.0089569091796875, 0.037139892578125, 0.08685302734375, 0.01107025146484375, 0.0278472900390625, -0.0041351318359375, 0.008056640625, 0.0162811279296875, -0.07733154296875, -0.023406982421875, 0.038055419921875, -0.057098388671875, -0.00734710693359375, 0.0625, 0.01494598388671875, -0.01168060302734375, -0.031524658203125, 0.0357666015625, -0.0150604248046875, -0.006259918212890625, -0.01314544677734375, -0.006420135498046875, 0.050201416015625, -0.00901031494140625, 0.05181884765625, 0.03778076171875, -0.00559234619140625, -0.0220794677734375, 0.006633758544921875, -0.00148773193359375, 0.013458251953125, 0.0223541259765625, 0.00470733642578125, 0.046539306640625, -0.01305389404296875, -0.0110321044921875, 0.00884246826171875, 0.0232696533203125, -0.0120086669921875, 0.037872314453125, -0.00649261474609375, -0.0201873779296875, 0.00661468505859375, -0.04608154296875, -0.0176544189453125, -0.0292205810546875, -0.018829345703125, 0.002101898193359375, 0.01197052001953125, 0.054962158203125, 0.0103302001953125, 0.00774383544921875, -0.003543853759765625, 0.01763916015625, 0.040313720703125, -0.034759521484375, 0.04327392578125, -0.006862640380859375, 0.046356201171875, 0.059356689453125, -0.030364990234375, 0.0428466796875, 0.00321197509765625, 0.0129547119140625, 0.01371002197265625, -0.00848388671875, -0.041046142578125, 0.0159149169921875, -0.1170654296875, -0.051177978515625, 0.0074310302734375, 0.0300445556640625, -0.01145172119140625, -0.043212890625, -0.037445068359375, 0.006587982177734375, -0.076416015625, -0.037322998046875, -0.031463623046875, -0.09552001953125, 0.01000213623046875, -0.0035305023193359375, -0.040374755859375, -0.005428314208984375, 0.0207366943359375, 0.0197906494140625, 0.0643310546875, -0.04180908203125, -0.021484375, -0.057098388671875, -0.09930419921875, -0.0924072265625, 0.0210418701171875, 0.0103912353515625, 0.01203155517578125, 0.045745849609375, -0.003589630126953125, -0.05877685546875, -0.002033233642578125, 0.0129547119140625, -0.0321044921875, -0.01299285888671875, -0.0006575584411621094, -0.03216552734375, -0.005054473876953125, -0.0027179718017578125, 0.07122802734375, 0.01514434814453125, -0.0198822021484375, 0.0092010498046875, -0.0014066696166992188, -0.0169830322265625, -0.0020580291748046875, -0.0192108154296875, -0.0008673667907714844, 0.00937652587890625, -0.0234222412109375, -0.055450439453125, -0.0007777214050292969, 0.037322998046875, 0.004009246826171875, -0.005191802978515625, -0.034942626953125, -0.021942138671875, 0.0052490234375, 0.0211639404296875, -0.0093536376953125, 0.033203125, 0.0609130859375, -0.00763702392578125, -0.0136566162109375, -0.035064697265625, -0.0521240234375, -0.046295166015625, 0.040313720703125, -0.0196533203125, 0.0065765380859375, 0.0213470458984375, 0.01007843017578125, 0.00103759765625, -0.032745361328125, -0.056121826171875, -0.0511474609375, 0.0178070068359375, -0.066162109375, -0.01206207275390625, -0.039398193359375, 0.0022830963134765625, 0.00022292137145996094, 0.0718994140625, -0.034149169921875, 0.0061187744140625, 0.0242462158203125, 0.008331298828125, -0.0238189697265625, -0.03204345703125, -0.075439453125, 0.004009246826171875, -0.035064697265625, 0.00033593177795410156, -0.0031261444091796875, -0.036468505859375, 0.0086212158203125, -0.060302734375, 0.000055909156799316406, -0.02899169921875, 0.0208587646484375, -0.0035343170166015625, 0.02130126953125, 0.01323699951171875, 0.0195159912109375, -0.01558685302734375, -0.0046844482421875, -0.015228271484375, -0.10833740234375, -0.020477294921875, -0.01971435546875, 0.0672607421875, 0.00852203369140625, -0.0156402587890625, -0.0274658203125, 0.04364013671875, -0.020751953125, 0.0335693359375, -0.00647735595703125, 0.00743865966796875, 0.0282745361328125, -0.00424957275390625, 0.005107879638671875, -0.02545166015625, -0.02764892578125, -0.01534271240234375, -0.01019287109375, 0.01171875, -0.005077362060546875, -0.041595458984375, 0.01067352294921875, -0.00923919677734375, -0.030181884765625, -0.0135498046875, -0.021514892578125, 0.03790283203125, 0.005504608154296875, -0.0240325927734375, -0.033538818359375, -0.06549072265625, 0.032379150390625, -0.0158843994140625, 0.0021343231201171875, 0.01320648193359375, 0.08892822265625, 0.0014019012451171875, -0.007808685302734375, -0.0848388671875, -0.0192718505859375, -0.00453948974609375, 0.015869140625, 0.046142578125, 0.0007109642028808594, 0.02630615234375, -0.0014390945434570312, -0.02020263671875, 0.01531219482421875, -0.049041748046875, 0.05084228515625, -0.0184173583984375, -0.01326751708984375, 0.03265380859375, -0.01056671142578125, 0.01369476318359375, 0.01364898681640625, 0.007476806640625, -0.0241546630859375, 0.0250701904296875, 0.0325927734375, -0.0106201171875, 0.002716064453125, -0.020599365234375, 0.0070037841796875, 0.005428314208984375, 0.014404296875, -0.0038051605224609375, 0.006435394287109375, 0.0036106109619140625, -0.032867431640625, 0.003437042236328125, 0.003437042236328125, 0.040679931640625, 0.07220458984375, -0.0009732246398925781, 0.0284423828125, 0.05242919921875, -0.01079559326171875, -0.037567138671875, -0.00670623779296875, 0.0100860595703125, 0.017120361328125, -0.04827880859375, -0.0158843994140625, 0.0169525146484375, -0.0140533447265625, -0.0011043548583984375, -0.034393310546875, -0.005702972412109375, 0.044525146484375, -0.01413726806640625, 0.011505126953125, 0.004302978515625, 0.01168060302734375, -0.0287933349609375, -0.046356201171875, -0.0116119384765625, -0.0285491943359375, 0.052490234375, -0.020965576171875, -0.032012939453125, 0.00994873046875, -0.0038547515869140625, 0.0259552001953125, 0.0016698837280273438, 0.024871826171875, 0.00600433349609375, 0.002643585205078125, 0.01488494873046875, -0.01557159423828125, 0.01268768310546875, -0.03253173828125, 0.005939483642578125, 0.003414154052734375, 0.061126708984375, -0.006591796875, -0.032257080078125, 0.023956298828125, -0.052032470703125, -0.0031986236572265625, 0.02667236328125, -0.02593994140625, -0.058929443359375, -0.0063934326171875, -0.00104522705078125, 0.004253387451171875, -0.039825439453125, 0.00038909912109375, -0.0027179718017578125, -0.032745361328125, -0.006992340087890625, 0.015777587890625, -0.030975341796875, -0.01430511474609375, -0.009124755859375, 0.0011005401611328125, -0.0016050338745117188, 0.013275146484375, -0.032440185546875, -0.0207061767578125, -0.0151519775390625, -0.0171661376953125, 0.0352783203125, 0.0018911361694335938, -0.019439697265625, 0.005298614501953125, -0.008209228515625, -0.0008091926574707031, 0.01137542724609375, 0.0255126953125, -0.022491455078125, 0.0126800537109375, -0.0091400146484375, -0.06719970703125, -0.0418701171875, -0.01068878173828125, -0.0031223297119140625, -0.048583984375, 0.009552001953125, -0.006275177001953125, 0.014923095703125, -0.010040283203125, 0.0199127197265625, 0.0173187255859375, 0.035064697265625, -0.0217437744140625, 0.059539794921875, 0.0026798248291015625, 0.03387451171875, -0.0018367767333984375, 0.0230712890625, -0.0035343170166015625, 0.0240631103515625, 0.0007562637329101562, -0.032257080078125, -0.00843048095703125, -0.013702392578125, -0.006931304931640625, -0.03179931640625, 0.022857666015625, 0.022613525390625, 0.06671142578125, 0.0027027130126953125, 0.037353515625, -0.05438232421875, -0.00738525390625, -0.017669677734375, 0.0535888671875, -0.07562255859375, 0.0089111328125, 0.012725830078125, -0.01221466064453125, 0.0254058837890625, -0.0308685302734375, -0.0074310302734375, 0.0119171142578125, -0.01446533203125, -0.0124359130859375, 0.0158843994140625, 0.00264739990234375, 0.00296783447265625, 0.01007080078125, -0.0325927734375, 0.01019287109375, 0.012725830078125, 0.01140594482421875, 0.03271484375, -0.033477783203125, 0.0160369873046875, 0.0552978515625, 0.00039458274841308594, -0.036834716796875, 0.01428985595703125, -0.04486083984375, -0.0176849365234375, 0.00811767578125, 0.042236328125, 0.04058837890625, -0.0732421875, 0.01282501220703125, 0.0012636184692382812, -0.007213592529296875, 0.00988006591796875, 0.0234832763671875, -0.056304931640625, -0.057861328125, 0.035247802734375, -0.056182861328125, -0.00559234619140625, 0.01546478271484375, 0.001476287841796875, -0.0132293701171875, -0.0128631591796875, 0.0265960693359375, 0.029449462890625, 0.0223541259765625, -0.004840850830078125, 0.00725555419921875, 0.02606201171875, -0.013824462890625, 0.0210723876953125, -0.0186004638671875, -0.007419586181640625, -0.053253173828125, -0.0002856254577636719, -0.021484375, 0.0003101825714111328, -0.01519012451171875, -0.0099639892578125, 0.05010986328125, 0.03460693359375, -0.00879669189453125, -0.01396942138671875, 0.008941650390625, 0.007022857666015625, 0.00788116455078125, -0.0382080078125, 0.009307861328125, 0.03411865234375, -0.0152587890625, 0.0249786376953125, 0.0209197998046875, -0.058013916015625, 0.00547027587890625, -0.0179595947265625, 0.0216064453125, -0.0222320556640625, -0.0026798248291015625, 0.0345458984375, 0.0018310546875, -0.006786346435546875, -0.008544921875, 0.032806396484375, -0.038238525390625, -0.0211029052734375, -0.004550933837890625, -0.025909423828125, -0.039886474609375, -0.01837158203125, -0.06512451171875, 0.09368896484375, 0.0276947021484375, 0.0099334716796875, -0.0037593841552734375, 0.04107666015625, -0.037811279296875, 0.0133056640625, -0.01201629638671875, 0.037139892578125, 0.03424072265625, 0.0145416259765625, -0.02801513671875, -0.01361846923828125, -0.0019207000732421875, 0.042388916015625, 0.01373291015625, -0.0020465850830078125, -0.06805419921875, -0.0107421875, 0.05743408203125, 0.05023193359375, 0.0413818359375, 0.048309326171875, -0.0161285400390625, 0.01247406005859375, 0.0245819091796875, -0.079345703125, -0.002811431884765625, 0.0019054412841796875, 0.00528717041015625, 0.0015077590942382812, 0.01042938232421875, 0.0165863037109375, 0.0024585723876953125, -0.0063629150390625, 0.007770538330078125, -0.005580902099609375, -0.0084228515625, -0.0011301040649414062, 0.0296783447265625, -0.0041656494140625, 0.0020294189453125, -0.021820068359375, -0.01294708251953125, -0.01320648193359375, 0.0243682861328125, -0.0157012939453125, 0.03985595703125, 0.044219970703125, 0.01483917236328125, 0.0889892578125, -0.01593017578125, 0.01416015625, -0.0249481201171875, 0.01313018798828125, 0.0056610107421875, 0.025909423828125, 0.02484130859375, 0.02197265625, 0.0234375, -0.004146575927734375, -0.004993438720703125, -0.014923095703125, -0.0258026123046875, 0.013275146484375, 0.034576416015625, -0.003841400146484375, -0.00962066650390625, 0.00970458984375, -0.044189453125, 0.026641845703125, -0.0026493072509765625, 0.0034465789794921875, 0.0162200927734375, -0.0220794677734375, 0.005077362060546875, 0.047393798828125, 0.01198577880859375, 0.0095062255859375, -0.0148773193359375, 0.0216217041015625, 0.0285491943359375, -0.005176544189453125, -0.04412841796875, 0.06878662109375, 0.0235137939453125, 0.0228424072265625, 0.01039886474609375, -0.0019044876098632812, -0.012786865234375, -0.007904052734375, -0.0145111083984375, -0.047119140625, 0.0035572052001953125, 0.04339599609375, 0.000789642333984375, 0.02435302734375, 0.0572509765625, 0.018218994140625, -0.09375, -0.0216064453125, -0.002498626708984375, -0.05291748046875, -0.012054443359375, -0.04107666015625, 0.032318115234375, 0.022491455078125, 0.016845703125, -0.0013103485107421875, 0.044158935546875, 0.035003662109375, -0.034942626953125, 0.06390380859375, -0.010528564453125, -0.0023040771484375, 0.043060302734375, -0.0198822021484375, 0.044342041015625, -0.01485443115234375, -0.038604736328125, -0.0118560791015625, 0.00983428955078125, 0.015655517578125, -0.0222625732421875, 0.00815582275390625, -0.005634307861328125, 0.03460693359375, -0.0100860595703125, -0.002872467041015625, -0.01091766357421875, -0.0006761550903320312, -0.0007114410400390625, 0.0306243896484375, 0.0238494873046875, 0.01345062255859375, -0.0211334228515625, -0.0177001953125, -0.048187255859375, 0.0604248046875, 0.049468994140625, 0.04296875, -0.01062774658203125, 0.04644775390625, 0.00977325439453125, 0.0169219970703125, -0.0180816650390625, -0.01568603515625, -0.0025634765625, -0.0187225341796875, 0.0305023193359375, -0.00140380859375, -0.04400634765625, 0.0271148681640625, 0.0106658935546875, 0.007442474365234375, 0.045440673828125, -0.06201171875, 0.027313232421875, 0.00872802734375, 0.0245513916015625, -0.032806396484375, -0.051513671875, -0.04913330078125, 0.02557373046875, -0.0020503997802734375, 0.012908935546875, -0.00731658935546875, -0.0006871223449707031, 0.0322265625, -0.0179595947265625, 0.0008573532104492188, 0.00986480712890625, 0.00873565673828125, 0.02886962890625, 0.014434814453125, -0.072265625, 0.0242156982421875, -0.00836181640625, -0.005382537841796875, 0.016357421875, 0.0625, 0.01959228515625, -0.0592041015625, -0.0189361572265625, 0.0164947509765625, 0.050811767578125, 0.0036602020263671875, 0.036407470703125, -0.017425537109375, -0.00453948974609375, 0.00946044921875, -0.0192108154296875, -0.01654052734375, -0.049713134765625, 0.01007843017578125, 0.016448974609375, -0.041107177734375, -0.0178070068359375, -0.036865234375, -0.01042938232421875, 0.0239410400390625, -0.00010979175567626953, -0.048126220703125, 0.0223388671875, -0.020843505859375, 0.0078125, -0.0196685791015625, -0.052032470703125, 0.0065155029296875, 0.0197601318359375, -0.0435791015625, -0.06640625, -0.0660400390625, 0.006092071533203125, -0.09844970703125, -0.003986358642578125, 0.03570556640625, -0.004405975341796875, -0.005947113037109375, -0.0240936279296875, -0.01129913330078125, 0.02508544921875, -0.0304412841796875, -0.03814697265625, -0.0301666259765625, 0.02044677734375, 0.0246124267578125, -0.041900634765625, -0.0007219314575195312, -0.04150390625, 0.00008362531661987305, -0.006023406982421875, 0.003936767578125, 0.037841796875, -0.04852294921875, -0.1331787109375, 0.0032196044921875, -0.021148681640625, -0.05767822265625, -0.0227203369140625, -0.0216827392578125, -0.0263214111328125, -0.014129638671875, -0.010162353515625, -0.00495147705078125, -0.01209259033203125, 0.055267333984375, -0.02667236328125, 0.0657958984375, -0.023345947265625, -0.0002415180206298828, 0.00839996337890625, -0.00231170654296875, -0.0135498046875, -0.0283966064453125, 0.003971099853515625, -0.0131072998046875, 0.03558349609375, 0.0540771484375, -0.020263671875, 0.00890350341796875, -0.004962921142578125, -0.019256591796875, 0.0012378692626953125, 0.0206146240234375, -0.078369140625, -0.0025272369384765625, 0.0909423828125, 0.0953369140625, 0.034423828125, -0.0478515625, 0.0305633544921875, 0.0229644775390625, -0.013671875, -0.00982666015625, 0.003665924072265625, -0.036346435546875, -0.026153564453125, -0.0006847381591796875, -0.054656982421875, 0.0467529296875, -0.041900634765625, -0.06597900390625, 0.0273895263671875, -0.053955078125, -0.00931549072265625, -0.0595703125, 0.01885986328125, 0.046661376953125, -0.0234832763671875, 0.03192138671875, -0.0022411346435546875, -0.006195068359375, 0.0228271484375, 0.0012388229370117188, -0.01397705078125, 0.029998779296875, -0.03125, -0.01358795166015625, 0.0061187744140625, 0.0222625732421875, -0.01291656494140625, -0.003124237060546875, -0.00414276123046875, -0.006435394287109375, -0.0199737548828125, -0.0223541259765625, 0.006656646728515625, 0.0100860595703125, -0.03216552734375, 0.09222412109375, -0.0231475830078125, -0.003993988037109375, -0.03863525390625, 0.04107666015625, -0.07525634765625, 0.024383544921875, -0.0236663818359375, -0.0037250518798828125, 0.01507568359375, 0.0023097991943359375, 0.032958984375, -0.002391815185546875, 0.0081634521484375, -0.031585693359375, -0.015960693359375, -0.004913330078125 ]
fd3baf4cc53d85b4722fece20bfce7199102d67e
Wordpress Stackexchange Q: Prepend meta_value to permalink of post I have 2 custom post types movies (non-hierarchical) and series(hierarchical). Each post from seriestype has a meta field _movie which contains a movie ID. I want to specify a custom permalink structure for series. What I need to achieve is a link http://example.com/series/movie_slug/parrent_series_slug/series_slug (parent_series_slug is the slug of the parent of the series, they are hierarchical, if there isn't any parent, parrent_series_slug is omitted). What I have achieved at the moment is http://example.com/series/parrent_series_slug/series_slug, which is handled by Wordpress. The question is how to insert movie_slug (slug of the post with the ID from meta _movie) in the permalink before series slug? A: In this case it seems like you'll want to hook into the WordPress rewrite rules. {$permastruct}_rewrite_rules doesn't have a lot of information, but this filter would allow you modify the array of existing rewrite rules to add in your new rewrite rule for series. For this to work: http://example.com/series/movie_slug/parrent_series_slug/series_slug You'll need to add in movie_slug, parrent_series_slug, and series_slug as vars that WordPress will recognize with the query_vars filter. More information on WP_Rewrite with some examples
Q: Prepend meta_value to permalink of post I have 2 custom post types movies (non-hierarchical) and series(hierarchical). Each post from seriestype has a meta field _movie which contains a movie ID. I want to specify a custom permalink structure for series. What I need to achieve is a link http://example.com/series/movie_slug/parrent_series_slug/series_slug (parent_series_slug is the slug of the parent of the series, they are hierarchical, if there isn't any parent, parrent_series_slug is omitted). What I have achieved at the moment is http://example.com/series/parrent_series_slug/series_slug, which is handled by Wordpress. The question is how to insert movie_slug (slug of the post with the ID from meta _movie) in the permalink before series slug? A: In this case it seems like you'll want to hook into the WordPress rewrite rules. {$permastruct}_rewrite_rules doesn't have a lot of information, but this filter would allow you modify the array of existing rewrite rules to add in your new rewrite rule for series. For this to work: http://example.com/series/movie_slug/parrent_series_slug/series_slug You'll need to add in movie_slug, parrent_series_slug, and series_slug as vars that WordPress will recognize with the query_vars filter. More information on WP_Rewrite with some examples
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:441044", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129394" }
[ 0.08221435546875, -0.0012454986572265625, 0.0120391845703125, -0.06256103515625, 0.008697509765625, -0.002971649169921875, 0.03887939453125, -0.0168914794921875, -0.032440185546875, 0.0165557861328125, -0.00585174560546875, 0.01554107666015625, -0.01032257080078125, -0.0301513671875, 0.0241851806640625, -0.01239776611328125, 0.0260772705078125, -0.021759033203125, 0.02703857421875, -0.023468017578125, 0.0051727294921875, -0.012115478515625, 0.0506591796875, 0.017181396484375, 0.0443115234375, -0.01393890380859375, 0.01123046875, -0.043487548828125, 0.0031528472900390625, -0.03814697265625, 0.0063323974609375, 0.02862548828125, 0.0217132568359375, -0.033355712890625, 0.06536865234375, -0.0182952880859375, 0.0360107421875, -0.0181884765625, 0.018310546875, -0.0015430450439453125, 0.0199737548828125, -0.006519317626953125, 0.021728515625, 0.0360107421875, 0.000030338764190673828, -0.0250701904296875, -0.00983428955078125, -0.070068359375, 0.01409149169921875, 0.0157012939453125, -0.01198577880859375, -0.0151824951171875, -0.0010938644409179688, 0.023162841796875, 0.01026153564453125, 0.002197265625, 0.0030002593994140625, -0.0174713134765625, 0.010406494140625, 0.020050048828125, 0.0060272216796875, 0.004993438720703125, 0.0165557861328125, -0.0093231201171875, 0.0079498291015625, 0.0005779266357421875, -0.043121337890625, 0.0209197998046875, 0.008209228515625, 0.00881195068359375, -0.0006957054138183594, -0.0250091552734375, 0.0198974609375, -0.045806884765625, 0.006961822509765625, 0.01169586181640625, -0.00734710693359375, 0.0006399154663085938, 0.01116943359375, 0.0019330978393554688, 0.0162506103515625, -0.031097412109375, -0.00554656982421875, -0.00542449951171875, 0.01275634765625, -0.00833892822265625, -0.00839996337890625, -0.0127716064453125, -0.0443115234375, -0.0178070068359375, -0.02911376953125, -0.08880615234375, -0.0247802734375, 0.00970458984375, 0.0014772415161132812, -0.01404571533203125, 0.0258636474609375, 0.0462646484375, -0.007747650146484375, 0.0113983154296875, 0.0281524658203125, -0.042999267578125, 0.02862548828125, -0.033050537109375, -0.006893157958984375, -0.012664794921875, -0.0080718994140625, 0.031158447265625, 0.045379638671875, 0.0278778076171875, -0.01493072509765625, 0.051849365234375, 0.001712799072265625, 0.0250701904296875, -0.07232666015625, -0.01580810546875, -0.0423583984375, -0.0325927734375, -0.017242431640625, 0.0012121200561523438, -0.0078125, 0.0210418701171875, 0.00130462646484375, -0.0269775390625, 0.00905609130859375, -0.02313232421875, -0.0140533447265625, -0.0135040283203125, -0.023590087890625, 0.047882080078125, -0.0276031494140625, -0.00763702392578125, 0.05584716796875, 0.05975341796875, 0.0142669677734375, -0.0252227783203125, 0.0076446533203125, -0.0052032470703125, -0.0029125213623046875, -0.01470184326171875, 0.027435302734375, -0.0038547515869140625, -0.0010271072387695312, 0.01519012451171875, 0.0159454345703125, 0.0301055908203125, 0.0009741783142089844, -0.0012197494506835938, 0.0202178955078125, -0.03314208984375, 0.0150299072265625, -0.0694580078125, 0.05340576171875, -0.0007295608520507812, -0.0501708984375, 0.004627227783203125, -0.035247802734375, 0.00991058349609375, -0.031890869140625, -0.014190673828125, -0.046478271484375, -0.01605224609375, 0.027557373046875, -0.049346923828125, -0.04388427734375, 0.0226287841796875, -0.03125, -0.01494598388671875, 0.0246124267578125, 0.0124359130859375, 0.03955078125, -0.025115966796875, -0.033660888671875, -0.0153350830078125, -0.0029850006103515625, -0.007518768310546875, -0.00218963623046875, 0.021484375, -0.007415771484375, 0.06842041015625, 0.031494140625, -0.02239990234375, 0.01800537109375, 0.0187225341796875, -0.038665771484375, 0.005596160888671875, 0.0208282470703125, 0.042083740234375, -0.004817962646484375, 0.0189666748046875, 0.03399658203125, 0.00850677490234375, -0.06170654296875, 0.0330810546875, -0.0227203369140625, -0.00896453857421875, 0.01666259765625, 0.0183868408203125, -0.01448822021484375, 0.0040283203125, -0.059906005859375, 0.043853759765625, -0.0093231201171875, 0.050445556640625, 0.02703857421875, 0.0267791748046875, -0.005306243896484375, 0.04736328125, -0.0010786056518554688, 0.02886962890625, 0.0310821533203125, 0.0216064453125, -0.0286865234375, -0.029327392578125, -0.01113128662109375, 0.0095062255859375, 0.00818634033203125, 0.00756072998046875, -0.01462554931640625, 0.00946807861328125, 0.001491546630859375, -0.0159912109375, -0.010345458984375, 0.017791748046875, 0.021026611328125, 0.0019063949584960938, -0.02410888671875, -0.0127105712890625, -0.00438690185546875, 0.0178985595703125, -0.052642822265625, 0.041290283203125, 0.0290374755859375, -0.01922607421875, -0.055908203125, 0.02508544921875, 0.007099151611328125, 0.01456451416015625, -0.0264892578125, 0.02764892578125, 0.02081298828125, 0.00652313232421875, -0.0284423828125, -0.03466796875, -0.0165863037109375, -0.0731201171875, -0.001617431640625, -0.0091552734375, -0.0361328125, 0.009490966796875, 0.0105743408203125, 0.0261993408203125, 0.0081939697265625, -0.0570068359375, 0.0023899078369140625, 0.0423583984375, -0.0179290771484375, -0.000591278076171875, -0.01390838623046875, 0.0124969482421875, 0.0010004043579101562, 0.00881195068359375, -0.0033016204833984375, -0.01132965087890625, 0.004810333251953125, 0.0236358642578125, 0.012786865234375, 0.024566650390625, -0.0211944580078125, 0.01214599609375, 0.013275146484375, 0.021392822265625, -0.0033779144287109375, 0.01397705078125, 0.035614013671875, -0.01181793212890625, -0.0178375244140625, 0.0035247802734375, 0.00383758544921875, 0.002201080322265625, -0.01076507568359375, 0.0278472900390625, -0.0135650634765625, -0.01226806640625, -0.0236358642578125, -0.0338134765625, 0.0059356689453125, 0.00201416015625, 0.004955291748046875, 0.00693511962890625, 0.033782958984375, 0.01617431640625, -0.002269744873046875, 0.0031642913818359375, 0.01346588134765625, -0.01389312744140625, 0.047027587890625, -0.04083251953125, 0.06695556640625, -0.0479736328125, 0.02337646484375, 0.048797607421875, -0.036834716796875, 0.0237884521484375, -0.0011844635009765625, -0.00792694091796875, -0.039337158203125, 0.0211334228515625, -0.0171661376953125, -0.0550537109375, -0.028564453125, -0.005039215087890625, 0.00937652587890625, 0.0167694091796875, 0.0209197998046875, -0.0208740234375, 0.0184173583984375, 0.0255584716796875, -0.0019102096557617188, -0.023162841796875, 0.04071044921875, -0.05670166015625, -0.01056671142578125, -0.009613037109375, -0.033660888671875, -0.016204833984375, 0.021331787109375, -0.01337432861328125, -0.005702972412109375, -0.032135009765625, -0.0908203125, -0.06317138671875, -0.0860595703125, 0.01300811767578125, -0.003204345703125, 0.0167694091796875, 0.007793426513671875, 0.03485107421875, 0.01158905029296875, -0.033660888671875, 0.02667236328125, 0.019317626953125, -0.011199951171875, 0.007747650146484375, -0.032135009765625, -0.01241302490234375, 0.0093536376953125, -0.0207672119140625, 0.01885986328125, 0.022979736328125, 0.007053375244140625, 0.0243988037109375, -0.0152587890625, -0.01186370849609375, 0.01100921630859375, 0.0229034423828125, 0.02398681640625, 0.0154571533203125, 0.059417724609375, -0.0166473388671875, -0.03765869140625, -0.0391845703125, -0.0478515625, 0.04547119140625, 0.02166748046875, 0.012542724609375, -0.0127410888671875, 0.02386474609375, 0.01800537109375, 0.0187835693359375, 0.044830322265625, -0.017730712890625, 0.0019741058349609375, -0.0157928466796875, -0.007404327392578125, -0.035552978515625, 0.06170654296875, 0.0058135986328125, -0.00858306884765625, 0.026641845703125, 0.007045745849609375, -0.007293701171875, 0.004119873046875, -0.045562744140625, -0.046173095703125, 0.0445556640625, -0.05914306640625, 0.032470703125, -0.0958251953125, -0.0242156982421875, -0.06256103515625, 0.0662841796875, -0.05413818359375, -0.01546478271484375, 0.00022280216217041016, 0.0178985595703125, 0.003795623779296875, -0.0305633544921875, -0.020660400390625, -0.0222320556640625, -0.045989990234375, 0.0033168792724609375, -0.0014867782592773438, -0.0120391845703125, -0.009429931640625, 0.028594970703125, -0.026611328125, -0.0287628173828125, 0.02655029296875, -0.00930023193359375, -0.00030612945556640625, 0.039459228515625, -0.00821685791015625, 0.0208587646484375, -0.032470703125, -0.01381683349609375, -0.0478515625, -0.0224609375, 0.0193328857421875, 0.06072998046875, 0.01141357421875, -0.05084228515625, -0.0013093948364257812, 0.05975341796875, 0.002651214599609375, 0.0160675048828125, 0.0012350082397460938, -0.006378173828125, -0.0054779052734375, 0.02117919921875, 0.0033016204833984375, 0.0029888153076171875, -0.007160186767578125, -0.0333251953125, -0.041229248046875, -0.0041656494140625, -0.0298004150390625, 0.031890869140625, -0.0201416015625, -0.003993988037109375, -0.09271240234375, -0.04473876953125, -0.01041412353515625, 0.003265380859375, 0.0208740234375, -0.024871826171875, -0.053680419921875, -0.0804443359375, 0.0253753662109375, 0.0164947509765625, 0.0162353515625, -0.0262908935546875, 0.07012939453125, 0.033599853515625, -0.031829833984375, 0.053955078125, 0.021209716796875, 0.01358795166015625, -0.037353515625, 0.030120849609375, 0.004962921142578125, 0.0099334716796875, 0.0148162841796875, -0.034271240234375, 0.020477294921875, 0.00913238525390625, -0.007007598876953125, 0.003849029541015625, -0.0201263427734375, 0.01849365234375, -0.006427764892578125, 0.0088653564453125, 0.0478515625, -0.0167694091796875, -0.027587890625, -0.0293426513671875, 0.059112548828125, -0.0097198486328125, 0.024169921875, -0.06243896484375, -0.039215087890625, 0.0243988037109375, -0.0294952392578125, 0.043609619140625, -0.0032215118408203125, 0.0026092529296875, 0.03369140625, -0.010223388671875, 0.001667022705078125, -0.0267791748046875, -0.01393890380859375, -0.0144500732421875, 0.031982421875, -0.01366424560546875, -0.00374603271484375, -0.0272369384765625, -0.007076263427734375, 0.05950927734375, 0.0167236328125, 0.01529693603515625, -0.047027587890625, -0.009735107421875, 0.0079498291015625, -0.0274505615234375, 0.0266571044921875, 0.0350341796875, 0.0248870849609375, 0.011016845703125, 0.003093719482421875, -0.0214385986328125, 0.032318115234375, -0.029876708984375, 0.01248931884765625, 0.01396942138671875, -0.00432586669921875, -0.056488037109375, 0.08001708984375, 0.0270843505859375, -0.006481170654296875, -0.0102691650390625, 0.004486083984375, 0.0256195068359375, 0.022796630859375, 0.026336669921875, -0.02264404296875, 0.004764556884765625, -0.0010290145874023438, 0.029632568359375, -0.02850341796875, 0.0023746490478515625, 0.0372314453125, 0.039306640625, -0.00858306884765625, -0.01314544677734375, -0.01629638671875, -0.032928466796875, -0.039398193359375, 0.005374908447265625, -0.004871368408203125, -0.0149688720703125, -0.042236328125, -0.028106689453125, 0.0179901123046875, 0.027099609375, 0.0035076141357421875, 0.007732391357421875, 0.0053558349609375, 0.038787841796875, 0.0262298583984375, 0.0357666015625, -0.01953125, -0.023101806640625, 0.04339599609375, -0.019195556640625, -0.0153961181640625, -0.0127105712890625, 0.00623321533203125, -0.0285186767578125, -0.001499176025390625, 0.05303955078125, -0.0156707763671875, 0.0621337890625, -0.048797607421875, 0.0005745887756347656, 0.042510986328125, -0.01314544677734375, 0.05029296875, 0.006595611572265625, -0.0491943359375, 0.03271484375, -0.01482391357421875, 0.019256591796875, 0.015411376953125, -0.035614013671875, -0.01421356201171875, -0.03411865234375, -0.033203125, 0.025543212890625, -0.005504608154296875, 0.053924560546875, 0.0021190643310546875, 0.0271148681640625, -0.0323486328125, 0.0235748291015625, -0.00823211669921875, 0.05926513671875, -0.045257568359375, 0.043609619140625, -0.00887298583984375, 0.0276641845703125, -0.0083465576171875, -0.01442718505859375, -0.0115509033203125, -0.041046142578125, -0.0311126708984375, 0.016815185546875, -0.005733489990234375, 0.05047607421875, 0.06365966796875, -0.0026416778564453125, 0.037506103515625, 0.007083892822265625, 0.0021152496337890625, -0.0008511543273925781, -0.05889892578125, 0.0007662773132324219, 0.030059814453125, 0.0223541259765625, 0.01010894775390625, 0.066650390625, -0.0296783447265625, -0.0027828216552734375, -0.025177001953125, -0.017333984375, 0.0021724700927734375, 0.033416748046875, -0.0618896484375, 0.04046630859375, 0.0345458984375, 0.038787841796875, 0.049346923828125, -0.001331329345703125, 0.02972412109375, -0.006317138671875, -0.037811279296875, 0.0447998046875, 0.031219482421875, 0.03167724609375, -0.028472900390625, 0.030548095703125, 0.0231781005859375, -0.004283905029296875, -0.03350830078125, -0.0169525146484375, 0.009613037109375, 0.0120391845703125, -0.009979248046875, -0.01313018798828125, 0.0225982666015625, 0.032318115234375, 0.0262451171875, 0.01031494140625, 0.0277252197265625, 0.006134033203125, -0.046783447265625, -0.01439666748046875, 0.013641357421875, -0.010345458984375, -0.00811767578125, -0.03387451171875, 0.00717926025390625, -0.0125579833984375, 0.0247955322265625, -0.0338134765625, -0.02630615234375, -0.01971435546875, -0.0087127685546875, -0.01483154296875, 0.028961181640625, -0.0295562744140625, -0.0190277099609375, 0.046356201171875, -0.04632568359375, 0.0170745849609375, 0.0290985107421875, 0.030548095703125, -0.00310516357421875, 0.01438140869140625, 0.00528717041015625, -0.006580352783203125, -0.0133819580078125, -0.03533935546875, 0.02960205078125, -0.0285186767578125, 0.004039764404296875, 0.008026123046875, -0.01548004150390625, 0.005840301513671875, -0.0016126632690429688, -0.0207061767578125, 0.00177001953125, -0.058349609375, 0.0218658447265625, -0.042388916015625, -0.00046634674072265625, 0.00864410400390625, 0.0147857666015625, 0.01519012451171875, 0.0030689239501953125, 0.030517578125, -0.07635498046875, -0.08984375, 0.0215606689453125, -0.109375, -0.0411376953125, -0.01141357421875, -0.063720703125, 0.09417724609375, 0.01434326171875, 0.033050537109375, 0.01403045654296875, 0.044769287109375, -0.0200653076171875, 0.0172882080078125, -0.030487060546875, 0.0533447265625, 0.0283203125, 0.04962158203125, -0.044647216796875, -0.031494140625, 0.03924560546875, 0.0677490234375, 0.09820556640625, 0.0208892822265625, -0.09393310546875, 0.0009489059448242188, 0.08563232421875, 0.036102294921875, 0.0221710205078125, 0.080078125, -0.011871337890625, 0.03668212890625, 0.0071868896484375, -0.027313232421875, 0.02288818359375, -0.02972412109375, -0.04833984375, -0.0002346038818359375, 0.0157623291015625, 0.0199127197265625, 0.00794219970703125, 0.01727294921875, 0.01313018798828125, -0.0052642822265625, 0.0081634521484375, -0.03924560546875, 0.0217132568359375, -0.007228851318359375, 0.033447265625, -0.061676025390625, -0.05401611328125, -0.01171875, 0.039306640625, 0.0034923553466796875, 0.0054931640625, 0.017181396484375, 0.007747650146484375, -0.0044403076171875, 0.01073455810546875, 0.0019283294677734375, 0.0203704833984375, 0.0007638931274414062, 0.062103271484375, 0.0379638671875, 0.0209197998046875, 0.005279541015625, 0.03509521484375, 0.05810546875, 0.07977294921875, -0.06396484375, -0.0528564453125, 0.01023101806640625, 0.005344390869140625, 0.01151275634765625, -0.002994537353515625, 0.0272216796875, 0.02197265625, 0.0294189453125, -0.06793212890625, 0.003101348876953125, 0.00868988037109375, 0.04296875, -0.0175628662109375, -0.00435638427734375, -0.019134521484375, -0.0200042724609375, -0.056732177734375, -0.00887298583984375, 0.0167694091796875, 0.11639404296875, 0.056304931640625, 0.058685302734375, -0.05615234375, -0.06732177734375, -0.00168609619140625, 0.00025725364685058594, 0.02069091796875, 0.005584716796875, -0.01465606689453125, -0.00994873046875, 0.043792724609375, 0.0179595947265625, 0.0487060546875, 0.034576416015625, 0.039154052734375, -0.0225830078125, -0.0338134765625, 0.006832122802734375, 0.0291748046875, -0.041656494140625, 0.039398193359375, -0.0252532958984375, 0.040679931640625, -0.0053863525390625, 0.0012416839599609375, -0.03790283203125, 0.059967041015625, -0.0016307830810546875, 0.002532958984375, 0.02703857421875, 0.0135040283203125, -0.0197296142578125, 0.0162353515625, 0.04876708984375, 0.0625, 0.0557861328125, -0.03765869140625, 0.001361846923828125, -0.0240478515625, -0.0750732421875, 0.033447265625, 0.047088623046875, -0.021728515625, -0.00836944580078125, -0.005565643310546875, -0.0309295654296875, 0.01153564453125, 0.0036983489990234375, -0.0025310516357421875, -0.005931854248046875, 0.0023975372314453125, -0.0204925537109375, -0.0223388671875, 0.00281524658203125, 0.0092620849609375, 0.002368927001953125, 0.005237579345703125, 0.1171875, -0.03564453125, -0.014373779296875, -0.033660888671875, 0.007602691650390625, -0.021209716796875, -0.0118255615234375, 0.01168060302734375, 0.00370025634765625, -0.01160430908203125, -0.007228851318359375, -0.031768798828125, 0.00644683837890625, 0.059600830078125, -0.027923583984375, 0.038482666015625, -0.03289794921875, 0.0190277099609375, -0.057037353515625, 0.02679443359375, -0.0311431884765625, -0.045989990234375, -0.02923583984375, -0.005229949951171875, 0.0257110595703125, 0.00814056396484375, -0.03826904296875, 0.042022705078125, 0.022308349609375, 0.004970550537109375, 0.006565093994140625, -0.016357421875, 0.02801513671875, 0.045745849609375, -0.0157623291015625, -0.009490966796875, 0.060211181640625, -0.002170562744140625, 0.0164031982421875, 0.00981903076171875, 0.03363037109375, 0.058563232421875, -0.07611083984375, 0.0019464492797851562, -0.00778961181640625, 0.016693115234375, 0.0024394989013671875, 0.00553131103515625, -0.02850341796875, -0.023529052734375, 0.00965118408203125, -0.036376953125, -0.035400390625, -0.052825927734375, 0.00875091552734375, 0.039093017578125, -0.01259613037109375, -0.0120086669921875, -0.06243896484375, 0.044219970703125, 0.040069580078125, 0.0128631591796875, -0.071044921875, 0.0562744140625, -0.046295166015625, 0.07904052734375, -0.01036834716796875, -0.0011234283447265625, -0.0014553070068359375, 0.0204620361328125, -0.04107666015625, -0.028167724609375, -0.032867431640625, 0.014678955078125, -0.041839599609375, 0.035858154296875, 0.0548095703125, -0.037384033203125, -0.0190887451171875, 0.00879669189453125, 0.032196044921875, 0.0643310546875, -0.0134735107421875, -0.030517578125, -0.007080078125, 0.03228759765625, -0.0027523040771484375, -0.0213775634765625, 0.004878997802734375, -0.016510009765625, 0.00859832763671875, 0.002307891845703125, -0.01497650146484375, -0.0136566162109375, -0.0562744140625, -0.04913330078125, 0.071533203125, 0.0004875659942626953, -0.0221405029296875, -0.053070068359375, 0.00885009765625, -0.0241851806640625, 0.047882080078125, -0.01047515869140625, -0.047332763671875, -0.0085906982421875, 0.04241943359375, 0.00595855712890625, -0.004131317138671875, 0.017547607421875, 0.0288848876953125, -0.00949859619140625, 0.029052734375, 0.0233917236328125, -0.028900146484375, 0.0226287841796875, -0.01206207275390625, 0.0321044921875, 0.005977630615234375, -0.05657958984375, 0.0205230712890625, -0.01334381103515625, 0.0011196136474609375, -0.006069183349609375, -0.020538330078125, -0.024505615234375, -0.00948333740234375, 0.1173095703125, 0.01262664794921875, 0.0198516845703125, -0.0165557861328125, -0.0340576171875, -0.046173095703125, -0.02947998046875, -0.0224609375, 0.027008056640625, -0.0850830078125, -0.015899658203125, 0.0207977294921875, 0.01303863525390625, -0.0227508544921875, -0.0294647216796875, -0.00200653076171875, -0.02716064453125, 0.024383544921875, 0.0264892578125, -0.00562286376953125, 0.0172119140625, 0.038909912109375, -0.02838134765625, 0.0022945404052734375, 0.0019893646240234375, -0.00579833984375, 0.00980377197265625, -0.01325225830078125, -0.0098876953125, -0.035003662109375, 0.006290435791015625, 0.0221405029296875, -0.0023288726806640625, 0.040557861328125, -0.01000213623046875, -0.027587890625, -0.04278564453125, -0.013214111328125, 0.01329803466796875, -0.040771484375, -0.044769287109375, 0.033538818359375, 0.00713348388671875, 0.07733154296875, -0.014739990234375, -0.0032749176025390625, 0.00604248046875, 0.01534271240234375, -0.0361328125, 0.0333251953125, -0.0009751319885253906, -0.023712158203125, -0.0006794929504394531, -0.0204010009765625, -0.024200439453125, -0.04962158203125, -0.00180816650390625, -0.02093505859375, -0.0228729248046875, 0.0209808349609375 ]
f915667bb75a12f9fd0b7f8d0763c17fa310d3ae
Wordpress Stackexchange Q: Add custom Attachment Display Setting for images I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ability to add an anchor with a class around all images in posts. A: This will add a field in the attachment edit screen for applying a class to the img tag. function IMGattachment_fields($form_fields, $post) { $form_fields["imageClass"]["label"] = __("Image Class"); $form_fields["imageClass"]["value"] = get_post_meta($post->ID, "_imageClass", true); return $form_fields; } add_filter("attachment_fields_to_edit", "IMGattachment_fields", null, 2); function my_image_attachment_fields_save($post, $attachment) { if ( isset($attachment['imageClass']) ) update_post_meta($post['ID'], '_imageClass', $attachment['imageClass']); return $post; } add_filter("attachment_fields_to_save", "my_image_attachment_fields_save", null, 2);
Q: Add custom Attachment Display Setting for images I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ability to add an anchor with a class around all images in posts. A: This will add a field in the attachment edit screen for applying a class to the img tag. function IMGattachment_fields($form_fields, $post) { $form_fields["imageClass"]["label"] = __("Image Class"); $form_fields["imageClass"]["value"] = get_post_meta($post->ID, "_imageClass", true); return $form_fields; } add_filter("attachment_fields_to_edit", "IMGattachment_fields", null, 2); function my_image_attachment_fields_save($post, $attachment) { if ( isset($attachment['imageClass']) ) update_post_meta($post['ID'], '_imageClass', $attachment['imageClass']); return $post; } add_filter("attachment_fields_to_save", "my_image_attachment_fields_save", null, 2); A: You just need to add this to your theme's functions.php file: /** * Attach a class to linked images' parent anchors * e.g. a img => a.img img */ function give_linked_images_class($html, $id, $caption, $title, $align, $url, $size, $alt = '' ) { $classes = 'img'; // separated by spaces, e.g. 'img image-link' // check if there are already classes assigned to the anchor if ( preg_match('/<a.*? class=".*?">/', $html) ) { $html = preg_replace('/(<a.*? class=".*?)(".*?>)/', '$1 ' . $classes . '$2', $html); } else { $html = preg_replace('/(<a.*?)>/', '$1 class="' . $classes . '" >', $html); } return $html; } add_filter('image_send_to_editor','give_linked_images_class',10,8);
wordpress
{ "language": "en", "length": 218, "provenance": "stackexchange_00019.jsonl.gz:441052", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129416" }
[ 0.07489013671875, -0.0184478759765625, 0.048248291015625, -0.0254364013671875, -0.0037937164306640625, -0.0244293212890625, 0.0533447265625, -0.05108642578125, -0.01258087158203125, 0.006378173828125, -0.008453369140625, 0.00498199462890625, -0.02789306640625, -0.0308990478515625, -0.0032978057861328125, -0.0189971923828125, 0.033599853515625, -0.020050048828125, 0.05902099609375, 0.00876617431640625, 0.03448486328125, 0.024505615234375, 0.0615234375, -0.0178985595703125, -0.00101470947265625, 0.043853759765625, 0.051544189453125, -0.034149169921875, 0.01433563232421875, 0.0005769729614257812, 0.00685882568359375, -0.0232086181640625, 0.0433349609375, 0.00475311279296875, -0.021636962890625, 0.056671142578125, 0.02313232421875, -0.0162811279296875, -0.0221405029296875, 0.04302978515625, 0.023834228515625, -0.00392913818359375, 0.018890380859375, 0.01442718505859375, -0.02191162109375, -0.0193328857421875, 0.037261962890625, -0.00965118408203125, 0.0284576416015625, -0.0288238525390625, 0.0138397216796875, 0.02020263671875, 0.0207672119140625, -0.0182342529296875, -0.0157470703125, 0.0036830902099609375, -0.0601806640625, 0.03936767578125, 0.0236358642578125, 0.01381683349609375, -0.0202789306640625, -0.0213623046875, 0.01345062255859375, -0.03057861328125, 0.00775909423828125, -0.0276641845703125, -0.0006852149963378906, 0.02728271484375, -0.03662109375, -0.0163726806640625, 0.02410888671875, -0.031036376953125, 0.02069091796875, -0.06280517578125, 0.0060577392578125, 0.0306243896484375, -0.0018758773803710938, -0.004119873046875, -0.00943756103515625, -0.00528717041015625, 0.0288238525390625, -0.041778564453125, -0.0080108642578125, 0.00260162353515625, 0.01495361328125, 0.00942230224609375, 0.0032978057861328125, -0.01479339599609375, 0.0020542144775390625, -0.0350341796875, -0.0017881393432617188, -0.048919677734375, -0.0188140869140625, 0.02520751953125, -0.0062255859375, -0.049346923828125, 0.0213165283203125, 0.01441192626953125, 0.0272064208984375, 0.0142974853515625, 0.0242919921875, -0.06744384765625, 0.038482666015625, -0.034637451171875, 0.012298583984375, 0.0263824462890625, 0.007160186767578125, -0.048431396484375, -0.0030269622802734375, -0.0007543563842773438, -0.019500732421875, -0.0008530616760253906, 0.0189971923828125, 0.041290283203125, -0.034454345703125, -0.045074462890625, -0.03900146484375, 0.004833221435546875, -0.025543212890625, -0.0003275871276855469, 0.0251922607421875, 0.0248260498046875, 0.014495849609375, -0.0147247314453125, -0.002338409423828125, -0.013336181640625, -0.04071044921875, -0.037811279296875, 0.058563232421875, -0.0291900634765625, -0.050323486328125, 0.0297698974609375, 0.0648193359375, 0.01119232177734375, 0.031005859375, 0.007579803466796875, -0.01346588134765625, -0.041473388671875, -0.0251617431640625, 0.055816650390625, -0.00860595703125, -0.04266357421875, 0.005016326904296875, -0.0097808837890625, -0.0226593017578125, 0.0247650146484375, 0.00945281982421875, 0.00984954833984375, -0.01214599609375, -0.10302734375, 0.053955078125, -0.0474853515625, 0.04168701171875, 0.03216552734375, -0.036102294921875, 0.024749755859375, 0.050506591796875, -0.00843048095703125, -0.041717529296875, -0.0546875, 0.0082244873046875, -0.003131866455078125, 0.0181121826171875, -0.035369873046875, -0.0209503173828125, 0.0063018798828125, -0.070556640625, -0.01328277587890625, 0.0199127197265625, -0.01806640625, 0.0218658447265625, 0.00897979736328125, 0.0189666748046875, 0.0038852691650390625, 0.0037708282470703125, 0.0014600753784179688, 0.005615234375, 0.004314422607421875, 0.039031982421875, 0.03192138671875, -0.005680084228515625, -0.0272979736328125, 0.0672607421875, -0.0406494140625, -0.03521728515625, 0.037078857421875, -0.0102996826171875, 0.0390625, 0.040283203125, 0.00859832763671875, -0.0296173095703125, 0.0081634521484375, -0.039398193359375, 0.007328033447265625, -0.018646240234375, 0.01032257080078125, -0.00852203369140625, 0.0226287841796875, -0.0167694091796875, -0.0032444000244140625, -0.0133819580078125, -0.00881195068359375, -0.00037407875061035156, 0.0185089111328125, -0.00922393798828125, 0.0014238357543945312, -0.0021572113037109375, 0.0178375244140625, -0.06890869140625, -0.0164794921875, 0.03277587890625, -0.03204345703125, 0.00014483928680419922, -0.0380859375, 0.0038623809814453125, 0.0034084320068359375, 0.00027561187744140625, 0.0177764892578125, 0.007328033447265625, 0.0209197998046875, -0.018402099609375, -0.02099609375, -0.025482177734375, -0.01216888427734375, 0.01456451416015625, 0.010345458984375, -0.0186920166015625, -0.001735687255859375, 0.023193359375, 0.0159149169921875, -0.00893402099609375, 0.021514892578125, -0.0171051025390625, -0.031982421875, -0.049285888671875, -0.023956298828125, -0.0467529296875, -0.083984375, 0.006130218505859375, 0.07470703125, 0.032073974609375, 0.009124755859375, -0.0090179443359375, 0.002162933349609375, 0.06744384765625, 0.06817626953125, 0.049835205078125, -0.0299835205078125, -0.0175628662109375, -0.0077362060546875, -0.0182647705078125, 0.0036716461181640625, 0.032257080078125, -0.07647705078125, 0.024078369140625, 0.044342041015625, -0.03753662109375, -0.0185089111328125, 0.00458526611328125, -0.009307861328125, 0.0156097412109375, 0.00792694091796875, -0.004665374755859375, -0.006256103515625, 0.01305389404296875, 0.040618896484375, 0.04217529296875, 0.0233001708984375, -0.042510986328125, 0.03955078125, 0.0086517333984375, -0.0178680419921875, -0.004154205322265625, -0.0089111328125, -0.0230712890625, 0.0041656494140625, -0.0269317626953125, 0.0178680419921875, 0.01043701171875, -0.01221466064453125, -0.003971099853515625, 0.026123046875, -0.022186279296875, -0.01425933837890625, 0.002872467041015625, -0.0953369140625, 0.00019085407257080078, -0.0092315673828125, -0.04339599609375, -0.0506591796875, 0.007511138916015625, 0.003692626953125, -0.0160675048828125, -0.0051422119140625, 0.0020732879638671875, -0.039764404296875, -0.02606201171875, -0.047119140625, 0.056854248046875, -0.06439208984375, 0.0343017578125, 0.06976318359375, -0.044525146484375, 0.0498046875, -0.00720977783203125, -0.01727294921875, -0.019744873046875, 0.0167083740234375, -0.01036834716796875, -0.04803466796875, -0.004543304443359375, 0.0027980804443359375, 0.01091766357421875, 0.030548095703125, -0.033660888671875, -0.055145263671875, -0.0214996337890625, -0.003673553466796875, -0.056854248046875, -0.0262451171875, -0.002353668212890625, -0.0733642578125, -0.0341796875, 0.020263671875, -0.0443115234375, 0.01473236083984375, 0.05792236328125, 0.01049041748046875, -0.038726806640625, -0.00531005859375, 0.0231475830078125, -0.017578125, -0.0172882080078125, -0.02447509765625, 0.0191650390625, 0.016357421875, 0.0007605552673339844, 0.041778564453125, 0.0081329345703125, -0.0141448974609375, 0.040435791015625, -0.0303192138671875, 0.0016393661499023438, 0.0261688232421875, -0.0221099853515625, -0.04254150390625, 0.01318359375, -0.01910400390625, 0.033935546875, 0.0111236572265625, 0.01029205322265625, 0.006496429443359375, -0.040283203125, -0.0006093978881835938, -0.0135650634765625, 0.035888671875, 0.046295166015625, 0.004119873046875, 0.01120758056640625, -0.03375244140625, 0.0245513916015625, -0.0161895751953125, 0.00469207763671875, -0.024169921875, -0.005176544189453125, -0.036865234375, -0.039337158203125, 0.021575927734375, -0.023223876953125, -0.0193023681640625, 0.0246124267578125, -0.0233154296875, -0.0009570121765136719, -0.006145477294921875, -0.0073089599609375, 0.0017080307006835938, -0.00519561767578125, -0.0228424072265625, 0.04620361328125, 0.00457763671875, 0.007274627685546875, -0.0197906494140625, 0.035552978515625, -0.0426025390625, -0.07861328125, 0.0404052734375, -0.047271728515625, 0.039337158203125, -0.061553955078125, -0.0256500244140625, -0.0033245086669921875, 0.11077880859375, -0.036376953125, -0.032470703125, 0.002166748046875, 0.02581787109375, -0.01450347900390625, -0.0253143310546875, 0.00997161865234375, -0.012054443359375, -0.062408447265625, 0.026092529296875, 0.0163116455078125, -0.0257415771484375, -0.02740478515625, -0.0119781494140625, -0.0478515625, -0.027099609375, 0.0197601318359375, 0.0038280487060546875, -0.01070404052734375, 0.059356689453125, -0.0237274169921875, 0.05657958984375, -0.0167999267578125, -0.01727294921875, -0.14892578125, -0.0190887451171875, 0.01168060302734375, 0.097412109375, -0.0269622802734375, 0.02374267578125, -0.0235748291015625, 0.0767822265625, 0.029388427734375, -0.01267242431640625, 0.0310516357421875, -0.0035686492919921875, 0.001682281494140625, -0.0191497802734375, 0.0219268798828125, -0.04095458984375, 0.00965118408203125, -0.02850341796875, -0.04571533203125, -0.0258026123046875, -0.0231475830078125, 0.0041961669921875, 0.02117919921875, -0.042388916015625, 0.00261688232421875, -0.004940032958984375, 0.017669677734375, 0.03631591796875, 0.00553131103515625, -0.00897979736328125, -0.0201568603515625, -0.017425537109375, -0.0233306884765625, -0.04205322265625, -0.00347900390625, 0.038787841796875, 0.07061767578125, 0.0234222412109375, 0.0301666259765625, -0.0670166015625, 0.003692626953125, 0.03582763671875, -0.005664825439453125, 0.02984619140625, 0.018585205078125, -0.01654052734375, 0.05126953125, 0.0002467632293701172, 0.01519775390625, -0.08209228515625, 0.08892822265625, -0.01291656494140625, 0.00727081298828125, 0.005016326904296875, -0.05084228515625, 0.049652099609375, -0.001735687255859375, -0.0158233642578125, -0.0288238525390625, 0.01178741455078125, 0.034393310546875, -0.01690673828125, 0.04364013671875, -0.016265869140625, -0.0301666259765625, 0.00004744529724121094, -0.0294342041015625, 0.033935546875, 0.0257720947265625, 0.0013608932495117188, 0.031341552734375, 0.0200042724609375, -0.007755279541015625, 0.0015707015991210938, -0.0006971359252929688, 0.0167083740234375, 0.022064208984375, 0.01244354248046875, -0.0024127960205078125, -0.0166015625, 0.0038242340087890625, 0.0257568359375, 0.007488250732421875, -0.036590576171875, -0.0135040283203125, -0.0089111328125, 0.0020809173583984375, 0.005413055419921875, -0.0165557861328125, 0.022552490234375, -0.00762939453125, -0.0030727386474609375, -0.0114288330078125, -0.07086181640625, 0.0242919921875, -0.046539306640625, 0.0211029052734375, 0.0170745849609375, -0.01258087158203125, 0.019195556640625, 0.01055908203125, -0.01375579833984375, 0.00769805908203125, 0.0036678314208984375, 0.0238494873046875, 0.04058837890625, 0.0005331039428710938, 0.019134521484375, 0.01947021484375, -0.0281524658203125, -0.00835418701171875, 0.003055572509765625, -0.0406494140625, 0.022369384765625, 0.00939178466796875, 0.051422119140625, -0.007747650146484375, -0.040313720703125, 0.0158538818359375, -0.0474853515625, -0.023468017578125, 0.044586181640625, 0.0185546875, -0.054351806640625, -0.0153656005859375, 0.0009937286376953125, 0.007221221923828125, -0.0183563232421875, -0.0181732177734375, 0.01439666748046875, -0.014862060546875, 0.00811004638671875, -0.01349639892578125, -0.0400390625, 0.00705718994140625, 0.013580322265625, -0.041595458984375, -0.0034122467041015625, -0.015380859375, -0.0085906982421875, -0.0340576171875, -0.00043964385986328125, -0.019378662109375, 0.0249481201171875, -0.0254974365234375, 0.01702880859375, -0.0379638671875, -0.0086212158203125, -0.051239013671875, 0.024139404296875, 0.01416778564453125, -0.002117156982421875, 0.01387786865234375, -0.010833740234375, -0.02899169921875, -0.0157012939453125, -0.0068206787109375, -0.02911376953125, 0.01091766357421875, -0.021087646484375, 0.0269317626953125, 0.0290069580078125, 0.002956390380859375, -0.040313720703125, -0.0295562744140625, 0.0029296875, 0.035675048828125, 0.046630859375, 0.039794921875, 0.0192718505859375, -0.0188751220703125, 0.06158447265625, 0.0172271728515625, -0.0241546630859375, -0.064697265625, -0.0178985595703125, -0.01107025146484375, -0.054229736328125, -0.00251007080078125, 0.038055419921875, -0.0160675048828125, 0.020721435546875, 0.003574371337890625, 0.007511138916015625, -0.0084991455078125, -0.0242462158203125, -0.0080413818359375, -0.0255279541015625, 0.0355224609375, -0.0161590576171875, -0.0094146728515625, 0.0015001296997070312, -0.018096923828125, 0.03851318359375, -0.0099029541015625, 0.0015516281127929688, 0.0330810546875, -0.034027099609375, 0.034942626953125, 0.00787353515625, -0.0244598388671875, 0.01125335693359375, 0.03265380859375, 0.00843048095703125, 0.0286865234375, 0.0025577545166015625, 0.0085296630859375, 0.01032257080078125, 0.0207061767578125, -0.0177001953125, -0.026947021484375, 0.069091796875, 0.0108795166015625, -0.02459716796875, 0.052001953125, -0.0294342041015625, 0.04345703125, -0.0078887939453125, 0.0589599609375, -0.022674560546875, 0.047821044921875, 0.00441741943359375, -0.01025390625, 0.0838623046875, -0.016265869140625, 0.0293121337890625, 0.04632568359375, 0.019744873046875, -0.051025390625, -0.0406494140625, -0.00916290283203125, -0.0272674560546875, -0.000896453857421875, -0.0020847320556640625, -0.0224761962890625, -0.0168609619140625, -0.0247650146484375, -0.046783447265625, 0.0440673828125, -0.040313720703125, -0.006542205810546875, 0.0025844573974609375, 0.0060272216796875, -0.008544921875, -0.060028076171875, -0.004001617431640625, -0.06024169921875, 0.0042266845703125, 0.0027561187744140625, 0.00787353515625, 0.049407958984375, 0.03924560546875, -0.0023040771484375, 0.01071929931640625, 0.01381683349609375, -0.012115478515625, -0.016693115234375, -0.0092926025390625, 0.019134521484375, 0.02532958984375, -0.0743408203125, 0.0162811279296875, -0.047271728515625, 0.0154876708984375, -0.01277923583984375, -0.01197052001953125, 0.055084228515625, -0.04681396484375, -0.00762939453125, 0.0180206298828125, 0.041015625, -0.0027179718017578125, -0.007068634033203125, 0.005092620849609375, -0.04180908203125, -0.0206756591796875, -0.0238189697265625, -0.061126708984375, -0.0009965896606445312, -0.0457763671875, -0.064697265625, 0.07952880859375, -0.0172271728515625, 0.039215087890625, 0.0091705322265625, 0.0347900390625, -0.00010460615158081055, 0.01885986328125, -0.00749969482421875, 0.0147857666015625, -0.0224151611328125, -0.004787445068359375, -0.0667724609375, -0.01277923583984375, -0.031829833984375, 0.05902099609375, 0.0328369140625, 0.0128173828125, -0.0256500244140625, -0.0127410888671875, 0.0357666015625, 0.043701171875, 0.0103912353515625, 0.017059326171875, -0.010467529296875, -0.00991058349609375, 0.0179290771484375, -0.0169219970703125, 0.017303466796875, -0.00756072998046875, -0.015899658203125, 0.030181884765625, -0.01412200927734375, -0.0061492919921875, 0.005702972412109375, 0.04962158203125, -0.034088134765625, -0.00106048583984375, 0.035980224609375, -0.056182861328125, 0.00534820556640625, 0.0372314453125, 0.01544952392578125, -0.02294921875, -0.01390838623046875, -0.0307769775390625, 0.03692626953125, -0.0028533935546875, 0.031097412109375, 0.0216827392578125, 0.00583648681640625, 0.0218353271484375, 0.031646728515625, 0.0150604248046875, 0.02288818359375, 0.0054473876953125, -0.004093170166015625, -0.0182647705078125, -0.002597808837890625, -0.034088134765625, 0.0276031494140625, 0.0286407470703125, 0.00672149658203125, -0.0308837890625, -0.015655517578125, 0.01178741455078125, -0.010711669921875, 0.002410888671875, -0.0330810546875, -0.01390838623046875, -0.040435791015625, -0.0306396484375, -0.047821044921875, 0.0211181640625, 0.0238189697265625, 0.036346435546875, -0.026519775390625, 0.00530242919921875, -0.0655517578125, -0.009185791015625, -0.031768798828125, -0.0013074874877929688, -0.0196075439453125, 0.019927978515625, 0.04705810546875, 0.02294921875, 0.04632568359375, -0.01311492919921875, -0.0364990234375, 0.0433349609375, 0.0107269287109375, 0.0428466796875, -0.0222625732421875, -0.0102081298828125, -0.005157470703125, 0.0178680419921875, 0.005329132080078125, 0.0001533031463623047, 0.0222625732421875, 0.02508544921875, -0.0221099853515625, -0.010162353515625, 0.00243377685546875, -0.0234375, 0.0171356201171875, -0.035125732421875, 0.051177978515625, 0.058807373046875, 0.009613037109375, -0.0118560791015625, -0.035675048828125, 0.10601806640625, -0.033294677734375, 0.035400390625, -0.018707275390625, -0.00733184814453125, 0.0223388671875, 0.01374053955078125, 0.06842041015625, 0.01374053955078125, -0.08367919921875, -0.00830841064453125, -0.029083251953125, -0.08685302734375, 0.052978515625, 0.05841064453125, -0.06353759765625, 0.0256805419921875, -0.0039005279541015625, -0.037261962890625, 0.020904541015625, 0.005260467529296875, -0.006572723388671875, -0.0117645263671875, -0.008514404296875, -0.027801513671875, -0.055419921875, -0.010833740234375, -0.0227813720703125, 0.01015472412109375, 0.0014486312866210938, 0.07122802734375, -0.006137847900390625, 0.01305389404296875, -0.02099609375, -0.0015926361083984375, -0.0142059326171875, -0.005496978759765625, -0.01036834716796875, -0.0013322830200195312, -0.005603790283203125, -0.015960693359375, 0.040130615234375, -0.0006532669067382812, 0.053070068359375, -0.046112060546875, -0.0275726318359375, -0.0028285980224609375, 0.021392822265625, -0.00948333740234375, -0.010040283203125, -0.0276947021484375, -0.0272064208984375, -0.032012939453125, -0.0124359130859375, 0.01526641845703125, -0.005214691162109375, 0.0034923553466796875, 0.03033447265625, 0.06317138671875, 0.0167236328125, 0.03399658203125, 0.0033245086669921875, 0.0882568359375, 0.06512451171875, -0.05267333984375, -0.04156494140625, 0.0091705322265625, -0.004497528076171875, -0.004009246826171875, 0.0127716064453125, 0.0294036865234375, 0.016387939453125, -0.05523681640625, 0.01238250732421875, 0.0311431884765625, 0.035369873046875, -0.0276031494140625, 0.01312255859375, 0.03314208984375, -0.0246734619140625, 0.016265869140625, -0.031829833984375, -0.02520751953125, -0.05389404296875, 0.005252838134765625, 0.041534423828125, -0.033905029296875, -0.0019702911376953125, -0.06829833984375, -0.00445556640625, 0.0241241455078125, 0.0232086181640625, -0.05975341796875, 0.0229339599609375, 0.00494384765625, 0.01537322998046875, -0.0112457275390625, -0.0265655517578125, 0.005001068115234375, 0.06072998046875, 0.0235595703125, -0.058746337890625, -0.03887939453125, 0.04791259765625, -0.057342529296875, 0.039306640625, 0.028228759765625, -0.033111572265625, 0.0389404296875, 0.0408935546875, 0.044219970703125, 0.0775146484375, -0.0229034423828125, -0.0394287109375, -0.033477783203125, 0.0201263427734375, 0.00457763671875, -0.006561279296875, 0.013092041015625, -0.019500732421875, -0.0200042724609375, -0.02801513671875, 0.0092926025390625, 0.0237884521484375, -0.0316162109375, -0.098876953125, 0.04437255859375, -0.02734375, -0.03662109375, -0.034149169921875, 0.042205810546875, -0.01470184326171875, 0.032623291015625, 0.00004929304122924805, -0.0263824462890625, 0.031585693359375, 0.01531219482421875, 0.0003647804260253906, -0.010406494140625, 0.00982666015625, 0.001560211181640625, -0.04541015625, 0.001209259033203125, -0.0037631988525390625, -0.0031261444091796875, 0.026397705078125, -0.035125732421875, 0.038909912109375, 0.03216552734375, -0.034271240234375, -0.041595458984375, -0.004055023193359375, -0.02764892578125, -0.01555633544921875, -0.005062103271484375, -0.032257080078125, -0.0151214599609375, 0.07318115234375, 0.042999267578125, 0.01318359375, -0.0169219970703125, 0.005344390869140625, -0.015899658203125, -0.03643798828125, -0.0017108917236328125, 0.01416778564453125, -0.031707763671875, -0.001251220703125, -0.00215911865234375, 0.00621795654296875, 0.006870269775390625, 0.04473876953125, 0.0016374588012695312, -0.00215911865234375, 0.052886962890625, -0.01358795166015625, -0.09075927734375, 0.0145721435546875, 0.057769775390625, -0.0207366943359375, 0.03759765625, -0.0013036727905273438, -0.005889892578125, 0.06060791015625, 0.03778076171875, -0.003063201904296875, -0.031005859375, -0.02471923828125, 0.015350341796875, -0.01325225830078125, 0.0297393798828125, -0.02545166015625, -0.022430419921875, -0.034515380859375, 0.007678985595703125, 0.00960540771484375, 0.00919342041015625, -0.0211029052734375, 0.00021982192993164062, 0.0153961181640625, 0.032073974609375, -0.0333251953125, -0.0111083984375, 0.0023822784423828125, -0.031280517578125, -0.01494598388671875, 0.03680419921875, 0.042266845703125, -0.035430908203125, 0.0123291015625, -0.029327392578125, -0.004070281982421875, -0.04638671875, 0.015228271484375, 0.0018587112426757812, -0.01267242431640625, 0.025604248046875 ]
8e03c8d9132cae1492fcf1d261326b1bf6d6a694
Wordpress Stackexchange Q: wp-cli doesn't find and wordpress installation I wanted to try wp-cli, downloaded the phar and installed it by moving it to ~/bin which is in my path. Then wp --info works, but maybe shows insufficient information. (e.g. no php path, though it is running, so php is there ...) Any other actions I tried so far were unsuccessful, alsways resulting in 'no wordpress installation found' Specifying --path or --url didn't change anything. The result is the same for a multisite or non-multisite installation. Any ideas what could be wrong? PHP binary: PHP version: 5.3.27 php.ini used: /usr/local/lib/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI global config: WP-CLI project config: WP-CLI version: 0.14.0-alpha (added wp --info output) A: If no --path is passed, WP-CLI defaults to the current directory and looks for the wp-includes/version.php file. So, make sure that the directory you're in has such a file: $ ls wp-includes $ cat wp-includes/version.php $ wp core version
Q: wp-cli doesn't find and wordpress installation I wanted to try wp-cli, downloaded the phar and installed it by moving it to ~/bin which is in my path. Then wp --info works, but maybe shows insufficient information. (e.g. no php path, though it is running, so php is there ...) Any other actions I tried so far were unsuccessful, alsways resulting in 'no wordpress installation found' Specifying --path or --url didn't change anything. The result is the same for a multisite or non-multisite installation. Any ideas what could be wrong? PHP binary: PHP version: 5.3.27 php.ini used: /usr/local/lib/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI global config: WP-CLI project config: WP-CLI version: 0.14.0-alpha (added wp --info output) A: If no --path is passed, WP-CLI defaults to the current directory and looks for the wp-includes/version.php file. So, make sure that the directory you're in has such a file: $ ls wp-includes $ cat wp-includes/version.php $ wp core version
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:441085", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129516" }
[ -0.0234832763671875, -0.014495849609375, -0.052581787109375, -0.022216796875, -0.0164794921875, -0.0246124267578125, -0.015411376953125, 0.00789642333984375, 0.0287933349609375, 0.0136871337890625, -0.0528564453125, 0.0161285400390625, -0.0038089752197265625, -0.0030727386474609375, -0.02069091796875, -0.0350341796875, 0.037811279296875, -0.019775390625, 0.0280303955078125, -0.0097198486328125, -0.00496673583984375, 0.006984710693359375, 0.05462646484375, 0.050994873046875, 0.003330230712890625, 0.0040130615234375, 0.0538330078125, -0.03338623046875, -0.009246826171875, -0.039398193359375, 0.008514404296875, 0.050994873046875, 0.034820556640625, -0.0202789306640625, 0.006832122802734375, 0.0098876953125, -0.0011205673217773438, -0.007068634033203125, 0.0045928955078125, 0.0080108642578125, -0.0264129638671875, 0.0049285888671875, 0.058837890625, -0.017822265625, 0.0016546249389648438, -0.0301361083984375, 0.002651214599609375, -0.022705078125, 0.017486572265625, -0.00940704345703125, -0.042144775390625, 0.033355712890625, -0.0133819580078125, -0.056549072265625, 0.00908660888671875, -0.004993438720703125, 0.0167694091796875, 0.056915283203125, 0.03460693359375, -0.0423583984375, -0.06353759765625, 0.0199432373046875, 0.0301513671875, 0.01751708984375, 0.01390838623046875, -0.0267333984375, 0.03436279296875, 0.02032470703125, -0.056182861328125, 0.007144927978515625, 0.05096435546875, -0.006946563720703125, 0.0030231475830078125, -0.0184478759765625, 0.018890380859375, -0.00421142578125, 0.004993438720703125, -0.0275726318359375, 0.002471923828125, 0.0123291015625, 0.02154541015625, 0.040130615234375, 0.0019893646240234375, -0.03240966796875, 0.0212249755859375, 0.01311492919921875, -0.00262451171875, -0.030059814453125, -0.0134735107421875, -0.0199432373046875, -0.0232696533203125, -0.01245880126953125, -0.0230712890625, -0.0013380050659179688, -0.011749267578125, -0.007083892822265625, -0.01334381103515625, -0.01540374755859375, -0.0011243820190429688, 0.015533447265625, 0.045013427734375, -0.03814697265625, 0.049102783203125, -0.016571044921875, -0.01013946533203125, 0.07684326171875, 0.004150390625, 0.0283203125, 0.01009368896484375, 0.018096923828125, 0.021820068359375, -0.04388427734375, -0.0030155181884765625, -0.036956787109375, 0.01274871826171875, -0.003932952880859375, -0.044036865234375, 0.042938232421875, 0.0159149169921875, 0.01849365234375, 0.0019292831420898438, 0.03839111328125, -0.035980224609375, -0.00870513916015625, -0.0034198760986328125, -0.004344940185546875, 0.0287933349609375, -0.04345703125, -0.061126708984375, 0.0335693359375, -0.0162200927734375, 0.006103515625, 0.0189666748046875, 0.00897216796875, -0.01361846923828125, -0.0285186767578125, 0.01015472412109375, 0.00939178466796875, 0.0204925537109375, 0.01175689697265625, -0.04833984375, -0.0099639892578125, 0.04376220703125, -0.038482666015625, 0.015869140625, 0.0005526542663574219, -0.0017347335815429688, 0.02642822265625, 0.003692626953125, 0.01403045654296875, -0.00771331787109375, 0.004055023193359375, 0.0264739990234375, 0.0168914794921875, 0.0112152099609375, -0.01251220703125, 0.040252685546875, -0.048187255859375, -0.00936126708984375, -0.03594970703125, 0.0088653564453125, -0.01549530029296875, -0.00041556358337402344, 0.005939483642578125, -0.02508544921875, 0.0306243896484375, -0.0081939697265625, 0.00322723388671875, 0.01184844970703125, -0.00749969482421875, 0.0228729248046875, -0.0262451171875, -0.004817962646484375, -0.0014753341674804688, 0.00982666015625, 0.0091400146484375, 0.01318359375, -0.00675201416015625, 0.0377197265625, 0.06317138671875, -0.0181427001953125, -0.027374267578125, 0.07049560546875, -0.02777099609375, -0.0640869140625, -0.0152587890625, -0.0090789794921875, 0.0257110595703125, 0.07952880859375, 0.0035266876220703125, 0.028656005859375, -0.0264892578125, 0.0133209228515625, 0.032196044921875, -0.05584716796875, -0.025482177734375, -0.01259613037109375, 0.04339599609375, -0.0548095703125, 0.01346588134765625, 0.01209259033203125, -0.0162811279296875, 0.00568389892578125, -0.00234222412109375, -0.10205078125, 0.016876220703125, -0.039459228515625, 0.0240631103515625, 0.01045989990234375, -0.017181396484375, 0.0180511474609375, 0.0200958251953125, 0.01013946533203125, -0.10101318359375, -0.06591796875, 0.0311737060546875, -0.023895263671875, 0.037567138671875, -0.0027904510498046875, 0.07476806640625, -0.033660888671875, -0.0024394989013671875, -0.0200958251953125, -0.0209197998046875, 0.0162353515625, 0.023345947265625, -0.01454925537109375, 0.01358795166015625, 0.03271484375, 0.040374755859375, 0.0082550048828125, -0.031005859375, -0.00994110107421875, -0.0157623291015625, -0.039398193359375, -0.0064697265625, -0.039520263671875, -0.0667724609375, 0.0160980224609375, 0.061370849609375, 0.040374755859375, 0.0484619140625, 0.01056671142578125, -0.015228271484375, 0.06982421875, -0.0166168212890625, 0.0280303955078125, -0.038238525390625, -0.0287628173828125, 0.0014886856079101562, 0.033843994140625, -0.005832672119140625, -0.0014333724975585938, -0.0037975311279296875, -0.0205078125, 0.019805908203125, 0.0002541542053222656, -0.011871337890625, 0.0007534027099609375, -0.02197265625, 0.021881103515625, -0.0723876953125, -0.08502197265625, -0.0065765380859375, -0.006103515625, -0.015625, 0.0159149169921875, 0.029632568359375, 0.0039215087890625, -0.03643798828125, 0.0093994140625, 0.002002716064453125, 0.021270751953125, 0.0006613731384277344, -0.07562255859375, 0.051422119140625, -0.032867431640625, 0.0180206298828125, 0.047149658203125, 0.0016698837280273438, 0.00010776519775390625, 0.006572723388671875, 0.027130126953125, 0.0026302337646484375, -0.004306793212890625, 0.01192474365234375, 0.0531005859375, 0.054901123046875, -0.012664794921875, -0.03216552734375, -0.00262451171875, 0.0272216796875, -0.03680419921875, 0.04901123046875, -0.0021305084228515625, -0.0268402099609375, 0.047698974609375, -0.0004515647888183594, 0.006336212158203125, 0.02337646484375, 0.059356689453125, 0.05181884765625, 0.03106689453125, -0.0228729248046875, -0.0197906494140625, 0.046234130859375, 0.0011930465698242188, -0.035797119140625, -0.04632568359375, -0.01531982421875, -0.050872802734375, 0.00337982177734375, 0.035308837890625, 0.0000832676887512207, 0.00992584228515625, -0.041748046875, -0.0316162109375, -0.006683349609375, -0.12103271484375, -0.0980224609375, -0.01800537109375, -0.0219268798828125, -0.032958984375, 0.01316070556640625, -0.0177154541015625, 0.00478363037109375, 0.017669677734375, -0.003200531005859375, 0.00951385498046875, -0.042449951171875, -0.04248046875, -0.086669921875, -0.08453369140625, -0.0640869140625, 0.00035500526428222656, -0.0034332275390625, 0.00986480712890625, 0.07415771484375, 0.01276397705078125, -0.08270263671875, 0.0013570785522460938, 0.036346435546875, -0.036865234375, 0.0257720947265625, -0.040069580078125, 0.0195770263671875, 0.0218505859375, -0.006992340087890625, 0.040191650390625, 0.0211639404296875, -0.0032711029052734375, -0.01097869873046875, 0.008087158203125, -0.06854248046875, 0.0027484893798828125, 0.043121337890625, -0.019012451171875, -0.09307861328125, 0.016204833984375, -0.09796142578125, 0.0019073486328125, 0.008941650390625, 0.003070831298828125, 0.039276123046875, -0.0152587890625, -0.0251007080078125, 0.016204833984375, 0.0295257568359375, -0.03125, -0.01364898681640625, 0.01116180419921875, -0.0241851806640625, 0.03900146484375, -0.016326904296875, -0.022918701171875, -0.0016956329345703125, 0.0234222412109375, -0.018218994140625, -0.01197052001953125, 0.006969451904296875, -0.0210418701171875, -0.031982421875, -0.00830078125, -0.0418701171875, -0.0208282470703125, 0.044158935546875, 0.0176544189453125, 0.0293121337890625, -0.018646240234375, -0.033660888671875, 0.01486968994140625, 0.07281494140625, -0.03179931640625, -0.06390380859375, 0.0210723876953125, 0.049713134765625, -0.043975830078125, -0.043243408203125, 0.027801513671875, -0.036712646484375, -0.0565185546875, 0.032470703125, 0.0177764892578125, -0.0026569366455078125, 0.005428314208984375, -0.00872039794921875, -0.0121612548828125, -0.045928955078125, 0.03155517578125, -0.031829833984375, 0.038299560546875, 0.0094451904296875, 0.0010242462158203125, 0.007366180419921875, -0.036651611328125, -0.0249786376953125, -0.08892822265625, -0.002918243408203125, -0.034515380859375, 0.039337158203125, -0.01515960693359375, 0.05072021484375, -0.0179290771484375, 0.047027587890625, 0.0006232261657714844, 0.0086669921875, 0.005733489990234375, 0.00958251953125, -0.002635955810546875, 0.018768310546875, 0.01020050048828125, 0.0001876354217529297, -0.0260162353515625, -0.026763916015625, -0.0263519287109375, -0.0008091926574707031, -0.013031005859375, 0.0006513595581054688, 0.0167083740234375, -0.03302001953125, 0.00650787353515625, -0.05255126953125, -0.01180267333984375, 0.0094451904296875, -0.033355712890625, 0.0259857177734375, -0.045745849609375, 0.0163726806640625, 0.06982421875, -0.0017118453979492188, 0.018280029296875, -0.005802154541015625, 0.09246826171875, -0.0022716522216796875, -0.0264739990234375, -0.043426513671875, 0.0270538330078125, 0.0149078369140625, -0.005344390869140625, 0.06982421875, 0.01514434814453125, 0.005374908447265625, 0.01531219482421875, -0.007190704345703125, 0.02203369140625, 0.044189453125, -0.023040771484375, 0.032989501953125, -0.01361083984375, -0.0103912353515625, 0.04534912109375, -0.037200927734375, -0.004604339599609375, -0.0036640167236328125, 0.005222320556640625, 0.0194854736328125, 0.00736236572265625, -0.0014867782592773438, -0.01035308837890625, -0.019775390625, -0.051239013671875, 0.0184783935546875, -0.0972900390625, 0.03546142578125, -0.00031113624572753906, 0.0003819465637207031, 0.03277587890625, 0.001514434814453125, -0.01215362548828125, -0.0026912689208984375, -0.00687408447265625, 0.01715087890625, 0.01763916015625, 0.0179290771484375, -0.01313018798828125, -0.0095977783203125, -0.007030487060546875, 0.04742431640625, 0.013336181640625, -0.041351318359375, 0.036407470703125, -0.01293182373046875, -0.021026611328125, 0.01316070556640625, 0.0203094482421875, 0.037506103515625, -0.0022716522216796875, -0.030609130859375, -0.0149078369140625, -0.0279083251953125, -0.03570556640625, -0.049835205078125, 0.005245208740234375, -0.0163116455078125, 0.005962371826171875, 0.0095367431640625, 0.032867431640625, -0.027740478515625, 0.0239105224609375, 0.00841522216796875, 0.01849365234375, -0.0006051063537597656, 0.0233917236328125, 0.01271820068359375, -0.00921630859375, 0.02569580078125, -0.0223236083984375, 0.0255889892578125, -0.00350189208984375, -0.01531982421875, 0.0165863037109375, 0.035064697265625, 0.0133514404296875, 0.00833892822265625, 0.00215911865234375, -0.021148681640625, 0.0175933837890625, -0.02093505859375, -0.0174713134765625, -0.01218414306640625, 0.01593017578125, 0.01207733154296875, -0.005519866943359375, -0.0216064453125, -0.0173187255859375, 0.023651123046875, -0.020751953125, -0.0291748046875, 0.0643310546875, -0.075927734375, -0.005413055419921875, 0.0285797119140625, 0.0284423828125, -0.0301361083984375, -0.0278778076171875, 0.0276947021484375, 0.01439666748046875, -0.037109375, -0.02557373046875, 0.06549072265625, -0.032562255859375, 0.023223876953125, -0.014862060546875, 0.0023746490478515625, 0.0216064453125, 0.00246429443359375, 0.044097900390625, 0.036468505859375, 0.0022563934326171875, 0.0177001953125, -0.0252838134765625, -0.0182647705078125, 0.01226806640625, -0.05584716796875, -0.0369873046875, -0.0274200439453125, 0.011566162109375, 0.003269195556640625, -0.001224517822265625, -0.0026149749755859375, -0.0246429443359375, 0.061309814453125, 0.03570556640625, 0.06585693359375, -0.034423828125, 0.07244873046875, -0.0161285400390625, 0.01007843017578125, -0.015838623046875, 0.0400390625, 0.041168212890625, 0.007007598876953125, 0.017791748046875, -0.01447296142578125, -0.015533447265625, -0.04364013671875, 0.059661865234375, 0.01296234130859375, 0.0297698974609375, -0.0079803466796875, -0.006214141845703125, -0.00472259521484375, 0.004634857177734375, -0.00311279296875, 0.033782958984375, 0.034271240234375, 0.01500701904296875, 0.0253448486328125, -0.052276611328125, -0.048583984375, 0.025115966796875, 0.025299072265625, -0.0112152099609375, -0.01922607421875, -0.056640625, 0.040313720703125, -0.0648193359375, 0.07049560546875, 0.11181640625, 0.0310211181640625, 0.0804443359375, 0.0186920166015625, 0.0205535888671875, 0.02117919921875, 0.009033203125, -0.0335693359375, 0.012237548828125, 0.0579833984375, 0.026092529296875, -0.012725830078125, 0.04156494140625, -0.0123748779296875, -0.010528564453125, -0.0084075927734375, 0.0250244140625, 0.0002627372741699219, 0.0083160400390625, 0.0033359527587890625, -0.012359619140625, -0.00513458251953125, -0.004184722900390625, -0.01200103759765625, -0.0219268798828125, 0.01528167724609375, -0.018646240234375, -0.0367431640625, -0.00659942626953125, 0.011993408203125, -0.0133514404296875, -0.0280914306640625, -0.00405120849609375, 0.00356292724609375, -0.0338134765625, 0.0215911865234375, 0.0171356201171875, 0.00021219253540039062, 0.00498199462890625, 0.004215240478515625, -0.03515625, -0.03399658203125, -0.061431884765625, -0.03424072265625, -0.024139404296875, -0.040496826171875, 0.048309326171875, 0.003936767578125, 0.01343536376953125, 0.061737060546875, 0.0002582073211669922, 0.0280609130859375, 0.0269927978515625, -0.006885528564453125, 0.0254364013671875, -0.0241851806640625, 0.0318603515625, 0.036163330078125, -0.09423828125, 0.0159759521484375, -0.0404052734375, 0.0217437744140625, -0.0016756057739257812, 0.00876617431640625, 0.09112548828125, -0.062225341796875, -0.00702667236328125, 0.0267333984375, -0.01050567626953125, 0.0045623779296875, 0.022186279296875, 0.043853759765625, -0.04608154296875, -0.030059814453125, 0.043243408203125, -0.0230712890625, -0.0452880859375, 0.040191650390625, 0.0238189697265625, 0.088623046875, -0.0118408203125, -0.05877685546875, 0.016815185546875, 0.0601806640625, -0.01314544677734375, 0.06878662109375, -0.00923919677734375, 0.029388427734375, -0.006458282470703125, 0.055267333984375, -0.031402587890625, -0.010101318359375, 0.040435791015625, 0.0640869140625, 0.003307342529296875, -0.001659393310546875, 0.01233673095703125, -0.0026454925537109375, 0.035247802734375, 0.0302886962890625, 0.01514434814453125, 0.006977081298828125, 0.044525146484375, 0.01171875, 0.0172576904296875, -0.0227813720703125, 0.032196044921875, -0.035736083984375, 0.01849365234375, 0.05389404296875, 0.020538330078125, 0.026611328125, 0.00467681884765625, 0.05682373046875, -0.00848388671875, 0.005252838134765625, 0.0272674560546875, -0.0094451904296875, -0.004550933837890625, -0.0012941360473632812, -0.042724609375, 0.04046630859375, -0.005840301513671875, -0.0032939910888671875, 0.003253936767578125, -0.007366180419921875, 0.005359649658203125, -0.029205322265625, 0.0033893585205078125, 0.03076171875, -0.03265380859375, -0.021240234375, 0.0257720947265625, -0.01200103759765625, 0.001964569091796875, 0.0161285400390625, 0.047576904296875, 0.00927734375, 0.02410888671875, 0.0145111083984375, 0.00548553466796875, -0.020355224609375, -0.07440185546875, 0.0074005126953125, 0.019744873046875, -0.005527496337890625, 0.0121002197265625, -0.030181884765625, -0.01493072509765625, 0.0897216796875, -0.0258331298828125, 0.0128631591796875, 0.037017822265625, -0.004108428955078125, 0.0033359527587890625, -0.0251312255859375, -0.01462554931640625, 0.020904541015625, -0.027008056640625, 0.0185699462890625, -0.003185272216796875, 0.01824951171875, -0.0062255859375, 0.0565185546875, -0.01092529296875, -0.002834320068359375, -0.0083770751953125, 0.058685302734375, 0.0128021240234375, -0.01849365234375, -0.008941650390625, -0.05267333984375, 0.036468505859375, 0.0272674560546875, -0.006343841552734375, 0.0286865234375, 0.048309326171875, 0.064697265625, -0.03887939453125, -0.01328277587890625, 0.061798095703125, -0.015625, -0.0364990234375, 0.0126953125, -0.0086212158203125, 0.038360595703125, -0.0142059326171875, 0.002330780029296875, 0.0516357421875, 0.01377105712890625, -0.03216552734375, 0.04083251953125, -0.0080108642578125, -0.0018177032470703125, 0.00855255126953125, 0.0241546630859375, 0.0255279541015625, 0.0030460357666015625, 0.0164947509765625, 0.0007700920104980469, 0.0159454345703125, -0.005847930908203125, -0.0341796875, 0.01361846923828125, 0.0158538818359375, -0.00716400146484375, 0.0142669677734375, -0.01739501953125, -0.0017805099487304688, 0.020538330078125, 0.016265869140625, 0.0007119178771972656, 0.022735595703125, 0.00803375244140625, -0.009735107421875, -0.0101470947265625, -0.016510009765625, 0.05364990234375, 0.023590087890625, 0.05548095703125, -0.037933349609375, 0.0309295654296875, -0.01971435546875, 0.010772705078125, -0.0226593017578125, -0.032958984375, 0.02508544921875, 0.01119232177734375, 0.0004832744598388672, -0.015289306640625, -0.059234619140625, 0.00934600830078125, 0.0487060546875, -0.01885986328125, 0.0005612373352050781, 0.0177459716796875, 0.025054931640625, -0.0130767822265625, 0.0234527587890625, -0.0236968994140625, -0.0302886962890625, -0.0640869140625, -0.0290069580078125, 0.027069091796875, 0.0256500244140625, 0.01155853271484375, -0.01194000244140625, 0.025482177734375, -0.03546142578125, 0.0234832763671875, 0.0035400390625, 0.0194244384765625, 0.0237579345703125, 0.0301666259765625, -0.01273345947265625, -0.02935791015625, -0.019317626953125, -0.03704833984375, 0.0134735107421875, -0.006458282470703125, -0.03564453125, 0.0290374755859375, -0.004962921142578125, 0.0037708282470703125, 0.038238525390625, -0.03680419921875, 0.029266357421875, -0.0012950897216796875, 0.0156402587890625, 0.0313720703125, -0.04052734375, 0.003589630126953125, -0.028564453125, -0.0185699462890625, 0.0162353515625, -0.02301025390625, -0.0196533203125, 0.0026149749755859375, 0.0096435546875, 0.05157470703125, -0.0003883838653564453, -0.01013946533203125, -0.0010957717895507812, -0.04107666015625, 0.0289459228515625, 0.0194854736328125, 0.01029205322265625, -0.0117645263671875, -0.01165771484375, -0.0234832763671875, -0.01654052734375, -0.0275115966796875, 0.026153564453125, 0.004650115966796875, 0.00691986083984375, 0.018463134765625, -0.01288604736328125, -0.0209808349609375, -0.010223388671875, 0.00412750244140625, 0.04266357421875, 0.01085662841796875, -0.02484130859375, -0.003131866455078125, -0.0092926025390625, -0.039642333984375, -0.047637939453125, 0.03656005859375, -0.07440185546875, -0.031524658203125, -0.06732177734375, 0.0165557861328125, -0.0185546875, -0.055389404296875, -0.10693359375, 0.06292724609375, -0.0428466796875, -0.017181396484375, -0.059722900390625, -0.034454345703125, 0.01033782958984375, 0.01366424560546875, -0.0426025390625, -0.003536224365234375, -0.055694580078125, 0.061004638671875, -0.0102996826171875, 0.0032672882080078125, -0.00489044189453125, -0.0098724365234375, -0.021026611328125, 0.0251922607421875, 0.038818359375, -0.0308380126953125, 0.027435302734375, 0.0037059783935546875, 0.006237030029296875, 0.060455322265625, -0.01934814453125, -0.037261962890625, -0.0282135009765625, -0.03668212890625, -0.01079559326171875, -0.034912109375, -0.0236968994140625, -0.04925537109375, 0.043975830078125, 0.014862060546875, 0.004589080810546875, 0.004756927490234375, -0.01087188720703125, -0.0168914794921875, -0.01085662841796875, 0.0015201568603515625, -0.005672454833984375, -0.0268096923828125, 0.0114288330078125, -0.0004057884216308594, 0.0016317367553710938, 0.0222930908203125, -0.0002789497375488281, 0.0113067626953125, -0.0244140625, -0.002124786376953125, -0.040435791015625, -0.00727081298828125, -0.0389404296875, 0.053070068359375, -0.0278167724609375, 0.01342010498046875, 0.0009140968322753906, 0.035888671875, 0.02972412109375, 0.02227783203125, -0.005939483642578125, 0.00766754150390625, -0.001758575439453125, 0.01568603515625, 0.0095367431640625, -0.031829833984375, 0.0020923614501953125, 0.004375457763671875, 0.033721923828125, 0.0207366943359375, -0.0199737548828125, 0.0234375, 0.01947021484375, 0.0300140380859375, -0.0247650146484375, 0.0313720703125, 0.0113677978515625, -0.00394439697265625, -0.017120361328125, 0.0557861328125, -0.0196380615234375, -0.0224456787109375, -0.012786865234375, 0.00748443603515625, 0.0060882568359375, 0.0242156982421875, -0.0283050537109375, -0.0244598388671875, -0.00003212690353393555, 0.0777587890625, -0.00838470458984375, 0.0006151199340820312 ]
cd5e486f5b29860eec76418d1f9cfd1e2dd33398
Wordpress Stackexchange Q: How to connect different CPTs together? I hope this question has its place here. I've always thought that connecting different Custom Post Types together is a rather common need, like in popular tutorial examples of custom taxonomy usage (books/authors/titles, films/actors/directors, etc). I personally use "Posts 2 Posts", but support stopped. On Google the most relevant results point to this plugin right now. Which long term alternatives exist? What would a seasoned WordPress web developer use to design a book/author/title management system with WordPress today, if P2P plugin is finished? A: I wouldn't worry about it too much, as a couple of great developers volunteered to continue support. However, if you want to use something else check out the ACF relationship field.
Q: How to connect different CPTs together? I hope this question has its place here. I've always thought that connecting different Custom Post Types together is a rather common need, like in popular tutorial examples of custom taxonomy usage (books/authors/titles, films/actors/directors, etc). I personally use "Posts 2 Posts", but support stopped. On Google the most relevant results point to this plugin right now. Which long term alternatives exist? What would a seasoned WordPress web developer use to design a book/author/title management system with WordPress today, if P2P plugin is finished? A: I wouldn't worry about it too much, as a couple of great developers volunteered to continue support. However, if you want to use something else check out the ACF relationship field. A: Since the original question is "What would you do if P2P went away?" I have a thought/suggestion. I actually needed, because if you're building a plugin, telling users to install another plugin isn't always viable. One simple method would be to use the Post Meta. For example. In the post_meta of Author, you can store the books. Either as unique entries or a single comma separated entry or a serialized array. Then on the book, you store the inverse info of Author(s). Another would be to add a new DB table (frowned upon) that stores the relationships and other pertinent information. No idea how efficient either solution is at scale, but they work. A: As a programmer, I would start writing my own code to connect my post types. It's not a quick way, it's not easy, but it's a lot of fun. The post types We start by creating two simple post types, Author and Books: add_action('init', 'p2p2_register_author'); add_action('init', 'p2p2_register_book'); function p2p2_register_author(){ $labels = array( 'name' => 'Author', 'singular_name' => 'Author', 'add_new' => 'Add New', 'add_new_item' => 'Add New Author', 'edit_item' => 'Edit Author', 'new_item' => 'New Author', 'all_items' => 'All Authors', 'view_item' => 'View Authors', 'search_items' => 'Search Authors', 'not_found' => 'No authors found', 'not_found_in_trash' => 'No authors found in Trash', 'parent_item_colon' => '', 'menu_name' => 'Authors' ); register_post_type( 'Author', array ( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'author' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) ) ); } function p2p2_register_book(){ $labels = array( 'name' => 'Books', 'singular_name' => 'Book', 'add_new' => 'Add New', 'add_new_item' => 'Add New Book', 'edit_item' => 'Edit Book', 'new_item' => 'New Book', 'all_items' => 'All Books', 'view_item' => 'View Book', 'search_items' => 'Search Books', 'not_found' => 'No books found', 'not_found_in_trash' => 'No books found in Trash', 'parent_item_colon' => '', 'menu_name' => 'Books' ); register_post_type( 'Book', array ( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'book' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) ) ); } Nothing fancy there. In fact, it's from the Codex! The metabox Let's continue by adding a metabox for our author to our book post type: add_action('admin_init', 'p2p2_add_author_metabox'); function p2p2_add_author_metabox(){ add_meta_box( 'book_author', __('Book Author', 'bandpress'), 'p2p2_book_author_metabox', 'book', 'side', 'default', array( 'id' => 'p2p2_author') ); } Here you can see a callback function p2p2_book_author_metabox which is going to be what's inside our metabox. The content of the metabox Let's create the function: function p2p2_book_author_metabox($post, $args){ wp_nonce_field( plugin_basename( __FILE__ ), 'p2p2_book_author_nonce' ); $author_id = get_post_meta($post->ID, 'p2p2_book_author', true); echo "<p>Select the author of the book</p>"; echo "<select id='p2p2_book_author' name='p2p2_book_author'>"; // Query the authors here $query = new WP_Query( 'post_type=author' ); while ( $query->have_posts() ) { $query->the_post(); $id = get_the_ID(); $selected = ""; if($id == $author_id){ $selected = ' selected="selected"'; } echo '<option' . $selected . ' value=' . $id . '>' . get_the_title() . '</option>'; } echo "</select>"; } Here's where the magic happens. First we're going to query the database for authors and then we fill a <select> with our query results. Check the Codex for more about WP_Query. Now you can go to your book post type and see your dropdown: Saving our content Off course we want to save our selection so we add another function that's going to save the metabox for us: add_action('save_post', 'p2p2_save_author_metabox', 1, 2); function p2p2_save_author_metabox($post_id, $post){ // Don't wanna save this now, right? if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if ( !isset( $_POST['p2p2_book_author_nonce'] ) ) return; if ( !wp_verify_nonce( $_POST['p2p2_book_author_nonce'], plugin_basename( __FILE__ ) ) ) return; // We do want to save? Ok! $key = 'p2p2_book_author'; $value = $_POST["p2p2_book_author"]; if ( get_post_meta( $post->ID, $key, FALSE ) ) { // If the custom field already has a value update_post_meta( $post->ID, $key, $value ); } else { // If the custom field doesn't have a value add_post_meta( $post->ID, $key, $value ); } if ( !$value ) delete_post_meta( $post->ID, $key ); // Delete if blank } Now go and save a book with an author! The author of the book will be saved in the wp_postmeta database table and the selected value of the dropdown will be that in the meta. An author column for book Let's expand the admin area for our books. We will start by changing the columns: add_filter('manage_edit-book_columns', 'p2p2_add_book_columns'); function p2p2_add_book_columns($columns){ $new_columns['cb'] = '<input type="checkbox" />'; $new_columns['title'] = _x('Title', 'column name', 'bandpress'); $new_columns['p2p2_author'] = __('Author', 'bandpress'); return $new_columns; } This function makes sure we only see the columns title and p2p2_author. The cb checkbox column is needed for WordPress' mass edit functionality. Now we need to add some information to our column. We add this function: add_action('manage_book_posts_custom_column', 'p2p2_fill_book_columns', 10, 2); function p2p2_fill_book_columns($column_name, $id) { global $wpdb; switch ($column_name) { case 'p2p2_author': $author_id = get_post_meta($id, 'p2p2_book_author', true); $author = get_post($author_id); $permalink = get_permalink($author_id); echo "<a href='" . $permalink . "'>" . $author->post_title . "</a>"; break; default: break; } // end switch } The switch is for every column you just added in the previous function. You fill it by echoing what you want to show. We get the post that's the author of our book and create a nice permalink to his/her 'profile page'. This is what it looks like: To be continued We connected two post types in the backend of our WordPress site, but we can't see a thing of it in the frontend. It'll need a lot more work to accomplish this, but the possibilities are somewhat endless. We could: * *Sort books by author *Show a list of books on the author page *Show a list of other books of the author on the book page *Create a fancy metabox with pictures of the author *Create a column in the author admin page for the books he/she wrote *And a lot more... I will continue working on this answer, as I need this solution myself. However, I will stop working on in for now. I'll start updating this answer tomorrow.
wordpress
{ "language": "en", "length": 1161, "provenance": "stackexchange_00019.jsonl.gz:441088", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129523" }
[ 0.0675048828125, 0.01230621337890625, 0.0230255126953125, -0.044097900390625, 0.0015420913696289062, -0.01038360595703125, 0.021514892578125, -0.029083251953125, -0.0347900390625, 0.0196685791015625, 0.03411865234375, 0.01108551025390625, -0.026397705078125, -0.049102783203125, 0.030364990234375, -0.019500732421875, 0.0180511474609375, 0.01593017578125, 0.0276031494140625, -0.0127105712890625, 0.01248931884765625, -0.013916015625, 0.032501220703125, -0.007694244384765625, 0.0309906005859375, -0.025634765625, 0.08148193359375, -0.042388916015625, 0.03143310546875, -0.00844573974609375, 0.0287322998046875, -0.03253173828125, 0.01230621337890625, 0.0256195068359375, -0.053253173828125, -0.04022216796875, -0.01465606689453125, 0.00585174560546875, -0.031219482421875, 0.0225067138671875, 0.00943756103515625, 0.00998687744140625, 0.02825927734375, -0.006649017333984375, 0.0003113746643066406, -0.02081298828125, -0.0006155967712402344, -0.040863037109375, 0.0268707275390625, -0.0275115966796875, -0.0228729248046875, -0.00977325439453125, -0.014801025390625, 0.0264892578125, -0.0223541259765625, -0.002597808837890625, 0.05242919921875, -0.0614013671875, 0.0306396484375, -0.0183258056640625, -0.0277862548828125, -0.0167083740234375, 0.040679931640625, -0.00557708740234375, -0.01751708984375, 0.0225982666015625, -0.0260009765625, 0.01165771484375, 0.01904296875, -0.02197265625, -0.02130126953125, -0.004955291748046875, -0.0016622543334960938, -0.037689208984375, -0.00006747245788574219, -0.004230499267578125, -0.01611328125, -0.0711669921875, 0.01319122314453125, 0.01580810546875, -0.06634521484375, 0.0113677978515625, -0.052459716796875, -0.025909423828125, -0.0030364990234375, 0.00789642333984375, -0.038726806640625, 0.0005354881286621094, -0.031524658203125, -0.04278564453125, -0.030242919921875, -0.05584716796875, -0.04296875, 0.00992584228515625, -0.009735107421875, -0.033905029296875, 0.032318115234375, 0.043243408203125, -0.0283660888671875, -0.00021064281463623047, 0.01457977294921875, -0.035491943359375, 0.045318603515625, -0.035400390625, 0.038848876953125, 0.0343017578125, -0.027801513671875, -0.0264434814453125, 0.07183837890625, 0.0030269622802734375, 0.008880615234375, 0.049468994140625, 0.0200042724609375, -0.015167236328125, 0.0200958251953125, -0.0235748291015625, -0.01690673828125, 0.05908203125, 0.0129241943359375, -0.007556915283203125, -0.033111572265625, -0.033843994140625, 0.0261993408203125, -0.02655029296875, 0.030181884765625, -0.006969451904296875, -0.0271148681640625, 0.0228118896484375, 0.01064300537109375, 0.0288543701171875, -0.0230560302734375, 0.00482940673828125, 0.0450439453125, 0.01983642578125, 0.007419586181640625, -0.0138092041015625, 0.032867431640625, 0.01201629638671875, -0.0004506111145019531, -0.0025234222412109375, 0.03643798828125, -0.04168701171875, -0.04327392578125, 0.033935546875, -0.01024627685546875, -0.00714111328125, 0.01558685302734375, 0.0438232421875, -0.00006282329559326172, -0.040985107421875, 0.047637939453125, -0.01318359375, 0.024169921875, -0.02471923828125, 0.00649261474609375, -0.06439208984375, -0.01922607421875, -0.018829345703125, 0.059967041015625, -0.017425537109375, 0.0109405517578125, 0.004306793212890625, 0.0129852294921875, -0.038787841796875, -0.0333251953125, -0.00814056396484375, -0.040618896484375, -0.00751495361328125, 0.02020263671875, -0.030548095703125, -0.0102691650390625, -0.03912353515625, 0.00302886962890625, -0.0016832351684570312, -0.0111846923828125, 0.04437255859375, -0.0030040740966796875, 0.04052734375, -0.0102996826171875, 0.04681396484375, 0.0263824462890625, -0.025177001953125, 0.043365478515625, -0.01297760009765625, -0.049957275390625, 0.028411865234375, 0.024810791015625, 0.062347412109375, -0.0067901611328125, 0.0265960693359375, 0.0645751953125, 0.0238189697265625, -0.04595947265625, 0.00820159912109375, -0.023529052734375, -0.0008478164672851562, -0.01349639892578125, 0.01242828369140625, -0.011566162109375, 0.00548553466796875, -0.06622314453125, 0.0423583984375, -0.0419921875, 0.060577392578125, 0.00859832763671875, 0.0118408203125, -0.00803375244140625, 0.039886474609375, -0.0009450912475585938, -0.00543212890625, -0.004993438720703125, -0.0171661376953125, 0.004978179931640625, -0.0484619140625, -0.0257720947265625, 0.0423583984375, 0.0204315185546875, -0.034454345703125, 0.010101318359375, -0.043548583984375, 0.0206146240234375, 0.020111083984375, -0.004840850830078125, 0.055999755859375, -0.00007075071334838867, 0.0243682861328125, -0.03314208984375, 0.01483154296875, -0.02056884765625, 0.038909912109375, -0.01372528076171875, -0.00787353515625, 0.05450439453125, 0.0223388671875, -0.00594329833984375, 0.020233154296875, 0.046173095703125, -0.02349853515625, 0.00222015380859375, 0.02569580078125, 0.018310546875, -0.0287017822265625, -0.0545654296875, 0.0078125, 0.0038204193115234375, -0.032989501953125, -0.015472412109375, 0.034210205078125, 0.018218994140625, 0.052276611328125, -0.005279541015625, 0.0017786026000976562, 0.00905609130859375, -0.064697265625, 0.0142822265625, 0.048187255859375, 0.004718780517578125, 0.0027751922607421875, 0.0166778564453125, -0.0302276611328125, 0.01335906982421875, -0.031341552734375, -0.051849365234375, -0.005420684814453125, 0.039459228515625, -0.005889892578125, 0.04498291015625, 0.036407470703125, -0.023284912109375, -0.01126861572265625, 0.0165557861328125, 0.0289154052734375, 0.0002467632293701172, -0.005615234375, 0.08056640625, 0.013153076171875, -0.02899169921875, -0.0203399658203125, 0.0298614501953125, 0.0155792236328125, -0.0194854736328125, -0.01116180419921875, -0.04193115234375, -0.01033782958984375, 0.0056915283203125, -0.021484375, 0.007785797119140625, 0.0015001296997070312, -0.048675537109375, -0.025726318359375, -0.0010585784912109375, 0.009765625, -0.0146484375, 0.011077880859375, 0.00994873046875, -0.0108184814453125, 0.028778076171875, -0.08636474609375, 0.059051513671875, -0.05035400390625, 0.033294677734375, 0.08575439453125, 0.01549530029296875, 0.0016965866088867188, -0.021636962890625, 0.005443572998046875, -0.0262451171875, 0.037353515625, 0.0030994415283203125, -0.045562744140625, -0.0038814544677734375, -0.007434844970703125, 0.0170745849609375, 0.0849609375, -0.026824951171875, -0.039398193359375, -0.01303863525390625, 0.054840087890625, -0.047027587890625, -0.040252685546875, 0.04052734375, -0.020050048828125, 0.033416748046875, -0.0031795501708984375, 0.0024127960205078125, -0.04656982421875, 0.030029296875, 0.00235748291015625, -0.00775909423828125, -0.0265960693359375, -0.08673095703125, -0.1016845703125, -0.06622314453125, -0.0227203369140625, -0.01519775390625, -0.0067138671875, 0.009796142578125, 0.00868988037109375, 0.00943756103515625, -0.01416778564453125, 0.03155517578125, -0.00801849365234375, -0.007595062255859375, 0.0054931640625, -0.01131439208984375, -0.0027637481689453125, 0.0162200927734375, 0.00012189149856567383, -0.00004118680953979492, 0.019866943359375, -0.0218048095703125, -0.020660400390625, 0.00969696044921875, 0.0153350830078125, 0.032012939453125, 0.027435302734375, -0.015380859375, 0.040802001953125, 0.04888916015625, -0.0215606689453125, 0.01291656494140625, 0.001079559326171875, -0.0075225830078125, -0.040771484375, -0.022979736328125, 0.006221771240234375, -0.0428466796875, 0.032867431640625, -0.0048828125, -0.005550384521484375, -0.0219879150390625, -0.0189056396484375, 0.0285797119140625, 0.009490966796875, 0.044158935546875, 0.0014781951904296875, -0.0277557373046875, -0.0153350830078125, 0.01654052734375, -0.0245361328125, 0.0208892822265625, -0.01190948486328125, 0.027130126953125, -0.033447265625, -0.0794677734375, 0.055450439453125, -0.033203125, 0.00971221923828125, -0.0498046875, -0.026214599609375, 0.0012035369873046875, 0.100830078125, -0.08135986328125, -0.01009368896484375, 0.0264129638671875, 0.01678466796875, 0.009490966796875, -0.048309326171875, -0.030487060546875, -0.04248046875, 0.017547607421875, -0.013397216796875, -0.004642486572265625, 0.0036792755126953125, 0.00525665283203125, 0.036895751953125, 0.0308990478515625, -0.01313018798828125, 0.017578125, -0.005817413330078125, 0.02728271484375, -0.0153350830078125, 0.003246307373046875, -0.022003173828125, -0.0153961181640625, -0.014404296875, -0.041778564453125, -0.0289154052734375, 0.032196044921875, 0.048736572265625, -0.00490570068359375, -0.0289459228515625, -0.0150299072265625, 0.035125732421875, 0.0002980232238769531, 0.0333251953125, -0.0156402587890625, -0.012237548828125, -0.020660400390625, -0.0083770751953125, -0.0005822181701660156, -0.015838623046875, -0.019989013671875, -0.0289154052734375, -0.0024890899658203125, -0.0081329345703125, -0.03619384765625, -0.03424072265625, -0.038421630859375, -0.007038116455078125, -0.1016845703125, -0.046478271484375, 0.00478363037109375, -0.007110595703125, 0.0141754150390625, -0.00542449951171875, -0.039794921875, -0.08404541015625, 0.014739990234375, 0.0311737060546875, -0.0228118896484375, 0.0010366439819335938, 0.02606201171875, 0.0182647705078125, -0.019744873046875, -0.05328369140625, -0.001003265380859375, 0.031829833984375, 0.01447296142578125, 0.0292205810546875, 0.04266357421875, -0.004638671875, 0.0033817291259765625, -0.0020618438720703125, 0.0215301513671875, -0.02630615234375, 0.02001953125, -0.0014600753784179688, 0.007488250732421875, 0.005649566650390625, -0.015045166015625, 0.036285400390625, 0.007030487060546875, -0.0092315673828125, -0.018585205078125, 0.0018720626831054688, 0.04840087890625, -0.019195556640625, 0.0186920166015625, -0.04620361328125, -0.0104217529296875, 0.0222625732421875, -0.038360595703125, 0.018890380859375, 0.00031685829162597656, -0.00970458984375, -0.0279083251953125, -0.03997802734375, 0.01036834716796875, -0.006526947021484375, -0.0311737060546875, 0.0132904052734375, 0.01479339599609375, 0.023773193359375, 0.02093505859375, -0.006229400634765625, -0.0152740478515625, 0.07598876953125, -0.019439697265625, -0.08111572265625, 0.0126190185546875, -0.031951904296875, 0.01309967041015625, 0.0406494140625, 0.0389404296875, 0.05560302734375, 0.015716552734375, 0.014556884765625, 0.0028781890869140625, 0.0024166107177734375, 0.03076171875, -0.03125, 0.018798828125, 0.017578125, 0.00817108154296875, 0.0034542083740234375, 0.086181640625, 0.01213836669921875, 0.03887939453125, -0.03680419921875, 0.057037353515625, 0.0164031982421875, 0.030029296875, 0.02362060546875, 0.004238128662109375, -0.01309967041015625, 0.00476837158203125, -0.051513671875, -0.046142578125, -0.038177490234375, 0.0152435302734375, 0.042938232421875, 0.0015153884887695312, 0.0031795501708984375, 0.00904083251953125, 0.0012369155883789062, -0.019378662109375, -0.015869140625, 0.024627685546875, 0.0062408447265625, 0.01141357421875, 0.01287841796875, 0.001667022705078125, 0.0261077880859375, -0.01922607421875, 0.005138397216796875, -0.0322265625, 0.0005474090576171875, -0.043212890625, -0.02032470703125, 0.006313323974609375, 0.0194549560546875, -0.0161895751953125, -0.0230865478515625, -0.0162200927734375, 0.0205230712890625, -0.01202392578125, -0.01983642578125, -0.015716552734375, 0.0246429443359375, -0.03900146484375, 0.02825927734375, -0.031768798828125, 0.001399993896484375, 0.0300140380859375, 0.0066680908203125, 0.07891845703125, 0.039337158203125, -0.04071044921875, 0.0101318359375, -0.0225067138671875, -0.00936126708984375, -0.039459228515625, -0.0225677490234375, -0.03936767578125, 0.00008124113082885742, 0.006816864013671875, 0.0159454345703125, -0.002429962158203125, -0.031341552734375, 0.036468505859375, -0.005672454833984375, -0.00482177734375, -0.0236358642578125, 0.002399444580078125, 0.080322265625, -0.015045166015625, 0.10919189453125, 0.0167999267578125, 0.0211334228515625, -0.045257568359375, -0.0251312255859375, -0.0231170654296875, -0.09393310546875, -0.0033855438232421875, 0.03094482421875, -0.0138397216796875, 0.061492919921875, 0.00887298583984375, 0.02606201171875, -0.005344390869140625, -0.0267333984375, 0.0116119384765625, -0.0110015869140625, 0.038482666015625, -0.03607177734375, -0.049896240234375, 0.0540771484375, -0.007099151611328125, 0.05181884765625, -0.0038623809814453125, -0.00862884521484375, -0.0011949539184570312, 0.005893707275390625, 0.0064544677734375, 0.01104736328125, 0.037078857421875, -0.03778076171875, -0.028656005859375, -0.011260986328125, 0.01190185546875, -0.0124359130859375, 0.02142333984375, -0.0189361572265625, 0.02130126953125, -0.0307159423828125, -0.0350341796875, 0.0105438232421875, 0.007366180419921875, -0.03118896484375, -0.001384735107421875, -0.0148468017578125, -0.0194244384765625, -0.01232147216796875, -0.0111083984375, -0.01000213623046875, 0.00125885009765625, -0.0141143798828125, -0.01409912109375, -0.01514434814453125, 0.00036263465881347656, 0.005687713623046875, -0.007633209228515625, -0.0129241943359375, 0.03076171875, -0.020965576171875, -0.00844573974609375, 0.00914764404296875, 0.0009388923645019531, -0.0211639404296875, 0.044769287109375, 0.0137481689453125, -0.0023136138916015625, -0.0020580291748046875, -0.0271453857421875, 0.007259368896484375, 0.0019073486328125, 0.0109710693359375, 0.01306915283203125, -0.0282440185546875, -0.0159149169921875, 0.0293731689453125, -0.04449462890625, 0.000014722347259521484, -0.0352783203125, 0.0176849365234375, 0.0355224609375, 0.02386474609375, -0.00778961181640625, -0.02020263671875, -0.0062713623046875, 0.004383087158203125, -0.048858642578125, -0.03814697265625, -0.026031494140625, 0.017486572265625, -0.00989532470703125, 0.025543212890625, -0.039642333984375, -0.01334381103515625, -0.002826690673828125, 0.01258087158203125, 0.045196533203125, -0.0007162094116210938, -0.0240020751953125, 0.04638671875, 0.02081298828125, -0.02435302734375, 0.006702423095703125, -0.01727294921875, -0.070556640625, -0.062469482421875, 0.0199127197265625, -0.087158203125, 0.005481719970703125, 0.0182037353515625, -0.029876708984375, 0.07843017578125, 0.004749298095703125, -0.0253753662109375, 0.012939453125, 0.053192138671875, -0.032867431640625, 0.0275421142578125, -0.0246429443359375, 0.0316162109375, -0.01361083984375, 0.0008726119995117188, -0.06500244140625, -0.01491546630859375, -0.0262451171875, 0.03955078125, 0.07635498046875, 0.0182952880859375, -0.039459228515625, -0.0201873779296875, 0.0276336669921875, 0.00908660888671875, -0.024749755859375, 0.0401611328125, -0.0096282958984375, -0.017120361328125, -0.0138092041015625, 0.00562286376953125, 0.03131103515625, -0.0261077880859375, -0.0357666015625, 0.00809478759765625, 0.0036258697509765625, 0.004207611083984375, -0.01255035400390625, -0.00418853759765625, -0.0433349609375, -0.0030117034912109375, 0.0240478515625, 0.030029296875, 0.023590087890625, 0.032928466796875, 0.0401611328125, -0.0016918182373046875, 0.01934814453125, -0.0138397216796875, 0.052337646484375, 0.00321197509765625, 0.00801849365234375, 0.05303955078125, 0.0190887451171875, -0.0009336471557617188, -0.01097869873046875, 0.01274871826171875, -0.006725311279296875, -0.0151519775390625, 0.03228759765625, -0.029693603515625, 0.0031147003173828125, -0.07318115234375, 0.028106689453125, 0.0272979736328125, 0.047149658203125, -0.043426513671875, -0.042083740234375, 0.01995849609375, 0.0254669189453125, 0.0272064208984375, 0.00487518310546875, 0.027252197265625, -0.0165252685546875, 0.020904541015625, -0.0196533203125, 0.0210113525390625, -0.0080718994140625, 0.02197265625, -0.014617919921875, -0.00797271728515625, -0.024139404296875, 0.03814697265625, -0.048126220703125, 0.0211944580078125, 0.00748443603515625, 0.0623779296875, 0.027801513671875, 0.07586669921875, 0.00409698486328125, -0.0236663818359375, 0.038055419921875, 0.0148162841796875, -0.00992584228515625, -0.03826904296875, -0.00945281982421875, -0.06011962890625, -0.01220703125, 0.0258941650390625, 0.035247802734375, 0.0399169921875, 0.036773681640625, 0.02685546875, 0.0335693359375, 0.01275634765625, 0.05963134765625, 0.0022907257080078125, -0.01503753662109375, -0.056732177734375, 0.03448486328125, 0.02178955078125, 0.00861358642578125, 0.0245208740234375, -0.0024242401123046875, 0.04541015625, -0.00457763671875, 0.01629638671875, 0.01287841796875, -0.04351806640625, 0.013092041015625, 0.016326904296875, 0.07452392578125, 0.0238494873046875, -0.07000732421875, -0.00952911376953125, -0.0170440673828125, -0.06951904296875, 0.0283355712890625, 0.049713134765625, -0.0177001953125, -0.0135955810546875, 0.00017750263214111328, -0.0032253265380859375, -0.01776123046875, 0.00555419921875, 0.01189422607421875, 0.0214996337890625, 0.011016845703125, 0.003650665283203125, -0.047515869140625, -0.01519775390625, -0.0116119384765625, 0.005771636962890625, 0.0021991729736328125, 0.052978515625, 0.005977630615234375, 0.020416259765625, -0.01511383056640625, 0.041748046875, -0.06524658203125, 0.0160064697265625, 0.0035877227783203125, -0.007770538330078125, 0.00417327880859375, -0.0027065277099609375, 0.035980224609375, -0.00806427001953125, 0.04974365234375, -0.059295654296875, -0.036346435546875, -0.00868988037109375, 0.025665283203125, -0.0157012939453125, 0.0053253173828125, -0.045166015625, -0.028900146484375, -0.050018310546875, -0.036865234375, 0.022369384765625, 0.01532745361328125, 0.0205230712890625, 0.00940704345703125, 0.0250701904296875, -0.0219268798828125, 0.01910400390625, -0.0044708251953125, 0.0279541015625, 0.033905029296875, -0.00637054443359375, -0.0699462890625, 0.0285491943359375, -0.0025882720947265625, 0.0171661376953125, -0.0003883838653564453, 0.08770751953125, 0.0206756591796875, -0.046630859375, 0.041717529296875, 0.00836944580078125, 0.025909423828125, -0.029998779296875, -0.01172637939453125, 0.0272979736328125, 0.003200531005859375, 0.017547607421875, -0.035186767578125, -0.0265045166015625, -0.029327392578125, 0.00899505615234375, 0.025421142578125, -0.01241302490234375, -0.039031982421875, -0.0679931640625, -0.025787353515625, 0.03350830078125, -0.00588226318359375, 0.01494598388671875, -0.00278472900390625, -0.038543701171875, -0.04119873046875, 0.0306549072265625, -0.056243896484375, 0.0064544677734375, 0.057220458984375, -0.004352569580078125, -0.002017974853515625, -0.047943115234375, -0.03143310546875, -0.04522705078125, 0.05548095703125, 0.039154052734375, -0.0596923828125, -0.01003265380859375, 0.05877685546875, 0.060272216796875, 0.10882568359375, 0.04876708984375, -0.028778076171875, 0.00171661376953125, 0.0015621185302734375, -0.0018100738525390625, -0.0239715576171875, 0.01016998291015625, -0.0260009765625, -0.0275115966796875, -0.0489501953125, 0.06103515625, 0.049591064453125, -0.00551605224609375, -0.0287322998046875, 0.09661865234375, -0.0306396484375, -0.00812530517578125, -0.101806640625, -0.0024471282958984375, -0.01165771484375, 0.07025146484375, -0.01042938232421875, -0.04156494140625, -0.0283355712890625, 0.05706787109375, -0.032989501953125, 0.038543701171875, 0.03155517578125, -0.034912109375, -0.00608062744140625, -0.0316162109375, -0.01502227783203125, -0.034820556640625, 0.04376220703125, -0.0271148681640625, 0.01259613037109375, 0.0000782012939453125, -0.0787353515625, -0.0190582275390625, -0.03729248046875, 0.061309814453125, 0.014923095703125, -0.038177490234375, -0.014068603515625, -0.0183563232421875, 0.003124237060546875, 0.0245208740234375, 0.007038116455078125, -0.0175933837890625, 0.037872314453125, 0.005828857421875, -0.0219879150390625, -0.0054779052734375, -0.0007238388061523438, -0.048553466796875, -0.01276397705078125, 0.00751495361328125, -0.042724609375, 0.0133056640625, 0.005023956298828125, -0.0391845703125, 0.0036716461181640625, -0.006732940673828125, -0.034271240234375, -0.0190582275390625, 0.063232421875, -0.048553466796875, 0.00408935546875, 0.006046295166015625, -0.014190673828125, -0.0362548828125, -0.0305328369140625, -0.011016845703125, -0.019073486328125, -0.0184326171875, -0.00008356571197509766, 0.0236358642578125, -0.016357421875, 0.03704833984375, -0.0169677734375, 0.004985809326171875, -0.0301666259765625, 0.018890380859375, -0.004665374755859375, -0.00010651350021362305, 0.0088653564453125, 0.007537841796875, 0.0021762847900390625, 0.052703857421875, 0.0257720947265625, -0.044403076171875, -0.0189971923828125, 0.0258941650390625, -0.0215911865234375, -0.027862548828125, -0.0180206298828125, -0.01042938232421875, 0.0096435546875, 0.01113128662109375, -0.00811004638671875, -0.0408935546875, 0.0216217041015625, 0.058441162109375, 0.011566162109375, 0.016876220703125 ]
75af8a6c80538b1a386bd277ddf1ad1c43e96315
Wordpress Stackexchange Q: what is the use of /wp-includes/SimplePie? I have this location on my server. /home/localhost/public_html/wp-includes/SimplePie. I have not installed Simplepie plugin. What is it used for since it is not associated with Simplepie plugin. The reason I ask is that, I have fatal error generated from different php files in that location. Each time I debug the error a new error in different file which is at the same location is created. Later I found that it was associated with a plugin. I have removed the plugin but the folder still exist. What is that used for.? A: It's used by wordpress core for parsing RSS & Atom feeds. You probably know that wordpress puts all plugins and themes into the wp-content folder so that you don't need to worry about any other folders/files. Leave it be.
Q: what is the use of /wp-includes/SimplePie? I have this location on my server. /home/localhost/public_html/wp-includes/SimplePie. I have not installed Simplepie plugin. What is it used for since it is not associated with Simplepie plugin. The reason I ask is that, I have fatal error generated from different php files in that location. Each time I debug the error a new error in different file which is at the same location is created. Later I found that it was associated with a plugin. I have removed the plugin but the folder still exist. What is that used for.? A: It's used by wordpress core for parsing RSS & Atom feeds. You probably know that wordpress puts all plugins and themes into the wp-content folder so that you don't need to worry about any other folders/files. Leave it be.
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:441107", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129579" }
[ 0.00640869140625, -0.028839111328125, -0.0269317626953125, -0.0192413330078125, -0.0278167724609375, -0.029144287109375, 0.002246856689453125, -0.0002071857452392578, 0.01427459716796875, 0.0311737060546875, -0.0439453125, 0.02569580078125, -0.00618743896484375, -0.0016326904296875, -0.01348876953125, -0.022857666015625, 0.0311431884765625, -0.0107421875, 0.025299072265625, 0.0016031265258789062, 0.0022716522216796875, 0.016998291015625, 0.0291290283203125, -0.032318115234375, -0.0103302001953125, -0.0294342041015625, 0.06072998046875, -0.0240936279296875, -0.01062774658203125, -0.01325225830078125, 0.00598907470703125, 0.0230560302734375, 0.042388916015625, -0.0009388923645019531, -0.007080078125, 0.04718017578125, 0.004547119140625, -0.00046324729919433594, -0.00363922119140625, 0.0221099853515625, -0.00989532470703125, -0.0007562637329101562, 0.0219879150390625, -0.03521728515625, -0.00634765625, 0.0159454345703125, -0.01114654541015625, -0.00815582275390625, 0.0017251968383789062, -0.0308074951171875, 0.044403076171875, -0.0002129077911376953, 0.049407958984375, -0.0176849365234375, -0.0179901123046875, -0.0102386474609375, 0.0260467529296875, -0.0155029296875, 0.033203125, -0.03607177734375, -0.046142578125, -0.00847625732421875, 0.040618896484375, 0.0000655055046081543, 0.04473876953125, -0.00809478759765625, -0.045989990234375, 0.03948974609375, -0.0301055908203125, 0.0357666015625, 0.0269622802734375, -0.061859130859375, 0.00913238525390625, -0.016876220703125, -0.00627899169921875, 0.0149078369140625, -0.01074981689453125, -0.0016727447509765625, 0.0322265625, 0.0027561187744140625, -0.03753662109375, -0.0167388916015625, -0.058929443359375, -0.06005859375, 0.04248046875, 0.004825592041015625, -0.0151824951171875, -0.01102447509765625, -0.0333251953125, -0.00484466552734375, -0.028228759765625, -0.03717041015625, -0.0195159912109375, -0.01229095458984375, -0.0099945068359375, -0.01236724853515625, -0.00923919677734375, -0.00836944580078125, -0.0200958251953125, 0.03662109375, -0.0005660057067871094, -0.03472900390625, 0.06475830078125, -0.02862548828125, 0.023590087890625, 0.04833984375, -0.04644775390625, 0.01018524169921875, 0.0673828125, 0.051300048828125, 0.03363037109375, 0.01189422607421875, 0.01019287109375, -0.07525634765625, 0.023040771484375, 0.00899505615234375, -0.02581787109375, 0.055023193359375, 0.04937744140625, 0.00012540817260742188, -0.008087158203125, -0.0118865966796875, 0.01025390625, -0.01342010498046875, 0.00858306884765625, -0.01045989990234375, -0.0298004150390625, 0.012908935546875, -0.0298004150390625, 0.035736083984375, -0.004032135009765625, -0.01171875, -0.011322021484375, 0.031097412109375, -0.01279449462890625, -0.026458740234375, 0.058502197265625, 0.0184478759765625, 0.00753021240234375, 0.01096343994140625, -0.00762176513671875, -0.03509521484375, -0.016571044921875, 0.00832366943359375, 0.01324462890625, -0.036895751953125, 0.0132904052734375, 0.06170654296875, 0.0186920166015625, 0.032135009765625, 0.01251983642578125, 0.029449462890625, -0.00429534912109375, 0.02099609375, 0.0391845703125, 0.01055908203125, 0.032135009765625, -0.0244140625, -0.0020160675048828125, -0.0065765380859375, 0.0167999267578125, -0.022003173828125, -0.0060882568359375, -0.04644775390625, -0.049102783203125, 0.0131988525390625, -0.024383544921875, 0.0001996755599975586, 0.0311431884765625, 0.0185394287109375, 0.040771484375, 0.0087432861328125, 0.0038909912109375, 0.0273590087890625, 0.021484375, 0.020599365234375, -0.021331787109375, 0.04156494140625, 0.0237579345703125, 0.034149169921875, 0.006256103515625, -0.0253753662109375, 0.109130859375, -0.0222930908203125, -0.075439453125, 0.01239776611328125, -0.004268646240234375, 0.042266845703125, 0.03814697265625, 0.01076507568359375, 0.05316162109375, -0.0131072998046875, 0.0211181640625, 0.03387451171875, -0.0104217529296875, -0.034637451171875, -0.006103515625, 0.00327301025390625, -0.01389312744140625, -0.0157623291015625, -0.01490020751953125, 0.011016845703125, -0.00009417533874511719, 0.017425537109375, -0.068359375, 0.044403076171875, -0.045013427734375, 0.041748046875, -0.005939483642578125, -0.00970458984375, -0.0016946792602539062, -0.00206756591796875, 0.025970458984375, -0.097900390625, -0.06982421875, 0.0178680419921875, -0.03497314453125, 0.03619384765625, 0.01279449462890625, 0.052703857421875, 0.032867431640625, -0.053466796875, 0.01464080810546875, -0.0181427001953125, 0.011749267578125, 0.0275421142578125, -0.02679443359375, 0.005340576171875, -0.0180511474609375, 0.02203369140625, -0.00635528564453125, 0.027801513671875, 0.027191162109375, 0.0189056396484375, -0.0237579345703125, -0.01116943359375, -0.007419586181640625, -0.061981201171875, -0.003993988037109375, 0.0517578125, 0.076171875, 0.03765869140625, -0.003963470458984375, -0.06927490234375, 0.0491943359375, -0.06988525390625, 0.0206756591796875, -0.0653076171875, -0.016693115234375, 0.0098419189453125, -0.0019969940185546875, 0.00079345703125, 0.0232696533203125, -0.0292816162109375, -0.024688720703125, 0.039642333984375, -0.0177459716796875, -0.01904296875, -0.014678955078125, 0.0257110595703125, 0.00429534912109375, 0.0141143798828125, 0.004192352294921875, 0.01154327392578125, 0.07232666015625, -0.0205841064453125, 0.052581787109375, 0.03802490234375, 0.0142822265625, -0.03326416015625, -0.006244659423828125, -0.011627197265625, 0.0173187255859375, 0.0293426513671875, 0.027252197265625, 0.0189208984375, -0.01708984375, -0.03692626953125, 0.034759521484375, 0.031890869140625, 0.00043201446533203125, 0.042572021484375, -0.0196533203125, -0.015655517578125, -0.0261688232421875, -0.0625, -0.019927978515625, 0.0105438232421875, 0.051910400390625, -0.0242919921875, -0.0226287841796875, 0.040008544921875, 0.005146026611328125, 0.0650634765625, 0.0697021484375, -0.0246429443359375, 0.04473876953125, -0.0118560791015625, 0.0010652542114257812, 0.0019254684448242188, 0.05731201171875, 0.04156494140625, 0.0011777877807617188, -0.030426025390625, 0.013519287109375, 0.0051422119140625, 0.0184478759765625, 0.034942626953125, 0.0110015869140625, -0.0116119384765625, -0.05633544921875, -0.0203857421875, 0.0157623291015625, 0.0255279541015625, -0.009674072265625, -0.049346923828125, -0.01467132568359375, 0.005939483642578125, -0.099609375, -0.07916259765625, 0.00464630126953125, -0.078857421875, -0.02276611328125, -0.01334381103515625, -0.05682373046875, 0.00530242919921875, 0.0345458984375, -0.0022068023681640625, -0.003719329833984375, -0.00908660888671875, -0.0304412841796875, -0.07098388671875, -0.07550048828125, -0.039642333984375, 0.0014705657958984375, 0.0151824951171875, -0.00487518310546875, 0.02532958984375, -0.006275177001953125, -0.014678955078125, -0.0222930908203125, 0.035797119140625, -0.0247344970703125, -0.048187255859375, 0.0399169921875, -0.0037021636962890625, -0.01505279541015625, -0.0014963150024414062, 0.006824493408203125, 0.0343017578125, -0.054229736328125, -0.022186279296875, 0.001140594482421875, -0.008026123046875, 0.01025390625, 0.003993988037109375, -0.005336761474609375, -0.0226593017578125, -0.00634002685546875, -0.06500244140625, -0.00511932373046875, -0.0011882781982421875, -0.04962158203125, -0.000667572021484375, 0.01103973388671875, -0.002330780029296875, -0.00016880035400390625, -0.01525115966796875, 0.03851318359375, 0.007137298583984375, 0.042938232421875, 0.004863739013671875, 0.02459716796875, -0.0110321044921875, 0.014251708984375, -0.059814453125, -0.01074981689453125, -0.033477783203125, 0.00917816162109375, -0.02203369140625, -0.04193115234375, -0.041412353515625, 0.017547607421875, -0.0158538818359375, 0.034759521484375, 0.0196075439453125, -0.0149993896484375, 0.0252227783203125, -0.0123443603515625, -0.00843048095703125, -0.03851318359375, 0.0148162841796875, -0.054931640625, -0.0310211181640625, -0.0036773681640625, 0.0181427001953125, 0.00693511962890625, -0.0110626220703125, -0.005336761474609375, -0.0382080078125, 0.002696990966796875, 0.0014028549194335938, -0.0106964111328125, 0.0036602020263671875, 0.002559661865234375, -0.041748046875, 0.00670623779296875, -0.02392578125, 0.01236724853515625, -0.06463623046875, 0.0369873046875, 0.003528594970703125, -0.019439697265625, 0.006866455078125, 0.0002377033233642578, -0.0728759765625, -0.0299530029296875, 0.004665374755859375, -0.041015625, 0.007781982421875, 0.03546142578125, -0.01546478271484375, 0.011322021484375, 0.029266357421875, -0.036895751953125, 0.01494598388671875, 0.0012359619140625, 0.046783447265625, 0.016082763671875, -0.0166473388671875, 0.0011806488037109375, -0.00801849365234375, 0.03399658203125, 0.04339599609375, -0.044952392578125, 0.049041748046875, -0.015777587890625, 0.0180511474609375, 0.03778076171875, -0.05914306640625, 0.025115966796875, -0.033935546875, -0.03131103515625, 0.04888916015625, -0.0157012939453125, 0.00702667236328125, -0.06414794921875, 0.0202789306640625, 0.045654296875, -0.00814056396484375, -0.001003265380859375, 0.0142974853515625, 0.054046630859375, 0.00922393798828125, -0.0278778076171875, -0.08203125, -0.017791748046875, 0.0435791015625, 0.0286712646484375, 0.0751953125, 0.06805419921875, -0.0245361328125, 0.049407958984375, 0.050048828125, 0.01715087890625, 0.01091766357421875, 0.032501220703125, -0.000823974609375, -0.047454833984375, 0.04254150390625, 0.0093994140625, -0.035247802734375, 0.06036376953125, -0.00019633769989013672, -0.0264892578125, -0.0176544189453125, 0.01171112060546875, -0.0140228271484375, 0.00760650634765625, -0.01451873779296875, -0.06585693359375, 0.01043701171875, 0.0176544189453125, 0.0236663818359375, 0.0243072509765625, -0.0074462890625, 0.05755615234375, 0.02716064453125, -0.006717681884765625, 0.011138916015625, 0.02777099609375, -0.011688232421875, 0.00484466552734375, 0.0299224853515625, -0.0200042724609375, -0.0282135009765625, -0.0048370361328125, 0.0017604827880859375, 0.0010528564453125, -0.051971435546875, 0.0235595703125, 0.011993408203125, -0.015899658203125, 0.0271148681640625, 0.02557373046875, 0.042388916015625, -0.005634307861328125, -0.0211334228515625, 0.0100555419921875, 0.0030269622802734375, -0.04425048828125, -0.0313720703125, -0.0164337158203125, 0.0009236335754394531, -0.028900146484375, 0.0221710205078125, -0.01047515869140625, 0.021728515625, -0.01971435546875, -0.0106964111328125, 0.0338134765625, 0.0290679931640625, 0.0196685791015625, 0.0020160675048828125, 0.0056915283203125, -0.00933074951171875, 0.012664794921875, 0.007549285888671875, -0.047119140625, -0.029296875, -0.0133514404296875, 0.004047393798828125, -0.0589599609375, -0.0306396484375, 0.07122802734375, 0.032470703125, -0.03228759765625, 0.0465087890625, 0.0177764892578125, -0.01194000244140625, -0.042083740234375, -0.01114654541015625, 0.056732177734375, 0.0204620361328125, -0.01482391357421875, -0.0258026123046875, -0.007068634033203125, -0.0187835693359375, 0.048919677734375, -0.0853271484375, 0.03985595703125, 0.037200927734375, 0.022308349609375, -0.013824462890625, -0.0082244873046875, -0.01039886474609375, -0.005157470703125, -0.0196990966796875, 0.0075531005859375, 0.026519775390625, -0.05535888671875, 0.0286407470703125, 0.01544189453125, -0.021820068359375, 0.01500701904296875, 0.05450439453125, -0.01343536376953125, 0.0177154541015625, -0.05413818359375, 0.034942626953125, -0.0340576171875, 0.005657196044921875, -0.0264892578125, -0.0560302734375, -0.05084228515625, -0.0419921875, -0.0261993408203125, 0.007366180419921875, -0.027587890625, 0.0246734619140625, 0.0010271072387695312, 0.054107666015625, -0.0179901123046875, 0.06671142578125, -0.050628662109375, 0.08758544921875, 0.0166473388671875, 0.0457763671875, 0.0027103424072265625, 0.0382080078125, -0.0189056396484375, -0.00490570068359375, 0.0303955078125, -0.087158203125, -0.04315185546875, -0.040313720703125, -0.000522613525390625, 0.0462646484375, 0.0088958740234375, -0.01352691650390625, 0.021270751953125, 0.0093536376953125, 0.00421142578125, 0.000530242919921875, -0.03253173828125, -0.0025424957275390625, 0.0017576217651367188, 0.0191497802734375, -0.0283660888671875, 0.0013589859008789062, 0.00959014892578125, 0.0035991668701171875, -0.0026912689208984375, -0.009429931640625, -0.0197906494140625, 0.038909912109375, -0.055328369140625, 0.104248046875, 0.09381103515625, -0.043426513671875, 0.0255584716796875, 0.0218505859375, -0.04071044921875, 0.0224761962890625, 0.0041656494140625, 0.00431060791015625, -0.04095458984375, 0.042236328125, 0.0010080337524414062, -0.0285491943359375, 0.03271484375, -0.037017822265625, 0.005550384521484375, 0.04766845703125, 0.030487060546875, -0.047454833984375, -0.019622802734375, -0.0054168701171875, -0.019622802734375, 0.0080718994140625, 0.01690673828125, -0.01342010498046875, -0.032562255859375, 0.019775390625, 0.0007457733154296875, -0.0032558441162109375, 0.006008148193359375, -0.005992889404296875, -0.00514984130859375, -0.01352691650390625, 0.047088623046875, 0.00023806095123291016, -0.0323486328125, -0.031005859375, 0.00440216064453125, -0.01039886474609375, -0.020355224609375, 0.027252197265625, -0.004428863525390625, -0.041290283203125, -0.06591796875, -0.005680084228515625, 0.023284912109375, -0.043853759765625, -0.003833770751953125, 0.01690673828125, 0.01471710205078125, 0.064453125, -0.028656005859375, 0.012054443359375, 0.044891357421875, 0.0181732177734375, -0.00010693073272705078, 0.0014295578002929688, 0.056182861328125, 0.002208709716796875, -0.047210693359375, 0.01383209228515625, -0.024139404296875, -0.041168212890625, -0.022064208984375, -0.047882080078125, 0.07958984375, -0.0074005126953125, -0.00788116455078125, 0.0002849102020263672, 0.0252685546875, -0.00135040283203125, -0.02532958984375, 0.0189361572265625, -0.05682373046875, -0.01461029052734375, -0.0166473388671875, -0.0183258056640625, -0.0041351318359375, -0.0372314453125, -0.00936126708984375, 0.12091064453125, -0.0404052734375, -0.00800323486328125, 0.0240020751953125, 0.05816650390625, -0.00969696044921875, 0.043182373046875, -0.02484130859375, 0.0251922607421875, -0.005405426025390625, 0.0303497314453125, -0.04241943359375, -0.01568603515625, -0.0036106109619140625, 0.047515869140625, 0.0428466796875, 0.01538848876953125, -0.0060882568359375, -0.0022296905517578125, 0.0287933349609375, 0.02252197265625, -0.0135498046875, 0.0172882080078125, 0.01082611083984375, 0.035247802734375, -0.00820159912109375, -0.02606201171875, 0.049774169921875, -0.06500244140625, -0.026275634765625, 0.037353515625, 0.02783203125, 0.0186767578125, 0.033905029296875, -0.0165863037109375, -0.02459716796875, 0.0234375, 0.0081329345703125, 0.00920867919921875, -0.0237884521484375, 0.051788330078125, 0.0036869049072265625, -0.0439453125, 0.0151824951171875, -0.04278564453125, 0.050933837890625, -0.0284881591796875, 0.0526123046875, 0.007076263427734375, 0.01058197021484375, 0.083984375, -0.01849365234375, 0.016693115234375, 0.0313720703125, -0.00534820556640625, 0.01256561279296875, -0.004634857177734375, 0.0157623291015625, -0.04461669921875, 0.01386260986328125, 0.031494140625, 0.015228271484375, -0.0180511474609375, -0.0237274169921875, 0.006427764892578125, -0.005496978759765625, 0.00824737548828125, -0.01248931884765625, -0.003040313720703125, -0.0272674560546875, -0.0205841064453125, -0.021881103515625, -0.007587432861328125, 0.038177490234375, -0.0146026611328125, 0.0135955810546875, 0.031005859375, -0.00629425048828125, 0.0164337158203125, 0.000316619873046875, 0.015045166015625, -0.005489349365234375, -0.00933074951171875, -0.01200103759765625, 0.0011091232299804688, 0.0227203369140625, 0.01126861572265625, -0.01456451416015625, 0.043914794921875, 0.026824951171875, 0.002017974853515625, -0.0280914306640625, -0.0535888671875, 0.060089111328125, 0.0299530029296875, 0.03533935546875, 0.01413726806640625, 0.0012617111206054688, -0.01329803466796875, -0.0061187744140625, 0.0099639892578125, 0.036102294921875, -0.01529693603515625, -0.0187530517578125, -0.0199737548828125, 0.00011497735977172852, 0.05059814453125, 0.008026123046875, -0.01462554931640625, -0.00479888916015625, 0.05181884765625, -0.05072021484375, 0.044921875, -0.0192413330078125, -0.0233001708984375, 0.0298614501953125, -0.0303802490234375, 0.0517578125, -0.03717041015625, -0.052001953125, -0.01128387451171875, -0.0213623046875, -0.03167724609375, 0.0182037353515625, 0.0345458984375, 0.00992584228515625, 0.0085296630859375, -0.03668212890625, 0.0016460418701171875, 0.007266998291015625, -0.0197601318359375, 0.00336456298828125, 0.0160675048828125, 0.006549835205078125, -0.008941650390625, -0.020233154296875, -0.0232391357421875, -0.0020847320556640625, 0.027862548828125, 0.034332275390625, 0.036712646484375, -0.0074615478515625, 0.030487060546875, 0.00719451904296875, -0.01947021484375, 0.00974273681640625, 0.0003185272216796875, 0.020355224609375, 0.006786346435546875, -0.007083892822265625, -0.02386474609375, -0.051727294921875, -0.0194549560546875, 0.045623779296875, -0.032623291015625, -0.00994873046875, -0.007965087890625, 0.02587890625, -0.03729248046875, 0.043548583984375, -0.0171966552734375, -0.045257568359375, -0.037811279296875, 0.00730133056640625, 0.00858306884765625, 0.0227508544921875, -0.004192352294921875, 0.045440673828125, 0.03802490234375, -0.01739501953125, 0.0033588409423828125, -0.03558349609375, -0.021392822265625, 0.0174407958984375, 0.08782958984375, -0.05096435546875, -0.0288848876953125, -0.03369140625, -0.01042938232421875, -0.00957489013671875, 0.0660400390625, -0.034912109375, -0.0256805419921875, 0.0082855224609375, -0.016998291015625, -0.003391265869140625, -0.00960540771484375, -0.03753662109375, 0.0093994140625, 0.001178741455078125, -0.034423828125, -0.048736572265625, -0.031768798828125, -0.03924560546875, 0.0036640167236328125, 0.020782470703125, -0.017547607421875, -0.0230865478515625, -0.032318115234375, -0.0019702911376953125, 0.0345458984375, -0.0011529922485351562, -0.050079345703125, 0.021942138671875, -0.00740814208984375, 0.0312347412109375, 0.0075531005859375, -0.0228424072265625, 0.019287109375, 0.06756591796875, -0.040679931640625, -0.025970458984375, -0.02001953125, -0.01094818115234375, -0.0418701171875, 0.0265350341796875, 0.047119140625, -0.03594970703125, -0.053497314453125, 0.035980224609375, 0.01006317138671875, 0.0753173828125, -0.0079803466796875, -0.0144500732421875, 0.003482818603515625, 0.015777587890625, -0.01381683349609375, -0.016632080078125, -0.00531005859375, -0.01540374755859375, 0.00021076202392578125, -0.06634521484375, 0.01165008544921875, -0.025177001953125, -0.0634765625, -0.08544921875, 0.025146484375, -0.01404571533203125, -0.016143798828125, -0.082763671875, 0.039276123046875, 0.01070404052734375, -0.0247650146484375, -0.024871826171875, -0.019775390625, -0.00640106201171875, 0.045318603515625, 0.009246826171875, 0.011505126953125, 0.042510986328125, -0.0022487640380859375, -0.024169921875, -0.0120849609375, -0.015106201171875, -0.0080718994140625, 0.040496826171875, 0.0014772415161132812, 0.049102783203125, 0.0782470703125, 0.000301361083984375, 0.01457977294921875, -0.01230621337890625, -0.09613037109375, 0.005756378173828125, -0.0052337646484375, -0.0303192138671875, 0.00243377685546875, 0.04541015625, 0.057281494140625, 0.0220947265625, -0.049468994140625, -0.0004360675811767578, -0.022552490234375, 0.0022735595703125, -0.0225372314453125, -0.0021533966064453125, -0.03814697265625, -0.01458740234375, -0.0203857421875, -0.012451171875, 0.00395965576171875, -0.033355712890625, -0.0328369140625, -0.0036296844482421875, -0.040618896484375, -0.034423828125, 0.03338623046875, -0.00235748291015625, -0.016998291015625, 0.0019664764404296875, 0.0251007080078125, -0.0175933837890625, 0.01024627685546875, -0.005565643310546875, 0.0380859375, 0.021270751953125, 0.045654296875, -0.011199951171875, 0.0016574859619140625, 0.0296630859375, 0.000461578369140625, 0.006420135498046875, -0.016143798828125, 0.0092010498046875, 0.006046295166015625, -0.0052337646484375, 0.01033782958984375, 0.0159454345703125, 0.01470947265625, -0.0206451416015625, 0.0127105712890625, 0.01056671142578125, -0.0222930908203125, -0.04400634765625, 0.0518798828125, -0.00006455183029174805, -0.033966064453125, 0.0100250244140625, -0.0125274658203125, 0.006603240966796875, 0.035614013671875, -0.00499725341796875, 0.002124786376953125, -0.0182952880859375, -0.027984619140625, -0.004108428955078125, -0.022613525390625 ]
61ba228ba9fef9dd409bd38be0c900cf988dd4c0
Wordpress Stackexchange Q: Use an attachment in multiple posts I have an attachment in a post and I want to attach it to another post without detaching it from the first post, using the WP API. A: When inside of the media uploaded in the post edit screen, just search for your previously attached media and embed it in your new post. The relationship between posts and attachments is preserved in the database. While an attachment can only belong to one post, it can still be embedded in many posts without worry.
Q: Use an attachment in multiple posts I have an attachment in a post and I want to attach it to another post without detaching it from the first post, using the WP API. A: When inside of the media uploaded in the post edit screen, just search for your previously attached media and embed it in your new post. The relationship between posts and attachments is preserved in the database. While an attachment can only belong to one post, it can still be embedded in many posts without worry. A: It is not so simple to do this. In my code change post_parent field from the attachment with new post Id. //take all image-attachments from a post to create post for each $images =& get_children( array ( 'post_parent' => $event_id, 'post_type' => 'attachment', 'post_mime_type' => 'image' )); if ( empty($images) ) { // no attachments here } else { //handle each attachment foreach ( $images as $attachment_id => $attachment ) { $this->addPost( $post_id, $attachment_id, $attachment ); } .... ... function addPost($post_id, $attach_id, $attach) { // Create post object $new_post = array( 'post_title' => 'title', 'post_status' => 'publish', 'post_author' => 1, 'post_type' => 'post' ); // Insert the post into the database // create new post that want to reattach the attatchment $this->unhookFromSavePost(); // see http://codex.wordpress.org/Plugin_API/Action_Reference/save_post#Avoiding_infinite_loops $new_post_id = wp_insert_post( $new_post ); //get post's id $this->hookToSavePost(); $attach->post_parent = $new_post_id; // post_id $newAddedAttachment = wp_insert_attachment( $attach ); If you want to duplicate the attachment and use it in more posts you have to follow the steps here: wp_insert_attachment.Also, it is posible to copy $attach in new object but you have to unset the ID property of this object. $new_attach = $attach; $new_attach->post_parent = $new_post_id; unset($new_attach[0]); // unset first property or unset($new_attach[ID]); wp_insert_attachment( $new_attach);
wordpress
{ "language": "en", "length": 291, "provenance": "stackexchange_00019.jsonl.gz:441203", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129900" }
[ 0.072021484375, -0.019500732421875, 0.007755279541015625, -0.004940032958984375, 0.00598907470703125, -0.03936767578125, 0.07275390625, -0.043609619140625, -0.007625579833984375, 0.01068878173828125, -0.03131103515625, 0.018035888671875, -0.017578125, -0.00667572021484375, -0.0088958740234375, -0.02783203125, 0.037811279296875, -0.0016202926635742188, 0.05718994140625, 0.011871337890625, -0.006031036376953125, 0.031890869140625, 0.0380859375, 0.033355712890625, -0.007648468017578125, 0.064453125, 0.033935546875, -0.016815185546875, -0.014678955078125, -0.012542724609375, 0.01110076904296875, -0.0003414154052734375, 0.029876708984375, 0.0231475830078125, -0.060546875, -0.0144805908203125, -0.006877899169921875, 0.0037708282470703125, -0.0260009765625, 0.04229736328125, 0.017730712890625, -0.0029392242431640625, 0.0280609130859375, 0.038360595703125, 0.004138946533203125, -0.0302886962890625, 0.023162841796875, -0.0570068359375, 0.01116180419921875, -0.0216827392578125, 0.010406494140625, -0.00945281982421875, 0.01052093505859375, 0.004955291748046875, -0.01702880859375, -0.01537322998046875, 0.0065765380859375, 0.003437042236328125, 0.040863037109375, -0.04656982421875, -0.05096435546875, -0.01499176025390625, 0.036529541015625, -0.0030612945556640625, 0.03143310546875, 0.002536773681640625, 0.0193328857421875, 0.0228729248046875, -0.0677490234375, 0.0169525146484375, 0.034576416015625, -0.05615234375, 0.01328277587890625, -0.047821044921875, -0.0021305084228515625, -0.0018949508666992188, 0.0160675048828125, -0.0226593017578125, -0.0119781494140625, -0.0160675048828125, -0.01032257080078125, 0.0224761962890625, -0.0085601806640625, -0.056884765625, 0.020263671875, -0.0177154541015625, -0.00923919677734375, -0.003223419189453125, 0.0091094970703125, -0.01338958740234375, -0.0111541748046875, -0.0122833251953125, 0.0101318359375, 0.034698486328125, -0.0233001708984375, -0.00799560546875, 0.03179931640625, 0.0121917724609375, 0.0105133056640625, 0.0269012451171875, -0.0029239654541015625, -0.047210693359375, 0.030517578125, -0.0217742919921875, 0.0311279296875, -0.0005965232849121094, -0.008148193359375, -0.04254150390625, 0.04534912109375, 0.0158843994140625, -0.041839599609375, 0.11572265625, 0.045806884765625, 0.0016117095947265625, -0.00577545166015625, -0.0210113525390625, -0.00308990478515625, 0.03729248046875, 0.0036678314208984375, -0.01209259033203125, -0.0325927734375, -0.029052734375, -0.00563812255859375, 0.000942230224609375, -0.00127410888671875, -0.0162506103515625, -0.00823211669921875, 0.0275726318359375, 0.028717041015625, 0.00605010986328125, 0.01361083984375, 0.00864410400390625, -0.00897979736328125, 0.01068878173828125, -0.0172271728515625, 0.00870513916015625, -0.06011962890625, 0.0244598388671875, 0.01837158203125, -0.00208282470703125, 0.03173828125, -0.0638427734375, -0.002941131591796875, 0.0531005859375, -0.005458831787109375, 0.0151519775390625, 0.00780487060546875, 0.0128021240234375, -0.00493621826171875, -0.049285888671875, 0.033203125, -0.035064697265625, -0.013824462890625, 0.0205078125, 0.04925537109375, -0.02117919921875, 0.040985107421875, -0.030059814453125, 0.058258056640625, -0.020050048828125, 0.00594329833984375, 0.004138946533203125, 0.04522705078125, -0.007549285888671875, -0.017333984375, 0.0108489990234375, -0.038543701171875, -0.00916290283203125, 0.021484375, 0.057098388671875, -0.023712158203125, -0.032440185546875, -0.0239105224609375, -0.0210723876953125, -0.0293121337890625, -0.005290985107421875, 0.0004191398620605469, -0.0255126953125, 0.0183563232421875, 0.06976318359375, 0.00853729248046875, -0.0133514404296875, 0.013153076171875, -0.0023632049560546875, -0.03564453125, 0.042724609375, 0.01380157470703125, 0.06298828125, -0.00345611572265625, 0.0201263427734375, 0.01128387451171875, 0.0285797119140625, 0.0038280487060546875, -0.017242431640625, -0.031585693359375, -0.0217132568359375, -0.01541900634765625, 0.0167388916015625, -0.0282745361328125, 0.0185089111328125, -0.006458282470703125, 0.0102386474609375, 0.013916015625, 0.0308990478515625, -0.005893707275390625, 0.0120391845703125, -0.0142364501953125, 0.01279449462890625, -0.06744384765625, 0.01213836669921875, 0.037017822265625, -0.0101776123046875, 0.0084075927734375, -0.062225341796875, 0.01397705078125, 0.00945281982421875, -0.0210418701171875, -0.01416015625, -0.0193939208984375, 0.002040863037109375, -0.03790283203125, 0.019561767578125, -0.04681396484375, -0.002292633056640625, 0.059326171875, -0.016845703125, -0.0303802490234375, -0.0364990234375, -0.004016876220703125, -0.00522613525390625, -0.0751953125, 0.06268310546875, 0.01480865478515625, -0.00807952880859375, -0.020294189453125, -0.003849029541015625, -0.00617218017578125, -0.05877685546875, 0.009765625, 0.056060791015625, 0.038665771484375, 0.033843994140625, 0.01316070556640625, 0.0284271240234375, 0.06573486328125, -0.0286865234375, 0.0146942138671875, -0.0008258819580078125, 0.006748199462890625, 0.026519775390625, -0.005126953125, 0.008514404296875, 0.006587982177734375, -0.0958251953125, 0.0212554931640625, 0.036468505859375, 0.0164794921875, 0.0238800048828125, -0.02655029296875, 0.033050537109375, -0.0135650634765625, 0.00714111328125, -0.0044097900390625, -0.002635955810546875, 0.0308380126953125, -0.01181793212890625, 0.055572509765625, 0.0226287841796875, -0.0063934326171875, -0.024810791015625, 0.0098724365234375, 0.018157958984375, 0.00972747802734375, 0.036651611328125, 0.0147552490234375, 0.0031147003173828125, -0.0102081298828125, -0.02783203125, 0.0350341796875, 0.0198516845703125, -0.027862548828125, -0.0061798095703125, -0.022186279296875, -0.01328277587890625, -0.01047515869140625, -0.043212890625, 0.0154571533203125, -0.027008056640625, -0.01190948486328125, -0.02667236328125, -0.00794219970703125, 0.058685302734375, 0.020599365234375, 0.02166748046875, 0.028045654296875, -0.0018529891967773438, -0.048004150390625, -0.035675048828125, 0.037017822265625, -0.048583984375, 0.0003731250762939453, 0.05938720703125, -0.0011653900146484375, 0.0204010009765625, -0.0177764892578125, 0.029632568359375, -0.0034351348876953125, 0.0015420913696289062, 0.00024962425231933594, -0.05755615234375, -0.0034923553466796875, -0.01142120361328125, 0.014129638671875, 0.034393310546875, -0.04656982421875, -0.056671142578125, -0.0262451171875, -0.004863739013671875, -0.11431884765625, -0.059722900390625, 0.020050048828125, -0.07794189453125, 0.0136260986328125, 0.0012750625610351562, -0.0474853515625, -0.02496337890625, 0.059478759765625, 0.0041351318359375, 0.0023670196533203125, -0.0032634735107421875, 0.015777587890625, 0.0130767822265625, -0.0099639892578125, -0.0263824462890625, 0.0007376670837402344, -0.01226806640625, 0.0120086669921875, 0.052825927734375, 0.007404327392578125, -0.016357421875, 0.0129547119140625, -0.018829345703125, -0.0306854248046875, -0.015838623046875, 0.014556884765625, -0.004039764404296875, -0.03643798828125, 0.0093994140625, 0.060760498046875, 0.01348114013671875, -0.03936767578125, 0.00782012939453125, -0.0171356201171875, 0.010406494140625, 0.0184478759765625, 0.00897216796875, -0.013275146484375, 0.03485107421875, 0.0308990478515625, -0.0144195556640625, 0.0277862548828125, -0.01800537109375, -0.0215606689453125, -0.0821533203125, 0.0154266357421875, -0.005107879638671875, -0.02886962890625, -0.037353515625, 0.00011670589447021484, -0.01259613037109375, 0.01038360595703125, -0.03265380859375, 0.048370361328125, -0.00914764404296875, 0.0026454925537109375, -0.0174560546875, -0.038421630859375, -0.036102294921875, 0.041900634765625, -0.03143310546875, 0.0013990402221679688, -0.025604248046875, 0.04193115234375, -0.007221221923828125, -0.045806884765625, 0.0270233154296875, -0.0279388427734375, 0.033966064453125, -0.03521728515625, -0.0237884521484375, 0.0016078948974609375, 0.091064453125, -0.05224609375, -0.0199127197265625, 0.00539398193359375, 0.016387939453125, -0.014678955078125, -0.04742431640625, -0.024810791015625, -0.03961181640625, 0.0518798828125, -0.040283203125, -0.020416259765625, -0.006439208984375, -0.024566650390625, 0.07073974609375, 0.020477294921875, 0.004322052001953125, 0.0293121337890625, -0.056610107421875, 0.01093292236328125, 0.015625, -0.025360107421875, 0.0009918212890625, -0.04986572265625, -0.0251312255859375, -0.049713134765625, -0.0034656524658203125, -0.032470703125, 0.032257080078125, -0.0013866424560546875, 0.005702972412109375, 0.004970550537109375, 0.0355224609375, 0.014129638671875, 0.042449951171875, -0.018402099609375, -0.020843505859375, 0.0081024169921875, -0.0172119140625, -0.002655029296875, -0.0142669677734375, -0.0240936279296875, -0.07659912109375, -0.05792236328125, -0.04327392578125, -0.0352783203125, 0.0439453125, -0.0361328125, 0.01399993896484375, -0.016143798828125, 0.0007033348083496094, 0.02288818359375, 0.032562255859375, -0.013885498046875, 0.0254364013671875, -0.01334381103515625, -0.0179290771484375, 0.01433563232421875, 0.01039886474609375, -0.003448486328125, 0.01358795166015625, 0.06097412109375, 0.00928497314453125, -0.0028400421142578125, -0.1044921875, -0.00516510009765625, 0.046051025390625, 0.0014553070068359375, 0.039520263671875, 0.050994873046875, -0.016387939453125, 0.0292510986328125, 0.026763916015625, 0.015838623046875, -0.0341796875, 0.045745849609375, 0.011260986328125, 0.0014238357543945312, 0.0185546875, 0.00341796875, 0.01416778564453125, -0.02191162109375, -0.027923583984375, -0.006450653076171875, -0.0218658447265625, 0.03173828125, -0.01500701904296875, 0.06390380859375, -0.0182037353515625, -0.05450439453125, 0.0167236328125, -0.041351318359375, 0.0257568359375, 0.04034423828125, -0.0174102783203125, 0.0467529296875, 0.0245513916015625, 0.0017042160034179688, -0.00862884521484375, 0.01102447509765625, -0.02398681640625, 0.03057861328125, -0.00566864013671875, -0.019866943359375, -0.0162353515625, -0.005413055419921875, -0.0008425712585449219, -0.0019893646240234375, -0.0262603759765625, -0.035186767578125, 0.00196075439453125, 0.035888671875, 0.01139068603515625, 0.00417327880859375, 0.0164947509765625, -0.0189666748046875, -0.0186309814453125, 0.0033550262451171875, -0.02294921875, -0.04205322265625, -0.035888671875, 0.008392333984375, -0.004055023193359375, 0.00569915771484375, 0.056243896484375, 0.0189056396484375, -0.02899169921875, 0.041168212890625, -0.0206756591796875, 0.0472412109375, 0.00942230224609375, -0.0003273487091064453, -0.0111541748046875, 0.06036376953125, 0.0007905960083007812, -0.01399993896484375, 0.01122283935546875, -0.04656982421875, 0.01003265380859375, 0.02239990234375, 0.07073974609375, -0.0094146728515625, -0.03912353515625, 0.02325439453125, -0.052215576171875, -0.011749267578125, 0.040130615234375, 0.01318359375, -0.057891845703125, 0.005039215087890625, 0.0438232421875, -0.0008463859558105469, -0.0210113525390625, 0.01898193359375, -0.0263824462890625, 0.024871826171875, 0.0170745849609375, -0.045623779296875, -0.02117919921875, -0.002410888671875, -0.00037789344787597656, 0.021697998046875, -0.0080413818359375, -0.0257720947265625, -0.0128173828125, -0.005504608154296875, -0.018524169921875, -0.01322174072265625, 0.07177734375, -0.0259246826171875, 0.01505279541015625, -0.0111541748046875, -0.01146697998046875, -0.0263214111328125, 0.0145263671875, 0.046478271484375, 0.021270751953125, -0.0174407958984375, -0.00516510009765625, -0.048614501953125, -0.0286712646484375, 0.0249786376953125, -0.038604736328125, -0.05133056640625, -0.0241546630859375, -0.0013904571533203125, 0.047882080078125, -0.0113372802734375, 0.0097808837890625, -0.0003573894500732422, 0.0006837844848632812, -0.0184326171875, 0.061798095703125, -0.003932952880859375, 0.056640625, 0.0005311965942382812, 0.052520751953125, 0.0208282470703125, 0.0167083740234375, -0.034088134765625, -0.011016845703125, -0.0224609375, -0.10736083984375, 0.0027103424072265625, 0.06182861328125, -0.024932861328125, 0.0291595458984375, -0.040283203125, 0.0197296142578125, 0.022247314453125, -0.04901123046875, -0.0100860595703125, -0.01068115234375, 0.063232421875, -0.052642822265625, -0.0128173828125, 0.0341796875, -0.0264129638671875, 0.0128021240234375, -0.0019235610961914062, -0.0092926025390625, 0.02545166015625, -0.0165252685546875, 0.01245880126953125, 0.0186309814453125, 0.0187530517578125, -0.01313018798828125, 0.0294952392578125, 0.0181121826171875, 0.036956787109375, 0.018157958984375, 0.0214080810546875, 0.003208160400390625, 0.0200347900390625, -0.0267333984375, -0.02703857421875, -0.0008082389831542969, -0.0105743408203125, -0.00156402587890625, -0.01517486572265625, -0.01358795166015625, 0.027496337890625, -0.02960205078125, 0.02679443359375, 0.00250244140625, 0.03546142578125, -0.01593017578125, -0.0263824462890625, 0.051025390625, -0.00258636474609375, 0.017730712890625, 0.0018587112426757812, 0.0218353271484375, 0.00921630859375, -0.0053253173828125, 0.0164337158203125, -0.029327392578125, 0.001438140869140625, -0.0242156982421875, -0.0021820068359375, 0.00365447998046875, -0.05010986328125, 0.01318359375, 0.048980712890625, 0.007904052734375, -0.026397705078125, -0.00963592529296875, 0.023406982421875, -0.04180908203125, -0.057952880859375, 0.0219573974609375, -0.0219879150390625, 0.01049041748046875, -0.025726318359375, -0.00994873046875, 0.039337158203125, 0.04144287109375, -0.00798797607421875, -0.00315093994140625, 0.0242156982421875, 0.0124053955078125, -0.06561279296875, -0.037353515625, 0.01197052001953125, 0.08428955078125, -0.057708740234375, 0.04443359375, -0.014495849609375, 0.00677490234375, -0.0137939453125, -0.00984954833984375, 0.064697265625, -0.052459716796875, -0.0019664764404296875, 0.0271148681640625, 0.0240020751953125, -0.004558563232421875, 0.0162811279296875, 0.00914764404296875, -0.0194854736328125, -0.0267486572265625, -0.006099700927734375, -0.060943603515625, -0.02288818359375, -0.0082855224609375, -0.0947265625, 0.1181640625, -0.01070404052734375, 0.06622314453125, -0.0230712890625, 0.0367431640625, 0.0022563934326171875, 0.0208587646484375, -0.0390625, 0.035858154296875, -0.0108489990234375, 0.0213775634765625, -0.06903076171875, -0.0133819580078125, -0.022216796875, 0.036224365234375, 0.045623779296875, 0.00835418701171875, -0.0196685791015625, -0.03497314453125, 0.039459228515625, 0.037261962890625, 0.00811767578125, 0.0244598388671875, 0.019073486328125, 0.002895355224609375, 0.04315185546875, 0.017822265625, 0.05010986328125, -0.024200439453125, -0.0146484375, 0.03790283203125, 0.017425537109375, 0.021636962890625, 0.0274658203125, -0.0029354095458984375, -0.00547027587890625, 0.0018568038940429688, 0.0201416015625, -0.0167388916015625, 0.0194091796875, 0.0129241943359375, 0.0189666748046875, -0.0168914794921875, 0.0277099609375, -0.024688720703125, 0.043487548828125, -0.0020961761474609375, 0.0418701171875, 0.0189208984375, 0.01580810546875, 0.0261993408203125, 0.017791748046875, 0.027252197265625, 0.0281219482421875, -0.0291748046875, 0.01861572265625, -0.007076263427734375, 0.02099609375, -0.07415771484375, -0.043701171875, 0.031982421875, 0.041351318359375, -0.01971435546875, -0.0064239501953125, 0.021087646484375, -0.0011301040649414062, -0.0276641845703125, -0.036163330078125, -0.03826904296875, -0.00933074951171875, 0.011749267578125, -0.02984619140625, 0.0255889892578125, 0.0285491943359375, 0.043731689453125, 0.010467529296875, 0.01702880859375, -0.095947265625, -0.0035457611083984375, -0.037628173828125, 0.0018558502197265625, 0.01012420654296875, 0.034210205078125, 0.02423095703125, 0.046661376953125, 0.0283050537109375, -0.00766754150390625, -0.0256195068359375, 0.04266357421875, 0.0269317626953125, 0.0128936767578125, -0.01763916015625, -0.042724609375, 0.042816162109375, 0.0130615234375, 0.033447265625, 0.0222625732421875, 0.04290771484375, 0.03387451171875, -0.0186614990234375, -0.01678466796875, 0.01194000244140625, -0.0189208984375, 0.05908203125, -0.042236328125, 0.012542724609375, -0.0075531005859375, -0.0299072265625, -0.045135498046875, -0.04412841796875, 0.0592041015625, -0.00791168212890625, 0.0278167724609375, 0.0021209716796875, -0.015899658203125, 0.0248870849609375, -0.0069427490234375, 0.034149169921875, 0.0160980224609375, -0.0933837890625, 0.0038471221923828125, -0.032867431640625, -0.08270263671875, 0.025909423828125, 0.041839599609375, -0.051727294921875, 0.01161956787109375, -0.01436614990234375, 0.01549530029296875, -0.01184844970703125, -0.021453857421875, 0.014434814453125, -0.017547607421875, 0.0117034912109375, -0.00801849365234375, -0.058380126953125, -0.0439453125, -0.0079193115234375, 0.03875732421875, 0.0158233642578125, 0.01062774658203125, 0.0223541259765625, 0.0323486328125, -0.00222015380859375, 0.0290374755859375, -0.017547607421875, 0.01158905029296875, -0.0242767333984375, 0.0077972412109375, 0.010498046875, -0.006175994873046875, 0.0223541259765625, 0.028472900390625, 0.0389404296875, -0.0208282470703125, -0.0020999908447265625, -0.01049041748046875, 0.0196685791015625, -0.0177764892578125, 0.031707763671875, -0.0035190582275390625, 0.032562255859375, -0.004947662353515625, -0.03167724609375, 0.0545654296875, 0.0290985107421875, 0.01470184326171875, 0.007076263427734375, 0.0516357421875, 0.005069732666015625, 0.01499176025390625, 0.0254669189453125, 0.0006308555603027344, 0.0197601318359375, 0.0145263671875, -0.04901123046875, -0.00798797607421875, -0.01531982421875, -0.01739501953125, 0.01303863525390625, 0.037322998046875, 0.0175323486328125, -0.0285797119140625, -0.0222625732421875, 0.052764892578125, 0.0311126708984375, 0.007781982421875, 0.0206451416015625, 0.0116424560546875, -0.042755126953125, -0.0025920867919921875, -0.0015649795532226562, -0.0169219970703125, -0.040924072265625, 0.020721435546875, 0.021087646484375, -0.005092620849609375, 0.015167236328125, -0.04754638671875, -0.0299072265625, 0.048919677734375, 0.01404571533203125, -0.0489501953125, 0.006465911865234375, 0.00792694091796875, 0.01544189453125, 0.011962890625, -0.049346923828125, 0.006591796875, 0.0689697265625, 0.0054931640625, -0.045013427734375, -0.038055419921875, 0.0106658935546875, -0.05731201171875, 0.018768310546875, 0.00904083251953125, -0.02081298828125, 0.04693603515625, 0.054351806640625, 0.0439453125, 0.09698486328125, 0.004611968994140625, -0.02606201171875, -0.032440185546875, 0.027435302734375, 0.00824737548828125, 0.0147247314453125, 0.00849151611328125, 0.0161590576171875, -0.0268707275390625, -0.03497314453125, 0.0228424072265625, 0.02264404296875, -0.04193115234375, -0.0953369140625, 0.039886474609375, -0.037445068359375, -0.036346435546875, -0.07598876953125, -0.00667572021484375, -0.006710052490234375, -0.0097808837890625, -0.0240020751953125, -0.02838134765625, -0.03558349609375, 0.05322265625, -0.0299835205078125, 0.02294921875, 0.007022857666015625, -0.012847900390625, -0.0340576171875, -0.0170135498046875, -0.03167724609375, -0.019073486328125, 0.0084228515625, -0.00777435302734375, 0.05242919921875, 0.061065673828125, -0.01381683349609375, 0.0164794921875, 0.0147552490234375, -0.037109375, -0.004924774169921875, -0.006282806396484375, -0.045013427734375, 0.0192718505859375, 0.05828857421875, 0.096435546875, 0.0283050537109375, -0.053192138671875, 0.0684814453125, -0.0184173583984375, -0.09063720703125, 0.0138397216796875, 0.0044097900390625, 0.015411376953125, 0.031280517578125, -0.027069091796875, 0.01293182373046875, -0.00197601318359375, -0.002552032470703125, -0.0068359375, -0.0294647216796875, 0.0163726806640625, 0.01346588134765625, -0.047088623046875, 0.004230499267578125, 0.06829833984375, -0.033111572265625, 0.00919342041015625, 0.0276641845703125, -0.01708984375, 0.034942626953125, 0.049407958984375, 0.033050537109375, -0.025634765625, -0.0218658447265625, -0.004974365234375, 0.02362060546875, 0.017974853515625, -0.00811767578125, -0.044158935546875, -0.04058837890625, 0.01328277587890625, 0.01422882080078125, 0.0123291015625, -0.00757598876953125, 0.016937255859375, 0.027587890625, 0.021240234375, -0.037078857421875, 0.045623779296875, -0.03436279296875, 0.02655029296875, -0.0176544189453125, 0.0218963623046875, 0.0238189697265625, 0.0178375244140625, -0.001621246337890625, -0.0015048980712890625, -0.01274871826171875, -0.03466796875, 0.0228729248046875, 0.043853759765625, -0.0005598068237304688, 0.01971435546875 ]
e0b05be3e1bed81362eb0a30357716e504f4c591
Wordpress Stackexchange Q: Replacing the List table of a Post Type Is there a way to replace the WP_List_Table object of a post type to display said post type differently on the Admin edit.php page? A: This example is applied to post post type. This is leveraging the WP_Posts_List_Table class and views-edit-{$post_type} filter. This seem isn't the best way, but it works: Make sure the class is loaded on your page: if(!class_exists('WP_List_Table')){ require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); } if(!class_exists('WP_Posts_List_Table')){ require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' ); } Extend the WP_Posts_List_Table class to remove list table and define the custom content: class wpse_CustomTable extends WP_Posts_List_Table { // remove search box public function search_box( $text, $input_id ){ } // Your custom list table is here public function display() { echo "Test"; } } Use it inside a filter hook: // hook into `views-edit` add_filter( 'views_edit-post', "sstssfb_custom_list_table"); // Override the post table object function sstssfb_custom_list_table() { global $wp_list_table; $mylisttable = new wpse_CustomTable(); $wp_list_table = $mylisttable ; } Result:
Q: Replacing the List table of a Post Type Is there a way to replace the WP_List_Table object of a post type to display said post type differently on the Admin edit.php page? A: This example is applied to post post type. This is leveraging the WP_Posts_List_Table class and views-edit-{$post_type} filter. This seem isn't the best way, but it works: Make sure the class is loaded on your page: if(!class_exists('WP_List_Table')){ require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); } if(!class_exists('WP_Posts_List_Table')){ require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' ); } Extend the WP_Posts_List_Table class to remove list table and define the custom content: class wpse_CustomTable extends WP_Posts_List_Table { // remove search box public function search_box( $text, $input_id ){ } // Your custom list table is here public function display() { echo "Test"; } } Use it inside a filter hook: // hook into `views-edit` add_filter( 'views_edit-post', "sstssfb_custom_list_table"); // Override the post table object function sstssfb_custom_list_table() { global $wp_list_table; $mylisttable = new wpse_CustomTable(); $wp_list_table = $mylisttable ; } Result: A: No, you cannot replace the list table. There is no filter, everything is hard-coded. But you can change the post type registration, set show_ui to FALSE to prevent the built-in page, and add a custom page for the post type listing to show the editable items. add_action( 'wp_loaded', function(){ register_post_type( 'test', array( 'labels' => array( 'name' => 'TEST' ), 'public' => TRUE, 'show_ui' => FALSE ) ); }); add_action( 'admin_menu', function(){ add_object_page( 'TEST', 'TEST', 'edit_test', 'test', function(){ echo 'test'; // list post type items here } ); }); Result
wordpress
{ "language": "en", "length": 251, "provenance": "stackexchange_00019.jsonl.gz:441216", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/129949" }
[ 0.072509765625, 0.01386260986328125, 0.0040740966796875, -0.0386962890625, 0.053741455078125, -0.03302001953125, 0.07000732421875, -0.016326904296875, 0.0206298828125, -0.02911376953125, -0.020843505859375, -0.043731689453125, -0.04681396484375, -0.05389404296875, 0.00222015380859375, -0.06072998046875, 0.055572509765625, -0.057525634765625, 0.021270751953125, -0.0266571044921875, 0.020477294921875, -0.00934600830078125, 0.06500244140625, 0.034820556640625, 0.00033855438232421875, -0.005382537841796875, 0.052093505859375, 0.0116424560546875, 0.0021190643310546875, 0.0075836181640625, 0.0128936767578125, -0.035919189453125, 0.02947998046875, 0.005886077880859375, -0.01064300537109375, 0.005096435546875, -0.00205230712890625, 0.0006909370422363281, -0.0016565322875976562, 0.0091552734375, 0.0211944580078125, -0.0159149169921875, 0.00004100799560546875, -0.019378662109375, -0.0248565673828125, -0.005161285400390625, 0.02276611328125, 0.00142669677734375, 0.047332763671875, -0.0118865966796875, 0.00921630859375, 0.02435302734375, 0.019561767578125, -0.0599365234375, -0.0020294189453125, 0.0421142578125, -0.0231170654296875, -0.01319122314453125, -0.0012617111206054688, 0.0139617919921875, 0.0242767333984375, 0.01259613037109375, 0.01012420654296875, 0.021087646484375, -0.0158233642578125, 0.005817413330078125, 0.0595703125, -0.0105133056640625, -0.0386962890625, -0.0285491943359375, 0.026580810546875, 0.0012960433959960938, -0.00860595703125, -0.023284912109375, -0.016357421875, -0.0011196136474609375, 0.03656005859375, -0.007724761962890625, -0.0158843994140625, 0.0197601318359375, 0.003490447998046875, -0.0120391845703125, -0.0012426376342773438, -0.0161895751953125, -0.017791748046875, -0.00445556640625, -0.0200347900390625, -0.0038089752197265625, 0.004116058349609375, -0.013763427734375, -0.00595855712890625, -0.0204925537109375, -0.0016002655029296875, 0.0181121826171875, 0.0034618377685546875, -0.0408935546875, 0.0186614990234375, 0.050018310546875, -0.0081329345703125, 0.01458740234375, 0.0234375, -0.050811767578125, 0.050079345703125, -0.046417236328125, 0.006183624267578125, 0.025360107421875, -0.0228271484375, 0.028472900390625, 0.042755126953125, 0.039886474609375, 0.0186614990234375, -0.0173797607421875, -0.0176849365234375, 0.01259613037109375, -0.048797607421875, -0.01166534423828125, -0.0478515625, -0.02703857421875, -0.028839111328125, -0.01201629638671875, -0.02099609375, -0.040924072265625, 0.023284912109375, -0.0024700164794921875, 0.051544189453125, 0.0175933837890625, -0.038238525390625, 0.03204345703125, 0.033599853515625, -0.00801849365234375, -0.058013916015625, -0.00634765625, 0.093994140625, 0.08636474609375, 0.058502197265625, -0.006153106689453125, 0.0198974609375, -0.0031223297119140625, -0.013427734375, 0.0311279296875, -0.00550079345703125, -0.045501708984375, -0.0263519287109375, -0.004344940185546875, 0.02349853515625, 0.03985595703125, 0.03759765625, -0.006290435791015625, -0.017364501953125, -0.043304443359375, 0.0020008087158203125, 0.0175628662109375, 0.0140228271484375, 0.0312347412109375, -0.0019817352294921875, -0.005756378173828125, 0.046173095703125, -0.028717041015625, -0.01849365234375, -0.03961181640625, 0.00379180908203125, -0.025421142578125, -0.0135498046875, -0.054931640625, -0.07391357421875, 0.0408935546875, -0.0300445556640625, -0.0138702392578125, 0.0164642333984375, -0.05023193359375, 0.01509857177734375, -0.02008056640625, 0.039337158203125, 0.00496673583984375, 0.0034942626953125, 0.0299530029296875, -0.0192413330078125, 0.019866943359375, 0.0258636474609375, 0.0058135986328125, -0.00943756103515625, -0.032806396484375, 0.0423583984375, -0.00313568115234375, -0.055816650390625, 0.04852294921875, -0.008636474609375, 0.06365966796875, 0.042572021484375, 0.00733184814453125, 0.005031585693359375, -0.0186309814453125, -0.03057861328125, 0.016937255859375, 0.0156402587890625, -0.035614013671875, -0.045196533203125, -0.0287628173828125, -0.0061798095703125, 0.031463623046875, -0.004314422607421875, 0.02032470703125, -0.0036563873291015625, 0.01119232177734375, -0.05560302734375, 0.03546142578125, -0.02874755859375, 0.05340576171875, 0.01142120361328125, 0.024749755859375, 0.02362060546875, 0.019683837890625, -0.045257568359375, 0.021484375, -0.027923583984375, 0.0002727508544921875, -0.0114898681640625, 0.019744873046875, -0.01110076904296875, -0.0007748603820800781, -0.025177001953125, -0.01042938232421875, -0.02203369140625, -0.00836944580078125, 0.016693115234375, -0.00688934326171875, -0.0165252685546875, -0.0032749176025390625, 0.03839111328125, 0.00015938282012939453, 0.04437255859375, 0.0296173095703125, 0.04925537109375, 0.05078125, -0.037109375, -0.0105438232421875, -0.028656005859375, -0.033905029296875, -0.01556396484375, 0.047760009765625, 0.061767578125, 0.046417236328125, 0.0160980224609375, -0.026824951171875, 0.1058349609375, 0.0239715576171875, 0.03704833984375, -0.04986572265625, -0.005496978759765625, 0.038848876953125, 0.010162353515625, 0.00966644287109375, 0.017669677734375, 0.007366180419921875, -0.0011005401611328125, 0.027801513671875, 0.0183563232421875, 0.05645751953125, -0.001209259033203125, -0.015228271484375, -0.01126861572265625, -0.0160369873046875, -0.0257110595703125, -0.003185272216796875, 0.061279296875, 0.00382232666015625, 0.051055908203125, 0.02301025390625, -0.043304443359375, 0.0208740234375, 0.0240631103515625, -0.0080108642578125, -0.001148223876953125, 0.01142120361328125, -0.036285400390625, 0.03057861328125, -0.0499267578125, 0.02459716796875, 0.0178985595703125, -0.002346038818359375, 0.01490020751953125, 0.018402099609375, -0.028076171875, -0.0025577545166015625, 0.01227569580078125, -0.060882568359375, -0.0024318695068359375, 0.0467529296875, -0.00661468505859375, -0.02166748046875, 0.004772186279296875, 0.0153656005859375, -0.016510009765625, 0.0229339599609375, 0.00010627508163452148, -0.0172576904296875, 0.0528564453125, -0.0223846435546875, 0.03448486328125, -0.0266571044921875, 0.036102294921875, 0.054107666015625, -0.026153564453125, 0.019256591796875, -0.0086212158203125, 0.01187896728515625, -0.00958251953125, 0.00931549072265625, -0.0087738037109375, -0.02801513671875, -0.0233001708984375, 0.02325439453125, 0.0205535888671875, 0.057464599609375, -0.0021800994873046875, -0.04779052734375, 0.00313568115234375, 0.03118896484375, -0.03839111328125, -0.03350830078125, 0.055328369140625, -0.0430908203125, -0.0267333984375, -0.0238037109375, -0.040802001953125, 0.0016574859619140625, -0.01320648193359375, -0.007354736328125, 0.00882720947265625, -0.01255035400390625, 0.00493621826171875, -0.0117950439453125, -0.03253173828125, -0.03765869140625, 0.01152801513671875, 0.00021898746490478516, 0.004138946533203125, 0.038055419921875, 0.013397216796875, -0.0252532958984375, 0.03192138671875, 0.0322265625, -0.0141448974609375, -0.0003693103790283203, 0.0276641845703125, -0.068603515625, 0.019622802734375, -0.004940032958984375, 0.0213623046875, 0.036773681640625, -0.018585205078125, 0.005859375, -0.0198516845703125, 0.0295867919921875, 0.0201568603515625, -0.02587890625, 0.0184478759765625, 0.037261962890625, 0.00452423095703125, -0.026092529296875, -0.0006494522094726562, -0.01131439208984375, -0.01519775390625, -0.0240020751953125, -0.0309600830078125, 0.0135040283203125, -0.01959228515625, 0.044219970703125, 0.02606201171875, 0.0248260498046875, 0.0494384765625, -0.00281524658203125, -0.0184478759765625, 0.0026798248291015625, 0.01247406005859375, -0.036102294921875, 0.027099609375, -0.0148162841796875, -0.0237884521484375, 0.007843017578125, 0.0087127685546875, 0.0290374755859375, -0.039764404296875, -0.0100860595703125, -0.07672119140625, 0.059051513671875, -0.0183258056640625, -0.013275146484375, -0.034881591796875, -0.023651123046875, 0.0160980224609375, 0.09600830078125, -0.06915283203125, -0.0194549560546875, -0.017547607421875, 0.0157012939453125, -0.00344085693359375, -0.055450439453125, -0.0239715576171875, -0.0251922607421875, -0.10693359375, -0.0031299591064453125, -0.00958251953125, -0.0251312255859375, -0.01447296142578125, 0.05816650390625, -0.049041748046875, -0.04412841796875, 0.0413818359375, -0.048126220703125, -0.0140533447265625, 0.0287628173828125, -0.036041259765625, -0.01497650146484375, -0.039337158203125, -0.0162506103515625, -0.0352783203125, -0.0016345977783203125, -0.057037353515625, 0.030670166015625, 0.044647216796875, -0.01016998291015625, -0.0020885467529296875, 0.025238037109375, 0.0657958984375, 0.01508331298828125, 0.01824951171875, -0.0269622802734375, -0.0008769035339355469, -0.0296630859375, 0.018768310546875, -0.034637451171875, -0.02593994140625, -0.0660400390625, -0.034576416015625, -0.0010671615600585938, 0.00742340087890625, 0.052093505859375, 0.01012420654296875, -0.000029802322387695312, -0.0250244140625, -0.0419921875, -0.0601806640625, 0.01508331298828125, -0.047088623046875, 0.00926971435546875, -0.047119140625, -0.060791015625, 0.0283660888671875, 0.029083251953125, -0.0235595703125, 0.0211944580078125, 0.0207366943359375, 0.0137786865234375, -0.032135009765625, -0.059722900390625, 0.001056671142578125, 0.011627197265625, -0.033050537109375, 0.054595947265625, 0.01690673828125, 0.002948760986328125, 0.043060302734375, -0.033294677734375, -0.041351318359375, -0.005474090576171875, 0.0290985107421875, 0.0305328369140625, 0.0086669921875, -0.0225067138671875, -0.01311492919921875, 0.052520751953125, 0.00959014892578125, 0.014617919921875, -0.0141143798828125, 0.013763427734375, 0.0305023193359375, 0.01129913330078125, -0.033660888671875, -0.030670166015625, -0.0288238525390625, 0.00470733642578125, -0.0311737060546875, 0.0347900390625, 0.0024204254150390625, 0.012939453125, 0.0080108642578125, 0.0199127197265625, 0.021514892578125, -0.01264190673828125, 0.0582275390625, -0.0269622802734375, 0.046905517578125, 0.011016845703125, 0.00261688232421875, -0.04864501953125, -0.00390625, -0.008636474609375, 0.0029773712158203125, -0.041412353515625, -0.00013303756713867188, 0.0160980224609375, 0.0266571044921875, 0.01318359375, 0.01468658447265625, 0.006832122802734375, 0.04443359375, -0.00955963134765625, -0.0025539398193359375, 0.037750244140625, 0.017669677734375, -0.021728515625, 0.036163330078125, 0.03955078125, -0.0110931396484375, -0.02886962890625, 0.046173095703125, 0.0294952392578125, -0.00833892822265625, -0.01158905029296875, 0.060943603515625, 0.04644775390625, 0.023284912109375, 0.01023101806640625, -0.01568603515625, -0.01045989990234375, 0.01132965087890625, -0.018798828125, -0.031097412109375, -0.0257720947265625, 0.031982421875, 0.033111572265625, 0.00754547119140625, 0.0121307373046875, -0.00618743896484375, -0.0035343170166015625, -0.01080322265625, 0.019439697265625, -0.01194000244140625, -0.044219970703125, -0.031341552734375, -0.0012445449829101562, 0.0396728515625, -0.0194854736328125, -0.00012993812561035156, -0.00803375244140625, -0.0290069580078125, 0.004970550537109375, -0.057037353515625, 0.0011138916015625, -0.03204345703125, -0.0180816650390625, -0.05072021484375, -0.007244110107421875, 0.025665283203125, -0.045013427734375, -0.0477294921875, 0.0167694091796875, -0.00986480712890625, 0.00618743896484375, -0.026275634765625, 0.043304443359375, -0.00450897216796875, -0.0306549072265625, -0.0137481689453125, 0.02001953125, 0.045501708984375, 0.0301361083984375, -0.07305908203125, -0.004974365234375, -0.05084228515625, 0.0013017654418945312, 0.0038967132568359375, -0.023712158203125, -0.035400390625, 0.001232147216796875, 0.013824462890625, -0.00460052490234375, 0.00443267822265625, -0.0362548828125, -0.02471923828125, 0.01239776611328125, 0.03790283203125, -0.0030841827392578125, -0.014862060546875, 0.09429931640625, -0.0277252197265625, 0.062103271484375, 0.015380859375, 0.043701171875, -0.027923583984375, -0.00942230224609375, -0.00021409988403320312, -0.07672119140625, -0.016845703125, 0.0143890380859375, -0.05633544921875, 0.036376953125, 0.0298309326171875, 0.004688262939453125, 0.0140228271484375, -0.022308349609375, -0.010498046875, -0.0283203125, 0.0125885009765625, -0.049102783203125, 0.0279693603515625, -0.025390625, 0.01354217529296875, 0.0166015625, -0.034881591796875, -0.025360107421875, 0.0016546249389648438, 0.0013322830200195312, 0.0014743804931640625, 0.006519317626953125, -0.061431884765625, 0.06939697265625, 0.057861328125, 0.0211334228515625, 0.03302001953125, -0.02386474609375, 0.00022470951080322266, -0.0019140243530273438, -0.031768798828125, 0.0027408599853515625, 0.044036865234375, 0.0357666015625, -0.0171051025390625, -0.01529693603515625, 0.021270751953125, -0.0282745361328125, -0.0018720626831054688, 0.06744384765625, 0.056365966796875, -0.08343505859375, -0.00939178466796875, 0.0080108642578125, -0.00408935546875, 0.0209503173828125, 0.0153656005859375, -0.019073486328125, -0.012603759765625, -0.01318359375, -0.01471710205078125, -0.0474853515625, -0.0159759521484375, 0.0184173583984375, -0.01355743408203125, -0.023468017578125, 0.0195159912109375, -0.00603485107421875, 0.047821044921875, -0.033477783203125, -0.04644775390625, 0.017303466796875, -0.0030803680419921875, 0.04669189453125, -0.021942138671875, -0.02130126953125, -0.07403564453125, -0.0162200927734375, 0.0233917236328125, -0.058197021484375, 0.0489501953125, 0.0273895263671875, -0.0153350830078125, 0.0098724365234375, -0.00441741943359375, 0.0014858245849609375, -0.0255279541015625, -0.0282440185546875, -0.00012636184692382812, -0.00103759765625, -0.005779266357421875, 0.04412841796875, -0.0135345458984375, 0.015289306640625, -0.025421142578125, 0.01491546630859375, 0.00162506103515625, -0.01427459716796875, 0.08544921875, -0.04119873046875, -0.0187835693359375, 0.0192108154296875, -0.020050048828125, -0.0026035308837890625, 0.0216217041015625, 0.0019140243530273438, -0.039398193359375, -0.058563232421875, -0.0002872943878173828, -0.09698486328125, -0.01220703125, -0.0093536376953125, -0.03363037109375, 0.06744384765625, 0.0136260986328125, 0.004970550537109375, 0.018951416015625, 0.0220794677734375, -0.04193115234375, -0.003040313720703125, -0.031402587890625, 0.0020389556884765625, -0.0015926361083984375, 0.065673828125, -0.037506103515625, -0.014739990234375, 0.017333984375, 0.043121337890625, 0.0310821533203125, 0.006923675537109375, -0.0259246826171875, -0.03057861328125, 0.00112152099609375, 0.033294677734375, 0.012542724609375, 0.0208892822265625, -0.03411865234375, 0.048095703125, -0.01372528076171875, -0.058502197265625, 0.01506805419921875, -0.0077972412109375, -0.0689697265625, -0.000392913818359375, 0.026153564453125, 0.041412353515625, 0.0168914794921875, -0.029388427734375, -0.0042572021484375, -0.00634765625, 0.0013790130615234375, -0.0254364013671875, -0.004604339599609375, 0.0298614501953125, 0.01160430908203125, -0.0267486572265625, -0.037200927734375, -0.0207672119140625, 0.02337646484375, 0.0019397735595703125, 0.002655029296875, 0.038116455078125, 0.0102996826171875, 0.03326416015625, 0.015594482421875, -0.0006585121154785156, 0.01751708984375, 0.0255126953125, 0.0307769775390625, 0.00634765625, 0.005329132080078125, -0.0265960693359375, 0.06280517578125, 0.01318359375, 0.0269927978515625, -0.054962158203125, -0.0172882080078125, 0.026580810546875, 0.005908966064453125, -0.043304443359375, -0.0223388671875, -0.0390625, -0.0070343017578125, 0.037811279296875, -0.025848388671875, 0.0014410018920898438, 0.003147125244140625, 0.0108795166015625, -0.01119232177734375, 0.00698089599609375, -0.004779815673828125, -0.0010938644409179688, -0.0299072265625, -0.0038299560546875, 0.031280517578125, 0.038665771484375, 0.0166168212890625, 0.027069091796875, 0.019805908203125, -0.0206451416015625, -0.0440673828125, -0.006153106689453125, 0.0078125, 0.0562744140625, -0.0675048828125, -0.00968170166015625, 0.049468994140625, 0.05023193359375, 0.0071868896484375, 0.01959228515625, 0.0174102783203125, -0.006801605224609375, -0.0183563232421875, 0.0031833648681640625, 0.047149658203125, -0.031890869140625, -0.046875, -0.04864501953125, 0.0214996337890625, 0.029022216796875, 0.0246734619140625, 0.04876708984375, 0.0213775634765625, 0.004711151123046875, -0.00304412841796875, 0.0428466796875, -0.001087188720703125, -0.0228729248046875, -0.002384185791015625, 0.00502777099609375, 0.07281494140625, 0.031524658203125, -0.054229736328125, -0.0187530517578125, 0.005275726318359375, -0.052093505859375, 0.041351318359375, 0.054779052734375, -0.01444244384765625, -0.00966644287109375, 0.0076904296875, -0.004150390625, -0.0212554931640625, 0.017059326171875, 0.0024623870849609375, -0.01029205322265625, 0.0231781005859375, -0.001934051513671875, -0.033721923828125, -0.017547607421875, -0.004093170166015625, 0.028656005859375, -0.0186004638671875, 0.063720703125, -0.02862548828125, 0.01187896728515625, -0.0186920166015625, 0.05609130859375, -0.06585693359375, -0.02093505859375, 0.0374755859375, -0.026885986328125, 0.016815185546875, 0.01232147216796875, -0.0187835693359375, -0.01447296142578125, 0.06292724609375, -0.031585693359375, -0.021697998046875, 0.00732421875, 0.03436279296875, -0.0240325927734375, 0.0036678314208984375, -0.018798828125, 0.031951904296875, 0.052093505859375, -0.0160064697265625, 0.04132080078125, 0.01299285888671875, 0.0321044921875, 0.04180908203125, 0.0008058547973632812, -0.021942138671875, 0.032257080078125, -0.03619384765625, 0.05230712890625, 0.037261962890625, -0.03533935546875, 0.01093292236328125, 0.035675048828125, 0.0014638900756835938, -0.00930023193359375, 0.043975830078125, -0.02655029296875, 0.03106689453125, -0.02392578125, 0.0208892822265625, 0.01374053955078125, 0.0212860107421875, -0.027862548828125, -0.010162353515625, 0.033355712890625, -0.0096588134765625, -0.01873779296875, 0.0279998779296875, -0.0263824462890625, 0.0015535354614257812, -0.00638580322265625, -0.002254486083984375, 0.0138397216796875, -0.03839111328125, -0.05657958984375, 0.003017425537109375, 0.0194091796875, 0.0151214599609375, -0.09613037109375, 0.060028076171875, -0.023529052734375, 0.0391845703125, -0.018585205078125, 0.015106201171875, 0.01247406005859375, 0.048919677734375, -0.03619384765625, -0.0294647216796875, -0.01271820068359375, 0.02496337890625, -0.0304412841796875, 0.01421356201171875, 0.0243377685546875, -0.01433563232421875, -0.0232086181640625, 0.01299285888671875, -0.00994110107421875, 0.0606689453125, 0.006893157958984375, -0.0225677490234375, 0.0058746337890625, 0.024566650390625, -0.0268402099609375, -0.07904052734375, 0.006465911865234375, -0.06707763671875, 0.0202178955078125, 0.0321044921875, 0.0030689239501953125, 0.0256195068359375, -0.025421142578125, -0.065185546875, 0.054443359375, -0.002696990966796875, -0.0318603515625, -0.01806640625, -0.0267486572265625, -0.03436279296875, 0.023101806640625, 0.0008025169372558594, -0.035919189453125, -0.004520416259765625, 0.051177978515625, -0.0020427703857421875, 0.0628662109375, 0.0010471343994140625, 0.02178955078125, -0.07086181640625, -0.018768310546875, -0.06719970703125, -0.0017690658569335938, -0.01488494873046875, -0.0009965896606445312, 0.0028285980224609375, 0.00029397010803222656, -0.029266357421875, -0.040374755859375, 0.005603790283203125, 0.0135955810546875, 0.015716552734375, -0.01187896728515625, -0.05145263671875, -0.035858154296875, 0.0625, 0.04022216796875, 0.0265960693359375, -0.0091400146484375, 0.0191497802734375, -0.04522705078125, -0.045379638671875, 0.0022792816162109375, 0.0078125, -0.0428466796875, 0.0020389556884765625, 0.053436279296875, -0.0072479248046875, 0.0256805419921875, 0.01317596435546875, -0.0247955322265625, -0.0106658935546875, -0.0152130126953125, -0.0185546875, -0.10205078125, 0.0438232421875, 0.00801849365234375, -0.031951904296875, -0.0189208984375, -0.00991058349609375, -0.018341064453125, -0.0177001953125, -0.032379150390625, -0.0479736328125, -0.0723876953125, 0.0261077880859375, 0.035430908203125, -0.03076171875, 0.0236968994140625, -0.0229034423828125, -0.00659942626953125, -0.01509857177734375, 0.004360198974609375, -0.0169677734375, -0.004730224609375, 0.0126495361328125, 0.0287628173828125, -0.01140594482421875, 0.07470703125, -0.017333984375, 0.034149169921875, -0.0033206939697265625, 0.01528167724609375, 0.017730712890625, -0.0099639892578125, 0.07635498046875, -0.033355712890625, 0.0026702880859375, -0.02239990234375, -0.0528564453125, -0.026641845703125, -0.0162200927734375, -0.04107666015625, -0.039794921875, 0.007358551025390625 ]
9f33a9dd2bede2488ba79c903088fd1a911ab8e9
Wordpress Stackexchange Q: Static raw HTML page On the server there is a static HTML page example.html in my root folder of the WordPress install. Now when a user types www.example.com/example.html I want WordPress to be smart and bypass all normal routing behavior and instead just display that static example.html page. This looks so easy to me concept-wise but I can't find a solution after looking for hours. What exactly do I need to change in my .htaccess file? Is it even that .httaccess file or do I need to make such a change in the site available file? Sorry for being a WordPress newbie :( A: Here is what I have in my own .htaccess file that does what you're looking for: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^example.html$ /wp-content/raw/example.html [L] RewriteRule ^download$ /wp-content/raw/download-ebook.html [L] RewriteRule ^thanks$ /wp-content/raw/book-opt-in-thank-you.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Q: Static raw HTML page On the server there is a static HTML page example.html in my root folder of the WordPress install. Now when a user types www.example.com/example.html I want WordPress to be smart and bypass all normal routing behavior and instead just display that static example.html page. This looks so easy to me concept-wise but I can't find a solution after looking for hours. What exactly do I need to change in my .htaccess file? Is it even that .httaccess file or do I need to make such a change in the site available file? Sorry for being a WordPress newbie :( A: Here is what I have in my own .htaccess file that does what you're looking for: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^example.html$ /wp-content/raw/example.html [L] RewriteRule ^download$ /wp-content/raw/download-ebook.html [L] RewriteRule ^thanks$ /wp-content/raw/book-opt-in-thank-you.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress A: If there's no reason to bypass the routing you can follow the wp-hierarchy to accomplish this. https://wphierarchy.com/ For example: You could create a template-example php file within your theme, then within WordPress you would create a page and set it to the example template in the sidebar. In your theme, this file would be called: wp-content/themes/theme-name/template-example.php OR You could create a blank page within WordPress, set the slug to /example and then create page-example.php This file would be located here: wp-content/themes/theme-name/page-example.php Here's where you can find more information: https://developer.wordpress.org/themes/template-files-section/page-template-files/ A: You can just use the Html block on the page then set it to your homepage like I did, https://sturtz.ml
wordpress
{ "language": "en", "length": 273, "provenance": "stackexchange_00019.jsonl.gz:441237", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130032" }
[ 0.06011962890625, 0.0086212158203125, 0.01125335693359375, 0.0022487640380859375, 0.00928497314453125, -0.0249481201171875, 0.049774169921875, -0.0662841796875, -0.0270843505859375, 0.00865936279296875, -0.00542449951171875, 0.0162506103515625, 0.0008387565612792969, -0.039306640625, 0.057830810546875, -0.006168365478515625, 0.0097808837890625, 0.023529052734375, 0.0452880859375, -0.0031986236572265625, 0.0159912109375, 0.005649566650390625, 0.0267333984375, -0.0127105712890625, 0.024932861328125, -0.015869140625, 0.074951171875, -0.04718017578125, 0.0009284019470214844, -0.040191650390625, 0.01451873779296875, 0.00832366943359375, 0.046112060546875, 0.05010986328125, -0.08673095703125, -0.0194091796875, -0.022613525390625, 0.0209808349609375, -0.00957489013671875, 0.0135955810546875, 0.0234527587890625, -0.0291595458984375, 0.01385498046875, 0.006786346435546875, -0.022003173828125, -0.0146331787109375, 0.0146026611328125, -0.04058837890625, 0.0159149169921875, -0.0006585121154785156, -0.0025272369384765625, 0.045166015625, 0.004520416259765625, -0.0048065185546875, -0.01256561279296875, -0.020599365234375, 0.036712646484375, -0.0239410400390625, 0.024017333984375, -0.0266876220703125, -0.0196990966796875, 0.0034999847412109375, 0.01381683349609375, 0.0100555419921875, -0.01338958740234375, -0.04931640625, -0.0399169921875, 0.03564453125, -0.03509521484375, -0.01215362548828125, 0.05169677734375, -0.0091705322265625, -0.03546142578125, -0.0389404296875, -0.0211181640625, 0.054229736328125, -0.0310821533203125, -0.037872314453125, 0.0069427490234375, 0.01267242431640625, -0.0175018310546875, -0.0111236572265625, -0.03692626953125, -0.08673095703125, 0.03021240234375, -0.051605224609375, -0.009246826171875, 0.0184326171875, -0.00904083251953125, 0.006618499755859375, -0.0269317626953125, -0.002071380615234375, 0.032989501953125, -0.013885498046875, -0.037200927734375, 0.00469207763671875, 0.021392822265625, 0.0202484130859375, 0.0284881591796875, -0.0003368854522705078, 0.064697265625, -0.0657958984375, 0.058258056640625, -0.051605224609375, -0.0194549560546875, 0.0682373046875, 0.03997802734375, 0.059051513671875, 0.0268707275390625, -0.01212310791015625, 0.0189208984375, 0.0143280029296875, -0.00098419189453125, -0.023712158203125, -0.0294036865234375, 0.013824462890625, -0.0251922607421875, -0.0121307373046875, 0.01464080810546875, -0.0181732177734375, -0.0155487060546875, 0.032012939453125, 0.0033245086669921875, 0.00232696533203125, -0.00841522216796875, 0.00286865234375, 0.0252685546875, -0.058074951171875, -0.034637451171875, 0.00984954833984375, -0.00002104043960571289, 0.024566650390625, 0.0026035308837890625, 0.03985595703125, -0.0046234130859375, -0.01082611083984375, 0.047821044921875, -0.01271820068359375, -0.004505157470703125, 0.041290283203125, -0.0259857177734375, -0.0633544921875, -0.020416259765625, 0.00011348724365234375, -0.00408935546875, 0.052581787109375, 0.0322265625, 0.0017547607421875, -0.03314208984375, -0.06329345703125, 0.0180511474609375, -0.05145263671875, 0.04296875, 0.0197296142578125, -0.00933074951171875, -0.021209716796875, 0.031982421875, -0.029632568359375, -0.032073974609375, -0.0260009765625, -0.003986358642578125, -0.01103973388671875, 0.04071044921875, -0.0232086181640625, -0.0406494140625, 0.005340576171875, -0.05181884765625, -0.0218048095703125, 0.0168914794921875, -0.0033016204833984375, 0.017333984375, 0.0006008148193359375, 0.001575469970703125, 0.0103302001953125, 0.013427734375, 0.01296234130859375, -0.0255889892578125, -0.0031681060791015625, 0.005413055419921875, 0.0948486328125, 0.0535888671875, -0.01187896728515625, 0.02362060546875, 0.03106689453125, -0.08746337890625, 0.06719970703125, -0.00443267822265625, 0.08441162109375, 0.0294189453125, -0.0009088516235351562, 0.028228759765625, -0.0017194747924804688, 0.00708770751953125, 0.0228271484375, 0.00876617431640625, -0.0438232421875, -0.034210205078125, -0.022796630859375, -0.01410675048828125, -0.005542755126953125, 0.0107879638671875, -0.0014390945434570312, 0.0159454345703125, 0.0048828125, 0.01580810546875, -0.0026874542236328125, 0.0012254714965820312, 0.0159759521484375, 0.03472900390625, 0.0224151611328125, -0.00821685791015625, 0.018951416015625, -0.0254364013671875, -0.029998779296875, -0.045440673828125, 0.0234222412109375, -0.019622802734375, 0.052703857421875, -0.0015125274658203125, 0.043243408203125, 0.0230865478515625, -0.048004150390625, 0.0283203125, 0.0198822021484375, 0.020538330078125, -0.0047149658203125, -0.029632568359375, -0.0229644775390625, -0.021331787109375, -0.002529144287109375, -0.054412841796875, 0.03338623046875, 0.0003502368927001953, 0.0115203857421875, -0.049285888671875, -0.01189422607421875, -0.02117919921875, -0.03533935546875, 0.019378662109375, 0.06134033203125, 0.035552978515625, 0.0041656494140625, -0.0252685546875, -0.015777587890625, 0.01102447509765625, -0.0733642578125, -0.0206756591796875, -0.00714111328125, -0.0421142578125, -0.0216827392578125, 0.09185791015625, 0.0022373199462890625, 0.007843017578125, -0.07513427734375, -0.0196685791015625, 0.033233642578125, 0.005767822265625, 0.0025787353515625, -0.0302581787109375, 0.019073486328125, 0.0220947265625, 0.0254364013671875, -0.025360107421875, 0.013336181640625, 0.00458526611328125, 0.01258087158203125, -0.0001347064971923828, 0.02264404296875, 0.0021820068359375, -0.00384521484375, -0.0016336441040039062, -0.0193023681640625, -0.0002225637435913086, 0.03936767578125, 0.0401611328125, 0.0010538101196289062, -0.0172271728515625, -0.0170135498046875, 0.0202484130859375, 0.02020263671875, -0.01258087158203125, -0.004184722900390625, -0.00885009765625, -0.00504302978515625, -0.0182647705078125, -0.043304443359375, 0.0160980224609375, 0.00833892822265625, 0.03326416015625, 0.0638427734375, 0.035980224609375, 0.04669189453125, 0.00930023193359375, 0.03460693359375, 0.020172119140625, 0.0147705078125, 0.0107269287109375, -0.06561279296875, 0.06964111328125, -0.04229736328125, 0.0258331298828125, 0.08123779296875, 0.01418304443359375, -0.00894927978515625, 0.01215362548828125, -0.0166015625, -0.0133056640625, 0.0089263916015625, -0.0142974853515625, 0.02313232421875, -0.094482421875, -0.0138092041015625, 0.0287628173828125, 0.0035552978515625, 0.016357421875, -0.00791168212890625, -0.0194549560546875, 0.035919189453125, -0.05084228515625, -0.024261474609375, -0.0047607421875, -0.0555419921875, 0.0019397735595703125, 0.0323486328125, -0.0276336669921875, -0.025482177734375, 0.06787109375, 0.01494598388671875, 0.004726409912109375, -0.01270294189453125, -0.1097412109375, -0.0838623046875, -0.11529541015625, -0.0400390625, -0.01922607421875, 0.029998779296875, 0.0272064208984375, -0.030059814453125, -0.005062103271484375, -0.037872314453125, 0.017822265625, 0.0270843505859375, -0.0055084228515625, -0.011871337890625, -0.008514404296875, -0.048858642578125, 0.012451171875, -0.019989013671875, 0.046173095703125, 0.019256591796875, 0.00243377685546875, 0.0162200927734375, -0.00905609130859375, -0.00623321533203125, -0.003387451171875, 0.0021343231201171875, 0.0196990966796875, -0.043731689453125, -0.017791748046875, -0.0797119140625, -0.014068603515625, -0.01200103759765625, -0.0229339599609375, -0.01142120361328125, 0.0154266357421875, -0.0113067626953125, -0.006134033203125, 0.00548553466796875, 0.022979736328125, 0.006458282470703125, 0.0347900390625, -0.00455474853515625, 0.007488250732421875, -0.019805908203125, -0.004497528076171875, -0.035308837890625, 0.0369873046875, -0.0254669189453125, 0.01245880126953125, 0.01294708251953125, -0.0340576171875, -0.0162811279296875, -0.0260467529296875, -0.041534423828125, -0.0122222900390625, 0.0244598388671875, -0.064208984375, -0.01226043701171875, -0.016326904296875, 0.00852203369140625, -0.035308837890625, 0.03631591796875, -0.058929443359375, -0.0214080810546875, -0.0024776458740234375, 0.01947021484375, 0.0070648193359375, -0.032867431640625, -0.02362060546875, -0.023895263671875, -0.08526611328125, -0.010040283203125, -0.0118560791015625, -0.0235443115234375, 0.02667236328125, -0.051025390625, -0.0005578994750976562, -0.05950927734375, 0.014801025390625, -0.0160980224609375, 0.0279693603515625, 0.0017118453979492188, 0.012176513671875, -0.01045989990234375, -0.00679779052734375, -0.030609130859375, -0.01380157470703125, -0.0053253173828125, -0.0031986236572265625, 0.0036411285400390625, 0.00804901123046875, -0.0013561248779296875, -0.0020313262939453125, 0.03399658203125, 0.013702392578125, 0.003681182861328125, 0.046539306640625, 0.0085601806640625, 0.017608642578125, -0.004047393798828125, 0.033172607421875, -0.0222320556640625, 0.0220184326171875, -0.01678466796875, -0.0291900634765625, 0.0270843505859375, -0.03656005859375, 0.00336456298828125, 0.0048065185546875, -0.025177001953125, -0.06591796875, -0.0501708984375, -0.04058837890625, -0.0006399154663085938, -0.0079193115234375, -0.022979736328125, -0.037384033203125, -0.0562744140625, 0.043212890625, -0.007049560546875, -0.01293182373046875, -0.0017957687377929688, 0.040924072265625, 0.0189361572265625, -0.041900634765625, 0.0302886962890625, 0.0198822021484375, 0.04693603515625, 0.00342559814453125, 0.04290771484375, 0.0120849609375, -0.0175628662109375, 0.045196533203125, 0.0125732421875, 0.030914306640625, -0.0032024383544921875, 0.0092315673828125, -0.0238494873046875, -0.0260467529296875, 0.020538330078125, -0.01447296142578125, -0.0102691650390625, 0.046539306640625, -0.001811981201171875, 0.0159912109375, -0.0242462158203125, -0.006946563720703125, 0.00525665283203125, -0.0293731689453125, -0.021087646484375, -0.0290374755859375, -0.00830078125, -0.02105712890625, 0.060028076171875, 0.0221405029296875, 0.0038242340087890625, 0.049591064453125, 0.09393310546875, -0.0185394287109375, 0.0211181640625, 0.04205322265625, -0.005649566650390625, 0.01418304443359375, 0.027252197265625, -0.0298614501953125, -0.0263214111328125, -0.007297515869140625, 0.048583984375, 0.0128326416015625, -0.03814697265625, -0.00920867919921875, -0.013702392578125, -0.01213836669921875, 0.0011587142944335938, -0.022186279296875, 0.01497650146484375, 0.005641937255859375, -0.009674072265625, -0.0004513263702392578, -0.033477783203125, -0.003437042236328125, -0.044281005859375, -0.023162841796875, 0.0261077880859375, -0.041259765625, 0.035430908203125, 0.01290130615234375, 0.0291595458984375, 0.01178741455078125, -0.0118255615234375, 0.019317626953125, 0.032867431640625, 0.03448486328125, -0.011962890625, 0.03472900390625, -0.0138702392578125, 0.027862548828125, 0.009429931640625, -0.0177001953125, -0.02734375, 0.0186309814453125, 0.052825927734375, -0.0094146728515625, 0.0003848075866699219, -0.0160064697265625, -0.02691650390625, -0.023712158203125, 0.00391387939453125, -0.04132080078125, -0.02679443359375, -0.049102783203125, -0.0179290771484375, 0.05181884765625, -0.0026569366455078125, -0.014862060546875, 0.013641357421875, -0.0074310302734375, 0.033447265625, 0.045196533203125, 0.00707244873046875, 0.003490447998046875, -0.0028533935546875, -0.00891876220703125, -0.0086517333984375, 0.0302581787109375, -0.03912353515625, 0.004302978515625, -0.039886474609375, -0.0159149169921875, 0.036651611328125, 0.02178955078125, 0.037200927734375, -0.0231475830078125, -0.033721923828125, 0.0110321044921875, -0.004344940185546875, 0.0008516311645507812, -0.022308349609375, -0.07171630859375, 0.0020275115966796875, -0.0355224609375, 0.00836944580078125, 0.02264404296875, -0.01203155517578125, -0.0506591796875, -0.0116119384765625, 0.00861358642578125, 0.0341796875, -0.0079803466796875, -0.01189422607421875, -0.0213775634765625, -0.0198974609375, 0.00743865966796875, 0.004238128662109375, -0.042877197265625, 0.0509033203125, -0.0192108154296875, 0.0355224609375, -0.02801513671875, -0.00180816650390625, -0.02044677734375, -0.00292205810546875, 0.031951904296875, -0.003192901611328125, -0.0239410400390625, -0.043548583984375, -0.0177459716796875, -0.005268096923828125, 0.07354736328125, -0.0077667236328125, 0.0145416259765625, -0.00872802734375, -0.009246826171875, -0.0160675048828125, 0.01507568359375, -0.009368896484375, 0.04681396484375, -0.033050537109375, 0.01277923583984375, 0.034637451171875, -0.03924560546875, -0.0035400390625, -0.0330810546875, 0.00559234619140625, -0.01058197021484375, 0.0212860107421875, -0.048858642578125, 0.04803466796875, 0.1004638671875, 0.0380859375, 0.0699462890625, 0.0087738037109375, 0.0173187255859375, 0.039459228515625, 0.0096893310546875, -0.01251220703125, -0.001270294189453125, 0.07196044921875, 0.024749755859375, -0.017425537109375, 0.06317138671875, -0.022064208984375, 0.0276031494140625, 0.0816650390625, 0.08453369140625, -0.09820556640625, 0.0025634765625, 0.0162506103515625, -0.0260772705078125, 0.0140533447265625, 0.0389404296875, -0.0499267578125, -0.050201416015625, -0.0129241943359375, -0.0081939697265625, -0.004337310791015625, 0.00809478759765625, 0.043060302734375, 0.0090789794921875, 0.005229949951171875, 0.0673828125, -0.0008063316345214844, -0.051422119140625, -0.0260162353515625, 0.019073486328125, -0.01551055908203125, -0.00963592529296875, 0.020111083984375, 0.0055389404296875, -0.0265045166015625, -0.0262451171875, 0.0199432373046875, 0.000002205371856689453, -0.038787841796875, 0.0215606689453125, -0.01934814453125, -0.01410675048828125, 0.052764892578125, -0.03955078125, 0.0210418701171875, 0.03759765625, -0.051483154296875, 0.0023193359375, 0.0006761550903320312, -0.02630615234375, -0.0501708984375, 0.00502777099609375, -0.0030574798583984375, -0.04608154296875, -0.00926971435546875, -0.005939483642578125, -0.041168212890625, 0.03326416015625, -0.0174560546875, -0.017303466796875, 0.0106048583984375, 0.00909423828125, 0.005527496337890625, -0.01136016845703125, 0.01715087890625, -0.0164031982421875, 0.0123291015625, -0.016357421875, -0.0023097991943359375, 0.0175628662109375, -0.04705810546875, -0.0465087890625, 0.0545654296875, -0.0268096923828125, 0.02069091796875, 0.0325927734375, 0.0231475830078125, -0.036346435546875, -0.01337432861328125, -0.008575439453125, 0.033935546875, 0.025177001953125, 0.04718017578125, 0.00431060791015625, -0.009765625, 0.056671142578125, 0.06256103515625, 0.027862548828125, 0.00943756103515625, -0.02935791015625, 0.0263671875, 0.03717041015625, -0.01000213623046875, -0.024932861328125, 0.047698974609375, -0.043182373046875, 0.026397705078125, -0.030731201171875, -0.058319091796875, -0.0036163330078125, -0.0292816162109375, -0.0743408203125, -0.0172576904296875, 0.019012451171875, -0.0159149169921875, 0.01085662841796875, -0.00576019287109375, -0.0623779296875, 0.026153564453125, 0.024505615234375, 0.047821044921875, 0.003376007080078125, 0.042327880859375, 0.051055908203125, -0.03326416015625, -0.002147674560546875, -0.027740478515625, 0.0631103515625, 0.00353240966796875, 0.0091705322265625, 0.006572723388671875, 0.0038280487060546875, 0.046356201171875, -0.00519561767578125, -0.003513336181640625, 0.005947113037109375, 0.01122283935546875, 0.052581787109375, 0.04241943359375, 0.04400634765625, 0.003292083740234375, -0.033905029296875, 0.0242156982421875, 0.06707763671875, -0.020355224609375, -0.0212249755859375, -0.0037479400634765625, -0.02557373046875, 0.01427459716796875, -0.04315185546875, 0.00322723388671875, -0.015777587890625, -0.0258331298828125, -0.0266571044921875, 0.0045318603515625, 0.001689910888671875, 0.03521728515625, -0.0197906494140625, -0.00949859619140625, -0.021514892578125, -0.00907135009765625, -0.038238525390625, -0.0012025833129882812, 0.004119873046875, 0.046600341796875, 0.030364990234375, 0.050384521484375, 0.034637451171875, -0.02374267578125, -0.0184173583984375, 0.057769775390625, -0.01016998291015625, 0.0188140869140625, -0.04412841796875, -0.03021240234375, 0.006317138671875, 0.042327880859375, 0.02001953125, 0.01116943359375, 0.028717041015625, 0.01209259033203125, -0.0178070068359375, -0.01531982421875, 0.0287322998046875, -0.015777587890625, 0.0270233154296875, -0.008056640625, 0.002063751220703125, -0.0011301040649414062, -0.0195770263671875, -0.0152435302734375, 0.01422882080078125, 0.0078277587890625, -0.0138397216796875, 0.050689697265625, -0.00240325927734375, -0.00890350341796875, 0.021820068359375, -0.042144775390625, 0.020050048828125, -0.0027942657470703125, -0.04656982421875, 0.01168060302734375, -0.014984130859375, -0.042877197265625, 0.004329681396484375, 0.03167724609375, -0.00753021240234375, 0.035186767578125, 0.007709503173828125, 0.020904541015625, 0.006237030029296875, -0.04327392578125, 0.023834228515625, 0.003513336181640625, 0.012847900390625, 0.0304412841796875, -0.05706787109375, -0.02874755859375, -0.04412841796875, 0.036529541015625, 0.01294708251953125, 0.138916015625, -0.06744384765625, 0.0258941650390625, -0.008697509765625, 0.0117950439453125, -0.00617218017578125, -0.011383056640625, 0.015167236328125, -0.004192352294921875, -0.00959014892578125, 0.0014810562133789062, -0.0748291015625, 0.050445556640625, -0.01837158203125, -0.0213623046875, 0.038787841796875, -0.0304718017578125, 0.0016345977783203125, 0.004970550537109375, 0.01371002197265625, -0.020660400390625, -0.080322265625, -0.028289794921875, 0.055908203125, -0.0105743408203125, 0.0174102783203125, -0.06341552734375, 0.0234375, 0.0189056396484375, -0.004711151123046875, 0.0013704299926757812, 0.0022869110107421875, 0.00519561767578125, 0.031036376953125, 0.0037784576416015625, -0.015899658203125, 0.0362548828125, -0.0165863037109375, 0.0321044921875, -0.0121917724609375, 0.06756591796875, 0.004543304443359375, -0.03289794921875, -0.016082763671875, -0.01251983642578125, -0.01520538330078125, -0.0160369873046875, -0.0224151611328125, -0.0036525726318359375, -0.012451171875, 0.01366424560546875, 0.0162353515625, -0.0179595947265625, -0.003368377685546875, 0.00547027587890625, 0.0096282958984375, 0.004177093505859375, -0.02166748046875, -0.0396728515625, 0.024169921875, 0.0061492919921875, -0.0231170654296875, -0.0271759033203125, -0.005649566650390625, -0.047515869140625, 0.09710693359375, -0.059173583984375, -0.006999969482421875, 0.009307861328125, -0.0020351409912109375, -0.044921875, -0.042633056640625, -0.01800537109375, 0.0175628662109375, -0.032257080078125, 0.025390625, 0.056793212890625, -0.01190185546875, 0.0109405517578125, -0.025787353515625, -0.01026153564453125, 0.0517578125, -0.06719970703125, -0.005138397216796875, 0.0310516357421875, 0.006931304931640625, -0.039276123046875, -0.040252685546875, -0.0011205673217773438, -0.023345947265625, -0.0032253265380859375, 0.02337646484375, -0.0305633544921875, -0.0209808349609375, -0.03851318359375, -0.0430908203125, 0.0265655517578125, 0.034149169921875, -0.03253173828125, -0.0182952880859375, -0.0015964508056640625, -0.032501220703125, 0.03179931640625, -0.0016736984252929688, -0.02020263671875, 0.0225372314453125, 0.03662109375, 0.031463623046875, 0.02362060546875, -0.0029544830322265625, 0.041107177734375, -0.026092529296875, 0.0244903564453125, 0.000461578369140625, 0.01007843017578125, 0.0213775634765625, 0.024993896484375, 0.0202178955078125, 0.0498046875, -0.020538330078125, 0.05908203125, -0.033843994140625, -0.044097900390625, 0.00518035888671875, -0.0310516357421875, -0.050048828125, -0.05767822265625, 0.035614013671875, 0.0179595947265625, 0.0197296142578125, 0.023956298828125, 0.00588226318359375, -0.032470703125, -0.0131683349609375, -0.0228271484375, 0.0027332305908203125, -0.048187255859375, -0.0194091796875, 0.0147705078125, -0.034393310546875, -0.0098876953125, 0.03338623046875, -0.0665283203125, 0.0250396728515625, 0.014739990234375, -0.01207733154296875, -0.035308837890625, 0.01227569580078125, 0.066650390625, -0.038116455078125, 0.01541900634765625, 0.004634857177734375, 0.01416778564453125, 0.040618896484375, -0.005527496337890625, 0.0164947509765625, 0.02850341796875, -0.0081329345703125, 0.0176849365234375, 0.0221405029296875, -0.0157012939453125, -0.017578125, -0.00853729248046875, -0.006893157958984375, 0.02630615234375, 0.0138092041015625, 0.01378631591796875, -0.0408935546875, 0.0462646484375, 0.0149383544921875, 0.0289764404296875, -0.021728515625, -0.038116455078125, -0.034027099609375, 0.04547119140625, -0.04736328125, 0.01018524169921875, 0.0155487060546875, -0.052215576171875, 0.0158233642578125, -0.01276397705078125, -0.0162506103515625, -0.0236663818359375, -0.0072021484375, 0.0099639892578125, -0.0164031982421875, 0.0030307769775390625 ]
c9094b4f3e4f29a6e68536c753954491add9a992
Wordpress Stackexchange Q: How properly delete only one site (blog) from the Network in WordPress Multisite (WPMU) I have a Network with ~30 sites. And I need to delete only one of them. Could you please tell me how should I delete properly only one site from the Network WordPress Multisite (WPMU)? Because when I have done it in the admin area side the site was deleted from the admin but the plugins and some other tables for this site are still in database and all files in website directory (blog.dir/id_of_the_site) are left too. How properly could I do that? Should I delete manually all tables with site ID (in table name) from database and then delete the website directory with files from blog.dir directory? Or should I do something else? Perhaps do you know another way, more safety and properly? P.S. Also I'd like to know if it is possible to restore this site after these manipulations (from the backup) and what is algorithm, because I know that after deletion some data from wp_blogs table were deleted too? Thanks. A: Have you considered wpmu_delete_blog? http://codex.wordpress.org/Function_Reference/wpmu_delete_blog
Q: How properly delete only one site (blog) from the Network in WordPress Multisite (WPMU) I have a Network with ~30 sites. And I need to delete only one of them. Could you please tell me how should I delete properly only one site from the Network WordPress Multisite (WPMU)? Because when I have done it in the admin area side the site was deleted from the admin but the plugins and some other tables for this site are still in database and all files in website directory (blog.dir/id_of_the_site) are left too. How properly could I do that? Should I delete manually all tables with site ID (in table name) from database and then delete the website directory with files from blog.dir directory? Or should I do something else? Perhaps do you know another way, more safety and properly? P.S. Also I'd like to know if it is possible to restore this site after these manipulations (from the backup) and what is algorithm, because I know that after deletion some data from wp_blogs table were deleted too? Thanks. A: Have you considered wpmu_delete_blog? http://codex.wordpress.org/Function_Reference/wpmu_delete_blog A: If the site is deleted by the site administrator, then the site is only marked as deleted (it receives the "deleted" attribute). Also the users are removed from the site (this might be changed in future WP versions). All database tables and files remain. If the Super Admin deactivates the site, it is marked as deleted (it receives the "deleted" attribute) but the users are not removed from it. All tables and files remain. If the Super Admin deletes the site from the Network Admin Sites Screen with the red Delete link, all default WordPress database tables are deleted, the ones created by plugins remain, unless the plugin is made to delete them on site deletion. The users are removed from the site. The media files of the site are also deleted. There is a situation though in which the files and tables may remain, if WordPress cannot reliably determine the uploads folder. If you want to manually delete a site you can delete all database tables that start with the main site prefix followed by the site ID and then underscore. So for site ID 33 and main prefix "wp_" you get "wp_33_" (without quotes). Also go inside either the wp-content/blogs.dir or the wp-content/sites folder and delete the folder with the site ID number. And also delete from the wp_blogs database table the row with the ID of the site in column blog_id (not site_id). There is also some user data in the wp_usermeta table. All rows where the meta_key column value starts with the same prefix we talked about ("wp_33_" for example). If you want to be able to restore this site, I guess you can save a copy of all these things that you deleted and put them in the same place to restore it. If you want a plugin that will properly delete all database tables of the site, I have added this feature to my premium plugin called Beyond Multisite. It has a lot of features, but one of the checkboxes in the settings of the Improvements module, is called "Delete any leftover database tables when a site is permanently deleted". If it is checked, when a site is deleted with the red Delete link in the Network Admin Sites Screen, all tables that start with the prefix of the site (for example "wp_33_") will be deleted (not only the default ones). Also using the Cleanup module of the plugin you can delete all leftover database tables of previously deleted sites. In regards to plugins and themes they will not be deleted by any of the methods of site deletion. They are global and do not exist on a per site basis. You can delete the ones that you are not using from the Network Admin Plugins Screen or the Network Admin Themes Screen. Using my plugin, mentioned above, you can check if a plugin or a theme is activated in any sites (and which), which is always useful when you want to delete them. Just click the "Activated in?" action link under a plugin or a theme.
wordpress
{ "language": "en", "length": 698, "provenance": "stackexchange_00019.jsonl.gz:441278", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130156" }
[ 0.0023593902587890625, -0.020660400390625, -0.028076171875, 0.049224853515625, -0.015289306640625, -0.064697265625, 0.0718994140625, -0.0258026123046875, 0.02252197265625, -0.0128631591796875, -0.034637451171875, -0.003192901611328125, -0.002155303955078125, -0.033935546875, 0.0172576904296875, -0.04229736328125, 0.043609619140625, -0.0285797119140625, 0.01526641845703125, 0.0135650634765625, -0.013885498046875, 0.043701171875, 0.01348114013671875, -0.0214996337890625, -0.0024013519287109375, -0.042327880859375, 0.04791259765625, 0.0140533447265625, -0.01197052001953125, -0.03631591796875, 0.010284423828125, 0.050567626953125, 0.0171356201171875, 0.0123748779296875, -0.021728515625, -0.045379638671875, -0.01727294921875, 0.0012340545654296875, -0.0179443359375, 0.04193115234375, -0.005901336669921875, 0.006557464599609375, 0.0189666748046875, 0.0168914794921875, -0.00009262561798095703, -0.04168701171875, 0.002925872802734375, -0.065185546875, -0.00995635986328125, -0.0089111328125, 0.018524169921875, -0.0209808349609375, 0.04302978515625, -0.036590576171875, -0.040618896484375, -0.0390625, 0.0248260498046875, -0.039031982421875, 0.02044677734375, -0.01148223876953125, -0.0187225341796875, 0.01120758056640625, 0.038238525390625, 0.00209808349609375, -0.0242919921875, 0.0229644775390625, -0.02532958984375, 0.0136566162109375, -0.07281494140625, -0.0516357421875, 0.01306915283203125, -0.068359375, 0.01544952392578125, -0.0017271041870117188, -0.0357666015625, 0.00586700439453125, 0.00876617431640625, 0.0088348388671875, 0.0304412841796875, -0.02734375, 0.01216888427734375, 0.0102996826171875, -0.06817626953125, -0.03851318359375, 0.0175933837890625, -0.006740570068359375, -0.00257110595703125, -0.00664520263671875, -0.04266357421875, 0.002285003662109375, -0.038238525390625, -0.0171051025390625, -0.0286407470703125, 0.0262908935546875, -0.0143280029296875, 0.0156097412109375, 0.02032470703125, 0.053070068359375, 0.0261077880859375, -0.0244903564453125, -0.005859375, -0.026763916015625, -0.071533203125, -0.007720947265625, 0.0084075927734375, 0.035614013671875, 0.0092620849609375, -0.036529541015625, 0.0306549072265625, 0.005870819091796875, -0.01043701171875, 0.0210418701171875, -0.006481170654296875, -0.0252227783203125, -0.0212860107421875, 0.0004096031188964844, -0.026641845703125, -0.0015048980712890625, 0.00850677490234375, -0.054656982421875, -0.05548095703125, -0.019134521484375, -0.0340576171875, 0.00196075439453125, -0.03497314453125, -0.05731201171875, 0.004123687744140625, 0.0263671875, -0.0400390625, -0.0187530517578125, -0.0538330078125, 0.0491943359375, 0.0650634765625, 0.00848388671875, -0.00969696044921875, -0.00576019287109375, 0.031829833984375, 0.054351806640625, 0.02008056640625, -0.020599365234375, 0.06689453125, -0.0122833251953125, -0.0308990478515625, 0.0357666015625, 0.0078887939453125, 0.0460205078125, 0.02825927734375, -0.00560760498046875, 0.0027618408203125, -0.007720947265625, -0.05731201171875, 0.03173828125, 0.032501220703125, -0.0029544830322265625, 0.01708984375, -0.08209228515625, 0.05731201171875, -0.07342529296875, 0.0423583984375, -0.07574462890625, 0.0147705078125, 0.0032215118408203125, 0.0305938720703125, -0.02374267578125, -0.0421142578125, -0.01036834716796875, -0.051544189453125, -0.026123046875, 0.0296630859375, -0.0419921875, -0.007419586181640625, -0.0511474609375, 0.0716552734375, 0.033660888671875, -0.0003783702850341797, 0.08026123046875, 0.0213470458984375, -0.0248870849609375, 0.0011987686157226562, 0.0557861328125, 0.00933074951171875, -0.0272216796875, 0.005916595458984375, 0.00244903564453125, -0.0673828125, -0.0034332275390625, -0.00330352783203125, 0.06378173828125, 0.05206298828125, 0.0176849365234375, 0.049957275390625, -0.0333251953125, 0.0191802978515625, -0.01342010498046875, 0.0127716064453125, -0.032928466796875, -0.0262451171875, -0.010833740234375, -0.00885772705078125, -0.00420379638671875, 0.00432586669921875, 0.0255584716796875, 0.04339599609375, 0.0043182373046875, -0.0088348388671875, 0.0667724609375, -0.028472900390625, 0.05078125, -0.037322998046875, -0.01209259033203125, 0.04571533203125, -0.0003478527069091797, -0.0293426513671875, -0.04473876953125, -0.04364013671875, -0.009857177734375, -0.0083465576171875, 0.024139404296875, -0.0288543701171875, 0.01202392578125, -0.04632568359375, -0.008880615234375, -0.044921875, 0.01186370849609375, 0.055023193359375, -0.05169677734375, -0.01434326171875, -0.066650390625, 0.030609130859375, -0.0251007080078125, -0.069091796875, 0.06744384765625, 0.0182952880859375, 0.01739501953125, 0.01131439208984375, 0.03741455078125, 0.04437255859375, -0.039825439453125, -0.00937652587890625, 0.01403045654296875, 0.018798828125, 0.01444244384765625, -0.0416259765625, -0.0007419586181640625, -0.02886962890625, -0.07318115234375, -0.018890380859375, 0.0241851806640625, 0.022003173828125, 0.06549072265625, -0.00962066650390625, -0.01364898681640625, -0.000934600830078125, -0.04339599609375, 0.01447296142578125, 0.010986328125, -0.006351470947265625, -0.003337860107421875, 0.005130767822265625, -0.01092529296875, 0.01641845703125, 0.011627197265625, -0.028839111328125, 0.0155029296875, 0.051544189453125, 0.0015659332275390625, 0.031982421875, 0.030914306640625, -0.0165557861328125, 0.02392578125, 0.00455474853515625, -0.049163818359375, 0.0009946823120117188, 0.04742431640625, 0.005786895751953125, -0.009552001953125, -0.01059722900390625, -0.01160430908203125, -0.0013284683227539062, 0.016571044921875, -0.018890380859375, 0.02593994140625, -0.0161285400390625, -0.0199737548828125, -0.0098419189453125, -0.0145263671875, 0.0027942657470703125, -0.004734039306640625, -0.01251220703125, -0.030029296875, 0.0214385986328125, 0.005992889404296875, -0.01513671875, -0.0015401840209960938, 0.01207733154296875, -0.0233917236328125, 0.041534423828125, -0.0345458984375, 0.0343017578125, -0.017974853515625, 0.03375244140625, 0.06256103515625, 0.006320953369140625, -0.0039215087890625, -0.0294189453125, 0.0255889892578125, -0.0006299018859863281, -0.04681396484375, -0.03778076171875, -0.0002677440643310547, -0.064453125, 0.002899169921875, 0.0156707763671875, 0.0175933837890625, -0.00555419921875, -0.034210205078125, -0.010589599609375, -0.00983428955078125, -0.0557861328125, -0.0171356201171875, -0.01522064208984375, -0.0213775634765625, 0.04400634765625, -0.031402587890625, 0.01064300537109375, -0.0380859375, -0.0095367431640625, 0.020355224609375, 0.00152587890625, -0.031890869140625, -0.0194244384765625, -0.0220794677734375, -0.05975341796875, -0.010345458984375, 0.01824951171875, 0.01296234130859375, 0.0008106231689453125, 0.026824951171875, 0.00640106201171875, -0.0382080078125, 0.010498046875, -0.01105499267578125, -0.031341552734375, -0.02001953125, 0.0125732421875, -0.01100921630859375, -0.039459228515625, 0.0211029052734375, 0.027069091796875, 0.020782470703125, -0.035858154296875, -0.0228118896484375, 0.007793426513671875, 0.00635528564453125, 0.0401611328125, -0.040679931640625, -0.040283203125, 0.01340484619140625, -0.0188446044921875, -0.058624267578125, -0.0201416015625, -0.01515960693359375, -0.0406494140625, 0.032318115234375, 0.0263671875, -0.00847625732421875, -0.0008606910705566406, 0.0164031982421875, 0.0190582275390625, 0.00473785400390625, 0.005580902099609375, -0.0025043487548828125, 0.00897979736328125, -0.006107330322265625, -0.00437164306640625, -0.010894775390625, 0.05780029296875, -0.0168609619140625, -0.037689208984375, 0.0026569366455078125, -0.01739501953125, -0.021209716796875, -0.037445068359375, -0.0308990478515625, 0.031585693359375, 0.0170135498046875, -0.022125244140625, 0.043426513671875, -0.0225830078125, -0.0302276611328125, -0.018096923828125, 0.06988525390625, -0.063720703125, -0.0291748046875, -0.0217437744140625, 0.0261383056640625, 0.0063934326171875, -0.04107666015625, 0.0254974365234375, -0.0227203369140625, -0.096435546875, -0.004352569580078125, -0.0190277099609375, -0.0271759033203125, 0.005992889404296875, -0.035797119140625, -0.0231170654296875, -0.0703125, 0.0149078369140625, -0.054901123046875, 0.022491455078125, -0.01352691650390625, 0.0100555419921875, -0.03643798828125, 0.0169525146484375, -0.0792236328125, 0.02117919921875, -0.003612518310546875, -0.038055419921875, 0.01009368896484375, 0.0283050537109375, -0.004322052001953125, -0.00782012939453125, 0.00922393798828125, -0.04083251953125, 0.0178070068359375, -0.047637939453125, 0.0085906982421875, -0.027862548828125, 0.0253753662109375, -0.0310211181640625, -0.007602691650390625, -0.024627685546875, -0.051849365234375, -0.0240936279296875, -0.032806396484375, -0.007843017578125, 0.01004791259765625, 0.01678466796875, -0.0036792755126953125, -0.017120361328125, -0.0261383056640625, -0.036865234375, 0.006744384765625, -0.0171051025390625, -0.0034332275390625, -0.0186309814453125, -0.017425537109375, 0.007083892822265625, 0.02203369140625, -0.018157958984375, 0.016265869140625, 0.055328369140625, 0.01551055908203125, -0.0137481689453125, -0.05633544921875, -0.00638580322265625, 0.0169677734375, -0.00379180908203125, 0.0535888671875, 0.04046630859375, 0.0175018310546875, 0.00896453857421875, 0.0042266845703125, -0.014678955078125, 0.00856781005859375, 0.017547607421875, 0.0229644775390625, 0.0010538101196289062, -0.0028667449951171875, 0.0118408203125, -0.0106964111328125, 0.002513885498046875, -0.01094818115234375, -0.001514434814453125, 0.0270843505859375, 0.03167724609375, -0.0022335052490234375, -0.0210113525390625, -0.0484619140625, -0.02490234375, -0.00986480712890625, -0.00595855712890625, 0.0341796875, 0.0235137939453125, -0.0025539398193359375, 0.024658203125, 0.054962158203125, -0.00588226318359375, -0.005962371826171875, 0.0305938720703125, -0.018463134765625, 0.007259368896484375, -0.00455474853515625, -0.037933349609375, -0.0144805908203125, -0.031463623046875, 0.08056640625, 0.026824951171875, -0.03765869140625, 0.045379638671875, -0.01438140869140625, 0.0182342529296875, 0.0019588470458984375, -0.0006318092346191406, 0.032135009765625, 0.0042572021484375, -0.0296173095703125, -0.015228271484375, -0.03985595703125, -0.019134521484375, -0.0574951171875, -0.032440185546875, -0.034759521484375, -0.0108184814453125, 0.0560302734375, -0.0208587646484375, -0.0394287109375, 0.039947509765625, -0.007030487060546875, 0.0582275390625, 0.0258026123046875, 0.01287841796875, 0.005771636962890625, 0.01032257080078125, -0.0122833251953125, -0.0035037994384765625, -0.0364990234375, -0.0141448974609375, -0.01195526123046875, 0.035186767578125, 0.0406494140625, 0.03436279296875, 0.0038738250732421875, -0.03741455078125, -0.0273895263671875, 0.005950927734375, 0.062744140625, 0.0241546630859375, -0.049072265625, -0.002483367919921875, 0.0033721923828125, 0.017303466796875, -0.0369873046875, 0.0218963623046875, -0.038238525390625, -0.0179595947265625, -0.03460693359375, 0.0188140869140625, -0.006710052490234375, -0.0301513671875, -0.03436279296875, 0.0223846435546875, -0.026763916015625, -0.00064849853515625, -0.0146484375, 0.0194549560546875, -0.0294647216796875, -0.03125, 0.037078857421875, -0.0120086669921875, 0.005138397216796875, -0.034393310546875, 0.00917816162109375, -0.0064697265625, -0.0025615692138671875, 0.0439453125, 0.0173797607421875, -0.0161895751953125, 0.0025730133056640625, -0.0179443359375, -0.0352783203125, 0.0001036524772644043, -0.0026683807373046875, -0.040679931640625, -0.0109100341796875, 0.016387939453125, 0.0163421630859375, 0.00864410400390625, -0.0047454833984375, 0.01056671142578125, 0.01526641845703125, -0.0252838134765625, 0.007205963134765625, -0.023651123046875, 0.03875732421875, 0.00836181640625, 0.016448974609375, 0.03179931640625, 0.051605224609375, 0.04327392578125, -0.02880859375, 0.03515625, -0.035400390625, -0.03997802734375, -0.0421142578125, -0.0265350341796875, -0.005702972412109375, 0.0287628173828125, -0.0137481689453125, -0.028106689453125, 0.0011501312255859375, 0.0012149810791015625, -0.024017333984375, 0.005031585693359375, 0.019683837890625, 0.0274658203125, -0.0377197265625, -0.01006317138671875, 0.04400634765625, -0.008392333984375, 0.0064544677734375, -0.020751953125, -0.020904541015625, 0.006771087646484375, 0.0257720947265625, 0.00785064697265625, 0.0281524658203125, 0.0394287109375, -0.043121337890625, 0.0196685791015625, 0.0164337158203125, -0.0098114013671875, 0.0241241455078125, -0.01025390625, -0.039093017578125, 0.030517578125, -0.00836944580078125, -0.020172119140625, 0.0177459716796875, -0.0214691162109375, -0.00383758544921875, -0.0038089752197265625, 0.027252197265625, 0.056793212890625, -0.051971435546875, 0.029510498046875, 0.039398193359375, 0.0201416015625, 0.015777587890625, -0.02630615234375, 0.014801025390625, -0.01541900634765625, 0.047576904296875, 0.032440185546875, -0.019073486328125, 0.003833770751953125, -0.0027027130126953125, -0.0026454925537109375, -0.00424957275390625, 0.00688934326171875, 0.0174102783203125, -0.00971221923828125, 0.005069732666015625, 0.017913818359375, 0.01947021484375, -0.01885986328125, -0.0192108154296875, 0.029937744140625, -0.00733184814453125, -0.06671142578125, 0.02752685546875, -0.0282135009765625, -0.0045318603515625, 0.00881195068359375, -0.025299072265625, -0.0312042236328125, 0.049468994140625, -0.054351806640625, 0.039703369140625, 0.02288818359375, -0.03790283203125, -0.07025146484375, 0.0059967041015625, 0.05499267578125, -0.018463134765625, -0.0479736328125, 0.031982421875, -0.07257080078125, -0.03533935546875, -0.01168060302734375, -0.0213775634765625, 0.0576171875, -0.043548583984375, 0.01367950439453125, 0.04522705078125, 0.043487548828125, -0.0300140380859375, -0.047210693359375, 0.00916290283203125, -0.0966796875, -0.04547119140625, -0.01422119140625, -0.003261566162109375, -0.000885009765625, -0.0222320556640625, -0.0711669921875, 0.0599365234375, 0.01265716552734375, 0.0272674560546875, -0.013702392578125, 0.020416259765625, -0.004558563232421875, 0.0103607177734375, -0.03125, 0.0272064208984375, 0.007595062255859375, 0.01280975341796875, -0.0369873046875, 0.00951385498046875, -0.015777587890625, 0.010467529296875, 0.048309326171875, 0.01404571533203125, -0.0245513916015625, -0.03167724609375, -0.002948760986328125, 0.0261688232421875, -0.00372314453125, 0.027679443359375, -0.002979278564453125, 0.0390625, 0.0311279296875, -0.035247802734375, 0.033355712890625, 0.0142364501953125, -0.031280517578125, 0.01108551025390625, -0.002300262451171875, -0.0099639892578125, 0.0165252685546875, -0.02740478515625, -0.0170135498046875, 0.00461578369140625, 0.0006937980651855469, -0.0106353759765625, 0.02679443359375, 0.0219879150390625, 0.025360107421875, -0.015411376953125, 0.0687255859375, -0.0285186767578125, 0.0625, -0.00991058349609375, 0.01470947265625, 0.08154296875, 0.038116455078125, 0.0128326416015625, 0.0200347900390625, 0.029815673828125, -0.006366729736328125, -0.0218505859375, 0.052154541015625, 0.021453857421875, 0.0290069580078125, -0.03741455078125, -0.01885986328125, 0.034759521484375, 0.06072998046875, -0.027679443359375, -0.038787841796875, 0.02459716796875, 0.01216888427734375, 0.0081329345703125, 0.022216796875, 0.042449951171875, -0.0188446044921875, 0.021270751953125, -0.038360595703125, 0.00449371337890625, 0.004558563232421875, 0.00550079345703125, 0.0023040771484375, 0.0323486328125, -0.01558685302734375, -0.005199432373046875, 0.000823974609375, 0.034088134765625, 0.0008263587951660156, -0.007091522216796875, -0.035491943359375, 0.05072021484375, -0.024444580078125, 0.016326904296875, -0.01468658447265625, 0.0498046875, -0.01824951171875, 0.003711700439453125, -0.05340576171875, -0.0767822265625, 0.037567138671875, 0.050079345703125, 0.028717041015625, 0.0013027191162109375, 0.05987548828125, 0.0364990234375, -0.040130615234375, -0.0167083740234375, 0.007232666015625, -0.01068878173828125, 0.005130767822265625, -0.017333984375, -0.037994384765625, -0.029693603515625, -0.035614013671875, -0.007030487060546875, 0.0482177734375, -0.033721923828125, -0.01305389404296875, -0.00029158592224121094, 0.014190673828125, -0.01551055908203125, 0.0107574462890625, 0.0104827880859375, 0.01372528076171875, 0.020965576171875, -0.06475830078125, 0.002063751220703125, -0.040496826171875, 0.024810791015625, -0.0161285400390625, 0.021240234375, 0.0292205810546875, 0.00473785400390625, 0.03076171875, 0.0023174285888671875, 0.007106781005859375, 0.015350341796875, -0.0091705322265625, -0.00922393798828125, 0.043212890625, 0.004337310791015625, -0.04449462890625, -0.041015625, -0.0004127025604248047, 0.043304443359375, -0.0104522705078125, 0.092041015625, -0.03173828125, 0.00034880638122558594, -0.00397491455078125, 0.00876617431640625, 0.0166778564453125, 0.0034542083740234375, -0.03887939453125, 0.0178375244140625, 0.0251312255859375, -0.0214996337890625, -0.0255584716796875, 0.0162506103515625, 0.056732177734375, -0.045806884765625, 0.02911376953125, -0.003879547119140625, -0.00714111328125, -0.05120849609375, 0.0160675048828125, -0.0207366943359375, -0.0235137939453125, -0.045684814453125, -0.01293182373046875, 0.04656982421875, 0.06097412109375, -0.0294342041015625, 0.04608154296875, 0.00572967529296875, -0.0163116455078125, 0.00623321533203125, -0.046783447265625, 0.0076141357421875, 0.034881591796875, 0.034820556640625, -0.044464111328125, 0.0298309326171875, 0.01406097412109375, -0.06219482421875, 0.0399169921875, 0.00830841064453125, 0.02294921875, -0.041900634765625, -0.01258087158203125, -0.01568603515625, 0.0305328369140625, -0.0048980712890625, 0.0106658935546875, -0.0261688232421875, 0.02203369140625, -0.002323150634765625, 0.03448486328125, -0.00907135009765625, 0.0013399124145507812, -0.0295257568359375, -0.01482391357421875, -0.01526641845703125, -0.04998779296875, -0.0433349609375, -0.002216339111328125, 0.053253173828125, -0.0022125244140625, -0.031646728515625, 0.042205810546875, -0.068115234375, -0.0184326171875, 0.0148773193359375, -0.007587432861328125, -0.00861358642578125, 0.018280029296875, -0.0109405517578125, -0.056488037109375, -0.02508544921875, 0.06292724609375, -0.03411865234375, 0.0126190185546875, 0.01215362548828125, -0.01132965087890625, 0.0266265869140625, -0.0070343017578125, 0.0154266357421875, 0.038055419921875, -0.0001291036605834961, -0.01458740234375, 0.019134521484375, -0.005466461181640625, -0.0115509033203125, -0.051361083984375, 0.0017528533935546875, -0.0487060546875, -0.0085906982421875, -0.0269012451171875, -0.0015687942504882812, 0.0113372802734375, -0.044189453125, -0.053619384765625, 0.054534912109375, -0.007137298583984375, -0.030059814453125, -0.041595458984375, 0.0003063678741455078, -0.006191253662109375, 0.0015172958374023438, -0.02471923828125, 0.016510009765625, -0.007717132568359375, 0.03240966796875, 0.00811767578125, 0.049041748046875, -0.0219573974609375, 0.0034503936767578125, 0.021881103515625, 0.049591064453125, 0.055145263671875, 0.0021686553955078125, 0.011016845703125, -0.017730712890625, 0.05645751953125, 0.046630859375, -0.01389312744140625, 0.043548583984375, 0.036468505859375, -0.039520263671875, -0.03619384765625, -0.0014066696166992188, -0.032470703125, 0.00006401538848876953, 0.10968017578125, 0.10479736328125, 0.03582763671875, -0.0628662109375, -0.024383544921875, 0.0002846717834472656, -0.0347900390625, -0.0210418701171875, 0.04156494140625, -0.1004638671875, -0.034515380859375, 0.01552581787109375, -0.0435791015625, 0.026458740234375, -0.01239776611328125, -0.04638671875, 0.033416748046875, -0.01491546630859375, -0.0009131431579589844, -0.042755126953125, 0.025146484375, -0.0114288330078125, 0.005939483642578125, 0.0305328369140625, -0.042877197265625, -0.0009484291076660156, -0.0010986328125, -0.00728607177734375, -0.028076171875, 0.0008454322814941406, -0.0477294921875, 0.022918701171875, -0.024261474609375, 0.01052093505859375, -0.048858642578125, 0.01273345947265625, -0.004241943359375, 0.0146636962890625, 0.0078887939453125, 0.01361846923828125, 0.00586700439453125, -0.0160064697265625, -0.00008559226989746094, -0.01497650146484375, 0.0034885406494140625, 0.044647216796875, -0.0230560302734375, 0.05902099609375, -0.0021343231201171875, -0.02423095703125, 0.03179931640625, -0.0284576416015625, -0.0137176513671875, 0.0214996337890625, 0.036834716796875, -0.10699462890625, 0.0926513671875, 0.0178985595703125, 0.06982421875, 0.046417236328125 ]
259d72cb94233fc8fce0a29f3b0a7b54e052487a
Wordpress Stackexchange Q: Call to a member function put_contents() on a non-object I have a plugin and I am creating a css file in wp_content. I used this: $this->content_dir = WP_CONTENT_DIR . "/some_folder"; $path = $this->content_dir . 'options.css'; $css='some string'; global $wp_filesystem; if(!$wp_filesystem->put_contents( $path, $css, 0644) ) { return __('Failed to create css file'); } However I get this error: Fatal error: Call to a member function put_contents() on a non-object var_dump($css) return string. Does put_contents write to an existing file or does it create a file like file_put_contents does? I am looking for an equivalent of this: if(!file_put_contents($path, $css)){ return __('Failed to create css file'); }; Thank you! A: Initialize the WP filesystem and no more using file_put_contents function. Try this: [...] global $wp_filesystem; // Initialize the WP filesystem, no more using 'file-put-contents' function if (empty($wp_filesystem)) { require_once (ABSPATH . '/wp-admin/includes/file.php'); WP_Filesystem(); } if(!$wp_filesystem->put_contents( $path, $css, 0644) ) { return __('Failed to create css file'); }
Q: Call to a member function put_contents() on a non-object I have a plugin and I am creating a css file in wp_content. I used this: $this->content_dir = WP_CONTENT_DIR . "/some_folder"; $path = $this->content_dir . 'options.css'; $css='some string'; global $wp_filesystem; if(!$wp_filesystem->put_contents( $path, $css, 0644) ) { return __('Failed to create css file'); } However I get this error: Fatal error: Call to a member function put_contents() on a non-object var_dump($css) return string. Does put_contents write to an existing file or does it create a file like file_put_contents does? I am looking for an equivalent of this: if(!file_put_contents($path, $css)){ return __('Failed to create css file'); }; Thank you! A: Initialize the WP filesystem and no more using file_put_contents function. Try this: [...] global $wp_filesystem; // Initialize the WP filesystem, no more using 'file-put-contents' function if (empty($wp_filesystem)) { require_once (ABSPATH . '/wp-admin/includes/file.php'); WP_Filesystem(); } if(!$wp_filesystem->put_contents( $path, $css, 0644) ) { return __('Failed to create css file'); } A: require_once( ABSPATH . 'wp-admin/includes/file.php' ); // you have to load this file global $wp_filesystem; $upload_dir = wp_upload_dir(); // Grab uploads folder array $dir = trailingslashit( $upload_dir['basedir'] ) . 'cutomizer-css/'; // Set storage directory path WP_Filesystem(); // Initial WP file system $wp_filesystem->mkdir( $dir ); // Make a new directory folder if folder not their $wp_filesystem->put_contents( $dir . 'news24-customize.css', $css, 0644 ); // Finally, store the file :D Add above code in functions.php. After that enqueue that style $uploads = wp_upload_dir(); wp_enqueue_style( 'newstweentyfour-customize', trailingslashit($uploads['baseurl']) . 'newstweentyfour-customize.css', array() ); Its works i have tested..
wordpress
{ "language": "en", "length": 247, "provenance": "stackexchange_00019.jsonl.gz:441299", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130215" }
[ 0.00920867919921875, -0.024078369140625, -0.0209197998046875, -0.0513916015625, -0.009765625, -0.0219573974609375, -0.032318115234375, 0.01360321044921875, 0.0071868896484375, -0.019561767578125, -0.06060791015625, 0.018707275390625, -0.04864501953125, 0.003879547119140625, -0.00183868408203125, -0.04150390625, 0.058807373046875, -0.028564453125, 0.058624267578125, 0.02130126953125, 0.0101470947265625, 0.045928955078125, 0.059783935546875, 0.008941650390625, 0.00423431396484375, -0.00807952880859375, 0.00850677490234375, 0.0008454322814941406, -0.02801513671875, -0.023712158203125, 0.0058746337890625, 0.05035400390625, 0.0173492431640625, 0.0341796875, -0.022705078125, -0.0026950836181640625, 0.0038909912109375, 0.005687713623046875, -0.019439697265625, 0.057403564453125, 0.01132965087890625, -0.010009765625, 0.0253753662109375, 0.039337158203125, 0.002674102783203125, -0.033843994140625, 0.003482818603515625, -0.050567626953125, 0.0020160675048828125, 0.01058197021484375, 0.0155487060546875, -0.0024280548095703125, 0.0191802978515625, -0.0533447265625, -0.013671875, -0.00988006591796875, -0.0281524658203125, 0.06414794921875, 0.022247314453125, -0.0274200439453125, -0.051544189453125, 0.0018892288208007812, 0.02117919921875, -0.003658294677734375, 0.0233612060546875, -0.01155853271484375, 0.03485107421875, 0.021820068359375, -0.0703125, 0.0104217529296875, 0.0291290283203125, -0.028533935546875, 0.01200103759765625, -0.022186279296875, -0.00975799560546875, 0.0013074874877929688, -0.01134490966796875, -0.028076171875, 0.021942138671875, 0.0081787109375, 0.002307891845703125, 0.028717041015625, 0.0018472671508789062, -0.031158447265625, 0.0390625, 0.0174407958984375, -0.020355224609375, -0.032073974609375, -0.0085906982421875, 0.02923583984375, -0.0244598388671875, 0.0247955322265625, 0.045745849609375, -0.0170745849609375, -0.03973388671875, 0.000885009765625, -0.0012369155883789062, 0.059417724609375, -0.032501220703125, 0.041259765625, -0.0130157470703125, -0.028564453125, 0.04241943359375, -0.053192138671875, 0.0298614501953125, 0.0601806640625, -0.021759033203125, -0.0882568359375, 0.0155792236328125, -0.0049285888671875, -0.005664825439453125, 0.032379150390625, 0.001392364501953125, -0.037567138671875, -0.00031566619873046875, 0.01490020751953125, -0.0059051513671875, 0.01375579833984375, 0.008575439453125, 0.0091094970703125, -0.00004595518112182617, 0.0034465789794921875, -0.0266571044921875, 0.0195770263671875, -0.01517486572265625, -0.01367950439453125, -0.01788330078125, 0.0246429443359375, -0.00901031494140625, -0.0184783935546875, -0.015594482421875, 0.027191162109375, 0.07257080078125, 0.0268402099609375, -0.003749847412109375, -0.003200531005859375, 0.0220489501953125, 0.0060272216796875, -0.0106353759765625, 0.0156707763671875, 0.007843017578125, -0.0264892578125, 0.00424957275390625, -0.0125579833984375, 0.01209259033203125, 0.0209197998046875, 0.0266876220703125, 0.0158843994140625, -0.027252197265625, -0.0797119140625, 0.06890869140625, -0.01806640625, 0.03240966796875, -0.0099639892578125, -0.0364990234375, -0.025421142578125, -0.01253509521484375, -0.0200958251953125, -0.0113067626953125, -0.019439697265625, -0.02960205078125, -0.009552001953125, -0.004833221435546875, -0.0364990234375, -0.0104217529296875, -0.0008993148803710938, -0.019287109375, 0.0085601806640625, 0.0133056640625, -0.0016145706176757812, -0.006130218505859375, -0.00499725341796875, -0.01385498046875, 0.0007028579711914062, -0.00949859619140625, 0.0109100341796875, 0.024017333984375, -0.00229644775390625, 0.0161285400390625, 0.0616455078125, -0.0218658447265625, -0.045989990234375, 0.06304931640625, -0.050384521484375, 0.0018987655639648438, -0.02093505859375, -0.0012483596801757812, 0.021240234375, 0.02960205078125, 0.0175933837890625, -0.01454925537109375, -0.0071868896484375, 0.003192901611328125, -0.024444580078125, -0.0194854736328125, -0.004611968994140625, -0.03302001953125, 0.0128631591796875, -0.04241943359375, 0.031951904296875, -0.015655517578125, -0.0038890838623046875, 0.024749755859375, 0.0012607574462890625, -0.0205078125, 0.011993408203125, -0.0277557373046875, 0.01763916015625, -0.029632568359375, 0.0160980224609375, 0.00548553466796875, -0.0007953643798828125, 0.0123748779296875, -0.054595947265625, -0.0019779205322265625, 0.00710296630859375, -0.0167083740234375, 0.0246124267578125, -0.007503509521484375, 0.05072021484375, -0.006908416748046875, -0.01192474365234375, -0.01456451416015625, -0.051300048828125, 0.0159912109375, -0.0032672882080078125, -0.01549530029296875, -0.00293731689453125, 0.040374755859375, -0.00411224365234375, 0.04461669921875, 0.0154876708984375, 0.0673828125, 0.037750244140625, -0.024810791015625, -0.010833740234375, -0.0177001953125, -0.09161376953125, -0.004169464111328125, 0.06488037109375, 0.0693359375, 0.0152740478515625, 0.0199432373046875, -0.0285186767578125, 0.0877685546875, 0.004001617431640625, 0.04290771484375, -0.07598876953125, 0.00928497314453125, 0.01611328125, 0.00774383544921875, -0.0202178955078125, 0.0184173583984375, -0.07049560546875, -0.0080718994140625, 0.0297698974609375, -0.0275421142578125, -0.040191650390625, 0.007442474365234375, 0.006206512451171875, 0.0187530517578125, -0.005458831787109375, -0.007610321044921875, -0.00357818603515625, 0.0159912109375, -0.0011510848999023438, -0.01358795166015625, -0.025787353515625, -0.0264129638671875, 0.0254974365234375, 0.0286712646484375, -0.06536865234375, -0.01084136962890625, 0.058685302734375, 0.02203369140625, -0.033599853515625, -0.0450439453125, 0.0030059814453125, -0.004901885986328125, 0.0204620361328125, 0.003063201904296875, 0.01348876953125, -0.03021240234375, -0.007476806640625, 0.019378662109375, 0.00945281982421875, 0.0008320808410644531, 0.01348114013671875, 0.0182342529296875, 0.006366729736328125, 0.03759765625, 0.001392364501953125, -0.01873779296875, 0.028076171875, 0.0157623291015625, -0.02569580078125, 0.07122802734375, 0.0426025390625, -0.0262298583984375, 0.0265655517578125, 0.00370025634765625, 0.016815185546875, 0.034576416015625, -0.05523681640625, 0.0190582275390625, 0.02490234375, 0.01947021484375, -0.00018155574798583984, 0.00312042236328125, -0.0008478164672851562, -0.0355224609375, 0.007152557373046875, 0.043609619140625, 0.0307159423828125, 0.0279541015625, -0.02545166015625, -0.004421234130859375, 0.0304412841796875, -0.08758544921875, -0.08636474609375, 0.0244140625, -0.0792236328125, -0.0178680419921875, 0.010345458984375, -0.0687255859375, -0.01274871826171875, 0.035980224609375, -0.00811767578125, -0.074462890625, -0.01206207275390625, -0.01416015625, -0.06878662109375, -0.049560546875, 0.0004258155822753906, -0.0029773712158203125, 0.0191192626953125, -0.018463134765625, 0.05548095703125, -0.00771331787109375, -0.0400390625, -0.01277923583984375, 0.04254150390625, 0.006008148193359375, 0.003116607666015625, 0.002292633056640625, -0.0122833251953125, -0.0030269622802734375, 0.002620697021484375, 0.060882568359375, 0.030303955078125, -0.038604736328125, -0.01088714599609375, -0.0198974609375, -0.001827239990234375, -0.017852783203125, 0.047210693359375, 0.0227813720703125, -0.019500732421875, 0.0034809112548828125, -0.045074462890625, -0.033905029296875, 0.00716400146484375, -0.03704833984375, 0.061798095703125, 0.0291900634765625, -0.0144195556640625, 0.034881591796875, 0.00490570068359375, 0.01515960693359375, 0.0182342529296875, 0.0157318115234375, -0.001556396484375, 0.0008754730224609375, -0.01446533203125, -0.00400543212890625, -0.029571533203125, 0.076171875, 0.0157928466796875, -0.04058837890625, 0.0274658203125, 0.037200927734375, 0.013641357421875, -0.051513671875, -0.09332275390625, -0.02801513671875, 0.024505615234375, -0.0220794677734375, 0.04302978515625, -0.0433349609375, -0.0152740478515625, -0.0308837890625, 0.055389404296875, -0.032318115234375, -0.03289794921875, -0.0278167724609375, 0.0295867919921875, -0.0711669921875, -0.0733642578125, 0.004100799560546875, 0.005123138427734375, -0.04266357421875, -0.0209808349609375, -0.01207733154296875, -0.047637939453125, 0.0021457672119140625, -0.03564453125, -0.028717041015625, -0.020782470703125, 0.01129150390625, -0.018463134765625, -0.0010213851928710938, 0.02618408203125, -0.010711669921875, 0.0030651092529296875, 0.01207733154296875, -0.036102294921875, -0.1239013671875, -0.013458251953125, -0.06402587890625, 0.09454345703125, 0.0234527587890625, 0.033966064453125, -0.029998779296875, 0.059539794921875, -0.0174102783203125, -0.001758575439453125, 0.006587982177734375, 0.04937744140625, -0.02569580078125, -0.0247344970703125, 0.01177215576171875, -0.0406494140625, -0.015625, -0.00022935867309570312, -0.01983642578125, 0.051177978515625, 0.00936126708984375, -0.0003688335418701172, 0.050933837890625, -0.04241943359375, 0.004810333251953125, 0.0002849102020263672, -0.00743865966796875, 0.007640838623046875, -0.034515380859375, 0.014068603515625, 0.00753021240234375, -0.00525665283203125, 0.035675048828125, -0.0274658203125, -0.037322998046875, 0.0111846923828125, 0.055206298828125, 0.0164031982421875, -0.00455474853515625, -0.04144287109375, 0.0165863037109375, 0.0240325927734375, -0.0146331787109375, 0.040557861328125, 0.021209716796875, -0.01300048828125, 0.057891845703125, -0.0004715919494628906, 0.0244598388671875, 0.00591278076171875, 0.022857666015625, -0.00433349609375, -0.0222930908203125, 0.0157928466796875, -0.0031890869140625, -0.0284271240234375, 0.037017822265625, 0.006267547607421875, 0.0309600830078125, -0.00926971435546875, -0.0188140869140625, -0.0009975433349609375, -0.033233642578125, 0.0082550048828125, -0.035980224609375, -0.005794525146484375, 0.01415252685546875, 0.044464111328125, 0.0306243896484375, -0.004947662353515625, 0.03167724609375, 0.020904541015625, -0.006160736083984375, 0.041534423828125, 0.02178955078125, -0.00341033935546875, 0.010528564453125, 0.03997802734375, -0.02703857421875, 0.005588531494140625, 0.0191497802734375, -0.007904052734375, 0.01253509521484375, -0.0160675048828125, -0.049102783203125, 0.01560211181640625, 0.006397247314453125, -0.01520538330078125, 0.007274627685546875, 0.02166748046875, -0.0269775390625, -0.022369384765625, -0.00470733642578125, -0.00867462158203125, -0.033050537109375, -0.03680419921875, 0.00879669189453125, 0.0206298828125, -0.0260772705078125, -0.014312744140625, 0.01065826416015625, 0.0109710693359375, -0.01043701171875, -0.01194000244140625, -0.0005431175231933594, -0.008056640625, 0.024932861328125, 0.026580810546875, -0.0168609619140625, 0.00997161865234375, -0.016448974609375, 0.018402099609375, -0.0506591796875, 0.02020263671875, 0.023406982421875, 0.0579833984375, -0.0180511474609375, -0.05169677734375, 0.039093017578125, -0.032745361328125, -0.0077056884765625, -0.007099151611328125, -0.0245208740234375, -0.0305938720703125, 0.00574493408203125, 0.0121002197265625, 0.017120361328125, -0.0117950439453125, -0.0009031295776367188, -0.024749755859375, -0.02008056640625, -0.00975799560546875, 0.00714874267578125, -0.0248565673828125, -0.01763916015625, -0.01282501220703125, -0.01280975341796875, -0.0277557373046875, 0.0028228759765625, -0.0279083251953125, 0.0192108154296875, -0.0360107421875, -0.036285400390625, 0.035400390625, -0.01654052734375, 0.019256591796875, -0.023223876953125, 0.00412750244140625, -0.0006570816040039062, 0.0092315673828125, 0.0234527587890625, 0.0014820098876953125, -0.0200042724609375, 0.0030918121337890625, -0.0284881591796875, 0.00196075439453125, -0.00914764404296875, -0.043182373046875, -0.020111083984375, -0.01044464111328125, -0.00836944580078125, 0.0018138885498046875, -0.0106201171875, -0.025848388671875, -0.0186767578125, 0.042266845703125, 0.0180816650390625, 0.0110321044921875, -0.035614013671875, 0.04779052734375, 0.0208282470703125, 0.024810791015625, 0.006298065185546875, 0.030487060546875, 0.033599853515625, -0.02349853515625, -0.016571044921875, -0.040191650390625, 0.0162811279296875, -0.0188140869140625, 0.040924072265625, 0.038543701171875, 0.0675048828125, 0.00939178466796875, 0.0268402099609375, -0.005939483642578125, -0.002040863037109375, -0.0189208984375, -0.005390167236328125, 0.024749755859375, 0.032806396484375, -0.006465911865234375, -0.024871826171875, 0.00916290283203125, -0.01183319091796875, -0.0295867919921875, 0.035247802734375, -0.00226593017578125, 0.037261962890625, 0.0164642333984375, -0.04296875, 0.0528564453125, 0.03497314453125, 0.006351470947265625, 0.0545654296875, -0.037567138671875, 0.02606201171875, 0.055267333984375, 0.015106201171875, 0.03302001953125, -0.0037479400634765625, 0.04638671875, 0.014495849609375, 0.049591064453125, 0.052703857421875, -0.0038909912109375, 0.035491943359375, 0.0804443359375, 0.07037353515625, -0.06707763671875, -0.0180206298828125, -0.018035888671875, -0.035491943359375, 0.053955078125, -0.0110015869140625, 0.01160430908203125, -0.014190673828125, 0.030487060546875, 0.031829833984375, -0.020660400390625, 0.0114898681640625, 0.00881195068359375, -0.01129150390625, -0.00804901123046875, -0.0184783935546875, -0.0066375732421875, -0.07373046875, 0.026885986328125, 0.049713134765625, -0.0221405029296875, -0.00984954833984375, 0.0133819580078125, -0.0281219482421875, -0.00179290771484375, -0.0142974853515625, 0.031463623046875, -0.006473541259765625, -0.0007948875427246094, 0.00832366943359375, -0.033050537109375, 0.021087646484375, 0.00954437255859375, -0.018035888671875, 0.01491546630859375, -0.00988006591796875, -0.007610321044921875, -0.018524169921875, 0.0153961181640625, 0.032135009765625, 0.0283355712890625, -0.018646240234375, 0.01213836669921875, -0.038238525390625, 0.01184844970703125, -0.0052490234375, 0.000881195068359375, 0.057342529296875, -0.061981201171875, 0.0245208740234375, 0.046630859375, 0.0022068023681640625, -0.018341064453125, 0.00986480712890625, 0.06494140625, -0.0726318359375, -0.03594970703125, 0.050018310546875, -0.02154541015625, -0.049530029296875, 0.017181396484375, -0.0174102783203125, 0.10693359375, -0.0262908935546875, -0.006069183349609375, 0.0321044921875, 0.0296173095703125, -0.02838134765625, 0.0228424072265625, -0.050079345703125, 0.058349609375, 0.018707275390625, 0.0259246826171875, -0.06768798828125, -0.0118255615234375, -0.00931549072265625, 0.02398681640625, -0.006683349609375, 0.0149078369140625, -0.053985595703125, 0.0088653564453125, 0.0247955322265625, 0.01099395751953125, 0.010101318359375, 0.059051513671875, 0.0121002197265625, -0.06475830078125, 0.02008056640625, 0.007099151611328125, 0.01519775390625, -0.0269317626953125, 0.01042938232421875, 0.01155853271484375, -0.003536224365234375, -0.0280303955078125, 0.0014801025390625, 0.0175933837890625, -0.08062744140625, 0.011962890625, 0.03472900390625, 0.0293426513671875, -0.00951385498046875, 0.0045318603515625, -0.0022335052490234375, -0.01971435546875, 0.03338623046875, -0.02947998046875, 0.045166015625, -0.0008602142333984375, -0.0024166107177734375, -0.00653839111328125, 0.01302337646484375, 0.0048980712890625, -0.00501251220703125, -0.0104827880859375, 0.0300140380859375, -0.0157470703125, 0.036376953125, 0.0401611328125, 0.0347900390625, 0.007541656494140625, 0.0018835067749023438, -0.0022830963134765625, 0.0312347412109375, -0.0230865478515625, -0.0099945068359375, 0.0019350051879882812, 0.00811004638671875, 0.01470184326171875, -0.001811981201171875, 0.045989990234375, -0.02984619140625, -0.0173492431640625, -0.0271148681640625, -0.01213836669921875, 0.04388427734375, -0.023651123046875, 0.01287841796875, -0.0007123947143554688, 0.0250091552734375, 0.00592041015625, 0.0013380050659179688, -0.0018434524536132812, -0.0069732666015625, 0.0005631446838378906, -0.0219573974609375, 0.0256195068359375, -0.00423431396484375, 0.0033626556396484375, -0.0166778564453125, 0.024078369140625, 0.02886962890625, 0.004970550537109375, -0.002918243408203125, -0.0289154052734375, 0.05792236328125, 0.0238800048828125, 0.0016069412231445312, 0.061676025390625, 0.07568359375, 0.056976318359375, -0.007625579833984375, 0.0034961700439453125, 0.042388916015625, -0.0140533447265625, -0.01146697998046875, -0.005062103271484375, 0.0237274169921875, 0.01462554931640625, 0.0116424560546875, -0.024444580078125, 0.0179901123046875, 0.0179290771484375, 0.00911712646484375, 0.028045654296875, 0.01500701904296875, 0.0031070709228515625, 0.01459503173828125, -0.0092620849609375, 0.0020542144775390625, 0.0257568359375, 0.0021724700927734375, 0.0272216796875, -0.0201568603515625, -0.0238189697265625, -0.0303192138671875, 0.02783203125, 0.02655029296875, 0.00313568115234375, 0.01026153564453125, 0.0114898681640625, -0.0036258697509765625, -0.0137786865234375, 0.0013093948364257812, 0.013031005859375, 0.050689697265625, 0.0175933837890625, -0.06292724609375, -0.035980224609375, -0.05224609375, 0.04827880859375, 0.00569915771484375, 0.10076904296875, -0.041107177734375, 0.043853759765625, -0.007320404052734375, -0.00714111328125, -0.0146026611328125, -0.023193359375, 0.0157470703125, 0.000438690185546875, -0.0095062255859375, -0.0006046295166015625, -0.03863525390625, -0.0142364501953125, 0.0185699462890625, -0.024017333984375, -0.03912353515625, -0.0103302001953125, 0.04461669921875, 0.01971435546875, 0.0043487548828125, -0.0291748046875, 0.0185699462890625, -0.01513671875, -0.0297698974609375, 0.042449951171875, -0.025146484375, -0.00518798828125, 0.047576904296875, 0.01084136962890625, -0.0267791748046875, 0.03314208984375, -0.0689697265625, 0.038665771484375, 0.02545166015625, 0.0108795166015625, -0.04547119140625, -0.050262451171875, -0.0247650146484375, 0.0036563873291015625, -0.017974853515625, 0.043792724609375, -0.02642822265625, 0.0271453857421875, 0.046844482421875, 0.045135498046875, 0.044403076171875, -0.015899658203125, 0.0025234222412109375, 0.02642822265625, -0.00968170166015625, 0.007770538330078125, -0.056121826171875, -0.0269012451171875, -0.0670166015625, 0.0142059326171875, 0.034423828125, -0.02239990234375, -0.01030731201171875, -0.010040283203125, 0.05023193359375, 0.033172607421875, -0.0049285888671875, -0.06280517578125, 0.0257415771484375, -0.0255126953125, 0.074951171875, -0.00945281982421875, 0.017486572265625, -0.01041412353515625, 0.002941131591796875, -0.03338623046875, -0.046783447265625, -0.042205810546875, 0.0654296875, -0.0242462158203125, 0.03631591796875, 0.052642822265625, -0.02191162109375, 0.005268096923828125, 0.035614013671875, 0.026092529296875, 0.0843505859375, -0.027801513671875, -0.0163421630859375, 0.0237884521484375, -0.0201568603515625, -0.056182861328125, -0.027557373046875, 0.0239715576171875, -0.04156494140625, -0.0186614990234375, -0.0290374755859375, 0.01331329345703125, 0.00606536865234375, -0.0254669189453125, -0.053375244140625, -0.044647216796875, 0.0184783935546875, -0.042266845703125, -0.0143585205078125, -0.029144287109375, -0.027557373046875, 0.050689697265625, 0.0014715194702148438, -0.02447509765625, 0.0065460205078125, 0.05194091796875, 0.0019130706787109375, 0.007633209228515625, 0.05657958984375, -0.00362396240234375, -0.0516357421875, -0.0335693359375, -0.041015625, -0.01490020751953125, -0.00429534912109375, 0.0007071495056152344, 0.0195770263671875, 0.054443359375, 0.023284912109375, -0.0263671875, 0.007427215576171875, -0.09417724609375, -0.0209503173828125, -0.0654296875, -0.005832672119140625, -0.0094146728515625, 0.10357666015625, -0.00846099853515625, 0.0224761962890625, -0.0248260498046875, -0.0582275390625, -0.0280303955078125, -0.0516357421875, -0.026885986328125, 0.0357666015625, -0.07867431640625, 0.0104827880859375, -0.01329803466796875, -0.0021038055419921875, 0.0021572113037109375, -0.01349639892578125, -0.0232086181640625, -0.0033893585205078125, 0.0086822509765625, -0.032989501953125, 0.017303466796875, -0.026275634765625, 0.049072265625, -0.0121612548828125, 0.04876708984375, -0.004611968994140625, 0.024749755859375, 0.051361083984375, 0.04150390625, 0.0144500732421875, 0.00428009033203125, -0.049285888671875, 0.00791168212890625, -0.00847625732421875, 0.0340576171875, -0.040985107421875, -0.03350830078125, 0.0284271240234375, -0.00934600830078125, -0.049896240234375, -0.037200927734375, 0.057342529296875, 0.039794921875, -0.058837890625, 0.08270263671875, -0.050262451171875, 0.03515625, -0.0014581680297851562, 0.01129913330078125, -0.0229339599609375, 0.02044677734375, 0.0484619140625, -0.0190582275390625, -0.01174163818359375, -0.0072021484375, -0.0251922607421875, -0.07183837890625, 0.0200653076171875, -0.039031982421875, 0.01226043701171875, 0.023193359375 ]
293528e71f75603717e3bb886a0f67f9d59a90a6
Wordpress Stackexchange Q: .htaccess in wp-admin produces a redirect loop I've decided to take the advice of protecting the /wp-admin directory using .htaccess on a website which keeps getting hacked. Whenever I upload .htaccess to /wp-admin, my browser says /wp-admin has a redirect loop. This is /wp-admin/.htaccess: AuthUserFile /.../.htpasswd AuthType Basic AuthName “restricted” Order Deny,Allow Deny from all Require valid-user Satisfy any A server redirection checker says there is a 302 (Moved Temporarily) redirect from /wp-admin to /wp-admin If I delete /wp-admin/.htaccess, the redirect checker says there is still a 302 redirect from /wp-admin, but now it is to /wp-login.php?redirect_to=http%3A%2F%2Fwww.example.com%2Fwp-admin%2F&reauth=1 Bare in mind the server redirect checker is not logged into Wordpress. Why does the presence of /wp-admin/.htaccess make /wp-admin redirect to itself? Thanks. PS - I am also using Better WP Security, but this made no changes to the site's /.htaccess in terms of /wp-admin. i.e. I didn't cloak /wp-admin A: Redirection depends on server configuration. You need to add ErrorDocument 401 default to your main .htaccess to prevent redirection. You can refer the article Password-protect-wp-admin for more details
Q: .htaccess in wp-admin produces a redirect loop I've decided to take the advice of protecting the /wp-admin directory using .htaccess on a website which keeps getting hacked. Whenever I upload .htaccess to /wp-admin, my browser says /wp-admin has a redirect loop. This is /wp-admin/.htaccess: AuthUserFile /.../.htpasswd AuthType Basic AuthName “restricted” Order Deny,Allow Deny from all Require valid-user Satisfy any A server redirection checker says there is a 302 (Moved Temporarily) redirect from /wp-admin to /wp-admin If I delete /wp-admin/.htaccess, the redirect checker says there is still a 302 redirect from /wp-admin, but now it is to /wp-login.php?redirect_to=http%3A%2F%2Fwww.example.com%2Fwp-admin%2F&reauth=1 Bare in mind the server redirect checker is not logged into Wordpress. Why does the presence of /wp-admin/.htaccess make /wp-admin redirect to itself? Thanks. PS - I am also using Better WP Security, but this made no changes to the site's /.htaccess in terms of /wp-admin. i.e. I didn't cloak /wp-admin A: Redirection depends on server configuration. You need to add ErrorDocument 401 default to your main .htaccess to prevent redirection. You can refer the article Password-protect-wp-admin for more details A: I know it's an old question, but I recently ran into a similar problem and the ErrorDocument directive alone did not solve it for me. In my case, I had an incorrectly formatted .htpasswd file. When I recreated one using the htpasswd tool, everything worked as expected. Just thought I'd pass this along as an option in case someone else runs into the same thing. A: Next to "ErrorDocument 401 default" , you need to make sure the password file is readable by the webuser. In my case it was not and error log showed "[authn_file:error] [pid 15990] (13)Permission denied: [client 54.212.212.54:33556] AH01620: Could not open password file: /home/xxx/.htpasswd"
wordpress
{ "language": "en", "length": 288, "provenance": "stackexchange_00019.jsonl.gz:441305", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130240" }
[ 0.048797607421875, 0.0133819580078125, 0.0062103271484375, -0.0038738250732421875, 0.01812744140625, -0.042449951171875, 0.061279296875, -0.048553466796875, -0.01654052734375, 0.0289154052734375, 0.0241241455078125, 0.004001617431640625, 0.008087158203125, -0.03656005859375, 0.026031494140625, -0.01322174072265625, -0.00423431396484375, 0.01396942138671875, 0.04052734375, 0.0042877197265625, 0.00832366943359375, 0.016632080078125, -0.0050048828125, -0.07012939453125, -0.01546478271484375, 0.0195159912109375, 0.1041259765625, -0.052734375, -0.0034770965576171875, -0.036376953125, 0.00611114501953125, 0.0024890899658203125, 0.00611114501953125, 0.06744384765625, -0.057586669921875, -0.027862548828125, -0.02423095703125, 0.03094482421875, 0.00203704833984375, -0.0004749298095703125, 0.018951416015625, -0.00830078125, 0.0679931640625, -0.0011796951293945312, 0.0053863525390625, -0.016754150390625, 0.00783538818359375, -0.045318603515625, 0.0164947509765625, -0.0230255126953125, -0.00208282470703125, 0.020050048828125, 0.015838623046875, -0.0189666748046875, -0.017669677734375, -0.000762939453125, 0.03204345703125, -0.0272064208984375, 0.0259246826171875, -0.022552490234375, -0.0248565673828125, 0.0003924369812011719, 0.023895263671875, 0.0013980865478515625, -0.02099609375, -0.004886627197265625, -0.024810791015625, 0.0160064697265625, -0.040924072265625, -0.0252685546875, 0.0218353271484375, -0.0222320556640625, -0.004993438720703125, -0.015838623046875, -0.025360107421875, -0.01165008544921875, 0.007122039794921875, -0.006732940673828125, 0.00804901123046875, 0.0141143798828125, 0.021514892578125, -0.017608642578125, 0.0006804466247558594, -0.025177001953125, 0.017059326171875, 0.0249176025390625, -0.01172637939453125, -0.0253448486328125, 0.0155487060546875, -0.045684814453125, -0.01166534423828125, -0.015716552734375, 0.0124664306640625, -0.0026111602783203125, -0.044281005859375, -0.0187835693359375, 0.035888671875, 0.050445556640625, 0.01108551025390625, 0.0003712177276611328, -0.010833740234375, -0.0330810546875, -0.043609619140625, -0.008697509765625, 0.00034928321838378906, 0.04412841796875, 0.01551055908203125, 0.0169525146484375, 0.0105438232421875, 0.006847381591796875, -0.0016794204711914062, 0.007266998291015625, -0.0271453857421875, -0.052093505859375, -0.028076171875, 0.050750732421875, -0.02032470703125, -0.0072479248046875, 0.0183868408203125, 0.0096435546875, -0.039947509765625, -0.0205078125, 0.0212860107421875, -0.00949859619140625, 0.0182647705078125, 0.0005512237548828125, -0.01215362548828125, -0.00748443603515625, -0.010711669921875, 0.0192108154296875, -0.038116455078125, 0.009979248046875, 0.0263671875, 0.0110626220703125, 0.01270294189453125, -0.01739501953125, 0.06829833984375, -0.01751708984375, 0.01270294189453125, 0.0134735107421875, 0.0224151611328125, -0.0218658447265625, -0.045623779296875, -0.0023345947265625, 0.01165771484375, 0.0797119140625, 0.00896453857421875, -0.03375244140625, -0.006198883056640625, -0.0771484375, 0.01052093505859375, -0.0843505859375, 0.0190887451171875, 0.02581787109375, 0.05126953125, 0.000934600830078125, 0.078369140625, -0.024383544921875, -0.027099609375, -0.020965576171875, 0.01222991943359375, -0.00433349609375, 0.025634765625, -0.0038089752197265625, -0.033416748046875, 0.0184326171875, -0.0517578125, -0.0277862548828125, 0.03350830078125, -0.0257720947265625, 0.035247802734375, -0.045806884765625, -0.0151214599609375, 0.00539398193359375, 0.01611328125, 0.037200927734375, 0.01641845703125, -0.01018524169921875, 0.037689208984375, 0.02728271484375, -0.01418304443359375, -0.026702880859375, 0.008270263671875, 0.01152801513671875, -0.046844482421875, 0.00881195068359375, 0.003963470458984375, 0.0193328857421875, 0.02001953125, 0.0017557144165039062, 0.044586181640625, 0.020172119140625, -0.02880859375, 0.04229736328125, -0.019866943359375, -0.04595947265625, 0.017669677734375, 0.00901031494140625, -0.0125732421875, -0.00951385498046875, 0.005069732666015625, 0.0041961669921875, -0.051116943359375, -0.0067901611328125, -0.049407958984375, -0.040557861328125, 0.0132293701171875, 0.01226806640625, 0.031646728515625, 0.0499267578125, 0.006572723388671875, 0.02142333984375, -0.03692626953125, -0.0141143798828125, -0.0230560302734375, 0.0119781494140625, -0.02508544921875, 0.08758544921875, -0.0029239654541015625, 0.07672119140625, -0.0123138427734375, -0.05157470703125, 0.0102081298828125, -0.043548583984375, 0.01401519775390625, -0.0355224609375, -0.0245208740234375, -0.021148681640625, -0.002437591552734375, -0.019744873046875, -0.01641845703125, 0.049041748046875, 0.0159454345703125, 0.007511138916015625, -0.06439208984375, -0.036865234375, -0.06439208984375, -0.09375, 0.0207672119140625, 0.0804443359375, 0.0287322998046875, 0.0161590576171875, -0.0261993408203125, 0.01103973388671875, -0.01065826416015625, -0.09307861328125, -0.0042572021484375, 0.013397216796875, 0.0183563232421875, 0.01806640625, 0.01244354248046875, -0.033447265625, 0.018585205078125, -0.0270233154296875, -0.005157470703125, 0.0265655517578125, -0.0231170654296875, -0.0201568603515625, -0.038330078125, 0.0160675048828125, 0.01177215576171875, -0.052154541015625, -0.0286712646484375, -0.0205230712890625, -0.0215606689453125, -0.0138397216796875, -0.00583648681640625, -0.009185791015625, -0.015533447265625, -0.0191192626953125, 0.036895751953125, -0.01546478271484375, 0.003238677978515625, 0.01332855224609375, 0.0584716796875, -0.052215576171875, -0.032806396484375, -0.0098724365234375, 0.032806396484375, 0.00742340087890625, 0.001476287841796875, 0.01605224609375, -0.05535888671875, -0.0009369850158691406, 0.01502227783203125, -0.037994384765625, -0.000019669532775878906, 0.048004150390625, 0.043731689453125, -0.011688232421875, 0.022003173828125, -0.006866455078125, -0.0279998779296875, 0.039947509765625, -0.01122283935546875, -0.054962158203125, 0.00986480712890625, -0.0411376953125, 0.049713134765625, -0.036773681640625, 0.056640625, 0.0772705078125, -0.0167388916015625, 0.038482666015625, 0.003170013427734375, 0.04071044921875, -0.01136016845703125, 0.025177001953125, 0.007038116455078125, 0.00867462158203125, -0.0543212890625, -0.01285552978515625, 0.046966552734375, 0.0237274169921875, 0.02685546875, -0.02056884765625, 0.0022220611572265625, 0.047149658203125, -0.045318603515625, -0.05743408203125, -0.0362548828125, -0.040557861328125, 0.03564453125, 0.0121307373046875, -0.006038665771484375, -0.01113128662109375, 0.036285400390625, 0.018341064453125, 0.0238494873046875, 0.0041656494140625, -0.033203125, -0.0193328857421875, -0.06060791015625, -0.0379638671875, -0.012664794921875, -0.0007033348083496094, 0.0029850006103515625, 0.03009033203125, -0.008270263671875, -0.037139892578125, 0.0051116943359375, -0.0042572021484375, 0.001216888427734375, -0.00572967529296875, -0.04901123046875, -0.0016965866088867188, -0.013275146484375, 0.0008974075317382812, 0.0298309326171875, -0.0306243896484375, 0.038330078125, -0.002773284912109375, -0.005634307861328125, -0.0355224609375, 0.017669677734375, -0.0380859375, -0.021270751953125, -0.02984619140625, -0.01265716552734375, -0.064208984375, 0.0146026611328125, -0.00849151611328125, -0.0198822021484375, -0.0003542900085449219, 0.01242828369140625, -0.0311431884765625, 0.016754150390625, -0.044708251953125, 0.0264434814453125, 0.0273284912109375, -0.038177490234375, -0.019805908203125, 0.048797607421875, 0.00923919677734375, 0.042877197265625, -0.00901031494140625, 0.01047515869140625, -0.031768798828125, -0.01514434814453125, -0.0179901123046875, -0.0247955322265625, -0.01018524169921875, -0.0251007080078125, -0.0177001953125, -0.0626220703125, 0.038665771484375, -0.05267333984375, 0.0098114013671875, -0.055267333984375, -0.01329803466796875, -0.0244140625, 0.0892333984375, -0.0001933574676513672, -0.0149688720703125, -0.0222320556640625, 0.0161590576171875, -0.0241546630859375, -0.04278564453125, -0.01346588134765625, -0.0157012939453125, -0.09600830078125, -0.00662994384765625, -0.0037364959716796875, -0.044952392578125, 0.0023956298828125, -0.02081298828125, -0.050628662109375, -0.064697265625, 0.0246429443359375, -0.044708251953125, 0.0220794677734375, 0.0089569091796875, 0.0045928955078125, -0.031097412109375, 0.020294189453125, -0.054290771484375, -0.07177734375, -0.021759033203125, -0.000007808208465576172, 0.08026123046875, 0.01053619384765625, 0.007411956787109375, -0.007534027099609375, 0.0574951171875, -0.006717681884765625, 0.006221771240234375, -0.00466156005859375, 0.005245208740234375, 0.0211639404296875, 0.0067596435546875, -0.0007791519165039062, -0.0029811859130859375, -0.035003662109375, -0.0248870849609375, 0.006855010986328125, -0.0226593017578125, -0.023345947265625, -0.04327392578125, 0.0212554931640625, -0.018768310546875, -0.05078125, -0.02996826171875, -0.055999755859375, 0.0026302337646484375, -0.023162841796875, 0.004581451416015625, -0.0264434814453125, -0.06109619140625, 0.046783447265625, -0.0262298583984375, -0.0103607177734375, 0.021453857421875, 0.058624267578125, 0.0162811279296875, -0.0150146484375, -0.044830322265625, -0.018402099609375, 0.0142669677734375, -0.017547607421875, 0.0943603515625, 0.039703369140625, 0.0107879638671875, 0.06585693359375, -0.01238250732421875, -0.00701141357421875, -0.008087158203125, 0.0183868408203125, 0.00423431396484375, -0.035247802734375, 0.01445770263671875, -0.03741455078125, 0.0220794677734375, 0.058380126953125, 0.0279083251953125, -0.03594970703125, 0.0176544189453125, 0.029327392578125, -0.0025119781494140625, -0.0250396728515625, -0.01508331298828125, -0.04852294921875, 0.0172882080078125, -0.016815185546875, 0.0200042724609375, -0.002300262451171875, 0.0003476142883300781, 0.0187835693359375, 0.024810791015625, -0.0143890380859375, -0.0163421630859375, -0.0272979736328125, 0.0294647216796875, 0.011505126953125, 0.0294189453125, 0.00592803955078125, -0.0145416259765625, -0.0224609375, 0.07452392578125, 0.028594970703125, -0.0521240234375, 0.04473876953125, -0.0272674560546875, -0.02734375, 0.0176544189453125, -0.01326751708984375, 0.044158935546875, 0.00707244873046875, -0.038665771484375, -0.0095977783203125, -0.0225830078125, -0.054412841796875, -0.06610107421875, 0.038330078125, 0.00018131732940673828, 0.01129150390625, 0.0238037109375, 0.05999755859375, 0.0238189697265625, 0.0380859375, -0.0153656005859375, 0.0231475830078125, 0.0257568359375, 0.034637451171875, 0.002208709716796875, 0.007442474365234375, 0.00977325439453125, -0.00824737548828125, 0.004802703857421875, -0.052825927734375, -0.0223388671875, 0.01216888427734375, 0.053558349609375, 0.02264404296875, -0.01214599609375, 0.0025501251220703125, -0.0269927978515625, -0.01422119140625, 0.04315185546875, -0.050811767578125, -0.0701904296875, -0.0299530029296875, -0.005725860595703125, 0.053436279296875, -0.037261962890625, -0.0250244140625, 0.0277099609375, -0.03912353515625, -0.0011320114135742188, 0.0311431884765625, -0.03277587890625, -0.004627227783203125, -0.0021495819091796875, -0.02142333984375, -0.0215606689453125, -0.019012451171875, -0.039306640625, -0.018096923828125, -0.004756927490234375, -0.005062103271484375, 0.01922607421875, 0.01331329345703125, 0.01358795166015625, -0.0008983612060546875, -0.034454345703125, 0.01078033447265625, 0.0000021457672119140625, 0.05084228515625, -0.0007224082946777344, -0.0684814453125, -0.005191802978515625, -0.043365478515625, -0.00785064697265625, -0.01708984375, -0.0104827880859375, -0.022430419921875, 0.0059661865234375, 0.007511138916015625, -0.00362396240234375, 0.029327392578125, 0.025634765625, -0.041290283203125, 0.027496337890625, 0.009002685546875, -0.005023956298828125, -0.049591064453125, 0.06036376953125, 0.0012254714965820312, 0.00821685791015625, -0.03765869140625, 0.030792236328125, 0.03009033203125, 0.002712249755859375, 0.036407470703125, -0.01485443115234375, -0.01351165771484375, -0.043243408203125, 0.0177764892578125, -0.0289154052734375, 0.0207977294921875, -0.0189666748046875, -0.0115509033203125, -0.0021228790283203125, -0.005741119384765625, -0.0207672119140625, 0.0111846923828125, 0.002628326416015625, 0.00444793701171875, -0.021728515625, 0.0423583984375, 0.092529296875, -0.050262451171875, -0.051300048828125, -0.01495361328125, 0.0167694091796875, 0.0026702880859375, 0.031646728515625, -0.03619384765625, 0.04791259765625, 0.09893798828125, 0.0333251953125, 0.07562255859375, 0.033538818359375, 0.02923583984375, 0.021240234375, -0.01502227783203125, 0.002399444580078125, 0.003108978271484375, 0.04681396484375, 0.005016326904296875, -0.0033969879150390625, 0.057861328125, -0.0213470458984375, 0.00978851318359375, 0.08721923828125, 0.07257080078125, -0.11053466796875, 0.0029888153076171875, 0.0026092529296875, -0.00266265869140625, 0.035797119140625, -0.01251983642578125, -0.0159759521484375, -0.0260467529296875, 0.0234527587890625, 0.01250457763671875, -0.0212554931640625, -0.0011510848999023438, 0.0195770263671875, -0.0129547119140625, 0.00888824462890625, 0.032012939453125, 0.0256805419921875, -0.0025463104248046875, -0.0153961181640625, 0.00720977783203125, 0.003093719482421875, 0.00568389892578125, 0.003173828125, 0.00316619873046875, -0.0309295654296875, -0.047515869140625, -0.004497528076171875, -0.0166015625, -0.023651123046875, 0.031097412109375, 0.0159454345703125, 0.023895263671875, 0.0697021484375, -0.0094757080078125, 0.03594970703125, 0.0202178955078125, -0.004367828369140625, 0.040863037109375, -0.0290985107421875, -0.01287078857421875, -0.024383544921875, -0.00968170166015625, -0.0062408447265625, -0.0027980804443359375, -0.034912109375, 0.006107330322265625, -0.01476287841796875, 0.04150390625, -0.026153564453125, -0.0204010009765625, 0.0192413330078125, -0.0095367431640625, 0.011627197265625, -0.0014972686767578125, 0.0321044921875, -0.031524658203125, -0.014251708984375, 0.00011712312698364258, -0.0328369140625, 0.00878143310546875, -0.0222930908203125, -0.029327392578125, 0.0740966796875, -0.0021209716796875, -0.0074920654296875, 0.04730224609375, 0.03778076171875, -0.06915283203125, -0.001430511474609375, -0.0059814453125, 0.05926513671875, 0.02593994140625, -0.01473236083984375, -0.01080322265625, -0.003467559814453125, -0.014434814453125, 0.0333251953125, 0.040802001953125, 0.022796630859375, -0.059906005859375, 0.02239990234375, 0.055877685546875, 0.0302886962890625, 0.02392578125, 0.066162109375, -0.00103759765625, 0.0185394287109375, 0.010467529296875, -0.0298004150390625, 0.008056640625, -0.0142364501953125, -0.044891357421875, 0.015716552734375, 0.00647735595703125, -0.0187835693359375, 0.045196533203125, 0.011688232421875, -0.0679931640625, 0.03900146484375, 0.05047607421875, -0.029693603515625, -0.032257080078125, 0.0193939208984375, -0.01195526123046875, -0.01428985595703125, 0.04241943359375, -0.04107666015625, 0.039306640625, 0.0012226104736328125, 0.01611328125, 0.0181732177734375, 0.0200347900390625, 0.0225372314453125, -0.0159149169921875, 0.0080108642578125, 0.05035400390625, -0.072265625, 0.0341796875, 0.0241241455078125, 0.03851318359375, -0.00803375244140625, 0.00614166259765625, -0.00644683837890625, 0.033050537109375, -0.02398681640625, -0.0209197998046875, 0.015960693359375, 0.0130462646484375, 0.007236480712890625, 0.00616455078125, 0.019134521484375, 0.01230621337890625, 0.0260467529296875, -0.005550384521484375, -0.002605438232421875, 0.0168914794921875, -0.001186370849609375, -0.0161590576171875, 0.0030975341796875, 0.0090484619140625, 0.043792724609375, -0.031982421875, -0.0220794677734375, 0.039703369140625, 0.06329345703125, 0.0251312255859375, 0.0162353515625, -0.00722503662109375, -0.0296173095703125, 0.007114410400390625, 0.027740478515625, -0.038177490234375, -0.0021610260009765625, -0.039093017578125, -0.0787353515625, -0.0006213188171386719, 0.04901123046875, 0.034942626953125, -0.00879669189453125, 0.008544921875, 0.0101470947265625, -0.01485443115234375, -0.01107025146484375, 0.01387786865234375, -0.017822265625, -0.0056304931640625, -0.016082763671875, 0.01678466796875, 0.00897979736328125, 0.001201629638671875, -0.004947662353515625, 0.03302001953125, 0.00795745849609375, 0.027587890625, -0.0016193389892578125, 0.006683349609375, -0.0482177734375, -0.0010423660278320312, -0.0306243896484375, 0.032928466796875, 0.017181396484375, -0.05291748046875, -0.01751708984375, 0.0037441253662109375, -0.05255126953125, 0.02532958984375, 0.031341552734375, -0.037750244140625, 0.0182952880859375, -0.022979736328125, 0.001270294189453125, 0.0053253173828125, -0.0160675048828125, -0.0053863525390625, -0.02593994140625, 0.0260467529296875, -0.0181121826171875, -0.037567138671875, -0.01214599609375, 0.0016317367553710938, 0.0255279541015625, 0.01374053955078125, 0.0902099609375, -0.026702880859375, 0.00556182861328125, -0.03759765625, 0.015228271484375, -0.041595458984375, -0.0161895751953125, -0.00534820556640625, 0.005329132080078125, -0.019073486328125, -0.0020904541015625, -0.0909423828125, 0.020111083984375, 0.01548004150390625, -0.015045166015625, 0.0283203125, 0.00548553466796875, 0.0087432861328125, -0.032928466796875, 0.010101318359375, -0.0333251953125, -0.07098388671875, -0.053466796875, 0.03778076171875, 0.0006580352783203125, 0.0154571533203125, -0.0506591796875, 0.0367431640625, -0.041900634765625, -0.032257080078125, 0.0011272430419921875, -0.0576171875, -0.0152587890625, 0.033782958984375, -0.035797119140625, -0.005096435546875, -0.0101776123046875, -0.0200653076171875, 0.0067138671875, 0.004428863525390625, 0.00551605224609375, -0.009429931640625, -0.01465606689453125, -0.045440673828125, -0.0136260986328125, 0.0031528472900390625, -0.0027751922607421875, 0.0026092529296875, -0.035980224609375, -0.0299072265625, -0.0025997161865234375, -0.0241546630859375, -0.053802490234375, -0.0257568359375, -0.00971221923828125, 0.0230712890625, -0.0278167724609375, -0.0709228515625, -0.11456298828125, 0.0401611328125, 0.02191162109375, -0.01354217529296875, -0.046142578125, 0.04730224609375, -0.040802001953125, 0.06927490234375, -0.0194244384765625, 0.032562255859375, -0.005039215087890625, 0.0187530517578125, -0.064453125, -0.030242919921875, -0.0399169921875, 0.004161834716796875, -0.0556640625, -0.034698486328125, -0.004779815673828125, 0.00254058837890625, 0.0182342529296875, -0.055023193359375, -0.0391845703125, -0.001430511474609375, -0.02703857421875, -0.00815582275390625, -0.0007166862487792969, 0.033447265625, -0.0268096923828125, -0.02325439453125, -0.005832672119140625, 0.040313720703125, -0.0022830963134765625, -0.005077362060546875, 0.00925445556640625, 0.018798828125, -0.025543212890625, -0.0294342041015625, 0.024566650390625, 0.00800323486328125, -0.0214996337890625, -0.02606201171875, 0.00969696044921875, -0.01532745361328125, 0.03460693359375, 0.0169525146484375, -0.04681396484375, -0.00665283203125, 0.02227783203125, 0.0144195556640625, 0.0209197998046875, -0.00856781005859375, 0.042388916015625, 0.0156097412109375, 0.055023193359375, 0.05169677734375, 0.002857208251953125, 0.0015726089477539062, -0.0011539459228515625, 0.04864501953125, 0.08026123046875, 0.01971435546875, 0.024688720703125, -0.006511688232421875, -0.06829833984375, 0.003978729248046875, -0.0083160400390625, 0.00872039794921875, -0.036468505859375, -0.0059814453125, 0.007106781005859375, -0.00971221923828125, 0.0238494873046875, -0.04608154296875, -0.01348876953125, 0.01105499267578125, -0.0175018310546875, 0.0189208984375, -0.0643310546875, -0.01349639892578125, 0.0111541748046875, -0.0192413330078125, -0.02581787109375, 0.027587890625, -0.05364990234375, 0.007556915283203125, -0.0125274658203125, -0.0285186767578125, -0.0145721435546875, -0.00046753883361816406, 0.05218505859375, -0.035552978515625, -0.016876220703125, -0.00920867919921875, 0.024658203125, 0.01297760009765625, -0.037750244140625, 0.01372528076171875, 0.02545166015625, -0.04534912109375, -0.01013946533203125, 0.007781982421875, 0.01104736328125, -0.030364990234375, -0.014862060546875, 0.00223541259765625, 0.006916046142578125, -0.0113067626953125, 0.0104217529296875, 0.0127105712890625, 0.029144287109375, -0.00611114501953125, 0.0228424072265625, 0.023529052734375, 0.004566192626953125, -0.01206207275390625, 0.05743408203125, 0.00043892860412597656, -0.046905517578125, -0.003589630126953125, -0.0343017578125, 0.0008215904235839844, 0.043121337890625, 0.056884765625, -0.017486572265625, 0.018524169921875, 0.01454925537109375, 0.053131103515625, 0.006435394287109375 ]
cafe8dfe4bfa9fa8d5909bcd8e20ddd3b28430a3
Wordpress Stackexchange Q: How To Remove WordPress Version From The Admin Footer Is there anyway to remove version number from the right side of WordPress admin footer? I know this code will add some text before the version number, but it will not remove it: function change_footer_version() { echo 'Anything'; } add_filter( 'update_footer', 'change_footer_version', 9999 ); And the following code will do nothing: function change_footer_version() { return ' '; } add_filter( 'update_footer', 'change_footer_version', 9999 ); So, is there anyway to remove the entire <div> from the template or anything with functions.php file? A: The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 );
Q: How To Remove WordPress Version From The Admin Footer Is there anyway to remove version number from the right side of WordPress admin footer? I know this code will add some text before the version number, but it will not remove it: function change_footer_version() { echo 'Anything'; } add_filter( 'update_footer', 'change_footer_version', 9999 ); And the following code will do nothing: function change_footer_version() { return ' '; } add_filter( 'update_footer', 'change_footer_version', 9999 ); So, is there anyway to remove the entire <div> from the template or anything with functions.php file? A: The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 ); A: Add this to your functions.php: function my_footer_shh() { remove_filter( 'update_footer', 'core_update_footer' ); } add_action( 'admin_menu', 'my_footer_shh' ); or, if you'd like to hide it from everyone except admins: function my_footer_shh() { if ( ! current_user_can('manage_options') ) { // 'update_core' may be more appropriate remove_filter( 'update_footer', 'core_update_footer' ); } } add_action( 'admin_menu', 'my_footer_shh' ); A: Add this simple code into your function.php file: function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version');
wordpress
{ "language": "en", "length": 203, "provenance": "stackexchange_00019.jsonl.gz:441331", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130325" }
[ 0.0191192626953125, 0.0160369873046875, -0.05926513671875, -0.039337158203125, 0.021331787109375, -0.048492431640625, 0.00865936279296875, 0.0002875328063964844, 0.01125335693359375, -0.0013437271118164062, 0.006683349609375, -0.032379150390625, -0.0295257568359375, -0.04815673828125, -0.0238037109375, -0.04852294921875, 0.031768798828125, 0.00447845458984375, 0.05194091796875, 0.0029659271240234375, -0.018035888671875, 0.02618408203125, 0.03570556640625, 0.049652099609375, 0.00943756103515625, -0.04736328125, 0.0791015625, -0.017120361328125, -0.004276275634765625, -0.047119140625, 0.00823974609375, 0.049224853515625, -0.003421783447265625, 0.00702667236328125, 0.02069091796875, -0.072509765625, -0.02557373046875, -0.00008887052536010742, 0.00591278076171875, -0.0124969482421875, 0.0233001708984375, -0.0236358642578125, 0.03729248046875, -0.020477294921875, -0.0181732177734375, 0.01032257080078125, 0.0255279541015625, 0.0035800933837890625, 0.01210784912109375, 0.008636474609375, -0.0032482147216796875, -0.036224365234375, 0.00940704345703125, 0.0229339599609375, -0.033294677734375, -0.044281005859375, -0.00786590576171875, 0.072265625, 0.01517486572265625, -0.0017881393432617188, -0.025787353515625, 0.0572509765625, -0.0016021728515625, 0.005939483642578125, -0.04608154296875, -0.037811279296875, -0.0126190185546875, 0.0010929107666015625, -0.06658935546875, -0.055816650390625, 0.0654296875, 0.00811004638671875, 0.00443267822265625, -0.005779266357421875, 0.0007877349853515625, -0.009735107421875, 0.01392364501953125, 0.000408172607421875, 0.005962371826171875, 0.00007903575897216797, 0.07342529296875, 0.011138916015625, -0.0139312744140625, 0.0273895263671875, 0.01336669921875, 0.05010986328125, 0.002429962158203125, -0.041351318359375, -0.0537109375, -0.007198333740234375, -0.043365478515625, -0.0229644775390625, -0.032012939453125, -0.00847625732421875, -0.027557373046875, 0.0245819091796875, 0.0178680419921875, 0.042083740234375, -0.0167388916015625, -0.0037841796875, -0.02423095703125, -0.018890380859375, -0.029876708984375, -0.030120849609375, -0.00588226318359375, 0.0438232421875, -0.004184722900390625, 0.021392822265625, 0.0175323486328125, 0.0222930908203125, 0.01152801513671875, -0.033416748046875, -0.0330810546875, -0.029876708984375, -0.00960540771484375, 0.04473876953125, -0.023284912109375, 0.01508331298828125, -0.00039315223693847656, 0.01397705078125, -0.010345458984375, 0.022674560546875, 0.00421142578125, -0.0142364501953125, 0.00907135009765625, 0.010955810546875, -0.015594482421875, -0.0340576171875, 0.02716064453125, 0.03131103515625, -0.05377197265625, -0.0005230903625488281, 0.082275390625, 0.01593017578125, 0.01788330078125, -0.03106689453125, 0.041412353515625, 0.0026264190673828125, 0.0015611648559570312, 0.02099609375, -0.034210205078125, -0.01390838623046875, 0.0189208984375, -0.053314208984375, -0.0246124267578125, 0.01137542724609375, -0.0031719207763671875, 0.014984130859375, 0.01503753662109375, 0.0000794529914855957, -0.0175323486328125, -0.032073974609375, 0.0301055908203125, -0.00492095947265625, 0.0130462646484375, -0.0165863037109375, 0.04888916015625, -0.03826904296875, -0.0016031265258789062, -0.046173095703125, 0.00720977783203125, -0.022491455078125, 0.0106353759765625, 0.00548553466796875, -0.033416748046875, 0.051025390625, -0.0241851806640625, -0.011932373046875, 0.0184783935546875, -0.004024505615234375, 0.03814697265625, -0.0419921875, -0.02880859375, 0.00731658935546875, 0.00811767578125, 0.0352783203125, 0.0295257568359375, 0.0255279541015625, 0.00009334087371826172, 0.008270263671875, -0.0296173095703125, -0.050567626953125, 0.042327880859375, -0.0298004150390625, -0.0621337890625, -0.004486083984375, -0.0060272216796875, 0.0008187294006347656, 0.037811279296875, -0.004024505615234375, 0.06610107421875, 0.0194091796875, -0.01971435546875, -0.00394439697265625, 0.0096588134765625, 0.0071868896484375, -0.0230712890625, 0.007343292236328125, -0.00710296630859375, -0.01010894775390625, -0.0386962890625, 0.046630859375, -0.045989990234375, 0.003231048583984375, -0.04052734375, -0.0197296142578125, -0.016387939453125, 0.046905517578125, -0.0083465576171875, 0.0263671875, 0.02178955078125, 0.0159759521484375, -0.041290283203125, 0.01526641845703125, -0.0170135498046875, -0.0247039794921875, -0.019256591796875, 0.00963592529296875, -0.0010833740234375, 0.029815673828125, 0.0038471221923828125, -0.005725860595703125, -0.0036907196044921875, -0.0015888214111328125, 0.0361328125, -0.0182647705078125, -0.0072479248046875, -0.021026611328125, 0.0499267578125, -0.00994873046875, 0.0083160400390625, 0.03173828125, -0.0159912109375, -0.003326416015625, -0.032257080078125, -0.024566650390625, -0.043609619140625, -0.101318359375, 0.0183258056640625, 0.0675048828125, 0.0255126953125, 0.0093231201171875, -0.03216552734375, -0.0148162841796875, 0.02716064453125, -0.0276031494140625, -0.00411224365234375, -0.002254486083984375, -0.00783538818359375, 0.0188446044921875, 0.02734375, 0.0033969879150390625, -0.011444091796875, -0.02020263671875, 0.0064239501953125, 0.006649017333984375, -0.0219573974609375, -0.0182037353515625, 0.0279998779296875, -0.01507568359375, 0.007511138916015625, -0.06536865234375, -0.041168212890625, -0.0198211669921875, -0.015594482421875, -0.016937255859375, 0.01410675048828125, 0.0279693603515625, -0.0252685546875, -0.03839111328125, 0.043182373046875, 0.05908203125, -0.021270751953125, 0.002216339111328125, -0.0111236572265625, -0.0115966796875, -0.041015625, 0.03863525390625, -0.005847930908203125, -0.0091400146484375, -0.007633209228515625, 0.006008148193359375, -0.006816864013671875, -0.00612640380859375, 0.0087738037109375, -0.01666259765625, 0.029144287109375, 0.016357421875, -0.014678955078125, -0.0026988983154296875, 0.0141448974609375, 0.0165557861328125, -0.0198822021484375, 0.0035400390625, -0.0023822784423828125, -0.0006580352783203125, 0.012481689453125, -0.034912109375, 0.03472900390625, -0.011199951171875, 0.012481689453125, 0.06011962890625, 0.03924560546875, -0.027984619140625, 0.01190185546875, 0.0010700225830078125, 0.034698486328125, -0.0234832763671875, -0.0096435546875, 0.058013916015625, -0.09112548828125, 0.00844573974609375, 0.0141754150390625, 0.0014333724975585938, 0.0186309814453125, -0.024322509765625, 0.0084991455078125, 0.0008606910705566406, -0.06939697265625, -0.05963134765625, 0.01438140869140625, -0.05780029296875, -0.0274200439453125, 0.039703369140625, -0.046844482421875, -0.006130218505859375, 0.08197021484375, -0.0062103271484375, 0.005096435546875, -0.023590087890625, -0.04205322265625, -0.03582763671875, -0.05804443359375, 0.007389068603515625, -0.0078582763671875, 0.0010805130004882812, 0.00511932373046875, 0.061767578125, 0.006458282470703125, -0.08526611328125, -0.01001739501953125, 0.0273284912109375, -0.0244293212890625, 0.0206298828125, -0.002834320068359375, -0.006473541259765625, 0.000762939453125, 0.002197265625, 0.00824737548828125, 0.00836181640625, -0.00475311279296875, -0.0211181640625, -0.01953125, -0.03271484375, -0.002483367919921875, 0.0031948089599609375, -0.007450103759765625, -0.042388916015625, -0.0046234130859375, -0.0745849609375, -0.00344085693359375, 0.00804901123046875, -0.0117950439453125, 0.045379638671875, -0.0179443359375, -0.031524658203125, 0.020843505859375, 0.0303802490234375, 0.045745849609375, 0.0190887451171875, 0.037567138671875, 0.0163116455078125, -0.0262908935546875, 0.00487518310546875, 0.0203704833984375, -0.05377197265625, 0.03961181640625, -0.006717681884765625, 0.0016050338745117188, 0.009033203125, 0.024200439453125, 0.01412200927734375, -0.01369476318359375, -0.01334381103515625, -0.03759765625, 0.05670166015625, -0.03955078125, 0.02294921875, -0.05487060546875, -0.02728271484375, -0.0232086181640625, 0.1015625, -0.0227203369140625, -0.0229949951171875, 0.0036163330078125, 0.022125244140625, -0.03997802734375, -0.0355224609375, -0.031707763671875, -0.0083465576171875, -0.086669921875, 0.012939453125, 0.0005960464477539062, -0.01392364501953125, -0.04656982421875, 0.07489013671875, -0.0689697265625, -0.031341552734375, 0.00841522216796875, -0.0236053466796875, -0.046600341796875, 0.040557861328125, -0.07684326171875, 0.002696990966796875, -0.0011758804321289062, -0.03387451171875, -0.0225372314453125, -0.0136871337890625, 0.0014209747314453125, 0.04296875, 0.02520751953125, -0.0277557373046875, -0.00852203369140625, 0.034942626953125, -0.0011930465698242188, -0.0294342041015625, -0.0189056396484375, 0.004215240478515625, -0.0232086181640625, 0.00890350341796875, -0.0223541259765625, -0.019683837890625, -0.022430419921875, -0.01397705078125, -0.0289459228515625, -0.0024433135986328125, -0.01055145263671875, -0.00586700439453125, 0.0296173095703125, -0.031585693359375, -0.03985595703125, -0.023193359375, -0.00417327880859375, -0.0299835205078125, -0.0022907257080078125, -0.0110626220703125, 0.0025348663330078125, -0.02593994140625, 0.07720947265625, 0.04974365234375, -0.027435302734375, -0.00624847412109375, 0.035186767578125, 0.004650115966796875, -0.058868408203125, -0.062347412109375, 0.01763916015625, 0.043548583984375, -0.015472412109375, 0.0268707275390625, 0.00603485107421875, -0.04449462890625, 0.085205078125, 0.006374359130859375, -0.01024627685546875, 0.0117645263671875, 0.0168609619140625, 0.01336669921875, -0.051666259765625, 0.040252685546875, 0.01751708984375, -0.0227203369140625, -0.0166168212890625, -0.01340484619140625, 0.01073455810546875, 0.0117645263671875, 0.012054443359375, 0.0005340576171875, 0.007221221923828125, -0.006809234619140625, -0.044891357421875, 0.01837158203125, -0.04791259765625, 0.03076171875, 0.0164794921875, -0.004550933837890625, 0.033935546875, 0.0197906494140625, -0.01507568359375, -0.032012939453125, -0.026031494140625, -0.0179595947265625, 0.0209808349609375, -0.0250396728515625, -0.012603759765625, -0.005329132080078125, -0.0201416015625, 0.049041748046875, 0.01226806640625, -0.0283203125, -0.0015544891357421875, -0.02386474609375, 0.032379150390625, -0.0010223388671875, 0.030181884765625, 0.0304107666015625, 0.005168914794921875, 0.0091400146484375, -0.015716552734375, -0.0029754638671875, -0.01280975341796875, -0.029296875, 0.014892578125, 0.007904052734375, -0.0162506103515625, 0.009063720703125, 0.0205078125, 0.012359619140625, 0.00913238525390625, -0.0160980224609375, 0.0482177734375, 0.0200653076171875, 0.0179443359375, 0.006008148193359375, -0.01340484619140625, 0.044036865234375, -0.038360595703125, -0.0003771781921386719, -0.016937255859375, -0.00408935546875, -0.01549530029296875, 0.019805908203125, 0.007080078125, -0.01027679443359375, 0.028411865234375, -0.030487060546875, -0.007843017578125, 0.0286712646484375, -0.0251617431640625, -0.049591064453125, -0.00740814208984375, 0.0239410400390625, 0.029205322265625, -0.052490234375, 0.004833221435546875, -0.035186767578125, -0.05828857421875, -0.0506591796875, 0.0113372802734375, -0.0396728515625, -0.0343017578125, -0.020538330078125, 0.00276947021484375, -0.0218658447265625, -0.0426025390625, -0.0299224853515625, -0.025665283203125, -0.0111236572265625, 0.018096923828125, 0.033599853515625, -0.009521484375, 0.05029296875, -0.0009717941284179688, -0.0489501953125, 0.034454345703125, -0.0007596015930175781, 0.049224853515625, 0.042724609375, -0.018157958984375, -0.049346923828125, -0.0276947021484375, -0.033599853515625, -0.051544189453125, -0.037353515625, -0.015655517578125, 0.0297088623046875, -0.004047393798828125, 0.01259613037109375, -0.0270233154296875, -0.01654052734375, 0.01300048828125, 0.046478271484375, 0.011627197265625, 0.061370849609375, -0.0200347900390625, 0.0246734619140625, -0.00246429443359375, 0.0224761962890625, -0.009979248046875, 0.030242919921875, 0.027801513671875, -0.0311431884765625, 0.046630859375, 0.0231475830078125, -0.0261383056640625, -0.051025390625, 0.0279693603515625, -0.059906005859375, 0.0157928466796875, -0.0256500244140625, -0.01525115966796875, -0.0168304443359375, -0.01490020751953125, -0.0229949951171875, 0.0654296875, 0.0128631591796875, 0.0196075439453125, -0.01861572265625, -0.04461669921875, -0.024169921875, 0.005107879638671875, 0.021636962890625, -0.0071258544921875, -0.0219573974609375, -0.0206146240234375, 0.036376953125, -0.01739501953125, 0.005458831787109375, 0.04461669921875, 0.0261077880859375, 0.07220458984375, 0.016693115234375, 0.055694580078125, 0.0650634765625, -0.0116729736328125, -0.02777099609375, 0.018096923828125, 0.0169219970703125, -0.00015795230865478516, 0.032318115234375, 0.028076171875, -0.0046539306640625, 0.01506805419921875, 0.07073974609375, 0.0343017578125, -0.08941650390625, 0.00701141357421875, -0.0021419525146484375, 0.004726409912109375, 0.0675048828125, -0.00383758544921875, -0.0188751220703125, -0.06475830078125, 0.0052337646484375, -0.0046234130859375, -0.004375457763671875, -0.01141357421875, 0.0088958740234375, -0.0270538330078125, -0.00391387939453125, -0.01239013671875, 0.0312042236328125, 0.0175323486328125, 0.022369384765625, -0.00921630859375, 0.033203125, -0.0150146484375, 0.0029010772705078125, 0.0008754730224609375, -0.04229736328125, -0.10113525390625, -0.0567626953125, -0.0016222000122070312, -0.032867431640625, 0.0421142578125, 0.0032901763916015625, -0.01428985595703125, 0.05029296875, -0.0242156982421875, 0.043792724609375, 0.0007948875427246094, -0.00897979736328125, -0.012847900390625, -0.035430908203125, 0.00258636474609375, -0.053009033203125, -0.0238189697265625, 0.007694244384765625, -0.043701171875, -0.03936767578125, -0.01336669921875, -0.015533447265625, 0.08624267578125, -0.05059814453125, -0.01910400390625, 0.0142669677734375, -0.0005245208740234375, -0.01393890380859375, -0.0269622802734375, 0.044891357421875, -0.056121826171875, -0.01044464111328125, -0.001911163330078125, -0.0164337158203125, -0.020843505859375, -0.028411865234375, -0.0648193359375, 0.107666015625, 0.061981201171875, 0.0155181884765625, -0.0251312255859375, 0.04888916015625, -0.046142578125, 0.023040771484375, -0.002193450927734375, 0.0246429443359375, 0.05975341796875, 0.01238250732421875, 0.0257110595703125, -0.017669677734375, 0.0208282470703125, 0.0386962890625, 0.07305908203125, 0.008697509765625, 0.008453369140625, -0.0036334991455078125, 0.09222412109375, 0.0703125, 0.030242919921875, 0.004055023193359375, 0.0012083053588867188, 0.017059326171875, 0.00853729248046875, -0.0175323486328125, 0.0224761962890625, -0.00188446044921875, -0.025238037109375, 0.03277587890625, 0.039306640625, 0.057098388671875, 0.001110076904296875, 0.05340576171875, 0.0053558349609375, -0.006603240966796875, 0.023895263671875, -0.033538818359375, 0.0110931396484375, -0.00948333740234375, -0.0252532958984375, 0.0219268798828125, 0.01334381103515625, -0.01036834716796875, 0.0215911865234375, -0.0106048583984375, 0.00025391578674316406, -0.00616455078125, -0.0017147064208984375, 0.024932861328125, 0.01557159423828125, -0.0004642009735107422, 0.0673828125, -0.019500732421875, 0.0276947021484375, -0.00041103363037109375, 0.0214385986328125, -0.00933837890625, 0.051605224609375, -0.00972747802734375, 0.017791748046875, -0.03558349609375, -0.0018205642700195312, 0.018402099609375, -0.005191802978515625, -0.0401611328125, -0.05255126953125, -0.06085205078125, -0.048126220703125, -0.01513671875, -0.035369873046875, 0.0206756591796875, 0.0213623046875, 0.015899658203125, -0.00290679931640625, 0.004474639892578125, -0.0254974365234375, 0.007251739501953125, -0.00783538818359375, -0.0205078125, -0.0039825439453125, 0.0190582275390625, 0.036956787109375, -0.0305328369140625, -0.004749298095703125, -0.002109527587890625, -0.0224761962890625, 0.032806396484375, 0.009796142578125, 0.0299530029296875, -0.04766845703125, -0.0187530517578125, 0.0052490234375, 0.033721923828125, -0.031890869140625, 0.010986328125, 0.035003662109375, 0.06390380859375, 0.0020236968994140625, -0.028411865234375, 0.0135498046875, -0.0159149169921875, -0.028228759765625, -0.0259246826171875, -0.00598907470703125, 0.0211944580078125, 0.0081634521484375, 0.0091400146484375, 0.01971435546875, 0.01123046875, 0.0233917236328125, -0.02691650390625, 0.02020263671875, -0.051025390625, -0.0260009765625, -0.01061248779296875, -0.0070953369140625, 0.0273590087890625, -0.003276824951171875, 0.01409912109375, 0.00023305416107177734, -0.0277557373046875, -0.020599365234375, 0.003917694091796875, -0.06317138671875, 0.08587646484375, -0.00609588623046875, 0.034149169921875, -0.035186767578125, -0.043792724609375, 0.034637451171875, -0.035552978515625, 0.005443572998046875, 0.01548004150390625, -0.0159759521484375, -0.0087890625, -0.003936767578125, 0.035491943359375, 0.002857208251953125, 0.11431884765625, -0.037872314453125, 0.003688812255859375, -0.0216217041015625, 0.0221099853515625, -0.046783447265625, -0.03399658203125, 0.0021457672119140625, -0.01172637939453125, 0.0000603795051574707, 0.013763427734375, -0.0662841796875, 0.01238250732421875, 0.04718017578125, -0.0306396484375, 0.04150390625, 0.007320404052734375, 0.0055694580078125, -0.0482177734375, -0.0498046875, -0.040130615234375, -0.040191650390625, 0.026763916015625, 0.028900146484375, -0.026336669921875, -0.00662994384765625, -0.0076904296875, -0.0241546630859375, 0.0299530029296875, -0.047149658203125, 0.0218048095703125, 0.019775390625, 0.025634765625, 0.033355712890625, 0.01654052734375, 0.0254669189453125, 0.0211639404296875, -0.007266998291015625, 0.04034423828125, 0.0032062530517578125, 0.004894256591796875, 0.0472412109375, 0.0034542083740234375, 0.0007901191711425781, -0.0098724365234375, 0.01739501953125, -0.0239715576171875, 0.0021457672119140625, -0.013671875, 0.01151275634765625, -0.00598907470703125, 0.00960540771484375, -0.007171630859375, -0.04888916015625, -0.023834228515625, 0.00725555419921875, -0.031097412109375, -0.033050537109375, -0.001911163330078125, 0.032958984375, -0.002841949462890625, 0.0177764892578125, -0.0830078125, 0.0684814453125, 0.0026721954345703125, 0.0301513671875, -0.00968170166015625, 0.041839599609375, -0.0250244140625, -0.00836181640625, -0.0091552734375, -0.053558349609375, -0.0229949951171875, 0.09698486328125, -0.001068115234375, -0.0192413330078125, -0.012542724609375, 0.0139007568359375, 0.031463623046875, -0.0153656005859375, -0.0014896392822265625, 0.03369140625, -0.018798828125, 0.005847930908203125, 0.0205078125, 0.00786590576171875, -0.05255126953125, -0.08660888671875, 0.01715087890625, -0.079345703125, -0.005764007568359375, 0.00485992431640625, 0.00608062744140625, 0.01153564453125, -0.031890869140625, -0.09356689453125, -0.00324249267578125, 0.004711151123046875, -0.05010986328125, -0.0185394287109375, -0.0259246826171875, -0.017181396484375, 0.052276611328125, 0.0093994140625, -0.01383209228515625, -0.0239715576171875, 0.0264434814453125, -0.01102447509765625, 0.064697265625, -0.00748443603515625, 0.00080108642578125, -0.00824737548828125, 0.0249481201171875, 0.00988006591796875, 0.01375579833984375, -0.031341552734375, 0.0008606910705566406, -0.0026645660400390625, 0.0151824951171875, -0.01751708984375, 0.0016489028930664062, 0.01192474365234375, -0.01824951171875, -0.01171112060546875, -0.048797607421875, -0.044525146484375, -0.047943115234375, 0.11468505859375, 0.03619384765625, 0.036376953125, -0.006824493408203125, -0.0305023193359375, -0.0120697021484375, 0.00832366943359375, -0.03680419921875, 0.0034027099609375, -0.0869140625, -0.028350830078125, 0.0205535888671875, -0.0091400146484375, 0.0250091552734375, -0.00002580881118774414, -0.0272979736328125, 0.0021839141845703125, -0.006893157958984375, -0.00620269775390625, -0.032958984375, 0.0116424560546875, 0.01241302490234375, -0.0179901123046875, 0.002094268798828125, -0.0289154052734375, 0.015106201171875, 0.01105499267578125, -0.013275146484375, 0.0238189697265625, 0.006748199462890625, -0.061279296875, 0.037017822265625, -0.0103302001953125, 0.0097503662109375, -0.051666259765625, -0.035430908203125, -0.0064697265625, 0.00595855712890625, 0.011077880859375, -0.001434326171875, -0.02874755859375, 0.02850341796875, -0.00959014892578125, 0.06561279296875, 0.0084075927734375, 0.06494140625, -0.00962066650390625, 0.05267333984375, -0.01116180419921875, -0.032012939453125, -0.006378173828125, -0.0218048095703125, 0.005115509033203125, -0.0029392242431640625, 0.0223846435546875, -0.05780029296875, 0.0268096923828125, -0.00629425048828125, 0.0260772705078125, 0.03411865234375 ]
4a2257aac6fcc7ccc171d5e6cd267f0154ec0b9a
Wordpress Stackexchange Q: Hide Default Video Shortcode Controls on PageLoad In wordpress 3.6+ when we use default video shortcode [video], controls of video are always visible on pageload. How can we hide these controls on page load and show only when we hover over the video element. Using the CSS code below, does the trick ... .wp-video .mejs-container .mejs-controls { visibility: hidden; } But, controls wont show on hovering then. How to solve the issue? A: You need to use the hover CSS code to enable it e.g. .mejs-container .mejs-controls:hover { display:block; }
Q: Hide Default Video Shortcode Controls on PageLoad In wordpress 3.6+ when we use default video shortcode [video], controls of video are always visible on pageload. How can we hide these controls on page load and show only when we hover over the video element. Using the CSS code below, does the trick ... .wp-video .mejs-container .mejs-controls { visibility: hidden; } But, controls wont show on hovering then. How to solve the issue? A: You need to use the hover CSS code to enable it e.g. .mejs-container .mejs-controls:hover { display:block; }
wordpress
{ "language": "en", "length": 91, "provenance": "stackexchange_00019.jsonl.gz:441356", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130402" }
[ 0.041900634765625, -0.0080718994140625, 0.033599853515625, -0.0159454345703125, -0.0023899078369140625, -0.00965118408203125, 0.060760498046875, -0.0267791748046875, 0.0440673828125, 0.03045654296875, -0.07550048828125, -0.013214111328125, -0.046356201171875, 0.008697509765625, -0.07489013671875, -0.058685302734375, 0.0236663818359375, 0.04461669921875, 0.05731201171875, 0.0010662078857421875, -0.005405426025390625, 0.006725311279296875, 0.030364990234375, 0.028717041015625, 0.0256195068359375, -0.04351806640625, 0.0430908203125, -0.001461029052734375, -0.0014104843139648438, -0.02471923828125, 0.01523590087890625, 0.010772705078125, 0.02825927734375, 0.044097900390625, -0.07159423828125, 0.01611328125, -0.0029048919677734375, 0.01580810546875, -0.004619598388671875, 0.0276947021484375, -0.0035228729248046875, 0.0164947509765625, 0.0234222412109375, -0.03656005859375, -0.0273284912109375, -0.0021514892578125, -0.024505615234375, -0.021453857421875, -0.0008721351623535156, -0.01708984375, 0.029266357421875, 0.0233917236328125, 0.0278472900390625, 0.0241546630859375, -0.00792694091796875, 0.01409912109375, -0.02850341796875, -0.007442474365234375, 0.0210418701171875, 0.05615234375, -0.0017938613891601562, 0.01111602783203125, -0.0219573974609375, -0.05682373046875, 0.01007843017578125, 0.023529052734375, 0.0208282470703125, 0.01367950439453125, -0.055999755859375, -0.0013265609741210938, 0.0291748046875, -0.043243408203125, -0.0027294158935546875, -0.038421630859375, 0.01123809814453125, 0.04498291015625, -0.00940704345703125, 0.0218353271484375, 0.0099029541015625, 0.004512786865234375, 0.041046142578125, -0.0416259765625, 0.0171356201171875, 0.006862640380859375, 0.017852783203125, 0.0295867919921875, 0.006336212158203125, -0.0113525390625, 0.029449462890625, 0.005748748779296875, 0.007350921630859375, 0.02764892578125, 0.003360748291015625, 0.0123443603515625, -0.01727294921875, -0.03436279296875, 0.00225067138671875, 0.059478759765625, 0.001811981201171875, 0.006862640380859375, -0.0202178955078125, -0.0272216796875, -0.0015630722045898438, -0.045867919921875, -0.0011644363403320312, 0.00832366943359375, 0.01171112060546875, 0.003467559814453125, 0.023956298828125, 0.0214080810546875, -0.021331787109375, 0.06756591796875, 0.0182037353515625, 0.0210723876953125, -0.05206298828125, -0.0274200439453125, -0.0242156982421875, 0.00707244873046875, -0.02154541015625, 0.0173187255859375, 0.00582122802734375, 0.01496124267578125, 0.003452301025390625, -0.0305633544921875, 0.0167083740234375, -0.0029773712158203125, -0.032318115234375, -0.0082855224609375, 0.02166748046875, -0.00039315223693847656, -0.057098388671875, -0.002593994140625, 0.10223388671875, 0.052276611328125, 0.044769287109375, -0.0220184326171875, 0.0196380615234375, -0.0133209228515625, 0.00970458984375, 0.020294189453125, -0.044097900390625, -0.007114410400390625, 0.048492431640625, -0.0355224609375, -0.0021381378173828125, -0.004734039306640625, 0.0124359130859375, 0.0228118896484375, 0.0002911090850830078, -0.0599365234375, 0.0214080810546875, -0.006496429443359375, 0.0379638671875, 0.0302276611328125, -0.014068603515625, 0.029327392578125, 0.06536865234375, -0.0185699462890625, -0.06268310546875, -0.045806884765625, 0.047454833984375, 0.007904052734375, -0.042083740234375, -0.0277252197265625, -0.037872314453125, -0.0345458984375, -0.0045013427734375, 0.0128021240234375, 0.0308074951171875, 0.0748291015625, -0.022064208984375, -0.041412353515625, -0.0000030994415283203125, 0.037445068359375, -0.01415252685546875, 0.045989990234375, 0.007320404052734375, 0.0222930908203125, 0.030120849609375, -0.02069091796875, -0.0175323486328125, -0.0296173095703125, 0.09417724609375, -0.0306243896484375, -0.044464111328125, 0.01242828369140625, 0.0106353759765625, 0.0093231201171875, 0.00397491455078125, 0.006923675537109375, 0.057464599609375, 0.039306640625, -0.0234832763671875, 0.016387939453125, 0.0053253173828125, -0.028167724609375, -0.0057373046875, -0.01540374755859375, 0.0028896331787109375, 0.002773284912109375, 0.033477783203125, 0.0027370452880859375, 0.05096435546875, 0.0015697479248046875, 0.02685546875, 0.008331298828125, -0.00383758544921875, 0.01079559326171875, 0.00890350341796875, -0.00958251953125, 0.003875732421875, 0.01355743408203125, -0.03607177734375, 0.009002685546875, -0.038848876953125, 0.037841796875, 0.0018291473388671875, 0.086181640625, -0.01441192626953125, 0.05224609375, 0.0012454986572265625, -0.09893798828125, 0.026824951171875, 0.03790283203125, -0.00984954833984375, -0.01512908935546875, 0.007274627685546875, -0.007595062255859375, 0.050048828125, -0.004302978515625, 0.07354736328125, -0.0286407470703125, 0.0246734619140625, 0.0011854171752929688, -0.07635498046875, -0.0248870849609375, -0.043975830078125, -0.01007843017578125, 0.00848388671875, 0.062164306640625, 0.031585693359375, 0.045867919921875, -0.00896453857421875, 0.02337646484375, 0.06634521484375, -0.035369873046875, -0.00235748291015625, -0.004413604736328125, 0.005474090576171875, -0.0022716522216796875, 0.023101806640625, -0.005039215087890625, 0.022369384765625, -0.0200958251953125, 0.03887939453125, 0.0263671875, -0.00022745132446289062, -0.00356292724609375, -0.0225677490234375, 0.01496124267578125, -0.01122283935546875, -0.042388916015625, 0.006320953369140625, -0.0283660888671875, 0.06353759765625, -0.001651763916015625, 0.0408935546875, 0.024261474609375, -0.035888671875, 0.0330810546875, 0.0021228790283203125, -0.018524169921875, -0.00815582275390625, 0.01474761962890625, 0.0928955078125, -0.0290069580078125, -0.018829345703125, -0.036376953125, 0.0131072998046875, 0.005344390869140625, -0.012542724609375, -0.0211334228515625, -0.07391357421875, 0.0012712478637695312, 0.030059814453125, 0.003170013427734375, -0.0171051025390625, -0.003910064697265625, 0.04583740234375, -0.011566162109375, 0.00963592529296875, 0.034210205078125, 0.0137939453125, 0.036041259765625, 0.0496826171875, -0.0213470458984375, 0.032012939453125, -0.030242919921875, 0.053192138671875, -0.048126220703125, -0.021240234375, 0.048583984375, -0.0361328125, 0.0230712890625, 0.00899505615234375, 0.0262298583984375, 0.0187225341796875, 0.01201629638671875, -0.00555419921875, 0.00024116039276123047, -0.03131103515625, 0.0014219284057617188, 0.0101318359375, -0.015380859375, -0.039276123046875, -0.053863525390625, -0.04339599609375, -0.01441192626953125, -0.10687255859375, -0.034698486328125, -0.005435943603515625, -0.08978271484375, 0.0278472900390625, -0.00658416748046875, -0.033599853515625, -0.0168304443359375, 0.0438232421875, 0.024200439453125, -0.044647216796875, 0.013641357421875, -0.0008258819580078125, -0.02752685546875, -0.01165008544921875, 0.01934814453125, -0.01010894775390625, 0.00453948974609375, 0.01131439208984375, 0.061767578125, 0.0176544189453125, -0.054595947265625, 0.002994537353515625, -0.02740478515625, -0.026611328125, 0.0279541015625, 0.0318603515625, -0.03594970703125, -0.0218353271484375, 0.0274200439453125, -0.03271484375, -0.0250396728515625, 0.0338134765625, -0.0457763671875, 0.016021728515625, -0.06719970703125, 0.017303466796875, 0.004058837890625, -0.040283203125, -0.032867431640625, 0.04278564453125, -0.06494140625, -0.034332275390625, 0.0223236083984375, -0.035491943359375, -0.0196075439453125, 0.0215606689453125, -0.03863525390625, -0.0172882080078125, -0.00376129150390625, 0.04681396484375, 0.0433349609375, 0.0002808570861816406, -0.00334930419921875, 0.0038280487060546875, 0.0032939910888671875, 0.027191162109375, -0.0262298583984375, 0.0228729248046875, -0.00443267822265625, -0.0145721435546875, -0.01114654541015625, 0.0073089599609375, -0.0123748779296875, 0.01727294921875, -0.040069580078125, 0.01497650146484375, 0.0162353515625, 0.0091552734375, 0.02630615234375, -0.042938232421875, -0.015777587890625, -0.0267333984375, 0.0259246826171875, -0.038482666015625, -0.0021419525146484375, 0.034576416015625, -0.0009412765502929688, 0.01026153564453125, 0.0070953369140625, -0.07379150390625, -0.00571441650390625, -0.052978515625, 0.0162200927734375, 0.0084381103515625, -0.013916015625, -0.0267791748046875, 0.003284454345703125, -0.06280517578125, -0.035003662109375, 0.046356201171875, 0.0494384765625, 0.0271148681640625, -0.0201416015625, 0.04156494140625, -0.0194854736328125, -0.00391387939453125, 0.01255035400390625, -0.04461669921875, -0.013885498046875, -0.00724029541015625, 0.051849365234375, 0.0159454345703125, -0.020355224609375, -0.04168701171875, 0.02191162109375, 0.016265869140625, 0.0240478515625, 0.02105712890625, -0.01306915283203125, 0.01430511474609375, 0.037261962890625, 0.044158935546875, -0.002414703369140625, 0.01113128662109375, -0.0006742477416992188, -0.0288543701171875, -0.0023651123046875, -0.0386962890625, -0.0033245086669921875, 0.006855010986328125, -0.0216064453125, 0.002239227294921875, -0.049530029296875, -0.0401611328125, 0.0404052734375, -0.0249786376953125, 0.01397705078125, -0.07086181640625, -0.038055419921875, 0.0111236572265625, -0.006107330322265625, -0.0009737014770507812, 0.00421142578125, 0.00009757280349731445, 0.020111083984375, -0.01947021484375, -0.004589080810546875, 0.044097900390625, 0.041748046875, 0.00611114501953125, 0.0576171875, 0.0176849365234375, -0.021453857421875, 0.057647705078125, 0.00414276123046875, 0.026824951171875, 0.024810791015625, -0.00209808349609375, 0.00948333740234375, -0.04150390625, 0.0380859375, 0.025115966796875, -0.04693603515625, -0.0140380859375, -0.0117645263671875, 0.0283203125, 0.0019292831420898438, -0.02362060546875, 0.0277862548828125, -0.0322265625, -0.003856658935546875, -0.005645751953125, -0.00803375244140625, 0.037506103515625, 0.048004150390625, 0.04742431640625, 0.00731658935546875, 0.035186767578125, 0.03741455078125, 0.0111846923828125, 0.033660888671875, -0.006256103515625, -0.042724609375, 0.0224761962890625, 0.0241851806640625, -0.01050567626953125, 0.05535888671875, 0.006000518798828125, 0.0267791748046875, -0.0099029541015625, -0.0361328125, -0.036773681640625, 0.00487518310546875, -0.0038051605224609375, 0.025604248046875, -0.01132965087890625, 0.0226593017578125, 0.029205322265625, -0.0064697265625, -0.01435089111328125, -0.004795074462890625, 0.0130615234375, -0.032135009765625, 0.055267333984375, -0.01490020751953125, 0.00972747802734375, -0.0094146728515625, 0.033538818359375, 0.0006241798400878906, -0.0030345916748046875, 0.0015850067138671875, 0.0111236572265625, -0.021240234375, 0.0185699462890625, 0.0005941390991210938, 0.008392333984375, 0.01448822021484375, 0.001678466796875, 0.01415252685546875, -0.03704833984375, -0.044586181640625, 0.05718994140625, 0.030548095703125, -0.014404296875, -0.0015659332275390625, -0.0146331787109375, 0.0026912689208984375, -0.019927978515625, -0.0234222412109375, -0.0238494873046875, 0.00809478759765625, -0.0309906005859375, -0.0033092498779296875, 0.0264129638671875, 0.03558349609375, 0.0003056526184082031, -0.0360107421875, -0.0063629150390625, -0.009857177734375, 0.0245513916015625, -0.0673828125, 0.0229034423828125, 0.01580810546875, 0.048492431640625, -0.0189666748046875, -0.0259552001953125, -0.054290771484375, 0.0150909423828125, -0.0240936279296875, 0.002208709716796875, 0.03173828125, -0.031341552734375, 0.0164794921875, -0.02227783203125, -0.0012416839599609375, -0.05206298828125, 0.031982421875, 0.0284271240234375, 0.0136871337890625, -0.037689208984375, 0.0069122314453125, -0.04339599609375, -0.00743865966796875, -0.0215911865234375, -0.06268310546875, -0.04742431640625, -0.032012939453125, -0.0638427734375, -0.01084136962890625, -0.023651123046875, 0.04400634765625, -0.0031337738037109375, 0.04095458984375, -0.0137481689453125, 0.006778717041015625, 0.00033092498779296875, 0.030853271484375, -0.00992584228515625, 0.04071044921875, 0.00868988037109375, 0.0038433074951171875, -0.01531219482421875, -0.023956298828125, 0.0016889572143554688, -0.007274627685546875, -0.035552978515625, 0.018310546875, -0.04229736328125, 0.0045166015625, 0.047119140625, -0.02850341796875, 0.039459228515625, 0.00830841064453125, -0.0021038055419921875, -0.017303466796875, -0.01399993896484375, 0.00261688232421875, 0.037567138671875, -0.006420135498046875, 0.0310211181640625, 0.0406494140625, -0.0452880859375, -0.056549072265625, 0.027252197265625, 0.007671356201171875, 0.02105712890625, 0.0182037353515625, 0.023895263671875, 0.0222930908203125, 0.02899169921875, -0.051239013671875, 0.006061553955078125, 0.0201416015625, -0.02508544921875, -0.00780487060546875, -0.0020084381103515625, -0.0013885498046875, -0.0207672119140625, 0.042449951171875, 0.00760650634765625, -0.017913818359375, 0.033660888671875, -0.02362060546875, 0.01311492919921875, 0.0038928985595703125, 0.04669189453125, -0.0025043487548828125, -0.01181793212890625, 0.0011243820190429688, -0.072509765625, -0.0229949951171875, -0.010833740234375, -0.0225982666015625, -0.04107666015625, 0.04827880859375, -0.02899169921875, -0.01493072509765625, 0.01177215576171875, -0.005710601806640625, -0.006069183349609375, -0.0297088623046875, 0.032958984375, 0.0035800933837890625, -0.04559326171875, 0.0282745361328125, 0.01096343994140625, -0.005611419677734375, -0.0243072509765625, 0.037872314453125, 0.0092010498046875, -0.030364990234375, -0.04766845703125, 0.029266357421875, 0.052764892578125, -0.0419921875, 0.035980224609375, 0.02099609375, -0.02655029296875, 0.056365966796875, -0.04132080078125, 0.05609130859375, 0.016265869140625, -0.0345458984375, 0.0262451171875, -0.04815673828125, 0.0006241798400878906, -0.0070037841796875, -0.052520751953125, 0.01274871826171875, -0.0001189112663269043, -0.035064697265625, -0.01372528076171875, -0.00496673583984375, 0.06982421875, -0.0137939453125, -0.029449462890625, 0.0257720947265625, 0.03472900390625, -0.005199432373046875, -0.0287628173828125, -0.0068817138671875, -0.05450439453125, -0.0224761962890625, -0.034210205078125, -0.054443359375, 0.0106353759765625, -0.075439453125, -0.0560302734375, 0.04205322265625, 0.00431060791015625, 0.01751708984375, -0.00328826904296875, 0.007572174072265625, -0.03253173828125, -0.0123748779296875, 0.00997161865234375, 0.035675048828125, 0.0300445556640625, 0.01497650146484375, 0.0067291259765625, -0.0166015625, 0.0300750732421875, 0.051300048828125, 0.00884246826171875, -0.022430419921875, 0.0616455078125, 0.0479736328125, 0.1282958984375, 0.041748046875, 0.00913238525390625, -0.039459228515625, -0.0290679931640625, 0.002941131591796875, -0.0122833251953125, -0.0214996337890625, 0.0163116455078125, -0.01171875, -0.056243896484375, 0.004535675048828125, 0.02734375, 0.0283203125, 0.02716064453125, 0.035858154296875, -0.0066070556640625, 0.00897216796875, 0.00968170166015625, -0.0009765625, -0.036651611328125, 0.0156707763671875, -0.002452850341796875, -0.07904052734375, -0.051483154296875, -0.0294647216796875, 0.0232696533203125, 0.01551055908203125, -0.0247802734375, 0.0247344970703125, 0.01413726806640625, -0.03753662109375, -0.01308441162109375, -0.0230712890625, 0.0055389404296875, -0.01085662841796875, 0.006076812744140625, 0.00545501708984375, 0.007598876953125, 0.001495361328125, 0.0191650390625, -0.00952911376953125, 0.00010561943054199219, -0.0143890380859375, -0.0033111572265625, 0.02203369140625, 0.0303955078125, 0.000720977783203125, -0.0357666015625, 0.00812530517578125, -0.033599853515625, -0.0006971359252929688, -0.024932861328125, -0.01525115966796875, -0.001873016357421875, 0.03619384765625, 0.0008273124694824219, 0.00502777099609375, -0.01338958740234375, -0.04901123046875, -0.0469970703125, 0.00360107421875, 0.005687713623046875, 0.044097900390625, 0.032562255859375, 0.042327880859375, -0.009674072265625, -0.018280029296875, -0.012725830078125, 0.03125, -0.0016536712646484375, 0.0283050537109375, -0.046539306640625, -0.016845703125, -0.005657196044921875, 0.040924072265625, 0.0182952880859375, 0.10345458984375, 0.089111328125, 0.0307769775390625, -0.019195556640625, 0.01004791259765625, 0.034515380859375, -0.032073974609375, 0.0050048828125, -0.0214996337890625, 0.02081298828125, 0.0267181396484375, -0.00653076171875, -0.01425933837890625, 0.01248931884765625, 0.051727294921875, -0.06402587890625, 0.0653076171875, -0.017181396484375, -0.03662109375, 0.023834228515625, -0.0252532958984375, 0.08062744140625, -0.0137176513671875, -0.006256103515625, -0.0188751220703125, -0.0002696514129638672, -0.0020618438720703125, -0.0126953125, 0.021575927734375, 0.0082550048828125, 0.0206756591796875, 0.043914794921875, -0.00580596923828125, -0.038726806640625, 0.035736083984375, 0.025604248046875, -0.0253448486328125, 0.005184173583984375, 0.00794219970703125, -0.0711669921875, -0.0271148681640625, -0.042510986328125, 0.0027217864990234375, 0.00678253173828125, 0.09210205078125, 0.005615234375, 0.01166534423828125, 0.0249786376953125, -0.0007939338684082031, 0.009307861328125, -0.0031490325927734375, 0.007801055908203125, -0.01064300537109375, 0.008941650390625, -0.006305694580078125, 0.0190582275390625, 0.059112548828125, -0.0011510848999023438, -0.00388336181640625, 0.051849365234375, -0.040313720703125, -0.005702972412109375, -0.0097808837890625, 0.0034027099609375, -0.05072021484375, -0.0745849609375, -0.053253173828125, 0.033782958984375, -0.0246734619140625, -0.035186767578125, -0.05181884765625, -0.0037212371826171875, -0.007350921630859375, -0.016265869140625, 0.010406494140625, 0.007171630859375, 0.00783538818359375, 0.0174713134765625, -0.0247039794921875, 0.0070037841796875, 0.0054168701171875, -0.0219573974609375, 0.02532958984375, -0.0007786750793457031, -0.01024627685546875, 0.01169586181640625, -0.06134033203125, 0.006916046142578125, 0.01495361328125, 0.026123046875, -0.0284576416015625, -0.0034313201904296875, 0.0252532958984375, -0.006134033203125, 0.020599365234375, 0.0452880859375, -0.0096893310546875, 0.0037364959716796875, -0.01256561279296875, 0.001964569091796875, -0.0165557861328125, -0.04156494140625, -0.06976318359375, 0.0034198760986328125, 0.01396942138671875, 0.02032470703125, -0.03985595703125, 0.00885009765625, 0.02252197265625, 0.016510009765625, 0.024139404296875, 0.066162109375, -0.0173187255859375, -0.0187225341796875, -0.039276123046875, 0.014892578125, 0.007282257080078125, 0.02032470703125, 0.052581787109375, -0.018646240234375, 0.01116180419921875, -0.0040130615234375, -0.02362060546875, 0.0009636878967285156, -0.0099334716796875, 0.040802001953125, -0.01160430908203125, -0.01206207275390625, -0.01212310791015625, 0.0174713134765625, -0.0280609130859375, -0.04522705078125, 0.028167724609375, -0.0672607421875, -0.018035888671875, -0.00861358642578125, -0.044891357421875, -0.03265380859375, -0.05438232421875, -0.00872039794921875, 0.0589599609375, 0.0207672119140625, -0.0168304443359375, -0.0027103424072265625, 0.0153656005859375, -0.0035858154296875, 0.0242767333984375, -0.004547119140625, -0.027984619140625, -0.017822265625, -0.0013580322265625, -0.0067291259765625, 0.00943756103515625, 0.035491943359375, -0.0006060600280761719, -0.044342041015625, -0.02587890625, -0.045562744140625, -0.04473876953125, 0.0259552001953125, -0.00919342041015625, 0.0130615234375, 0.02227783203125, -0.041473388671875, -0.03656005859375, -0.0233001708984375, -0.02032470703125, 0.004787445068359375, -0.033111572265625, -0.01438140869140625, -0.051910400390625, 0.0182037353515625, -0.0184478759765625, -0.00959014892578125, 0.0274658203125, -0.05181884765625, -0.007701873779296875, -0.01010894775390625, 0.00969696044921875, 0.044281005859375, -0.08465576171875, -0.003955841064453125, 0.0173492431640625, -0.0019397735595703125, 0.008636474609375, -0.033416748046875, -0.04937744140625, -0.0175323486328125, -0.06488037109375, 0.00951385498046875, -0.06640625, 0.006412506103515625, 0.0714111328125, -0.038909912109375, -0.0041046142578125, 0.0301971435546875, -0.01036834716796875, 0.040618896484375, 0.039581298828125, 0.02325439453125, -0.034332275390625, -0.0158538818359375, 0.0237884521484375, 0.004150390625, -0.02386474609375, -0.016082763671875, -0.0499267578125, -0.01294708251953125, 0.00711822509765625, -0.01175689697265625, 0.0307159423828125, 0.00119781494140625, 0.01934814453125, 0.01453399658203125, -0.0205230712890625, -0.055267333984375, 0.0638427734375, -0.032379150390625, 0.006046295166015625, 0.022216796875, 0.0253448486328125, 0.0853271484375, 0.019073486328125, 0.01050567626953125, 0.0289306640625, -0.00928497314453125, 0.004405975341796875, -0.0197296142578125, -0.10986328125, 0.00417327880859375, -0.02813720703125 ]
9d16803026ec014438bc0361bc1bc81c252cbdc5
Wordpress Stackexchange Q: Placeholder text for registration form I am trying to add placeholder text to the native WordPress registration form. I am currently using the Register Plus Redux plugin. How to add this placeholder text into the text input fields on the form? I need to tell people to use their first and last name as the username. I'd be stoked if someone could help me out. A: Another simple way to do this without needing to add another script is using PHP's str_replace function. $args = array( 'echo' => false, ); $form = wp_login_form( $args ); //add the placeholders $form = str_replace('name="log"', 'name="log" placeholder="Username"', $form); $form = str_replace('name="pwd"', 'name="pwd" placeholder="Password"', $form); echo $form;
Q: Placeholder text for registration form I am trying to add placeholder text to the native WordPress registration form. I am currently using the Register Plus Redux plugin. How to add this placeholder text into the text input fields on the form? I need to tell people to use their first and last name as the username. I'd be stoked if someone could help me out. A: Another simple way to do this without needing to add another script is using PHP's str_replace function. $args = array( 'echo' => false, ); $form = wp_login_form( $args ); //add the placeholders $form = str_replace('name="log"', 'name="log" placeholder="Username"', $form); $form = str_replace('name="pwd"', 'name="pwd" placeholder="Password"', $form); echo $form; A: Unfortunately there are no hooks/filters to modify the input field in the login/registration form to add a placeholder to it. But you can do this by simple jQuery. I am adding the steps below I am not aware of how this plugin changes the form but you can follow the same for it too. Below are the codes working for the default login/registration page First you need to create a js file. I created it in my active theme's js folder and named it custom.js then added the below line in this file. /** * Custom js file. */ jQuery(document).ready(function(){ jQuery('#user_login').attr('placeholder', 'User Name'); jQuery('#user_email').attr('placeholder', 'User Email'); jQuery('#user_pass').attr('placeholder', 'User Password'); }); The above adds place holder as User Name, User Email and User Password to the user_login, user_email, and user_pass input field respectively. You can change those as per your requirement. Now you need to add/enqueue this js file which you can do by adding the below code in your active theme's functions.php file add_action( 'login_enqueue_scripts', 'wpse_login_enqueue_scripts', 10 ); function wpse_login_enqueue_scripts() { wp_enqueue_script( 'custom.js', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), 1.0 ); }
wordpress
{ "language": "en", "length": 296, "provenance": "stackexchange_00019.jsonl.gz:441454", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/130729" }
[ 0.026123046875, -0.01163482666015625, -0.0005125999450683594, -0.0281219482421875, -0.01385498046875, -0.007411956787109375, 0.0176849365234375, -0.0020923614501953125, 0.0004322528839111328, 0.0297698974609375, -0.0184478759765625, 0.0228729248046875, -0.038299560546875, -0.0055084228515625, -0.035614013671875, -0.029876708984375, -0.0184478759765625, 0.01348114013671875, -0.00603485107421875, -0.01812744140625, 0.0112457275390625, -0.0236053466796875, -0.01114654541015625, -0.0233154296875, 0.03839111328125, -0.06500244140625, 0.097412109375, -0.04742431640625, 0.03778076171875, -0.0194091796875, 0.031829833984375, -0.0228271484375, 0.01386260986328125, 0.0183868408203125, -0.006439208984375, 0.00341796875, 0.032012939453125, -0.0043487548828125, 0.0177764892578125, 0.0240478515625, 0.06256103515625, -0.01203155517578125, -0.01371002197265625, 0.00911712646484375, -0.0200347900390625, -0.0382080078125, 0.0577392578125, 0.0032806396484375, 0.00626373291015625, -0.0032596588134765625, -0.002849578857421875, 0.0206146240234375, 0.00846099853515625, -0.033447265625, 0.01149749755859375, 0.029754638671875, -0.07275390625, 0.0311737060546875, 0.031646728515625, 0.082763671875, 0.01337432861328125, -0.0193023681640625, -0.01806640625, -0.051544189453125, -0.0030612945556640625, -0.0095062255859375, -0.0195770263671875, 0.006977081298828125, 0.00577545166015625, 0.0007829666137695312, 0.0233001708984375, -0.0263671875, -0.005710601806640625, -0.0357666015625, -0.00942230224609375, 0.045684814453125, -0.026153564453125, 0.00099945068359375, 0.0202789306640625, -0.00490570068359375, -0.01514434814453125, -0.033721923828125, 0.02435302734375, -0.0017213821411132812, 0.005390167236328125, 0.0130767822265625, -0.022125244140625, -0.0023326873779296875, -0.02154541015625, -0.04974365234375, -0.017669677734375, -0.057342529296875, -0.0433349609375, 0.01519775390625, -0.008697509765625, -0.0274658203125, 0.037017822265625, 0.03485107421875, -0.0028324127197265625, 0.00312042236328125, 0.0183258056640625, -0.049835205078125, 0.045196533203125, -0.0197601318359375, 0.01395416259765625, 0.07012939453125, 0.0010623931884765625, 0.00815582275390625, -0.01172637939453125, -0.0130767822265625, 0.002506256103515625, -0.036376953125, -0.034881591796875, -0.052825927734375, -0.039031982421875, 0.10211181640625, 0.024261474609375, -0.03692626953125, -0.0011444091796875, 0.0183868408203125, -0.032562255859375, 0.009552001953125, -0.004520416259765625, -0.031707763671875, -0.00989532470703125, -0.042999267578125, -0.01122283935546875, -0.0011358261108398438, -0.00533294677734375, 0.00664520263671875, -0.0157318115234375, 0.0192413330078125, 0.0477294921875, 0.035980224609375, 0.0114593505859375, -0.00478363037109375, 0.0124664306640625, -0.0216217041015625, -0.03228759765625, 0.03485107421875, -0.004085540771484375, -0.033966064453125, -0.00006586313247680664, -0.006481170654296875, 0.01372528076171875, 0.0214691162109375, -0.0014905929565429688, 0.0160980224609375, 0.0225067138671875, -0.0631103515625, 0.03240966796875, -0.06805419921875, 0.0020198822021484375, 0.0278167724609375, -0.00286102294921875, 0.029876708984375, -0.006229400634765625, 0.01194000244140625, -0.0093994140625, 0.007007598876953125, 0.01271820068359375, -0.0140228271484375, -0.0020694732666015625, -0.0455322265625, -0.039398193359375, 0.0033855438232421875, -0.0511474609375, -0.00246429443359375, 0.02593994140625, -0.018951416015625, 0.046875, 0.0264434814453125, 0.0190887451171875, 0.003368377685546875, 0.0160369873046875, -0.0171966552734375, 0.0017480850219726562, 0.045379638671875, 0.0039520263671875, 0.005863189697265625, -0.0128021240234375, -0.03411865234375, 0.039794921875, -0.0074920654296875, -0.0352783203125, 0.02288818359375, 0.0217437744140625, 0.050994873046875, -0.0220794677734375, 0.013153076171875, 0.048095703125, 0.015289306640625, -0.0286407470703125, -0.02886962890625, -0.037078857421875, 0.022430419921875, 0.0003876686096191406, 0.0227508544921875, -0.0307769775390625, 0.034637451171875, 0.00873565673828125, -0.0304718017578125, 0.0032329559326171875, -0.0197296142578125, -0.0305938720703125, -0.019378662109375, -0.00853729248046875, 0.0246429443359375, -0.0396728515625, -0.0093536376953125, 0.023895263671875, -0.016082763671875, -0.006839752197265625, -0.06195068359375, -0.0233306884765625, -0.0148773193359375, -0.011138916015625, 0.045867919921875, 0.0170135498046875, 0.031768798828125, 0.0212554931640625, -0.00902557373046875, 0.01522064208984375, -0.0198516845703125, 0.00066375732421875, -0.0292510986328125, -0.0159454345703125, -0.02362060546875, 0.009063720703125, -0.024078369140625, 0.021820068359375, 0.05438232421875, -0.0191650390625, -0.0038299560546875, -0.040435791015625, -0.0062103271484375, -0.0513916015625, -0.01534271240234375, 0.000058770179748535156, 0.04150390625, 0.0248565673828125, 0.05810546875, 0.00556182861328125, 0.028076171875, 0.06488037109375, 0.01361846923828125, 0.026824951171875, -0.0200653076171875, 0.0041961669921875, 0.0413818359375, -0.02734375, 0.0281524658203125, 0.02447509765625, -0.0289764404296875, -0.0023899078369140625, 0.052154541015625, -0.0244903564453125, -0.033905029296875, 0.004486083984375, -0.00659942626953125, 0.0017042160034179688, -0.0709228515625, -0.007534027099609375, -0.045013427734375, -0.01495361328125, -0.00998687744140625, -0.026611328125, -0.0234375, -0.043975830078125, 0.0175933837890625, 0.0408935546875, -0.0272369384765625, -0.01611328125, -0.0237579345703125, -0.01538848876953125, -0.01055908203125, -0.022491455078125, 0.0294036865234375, 0.002796173095703125, -0.0290985107421875, -0.0300140380859375, -0.043975830078125, 0.005352020263671875, 0.0008282661437988281, 0.02008056640625, -0.0294647216796875, 0.047698974609375, -0.01456451416015625, -0.0024871826171875, -0.045135498046875, 0.0018281936645507812, -0.00226593017578125, -0.05059814453125, 0.0265045166015625, -0.0013151168823242188, -0.049591064453125, 0.0020236968994140625, -0.035614013671875, 0.028228759765625, -0.04766845703125, 0.0017375946044921875, 0.05120849609375, -0.015899658203125, -0.0160369873046875, 0.005695343017578125, -0.00891876220703125, -0.0106658935546875, -0.01001739501953125, -0.006908416748046875, -0.0159454345703125, -0.0079345703125, 0.04718017578125, 0.01078033447265625, 0.0308074951171875, -0.004222869873046875, -0.03936767578125, 0.00881195068359375, 0.0236663818359375, -0.034027099609375, -0.0174713134765625, -0.0633544921875, -0.00948333740234375, -0.01395416259765625, 0.053070068359375, -0.0119171142578125, 0.0178985595703125, 0.0709228515625, 0.009185791015625, -0.0070648193359375, -0.038604736328125, -0.0291595458984375, -0.06292724609375, -0.07135009765625, -0.0242462158203125, 0.0053863525390625, 0.01214599609375, 0.0059661865234375, 0.033477783203125, 0.0020046234130859375, -0.0181427001953125, 0.011688232421875, 0.023468017578125, -0.0011005401611328125, 0.001537322998046875, 0.0032024383544921875, -0.052001953125, 0.053558349609375, -0.015960693359375, 0.01320648193359375, 0.0246124267578125, 0.019805908203125, -0.0006480216979980469, -0.01027679443359375, -0.05242919921875, 0.0017366409301757812, 0.02197265625, -0.0018453598022460938, -0.039031982421875, 0.03265380859375, -0.05810546875, -0.0008749961853027344, 0.03326416015625, -0.0084686279296875, -0.0227813720703125, -0.01172637939453125, -0.040740966796875, 0.0099945068359375, -0.001003265380859375, -0.0185089111328125, -0.0009946823120117188, -0.0010957717895507812, -0.020355224609375, -0.01541900634765625, -0.01268768310546875, -0.00997161865234375, 0.01476287841796875, -0.0137786865234375, -0.031982421875, 0.0567626953125, 0.0005121231079101562, 0.02935791015625, 0.039459228515625, 0.00113677978515625, 0.035858154296875, -0.1070556640625, 0.0528564453125, -0.05426025390625, -0.021697998046875, -0.0499267578125, -0.026336669921875, 0.0163421630859375, 0.11962890625, -0.01486968994140625, -0.0133514404296875, 0.006603240966796875, 0.0164337158203125, -0.0273284912109375, -0.016693115234375, -0.0313720703125, -0.00731658935546875, -0.034423828125, -0.0164642333984375, -0.007389068603515625, -0.024688720703125, 0.0228729248046875, -0.046478271484375, 0.010528564453125, -0.0256805419921875, 0.01149749755859375, -0.0382080078125, 0.01183319091796875, 0.006195068359375, 0.01055908203125, -0.031707763671875, 0.0288848876953125, -0.0533447265625, -0.0611572265625, -0.013397216796875, -0.02484130859375, 0.03619384765625, 0.036468505859375, -0.0697021484375, 0.00009638071060180664, 0.0197296142578125, 0.038726806640625, 0.0082244873046875, 0.02581787109375, -0.01806640625, 0.0116424560546875, -0.01335906982421875, 0.007965087890625, -0.026123046875, 0.00020492076873779297, -0.017608642578125, -0.054412841796875, 0.002780914306640625, -0.00897979736328125, -0.0266571044921875, 0.055633544921875, -0.054840087890625, -0.01491546630859375, -0.012481689453125, 0.01309967041015625, 0.021728515625, -0.01514434814453125, 0.0178375244140625, -0.0098419189453125, -0.01436614990234375, 0.035919189453125, -0.0009698867797851562, -0.008636474609375, 0.01371002197265625, 0.06646728515625, 0.011444091796875, -0.0185394287109375, -0.0139007568359375, 0.020721435546875, 0.038848876953125, 0.01580810546875, -0.0156402587890625, -0.037506103515625, -0.03759765625, 0.070556640625, 0.0036602020263671875, 0.0198822021484375, 0.0004086494445800781, -0.002017974853515625, 0.000644683837890625, -0.03662109375, 0.03253173828125, 0.010284423828125, -0.020355224609375, -0.0011577606201171875, -0.00772857666015625, 0.01287841796875, 0.019256591796875, -0.0027294158935546875, -0.00038886070251464844, 0.0008149147033691406, -0.0082550048828125, -0.045562744140625, 0.003902435302734375, -0.044403076171875, 0.00518798828125, 0.007198333740234375, 0.004344940185546875, 0.01385498046875, 0.02197265625, -0.041015625, -0.0093536376953125, -0.117919921875, 0.045745849609375, -0.0273895263671875, 0.0200653076171875, 0.01172637939453125, 0.0272369384765625, -0.0058441162109375, 0.0718994140625, -0.0010623931884765625, -0.047637939453125, -0.015960693359375, -0.032073974609375, 0.058563232421875, 0.0169525146484375, 0.0005574226379394531, 0.0007791519165039062, 0.00800323486328125, 0.0240936279296875, 0.046142578125, 0.0259857177734375, 0.0038051605224609375, 0.0185699462890625, -0.0230560302734375, 0.0014753341674804688, -0.036163330078125, -0.044586181640625, 0.0191802978515625, 0.013031005859375, -0.0391845703125, 0.0001882314682006836, 0.0259857177734375, 0.007274627685546875, 0.01026153564453125, 0.01520538330078125, 0.0221099853515625, -0.00048351287841796875, -0.00508880615234375, 0.0304718017578125, -0.019683837890625, 0.0136566162109375, 0.012786865234375, 0.033447265625, 0.01143646240234375, -0.0090484619140625, 0.010498046875, -0.05194091796875, 0.01129150390625, -0.007389068603515625, -0.06329345703125, -0.0777587890625, 0.00995635986328125, 0.026123046875, 0.00858306884765625, -0.07666015625, 0.01399993896484375, 0.01318359375, 0.0042877197265625, -0.0021724700927734375, 0.058197021484375, -0.0298004150390625, -0.03045654296875, -0.0192108154296875, 0.0237579345703125, -0.00923919677734375, -0.041168212890625, -0.025604248046875, -0.01023101806640625, -0.028076171875, -0.0006108283996582031, 0.0364990234375, 0.008331298828125, -0.004852294921875, -0.05743408203125, 0.01837158203125, -0.047576904296875, -0.0212249755859375, 0.039825439453125, -0.017669677734375, 0.00414276123046875, -0.0178375244140625, -0.0237579345703125, -0.0272369384765625, -0.00719451904296875, -0.005741119384765625, 0.0016412734985351562, -0.0010242462158203125, 0.0142059326171875, 0.0253143310546875, -0.0302581787109375, -0.025177001953125, 0.0002608299255371094, 0.0202178955078125, 0.01511383056640625, 0.04742431640625, -0.0096893310546875, -0.00031280517578125, -0.027801513671875, 0.020263671875, -0.020782470703125, -0.00930023193359375, 0.027801513671875, -0.03509521484375, 0.0016736984252929688, -0.0136260986328125, -0.01483917236328125, -0.00518035888671875, -0.005054473876953125, 0.00428009033203125, 0.053192138671875, -0.008544921875, 0.00415802001953125, -0.00970458984375, 0.01070404052734375, -0.01023101806640625, 0.04345703125, 0.00988006591796875, -0.03887939453125, 0.049285888671875, -0.05377197265625, -0.02508544921875, 0.0099945068359375, 0.0034961700439453125, 0.0116729736328125, -0.022674560546875, -0.0007052421569824219, 0.055816650390625, -0.033477783203125, 0.0145263671875, 0.0298614501953125, 0.00115966796875, 0.04107666015625, 0.0121917724609375, 0.0421142578125, 0.05609130859375, 0.0028438568115234375, -0.0458984375, -0.00147247314453125, 0.06787109375, 0.03216552734375, -0.0264739990234375, 0.072021484375, -0.019287109375, 0.0001316070556640625, 0.0721435546875, 0.057464599609375, -0.094970703125, 0.0006623268127441406, -0.0098419189453125, -0.00251007080078125, 0.041229248046875, 0.0263671875, 0.0078277587890625, 0.0477294921875, -0.0107574462890625, -0.053680419921875, -0.017822265625, 0.00670623779296875, 0.027130126953125, -0.01189422607421875, -0.01177215576171875, 0.04437255859375, 0.028289794921875, -0.0017375946044921875, 0.006778717041015625, -0.0033550262451171875, 0.0293121337890625, -0.016143798828125, -0.0154266357421875, 0.031036376953125, -0.0162811279296875, -0.0833740234375, -0.0238494873046875, -0.0419921875, -0.00792694091796875, -0.005146026611328125, 0.034912109375, 0.03912353515625, 0.043975830078125, 0.0154876708984375, -0.0274200439453125, 0.013641357421875, 0.01255035400390625, 0.0533447265625, -0.040191650390625, -0.0228424072265625, 0.0007061958312988281, -0.044830322265625, 0.01378631591796875, -0.0164031982421875, 0.01470184326171875, -0.0282135009765625, -0.043975830078125, 0.0826416015625, -0.00965118408203125, -0.033721923828125, -0.01396942138671875, 0.0169525146484375, 0.01097869873046875, -0.03564453125, 0.0007967948913574219, -0.0794677734375, -0.04681396484375, -0.0233917236328125, -0.06561279296875, 0.00946044921875, -0.049163818359375, -0.08697509765625, 0.1336669921875, 0.03253173828125, 0.04608154296875, -0.007537841796875, 0.057647705078125, -0.025482177734375, 0.03656005859375, -0.035003662109375, 0.07025146484375, 0.005035400390625, 0.009521484375, 0.0008673667907714844, 0.022247314453125, 0.006763458251953125, -0.038330078125, 0.0203094482421875, 0.001911163330078125, 0.008941650390625, -0.01163482666015625, 0.0155792236328125, 0.0274505615234375, -0.012298583984375, 0.0131988525390625, 0.01220703125, -0.007781982421875, 0.021148681640625, -0.0211639404296875, 0.0293426513671875, -0.03717041015625, 0.00435638427734375, 0.0288543701171875, 0.0042724609375, -0.0102081298828125, 0.0145721435546875, 0.0084228515625, -0.06341552734375, 0.00943756103515625, 0.042205810546875, 0.00754547119140625, 0.01035308837890625, 0.04010009765625, 0.0258026123046875, -0.0008840560913085938, 0.0362548828125, -0.037750244140625, 0.054656982421875, -0.0007681846618652344, 0.041900634765625, 0.058624267578125, 0.01629638671875, 0.0721435546875, 0.0206298828125, 0.039886474609375, 0.017486572265625, 0.02484130859375, 0.041015625, 0.00576019287109375, 0.0170745849609375, -0.03533935546875, -0.00666046142578125, 0.033355712890625, 0.057037353515625, -0.035888671875, -0.0230712890625, 0.011932373046875, 0.0083160400390625, 0.039459228515625, -0.028076171875, 0.0477294921875, -0.0753173828125, -0.016326904296875, 0.0108184814453125, -0.0223846435546875, -0.00757598876953125, -0.0008692741394042969, -0.007549285888671875, -0.0004203319549560547, 0.01448822021484375, 0.0187835693359375, -0.03460693359375, -0.00278472900390625, 0.01702880859375, 0.0252685546875, -0.004364013671875, 0.05926513671875, 0.04217529296875, 0.000423431396484375, -0.0030422210693359375, -0.0028018951416015625, 0.034698486328125, -0.0025806427001953125, 0.008209228515625, 0.027679443359375, 0.01212310791015625, -0.0025882720947265625, -0.006824493408203125, 0.0220489501953125, 0.03814697265625, 0.025421142578125, -0.0283050537109375, -0.021331787109375, 0.035308837890625, -0.0270233154296875, -0.00640869140625, -0.00870513916015625, -0.01043701171875, 0.0160369873046875, -0.011627197265625, -0.0233917236328125, 0.013580322265625, 0.0299835205078125, -0.010223388671875, 0.0073394775390625, -0.002941131591796875, -0.055755615234375, 0.01434326171875, -0.004878997802734375, 0.0765380859375, 0.033721923828125, -0.10308837890625, -0.01291656494140625, -0.006717681884765625, -0.0433349609375, 0.0126495361328125, 0.035064697265625, -0.04156494140625, 0.03948974609375, -0.01030731201171875, -0.018646240234375, 0.0084686279296875, -0.01007080078125, 0.025909423828125, -0.0177459716796875, -0.016265869140625, -0.0192413330078125, -0.06390380859375, -0.01544952392578125, 0.0151214599609375, -0.0250244140625, -0.0276947021484375, 0.05950927734375, 0.0176239013671875, -0.030914306640625, -0.049102783203125, 0.003414154052734375, -0.035186767578125, -0.0266571044921875, -0.00015842914581298828, 0.002384185791015625, -0.01331329345703125, 0.00299072265625, -0.0589599609375, 0.060546875, -0.01079559326171875, 0.030609130859375, 0.067138671875, -0.0186309814453125, -0.01110076904296875, -0.0086212158203125, 0.0028839111328125, -0.0219879150390625, -0.052520751953125, -0.00646209716796875, 0.027130126953125, -0.002460479736328125, 0.0206451416015625, -0.0157928466796875, 0.03167724609375, -0.01085662841796875, -0.037078857421875, 0.026824951171875, -0.0572509765625, 0.0242156982421875, 0.012847900390625, 0.024139404296875, -0.007656097412109375, -0.017181396484375, -0.0143280029296875, -0.006328582763671875, 0.01065826416015625, -0.0022449493408203125, -0.005290985107421875, -0.00013911724090576172, -0.0134735107421875, 0.026336669921875, 0.051910400390625, 0.02874755859375, 0.036346435546875, -0.04400634765625, -0.020172119140625, 0.021453857421875, -0.03814697265625, -0.035491943359375, -0.06195068359375, 0.001003265380859375, 0.0303802490234375, -0.020843505859375, -0.0295257568359375, -0.066162109375, -0.0014743804931640625, -0.008026123046875, -0.01904296875, -0.0176849365234375, 0.007720947265625, -0.01528167724609375, 0.0157928466796875, -0.04193115234375, -0.05084228515625, 0.0215606689453125, 0.038970947265625, -0.0031032562255859375, -0.02667236328125, -0.037872314453125, 0.01386260986328125, -0.0281219482421875, -0.014556884765625, 0.04571533203125, 0.00677490234375, -0.051055908203125, -0.0232086181640625, -0.034088134765625, 0.02130126953125, -0.0670166015625, -0.030548095703125, 0.0173797607421875, 0.0099334716796875, 0.00933074951171875, -0.06298828125, -0.0098114013671875, -0.03375244140625, 0.0288543701171875, -0.057952880859375, 0.0261993408203125, 0.01406097412109375, -0.042572021484375, -0.08355712890625, 0.040008544921875, -0.034637451171875, -0.032958984375, 0.00365447998046875, 0.00817108154296875, -0.031494140625, 0.045379638671875, 0.0252227783203125, -0.0189208984375, 0.0183258056640625, 0.01116180419921875, -0.015228271484375, 0.00928497314453125, 0.0208740234375, 0.007312774658203125, -0.037353515625, -0.00283050537109375, -0.01348876953125, -0.039306640625, 0.0556640625, -0.044464111328125, 0.037689208984375, 0.04974365234375, -0.05145263671875, -0.0249176025390625, -0.029449462890625, -0.041168212890625, 0.004489898681640625, -0.07147216796875, 0.01154327392578125, -0.0137939453125, 0.041473388671875, 0.004642486572265625, -0.004970550537109375, -0.028076171875, -0.056060791015625, -0.03277587890625, 0.00946044921875, -0.0229949951171875, 0.005329132080078125, -0.061798095703125, 0.00234222412109375, -0.0249786376953125, -0.03436279296875, -0.01242828369140625, 0.0240936279296875, -0.04583740234375, 0.01898193359375, 0.028167724609375, -0.00550079345703125, -0.016876220703125, -0.041412353515625, 0.08447265625, -0.040130615234375, -0.020050048828125, -0.0026493072509765625, 0.0465087890625, 0.01535797119140625, -0.0275421142578125, 0.0258331298828125, -0.039215087890625, 0.00507354736328125, 0.0144500732421875, 0.01090240478515625, 0.07647705078125, 0.0096282958984375, -0.059234619140625, -0.033782958984375, 0.01381683349609375, 0.00946044921875, 0.0305023193359375, -0.01401519775390625, 0.062408447265625, 0.0391845703125, 0.0350341796875, -0.030303955078125, -0.0943603515625, -0.039886474609375, -0.006420135498046875, 0.0023975372314453125, 0.0277099609375, 0.051361083984375, -0.01491546630859375, 0.01087188720703125, 0.0031414031982421875, -0.020477294921875, -0.01035308837890625, 0.0158538818359375, -0.01053619384765625, -0.0211639404296875, 0.006439208984375 ]
bca96b2ea62b631e9d895b05def2e06317ab6c21
Wordpress Stackexchange Q: Can I use Woocommerce to take orders but not handle payment? I would like to create an ecommerce website. In this website the customer will browse the product catalog, add the desired products to his cart, maybe create an account, and during the checkout phase, will leave a phone number along with his shipping information and address. I will then manually review every order made (and be notified via email for new orders), call the person and handle it from then on. Is this possible or do I have to let woocommerce handle the payments using a gateway like PayPal? If it is possible, can someone please guide me how to set it up like so? A: You can use multiple payment gateways. Simply use one of the default payment gateways that doesn't require immediately payment and you can rename it in the settings, so you have the same process that you described above. For example the "Cash on Delivery" gateway is ideal, you can edit the title and the description of the method in woocommerce settings.
Q: Can I use Woocommerce to take orders but not handle payment? I would like to create an ecommerce website. In this website the customer will browse the product catalog, add the desired products to his cart, maybe create an account, and during the checkout phase, will leave a phone number along with his shipping information and address. I will then manually review every order made (and be notified via email for new orders), call the person and handle it from then on. Is this possible or do I have to let woocommerce handle the payments using a gateway like PayPal? If it is possible, can someone please guide me how to set it up like so? A: You can use multiple payment gateways. Simply use one of the default payment gateways that doesn't require immediately payment and you can rename it in the settings, so you have the same process that you described above. For example the "Cash on Delivery" gateway is ideal, you can edit the title and the description of the method in woocommerce settings.
wordpress
{ "language": "en", "length": 178, "provenance": "stackexchange_00019.jsonl.gz:441626", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131275" }
[ 0.050811767578125, 0.008087158203125, -0.0223846435546875, -0.016632080078125, 0.006519317626953125, -0.037109375, 0.0200347900390625, -0.0198974609375, 0.0111846923828125, 0.01495361328125, -0.02655029296875, -0.004474639892578125, -0.0068206787109375, -0.0162811279296875, -0.004611968994140625, -0.0271759033203125, 0.032684326171875, -0.0167694091796875, 0.0374755859375, 0.00176239013671875, 0.00467681884765625, 0.01422119140625, 0.037750244140625, 0.0244598388671875, 0.036224365234375, 0.0038394927978515625, 0.05810546875, -0.036102294921875, 0.060272216796875, 0.00608062744140625, 0.042724609375, -0.06597900390625, 0.018829345703125, 0.00970458984375, -0.0159759521484375, -0.01030731201171875, -0.0057830810546875, 0.00673675537109375, -0.007648468017578125, 0.0145111083984375, 0.0312042236328125, -0.007350921630859375, 0.0016574859619140625, 0.006702423095703125, -0.012298583984375, -0.033905029296875, 0.004070281982421875, -0.04168701171875, 0.031280517578125, 0.0033283233642578125, -0.0100860595703125, 0.041259765625, -0.0150604248046875, -0.01407623291015625, -0.0153656005859375, -0.01169586181640625, -0.066650390625, 0.0179290771484375, 0.0142669677734375, 0.01459503173828125, -0.001880645751953125, -0.0301513671875, 0.014739990234375, -0.002269744873046875, 0.031890869140625, -0.00905609130859375, -0.027557373046875, 0.0272674560546875, -0.023712158203125, 0.034698486328125, 0.03131103515625, -0.036285400390625, 0.018096923828125, -0.00868988037109375, -0.0076141357421875, -0.0478515625, -0.00628662109375, -0.047332763671875, 0.02984619140625, 0.0129547119140625, 0.0214691162109375, 0.00955963134765625, -0.0182952880859375, -0.045135498046875, 0.0343017578125, -0.0237274169921875, -0.00574493408203125, -0.00438690185546875, -0.0526123046875, -0.0186767578125, -0.037811279296875, -0.034637451171875, -0.076416015625, 0.0364990234375, -0.0016870498657226562, 0.0088348388671875, -0.033111572265625, -0.0413818359375, 0.0259552001953125, 0.031158447265625, 0.0406494140625, -0.0560302734375, 0.060333251953125, -0.022369384765625, 0.005924224853515625, -0.003997802734375, -0.0222930908203125, -0.00875091552734375, 0.040191650390625, 0.011505126953125, -0.005252838134765625, 0.02587890625, 0.018951416015625, -0.03717041015625, 0.0272979736328125, -0.0125885009765625, -0.0203399658203125, 0.039703369140625, 0.01154327392578125, -0.0293426513671875, 0.0166473388671875, 0.043853759765625, 0.0296630859375, -0.02728271484375, -0.0292816162109375, -0.0223388671875, -0.0170135498046875, -0.059844970703125, 0.0260162353515625, -0.017791748046875, -0.05352783203125, 0.0226593017578125, 0.071044921875, 0.022674560546875, 0.01169586181640625, -0.0059967041015625, 0.0137481689453125, 0.05889892578125, 0.03057861328125, -0.041351318359375, 0.08782958984375, -0.037628173828125, -0.0555419921875, 0.07904052734375, 0.0309906005859375, -0.00399017333984375, 0.017303466796875, 0.03582763671875, 0.021209716796875, 0.029937744140625, -0.00484466552734375, 0.0186309814453125, -0.01580810546875, 0.02197265625, 0.041595458984375, 0.049713134765625, 0.0252838134765625, 0.0169677734375, -0.009552001953125, 0.0246124267578125, -0.0303497314453125, -0.0360107421875, 0.03082275390625, -0.05615234375, -0.06884765625, 0.0572509765625, -0.06854248046875, -0.019256591796875, 0.0193939208984375, -0.029632568359375, 0.0037384033203125, -0.008819580078125, 0.027984619140625, -0.0032405853271484375, -0.006256103515625, 0.019378662109375, -0.0018768310546875, 0.032257080078125, 0.0020008087158203125, 0.0362548828125, 0.00795745849609375, -0.043975830078125, 0.030120849609375, -0.0132598876953125, -0.05194091796875, 0.03070068359375, 0.0004024505615234375, 0.05670166015625, 0.0006737709045410156, 0.015228271484375, 0.054473876953125, 0.0068206787109375, -0.0214691162109375, 0.04205322265625, 0.00038909912109375, -0.043212890625, 0.003631591796875, -0.0072174072265625, -0.0096588134765625, -0.027099609375, 0.0255126953125, -0.0182952880859375, 0.02685546875, -0.0308380126953125, 0.0104217529296875, -0.0233001708984375, 0.0082550048828125, 0.01360321044921875, -0.01445770263671875, 0.018707275390625, 0.02447509765625, -0.0003006458282470703, -0.0236053466796875, -0.037933349609375, -0.0189666748046875, -0.044036865234375, -0.03399658203125, 0.10614013671875, -0.0024051666259765625, 0.053253173828125, 0.0199127197265625, -0.096435546875, 0.0526123046875, 0.0294342041015625, -0.0038318634033203125, 0.005992889404296875, -0.0133056640625, -0.007007598876953125, 0.007488250732421875, 0.01702880859375, -0.0150604248046875, -0.0066070556640625, 0.01557159423828125, -0.0011205673217773438, -0.0088653564453125, 0.01389312744140625, -0.0018415451049804688, -0.07147216796875, -0.00020706653594970703, 0.03570556640625, 0.0212860107421875, -0.01476287841796875, -0.0367431640625, -0.016265869140625, -0.007171630859375, -0.052642822265625, -0.012237548828125, 0.00435638427734375, 0.0046234130859375, 0.01702880859375, -0.0041656494140625, -0.00611114501953125, 0.0284576416015625, -0.00588226318359375, 0.0007390975952148438, 0.02801513671875, -0.021392822265625, -0.039459228515625, 0.0052642822265625, 0.0098419189453125, 0.007266998291015625, 0.0238189697265625, 0.0181427001953125, 0.009429931640625, -0.00234222412109375, -0.0217742919921875, -0.0010118484497070312, -0.0164642333984375, -0.00817108154296875, -0.02197265625, 0.02545166015625, -0.037322998046875, 0.006134033203125, 0.0254974365234375, 0.0033168792724609375, -0.033447265625, -0.00868988037109375, -0.006160736083984375, 0.01025390625, -0.006015777587890625, -0.019317626953125, -0.0033779144287109375, 0.006435394287109375, -0.00244903564453125, -0.038177490234375, -0.03448486328125, 0.0491943359375, 0.023345947265625, -0.0255584716796875, 0.00275421142578125, 0.035858154296875, 0.0082244873046875, -0.0406494140625, 0.0352783203125, -0.020599365234375, -0.0180206298828125, -0.004703521728515625, 0.02703857421875, 0.0023651123046875, -0.00965118408203125, 0.0238037109375, 0.054534912109375, -0.007328033447265625, 0.011505126953125, 0.00893402099609375, -0.017852783203125, 0.0174407958984375, -0.0030269622802734375, -0.006977081298828125, 0.0149993896484375, -0.06890869140625, -0.01363372802734375, 0.01544952392578125, 0.046539306640625, -0.0213775634765625, -0.029144287109375, 0.00362396240234375, 0.032928466796875, -0.004405975341796875, -0.02099609375, -0.004039764404296875, -0.042724609375, -0.01197052001953125, -0.002765655517578125, -0.021148681640625, 0.0070953369140625, 0.0168914794921875, -0.002513885498046875, -0.0472412109375, -0.00826263427734375, 0.0038127899169921875, -0.047607421875, -0.0178680419921875, -0.001220703125, 0.003498077392578125, 0.005542755126953125, -0.00989532470703125, 0.07525634765625, 0.01483154296875, -0.03253173828125, 0.01049041748046875, 0.029693603515625, 0.00937652587890625, 0.0197296142578125, -0.01641845703125, -0.032867431640625, 0.006099700927734375, -0.0010023117065429688, -0.026092529296875, -0.0164947509765625, 0.0196075439453125, -0.01114654541015625, 0.005336761474609375, 0.0012845993041992188, -0.004199981689453125, -0.0251312255859375, -0.02740478515625, -0.03619384765625, -0.035125732421875, -0.08697509765625, -0.042266845703125, 0.0277252197265625, -0.037384033203125, 0.015228271484375, 0.0217437744140625, -0.0234527587890625, -0.0196990966796875, 0.0162200927734375, 0.042083740234375, 0.0200042724609375, -0.00771331787109375, -0.00658416748046875, 0.0016508102416992188, 0.0203704833984375, 0.026336669921875, -0.027862548828125, 0.025238037109375, -0.01490020751953125, 0.0088653564453125, 0.0031585693359375, 0.0282135009765625, -0.011383056640625, 0.039337158203125, -0.056884765625, -0.09521484375, 0.063720703125, -0.056884765625, -0.01322174072265625, -0.036529541015625, -0.0227203369140625, 0.0179290771484375, 0.13916015625, -0.0167236328125, -0.0277099609375, 0.0283203125, 0.03253173828125, -0.042266845703125, -0.01265716552734375, -0.03070068359375, -0.0218658447265625, 0.015960693359375, -0.023101806640625, -0.03656005859375, -0.00867462158203125, 0.048675537109375, -0.1055908203125, 0.06182861328125, -0.04071044921875, 0.031707763671875, -0.0452880859375, 0.040069580078125, 0.03826904296875, -0.0020618438720703125, 0.02313232421875, -0.0232086181640625, -0.0450439453125, 0.0294647216796875, -0.00893402099609375, 0.03045654296875, -0.01169586181640625, -0.0007700920104980469, 0.01549530029296875, -0.007122039794921875, 0.01727294921875, -0.0133819580078125, 0.05279541015625, -0.01480865478515625, 0.0321044921875, -0.0131988525390625, -0.02752685546875, 0.0036163330078125, -0.031158447265625, -0.00782012939453125, -0.0083160400390625, 0.01470184326171875, 0.020782470703125, -0.0193023681640625, -0.0165557861328125, 0.0023193359375, -0.02374267578125, -0.07757568359375, -0.04449462890625, -0.049713134765625, -0.01525115966796875, -0.00118255615234375, -0.034423828125, -0.03155517578125, -0.07098388671875, 0.00540924072265625, -0.087646484375, -0.013916015625, 0.03436279296875, 0.09100341796875, 0.0245208740234375, 0.0256805419921875, -0.005680084228515625, 0.032501220703125, 0.0309295654296875, 0.01056671142578125, -0.03765869140625, -0.055328369140625, -0.0472412109375, 0.0330810546875, -0.007137298583984375, 0.004138946533203125, 0.015655517578125, 0.040924072265625, -0.00592803955078125, -0.0269317626953125, 0.0163421630859375, -0.0295257568359375, -0.0350341796875, 0.00965118408203125, -0.00856781005859375, -0.023651123046875, 0.0154571533203125, 0.0274200439453125, -0.0394287109375, 0.04736328125, 0.0012922286987304688, -0.0116424560546875, -0.01244354248046875, -0.0020542144775390625, 0.021697998046875, 0.0501708984375, -0.00667572021484375, 0.004116058349609375, 0.007106781005859375, -0.0019121170043945312, -0.037841796875, -0.031005859375, -0.01291656494140625, 0.0157623291015625, -0.01354217529296875, 0.01250457763671875, -0.01294708251953125, -0.012359619140625, 0.0269317626953125, 0.005138397216796875, -0.0313720703125, -0.0230560302734375, -0.0129241943359375, -0.0285186767578125, -0.00783538818359375, -0.042144775390625, 0.054290771484375, 0.0276336669921875, 0.0217437744140625, 0.031463623046875, -0.0552978515625, -0.0258941650390625, -0.035003662109375, -0.02386474609375, -0.0027790069580078125, -0.00940704345703125, 0.0109100341796875, 0.041046142578125, 0.00501251220703125, 0.0200042724609375, -0.0108489990234375, 0.054351806640625, 0.0263824462890625, 0.01338958740234375, -0.00534820556640625, 0.016632080078125, 0.0148162841796875, -0.0233306884765625, -0.0112457275390625, -0.00921630859375, -0.0172576904296875, -0.003192901611328125, -0.00656890869140625, -0.0164794921875, -0.0014085769653320312, 0.032989501953125, 0.011993408203125, -0.0294342041015625, -0.007465362548828125, 0.01024627685546875, 0.0195770263671875, -0.037353515625, -0.0230712890625, 0.01337432861328125, 0.04229736328125, -0.010498046875, 0.012054443359375, -0.00682830810546875, 0.018463134765625, 0.0013713836669921875, 0.00040078163146972656, 0.011444091796875, 0.007434844970703125, 0.0261688232421875, -0.0197601318359375, 0.0126953125, -0.0273895263671875, 0.02130126953125, -0.056427001953125, -0.0003273487091064453, 0.07672119140625, -0.023773193359375, 0.0256500244140625, -0.006725311279296875, -0.036590576171875, -0.0193328857421875, 0.0259552001953125, 0.034912109375, 0.02459716796875, -0.04901123046875, -0.023040771484375, -0.047210693359375, -0.0335693359375, -0.0526123046875, -0.017547607421875, -0.030242919921875, 0.0293731689453125, -0.004608154296875, 0.01261138916015625, -0.0166168212890625, -0.0229034423828125, -0.02642822265625, 0.007160186767578125, 0.01378631591796875, -0.021697998046875, -0.03582763671875, 0.056884765625, 0.024627685546875, 0.033172607421875, 0.004741668701171875, 0.01189422607421875, -0.00926971435546875, -0.00850677490234375, 0.0025119781494140625, -0.04693603515625, -0.04840087890625, -0.0194549560546875, -0.01751708984375, 0.0762939453125, 0.069091796875, -0.0013742446899414062, 0.01128387451171875, -0.019866943359375, 0.01357269287109375, -0.0168609619140625, 0.0003273487091064453, -0.04388427734375, -0.0162353515625, 0.01412200927734375, -0.040130615234375, 0.0309600830078125, 0.0159149169921875, 0.01395416259765625, 0.0286865234375, -0.042724609375, 0.044525146484375, 0.0201263427734375, -0.00887298583984375, 0.0362548828125, 0.0653076171875, -0.01018524169921875, 0.046905517578125, 0.03582763671875, 0.00937652587890625, 0.0222320556640625, 0.0408935546875, -0.023101806640625, -0.0513916015625, 0.0173187255859375, 0.0036716461181640625, -0.0240020751953125, 0.0258941650390625, -0.0247955322265625, 0.048614501953125, 0.12249755859375, 0.1158447265625, -0.170654296875, 0.0272369384765625, 0.0404052734375, -0.0216064453125, -0.0160980224609375, -0.018890380859375, 0.0032291412353515625, -0.032562255859375, 0.0802001953125, 0.021148681640625, 0.003925323486328125, 0.034942626953125, -0.0112457275390625, 0.002796173095703125, 0.0246124267578125, 0.00812530517578125, -0.002838134765625, -0.0458984375, -0.0244598388671875, 0.047637939453125, -0.0118560791015625, -0.0243682861328125, 0.0002703666687011719, 0.0234832763671875, -0.0163116455078125, -0.019134521484375, 0.034149169921875, -0.0163116455078125, 0.0309295654296875, 0.0291290283203125, -0.01171112060546875, -0.019622802734375, 0.01922607421875, -0.0291748046875, 0.0274505615234375, -0.0038204193115234375, -0.03753662109375, -0.01157379150390625, -0.035491943359375, 0.012298583984375, 0.0206146240234375, -0.0670166015625, 0.01641845703125, -0.038818359375, 0.01413726806640625, 0.01134490966796875, 0.0220947265625, -0.0035228729248046875, -0.0010347366333007812, -0.0291290283203125, 0.057159423828125, -0.007007598876953125, -0.0192108154296875, 0.0016775131225585938, 0.005878448486328125, 0.01568603515625, 0.047576904296875, 0.004123687744140625, 0.006488800048828125, 0.002124786376953125, 0.01090240478515625, -0.052459716796875, 0.0955810546875, -0.035491943359375, 0.0146636962890625, -0.00856781005859375, 0.04522705078125, 0.031646728515625, 0.039215087890625, -0.04327392578125, 0.074462890625, -0.002960205078125, 0.03167724609375, -0.03662109375, -0.0003781318664550781, 0.004642486572265625, -0.0033283233642578125, 0.032135009765625, 0.002086639404296875, -0.03271484375, 0.0302886962890625, 0.082763671875, 0.00453948974609375, 0.0006532669067382812, 0.050201416015625, 0.0023326873779296875, -0.03497314453125, 0.037322998046875, -0.0266265869140625, 0.00667572021484375, 0.0022945404052734375, 0.0230865478515625, 0.0089111328125, -0.0018224716186523438, -0.0176239013671875, -0.0357666015625, 0.0165863037109375, -0.01546478271484375, -0.0205535888671875, -0.006748199462890625, -0.018798828125, 0.0200347900390625, -0.033233642578125, -0.01345062255859375, 0.00557708740234375, 0.019134521484375, -0.00797271728515625, 0.0384521484375, 0.005657196044921875, -0.005527496337890625, 0.0009317398071289062, 0.018768310546875, 0.046051025390625, -0.04705810546875, -0.01517486572265625, 0.006061553955078125, -0.04400634765625, 0.036651611328125, -0.0166473388671875, 0.028167724609375, -0.046478271484375, -0.038787841796875, 0.01306915283203125, 0.035003662109375, -0.0012655258178710938, 0.038116455078125, -0.0017652511596679688, -0.00910186767578125, 0.030853271484375, -0.05908203125, 0.05560302734375, -0.036407470703125, -0.06866455078125, -0.00983428955078125, 0.0279693603515625, 0.00775909423828125, 0.0270843505859375, 0.0087127685546875, 0.07537841796875, -0.08868408203125, 0.0026702880859375, -0.006587982177734375, 0.0222625732421875, 0.006549835205078125, 0.033050537109375, -0.04156494140625, 0.0560302734375, -0.06561279296875, -0.00478363037109375, 0.0006299018859863281, 0.0084991455078125, 0.02496337890625, -0.0310211181640625, -0.01230621337890625, -0.0297088623046875, 0.0304718017578125, 0.025482177734375, -0.01534271240234375, 0.04058837890625, 0.021728515625, 0.05352783203125, 0.04620361328125, -0.0187835693359375, 0.061431884765625, -0.005855560302734375, -0.030059814453125, -0.02880859375, -0.040496826171875, -0.006160736083984375, -0.0135345458984375, 0.01555633544921875, 0.01160430908203125, -0.00437164306640625, -0.052581787109375, 0.0095062255859375, -0.02239990234375, -0.0804443359375, 0.04302978515625, -0.035369873046875, 0.10333251953125, -0.038604736328125, -0.04150390625, -0.0308990478515625, -0.0219573974609375, 0.0909423828125, -0.0399169921875, -0.00235748291015625, 0.0102996826171875, 0.053497314453125, -0.00860595703125, 0.02020263671875, 0.000001430511474609375, -0.0352783203125, 0.004932403564453125, -0.047821044921875, 0.0111083984375, -0.0166778564453125, -0.01036834716796875, -0.0155029296875, -0.0228424072265625, 0.07415771484375, 0.039031982421875, 0.0428466796875, -0.0300750732421875, 0.043487548828125, 0.018707275390625, 0.011566162109375, 0.01953125, -0.0050506591796875, 0.03790283203125, -0.011688232421875, -0.0198211669921875, -0.0021190643310546875, 0.01824951171875, 0.004741668701171875, 0.016204833984375, -0.059326171875, -0.016326904296875, -0.0224151611328125, 0.01534271240234375, 0.0236358642578125, 0.061004638671875, -0.01340484619140625, -0.049407958984375, -0.035247802734375, 0.005809783935546875, 0.005420684814453125, 0.0341796875, 0.0019121170043945312, 0.04931640625, -0.0282440185546875, 0.0099334716796875, 0.0022945404052734375, -0.034393310546875, -0.0019102096557617188, 0.01470947265625, -0.0312347412109375, 0.007335662841796875, 0.0142974853515625, -0.015350341796875, -0.006320953369140625, 0.01151275634765625, 0.006458282470703125, 0.02886962890625, -0.053131103515625, 0.0039825439453125, 0.05316162109375, 0.03057861328125, -0.020294189453125, 0.010833740234375, 0.0282745361328125, -0.0304718017578125, 0.0225067138671875, 0.013946533203125, -0.015472412109375, -0.00421905517578125, 0.0009250640869140625, -0.01324462890625, 0.0345458984375, -0.0295257568359375, 0.03271484375, -0.0007953643798828125, 0.015411376953125, -0.0054168701171875, -0.02227783203125, 0.0150146484375, -0.0224609375, 0.022735595703125, -0.01277923583984375, -0.0074920654296875, -0.01084136962890625, -0.02386474609375, -0.015625, 0.0056915283203125, -0.04052734375, 0.0036449432373046875, -0.004604339599609375, 0.00615692138671875, 0.0149993896484375, -0.0224456787109375, -0.04840087890625, -0.00015842914581298828, 0.002811431884765625, 0.03887939453125, 0.0078125, -0.0217437744140625, -0.01641845703125, 0.0079498291015625, 0.005298614501953125, -0.03607177734375, 0.00601959228515625, -0.043426513671875, -0.00934600830078125, -0.0274200439453125, -0.0263671875, -0.01690673828125, -0.059478759765625, -0.042083740234375, 0.034637451171875, 0.01385498046875, -0.028472900390625, -0.04425048828125, -0.00701904296875, -0.0340576171875, 0.06585693359375, -0.0038204193115234375, -0.00527191162109375, -0.01285552978515625, 0.0478515625, -0.00992584228515625, 0.027313232421875, -0.006557464599609375, -0.0287322998046875, -0.0205535888671875, 0.0017576217651367188, 0.013702392578125, -0.0003762245178222656, 0.027496337890625, -0.02716064453125, 0.027374267578125, 0.0280609130859375, -0.035491943359375, 0.00887298583984375, 0.00402069091796875, -0.0301666259765625, -0.004058837890625, 0.00580596923828125, 0.00846099853515625, -0.00716400146484375, 0.0204010009765625, 0.028076171875, -0.0026340484619140625, -0.007709503173828125, 0.02691650390625, 0.0250244140625, -0.035858154296875, 0.0181732177734375, 0.0013780593872070312, 0.0031642913818359375, 0.011871337890625, -0.0187530517578125, -0.04364013671875, -0.003261566162109375, 0.042266845703125, -0.06390380859375, 0.0172882080078125, -0.0024871826171875, -0.039031982421875, -0.033294677734375, 0.007137298583984375, 0.00910186767578125, -0.0229339599609375, -0.01151275634765625, -0.007640838623046875, 0.01100921630859375, -0.021484375, -0.005481719970703125, -0.0124664306640625, 0.00701141357421875, -0.03765869140625, 0.015777587890625, -0.02105712890625, 0.043792724609375, -0.0377197265625, 0.00251007080078125, -0.0297393798828125, 0.037811279296875, 0.02569580078125, 0.03619384765625, -0.0041961669921875, 0.04547119140625, 0.042083740234375, 0.0233154296875, -0.006435394287109375, 0.0081024169921875, -0.016845703125, 0.053192138671875, -0.025787353515625, -0.004474639892578125, 0.00878143310546875, -0.0489501953125, 0.01313018798828125, -0.029327392578125, 0.004886627197265625, -0.0499267578125, 0.01064300537109375, -0.004245758056640625, -0.0019397735595703125, 0.0183868408203125 ]
88a1f4ad1f077ffceaa91d7bfd5d4edcce64bf52
Wordpress Stackexchange Q: How to add the author search in the default wordpress search? I would like to include the author search in the default WordPress search. Is there any way of doing this? right know it retrieves all the posts with the permalinks and author names. same way i need the authors search. is it possible? A: This plugin called "WP Extended Search" looks like it would do the trick.: https://wordpress.org/plugins/wp-extended-search/ There's also this answer that may work for you: Possible to search by author name with default WordPress search function?
Q: How to add the author search in the default wordpress search? I would like to include the author search in the default WordPress search. Is there any way of doing this? right know it retrieves all the posts with the permalinks and author names. same way i need the authors search. is it possible? A: This plugin called "WP Extended Search" looks like it would do the trick.: https://wordpress.org/plugins/wp-extended-search/ There's also this answer that may work for you: Possible to search by author name with default WordPress search function?
wordpress
{ "language": "en", "length": 90, "provenance": "stackexchange_00019.jsonl.gz:441646", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131340" }
[ 0.051910400390625, 0.008026123046875, 0.038726806640625, -0.0084381103515625, 0.004322052001953125, -0.006732940673828125, 0.0447998046875, -0.0472412109375, -0.0072479248046875, 0.0394287109375, -0.0279693603515625, 0.03271484375, -0.0290069580078125, 0.004169464111328125, -0.03936767578125, -0.03472900390625, 0.0218658447265625, -0.00530242919921875, 0.03033447265625, -0.01229095458984375, 0.0304412841796875, -0.001750946044921875, 0.0171966552734375, 0.0193939208984375, 0.0308837890625, 0.007007598876953125, 0.07666015625, -0.032745361328125, 0.03997802734375, -0.005397796630859375, 0.027069091796875, -0.044921875, -0.006572723388671875, 0.0214080810546875, 0.0287017822265625, 0.0421142578125, -0.004848480224609375, 0.045623779296875, 0.048492431640625, -0.0006489753723144531, 0.0184478759765625, -0.0017690658569335938, -0.06329345703125, 0.059967041015625, -0.047637939453125, -0.0911865234375, 0.0380859375, -0.0256500244140625, 0.0254669189453125, -0.01549530029296875, -0.0305633544921875, 0.0183563232421875, -0.00142669677734375, -0.07989501953125, -0.01473236083984375, -0.035888671875, 0.06549072265625, -0.02099609375, 0.044586181640625, -0.076416015625, -0.05072021484375, -0.01422882080078125, 0.04595947265625, 0.031219482421875, 0.01146697998046875, -0.00904083251953125, 0.00018298625946044922, 0.028045654296875, -0.006046295166015625, 0.0133514404296875, 0.0197601318359375, -0.0260772705078125, -0.023529052734375, 0.0235443115234375, -0.03118896484375, -0.0543212890625, 0.004245758056640625, -0.0638427734375, 0.0228424072265625, 0.045623779296875, -0.0184173583984375, 0.000008225440979003906, 0.01519775390625, -0.06927490234375, 0.0225677490234375, -0.04620361328125, -0.00861358642578125, 0.0157318115234375, -0.0474853515625, -0.0101165771484375, -0.020751953125, -0.04571533203125, -0.05718994140625, 0.0096588134765625, 0.00930023193359375, -0.00907135009765625, 0.005214691162109375, 0.062164306640625, -0.01067352294921875, 0.048431396484375, -0.0179443359375, -0.019561767578125, 0.024566650390625, -0.06573486328125, -0.01378631591796875, 0.037933349609375, 0.0282440185546875, 0.051361083984375, 0.013824462890625, 0.031402587890625, 0.01131439208984375, -0.034576416015625, 0.01690673828125, -0.01033782958984375, -0.013336181640625, 0.01358795166015625, -0.00567626953125, 0.046905517578125, 0.00951385498046875, 0.046966552734375, 0.0219879150390625, 0.0233306884765625, -0.037933349609375, -0.00021350383758544922, -0.0145721435546875, -0.04541015625, -0.02386474609375, 0.0287628173828125, -0.0252227783203125, 0.00007653236389160156, -0.01904296875, 0.0308380126953125, 0.057098388671875, 0.01143646240234375, -0.01763916015625, -0.0076446533203125, 0.03594970703125, 0.01125335693359375, 0.021697998046875, -0.01092529296875, 0.0222320556640625, -0.01123809814453125, -0.003665924072265625, 0.036895751953125, 0.034820556640625, -0.01291656494140625, 0.028564453125, 0.054107666015625, -0.003803253173828125, -0.00266265869140625, 0.016021728515625, 0.048797607421875, 0.0306854248046875, -0.01016998291015625, -0.0054168701171875, -0.0120697021484375, 0.01143646240234375, -0.019805908203125, -0.0215301513671875, -0.0090789794921875, 0.0014829635620117188, -0.00276947021484375, -0.0098876953125, -0.009552001953125, -0.0230865478515625, -0.01401519775390625, 0.0014371871948242188, 0.00598907470703125, 0.0081939697265625, -0.0262451171875, -0.01312255859375, -0.006000518798828125, 0.0202484130859375, 0.0178680419921875, -0.0009870529174804688, 0.0223846435546875, 0.00911712646484375, 0.0300445556640625, -0.005771636962890625, 0.08477783203125, 0.042510986328125, -0.0172576904296875, 0.07000732421875, -0.026702880859375, -0.051361083984375, 0.047943115234375, 0.00901031494140625, 0.095703125, 0.0009217262268066406, 0.01030731201171875, 0.01513671875, 0.004924774169921875, -0.0582275390625, -0.0008292198181152344, -0.02276611328125, 0.01165771484375, 0.0019855499267578125, -0.0015316009521484375, -0.0033416748046875, 0.0321044921875, 0.01361846923828125, -0.0096893310546875, 0.034637451171875, -0.01416778564453125, -0.04083251953125, 0.01971435546875, -0.0266876220703125, 0.0215606689453125, 0.03802490234375, -0.0156097412109375, 0.00015807151794433594, -0.0082855224609375, -0.006195068359375, -0.048980712890625, -0.0628662109375, 0.038818359375, -0.009521484375, 0.02459716796875, 0.020782470703125, 0.0017290115356445312, 0.0197601318359375, -0.025054931640625, 0.031524658203125, 0.01345062255859375, 0.0439453125, -0.037994384765625, -0.006175994873046875, -0.039794921875, 0.0255126953125, -0.006900787353515625, -0.042724609375, 0.041015625, 0.056854248046875, 0.03753662109375, -0.0266571044921875, -0.0004591941833496094, 0.00951385498046875, -0.0177459716796875, -0.0027790069580078125, 0.044464111328125, 0.01337432861328125, 0.01082611083984375, -0.0025119781494140625, 0.0186614990234375, 0.035675048828125, -0.00567626953125, 0.011138916015625, 0.007465362548828125, 0.0290069580078125, 0.08258056640625, -0.0294036865234375, -0.00487518310546875, -0.0060272216796875, -0.0771484375, 0.005542755126953125, 0.036956787109375, 0.005245208740234375, 0.007659912109375, -0.0517578125, 0.00586700439453125, 0.01019287109375, -0.062286376953125, -0.046051025390625, -0.01264190673828125, -0.00740814208984375, -0.00240325927734375, -0.00011736154556274414, 0.006595611572265625, -0.038726806640625, 0.00736236572265625, 0.0140380859375, 0.006557464599609375, -0.005584716796875, 0.04022216796875, 0.016693115234375, -0.00470733642578125, -0.0039520263671875, -0.0085601806640625, -0.0254974365234375, 0.01355743408203125, -0.006900787353515625, -0.0014238357543945312, -0.004421234130859375, -0.0011243820190429688, -0.0144195556640625, -0.030670166015625, 0.027679443359375, 0.02716064453125, -0.0195465087890625, -0.021331787109375, 0.01715087890625, 0.0217437744140625, -0.0227813720703125, 0.0194549560546875, -0.00354766845703125, -0.0210418701171875, -0.0308990478515625, -0.0377197265625, 0.045562744140625, -0.039154052734375, 0.01641845703125, 0.06640625, -0.00975799560546875, 0.03961181640625, -0.0015687942504882812, -0.0245208740234375, -0.013153076171875, 0.0206451416015625, -0.01235198974609375, -0.01103973388671875, -0.050201416015625, 0.0030517578125, 0.0149688720703125, 0.038482666015625, -0.01114654541015625, -0.034698486328125, -0.0163726806640625, 0.0206451416015625, -0.057403564453125, -0.057647705078125, -0.007732391357421875, -0.058807373046875, -0.040283203125, 0.0027408599853515625, -0.04779052734375, 0.01270294189453125, 0.0226593017578125, -0.005237579345703125, 0.025482177734375, -0.04962158203125, -0.072998046875, -0.060028076171875, -0.07879638671875, -0.012542724609375, -0.00707244873046875, -0.00897979736328125, 0.01702880859375, 0.0258941650390625, 0.0186614990234375, -0.02716064453125, 0.01537322998046875, 0.0281219482421875, -0.01428985595703125, -0.0091400146484375, 0.0170135498046875, -0.017181396484375, 0.031463623046875, -0.005519866943359375, 0.024169921875, 0.062042236328125, -0.041290283203125, 0.0018377304077148438, -0.007904052734375, -0.01418304443359375, 0.01593017578125, 0.01995849609375, -0.00643157958984375, -0.0261077880859375, 0.0251312255859375, -0.054107666015625, 0.038177490234375, 0.010101318359375, 0.0037403106689453125, -0.0175933837890625, -0.041412353515625, -0.0287933349609375, -0.017852783203125, 0.004825592041015625, 0.0289306640625, 0.0313720703125, -0.005855560302734375, -0.0092620849609375, -0.006809234619140625, 0.0013227462768554688, 0.0250091552734375, -0.005199432373046875, 0.017120361328125, -0.04638671875, 0.005977630615234375, 0.003589630126953125, -0.0130462646484375, 0.01010894775390625, -0.052764892578125, -0.01000213623046875, -0.0386962890625, 0.0498046875, -0.0186309814453125, 0.004306793212890625, -0.0445556640625, -0.0239715576171875, -0.0229339599609375, 0.08074951171875, -0.01114654541015625, -0.0188751220703125, 0.008209228515625, -0.0015611648559570312, -0.0146026611328125, -0.03045654296875, -0.0195465087890625, -0.0236968994140625, -0.01331329345703125, -0.0021953582763671875, -0.027557373046875, -0.00141143798828125, -0.005279541015625, 0.0450439453125, 0.045257568359375, -0.027069091796875, -0.00148773193359375, -0.0159149169921875, 0.0088043212890625, -0.00321197509765625, -0.01206207275390625, -0.0038356781005859375, 0.0161285400390625, -0.05645751953125, -0.095947265625, -0.021453857421875, -0.0347900390625, 0.08123779296875, -0.01334381103515625, 0.0271148681640625, -0.04925537109375, 0.04998779296875, -0.00533294677734375, 0.040374755859375, 0.0230560302734375, -0.0135040283203125, 0.059722900390625, 0.01100921630859375, 0.0260772705078125, -0.0067291259765625, 0.00323486328125, -0.01032257080078125, -0.02423095703125, -0.01708984375, -0.030364990234375, -0.01032257080078125, -0.003955841064453125, -0.0276031494140625, -0.0180206298828125, -0.05169677734375, -0.007671356201171875, 0.037841796875, -0.0176239013671875, 0.030731201171875, -0.049163818359375, -0.0246429443359375, 0.07012939453125, 0.0307769775390625, 0.000579833984375, -0.0139617919921875, 0.0933837890625, 0.01239776611328125, -0.04205322265625, -0.0227508544921875, -0.0277252197265625, 0.000022470951080322266, -0.0205230712890625, 0.01030731201171875, -0.0276031494140625, -0.004970550537109375, 0.024627685546875, -0.05389404296875, -0.00470733642578125, -0.03033447265625, 0.04150390625, -0.013519287109375, -0.0292816162109375, 0.0232696533203125, -0.02447509765625, 0.04071044921875, 0.02276611328125, -0.0178985595703125, 0.0265960693359375, 0.0254364013671875, 0.00768280029296875, -0.056365966796875, 0.0312042236328125, 0.002025604248046875, -0.001373291015625, -0.0205535888671875, -0.02008056640625, 0.0322265625, 0.0423583984375, -0.0198822021484375, -0.009002685546875, -0.002017974853515625, 0.004261016845703125, -0.00384521484375, -0.0267333984375, 0.007587432861328125, 0.03643798828125, -0.0253448486328125, -0.00556182861328125, 0.01261138916015625, -0.0233306884765625, 0.10986328125, 0.0197601318359375, -0.06170654296875, 0.069091796875, -0.042755126953125, 0.00830841064453125, 0.029052734375, -0.004314422607421875, 0.035919189453125, 0.039520263671875, 0.007602691650390625, -0.0020618438720703125, -0.02276611328125, 0.03485107421875, -0.0384521484375, 0.0439453125, -0.0247955322265625, 0.03369140625, 0.009674072265625, 0.09368896484375, -0.0355224609375, 0.0550537109375, -0.005828857421875, -0.0196533203125, -0.01873779296875, 0.03375244140625, 0.01995849609375, -0.0096588134765625, 0.0222015380859375, 0.002414703369140625, 0.0484619140625, -0.0290985107421875, 0.010528564453125, -0.02508544921875, 0.0239410400390625, 0.0017757415771484375, -0.0216217041015625, 0.0601806640625, -0.03594970703125, -0.0121917724609375, -0.0225982666015625, 0.0032596588134765625, 0.00039005279541015625, -0.0106658935546875, -0.0184326171875, 0.003246307373046875, 0.0104217529296875, -0.021240234375, -0.01556396484375, -0.044158935546875, 0.00323486328125, -0.003093719482421875, -0.00063323974609375, 0.0003113746643066406, -0.00701904296875, -0.0207366943359375, -0.016845703125, 0.0178070068359375, -0.019775390625, -0.01033782958984375, -0.046630859375, -0.006145477294921875, 0.0743408203125, 0.003086090087890625, 0.0374755859375, -0.031494140625, -0.01201629638671875, 0.048248291015625, -0.0038013458251953125, 0.0243377685546875, -0.0178680419921875, -0.0256500244140625, 0.00159454345703125, -0.0419921875, -0.0266265869140625, 0.004695892333984375, 0.0173492431640625, -0.048828125, -0.01132965087890625, 0.01338958740234375, 0.0042266845703125, -0.00600433349609375, -0.0231475830078125, -0.004840850830078125, 0.019134521484375, 0.0181427001953125, -0.01250457763671875, -0.006183624267578125, 0.042633056640625, -0.004947662353515625, 0.014068603515625, 0.0160064697265625, 0.0246124267578125, -0.0078125, -0.027496337890625, 0.0178375244140625, -0.03692626953125, -0.04736328125, 0.006664276123046875, -0.09039306640625, 0.03265380859375, 0.044952392578125, -0.00916290283203125, -0.0225830078125, 0.0120849609375, 0.0018835067749023438, 0.0022792816162109375, -0.0014123916625976562, 0.0517578125, -0.01253509521484375, 0.0175323486328125, 0.0272216796875, 0.06103515625, -0.052032470703125, -0.032379150390625, 0.00476837158203125, 0.0003466606140136719, -0.002666473388671875, 0.0023975372314453125, -0.052032470703125, 0.06390380859375, 0.04339599609375, -0.005702972412109375, 0.0156707763671875, 0.0323486328125, 0.009979248046875, -0.0312347412109375, 0.00562286376953125, -0.047515869140625, 0.0206146240234375, 0.037445068359375, 0.006122589111328125, 0.0038166046142578125, 0.028167724609375, -0.00281524658203125, -0.0252227783203125, -0.00676727294921875, 0.00653076171875, -0.0151824951171875, 0.002201080322265625, 0.006053924560546875, 0.0009484291076660156, 0.00908660888671875, 0.0284881591796875, -0.01161956787109375, -0.0235748291015625, 0.039215087890625, -0.03900146484375, 0.0089111328125, 0.01611328125, 0.0013074874877929688, -0.005565643310546875, -0.047698974609375, 0.0213623046875, -0.0006957054138183594, -0.0408935546875, 0.04766845703125, 0.01468658447265625, -0.004291534423828125, -0.01800537109375, 0.01294708251953125, 0.01031494140625, 0.026611328125, -0.0271759033203125, 0.05340576171875, -0.048675537109375, 0.027618408203125, 0.01531982421875, 0.0119171142578125, 0.03778076171875, 0.03863525390625, 0.01023101806640625, 0.00261688232421875, 0.01019287109375, 0.0030002593994140625, 0.0258636474609375, -0.057830810546875, -0.006591796875, 0.047210693359375, -0.0535888671875, 0.03173828125, 0.01763916015625, -0.027099609375, 0.002605438232421875, -0.0254058837890625, 0.057373046875, -0.040313720703125, -0.0096893310546875, 0.00876617431640625, -0.0024318695068359375, 0.01222991943359375, 0.01314544677734375, 0.01131439208984375, -0.0298919677734375, -0.003170013427734375, 0.00911712646484375, -0.01593017578125, 0.030670166015625, 0.000370025634765625, -0.02020263671875, 0.038818359375, -0.0082550048828125, -0.013580322265625, 0.0155029296875, 0.0350341796875, 0.0018596649169921875, 0.023101806640625, -0.006481170654296875, 0.045379638671875, -0.01666259765625, 0.0238494873046875, -0.046844482421875, -0.031280517578125, 0.0023517608642578125, 0.06597900390625, 0.06494140625, -0.00493621826171875, 0.0017185211181640625, 0.00013780593872070312, 0.059783935546875, 0.01611328125, -0.0280303955078125, 0.024566650390625, 0.03955078125, 0.001953125, 0.045166015625, 0.0330810546875, 0.046600341796875, -0.007274627685546875, -0.007717132568359375, 0.045623779296875, 0.022216796875, 0.054107666015625, -0.0213623046875, -0.018829345703125, 0.0083770751953125, -0.035064697265625, 0.014251708984375, -0.04815673828125, -0.01071929931640625, 0.07080078125, 0.0579833984375, -0.046356201171875, -0.064453125, -0.021453857421875, 0.047576904296875, 0.0238800048828125, 0.0223236083984375, 0.03009033203125, 0.0186309814453125, 0.0126953125, -0.006259918212890625, 0.024261474609375, 0.01198577880859375, -0.02105712890625, 0.022979736328125, -0.0186920166015625, 0.0117950439453125, -0.0546875, 0.0010499954223632812, 0.0311126708984375, 0.034149169921875, -0.03338623046875, -0.034576416015625, 0.006793975830078125, -0.0016260147094726562, -0.0030078887939453125, -0.016357421875, -0.0183258056640625, 0.029205322265625, 0.049957275390625, -0.034088134765625, -0.004894256591796875, -0.00237274169921875, 0.0174560546875, -0.0140533447265625, -0.0205841064453125, 0.00920867919921875, 0.0008492469787597656, -0.011962890625, 0.0059661865234375, -0.02880859375, 0.01520538330078125, 0.01181793212890625, 0.01207733154296875, -0.01445770263671875, 0.00902557373046875, -0.034393310546875, 0.024200439453125, -0.0106964111328125, 0.055816650390625, -0.046783447265625, 0.01309967041015625, -0.01486968994140625, 0.03338623046875, 0.040802001953125, 0.07293701171875, 0.048980712890625, -0.0163116455078125, -0.021026611328125, 0.0193634033203125, 0.00801849365234375, -0.05010986328125, -0.00792694091796875, -0.036346435546875, 0.056396484375, 0.07037353515625, 0.0233306884765625, -0.007495880126953125, 0.00957489013671875, 0.072021484375, 0.01194000244140625, -0.0478515625, 0.0207977294921875, -0.067626953125, 0.0296630859375, 0.020294189453125, 0.057159423828125, 0.037994384765625, -0.08685302734375, 0.006137847900390625, -0.043426513671875, -0.07855224609375, 0.038848876953125, 0.04779052734375, -0.01522064208984375, -0.016632080078125, 0.026031494140625, -0.0177001953125, -0.008392333984375, -0.005901336669921875, 0.0213470458984375, 0.031524658203125, 0.0170745849609375, 0.0126953125, -0.0562744140625, -0.0304718017578125, -0.00257110595703125, 0.005405426025390625, 0.007244110107421875, 0.0241241455078125, 0.0224609375, -0.00797271728515625, -0.002407073974609375, 0.0046234130859375, -0.021087646484375, -0.0163116455078125, 0.039031982421875, -0.036773681640625, -0.03826904296875, -0.00193023681640625, -0.0667724609375, 0.01300048828125, 0.022735595703125, -0.0222930908203125, 0.0369873046875, -0.0175933837890625, 0.0170135498046875, -0.046600341796875, 0.0013761520385742188, -0.047637939453125, -0.05029296875, -0.04052734375, -0.013763427734375, -0.00563812255859375, -0.0377197265625, -0.006504058837890625, 0.00128936767578125, 0.01177978515625, -0.0238037109375, 0.005702972412109375, 0.00301361083984375, -0.011199951171875, 0.023681640625, 0.0347900390625, -0.031036376953125, -0.014404296875, -0.0185394287109375, 0.01154327392578125, -0.006725311279296875, 0.015045166015625, 0.0034732818603515625, -0.052154541015625, -0.00897979736328125, -0.0352783203125, 0.0396728515625, 0.00463104248046875, 0.003086090087890625, -0.0767822265625, 0.031494140625, -0.0182342529296875, 0.036163330078125, -0.0178070068359375, -0.0013713836669921875, -0.009246826171875, -0.00138092041015625, 0.0008406639099121094, -0.050933837890625, -0.060882568359375, 0.012786865234375, 0.01145172119140625, -0.0220947265625, -0.030975341796875, 0.0226593017578125, -0.0364990234375, 0.013336181640625, -0.03558349609375, -0.04034423828125, 0.0281982421875, 0.0546875, -0.039520263671875, 0.0011415481567382812, -0.032501220703125, -0.05279541015625, -0.041229248046875, 0.02001953125, 0.058685302734375, -0.0197296142578125, 0.00861358642578125, 0.017425537109375, 0.0184783935546875, 0.09442138671875, -0.057373046875, -0.013641357421875, 0.021575927734375, -0.01128387451171875, -0.019378662109375, -0.07745361328125, 0.0192413330078125, -0.07867431640625, -0.0164337158203125, -0.03082275390625, 0.03375244140625, 0.047454833984375, -0.0206756591796875, -0.10198974609375, 0.026214599609375, -0.025146484375, -0.048431396484375, -0.050445556640625, -0.010772705078125, -0.01186370849609375, 0.0172271728515625, -0.000865936279296875, -0.0212554931640625, -0.03167724609375, 0.02679443359375, -0.00933837890625, -0.006809234619140625, 0.0207672119140625, -0.0207977294921875, -0.0243988037109375, 0.0019588470458984375, 0.0191802978515625, -0.034454345703125, 0.05316162109375, -0.043426513671875, 0.043426513671875, 0.053131103515625, -0.0372314453125, -0.015106201171875, -0.0298309326171875, -0.033172607421875, -0.043701171875, -0.027313232421875, 0.005519866943359375, 0.0080108642578125, 0.04913330078125, 0.02679443359375, 0.00476837158203125, -0.0285186767578125, -0.01183319091796875, -0.015625, 0.0374755859375, -0.0024929046630859375, -0.0226898193359375, -0.0101776123046875, 0.0096282958984375, -0.0225067138671875, -0.0292205810546875, -0.005947113037109375, -0.003925323486328125, -0.04058837890625, 0.005916595458984375, 0.0034618377685546875, 0.00794219970703125, -0.05908203125, 0.0304107666015625, 0.02716064453125, -0.028533935546875, -0.02667236328125, 0.01558685302734375, -0.00994110107421875, -0.01074981689453125, -0.01702880859375, -0.0025119781494140625, 0.032440185546875, 0.0207672119140625, -0.0205841064453125, 0.04541015625, -0.0384521484375, 0.061065673828125, 0.01491546630859375, -0.0457763671875, 0.050140380859375, 0.0228424072265625, 0.05950927734375, -0.04547119140625, 0.045562744140625, 0.03033447265625, 0.064208984375, -0.01432037353515625, -0.0203857421875, -0.0218963623046875, 0.034912109375, -0.032440185546875, -0.0009312629699707031, 0.0013599395751953125, -0.02166748046875, 0.014007568359375, 0.0134429931640625, 0.0006761550903320312, -0.0200347900390625, 0.01190185546875, -0.0220184326171875, 0.0007081031799316406, 0.0197601318359375 ]
b4b36c1f301f5e3c9f42269ced16a902350360af
Wordpress Stackexchange Q: Plural Category Base Slug On Category Archive Page I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with this kind of permalink: example.com/resource/test-post I have set the base category slug to be just the category slug. Hence, the category archive for the 'resource' category is like this: example.com/resource/ However, I want the category archive slug to be in plural form like this: example.com/resources/ Any way to achieve this? I have found nothing re. this problem on Google... A: I was able to achieve this effect by updating the category slug. Under posts, go to Categories. Select the category you are working with and update the slug to "resources". Now, if you visit the category archive for Resource, you should see the URL form thus: example.com/resources/.
Q: Plural Category Base Slug On Category Archive Page I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with this kind of permalink: example.com/resource/test-post I have set the base category slug to be just the category slug. Hence, the category archive for the 'resource' category is like this: example.com/resource/ However, I want the category archive slug to be in plural form like this: example.com/resources/ Any way to achieve this? I have found nothing re. this problem on Google... A: I was able to achieve this effect by updating the category slug. Under posts, go to Categories. Select the category you are working with and update the slug to "resources". Now, if you visit the category archive for Resource, you should see the URL form thus: example.com/resources/.
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:441647", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131348" }
[ 0.06402587890625, -0.01239776611328125, -0.0190582275390625, -0.046112060546875, 0.003276824951171875, -0.025421142578125, 0.037750244140625, 0.019744873046875, -0.004390716552734375, 0.0276336669921875, 0.01085662841796875, -0.014556884765625, -0.00555419921875, -0.044281005859375, -0.0094451904296875, -0.006023406982421875, 0.0153961181640625, 0.031982421875, 0.02691650390625, -0.01491546630859375, 0.0127410888671875, -0.000002384185791015625, -0.0169525146484375, 0.0513916015625, 0.0157470703125, -0.01397705078125, 0.026275634765625, -0.0369873046875, -0.00507354736328125, -0.046539306640625, 0.00656890869140625, 0.027008056640625, 0.0259552001953125, -0.044097900390625, 0.0728759765625, 0.04107666015625, 0.0313720703125, -0.020751953125, 0.005016326904296875, 0.0090789794921875, 0.01556396484375, -0.024383544921875, 0.0455322265625, 0.000568389892578125, 0.03173828125, -0.007781982421875, 0.0039520263671875, -0.0780029296875, 0.03594970703125, -0.0256195068359375, -0.00689697265625, 0.04498291015625, 0.0015535354614257812, -0.01499176025390625, -0.016326904296875, 0.006664276123046875, -0.017486572265625, -0.0030460357666015625, 0.0252685546875, -0.02978515625, -0.020721435546875, -0.01190948486328125, 0.0343017578125, 0.0281524658203125, -0.0225372314453125, -0.012298583984375, 0.0249786376953125, 0.0128936767578125, -0.050201416015625, -0.0113983154296875, 0.02459716796875, -0.00970458984375, 0.025054931640625, -0.0009369850158691406, -0.043975830078125, -0.0491943359375, 0.00730133056640625, -0.041748046875, 0.028228759765625, -0.00823211669921875, 0.0230560302734375, -0.0008692741394042969, 0.042816162109375, -0.032989501953125, 0.0134429931640625, -0.01158905029296875, -0.0018291473388671875, -0.0238800048828125, -0.0173187255859375, -0.009124755859375, -0.01412200927734375, -0.045684814453125, -0.00823211669921875, 0.0167999267578125, 0.004131317138671875, -0.02423095703125, 0.01355743408203125, 0.01441192626953125, 0.0214080810546875, 0.00968170166015625, 0.019805908203125, -0.05914306640625, 0.02032470703125, -0.022857666015625, -0.004871368408203125, -0.0025348663330078125, 0.0205078125, 0.04461669921875, 0.06280517578125, 0.027435302734375, -0.007244110107421875, 0.0975341796875, -0.00585174560546875, 0.00241851806640625, -0.03076171875, -0.020416259765625, -0.0396728515625, 0.0049591064453125, -0.01554107666015625, -0.0013885498046875, -0.0038471221923828125, 0.047760009765625, 0.0631103515625, -0.0276336669921875, -0.0142059326171875, 0.017486572265625, 0.01134490966796875, -0.1055908203125, 0.050506591796875, 0.01136016845703125, -0.018890380859375, 0.0238037109375, 0.017303466796875, -0.0191802978515625, -0.0116424560546875, -0.000675201416015625, -0.0036373138427734375, -0.0242156982421875, -0.00704193115234375, -0.0003533363342285156, 0.0394287109375, 0.005710601806640625, 0.032745361328125, 0.0217437744140625, 0.0287017822265625, 0.0002498626708984375, 0.00496673583984375, 0.025177001953125, 0.03570556640625, 0.035308837890625, -0.0289154052734375, -0.0139312744140625, 0.03936767578125, 0.004913330078125, -0.0404052734375, -0.038177490234375, 0.00934600830078125, -0.051483154296875, 0.0008687973022460938, -0.0699462890625, 0.02520751953125, -0.0045928955078125, 0.0305938720703125, -0.00238800048828125, -0.01078033447265625, 0.0014324188232421875, -0.04595947265625, -0.01100921630859375, 0.0157470703125, -0.00605010986328125, 0.025604248046875, 0.01763916015625, -0.03887939453125, -0.0031681060791015625, 0.021240234375, -0.0219268798828125, -0.00557708740234375, -0.011932373046875, -0.00685882568359375, 0.039581298828125, 0.002193450927734375, -0.039215087890625, -0.048858642578125, 0.03167724609375, -0.01410675048828125, 0.01293182373046875, -0.000030100345611572266, 0.0229644775390625, -0.014190673828125, 0.01560211181640625, -0.01389312744140625, 0.043243408203125, -0.04193115234375, 0.0299072265625, 0.0007681846618652344, -0.0280914306640625, -0.0139007568359375, 0.006603240966796875, -0.004741668701171875, -0.0281829833984375, 0.0029144287109375, 0.050750732421875, -0.026763916015625, 0.0289306640625, -0.0029582977294921875, 0.0140533447265625, 0.005908966064453125, 0.0220184326171875, 0.0011186599731445312, 0.04058837890625, 0.0123138427734375, 0.0272674560546875, -0.02655029296875, -0.03228759765625, -0.022491455078125, -0.00015783309936523438, 0.0199127197265625, -0.0626220703125, -0.0136260986328125, -0.03594970703125, -0.0075531005859375, 0.02587890625, -0.05633544921875, 0.046112060546875, 0.029388427734375, -0.0087890625, -0.0126800537109375, -0.0303955078125, -0.0039825439453125, 0.006008148193359375, -0.056884765625, 0.043365478515625, 0.080810546875, 0.041290283203125, -0.037628173828125, 0.0218353271484375, -0.0011339187622070312, 0.0175323486328125, -0.0295867919921875, 0.032867431640625, 0.0171966552734375, -0.0010089874267578125, -0.03375244140625, -0.018951416015625, 0.03558349609375, -0.00823974609375, 0.0035915374755859375, -0.0040435791015625, -0.01488494873046875, 0.02032470703125, 0.03497314453125, 0.02032470703125, 0.01318359375, -0.00750732421875, 0.00006431341171264648, 0.0259246826171875, -0.00313568115234375, -0.045135498046875, 0.022552490234375, -0.0182952880859375, 0.039337158203125, -0.023162841796875, -0.053680419921875, 0.00878143310546875, 0.00531768798828125, 0.029022216796875, 0.01393890380859375, 0.02392578125, -0.023162841796875, 0.014923095703125, 0.00865936279296875, -0.0181427001953125, -0.01116943359375, 0.0426025390625, 0.027801513671875, -0.0078277587890625, -0.039764404296875, -0.005035400390625, -0.0004987716674804688, 0.031005859375, -0.03265380859375, 0.035491943359375, -0.0103302001953125, -0.021392822265625, -0.061981201171875, -0.06768798828125, 0.00970458984375, -0.0145111083984375, -0.024810791015625, -0.0180511474609375, 0.017974853515625, 0.0271148681640625, -0.0011959075927734375, 0.005283355712890625, 0.00344085693359375, -0.00223541259765625, 0.061767578125, -0.038360595703125, 0.035491943359375, -0.03460693359375, 0.06097412109375, 0.05035400390625, -0.021759033203125, 0.0174102783203125, 0.01268768310546875, -0.038482666015625, -0.006694793701171875, 0.0231170654296875, -0.01338958740234375, -0.042755126953125, -0.017120361328125, 0.0061492919921875, 0.024810791015625, 0.01104736328125, 0.0236968994140625, -0.033905029296875, 0.016326904296875, 0.0175933837890625, -0.04681396484375, -0.0694580078125, 0.0189208984375, -0.034637451171875, 0.031097412109375, 0.001888275146484375, -0.00787353515625, -0.046661376953125, 0.03973388671875, 0.00690460205078125, 0.0123291015625, -0.0249176025390625, -0.068603515625, -0.0498046875, -0.0849609375, -0.0294342041015625, 0.0002613067626953125, 0.0080108642578125, 0.00872802734375, 0.0145721435546875, 0.0047149658203125, -0.0263519287109375, 0.026153564453125, 0.043426513671875, -0.01064300537109375, 0.0123138427734375, 0.0079498291015625, -0.01459503173828125, -0.0290374755859375, 0.01058197021484375, 0.0565185546875, 0.025421142578125, -0.0303802490234375, 0.008026123046875, -0.0171661376953125, 0.012542724609375, 0.022369384765625, 0.026123046875, 0.006008148193359375, 0.0237579345703125, 0.0380859375, -0.0120697021484375, -0.0662841796875, -0.0010986328125, -0.06317138671875, 0.00008404254913330078, 0.038726806640625, 0.01462554931640625, -0.046844482421875, 0.037322998046875, 0.008880615234375, -0.0018377304077148438, 0.072021484375, -0.040618896484375, 0.0087890625, -0.02117919921875, -0.044891357421875, -0.04852294921875, 0.033355712890625, -0.027679443359375, 0.0157928466796875, 0.00827789306640625, -0.0192413330078125, -0.001964569091796875, 0.0133819580078125, 0.01480865478515625, -0.054656982421875, 0.021148681640625, -0.09442138671875, -0.0259857177734375, -0.059051513671875, 0.0227203369140625, -0.03192138671875, 0.032562255859375, -0.0582275390625, -0.0249786376953125, -0.004001617431640625, 0.022735595703125, -0.00603485107421875, -0.0181121826171875, 0.002048492431640625, -0.038543701171875, -0.046356201171875, 0.00811767578125, 0.00868988037109375, -0.036956787109375, -0.0005521774291992188, -0.030548095703125, -0.0277557373046875, -0.03607177734375, 0.019439697265625, -0.029937744140625, -0.0077362060546875, -0.024627685546875, -0.00665283203125, -0.050079345703125, 0.0017147064208984375, -0.0264739990234375, -0.08599853515625, -0.02783203125, 0.0517578125, 0.0477294921875, -0.0086822509765625, -0.047943115234375, 0.0031147003173828125, 0.0682373046875, 0.0198516845703125, 0.0287628173828125, 0.017120361328125, -0.01177978515625, 0.01279449462890625, 0.040252685546875, 0.041259765625, -0.0012302398681640625, 0.0078887939453125, -0.02880859375, -0.0350341796875, 0.00267791748046875, -0.0218505859375, 0.00911712646484375, -0.00865936279296875, -0.026153564453125, -0.0572509765625, -0.036865234375, 0.0099334716796875, -0.003997802734375, -0.002132415771484375, 0.01140594482421875, -0.032501220703125, -0.04150390625, 0.04248046875, 0.048431396484375, 0.003070831298828125, 0.0171051025390625, 0.0321044921875, -0.0035457611083984375, -0.045074462890625, -0.06561279296875, 0.020904541015625, 0.028106689453125, -0.00832366943359375, 0.04595947265625, 0.0240936279296875, -0.00827789306640625, 0.058380126953125, -0.00687408447265625, -0.0162811279296875, -0.0252838134765625, 0.067138671875, 0.0007662773132324219, -0.01403045654296875, 0.00453948974609375, -0.035369873046875, 0.0152130126953125, 0.0195159912109375, 0.00011456012725830078, -0.005466461181640625, -0.032440185546875, 0.049102783203125, 0.0175018310546875, 0.00794219970703125, -0.054168701171875, -0.03228759765625, -0.004367828369140625, -0.0229339599609375, 0.056793212890625, 0.049285888671875, -0.01446533203125, 0.045196533203125, 0.04193115234375, -0.006683349609375, -0.06854248046875, -0.0333251953125, -0.04632568359375, 0.01983642578125, -0.062225341796875, -0.0178680419921875, -0.040802001953125, 0.006542205810546875, 0.0029582977294921875, 0.008758544921875, -0.0172882080078125, -0.0144500732421875, -0.0047149658203125, 0.039306640625, 0.0089874267578125, -0.003208160400390625, 0.003742218017578125, 0.00475311279296875, 0.00240325927734375, 0.003204345703125, -0.0256805419921875, -0.0166168212890625, -0.01776123046875, 0.024322509765625, 0.0281982421875, -0.0164642333984375, 0.00902557373046875, 0.01107025146484375, 0.031005859375, -0.0047149658203125, -0.020294189453125, -0.031402587890625, 0.004364013671875, 0.01549530029296875, 0.0411376953125, -0.036865234375, 0.00025272369384765625, -0.00284576416015625, 0.034423828125, -0.038482666015625, -0.00910186767578125, 0.005451202392578125, 0.052001953125, -0.02618408203125, -0.0254669189453125, 0.01558685302734375, -0.045806884765625, -0.0010213851928710938, 0.0133209228515625, -0.050933837890625, -0.0328369140625, -0.0257415771484375, 0.0108795166015625, 0.038848876953125, -0.036041259765625, -0.005176544189453125, 0.01151275634765625, 0.017059326171875, 0.052978515625, 0.004276275634765625, -0.005100250244140625, 0.007709503173828125, 0.0012445449829101562, 0.00513458251953125, -0.0171356201171875, -0.0252227783203125, 0.022064208984375, 0.0180816650390625, -0.0268096923828125, -0.01383209228515625, 0.03289794921875, 0.0159759521484375, 0.037750244140625, -0.01435089111328125, -0.04473876953125, 0.038116455078125, -0.017578125, 0.059234619140625, -0.00197601318359375, -0.03387451171875, 0.004608154296875, -0.0235748291015625, -0.018646240234375, 0.0384521484375, 0.0010919570922851562, -0.03680419921875, -0.0206146240234375, 0.009490966796875, 0.00598907470703125, 0.012664794921875, -0.00804901123046875, -0.033782958984375, 0.0132598876953125, 0.018310546875, 0.006191253662109375, -0.036865234375, 0.033660888671875, -0.007747650146484375, 0.0242156982421875, -0.025299072265625, -0.0123291015625, -0.0186614990234375, -0.00041413307189941406, -0.01513671875, -0.0772705078125, -0.00708770751953125, 0.0111541748046875, -0.01168060302734375, 0.0533447265625, 0.0657958984375, 0.0151824951171875, -0.0293731689453125, -0.022552490234375, -0.0110626220703125, -0.0133056640625, 0.08172607421875, -0.019287109375, 0.0013303756713867188, -0.0106048583984375, 0.01242828369140625, 0.07977294921875, -0.037628173828125, -0.03082275390625, 0.01306915283203125, -0.039398193359375, 0.029815673828125, 0.06182861328125, -0.049224853515625, 0.0160369873046875, 0.039215087890625, 0.042083740234375, 0.01322174072265625, -0.0017786026000976562, 0.019622802734375, -0.037139892578125, -0.0067901611328125, 0.06121826171875, 0.032379150390625, 0.034881591796875, -0.02001953125, 0.003665924072265625, 0.0049285888671875, -0.035186767578125, -0.009979248046875, 0.044464111328125, 0.035919189453125, -0.056365966796875, -0.009857177734375, 0.0010433197021484375, -0.01068878173828125, 0.0084991455078125, 0.0144805908203125, -0.0169830322265625, -0.0253143310546875, -0.01432037353515625, -0.025482177734375, -0.0210418701171875, -0.01218414306640625, -0.004039764404296875, -0.0017328262329101562, 0.006610870361328125, 0.007503509521484375, 0.00788116455078125, -0.028228759765625, -0.0083160400390625, 0.0220794677734375, -0.001605987548828125, -0.0309906005859375, -0.0257415771484375, 0.01122283935546875, -0.024749755859375, -0.036529541015625, 0.04254150390625, -0.02630615234375, 0.031829833984375, 0.0303955078125, 0.01499176025390625, 0.016845703125, 0.01476287841796875, -0.0013885498046875, -0.0034313201904296875, -0.0167388916015625, -0.0209808349609375, 0.049896240234375, 0.02447509765625, -0.00519561767578125, 0.0094757080078125, 0.0165863037109375, -0.006740570068359375, 0.002407073974609375, 0.009765625, -0.0261993408203125, -0.10784912109375, 0.0625, -0.07513427734375, 0.01800537109375, -0.0243377685546875, 0.02850341796875, 0.022064208984375, 0.031585693359375, 0.037994384765625, -0.03143310546875, 0.004985809326171875, 0.021636962890625, -0.0006704330444335938, 0.014556884765625, 0.031005859375, -0.03375244140625, 0.041015625, -0.0228118896484375, 0.03485107421875, 0.0309295654296875, 0.0153656005859375, 0.0036182403564453125, 0.01177978515625, -0.0281219482421875, 0.042938232421875, 0.009857177734375, 0.0267486572265625, -0.01430511474609375, -0.00730133056640625, 0.0180511474609375, 0.0172882080078125, 0.067138671875, 0.0182342529296875, -0.0223541259765625, 0.0269927978515625, 0.07080078125, -0.002185821533203125, -0.0333251953125, 0.061492919921875, 0.0286712646484375, 0.01462554931640625, 0.046630859375, 0.021026611328125, 0.048553466796875, -0.0005316734313964844, -0.01418304443359375, 0.033233642578125, 0.025970458984375, 0.041748046875, -0.004364013671875, 0.0438232421875, -0.045989990234375, -0.006687164306640625, 0.057373046875, -0.053497314453125, -0.028533935546875, 0.06549072265625, 0.058074951171875, -0.067626953125, -0.01280975341796875, -0.0435791015625, 0.06719970703125, 0.0093841552734375, 0.0012311935424804688, 0.038330078125, 0.00504302978515625, 0.0701904296875, -0.0194091796875, -0.0027942657470703125, -0.007587432861328125, 0.0153656005859375, 0.0853271484375, 0.040771484375, 0.039031982421875, -0.0201263427734375, 0.045623779296875, 0.038055419921875, 0.09552001953125, -0.07623291015625, -0.04425048828125, 0.0078277587890625, -0.00235748291015625, 0.0091705322265625, -0.004978179931640625, 0.008331298828125, 0.0157928466796875, 0.03955078125, -0.0311431884765625, -0.022796630859375, -0.01299285888671875, 0.058929443359375, -0.03204345703125, -0.05908203125, -0.0022983551025390625, -0.0312042236328125, -0.032379150390625, 0.0282745361328125, 0.007427215576171875, 0.040283203125, 0.00782012939453125, 0.0217132568359375, -0.00798797607421875, -0.00865936279296875, -0.0162353515625, 0.0435791015625, 0.00949859619140625, 0.0222625732421875, -0.020965576171875, -0.00714874267578125, 0.0014286041259765625, 0.0157318115234375, 0.01287078857421875, -0.01004791259765625, 0.017486572265625, 0.00954437255859375, -0.014739990234375, -0.0162506103515625, -0.00931549072265625, -0.0233306884765625, 0.034515380859375, -0.056243896484375, 0.043914794921875, 0.03265380859375, 0.00159454345703125, -0.006500244140625, -0.01114654541015625, 0.06817626953125, -0.0212249755859375, 0.0052490234375, -0.00394439697265625, -0.01285552978515625, 0.050048828125, -0.01189422607421875, 0.0216217041015625, 0.0106048583984375, -0.0216217041015625, 0.0134124755859375, -0.02850341796875, -0.09588623046875, 0.030029296875, 0.05084228515625, -0.0347900390625, 0.0106353759765625, 0.0125885009765625, 0.0125579833984375, 0.01351165771484375, -0.024444580078125, 0.00991058349609375, -0.025634765625, 0.0071563720703125, -0.00022220611572265625, 0.00787353515625, 0.008148193359375, 0.0085906982421875, 0.0193023681640625, -0.0095062255859375, 0.100341796875, -0.038238525390625, -0.01218414306640625, -0.03765869140625, 0.02655029296875, -0.06494140625, -0.029815673828125, 0.0100555419921875, -0.0174102783203125, 0.0055999755859375, 0.0088348388671875, -0.00042176246643066406, -0.01367950439453125, 0.041412353515625, -0.0491943359375, -0.016510009765625, -0.038421630859375, 0.0257110595703125, -0.01491546630859375, -0.0010433197021484375, -0.03668212890625, -0.06732177734375, -0.053680419921875, 0.0030155181884765625, 0.00489044189453125, 0.00568389892578125, -0.047576904296875, 0.0282745361328125, -0.0302581787109375, 0.0170135498046875, -0.0242156982421875, 0.016510009765625, -0.04400634765625, 0.0230712890625, -0.04534912109375, 0.0347900390625, 0.03607177734375, -0.0109710693359375, 0.04998779296875, 0.004878997802734375, 0.0072174072265625, 0.0401611328125, -0.01299285888671875, 0.0031681060791015625, -0.0028018951416015625, 0.021209716796875, 0.0165863037109375, 0.0078582763671875, -0.043670654296875, -0.000331878662109375, 0.00827789306640625, -0.033935546875, -0.037567138671875, -0.04583740234375, 0.025634765625, 0.043548583984375, -0.0092010498046875, -0.0134124755859375, -0.055633544921875, 0.00550079345703125, 0.026580810546875, 0.007320404052734375, -0.05023193359375, 0.0491943359375, -0.017578125, 0.0198211669921875, -0.01491546630859375, -0.00844573974609375, 0.0034427642822265625, -0.02398681640625, -0.07666015625, 0.0239105224609375, -0.032470703125, -0.03802490234375, -0.012847900390625, 0.004482269287109375, 0.029541015625, -0.02984619140625, -0.02337646484375, -0.034942626953125, 0.006130218505859375, 0.01450347900390625, 0.023895263671875, 0.00847625732421875, 0.01209259033203125, 0.01540374755859375, -0.058197021484375, -0.05426025390625, 0.0269927978515625, -0.0168914794921875, -0.0241241455078125, 0.01322174072265625, -0.0242767333984375, -0.01480865478515625, -0.0408935546875, -0.033172607421875, 0.062408447265625, 0.0181121826171875, -0.019195556640625, -0.043487548828125, 0.0104827880859375, 0.00589752197265625, 0.0306396484375, -0.0160064697265625, 0.00688934326171875, -0.044158935546875, 0.002208709716796875, 0.01337432861328125, 0.049346923828125, -0.032562255859375, 0.0304107666015625, -0.03082275390625, 0.041473388671875, 0.03326416015625, 0.0184173583984375, 0.0186004638671875, 0.022918701171875, -0.01229095458984375, 0.02587890625, -0.045684814453125, -0.0063323974609375, -0.034576416015625, 0.01361846923828125, 0.0243377685546875, -0.03619384765625, -0.0784912109375, -0.059661865234375, 0.065185546875, 0.0205078125, 0.032135009765625, 0.01165771484375, -0.07098388671875, -0.057403564453125, 0.01434326171875, -0.003997802734375, 0.0129547119140625, -0.057037353515625, 0.042694091796875, 0.0082244873046875, 0.018463134765625, -0.0041656494140625, -0.0279541015625, -0.0037097930908203125, -0.0184478759765625, 0.01213836669921875, 0.0186004638671875, -0.0093841552734375, -0.041168212890625, -0.02813720703125, 0.0111541748046875, -0.01004791259765625, -0.0100250244140625, 0.03167724609375, -0.04107666015625, 0.0274200439453125, -0.07098388671875, -0.06488037109375, 0.048736572265625, 0.047332763671875, -0.009521484375, 0.018310546875, 0.0180511474609375, 0.0204620361328125, -0.050201416015625, 0.01390838623046875, 0.0338134765625, -0.003429412841796875, -0.06048583984375, 0.04522705078125, 0.04400634765625, 0.0782470703125, 0.0014514923095703125, -0.0633544921875, -0.01087188720703125, 0.0374755859375, -0.00933074951171875, -0.0181427001953125, 0.01122283935546875, -0.038330078125, -0.004680633544921875, 0.01062774658203125, -0.0302276611328125, -0.054443359375, 0.01073455810546875, -0.002033233642578125, 0.000004589557647705078, 0.024688720703125 ]
89a810568c9d02abe1281675539e839d77298695
Wordpress Stackexchange Q: WordPress admin webfonts (dashicons) go to blank squares after inactivity (random) I'm using the new WordPress 3.8 and I've noticed that when I leave the admin page open in a tab, and return later, I'm getting a random thing happening with the dashicon fonts used for the menu icons. They all turn to squares, rather than the appropriate dashicon. Its as if the connection to the server that hosts the webfonts has been temporarily lost. Interestingly, just moving my mouse over the sidebar area makes the squares transform into their appropriate dashicon font symbol. Has anyone else experienced this?
Q: WordPress admin webfonts (dashicons) go to blank squares after inactivity (random) I'm using the new WordPress 3.8 and I've noticed that when I leave the admin page open in a tab, and return later, I'm getting a random thing happening with the dashicon fonts used for the menu icons. They all turn to squares, rather than the appropriate dashicon. Its as if the connection to the server that hosts the webfonts has been temporarily lost. Interestingly, just moving my mouse over the sidebar area makes the squares transform into their appropriate dashicon font symbol. Has anyone else experienced this?
wordpress
{ "language": "en", "length": 100, "provenance": "stackexchange_00019.jsonl.gz:441657", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131385" }
[ 0.02545166015625, 0.01110076904296875, 0.004825592041015625, 0.0316162109375, 0.0031490325927734375, -0.0234375, 0.043548583984375, -0.06256103515625, 0.01549530029296875, 0.03289794921875, -0.0306243896484375, -0.01180267333984375, 0.024444580078125, -0.017333984375, -0.038970947265625, -0.0255126953125, 0.0439453125, -0.000095367431640625, 0.034027099609375, -0.01207733154296875, -0.00811767578125, 0.0278778076171875, -0.0050811767578125, -0.00756072998046875, -0.01389312744140625, -0.0185546875, 0.09100341796875, -0.01904296875, 0.0007123947143554688, -0.031463623046875, 0.020263671875, 0.022552490234375, -0.008270263671875, 0.056396484375, 0.003086090087890625, 0.03326416015625, 0.0093841552734375, 0.04248046875, 0.045379638671875, -0.021881103515625, 0.01461029052734375, -0.0023956298828125, 0.04071044921875, 0.0146331787109375, -0.0245819091796875, 0.0003063678741455078, 0.0018339157104492188, -0.021331787109375, 0.0274810791015625, -0.007904052734375, 0.0119781494140625, -0.0155792236328125, 0.0212554931640625, 0.006053924560546875, -0.03082275390625, -0.0271148681640625, -0.0318603515625, 0.004360198974609375, 0.031524658203125, 0.0279083251953125, -0.0119171142578125, -0.02471923828125, 0.001033782958984375, -0.0623779296875, -0.0150909423828125, -0.02630615234375, 0.020355224609375, 0.006114959716796875, -0.0163116455078125, 0.005954742431640625, 0.032257080078125, 0.02239990234375, -0.011199951171875, -0.06121826171875, 0.004634857177734375, 0.0211029052734375, -0.005657196044921875, -0.041229248046875, -0.00083160400390625, 0.01690673828125, 0.041961669921875, 0.0011835098266601562, 0.006511688232421875, 0.0187835693359375, 0.0035572052001953125, 0.0482177734375, -0.0098114013671875, -0.04241943359375, -0.01140594482421875, -0.04376220703125, 0.0021457672119140625, -0.0009565353393554688, -0.06982421875, 0.024688720703125, 0.0156402587890625, -0.048858642578125, -0.006145477294921875, -0.01157379150390625, -0.0128021240234375, 0.0143280029296875, -0.01108551025390625, -0.02325439453125, 0.0155487060546875, -0.02557373046875, -0.01824951171875, -0.00011307001113891602, 0.002994537353515625, 0.002033233642578125, 0.0166015625, 0.025970458984375, -0.007171630859375, -0.02093505859375, -0.03375244140625, -0.039093017578125, -0.006435394287109375, 0.01525115966796875, -0.0550537109375, 0.006366729736328125, 0.0226898193359375, -0.0067901611328125, 0.02386474609375, 0.015960693359375, 0.019439697265625, -0.005435943603515625, 0.0225067138671875, 0.00485992431640625, -0.038970947265625, -0.0018014907836914062, 0.0171661376953125, 0.062225341796875, -0.05145263671875, -0.0190277099609375, 0.03607177734375, 0.026153564453125, 0.0292510986328125, -0.043914794921875, 0.0028209686279296875, -0.032073974609375, 0.005069732666015625, -0.021240234375, 0.0484619140625, -0.0299072265625, -0.033905029296875, 0.034149169921875, -0.0712890625, 0.0018453598022460938, -0.017059326171875, 0.0238037109375, 0.01088714599609375, -0.055084228515625, 0.0103759765625, -0.07373046875, 0.046875, 0.0303497314453125, -0.01248931884765625, -0.005771636962890625, 0.07666015625, -0.039764404296875, -0.04913330078125, -0.0740966796875, -0.03155517578125, -0.0003516674041748047, 0.031585693359375, -0.0201263427734375, 0.0010242462158203125, -0.007221221923828125, 0.01519775390625, 0.01322174072265625, 0.003887176513671875, -0.01532745361328125, -0.0389404296875, 0.01410675048828125, -0.000024080276489257812, -0.007843017578125, -0.0014810562133789062, 0.003246307373046875, 0.0184478759765625, -0.0220947265625, 0.026702880859375, -0.034210205078125, -0.031219482421875, -0.0213775634765625, 0.047637939453125, -0.0303955078125, -0.0435791015625, 0.0048980712890625, -0.01259613037109375, 0.045745849609375, 0.069091796875, 0.0058441162109375, -0.0197601318359375, -0.0293426513671875, -0.01377105712890625, -0.00348663330078125, 0.047760009765625, 0.0064849853515625, -0.041717529296875, 0.00861358642578125, 0.007289886474609375, -0.055816650390625, 0.005035400390625, 0.056121826171875, -0.0191497802734375, 0.00893402099609375, -0.033721923828125, 0.039215087890625, -0.0167999267578125, 0.05645751953125, 0.0222320556640625, -0.0005788803100585938, 0.00870513916015625, -0.02032470703125, -0.03509521484375, 0.046966552734375, -0.023834228515625, 0.02593994140625, -0.012451171875, 0.01137542724609375, 0.01097869873046875, 0.0078125, 0.0088043212890625, -0.0282440185546875, -0.00441741943359375, 0.003509521484375, 0.02984619140625, -0.0126190185546875, -0.0272216796875, -0.0209808349609375, 0.0576171875, -0.033355712890625, 0.033966064453125, 0.0792236328125, -0.023773193359375, 0.01983642578125, -0.0528564453125, -0.033203125, -0.06512451171875, -0.0159759521484375, 0.01001739501953125, 0.047393798828125, 0.0435791015625, 0.03753662109375, -0.00391387939453125, 0.0092926025390625, 0.054840087890625, -0.01300811767578125, 0.030670166015625, -0.01300811767578125, -0.008056640625, 0.02008056640625, -0.01064300537109375, 0.01062774658203125, 0.0233612060546875, 0.03302001953125, -0.0270233154296875, 0.0411376953125, -0.017791748046875, -0.0299072265625, -0.0255279541015625, 0.0264434814453125, 0.027862548828125, 0.0261383056640625, -0.0305023193359375, 0.018951416015625, -0.054534912109375, 0.01580810546875, -0.03289794921875, -0.0024623870849609375, -0.021331787109375, 0.0030517578125, 0.04229736328125, 0.004581451416015625, -0.0015439987182617188, 0.0252227783203125, 0.037353515625, -0.016998291015625, -0.006069183349609375, 0.006992340087890625, -0.02716064453125, -0.023651123046875, -0.0081939697265625, -0.01276397705078125, -0.0546875, -0.01313018798828125, 0.0252532958984375, -0.04998779296875, -0.0279998779296875, -0.0099945068359375, -0.0193939208984375, 0.01302337646484375, 0.03314208984375, 0.0295562744140625, 0.014678955078125, -0.0008087158203125, -0.0133056640625, 0.018585205078125, -0.0019989013671875, 0.0142059326171875, -0.0127105712890625, -0.004547119140625, 0.02874755859375, 0.049407958984375, 0.0032215118408203125, -0.0004169940948486328, 0.001308441162109375, 0.09429931640625, 0.053955078125, -0.025299072265625, -0.00862884521484375, 0.014007568359375, -0.023956298828125, -0.019439697265625, 0.0153045654296875, 0.03765869140625, -0.0251312255859375, -0.0430908203125, -0.01177215576171875, -0.008819580078125, -0.07171630859375, -0.06488037109375, -0.04296875, -0.0164642333984375, -0.006092071533203125, -0.015960693359375, 0.0016880035400390625, 0.0196533203125, -0.044708251953125, 0.0246124267578125, 0.0249176025390625, -0.0063323974609375, -0.04107666015625, -0.007244110107421875, -0.055389404296875, -0.049957275390625, -0.00946807861328125, 0.01345062255859375, 0.004810333251953125, 0.0038814544677734375, 0.005767822265625, -0.011383056640625, 0.028564453125, 0.00766754150390625, 0.00580596923828125, 0.010284423828125, 0.0125274658203125, -0.02471923828125, -0.01274871826171875, 0.009521484375, 0.01280975341796875, 0.00609588623046875, -0.0277252197265625, -0.0160369873046875, 0.0015935897827148438, -0.0264434814453125, 0.018768310546875, 0.01641845703125, -0.00783538818359375, 0.021575927734375, 0.0168609619140625, -0.0217437744140625, -0.03179931640625, 0.041595458984375, 0.0047607421875, 0.0672607421875, -0.05328369140625, -0.035552978515625, 0.0533447265625, 0.049407958984375, 0.01494598388671875, 0.00844573974609375, -0.0100860595703125, -0.0181427001953125, -0.0008854866027832031, 0.0017480850219726562, 0.0231475830078125, 0.0031986236572265625, -0.017913818359375, -0.0390625, 0.033447265625, -0.02349853515625, 0.0037689208984375, 0.0201416015625, 0.01090240478515625, 0.0247039794921875, 0.00278472900390625, 0.007236480712890625, -0.103515625, -0.035430908203125, -0.0247650146484375, 0.028167724609375, -0.0195465087890625, 0.01428985595703125, -0.038482666015625, -0.009368896484375, -0.0240020751953125, 0.0235748291015625, -0.0357666015625, -0.08135986328125, -0.00710296630859375, -0.00060272216796875, -0.10064697265625, 0.0263824462890625, -0.0020046234130859375, -0.0186614990234375, -0.0231475830078125, 0.0181427001953125, -0.044036865234375, -0.04119873046875, 0.0181884765625, -0.039398193359375, -0.0109100341796875, -0.0079803466796875, -0.031524658203125, -0.039093017578125, -0.0086669921875, -0.0458984375, -0.0670166015625, -0.0159454345703125, -0.04595947265625, 0.07818603515625, 0.04827880859375, -0.061614990234375, -0.0101318359375, 0.044952392578125, 0.0142364501953125, -0.018798828125, 0.00882720947265625, 0.0049285888671875, 0.004756927490234375, -0.03424072265625, -0.00659942626953125, -0.0300140380859375, -0.029571533203125, -0.0213470458984375, -0.0853271484375, -0.0269012451171875, 0.03302001953125, -0.020721435546875, 0.0838623046875, -0.033416748046875, 0.01251983642578125, -0.02545166015625, -0.04498291015625, 0.020355224609375, -0.022186279296875, 0.012237548828125, -0.03955078125, 0.0026569366455078125, -0.01204681396484375, 0.00634765625, -0.00876617431640625, -0.004608154296875, -0.039947509765625, 0.01800537109375, -0.025238037109375, 0.07550048828125, -0.01010894775390625, 0.0293426513671875, 0.0318603515625, -0.003940582275390625, 0.0014581680297851562, -0.01763916015625, -0.0017347335815429688, 0.01256561279296875, 0.009002685546875, -0.032501220703125, 0.06060791015625, -0.01436614990234375, 0.013580322265625, -0.0015268325805664062, -0.02227783203125, 0.00745391845703125, 0.06915283203125, -0.006046295166015625, -0.01009368896484375, -0.048614501953125, 0.024017333984375, 0.0272674560546875, -0.056854248046875, -0.06024169921875, -0.03778076171875, 0.0074462890625, 0.004413604736328125, 0.05426025390625, 0.039306640625, 0.0024547576904296875, 0.055694580078125, 0.044158935546875, -0.01299285888671875, 0.004638671875, 0.01488494873046875, -0.0002498626708984375, 0.02264404296875, -0.032196044921875, -0.026885986328125, -0.00888824462890625, -0.0038394927978515625, 0.01806640625, 0.0215301513671875, -0.05059814453125, 0.032012939453125, 0.0184326171875, 0.011016845703125, -0.0028476715087890625, 0.005092620849609375, -0.0293731689453125, -0.00539398193359375, -0.0101318359375, 0.0070343017578125, 0.05810546875, -0.040802001953125, 0.0001785755157470703, -0.0268096923828125, 0.036651611328125, -0.0308074951171875, -0.01032257080078125, 0.05072021484375, 0.03277587890625, -0.01641845703125, -0.0165863037109375, -0.031768798828125, 0.010345458984375, 0.00804901123046875, 0.042877197265625, -0.032440185546875, 0.002777099609375, -0.01788330078125, 0.03607177734375, -0.036712646484375, 0.053924560546875, 0.00203704833984375, 0.05120849609375, 0.0167236328125, -0.045501708984375, 0.0196685791015625, -0.06829833984375, -0.004604339599609375, 0.030120849609375, -0.034942626953125, -0.06298828125, -0.030609130859375, 0.018524169921875, 0.052581787109375, -0.0301361083984375, -0.0296173095703125, 0.036834716796875, -0.0251312255859375, 0.006168365478515625, 0.0123443603515625, -0.050628662109375, 0.015869140625, 0.034515380859375, -0.027587890625, -0.0217132568359375, 0.0185546875, -0.1134033203125, -0.033935546875, 0.000278472900390625, 0.006717681884765625, -0.006641387939453125, -0.039398193359375, 0.004268646240234375, -0.03350830078125, 0.029144287109375, -0.021453857421875, 0.0274505615234375, -0.01210784912109375, -0.01354217529296875, -0.0211639404296875, -0.0016040802001953125, -0.054290771484375, -0.016937255859375, -0.0101318359375, -0.039581298828125, -0.0287628173828125, -0.0109100341796875, 0.00794219970703125, 0.0272979736328125, -0.0045318603515625, -0.0419921875, -0.04071044921875, 0.0305633544921875, 0.045745849609375, 0.09423828125, -0.017669677734375, -0.0116424560546875, 0.0249481201171875, -0.027313232421875, -0.0185089111328125, -0.038970947265625, 0.0038967132568359375, 0.012176513671875, 0.01513671875, -0.007434844970703125, -0.0496826171875, -0.01415252685546875, -0.051483154296875, 0.0219879150390625, 0.067626953125, -0.017913818359375, 0.024932861328125, -0.0079345703125, 0.01507568359375, -0.0149078369140625, 0.039093017578125, -0.01087188720703125, 0.0171966552734375, 0.0243377685546875, -0.02008056640625, 0.01361083984375, -0.009124755859375, -0.013641357421875, 0.0174102783203125, -0.01383209228515625, -0.00042819976806640625, 0.0304107666015625, -0.01168060302734375, 0.034332275390625, 0.010772705078125, -0.0155029296875, 0.00554656982421875, 0.0080108642578125, 0.004604339599609375, -0.016571044921875, -0.040924072265625, -0.0025577545166015625, 0.004795074462890625, -0.004241943359375, -0.0258636474609375, -0.009185791015625, 0.0061187744140625, -0.0172882080078125, 0.0225982666015625, 0.058624267578125, 0.04736328125, -0.06005859375, -0.0033130645751953125, -0.015869140625, -0.041229248046875, 0.006229400634765625, 0.0037517547607421875, -0.006649017333984375, -0.05859375, 0.04718017578125, -0.037628173828125, -0.0055694580078125, 0.0254364013671875, -0.033905029296875, -0.005615234375, -0.0035915374755859375, 0.0214996337890625, -0.0093231201171875, -0.037139892578125, -0.008331298828125, 0.00099945068359375, -0.01194000244140625, -0.01152801513671875, 0.00021207332611083984, -0.006893157958984375, -0.01165008544921875, -0.04254150390625, -0.012359619140625, -0.0335693359375, -0.0261383056640625, 0.01129913330078125, 0.0208282470703125, 0.01111602783203125, 0.02215576171875, -0.0154266357421875, 0.0129241943359375, -0.01806640625, -0.0088653564453125, 0.03173828125, -0.034881591796875, -0.0328369140625, 0.0242462158203125, -0.036041259765625, 0.01401519775390625, 0.00946807861328125, 0.00018358230590820312, -0.003681182861328125, -0.0248260498046875, 0.036956787109375, -0.0384521484375, -0.00635528564453125, 0.04705810546875, -0.00839996337890625, -0.014068603515625, 0.0019989013671875, 0.024810791015625, -0.07086181640625, -0.061737060546875, 0.002529144287109375, -0.060577392578125, 0.004497528076171875, 0.00974273681640625, -0.040557861328125, 0.018096923828125, -0.045806884765625, 0.003269195556640625, -0.0066375732421875, 0.0102081298828125, -0.01076507568359375, -0.01412200927734375, -0.05401611328125, 0.05621337890625, -0.005863189697265625, 0.0288543701171875, -0.07196044921875, 0.0161895751953125, -0.0338134765625, -0.00536346435546875, -0.0268707275390625, -0.01458740234375, 0.01068878173828125, 0.03277587890625, 0.06884765625, 0.0136260986328125, 0.015167236328125, 0.0016460418701171875, -0.005222320556640625, -0.0125579833984375, 0.031982421875, -0.024505615234375, 0.045440673828125, -0.053314208984375, -0.00943756103515625, -0.0295257568359375, 0.00923919677734375, -0.004329681396484375, -0.00569915771484375, 0.00785064697265625, -0.0198211669921875, -0.0014057159423828125, 0.00682830810546875, -0.0214996337890625, -0.004772186279296875, 0.036376953125, 0.0267333984375, -0.0031890869140625, 0.0162200927734375, -0.0343017578125, 0.04486083984375, 0.01303863525390625, -0.043365478515625, -0.00739288330078125, 0.00714874267578125, -0.046844482421875, -0.06353759765625, -0.0391845703125, 0.007152557373046875, -0.04547119140625, 0.059051513671875, -0.0034122467041015625, 0.033050537109375, -0.044219970703125, 0.012237548828125, 0.002838134765625, 0.047393798828125, -0.028778076171875, -0.06707763671875, -0.00911712646484375, 0.0128021240234375, 0.0753173828125, 0.0308380126953125, 0.1202392578125, -0.034881591796875, -0.0272216796875, 0.0259552001953125, 0.020538330078125, 0.00702667236328125, -0.0312347412109375, 0.01348876953125, 0.07757568359375, 0.01088714599609375, 0.047271728515625, -0.06658935546875, 0.01076507568359375, 0.038299560546875, 0.05841064453125, 0.0232696533203125, 0.046875, 0.038848876953125, -0.0277862548828125, -0.0240325927734375, -0.00930023193359375, -0.01568603515625, 0.0159759521484375, -0.0290985107421875, 0.007747650146484375, -0.00212860107421875, 0.040740966796875, -0.023712158203125, 0.04254150390625, 0.033935546875, 0.043243408203125, 0.0082550048828125, -0.017791748046875, 0.03656005859375, -0.019012451171875, 0.002658843994140625, -0.04541015625, 0.023956298828125, 0.01203155517578125, 0.00342559814453125, 0.01220703125, 0.0083465576171875, 0.041168212890625, -0.01340484619140625, 0.036285400390625, 0.0040130615234375, 0.0023059844970703125, -0.02911376953125, -0.0273284912109375, -0.03802490234375, 0.00946807861328125, -0.09637451171875, -0.0343017578125, 0.0509033203125, -0.003261566162109375, 0.0004925727844238281, 0.03436279296875, -0.043212890625, 0.04217529296875, -0.0160369873046875, 0.00493621826171875, -0.0401611328125, -0.0190582275390625, 0.069091796875, 0.03472900390625, -0.01338958740234375, 0.057281494140625, -0.0362548828125, 0.0037097930908203125, 0.005962371826171875, -0.0185089111328125, 0.018157958984375, 0.0623779296875, 0.006198883056640625, 0.0029277801513671875, 0.01346588134765625, 0.0296630859375, -0.021453857421875, -0.0145416259765625, 0.031494140625, -0.036834716796875, 0.0055999755859375, 0.0157012939453125, -0.0056610107421875, 0.052276611328125, 0.005702972412109375, -0.01538848876953125, -0.0048370361328125, 0.0174713134765625, 0.0052032470703125, 0.031829833984375, 0.021575927734375, -0.0283966064453125, -0.0352783203125, -0.044281005859375, -0.0174102783203125, 0.0296630859375, 0.010040283203125, -0.01378631591796875, 0.055633544921875, -0.0312042236328125, -0.005367279052734375, 0.0170745849609375, -0.051116943359375, 0.01389312744140625, 0.0174560546875, -0.042633056640625, 0.0222320556640625, -0.035491943359375, -0.03521728515625, 0.03759765625, -0.032501220703125, 0.027374267578125, -0.0172576904296875, 0.038970947265625, 0.0859375, 0.00603485107421875, 0.00728607177734375, -0.0665283203125, -0.0306243896484375, 0.0684814453125, 0.011138916015625, 0.018890380859375, 0.04296875, -0.01381683349609375, 0.0024871826171875, -0.028167724609375, 0.0029582977294921875, -0.029022216796875, -0.03460693359375, -0.0955810546875, 0.01042938232421875, 0.019927978515625, 0.0275726318359375, -0.069091796875, 0.05670166015625, -0.01093292236328125, -0.010528564453125, 0.018341064453125, 0.0318603515625, -0.01271820068359375, 0.020843505859375, -0.03631591796875, -0.03033447265625, -0.031829833984375, 0.032379150390625, -0.0325927734375, -0.0164794921875, 0.020843505859375, -0.0017118453979492188, -0.0241241455078125, -0.051300048828125, 0.0066986083984375, -0.005947113037109375, -0.03240966796875, 0.015625, 0.0411376953125, -0.0184783935546875, -0.0283203125, -0.02239990234375, 0.002704620361328125, 0.0128021240234375, -0.046051025390625, -0.0157623291015625, 0.00859832763671875, 0.00605010986328125, -0.049163818359375, -0.046234130859375, -0.0287933349609375, 0.020843505859375, -0.0447998046875, -0.04974365234375, -0.015228271484375, -0.0098876953125, 0.0054931640625, -0.0222930908203125, -0.04241943359375, -0.0069427490234375, 0.063232421875, 0.01528167724609375, 0.052825927734375, -0.01531219482421875, 0.008575439453125, -0.015594482421875, 0.049835205078125, 0.032470703125, 0.0224456787109375, -0.01074981689453125, -0.028106689453125, 0.01390838623046875, 0.0154571533203125, -0.043060302734375, -0.09259033203125, 0.0012388229370117188, 0.016326904296875, -0.00817108154296875, 0.00634002685546875, 0.0178070068359375, -0.00466156005859375, 0.0291290283203125, -0.00396728515625, -0.01885986328125, -0.00827789306640625, -0.04083251953125, 0.01132965087890625, 0.0011262893676757812, 0.003658294677734375, 0.019561767578125, -0.08343505859375, -0.0133514404296875, 0.0257568359375, -0.0013637542724609375, 0.0199737548828125, 0.01387786865234375, -0.0128173828125, 0.00780487060546875, 0.037353515625, -0.00864410400390625, -0.0390625, -0.0640869140625, -0.0027751922607421875, 0.0177001953125, 0.0311737060546875, -0.005863189697265625, 0.03924560546875, 0.01383209228515625, 0.0604248046875, -0.0004968643188476562, -0.016357421875, -0.04937744140625, 0.0421142578125, -0.0300445556640625, 0.018585205078125, -0.0675048828125, -0.0146484375, 0.0283050537109375, 0.00846099853515625, -0.01059722900390625, 0.0210418701171875, 0.0022296905517578125, -0.01190948486328125, -0.043792724609375, -0.0171051025390625, -0.0114593505859375, 0.00289154052734375, -0.01097869873046875, 0.038543701171875, -0.039825439453125, -0.007328033447265625, -0.0091552734375, -0.030364990234375, -0.003986358642578125, -0.01464080810546875, -0.0042877197265625, -0.0684814453125, 0.0097808837890625, -0.02099609375, 0.02288818359375, 0.0199737548828125 ]
96f9daed8ca5c42c768939fd42224c947d64d4ed
Wordpress Stackexchange Q: How to individually set WP_DEBUG on a sub-directory multisite? According to this question, it's possible to turn on/off WP_DEBUG for specific sites on a multisite. Is it possible to do this with a sub-directory multisite? A: You can do this by adding some code to wp-config.php $request_uri = $_SERVER['REQUEST_URI']; $debug_dirs = array ('/debug-dir1/','/debug-dir2/'); // list of directories to turn on debugging foreach ($debug_dirs as $debug_dir) { if (!strncmp($request_uri,$debug_dir,strlen($debug_dir))) { define('WP_DEBUG', true); } } define('WP_DEBUG', false); // debug off by default
Q: How to individually set WP_DEBUG on a sub-directory multisite? According to this question, it's possible to turn on/off WP_DEBUG for specific sites on a multisite. Is it possible to do this with a sub-directory multisite? A: You can do this by adding some code to wp-config.php $request_uri = $_SERVER['REQUEST_URI']; $debug_dirs = array ('/debug-dir1/','/debug-dir2/'); // list of directories to turn on debugging foreach ($debug_dirs as $debug_dir) { if (!strncmp($request_uri,$debug_dir,strlen($debug_dir))) { define('WP_DEBUG', true); } } define('WP_DEBUG', false); // debug off by default A: Here is what worked for me $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (strpos($url,'sitename') !== false) { define('WP_DEBUG', true); }
wordpress
{ "language": "en", "length": 103, "provenance": "stackexchange_00019.jsonl.gz:441666", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131410" }
[ 0.08050537109375, -0.0189666748046875, -0.0021305084228515625, -0.035919189453125, -0.014129638671875, -0.049560546875, 0.02496337890625, -0.0227203369140625, 0.02294921875, -0.00106048583984375, -0.00621795654296875, -0.024627685546875, 0.009033203125, -0.03387451171875, 0.0024261474609375, -0.0162353515625, 0.036834716796875, -0.028076171875, 0.0124359130859375, -0.0006842613220214844, -0.0095062255859375, 0.041595458984375, -0.0211181640625, 0.06219482421875, 0.002880096435546875, 0.0117645263671875, 0.0474853515625, 0.005680084228515625, 0.008056640625, -0.016815185546875, 0.0218048095703125, -0.00420379638671875, 0.025360107421875, 0.04266357421875, -0.0654296875, 0.0248260498046875, -0.002880096435546875, 0.0018472671508789062, -0.0028591156005859375, 0.036346435546875, 0.022247314453125, 0.0014638900756835938, 0.039794921875, 0.00954437255859375, 0.017913818359375, -0.0343017578125, 0.018829345703125, -0.05511474609375, 0.0254669189453125, -0.0672607421875, -0.0255126953125, 0.004863739013671875, 0.0126495361328125, -0.060272216796875, -0.044891357421875, -0.043487548828125, 0.0036067962646484375, 0.0184326171875, 0.034759521484375, -0.0021495819091796875, -0.03900146484375, -0.01143646240234375, 0.01204681396484375, -0.0474853515625, 0.01503753662109375, -0.007389068603515625, -0.0310821533203125, 0.022735595703125, -0.02484130859375, 0.0181427001953125, 0.035430908203125, -0.059844970703125, 0.0241851806640625, 0.00019598007202148438, -0.0214385986328125, -0.04180908203125, 0.0308837890625, -0.008514404296875, 0.01558685302734375, -0.03472900390625, 0.01136016845703125, -0.06231689453125, -0.032562255859375, 0.013671875, 0.01507568359375, 0.046722412109375, 0.007167816162109375, -0.01277923583984375, -0.01495361328125, 0.004070281982421875, -0.03118896484375, 0.0305938720703125, -0.047332763671875, 0.004638671875, -0.012420654296875, -0.020904541015625, 0.025604248046875, 0.042266845703125, -0.0189971923828125, -0.04205322265625, -0.01497650146484375, -0.02752685546875, -0.050689697265625, -0.0047607421875, -0.002227783203125, 0.02886962890625, 0.018951416015625, -0.01248931884765625, 0.02496337890625, 0.019866943359375, 0.006679534912109375, 0.038482666015625, 0.0007119178771972656, -0.035888671875, -0.02496337890625, 0.0322265625, -0.002513885498046875, -0.0126495361328125, 0.00785064697265625, -0.011199951171875, 0.01410675048828125, 0.053863525390625, -0.008209228515625, -0.018585205078125, -0.027374267578125, -0.0194244384765625, 0.00223541259765625, -0.06524658203125, 0.01227569580078125, -0.00794219970703125, -0.05560302734375, 0.01094818115234375, 0.071044921875, 0.02532958984375, 0.0345458984375, -0.0255889892578125, 0.01103973388671875, 0.03228759765625, -0.0009655952453613281, 0.029022216796875, 0.0087127685546875, -0.031585693359375, -0.007427215576171875, 0.01052093505859375, -0.060394287109375, -0.00989532470703125, 0.0255584716796875, 0.0306549072265625, -0.0256805419921875, -0.040557861328125, -0.015869140625, 0.047027587890625, -0.006656646728515625, 0.0012578964233398438, 0.0369873046875, -0.06817626953125, 0.02783203125, -0.04345703125, 0.0545654296875, -0.037445068359375, -0.03662109375, 0.0013723373413085938, 0.0439453125, -0.0232391357421875, 0.0008859634399414062, -0.007640838623046875, -0.01995849609375, -0.0029773712158203125, 0.0330810546875, 0.01202392578125, 0.0312042236328125, -0.037689208984375, -0.0118865966796875, -0.00848388671875, -0.01523590087890625, 0.0164337158203125, -0.02191162109375, 0.046875, 0.0233917236328125, -0.0129241943359375, -0.01177978515625, -0.038055419921875, 0.047119140625, -0.01229095458984375, -0.0423583984375, 0.03741455078125, -0.0161590576171875, 0.04931640625, 0.03460693359375, 0.0185699462890625, 0.0009632110595703125, -0.0130615234375, -0.0280914306640625, 0.0187530517578125, 0.0112457275390625, -0.0189666748046875, -0.0452880859375, -0.013397216796875, -0.0146942138671875, -0.004215240478515625, -0.0052490234375, 0.007564544677734375, 0.01036834716796875, -0.00501251220703125, -0.0298004150390625, -0.0073394775390625, -0.01654052734375, 0.03375244140625, 0.043426513671875, -0.01503753662109375, -0.0166778564453125, -0.01548004150390625, 0.0247344970703125, -0.04791259765625, -0.0654296875, 0.04547119140625, -0.018280029296875, 0.056976318359375, 0.008575439453125, 0.03533935546875, 0.004673004150390625, -0.0178680419921875, 0.0121612548828125, -0.01580810546875, 0.056121826171875, -0.02001953125, -0.0004324913024902344, -0.0240631103515625, 0.08221435546875, 0.0157623291015625, -0.0132293701171875, -0.00623321533203125, 0.0042877197265625, -0.00386810302734375, -0.026123046875, 0.00928497314453125, 0.0176239013671875, -0.00800323486328125, -0.00376129150390625, 0.03228759765625, 0.052154541015625, 0.0020885467529296875, -0.005466461181640625, -0.023590087890625, 0.02264404296875, -0.05950927734375, 0.01505279541015625, -0.038543701171875, 0.00835418701171875, -0.004833221435546875, -0.05950927734375, -0.0223236083984375, 0.05145263671875, -0.031585693359375, 0.01055145263671875, 0.056610107421875, -0.011932373046875, -0.04522705078125, 0.0213623046875, -0.00344085693359375, 0.0166778564453125, 0.016021728515625, -0.01947021484375, 0.0145111083984375, -0.0194854736328125, 0.028076171875, 0.0013284683227539062, 0.01076507568359375, 0.0005159378051757812, 0.0207672119140625, 0.01416778564453125, -0.0810546875, -0.0007538795471191406, 0.01546478271484375, 0.03240966796875, 0.0201568603515625, -0.042694091796875, -0.00653839111328125, 0.00041294097900390625, 0.00872802734375, -0.023193359375, 0.0167083740234375, -0.01186370849609375, -0.01056671142578125, -0.021240234375, -0.052978515625, 0.022430419921875, 0.0015974044799804688, -0.033538818359375, -0.031768798828125, 0.0187835693359375, 0.00798797607421875, -0.043548583984375, 0.01181793212890625, -0.004364013671875, -0.02532958984375, 0.06884765625, -0.04498291015625, 0.043609619140625, -0.01462554931640625, 0.0214996337890625, 0.06036376953125, 0.006687164306640625, -0.007579803466796875, -0.00460052490234375, 0.0171051025390625, 0.0173187255859375, -0.01317596435546875, -0.0328369140625, 0.0029926300048828125, -0.076171875, -0.0343017578125, 0.001949310302734375, -0.0275115966796875, 0.0018768310546875, -0.0258941650390625, -0.01364898681640625, -0.019500732421875, -0.08721923828125, -0.07666015625, 0.01149749755859375, -0.063232421875, 0.0290679931640625, -0.005184173583984375, -0.0306549072265625, -0.0323486328125, 0.040008544921875, 0.0189208984375, 0.0017347335815429688, -0.03558349609375, 0.02783203125, -0.021942138671875, -0.0121002197265625, 0.0033111572265625, 0.034912109375, -0.0043182373046875, -0.002288818359375, -0.002521514892578125, -0.0026874542236328125, 0.0064849853515625, 0.00748443603515625, 0.0013275146484375, 0.00027108192443847656, -0.05084228515625, -0.00589752197265625, -0.00006443262100219727, 0.0006227493286132812, 0.007671356201171875, -0.034027099609375, -0.0007801055908203125, 0.007659912109375, -0.03253173828125, 0.0171966552734375, 0.02093505859375, 0.00424957275390625, -0.031097412109375, 0.0095062255859375, 0.021942138671875, -0.040802001953125, -0.034027099609375, -0.0157012939453125, -0.046966552734375, -0.06451416015625, 0.0211944580078125, 0.04290771484375, -0.0027790069580078125, -0.01372528076171875, -0.00751495361328125, 0.05572509765625, 0.00954437255859375, 0.0321044921875, 0.00273895263671875, 0.051055908203125, -0.0008649826049804688, 0.0151824951171875, -0.068603515625, 0.01885986328125, -0.0144805908203125, 0.0006580352783203125, -0.00354766845703125, -0.00894927978515625, -0.034820556640625, 0.03289794921875, -0.0372314453125, 0.0117034912109375, 0.028961181640625, -0.03179931640625, 0.015655517578125, -0.03131103515625, -0.01387786865234375, -0.037322998046875, 0.0272369384765625, -0.05035400390625, -0.0152587890625, -0.025665283203125, 0.02178955078125, -0.019378662109375, -0.0806884765625, -0.011199951171875, -0.01247406005859375, -0.041229248046875, 0.0084991455078125, -0.0207366943359375, -0.01490020751953125, 0.0003883838653564453, -0.0341796875, -0.01104736328125, -0.047637939453125, 0.01409149169921875, -0.016326904296875, -0.0146331787109375, -0.01274871826171875, 0.0005717277526855469, -0.040740966796875, 0.005458831787109375, -0.0257720947265625, -0.0858154296875, -0.0232391357421875, -0.0072021484375, 0.07098388671875, 0.00649261474609375, -0.043060302734375, 0.0031070709228515625, 0.058349609375, -0.00998687744140625, 0.024383544921875, 0.002162933349609375, 0.0074615478515625, -0.02325439453125, 0.03619384765625, 0.0294952392578125, 0.00531005859375, -0.00600433349609375, -0.0159454345703125, -0.01464080810546875, 0.005878448486328125, -0.0207672119140625, -0.0166778564453125, 0.00870513916015625, -0.01708984375, -0.0290985107421875, -0.0208587646484375, -0.031585693359375, 0.0019073486328125, -0.029754638671875, -0.0036773681640625, -0.019378662109375, -0.0283050537109375, 0.02105712890625, 0.002685546875, -0.0260009765625, -0.0009794235229492188, 0.0214691162109375, 0.03302001953125, -0.0201263427734375, 0.036376953125, 0.0134429931640625, 0.004230499267578125, -0.0279541015625, 0.042724609375, 0.01103973388671875, 0.0184478759765625, 0.003742218017578125, -0.0294036865234375, 0.0039520263671875, -0.004428863525390625, 0.003993988037109375, 0.00557708740234375, -0.0308837890625, 0.015838623046875, -0.005947113037109375, 0.006927490234375, 0.02490234375, -0.01259613037109375, 0.00432586669921875, -0.00018775463104248047, 0.0186767578125, 0.001331329345703125, -0.028778076171875, -0.0262298583984375, -0.030670166015625, 0.0032062530517578125, 0.0201416015625, 0.041778564453125, 0.02581787109375, -0.004302978515625, 0.041259765625, 0.045318603515625, 0.0010089874267578125, 0.032958984375, 0.0821533203125, -0.0000941157341003418, 0.03656005859375, 0.046173095703125, -0.01204681396484375, -0.03936767578125, -0.01788330078125, 0.1024169921875, 0.0016460418701171875, -0.0550537109375, 0.0232086181640625, -0.004730224609375, 0.0213775634765625, 0.021636962890625, -0.0235137939453125, 0.051300048828125, -0.0149688720703125, -0.05352783203125, 0.004360198974609375, -0.061920166015625, -0.04498291015625, -0.0777587890625, -0.0193023681640625, -0.036773681640625, -0.007415771484375, 0.03466796875, 0.0384521484375, -0.055389404296875, 0.05865478515625, -0.00099945068359375, -0.005161285400390625, 0.0225830078125, 0.0022430419921875, 0.01013946533203125, -0.0014791488647460938, -0.0030536651611328125, -0.017608642578125, 0.05609130859375, -0.019287109375, -0.0168304443359375, 0.0132293701171875, 0.0304718017578125, 0.011566162109375, 0.002574920654296875, -0.008514404296875, -0.0134124755859375, -0.00681304931640625, 0.039337158203125, -0.018280029296875, -0.0694580078125, -0.01000213623046875, 0.004421234130859375, 0.02899169921875, -0.05706787109375, 0.0070343017578125, -0.005916595458984375, -0.0158233642578125, -0.01324462890625, 0.002941131591796875, -0.042724609375, -0.0147857666015625, 0.0102386474609375, -0.04229736328125, -0.0167083740234375, 0.0162506103515625, -0.08245849609375, -0.02313232421875, -0.01102447509765625, -0.0400390625, 0.031951904296875, -0.043701171875, -0.0096435546875, -0.0260772705078125, 0.0186309814453125, 0.0098419189453125, 0.0089111328125, 0.053436279296875, 0.037628173828125, -0.0701904296875, 0.03900146484375, -0.04400634765625, -0.004817962646484375, -0.0081329345703125, -0.03411865234375, -0.05072021484375, -0.03228759765625, 0.02044677734375, 0.0023822784423828125, -0.006374359130859375, -0.0386962890625, -0.035400390625, 0.0175323486328125, 0.0262298583984375, 0.00940704345703125, -0.038726806640625, 0.078857421875, -0.0169219970703125, 0.03497314453125, -0.0009331703186035156, 0.040802001953125, 0.0187530517578125, -0.019775390625, 0.01317596435546875, -0.0195770263671875, -0.04071044921875, -0.031341552734375, 0.001972198486328125, 0.0226593017578125, 0.0440673828125, -0.0090179443359375, -0.0023345947265625, -0.0254669189453125, 0.002582550048828125, -0.031219482421875, 0.0065155029296875, -0.0266571044921875, 0.032257080078125, -0.0482177734375, -0.01117706298828125, 0.003047943115234375, -0.027252197265625, -0.06072998046875, 0.041412353515625, 0.0217132568359375, 0.0194854736328125, 0.0038814544677734375, -0.039520263671875, 0.057769775390625, 0.078125, 0.0201416015625, 0.05560302734375, 0.0391845703125, 0.004680633544921875, -0.002468109130859375, 0.0249481201171875, 0.0190277099609375, -0.038177490234375, 0.04351806640625, 0.01511383056640625, 0.022064208984375, 0.0247802734375, -0.0032024383544921875, 0.00733184814453125, 0.01303863525390625, 0.04449462890625, -0.06524658203125, 0.01959228515625, 0.0214080810546875, 0.00495147705078125, 0.00629425048828125, -0.025848388671875, 0.0168304443359375, 0.001598358154296875, 0.0626220703125, -0.00037288665771484375, -0.0121612548828125, 0.0311126708984375, -0.0164794921875, 0.006927490234375, -0.00988006591796875, 0.04498291015625, 0.021759033203125, -0.0634765625, 0.0323486328125, 0.04443359375, 0.01385498046875, -0.01995849609375, -0.00824737548828125, -0.00553131103515625, -0.04638671875, -0.09075927734375, -0.02935791015625, -0.0223846435546875, -0.02886962890625, 0.0022830963134765625, -0.015869140625, 0.02239990234375, 0.056182861328125, -0.023834228515625, -0.01552581787109375, 0.037353515625, -0.019378662109375, -0.036224365234375, 0.0019502639770507812, 0.033111572265625, -0.01084136962890625, -0.0670166015625, 0.0094451904296875, -0.0767822265625, 0.006946563720703125, 0.01096343994140625, 0.07208251953125, 0.0816650390625, -0.029998779296875, -0.032073974609375, 0.028472900390625, 0.0215301513671875, 0.0006937980651855469, -0.0131683349609375, 0.0027065277099609375, -0.06280517578125, -0.047515869140625, 0.0011768341064453125, -0.038848876953125, -0.0142364501953125, -0.0151519775390625, -0.01995849609375, 0.09161376953125, -0.041229248046875, -0.00046539306640625, 0.051727294921875, 0.0423583984375, -0.04815673828125, 0.02154541015625, -0.0274505615234375, 0.058990478515625, 0.034515380859375, 0.051361083984375, -0.042999267578125, -0.024505615234375, 0.0279693603515625, 0.06646728515625, 0.0146636962890625, 0.00820159912109375, -0.01702880859375, -0.0009298324584960938, 0.01399993896484375, 0.00885772705078125, -0.00870513916015625, 0.03558349609375, -0.044189453125, -0.007526397705078125, 0.0007181167602539062, -0.0543212890625, 0.01021575927734375, -0.0040283203125, -0.028656005859375, 0.0030994415283203125, 0.003398895263671875, -0.0228118896484375, 0.00897216796875, 0.0163726806640625, -0.033935546875, 0.018096923828125, 0.005035400390625, 0.037109375, 0.00001245737075805664, 0.04388427734375, 0.0347900390625, 0.0008654594421386719, -0.0048065185546875, -0.029449462890625, 0.042938232421875, 0.01116180419921875, -0.0252532958984375, 0.0283355712890625, 0.0076751708984375, -0.021453857421875, 0.036773681640625, -0.01424407958984375, 0.03668212890625, 0.0087738037109375, 0.01103973388671875, 0.024261474609375, 0.019195556640625, -0.003490447998046875, 0.027435302734375, 0.006587982177734375, -0.0037937164306640625, -0.01678466796875, -0.0297698974609375, 0.0133209228515625, -0.00969696044921875, -0.0113525390625, -0.00909423828125, -0.020263671875, -0.01036834716796875, 0.01502227783203125, -0.036163330078125, -0.037506103515625, 0.006465911865234375, 0.021087646484375, -0.003292083740234375, 0.0275726318359375, 0.0157318115234375, -0.058837890625, -0.022186279296875, -0.0097503662109375, 0.0134735107421875, 0.03558349609375, 0.0254364013671875, 0.036651611328125, -0.0007624626159667969, -0.0139312744140625, -0.0164337158203125, 0.048492431640625, -0.027618408203125, 0.0205841064453125, -0.06787109375, -0.081787109375, 0.01214599609375, 0.056304931640625, 0.055755615234375, 0.044677734375, 0.089111328125, 0.040252685546875, -0.06298828125, 0.003925323486328125, 0.057098388671875, -0.0285797119140625, 0.007061004638671875, -0.040618896484375, -0.0034427642822265625, -0.0002815723419189453, -0.0202484130859375, -0.00922393798828125, 0.0095977783203125, 0.0159149169921875, -0.0140228271484375, -0.0285491943359375, 0.005970001220703125, -0.03411865234375, 0.007045745849609375, 0.0009441375732421875, -0.0268096923828125, -0.00217437744140625, -0.0219268798828125, 0.01393890380859375, -0.0281829833984375, -0.02313232421875, 0.00732421875, 0.035247802734375, 0.0153961181640625, -0.002582550048828125, 0.022674560546875, -0.0006847381591796875, -0.003345489501953125, 0.00531768798828125, -0.0029144287109375, -0.022430419921875, 0.027252197265625, -0.005214691162109375, -0.049774169921875, -0.029632568359375, -0.022857666015625, 0.0214080810546875, 0.004505157470703125, 0.0806884765625, -0.0235443115234375, 0.01497650146484375, 0.02288818359375, 0.007183074951171875, 0.00705718994140625, 0.002941131591796875, 0.0253753662109375, -0.0038242340087890625, 0.005771636962890625, -0.01309967041015625, -0.01262664794921875, 0.045166015625, 0.00957489013671875, -0.04156494140625, 0.062744140625, -0.044830322265625, -0.006969451904296875, -0.030548095703125, 0.0232086181640625, -0.0106964111328125, -0.03607177734375, -0.0343017578125, 0.01226043701171875, 0.032012939453125, 0.0275421142578125, -0.0219879150390625, 0.00885009765625, 0.0017404556274414062, -0.026763916015625, 0.008209228515625, -0.00539398193359375, 0.0077667236328125, 0.0305633544921875, -0.01049041748046875, -0.06072998046875, -0.034881591796875, -0.0022525787353515625, -0.0280303955078125, -0.01491546630859375, 0.041290283203125, -0.019073486328125, 0.00585174560546875, -0.02001953125, 0.0301513671875, 0.02276611328125, -0.0057830810546875, 0.0260467529296875, 0.00896453857421875, -0.019012451171875, 0.0012035369873046875, -0.01087188720703125, -0.02264404296875, -0.0231475830078125, 0.00974273681640625, 0.019561767578125, 0.0033664703369140625, -0.0012454986572265625, -0.0215606689453125, -0.0074615478515625, 0.07135009765625, 0.00893402099609375, -0.044036865234375, 0.04443359375, -0.06268310546875, 0.0186920166015625, 0.0225830078125, -0.03564453125, -0.006320953369140625, -0.0140380859375, -0.020050048828125, -0.023284912109375, -0.050689697265625, 0.02203369140625, -0.026092529296875, 0.037445068359375, 0.054046630859375, -0.01145172119140625, 0.00963592529296875, 0.0311279296875, 0.002716064453125, 0.0928955078125, -0.052642822265625, -0.0323486328125, -0.035675048828125, 0.00843048095703125, 0.00624847412109375, -0.032989501953125, 0.0148773193359375, -0.05438232421875, -0.0116729736328125, -0.01329803466796875, -0.0111236572265625, -0.00249481201171875, -0.057037353515625, -0.07611083984375, 0.0140533447265625, 0.0115814208984375, -0.039825439453125, -0.0462646484375, 0.0139312744140625, 0.0071563720703125, 0.0035266876220703125, -0.0100250244140625, -0.015899658203125, -0.02301025390625, 0.0184326171875, 0.0213623046875, 0.032806396484375, -0.0036678314208984375, 0.06561279296875, -0.0135345458984375, 0.043487548828125, 0.007144927978515625, -0.01220703125, 0.003925323486328125, -0.0232391357421875, 0.043182373046875, 0.0164794921875, -0.0309600830078125, 0.01971435546875, 0.036041259765625, 0.0222320556640625, 0.005275726318359375, 0.01253509521484375, -0.07623291015625, -0.0277557373046875, 0.13427734375, 0.06689453125, 0.05621337890625, -0.0253143310546875, -0.057037353515625, -0.037200927734375, 0.018707275390625, -0.00064849853515625, 0.00766754150390625, -0.06390380859375, 0.017608642578125, 0.026214599609375, -0.012054443359375, 0.0231781005859375, -0.0036067962646484375, -0.0177001953125, 0.00445556640625, 0.0174713134765625, -0.01331329345703125, -0.02032470703125, 0.0108184814453125, 0.0037326812744140625, -0.0233612060546875, 0.0170135498046875, -0.042633056640625, 0.0206756591796875, -0.003925323486328125, -0.0411376953125, -0.01947021484375, 0.01338958740234375, -0.0562744140625, 0.0162506103515625, -0.032470703125, 0.055816650390625, -0.053131103515625, -0.0106353759765625, -0.0165252685546875, -0.0219268798828125, -0.01042938232421875, -0.037933349609375, 0.026580810546875, -0.01068878173828125, -0.0207061767578125, 0.061187744140625, 0.0269775390625, 0.06103515625, -0.01522064208984375, 0.07427978515625, -0.028656005859375, -0.028533935546875, -0.030731201171875, -0.021331787109375, 0.014373779296875, 0.05230712890625, 0.0347900390625, -0.034393310546875, 0.072509765625, 0.04229736328125, 0.036346435546875, 0.0232086181640625 ]
7c3fb0dd02a30643bbbef5c0c4fd31bb130a0050
Wordpress Stackexchange Q: Make WooCommerce pages accessible for logged in users only I have a website using WordPress, and an e-commerce using WooCommerce. I would like my shop (and all its pages) to be seen by logged in users only. Via the User Access Manager plugin, I have denied access to the shop page, but with a direct link to a product etc. one can access that particular page nonetheless, even if the user is not logged in. How can I redirect users, who are not logged in, to another page if they try to access a WooCommerce page? A: I just changed the redirection to wp_redirect( site_url('my-account/') ) so users are redirected on the "My-Account" page if not logged in or registered.
Q: Make WooCommerce pages accessible for logged in users only I have a website using WordPress, and an e-commerce using WooCommerce. I would like my shop (and all its pages) to be seen by logged in users only. Via the User Access Manager plugin, I have denied access to the shop page, but with a direct link to a product etc. one can access that particular page nonetheless, even if the user is not logged in. How can I redirect users, who are not logged in, to another page if they try to access a WooCommerce page? A: I just changed the redirection to wp_redirect( site_url('my-account/') ) so users are redirected on the "My-Account" page if not logged in or registered. A: Put this in your functions.php file: function wpse_131562_redirect() { if ( ! is_user_logged_in() && (is_woocommerce() || is_cart() || is_checkout()) ) { // feel free to customize the following line to suit your needs wp_redirect(home_url()); exit; } } add_action('template_redirect', 'wpse_131562_redirect'); What does it do? We check if a not-logged-in user wants to see a WooCommerce page, and redirect him/her to our home page. A: I would change to this wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) ); instead of wp_redirect( site_url('my-account/') );
wordpress
{ "language": "en", "length": 200, "provenance": "stackexchange_00019.jsonl.gz:441718", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131562" }
[ 0.0545654296875, 0.0086669921875, -0.006183624267578125, -0.01416015625, 0.01134490966796875, -0.036865234375, 0.0205078125, -0.044097900390625, 0.0180816650390625, 0.0096282958984375, -0.04718017578125, -0.006076812744140625, -0.0179290771484375, -0.006008148193359375, -0.01385498046875, -0.034393310546875, -0.01274871826171875, 0.028778076171875, 0.031982421875, -0.01293182373046875, 0.0017976760864257812, -0.00152587890625, 0.0338134765625, -0.019317626953125, 0.02252197265625, -0.0190887451171875, 0.11090087890625, -0.04571533203125, 0.068115234375, -0.0026702880859375, 0.033233642578125, -0.07659912109375, 0.0035152435302734375, 0.00988006591796875, -0.0019283294677734375, -0.030059814453125, -0.00788116455078125, 0.01245880126953125, 0.0125885009765625, 0.0015773773193359375, 0.026763916015625, -0.009063720703125, -0.0285491943359375, 0.0012693405151367188, -0.038543701171875, -0.039794921875, 0.0191497802734375, 0.00140380859375, 0.0295257568359375, 0.0029144287109375, -0.0052337646484375, 0.06427001953125, 0.004852294921875, 0.0169677734375, -0.0166168212890625, -0.0029468536376953125, -0.027008056640625, 0.023193359375, 0.043182373046875, -0.023193359375, -0.03704833984375, -0.037933349609375, 0.0214996337890625, -0.0217742919921875, 0.01534271240234375, 0.00827789306640625, -0.005596160888671875, 0.0255279541015625, -0.046783447265625, 0.0135498046875, 0.0220947265625, -0.0308074951171875, -0.004467010498046875, 0.027008056640625, -0.06793212890625, -0.0289764404296875, 0.045379638671875, -0.016326904296875, 0.0260162353515625, 0.0042724609375, -0.015960693359375, -0.0270538330078125, -0.02130126953125, -0.03271484375, 0.0143280029296875, 0.006256103515625, -0.01495361328125, -0.0016870498657226562, 0.0019989013671875, -0.0128326416015625, -0.017120361328125, 0.0301055908203125, -0.0141143798828125, 0.01502227783203125, -0.03704833984375, -0.006511688232421875, 0.0243377685546875, 0.04071044921875, -0.00010895729064941406, 0.00412750244140625, 0.0305023193359375, -0.057525634765625, 0.016357421875, -0.029022216796875, -0.00940704345703125, 0.03485107421875, 0.0181427001953125, 0.045745849609375, 0.006908416748046875, 0.0176849365234375, 0.00937652587890625, -0.0088653564453125, -0.0109710693359375, -0.0623779296875, 0.021575927734375, 0.046234130859375, -0.0199127197265625, 0.01495361328125, 0.006420135498046875, -0.00830078125, -0.027496337890625, 0.00182342529296875, 0.020233154296875, -0.0263671875, 0.0079345703125, -0.00508880615234375, -0.007106781005859375, -0.0234222412109375, 0.03045654296875, -0.004917144775390625, -0.016448974609375, -0.0037250518798828125, -0.0179595947265625, 0.02117919921875, 0.003448486328125, -0.0009350776672363281, 0.004199981689453125, 0.0078277587890625, -0.0016489028930664062, 0.0029125213623046875, 0.0136566162109375, -0.0272674560546875, -0.00992584228515625, -0.0029506683349609375, 0.050201416015625, 0.020294189453125, 0.006999969482421875, 0.01152801513671875, 0.01776123046875, 0.003849029541015625, 0.009002685546875, -0.015838623046875, -0.01245880126953125, 0.0126495361328125, 0.06402587890625, 0.0201263427734375, 0.06573486328125, -0.001861572265625, -0.02227783203125, 0.00217437744140625, 0.0377197265625, 0.0223388671875, 0.01323699951171875, -0.0144195556640625, -0.045654296875, -0.044921875, -0.03448486328125, -0.014068603515625, 0.032501220703125, 0.0301361083984375, 0.009124755859375, -0.055023193359375, 0.046661376953125, 0.0279388427734375, -0.0161590576171875, 0.04180908203125, -0.0245513916015625, 0.07891845703125, 0.0242462158203125, 0.003711700439453125, 0.02264404296875, -0.01277923583984375, 0.09906005859375, -0.010223388671875, -0.0121917724609375, 0.021728515625, -0.007656097412109375, -0.0031795501708984375, -0.0009298324584960938, -0.00464630126953125, 0.02862548828125, 0.04534912109375, -0.034393310546875, 0.01177215576171875, -0.0233306884765625, -0.0428466796875, 0.038726806640625, -0.006862640380859375, -0.00815582275390625, 0.03369140625, 0.042144775390625, -0.0018310546875, 0.0020656585693359375, -0.006687164306640625, -0.003719329833984375, -0.004756927490234375, 0.005733489990234375, -0.00014460086822509766, -0.0273895263671875, 0.03424072265625, 0.01535797119140625, 0.033416748046875, -0.020599365234375, -0.0364990234375, 0.01134490966796875, 0.00852203369140625, -0.03448486328125, 0.11260986328125, 0.010833740234375, 0.07940673828125, 0.032440185546875, -0.079833984375, 0.0543212890625, -0.026031494140625, 0.033050537109375, 0.037933349609375, -0.020050048828125, 0.00677490234375, 0.027618408203125, 0.03155517578125, -0.024078369140625, -0.00856781005859375, 0.006519317626953125, 0.01000213623046875, -0.0271759033203125, 0.00675201416015625, -0.0173187255859375, -0.0555419921875, 0.010894775390625, 0.04150390625, 0.0142059326171875, 0.0227508544921875, -0.0391845703125, -0.003986358642578125, 0.0191802978515625, -0.05810546875, -0.01103973388671875, 0.0196685791015625, -0.0029850006103515625, 0.0167236328125, 0.00008183717727661133, -0.0018644332885742188, 0.033233642578125, -0.003063201904296875, 0.0011234283447265625, 0.037139892578125, -0.0179901123046875, -0.00756072998046875, -0.027862548828125, 0.00693511962890625, -0.006275177001953125, -0.034881591796875, 0.0132598876953125, -0.0245208740234375, 0.024993896484375, -0.016326904296875, 0.015380859375, -0.004520416259765625, -0.0156707763671875, -0.022216796875, 0.0210418701171875, -0.029937744140625, 0.00937652587890625, 0.037811279296875, 0.03424072265625, -0.075439453125, -0.030364990234375, -0.0092010498046875, 0.036865234375, -0.005489349365234375, 0.013885498046875, 0.00274658203125, -0.003070831298828125, 0.002483367919921875, 0.010528564453125, -0.00904083251953125, 0.0305938720703125, 0.062103271484375, -0.01508331298828125, -0.0301361083984375, 0.022552490234375, -0.01297760009765625, -0.038482666015625, 0.033203125, -0.0223388671875, -0.047149658203125, -0.00897979736328125, -0.06317138671875, 0.055084228515625, -0.0633544921875, 0.0285186767578125, 0.068603515625, -0.0183563232421875, 0.0197296142578125, 0.01416778564453125, -0.0228729248046875, -0.00543212890625, 0.0226898193359375, 0.0018510818481445312, -0.004703521728515625, -0.04144287109375, 0.053466796875, 0.020111083984375, 0.0271453857421875, -0.00347137451171875, -0.0185394287109375, -0.0226287841796875, 0.00319671630859375, -0.0772705078125, -0.09027099609375, -0.057342529296875, -0.08172607421875, 0.0208740234375, -0.026397705078125, -0.021728515625, 0.0218658447265625, 0.01129913330078125, 0.0167388916015625, -0.011444091796875, 0.00965118408203125, -0.0253143310546875, -0.023895263671875, -0.0194854736328125, 0.01275634765625, -0.01430511474609375, -0.006359100341796875, -0.00986480712890625, 0.002841949462890625, -0.024810791015625, -0.0044097900390625, -0.01311492919921875, 0.00568389892578125, 0.0185089111328125, -0.04962158203125, -0.038482666015625, -0.0024051666259765625, -0.0013875961303710938, 0.004108428955078125, -0.005786895751953125, -0.03057861328125, 0.0289459228515625, -0.0294036865234375, 0.0391845703125, -0.01052093505859375, 0.0246734619140625, -0.0214996337890625, -0.052520751953125, -0.00249481201171875, -0.01172637939453125, -0.052215576171875, 0.004611968994140625, -0.0293426513671875, -0.053985595703125, -0.003200531005859375, 0.03924560546875, -0.00841522216796875, 0.0006856918334960938, -0.043060302734375, 0.035736083984375, 0.026885986328125, -0.0226287841796875, -0.014129638671875, 0.023773193359375, 0.01102447509765625, 0.039154052734375, -0.020416259765625, 0.0352783203125, -0.01342010498046875, 0.003162384033203125, 0.01324462890625, -0.0010156631469726562, -0.0088043212890625, 0.008087158203125, -0.0229949951171875, -0.038116455078125, 0.035675048828125, -0.022308349609375, 0.0183563232421875, -0.042877197265625, -0.0183258056640625, -0.0408935546875, 0.08416748046875, -0.0308074951171875, -0.01006317138671875, 0.0230560302734375, 0.01239776611328125, -0.025726318359375, 0.0078582763671875, -0.060028076171875, -0.01629638671875, -0.045684814453125, -0.0029201507568359375, -0.01099395751953125, -0.01453399658203125, 0.01465606689453125, -0.0537109375, -0.01190948486328125, -0.05462646484375, 0.02008056640625, 0.004528045654296875, 0.01934814453125, 0.017333984375, -0.0021343231201171875, 0.0011072158813476562, -0.01068115234375, -0.016845703125, -0.05316162109375, -0.01837158203125, 0.049468994140625, 0.058074951171875, -0.006191253662109375, -0.0140228271484375, -0.0222930908203125, 0.03765869140625, -0.004467010498046875, 0.0333251953125, -0.021514892578125, 0.006561279296875, -0.0061798095703125, -0.00782012939453125, -0.016510009765625, 0.0007266998291015625, 0.0264892578125, -0.002933502197265625, -0.040924072265625, -0.0491943359375, -0.047698974609375, -0.019622802734375, 0.012786865234375, -0.043365478515625, -0.0916748046875, -0.06298828125, 0.0019483566284179688, -0.0017232894897460938, -0.0024051666259765625, 0.00775146484375, -0.052825927734375, -0.070556640625, 0.0322265625, -0.0075225830078125, -0.0162353515625, 0.017364501953125, 0.025299072265625, 0.005096435546875, -0.0218048095703125, -0.0222625732421875, 0.0211944580078125, 0.00580596923828125, 0.007904052734375, 0.03509521484375, -0.0242767333984375, -0.002742767333984375, 0.053466796875, -0.0197906494140625, 0.01104736328125, -0.00958251953125, 0.02215576171875, -0.028289794921875, -0.061737060546875, 0.037353515625, -0.046661376953125, 0.0117340087890625, 0.0285186767578125, 0.00795745849609375, -0.023101806640625, 0.0045318603515625, 0.0137481689453125, 0.0002694129943847656, 0.0022220611572265625, -0.0037517547607421875, 0.006290435791015625, -0.0213623046875, 0.01129913330078125, 0.03607177734375, 0.046142578125, -0.01284027099609375, 0.0081024169921875, 0.0217132568359375, -0.016143798828125, -0.0261993408203125, -0.06292724609375, -0.006988525390625, -0.0158538818359375, 0.0055084228515625, -0.0095367431640625, 0.0062103271484375, -0.0120391845703125, 0.049713134765625, 0.0031147003173828125, -0.055084228515625, 0.031341552734375, -0.045806884765625, -0.0147552490234375, 0.026092529296875, -0.0232086181640625, 0.0452880859375, -0.01543426513671875, -0.041259765625, 0.0076751708984375, -0.041900634765625, -0.060882568359375, -0.06524658203125, -0.0016565322875976562, -0.00664520263671875, 0.0027179718017578125, 0.0321044921875, 0.08929443359375, 0.006404876708984375, 0.061920166015625, -0.0285797119140625, 0.0275726318359375, 0.012359619140625, 0.02490234375, 0.01433563232421875, -0.00458526611328125, -0.009002685546875, 0.00447845458984375, -0.01043701171875, -0.004608154296875, -0.037750244140625, 0.031829833984375, 0.00801849365234375, -0.01419830322265625, 0.022125244140625, -0.006961822509765625, -0.008941650390625, 0.005596160888671875, 0.01219940185546875, -0.054840087890625, -0.06463623046875, -0.0192413330078125, -0.002811431884765625, 0.019927978515625, -0.05712890625, -0.0006804466247558594, -0.000286102294921875, -0.03289794921875, -0.017791748046875, 0.0183563232421875, -0.0479736328125, -0.016632080078125, -0.005100250244140625, -0.00797271728515625, -0.0183563232421875, 0.0193634033203125, -0.045196533203125, 0.00803375244140625, -0.03729248046875, -0.0097808837890625, 0.037567138671875, -0.002819061279296875, 0.028228759765625, -0.044677734375, -0.0205535888671875, -0.02484130859375, -0.013092041015625, 0.060577392578125, 0.024017333984375, -0.03729248046875, 0.00342559814453125, -0.02227783203125, -0.024688720703125, -0.040771484375, -0.0206298828125, -0.048248291015625, 0.00609588623046875, 0.0168914794921875, 0.02081298828125, -0.02752685546875, -0.05841064453125, -0.00872039794921875, 0.01251983642578125, 0.0288543701171875, 0.03326416015625, -0.009674072265625, 0.04998779296875, 0.00862884521484375, 0.0469970703125, 0.006107330322265625, 0.00325775146484375, -0.03997802734375, -0.00878143310546875, -0.00042366981506347656, 0.0016603469848632812, -0.0170135498046875, -0.0297393798828125, -0.00251007080078125, 0.01953125, 0.08001708984375, 0.0015172958374023438, -0.01177978515625, -0.0256195068359375, -0.0019321441650390625, -0.030548095703125, 0.05596923828125, -0.0322265625, -0.010406494140625, -0.0225372314453125, 0.01483917236328125, 0.03472900390625, 0.0038890838623046875, -0.0390625, 0.017791748046875, 0.021392822265625, 0.040283203125, -0.0291595458984375, -0.04901123046875, 0.049713134765625, 0.060211181640625, -0.0097198486328125, 0.02789306640625, -0.0026493072509765625, 0.0029144287109375, 0.0316162109375, 0.0281219482421875, 0.00799560546875, 0.0225677490234375, 0.04083251953125, -0.0158843994140625, -0.014984130859375, -0.01116180419921875, -0.017608642578125, 0.013885498046875, 0.11822509765625, 0.08099365234375, -0.1737060546875, 0.0037517547607421875, 0.01043701171875, 0.0214996337890625, 0.018035888671875, -0.0005693435668945312, 0.01763916015625, -0.0027828216552734375, 0.03814697265625, -0.0280303955078125, -0.00827789306640625, 0.0159454345703125, -0.0259552001953125, 0.004726409912109375, 0.0273895263671875, 0.031341552734375, -0.004932403564453125, -0.03167724609375, -0.034210205078125, 0.0118408203125, -0.00948333740234375, -0.037384033203125, -0.0400390625, 0.0216064453125, -0.023101806640625, -0.058013916015625, 0.01513671875, -0.048980712890625, 0.05877685546875, 0.06463623046875, 0.0108184814453125, 0.0164642333984375, 0.054534912109375, -0.0034427642822265625, 0.0194854736328125, 0.0069122314453125, -0.01056671142578125, 0.030548095703125, -0.044830322265625, -0.0159912109375, 0.018463134765625, -0.095458984375, 0.011932373046875, -0.0221099853515625, 0.006069183349609375, -0.0152587890625, -0.020294189453125, 0.04193115234375, -0.0089263916015625, -0.0167694091796875, 0.019256591796875, 0.0188140869140625, -0.00885772705078125, -0.0017070770263671875, 0.0310821533203125, -0.007175445556640625, 0.019012451171875, 0.01419830322265625, 0.0022830963134765625, -0.0144500732421875, 0.0243988037109375, -0.064208984375, -0.00019943714141845703, -0.031036376953125, 0.03778076171875, 0.0255584716796875, -0.01849365234375, 0.0052947998046875, -0.0300750732421875, -0.022247314453125, 0.048919677734375, 0.033233642578125, 0.0557861328125, 0.0006303787231445312, -0.01568603515625, 0.0379638671875, 0.034759521484375, 0.046356201171875, 0.023345947265625, -0.05963134765625, 0.000034809112548828125, 0.043731689453125, 0.0088958740234375, 0.0009002685546875, 0.0689697265625, 0.00505828857421875, -0.034454345703125, 0.0430908203125, -0.009185791015625, 0.0298614501953125, -0.018829345703125, 0.0177001953125, 0.0009822845458984375, -0.021148681640625, -0.06292724609375, -0.0310821533203125, 0.0506591796875, -0.0682373046875, -0.003971099853515625, 0.0257568359375, 0.007293701171875, -0.0174407958984375, 0.00923919677734375, -0.0225982666015625, -0.008056640625, 0.0017747879028320312, -0.019866943359375, 0.0217132568359375, 0.0013055801391601562, 0.01739501953125, 0.01763916015625, 0.01458740234375, 0.037384033203125, -0.019500732421875, 0.010101318359375, 0.00783538818359375, -0.0226898193359375, 0.03839111328125, 0.028717041015625, 0.0215606689453125, -0.022216796875, 0.0067901611328125, 0.049957275390625, 0.04901123046875, -0.0272674560546875, -0.00939178466796875, -0.001483917236328125, 0.006786346435546875, 0.029998779296875, -0.00946044921875, 0.03643798828125, -0.0013418197631835938, 0.01198577880859375, -0.038482666015625, 0.0202178955078125, 0.051483154296875, 0.0066375732421875, -0.0122222900390625, -0.0292510986328125, -0.053802490234375, 0.0445556640625, -0.0099029541015625, -0.028717041015625, -0.00806427001953125, 0.0019216537475585938, 0.01898193359375, 0.01031494140625, 0.021820068359375, -0.00399017333984375, -0.007232666015625, 0.00907135009765625, -0.01288604736328125, 0.0116729736328125, -0.042999267578125, -0.045745849609375, 0.002933502197265625, 0.0543212890625, -0.0197906494140625, -0.0328369140625, -0.034820556640625, 0.038543701171875, 0.04815673828125, -0.0289306640625, 0.0033855438232421875, 0.006427764892578125, 0.048828125, 0.0139617919921875, 0.02716064453125, -0.00827789306640625, -0.037689208984375, -0.058502197265625, 0.0513916015625, 0.020233154296875, -0.0084686279296875, 0.04925537109375, -0.0033016204833984375, -0.04022216796875, 0.03192138671875, -0.0282745361328125, 0.10992431640625, -0.0001285076141357422, -0.0660400390625, -0.0146942138671875, -0.05938720703125, -0.01079559326171875, 0.01561737060546875, 0.0228118896484375, -0.0185546875, 0.04034423828125, 0.0540771484375, 0.006801605224609375, 0.006988525390625, -0.015167236328125, 0.031951904296875, -0.049224853515625, 0.00928497314453125, 0.002056121826171875, -0.0271759033203125, -0.0164642333984375, -0.035980224609375, 0.036590576171875, 0.033233642578125, 0.04730224609375, -0.01104736328125, 0.04815673828125, -0.03271484375, 0.0098419189453125, -0.023162841796875, -0.043121337890625, 0.0745849609375, -0.01087188720703125, -0.0474853515625, 0.010040283203125, -0.045654296875, 0.041046142578125, 0.0028858184814453125, 0.007083892822265625, 0.01343536376953125, -0.01500701904296875, 0.01358795166015625, 0.017303466796875, -0.0014314651489257812, -0.0273895263671875, -0.053558349609375, -0.034332275390625, 0.02471923828125, -0.00847625732421875, -0.0084991455078125, -0.0273590087890625, 0.0382080078125, -0.0399169921875, -0.0302734375, -0.00653839111328125, -0.037994384765625, -0.024932861328125, 0.010040283203125, -0.00885009765625, 0.07464599609375, 0.007476806640625, -0.0218048095703125, 0.0230560302734375, 0.0186767578125, -0.0634765625, 0.019195556640625, -0.0175323486328125, -0.0208740234375, 0.0265045166015625, 0.0003540515899658203, -0.0009665489196777344, -0.00598907470703125, 0.005390167236328125, -0.05084228515625, -0.0256805419921875, -0.029083251953125, -0.022125244140625, -0.00262451171875, -0.01082611083984375, 0.002105712890625, 0.029052734375, -0.0241546630859375, -0.017974853515625, 0.016937255859375, 0.002941131591796875, -0.01126861572265625, -0.043426513671875, 0.0263824462890625, -0.014251708984375, 0.0584716796875, -0.0389404296875, -0.0380859375, 0.0167388916015625, 0.0262603759765625, -0.028167724609375, 0.0243682861328125, -0.0423583984375, -0.037200927734375, -0.035614013671875, 0.00960540771484375, 0.043609619140625, -0.02459716796875, 0.0023651123046875, -0.0178375244140625, -0.007724761962890625, 0.0295867919921875, -0.0301971435546875, -0.04327392578125, -0.0007486343383789062, 0.0031585693359375, 0.035797119140625, 0.004474639892578125, -0.028289794921875, 0.011688232421875, -0.002567291259765625, 0.0386962890625, -0.049102783203125, -0.0172882080078125, -0.04791259765625, -0.03692626953125, 0.10205078125, 0.01293182373046875, -0.02398681640625, -0.06640625, 0.0533447265625, -0.003082275390625, 0.033935546875, -0.021209716796875, -0.00030422210693359375, -0.00261688232421875, 0.0167694091796875, 0.01456451416015625, -0.06109619140625, 0.056915283203125, 0.004039764404296875, -0.0305633544921875, 0.0211944580078125, 0.0274810791015625, -0.023590087890625, 0.002391815185546875, -0.01282501220703125, 0.0300750732421875, 0.035247802734375, -0.030181884765625, 0.0207061767578125, 0.0093231201171875, 0.01251983642578125, 0.01055908203125, -0.000640869140625, 0.0036754608154296875, -0.053924560546875, -0.0313720703125, -0.00518798828125, -0.017425537109375, 0.050628662109375, -0.05657958984375, -0.032470703125, -0.0298309326171875, 0.005016326904296875, 0.027008056640625, -0.060394287109375, 0.037841796875, 0.007598876953125, -0.030517578125, 0.009613037109375, 0.024017333984375, -0.053955078125, 0.00644683837890625, 0.03790283203125, 0.01029205322265625, -0.0701904296875, 0.002864837646484375, -0.008453369140625, -0.0201873779296875, -0.035980224609375, 0.007801055908203125, 0.01021575927734375, -0.044036865234375, -0.02752685546875, 0.01284027099609375, 0.002918243408203125, -0.03143310546875, 0.0089874267578125, -0.0008945465087890625, 0.049224853515625, -0.051025390625, -0.0192108154296875, -0.045806884765625, 0.045684814453125, 0.0155181884765625, 0.06695556640625, -0.005096435546875, 0.0163421630859375, 0.0576171875, 0.0196380615234375, 0.0032978057861328125, -0.0308990478515625, -0.0009722709655761719, 0.0277862548828125, -0.0008034706115722656, -0.016143798828125, 0.0196075439453125, -0.047943115234375, -0.00406646728515625, -0.0029506683349609375, 0.0171356201171875, -0.049713134765625, 0.028350830078125, -0.014556884765625, 0.01519775390625, 0.0157318115234375 ]
40e08ec5a18370821757008defd7de4940787619
Wordpress Stackexchange Q: how is it possible that using wp_insert_category throw a fatal error? how is it possible that using wp_insert_category throw a fatal error ? I am using it as explained : http://codex.wordpress.org/Function_Reference/wp_insert_category with no change except: $cat_defaults = array( 'cat_name' => 'some_name', 'category_description' => 'as asdfasdf sdf adfa fas f', 'category_nicename' => '', 'category_parent' => '', 'taxonomy' => 'category' ); $someSome = wp_insert_category($cat_defaults); i dont know if its relevant however i execute it on add_action( 'init', array($this, 'registerCustoms') ); And i get the following error : Fatal error: Call to undefined function wp_insert_category() in /home1/stodeckc/public_html/podio-wp-sync/wp-content/plugins/podio_management/libs/appSync/appSync_custom.php on line 61 Any ideas? A: If you used wp_insert_category on Front, you must add this: require_once( ABSPATH . '/wp-admin/includes/taxonomy.php');
Q: how is it possible that using wp_insert_category throw a fatal error? how is it possible that using wp_insert_category throw a fatal error ? I am using it as explained : http://codex.wordpress.org/Function_Reference/wp_insert_category with no change except: $cat_defaults = array( 'cat_name' => 'some_name', 'category_description' => 'as asdfasdf sdf adfa fas f', 'category_nicename' => '', 'category_parent' => '', 'taxonomy' => 'category' ); $someSome = wp_insert_category($cat_defaults); i dont know if its relevant however i execute it on add_action( 'init', array($this, 'registerCustoms') ); And i get the following error : Fatal error: Call to undefined function wp_insert_category() in /home1/stodeckc/public_html/podio-wp-sync/wp-content/plugins/podio_management/libs/appSync/appSync_custom.php on line 61 Any ideas? A: If you used wp_insert_category on Front, you must add this: require_once( ABSPATH . '/wp-admin/includes/taxonomy.php'); A: The init action is the wrong place. This is because init runs on all requests, admin or front-end, but the wp_insert_category function is an admin-side only function. You generally don't insert categories from the front end. Move to a more specific action, one that will be run in the admin side. Probably from your plugin's admin pages. A: you have to use hook admin init function _CreateCategory(){ $my_cat = array('cat_name' => 'Newcategory', 'category_description' => 'Descrip', 'category_nicename' => 'cat-slug', 'category_parent' => ''); // Create the category wp_insert_category($my_cat); } add_action('admin_init','_CreateCategory'); And that's it A: I think here is not required to admin_init, because this also define on taxonomy.php So please use on this way: require_once('wp-load.php' ); require_once(ABSPATH . 'wp-admin/includes/taxonomy.php'); $cat_defaults = array( 'cat_name' => 'some_name', 'category_description' => 'as asdfasdf sdf adfa fas f', 'category_nicename' => '', 'category_parent' => '', 'taxonomy' => 'category' ); $someSome = wp_insert_category($cat_defaults);
wordpress
{ "language": "en", "length": 260, "provenance": "stackexchange_00019.jsonl.gz:441746", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131663" }
[ 0.05999755859375, 0.02239990234375, -0.0244598388671875, -0.07586669921875, 0.044708251953125, -0.0203857421875, 0.006000518798828125, -0.00856781005859375, 0.01812744140625, 0.003398895263671875, -0.046234130859375, -0.0243377685546875, -0.0019435882568359375, -0.0167236328125, -0.0296783447265625, -0.038421630859375, 0.0091400146484375, -0.0014772415161132812, 0.0239715576171875, -0.00267791748046875, -0.005084991455078125, 0.00231170654296875, 0.03564453125, -0.02154541015625, 0.005290985107421875, -0.0060882568359375, 0.007778167724609375, -0.051849365234375, -0.01355743408203125, -0.030426025390625, 0.0045166015625, 0.04669189453125, 0.00434112548828125, 0.0224151611328125, -0.0052337646484375, 0.001964569091796875, 0.04107666015625, 0.0018873214721679688, 0.005741119384765625, 0.04486083984375, 0.0186767578125, -0.004131317138671875, 0.05194091796875, 0.014312744140625, 0.0085296630859375, -0.0501708984375, 0.007904052734375, -0.058563232421875, -0.004535675048828125, -0.059722900390625, 0.045166015625, 0.003086090087890625, 0.06494140625, -0.05645751953125, -0.01143646240234375, 0.029296875, -0.01006317138671875, 0.034393310546875, 0.02630615234375, 0.0221405029296875, -0.055328369140625, 0.00673675537109375, 0.01236724853515625, -0.061370849609375, 0.035186767578125, -0.006717681884765625, 0.021575927734375, 0.034942626953125, -0.0285797119140625, 0.034942626953125, 0.0240936279296875, -0.0183868408203125, -0.0195465087890625, 0.041046142578125, 0.00559234619140625, -0.0447998046875, 0.0107879638671875, -0.0067291259765625, 0.021026611328125, 0.0711669921875, 0.035400390625, 0.020599365234375, -0.004138946533203125, -0.031341552734375, 0.040618896484375, 0.00562286376953125, -0.0009927749633789062, -0.031829833984375, -0.0261077880859375, -0.020721435546875, -0.012603759765625, -0.0177154541015625, -0.04766845703125, 0.013671875, 0.01727294921875, -0.035675048828125, -0.004314422607421875, 0.062347412109375, -0.020751953125, 0.0293731689453125, -0.042083740234375, -0.0068359375, -0.005580902099609375, -0.0528564453125, 0.03741455078125, 0.0186004638671875, -0.058837890625, -0.033416748046875, 0.03167724609375, 0.0259857177734375, -0.00995635986328125, -0.01407623291015625, -0.0011377334594726562, -0.03997802734375, 0.0216064453125, 0.047393798828125, -0.017181396484375, 0.039703369140625, 0.007091522216796875, 0.03814697265625, -0.0154266357421875, 0.0196990966796875, -0.032440185546875, -0.0238037109375, -0.0094451904296875, -0.034271240234375, 0.0009918212890625, 0.01377105712890625, -0.0018262863159179688, -0.047882080078125, -0.036102294921875, 0.031951904296875, 0.1048583984375, 0.050323486328125, 0.0254669189453125, -0.0030670166015625, 0.028106689453125, -0.0103912353515625, 0.01427459716796875, -0.0105743408203125, 0.016876220703125, -0.0004353523254394531, 0.011474609375, 0.003368377685546875, 0.044403076171875, -0.00109100341796875, 0.0172576904296875, 0.01800537109375, 0.017608642578125, -0.01206207275390625, 0.0499267578125, -0.035064697265625, 0.040924072265625, -0.0009794235229492188, -0.038787841796875, -0.003269195556640625, 0.01073455810546875, -0.02947998046875, -0.047515869140625, -0.0501708984375, -0.0033416748046875, -0.00890350341796875, 0.034759521484375, -0.0248870849609375, -0.03900146484375, 0.0281829833984375, -0.06976318359375, -0.006557464599609375, 0.02264404296875, 0.013702392578125, 0.003963470458984375, 0.00978851318359375, -0.00372314453125, 0.023162841796875, 0.014801025390625, 0.00969696044921875, -0.0110321044921875, 0.006679534912109375, 0.02471923828125, 0.042724609375, -0.0206146240234375, -0.0452880859375, 0.029937744140625, -0.015960693359375, -0.0299835205078125, -0.0025081634521484375, 0.019500732421875, 0.0301971435546875, 0.0067138671875, 0.0214080810546875, 0.0303192138671875, 0.0202178955078125, -0.0102996826171875, -0.0019159317016601562, -0.019866943359375, -0.0323486328125, 0.0028514862060546875, 0.0041961669921875, -0.015838623046875, 0.007343292236328125, -0.02178955078125, -0.007965087890625, 0.021209716796875, -0.006580352783203125, -0.07037353515625, 0.0254669189453125, -0.035064697265625, 0.06182861328125, -0.0220184326171875, 0.0198822021484375, 0.0081787109375, -0.00853729248046875, 0.003070831298828125, -0.06939697265625, -0.030059814453125, -0.0011072158813476562, -0.039581298828125, 0.0384521484375, -0.0159454345703125, 0.045623779296875, -0.037750244140625, -0.015533447265625, -0.0211334228515625, -0.0126800537109375, 0.0203857421875, 0.03948974609375, -0.03826904296875, 0.012908935546875, -0.01082611083984375, 0.041717529296875, -0.049560546875, 0.01052093505859375, 0.01149749755859375, 0.00321197509765625, -0.0244903564453125, 0.0055084228515625, 0.006450653076171875, -0.05810546875, 0.00003820657730102539, 0.04632568359375, 0.047210693359375, -0.0205841064453125, -0.0206146240234375, -0.0185546875, 0.00933074951171875, -0.1011962890625, -0.025360107421875, -0.007144927978515625, -0.015350341796875, 0.03179931640625, 0.03643798828125, 0.034942626953125, 0.002399444580078125, -0.02667236328125, 0.007965087890625, 0.04254150390625, -0.01477813720703125, -0.06219482421875, 0.0267791748046875, -0.019561767578125, 0.03594970703125, -0.071044921875, -0.0782470703125, 0.0091400146484375, 0.025787353515625, -0.007770538330078125, 0.01509857177734375, -0.004306793212890625, 0.0144805908203125, -0.004611968994140625, -0.0018339157104492188, -0.0635986328125, -0.01184844970703125, 0.02337646484375, 0.0259246826171875, 0.024688720703125, -0.05267333984375, 0.019073486328125, 0.007350921630859375, 0.0145263671875, 0.0007658004760742188, 0.08807373046875, 0.01496124267578125, -0.016265869140625, -0.0587158203125, -0.0653076171875, -0.00115203857421875, 0.005100250244140625, -0.01335906982421875, -0.040252685546875, 0.003818511962890625, 0.0195770263671875, -0.00911712646484375, 0.0103607177734375, -0.01355743408203125, -0.0136260986328125, 0.045684814453125, 0.0092926025390625, -0.003223419189453125, 0.016815185546875, 0.0419921875, 0.036712646484375, 0.00719451904296875, -0.0094451904296875, 0.0113372802734375, 0.0157012939453125, 0.0279388427734375, 0.0176239013671875, 0.00588226318359375, -0.007213592529296875, -0.0110321044921875, 0.01482391357421875, 0.0400390625, 0.07861328125, 0.0102691650390625, -0.034332275390625, 0.0173797607421875, 0.056060791015625, -0.035491943359375, -0.0679931640625, -0.01325225830078125, 0.0003986358642578125, -0.00392913818359375, 0.035430908203125, -0.0030975341796875, -0.01512908935546875, 0.0292510986328125, -0.0010786056518554688, 0.00984954833984375, -0.0556640625, -0.039398193359375, -0.086181640625, -0.073974609375, -0.07470703125, 0.0013065338134765625, -0.0091552734375, 0.00890350341796875, 0.08660888671875, 0.0193634033203125, -0.024810791015625, 0.02984619140625, 0.01132965087890625, -0.026702880859375, 0.00904083251953125, 0.0160675048828125, -0.044189453125, 0.03533935546875, -0.007717132568359375, 0.02587890625, 0.0292510986328125, -0.018585205078125, -0.01331329345703125, 0.0013599395751953125, 0.0110015869140625, 0.0236663818359375, 0.0255279541015625, -0.002185821533203125, -0.01163482666015625, 0.01247406005859375, -0.045867919921875, -0.011627197265625, 0.0087890625, -0.0223846435546875, 0.07257080078125, 0.0184783935546875, -0.017303466796875, 0.03277587890625, -0.00833892822265625, -0.042572021484375, 0.0214691162109375, -0.0285797119140625, -0.0236968994140625, -0.000579833984375, -0.0195465087890625, -0.037322998046875, 0.0296173095703125, 0.004871368408203125, -0.00858306884765625, -0.006023406982421875, -0.00494384765625, 0.02496337890625, 0.00914764404296875, 0.0038509368896484375, -0.031005859375, -0.048919677734375, -0.01381683349609375, -0.07696533203125, 0.005313873291015625, -0.03778076171875, 0.03204345703125, -0.0188751220703125, 0.0230712890625, 0.0183258056640625, -0.01490020751953125, -0.006870269775390625, 0.0170135498046875, -0.0533447265625, -0.04083251953125, -0.02978515625, 0.005649566650390625, 0.0211944580078125, -0.0305023193359375, -0.033721923828125, 0.0022068023681640625, -0.00371551513671875, 0.0248260498046875, 0.01316070556640625, -0.0120391845703125, 0.04315185546875, -0.0755615234375, 0.0186309814453125, 0.0487060546875, 0.01058197021484375, -0.006252288818359375, -0.02606201171875, -0.03350830078125, -0.09246826171875, -0.004016876220703125, -0.055084228515625, 0.0634765625, 0.0030269622802734375, 0.023040771484375, -0.0396728515625, 0.041351318359375, 0.01092529296875, 0.0034332275390625, 0.02923583984375, 0.0204620361328125, -0.005466461181640625, -0.030914306640625, 0.0167236328125, -0.0304107666015625, -0.0203399658203125, -0.01535797119140625, -0.039947509765625, 0.048614501953125, 0.0015459060668945312, 0.0209503173828125, 0.0235443115234375, -0.0205078125, -0.0302734375, -0.027679443359375, -0.0269317626953125, 0.0245819091796875, 0.003742218017578125, -0.007183074951171875, -0.0484619140625, -0.060089111328125, 0.03271484375, -0.0372314453125, -0.00008404254913330078, 0.01392364501953125, 0.12310791015625, 0.0141754150390625, -0.00901031494140625, -0.0592041015625, 0.003559112548828125, 0.038055419921875, -0.02490234375, 0.04107666015625, 0.01425933837890625, -0.0197296142578125, 0.047515869140625, 0.02178955078125, 0.007289886474609375, -0.0264739990234375, 0.03948974609375, -0.004718780517578125, -0.0161285400390625, 0.009613037109375, -0.021026611328125, 0.03228759765625, 0.01407623291015625, -0.0241241455078125, -0.0031528472900390625, -0.0216522216796875, 0.012054443359375, -0.00258636474609375, 0.02978515625, -0.0252838134765625, -0.006000518798828125, 0.004734039306640625, 0.020294189453125, 0.0036296844482421875, 0.027679443359375, 0.001857757568359375, -0.030426025390625, -0.037322998046875, -0.008331298828125, -0.0149688720703125, -0.043853759765625, -0.00991058349609375, 0.0014009475708007812, -0.01354217529296875, -0.012298583984375, 0.0205841064453125, 0.011505126953125, -0.01299285888671875, -0.00995635986328125, -0.0125732421875, -0.034515380859375, 0.0199127197265625, 0.011871337890625, 0.0157318115234375, -0.01551055908203125, 0.03424072265625, 0.041015625, 0.022003173828125, -0.00201416015625, -0.048583984375, 0.006015777587890625, -0.0207672119140625, 0.0295867919921875, 0.017120361328125, -0.01221466064453125, 0.02471923828125, 0.03436279296875, 0.04998779296875, 0.00945281982421875, -0.0257110595703125, 0.0265350341796875, -0.002170562744140625, 0.061309814453125, -0.0026721954345703125, -0.01424407958984375, 0.0189208984375, 0.03167724609375, 0.0090179443359375, -0.040740966796875, 0.006591796875, -0.01206207275390625, 0.031341552734375, -0.0350341796875, -0.040771484375, 0.0645751953125, -0.006557464599609375, -0.01465606689453125, -0.0185546875, -0.0589599609375, -0.036376953125, -0.0255889892578125, -0.01329803466796875, 0.02313232421875, 0.0026092529296875, -0.017852783203125, 0.007129669189453125, -0.043060302734375, 0.02447509765625, 0.03143310546875, -0.0002872943878173828, -0.006557464599609375, -0.02313232421875, -0.00998687744140625, -0.0277557373046875, -0.0176544189453125, 0.0282440185546875, 0.021392822265625, -0.0210113525390625, -0.02667236328125, 0.0159759521484375, 0.0251922607421875, 0.03350830078125, 0.0024127960205078125, -0.054595947265625, 0.04193115234375, -0.01287841796875, 0.04644775390625, -0.01023101806640625, 0.006374359130859375, 0.0030918121337890625, -0.033935546875, -0.0278472900390625, -0.01090240478515625, -0.0189208984375, -0.037353515625, -0.0034332275390625, -0.016082763671875, 0.001789093017578125, -0.0037136077880859375, -0.006351470947265625, -0.02813720703125, 0.0159149169921875, 0.0087127685546875, -0.0179595947265625, -0.049072265625, 0.0255279541015625, 0.040252685546875, -0.0145111083984375, -0.01544952392578125, -0.0185699462890625, 0.023834228515625, -0.00536346435546875, -0.02044677734375, -0.052337646484375, 0.0008678436279296875, 0.00685882568359375, -0.0170135498046875, 0.038787841796875, 0.06640625, 0.002918243408203125, 0.024627685546875, 0.001369476318359375, 0.0006122589111328125, 0.01137542724609375, 0.003795623779296875, 0.0219268798828125, -0.01546478271484375, 0.09136962890625, -0.0155792236328125, 0.012969970703125, 0.006206512451171875, -0.018096923828125, 0.039764404296875, -0.0287628173828125, 0.0272216796875, 0.00771331787109375, -0.062103271484375, 0.020599365234375, 0.0537109375, 0.030426025390625, 0.045867919921875, -0.01503753662109375, 0.0214080810546875, -0.00018262863159179688, 0.037811279296875, -0.05328369140625, -0.043182373046875, 0.006134033203125, 0.0020885467529296875, 0.00351715087890625, 0.00908660888671875, 0.0024967193603515625, -0.010528564453125, 0.0289764404296875, 0.02532958984375, -0.0265350341796875, -0.0098876953125, 0.01812744140625, -0.0263824462890625, -0.002414703369140625, 0.011962890625, -0.002765655517578125, -0.007904052734375, -0.0030040740966796875, -0.0306243896484375, -0.0255279541015625, 0.00475311279296875, 0.00797271728515625, -0.03448486328125, -0.003276824951171875, -0.0034427642822265625, 0.025299072265625, 0.017913818359375, 0.017608642578125, -0.0197601318359375, 0.026885986328125, 0.022216796875, 0.0217132568359375, -0.025909423828125, -0.023040771484375, -0.026031494140625, 0.008819580078125, -0.01763916015625, -0.01148223876953125, 0.01287078857421875, -0.0241546630859375, 0.040985107421875, 0.0416259765625, -0.0085296630859375, 0.031402587890625, -0.00118255615234375, -0.00576019287109375, 0.031341552734375, 0.002471923828125, 0.027740478515625, 0.039886474609375, -0.059234619140625, 0.001983642578125, -0.022430419921875, 0.00969696044921875, 0.003448486328125, -0.025970458984375, 0.04766845703125, -0.055938720703125, 0.0101318359375, 0.0238189697265625, 0.0299224853515625, 0.0204315185546875, -0.01319122314453125, 0.072021484375, -0.0208587646484375, -0.019439697265625, 0.024169921875, -0.0000845193862915039, -0.060089111328125, -0.023284912109375, -0.03302001953125, 0.1063232421875, -0.01531219482421875, -0.005786895751953125, 0.0217742919921875, 0.0283050537109375, -0.0361328125, 0.0242919921875, -0.053070068359375, 0.04669189453125, 0.044769287109375, 0.0081787109375, -0.0333251953125, -0.010040283203125, -0.0166473388671875, 0.016143798828125, 0.0252532958984375, 0.011566162109375, -0.0248565673828125, 0.005641937255859375, 0.0159454345703125, 0.0181884765625, -0.01348114013671875, 0.03619384765625, -0.01415252685546875, -0.05816650390625, -0.00647735595703125, 0.0207977294921875, 0.0281982421875, -0.0272674560546875, -0.029876708984375, -0.002498626708984375, 0.0157318115234375, 0.024993896484375, -0.007110595703125, -0.0269927978515625, 0.0083770751953125, -0.0183868408203125, -0.004329681396484375, -0.0206146240234375, 0.00922393798828125, 0.0245361328125, 0.01495361328125, -0.02532958984375, 0.035308837890625, -0.036224365234375, 0.057037353515625, -0.00711822509765625, 0.006496429443359375, 0.033660888671875, 0.007335662841796875, 0.050506591796875, -0.01244354248046875, -0.01641845703125, 0.004261016845703125, 0.0156402587890625, 0.061065673828125, 0.0213470458984375, 0.027435302734375, -0.0579833984375, -0.00888824462890625, 0.053924560546875, 0.0899658203125, -0.04364013671875, -0.0694580078125, 0.0101165771484375, 0.0293426513671875, 0.01318359375, 0.06451416015625, 0.054840087890625, 0.011077880859375, 0.073486328125, -0.021453857421875, -0.01399993896484375, 0.01776123046875, 0.00366973876953125, 0.01067352294921875, -0.005786895751953125, 0.004581451416015625, -0.0160369873046875, -0.04345703125, 0.0484619140625, 0.0204315185546875, 0.074951171875, -0.0161285400390625, 0.07171630859375, -0.072265625, -0.0264434814453125, -0.01027679443359375, 0.032440185546875, 0.0222320556640625, -0.01061248779296875, 0.01160430908203125, -0.025054931640625, 0.04046630859375, 0.00870513916015625, -0.0345458984375, 0.051788330078125, 0.0202178955078125, 0.04718017578125, 0.020721435546875, -0.0243988037109375, 0.042266845703125, -0.0197601318359375, -0.07501220703125, -0.043365478515625, 0.0203857421875, 0.05828857421875, 0.04510498046875, 0.0308990478515625, 0.022003173828125, 0.041473388671875, 0.0174102783203125, -0.0258026123046875, 0.022491455078125, -0.04815673828125, 0.058349609375, 0.0192413330078125, 0.06292724609375, 0.048919677734375, -0.10308837890625, -0.0230560302734375, -0.046905517578125, -0.01380157470703125, 0.044647216796875, 0.03411865234375, -0.0214080810546875, 0.029876708984375, 0.025665283203125, -0.0209503173828125, 0.00743865966796875, -0.0030422210693359375, 0.0152130126953125, -0.041229248046875, 0.01995849609375, -0.014556884765625, -0.000881195068359375, -0.00023651123046875, 0.0196533203125, 0.03253173828125, -0.0164642333984375, 0.08990478515625, -0.05267333984375, -0.00714111328125, -0.0263214111328125, 0.014312744140625, -0.0311431884765625, -0.033905029296875, 0.002536773681640625, -0.01041412353515625, 0.0017633438110351562, 0.0065765380859375, -0.04498291015625, 0.02862548828125, 0.0306549072265625, -0.01230621337890625, -0.01495361328125, 0.0228729248046875, 0.0166473388671875, 0.008697509765625, 0.0869140625, 0.007785797119140625, -0.00844573974609375, -0.06585693359375, -0.0310821533203125, 0.06475830078125, 0.07952880859375, -0.002391815185546875, -0.01361083984375, 0.001239776611328125, -0.037109375, 0.0129547119140625, 0.00904083251953125, -0.00934600830078125, 0.028533935546875, -0.0004782676696777344, -0.0012664794921875, -0.01708984375, -0.0188751220703125, -0.002777099609375, 0.0007677078247070312, 0.00444793701171875, -0.01483154296875, -0.040618896484375, -0.00450897216796875, 0.01471710205078125, 0.023223876953125, -0.035430908203125, 0.01861572265625, -0.020263671875, 0.0024356842041015625, 0.045013427734375, -0.0069732666015625, -0.0257720947265625, -0.04437255859375, -0.03302001953125, 0.01145172119140625, -0.053619384765625, -0.0271759033203125, -0.06610107421875, 0.02099609375, 0.0584716796875, -0.0037994384765625, -0.021484375, 0.007083892822265625, -0.03741455078125, 0.079833984375, -0.019195556640625, -0.00557708740234375, 0.01166534423828125, 0.05889892578125, -0.052703857421875, -0.004779815673828125, -0.01898193359375, -0.024017333984375, -0.04498291015625, 0.041595458984375, 0.043304443359375, -0.0244140625, -0.04315185546875, 0.019805908203125, 0.01513671875, 0.053680419921875, -0.00036025047302246094, -0.0205841064453125, 0.0091705322265625, 0.0189361572265625, -0.0360107421875, -0.035064697265625, 0.02301025390625, -0.0220947265625, -0.0177764892578125, -0.0283050537109375, 0.027618408203125, 0.04345703125, -0.035186767578125, -0.06976318359375, 0.043731689453125, -0.0240020751953125, -0.03692626953125, -0.0018901824951171875, -0.040985107421875, -0.045989990234375, 0.052642822265625, 0.0006160736083984375, 0.0018854141235351562, -0.00231170654296875, 0.0648193359375, 0.0406494140625, -0.028167724609375, 0.050384521484375, -0.0275421142578125, -0.0609130859375, 0.00930023193359375, 0.01519775390625, 0.029815673828125, 0.0019121170043945312, -0.006420135498046875, 0.0292816162109375, 0.05084228515625, -0.019622802734375, -0.0061187744140625, -0.004741668701171875, -0.0225067138671875, -0.00662994384765625, -0.02728271484375, -0.01544952392578125, 0.002147674560546875, 0.06378173828125, -0.0030574798583984375, 0.01096343994140625, -0.03265380859375, -0.0294647216796875, -0.060394287109375, 0.0231170654296875, -0.0198822021484375, -0.0038204193115234375, -0.06640625, -0.01291656494140625, 0.0145111083984375, -0.00841522216796875, 0.0206146240234375, 0.005702972412109375, -0.0003006458282470703, 0.005100250244140625, 0.01541900634765625, -0.03826904296875, -0.005496978759765625, -0.0049591064453125, 0.01024627685546875, -0.0149078369140625, -0.029388427734375, -0.011871337890625, 0.015960693359375, -0.032928466796875, -0.01397705078125, -0.0150604248046875, 0.0293121337890625, -0.0433349609375, 0.001781463623046875, -0.012664794921875, 0.020599365234375, -0.0149383544921875, 0.004871368408203125, 0.00945281982421875, 0.005214691162109375, -0.024139404296875, -0.0138702392578125, 0.022796630859375, 0.049713134765625, -0.01114654541015625, 0.060546875, -0.0305633544921875, -0.004161834716796875, -0.033111572265625, 0.028350830078125, -0.0152130126953125, 0.00984954833984375, 0.0272064208984375, -0.0084991455078125, 0.0029144287109375, 0.0281829833984375, 0.0183258056640625, 0.004974365234375, -0.0010938644409179688, 0.01326751708984375, 0.007480621337890625, 0.004878997802734375 ]
ec1f73ab9f0d4fc28454bc208a4eeb7d20ff00cf
Wordpress Stackexchange Q: How to get posts in different language from WPML Plugin i'm using Thermal-Api plugin in order to define a REST WS to get posts in JSON format. My Client uses WPML to translate posts and i need to pass to WP_Query the language set in front-end side. Is there a particular parameter to pass to WP_Query to select only the post in that language or is there a way to change dynamically "ICL_LANGUAGE_CODE" in order to retrieve what i need?? Thanks!! A: Assuming $new_lang holds the desired two letter language code (e.g. 'fr'), you can do this: global $sitepress; $current_lang = $sitepress->get_current_language(); //save current language $sitepress->switch_lang($new_lang); //...run query here; if you use WP_Query or get_posts make sure you set suppress_filters=0 ... $sitepress->switch_lang($current_lang); //restore previous language For more info, check http://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/debugging-theme-compatibility/
Q: How to get posts in different language from WPML Plugin i'm using Thermal-Api plugin in order to define a REST WS to get posts in JSON format. My Client uses WPML to translate posts and i need to pass to WP_Query the language set in front-end side. Is there a particular parameter to pass to WP_Query to select only the post in that language or is there a way to change dynamically "ICL_LANGUAGE_CODE" in order to retrieve what i need?? Thanks!! A: Assuming $new_lang holds the desired two letter language code (e.g. 'fr'), you can do this: global $sitepress; $current_lang = $sitepress->get_current_language(); //save current language $sitepress->switch_lang($new_lang); //...run query here; if you use WP_Query or get_posts make sure you set suppress_filters=0 ... $sitepress->switch_lang($current_lang); //restore previous language For more info, check http://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/debugging-theme-compatibility/
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:441751", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131678" }
[ 0.0308074951171875, 0.00710296630859375, -0.0256195068359375, -0.01013946533203125, 0.0199127197265625, -0.025360107421875, 0.05145263671875, -0.01044464111328125, -0.00861358642578125, 0.0238800048828125, 0.0022125244140625, -0.001068115234375, -0.02020263671875, -0.021331787109375, 0.0015192031860351562, -0.03509521484375, 0.054290771484375, -0.01406097412109375, 0.06915283203125, 0.00707244873046875, 0.01611328125, 0.0283050537109375, 0.06561279296875, 0.01007843017578125, 0.035369873046875, -0.0188140869140625, 0.04486083984375, -0.0185699462890625, 0.009368896484375, -0.01512908935546875, 0.0231781005859375, 0.00408935546875, 0.0250244140625, -0.004894256591796875, -0.0202789306640625, -0.03912353515625, 0.0303192138671875, -0.0318603515625, -0.0562744140625, 0.0557861328125, 0.0253143310546875, -0.021820068359375, -0.061614990234375, 0.07489013671875, -0.041168212890625, -0.06573486328125, 0.01403045654296875, -0.026397705078125, 0.007053375244140625, 0.018035888671875, 0.0218658447265625, -0.0161895751953125, 0.0249176025390625, -0.016021728515625, -0.02044677734375, -0.025146484375, -0.01019287109375, 0.0309906005859375, 0.026275634765625, -0.0028629302978515625, -0.0277099609375, 0.00536346435546875, 0.0159454345703125, -0.007396697998046875, -0.006744384765625, 0.0204620361328125, 0.0699462890625, 0.00379180908203125, -0.0159912109375, -0.020721435546875, 0.004302978515625, 0.00765228271484375, 0.02386474609375, -0.0238037109375, -0.005695343017578125, 0.0033321380615234375, -0.01186370849609375, -0.0020465850830078125, 0.0210723876953125, -0.0202789306640625, 0.0229339599609375, 0.007450103759765625, -0.033172607421875, -0.0159454345703125, -0.01593017578125, -0.0029048919677734375, -0.01544189453125, -0.01160430908203125, -0.0484619140625, -0.040313720703125, -0.032073974609375, -0.057586669921875, -0.09393310546875, 0.04541015625, 0.03204345703125, -0.03515625, -0.02362060546875, 0.0048980712890625, -0.0250396728515625, 0.030609130859375, -0.0305023193359375, -0.03570556640625, 0.058807373046875, -0.03131103515625, 0.0103302001953125, -0.0264434814453125, -0.00922393798828125, 0.0213623046875, 0.06634521484375, 0.038726806640625, 0.002323150634765625, 0.0982666015625, -0.0152130126953125, -0.032623291015625, -0.02398681640625, 0.0148162841796875, -0.03240966796875, -0.0156402587890625, 0.01497650146484375, -0.0226287841796875, -0.025909423828125, 0.013946533203125, -0.02325439453125, -0.008575439453125, 0.00461578369140625, -0.0257720947265625, 0.00463104248046875, 0.0139312744140625, -0.042144775390625, 0.01654052734375, 0.0018873214721679688, 0.01256561279296875, 0.02020263671875, 0.037811279296875, -0.0227203369140625, -0.01190185546875, -0.0011510848999023438, 0.0137176513671875, 0.01302337646484375, -0.0185089111328125, 0.0197296142578125, -0.0187225341796875, 0.00505828857421875, 0.0220947265625, 0.0074615478515625, 0.0037994384765625, 0.000579833984375, 0.033111572265625, 0.0174713134765625, -0.01041412353515625, 0.0264739990234375, -0.0281982421875, 0.0254974365234375, -0.00040340423583984375, 0.0009441375732421875, -0.0191802978515625, 0.01129913330078125, -0.025238037109375, 0.000035822391510009766, -0.0251007080078125, -0.0109100341796875, -0.0264892578125, 0.003726959228515625, -0.034881591796875, -0.04888916015625, 0.025848388671875, -0.03125, -0.00024366378784179688, 0.027130126953125, 0.01436614990234375, 0.028076171875, -0.0205841064453125, 0.022216796875, -0.00698089599609375, -0.0194854736328125, -0.0002856254577636719, -0.043365478515625, 0.023468017578125, 0.05548095703125, -0.0204315185546875, 0.0050811767578125, -0.0191192626953125, 0.09600830078125, 0.01068115234375, -0.031341552734375, 0.0020885467529296875, 0.0137481689453125, 0.034088134765625, 0.01172637939453125, 0.01482391357421875, 0.0242767333984375, 0.01236724853515625, -0.03131103515625, 0.01540374755859375, -0.037078857421875, 0.00010663270950317383, -0.006145477294921875, 0.0280609130859375, -0.032012939453125, 0.006778717041015625, 0.033111572265625, 0.005016326904296875, -0.0006885528564453125, -0.0083160400390625, -0.07421875, 0.00743865966796875, -0.0311431884765625, 0.027069091796875, 0.01428985595703125, 0.02728271484375, 0.01007843017578125, 0.0267791748046875, -0.0330810546875, -0.0225677490234375, -0.01702880859375, 0.03564453125, -0.0204925537109375, 0.0311126708984375, -0.00395965576171875, 0.0238189697265625, 0.04705810546875, -0.045257568359375, 0.02606201171875, 0.0263671875, 0.0244598388671875, -0.0248565673828125, 0.0006384849548339844, -0.01861572265625, 0.0640869140625, -0.0182342529296875, 0.0634765625, 0.008880615234375, 0.007472991943359375, 0.021636962890625, 0.020233154296875, 0.00414276123046875, 0.044158935546875, -0.0601806640625, 0.0214385986328125, 0.032257080078125, 0.036346435546875, 0.06488037109375, 0.01509857177734375, 0.0013332366943359375, 0.045745849609375, -0.042266845703125, 0.01355743408203125, -0.01959228515625, 0.042510986328125, 0.070556640625, -0.0244598388671875, -0.002742767333984375, 0.00008499622344970703, -0.02838134765625, 0.03387451171875, 0.0233306884765625, -0.0215911865234375, -0.042572021484375, 0.0031719207763671875, -0.010986328125, 0.0200042724609375, -0.025360107421875, -0.04901123046875, 0.003147125244140625, 0.043243408203125, -0.02734375, 0.0246734619140625, 0.01222991943359375, -0.0226287841796875, -0.01049041748046875, 0.0156707763671875, 0.009765625, 0.008819580078125, 0.016204833984375, -0.00881195068359375, 0.0184173583984375, 0.0002593994140625, -0.0234375, 0.031494140625, 0.00989532470703125, -0.02227783203125, 0.040313720703125, -0.0341796875, -0.0250701904296875, -0.033203125, -0.04571533203125, -0.00591278076171875, -0.01348876953125, -0.0009059906005859375, 0.0091400146484375, 0.028472900390625, -0.00389862060546875, -0.0178680419921875, 0.0268707275390625, 0.00594329833984375, -0.0212554931640625, 0.0628662109375, -0.01222991943359375, 0.0115966796875, -0.0105743408203125, 0.052459716796875, 0.04052734375, 0.01198577880859375, -0.0305633544921875, -0.00237274169921875, -0.035736083984375, -0.0124053955078125, -0.0007939338684082031, -0.0189056396484375, -0.0335693359375, -0.04949951171875, 0.01526641845703125, 0.0130615234375, 0.025482177734375, -0.0130157470703125, -0.04583740234375, -0.011749267578125, 0.005931854248046875, -0.08563232421875, -0.07196044921875, 0.0312347412109375, -0.06500244140625, 0.051727294921875, 0.01202392578125, -0.0242462158203125, -0.04351806640625, 0.048004150390625, 0.01100921630859375, 0.0180206298828125, -0.02423095703125, -0.045318603515625, -0.03131103515625, -0.07379150390625, -0.003925323486328125, 0.00940704345703125, 0.00919342041015625, 0.005344390869140625, 0.0206756591796875, -0.00011789798736572266, -0.055877685546875, -0.01367950439453125, 0.080322265625, -0.0208282470703125, 0.00434112548828125, -0.0251922607421875, 0.0079345703125, 0.0213775634765625, -0.00855255126953125, -0.01519012451171875, 0.0386962890625, -0.0157623291015625, 0.01261138916015625, -0.0032024383544921875, 0.00855255126953125, 0.01354217529296875, -0.06396484375, -0.00763702392578125, 0.051605224609375, -0.0021800994873046875, -0.0136566162109375, -0.0755615234375, -0.006183624267578125, -0.05859375, 0.021484375, 0.0220489501953125, 0.005710601806640625, -0.0247955322265625, 0.042266845703125, -0.01904296875, -0.02362060546875, 0.045654296875, -0.059814453125, 0.0621337890625, -0.0024261474609375, -0.00478363037109375, -0.025238037109375, 0.0628662109375, -0.005870819091796875, 0.00460052490234375, 0.032684326171875, -0.01447296142578125, -0.0042724609375, -0.017547607421875, -0.00145721435546875, -0.003002166748046875, 0.03857421875, -0.00791168212890625, 0.0147552490234375, 0.0189056396484375, -0.0287933349609375, 0.01206207275390625, 0.060821533203125, -0.0290985107421875, -0.0162506103515625, -0.01154327392578125, 0.0275421142578125, -0.0364990234375, -0.0609130859375, -0.0059356689453125, -0.01537322998046875, -0.0277862548828125, -0.007160186767578125, -0.0016527175903320312, -0.0192413330078125, -0.0146484375, 0.01013946533203125, -0.0187225341796875, -0.01528167724609375, 0.042266845703125, 0.0032978057861328125, -0.004375457763671875, -0.0316162109375, -0.020172119140625, -0.053802490234375, -0.0251617431640625, 0.01080322265625, -0.09307861328125, -0.01354217529296875, -0.0164642333984375, 0.060302734375, 0.01013946533203125, -0.050872802734375, -0.0271453857421875, 0.038604736328125, -0.011444091796875, 0.06866455078125, -0.00897979736328125, 0.0102081298828125, 0.04010009765625, -0.0163726806640625, 0.01094818115234375, -0.01259613037109375, 0.005931854248046875, 0.031890869140625, -0.030975341796875, 0.05499267578125, -0.0025806427001953125, -0.0129852294921875, 0.035064697265625, -0.059783935546875, -0.056243896484375, -0.0240020751953125, -0.01873779296875, 0.025665283203125, -0.0308990478515625, 0.01172637939453125, -0.022369384765625, -0.054168701171875, 0.0657958984375, 0.02105712890625, 0.006328582763671875, -0.00860595703125, 0.060546875, -0.01480865478515625, -0.0399169921875, -0.08251953125, -0.007068634033203125, 0.039642333984375, -0.0012121200561523438, 0.038848876953125, 0.03375244140625, -0.044921875, 0.09307861328125, 0.0276336669921875, -0.012481689453125, 0.01340484619140625, 0.039794921875, 0.00848388671875, -0.0160369873046875, 0.014495849609375, 0.0105743408203125, -0.0224456787109375, 0.037811279296875, 0.0086822509765625, -0.0394287109375, 0.015594482421875, 0.03662109375, -0.019439697265625, 0.01415252685546875, -0.0226593017578125, -0.09228515625, 0.0457763671875, -0.020477294921875, -0.056610107421875, -0.00914764404296875, 0.006076812744140625, 0.0117645263671875, -0.0189056396484375, -0.005168914794921875, 0.04278564453125, 0.06005859375, 0.0141448974609375, 0.03436279296875, 0.0153961181640625, -0.01508331298828125, -0.030517578125, -0.018463134765625, 0.03118896484375, -0.0214385986328125, -0.074951171875, 0.0325927734375, -0.01560211181640625, 0.0181884765625, 0.04595947265625, -0.031341552734375, 0.027435302734375, 0.0205535888671875, -0.028472900390625, 0.0003883838653564453, -0.00565338134765625, -0.03338623046875, -0.044830322265625, 0.015625, -0.0011653900146484375, 0.0194244384765625, -0.0079345703125, 0.12347412109375, -0.04119873046875, 0.09222412109375, -0.018341064453125, 0.007099151611328125, -0.0208892822265625, 0.058746337890625, 0.0179290771484375, -0.044677734375, 0.0293121337890625, 0.0199432373046875, -0.0131072998046875, 0.00258636474609375, 0.0184173583984375, 0.007015228271484375, 0.019744873046875, -0.024627685546875, -0.009124755859375, 0.0189208984375, -0.0305328369140625, -0.01555633544921875, 0.0181427001953125, 0.031890869140625, -0.008941650390625, -0.0255584716796875, 0.00127410888671875, 0.03033447265625, 0.030029296875, -0.0067901611328125, -0.0267486572265625, -0.042999267578125, -0.006954193115234375, 0.0258941650390625, -0.0220794677734375, 0.01000213623046875, 0.001708984375, 0.020782470703125, -0.023406982421875, -0.0106658935546875, -0.038909912109375, 0.006317138671875, -0.02294921875, 0.0025348663330078125, 0.0260772705078125, 0.018890380859375, 0.00905609130859375, -0.00890350341796875, -0.03070068359375, 0.0055084228515625, -0.0037517547607421875, 0.056365966796875, 0.0004482269287109375, 0.005035400390625, -0.0197601318359375, -0.043792724609375, -0.04443359375, 0.004108428955078125, -0.00989532470703125, -0.03387451171875, -0.0084075927734375, 0.0262603759765625, 0.03802490234375, 0.0178985595703125, -0.004009246826171875, -0.0209197998046875, 0.00310516357421875, 0.008697509765625, 0.059173583984375, -0.02288818359375, 0.11279296875, -0.005657196044921875, 0.05517578125, 0.028045654296875, 0.0771484375, -0.00855255126953125, -0.013336181640625, 0.004436492919921875, -0.039642333984375, -0.0306243896484375, 0.01324462890625, -0.02642822265625, 0.01479339599609375, 0.0299835205078125, 0.0002529621124267578, 0.0021724700927734375, -0.005390167236328125, 0.0105438232421875, -0.022308349609375, 0.020172119140625, -0.02886962890625, -0.0105743408203125, 0.01445770263671875, -0.0101318359375, 0.011077880859375, -0.01427459716796875, -0.01263427734375, 0.0173187255859375, 0.005157470703125, 0.01491546630859375, -0.0018062591552734375, 0.01299285888671875, 0.01299285888671875, 0.047515869140625, 0.0241546630859375, 0.059356689453125, 0.0215911865234375, 0.0325927734375, -0.00006240606307983398, -0.005573272705078125, 0.032501220703125, 0.01381683349609375, 0.0159759521484375, -0.02142333984375, 0.0009722709655761719, -0.020904541015625, -0.0192413330078125, 0.025848388671875, 0.031341552734375, 0.06488037109375, -0.06353759765625, 0.0180816650390625, 0.03253173828125, -0.039459228515625, -0.0389404296875, 0.00287628173828125, -0.04327392578125, -0.08685302734375, 0.034637451171875, -0.00571441650390625, -0.02703857421875, -0.00876617431640625, 0.002567291259765625, -0.01390838623046875, 0.01520538330078125, 0.0306396484375, 0.0178375244140625, 0.00904083251953125, -0.0355224609375, 0.0071563720703125, 0.0029964447021484375, -0.0308074951171875, -0.00839996337890625, 0.031829833984375, -0.0304412841796875, -0.11029052734375, -0.002338409423828125, -0.0253143310546875, -0.01146697998046875, -0.00621795654296875, 0.0045623779296875, 0.0229339599609375, 0.0689697265625, -0.0267486572265625, -0.00820159912109375, 0.038330078125, -0.007595062255859375, -0.02001953125, -0.032958984375, 0.0252532958984375, 0.078125, -0.0545654296875, 0.03485107421875, -0.009979248046875, -0.007312774658203125, 0.00298309326171875, -0.0308685302734375, 0.045623779296875, -0.00881195068359375, -0.0023593902587890625, 0.019989013671875, 0.002368927001953125, 0.0038547515869140625, -0.0143890380859375, 0.0204315185546875, -0.067626953125, -0.03509521484375, 0.0009183883666992188, -0.0306396484375, -0.034423828125, -0.01087188720703125, -0.08245849609375, 0.05120849609375, -0.002086639404296875, 0.0447998046875, 0.023193359375, -0.0004048347473144531, -0.01209259033203125, -0.028900146484375, -0.045928955078125, 0.041046142578125, -0.01155853271484375, -0.0008955001831054688, -0.0726318359375, 0.00994110107421875, -0.027984619140625, 0.0189666748046875, 0.06396484375, 0.0166168212890625, -0.0016164779663085938, -0.0279083251953125, 0.01305389404296875, 0.035186767578125, -0.027008056640625, 0.013763427734375, 0.00970458984375, 0.0653076171875, 0.05712890625, -0.07611083984375, 0.0194091796875, 0.0034008026123046875, 0.0177001953125, 0.0250396728515625, 0.0166168212890625, 0.004199981689453125, 0.0017337799072265625, 0.002666473388671875, -0.0071868896484375, -0.0033817291259765625, 0.010528564453125, -0.01702880859375, 0.0269012451171875, 0.0279388427734375, -0.007549285888671875, 0.01308441162109375, -0.00817108154296875, -0.01479339599609375, 0.02276611328125, -0.0114288330078125, 0.0108489990234375, 0.031494140625, 0.02166748046875, 0.01009368896484375, -0.00705718994140625, 0.007965087890625, -0.009368896484375, -0.008941650390625, 0.053131103515625, 0.0079803466796875, 0.016571044921875, -0.0229034423828125, 0.0638427734375, 0.013641357421875, 0.036773681640625, -0.04888916015625, -0.050262451171875, 0.01039886474609375, 0.004665374755859375, -0.0032672882080078125, 0.0255584716796875, 0.001605987548828125, 0.01503753662109375, 0.0401611328125, 0.03948974609375, -0.004245758056640625, 0.00865936279296875, 0.0260772705078125, 0.00908660888671875, -0.0023288726806640625, -0.03302001953125, -0.0010080337524414062, -0.059661865234375, 0.01739501953125, 0.0426025390625, 0.09564208984375, 0.0106658935546875, 0.048431396484375, -0.03466796875, -0.04437255859375, -0.003936767578125, 0.01776123046875, 0.00732421875, -0.01222991943359375, -0.0074462890625, -0.021209716796875, 0.006206512451171875, 0.0236053466796875, 0.009490966796875, -0.045928955078125, 0.031494140625, 0.0537109375, -0.045013427734375, -0.0299530029296875, 0.0260162353515625, -0.0017375946044921875, -0.034454345703125, -0.033294677734375, 0.0117950439453125, 0.0165252685546875, -0.0056304931640625, 0.013214111328125, 0.0224609375, -0.0057525634765625, -0.036529541015625, 0.0304718017578125, -0.0115814208984375, -0.032012939453125, 0.02978515625, -0.020477294921875, 0.044891357421875, -0.028045654296875, -0.040618896484375, 0.0045318603515625, -0.01123809814453125, -0.032745361328125, 0.0007967948913574219, 0.025115966796875, -0.0100555419921875, 0.040435791015625, 0.033203125, -0.037384033203125, 0.00720977783203125, 0.01537322998046875, 0.04278564453125, -0.01216888427734375, -0.0017766952514648438, -0.0086212158203125, -0.036834716796875, -0.03277587890625, -0.03155517578125, 0.048797607421875, 0.0189666748046875, 0.043914794921875, -0.0063629150390625, 0.04302978515625, -0.061309814453125, -0.00595855712890625, -0.0006923675537109375, -0.03656005859375, -0.0282135009765625, 0.050323486328125, 0.02398681640625, -0.0125274658203125, -0.04412841796875, 0.000453948974609375, 0.0262451171875, 0.003177642822265625, 0.0135040283203125, -0.03314208984375, 0.0281982421875, -0.0005850791931152344, 0.00711822509765625, -0.034576416015625, -0.029144287109375, -0.0311126708984375, 0.0003726482391357422, 0.020660400390625, 0.0288238525390625, -0.01215362548828125, 0.00930023193359375, -0.030792236328125, -0.0303497314453125, 0.039703369140625, -0.0311431884765625, 0.01580810546875, 0.024383544921875, -0.016845703125, 0.00830078125, -0.024627685546875, -0.02618408203125, -0.01358795166015625, 0.016082763671875, -0.0007505416870117188, -0.0102996826171875, 0.04510498046875, -0.02679443359375, -0.0090179443359375, 0.01019287109375, -0.01000213623046875, 0.004436492919921875, 0.008026123046875, -0.00798797607421875, -0.036712646484375, 0.0105438232421875, -0.0184326171875, -0.0193328857421875, 0.006504058837890625, 0.0009012222290039062, 0.0223541259765625, -0.037872314453125, -0.0189361572265625, -0.029052734375, 0.001491546630859375, -0.05072021484375, 0.007343292236328125, -0.040008544921875, -0.0291290283203125, -0.004970550537109375, -0.059661865234375, -0.0187530517578125, 0.01386260986328125, 0.05499267578125, -0.0576171875, -0.0494384765625, -0.019866943359375, -0.02081298828125, -0.057861328125, 0.01319122314453125, 0.032318115234375, -0.006137847900390625, -0.059326171875, 0.0386962890625, 0.00543975830078125, 0.0626220703125, -0.0047149658203125, 0.01300048828125, 0.0180511474609375, 0.01080322265625, -0.07415771484375, -0.10504150390625, 0.037017822265625, -0.0927734375, -0.020965576171875, 0.022064208984375, -0.0145263671875, 0.006072998046875, -0.040740966796875, -0.10992431640625, 0.04913330078125, -0.005840301513671875, -0.039031982421875, -0.036895751953125, 0.007762908935546875, 0.039276123046875, -0.060638427734375, -0.028900146484375, -0.0269622802734375, -0.06536865234375, -0.01059722900390625, 0.021728515625, 0.0377197265625, -0.0001703500747680664, -0.0034923553466796875, -0.041717529296875, 0.0178070068359375, 0.016845703125, 0.03717041015625, 0.005054473876953125, -0.006092071533203125, -0.0148162841796875, -0.0120849609375, -0.053863525390625, -0.034423828125, -0.00931549072265625, 0.036346435546875, -0.01235198974609375, -0.03961181640625, 0.0122528076171875, -0.0025310516357421875, 0.04864501953125, 0.01198577880859375, 0.00931549072265625, -0.045440673828125, 0.019256591796875, 0.008636474609375, -0.0467529296875, 0.0005598068237304688, 0.0211639404296875, -0.0207366943359375, 0.010955810546875, -0.02191162109375, 0.026641845703125, 0.0133056640625, -0.03472900390625, -0.0006990432739257812, -0.049591064453125, -0.034912109375, -0.0023250579833984375, -0.01265716552734375, -0.0027942657470703125, 0.06182861328125, -0.029754638671875, 0.01009368896484375, -0.00360870361328125, 0.015655517578125, 0.03533935546875, 0.0025196075439453125, -0.0150604248046875, -0.005573272705078125, 0.03839111328125, 0.009368896484375, 0.023468017578125, -0.0266265869140625, 0.04229736328125, 0.01023101806640625, -0.01342010498046875, 0.01311492919921875, 0.00931549072265625, 0.0171356201171875, -0.01340484619140625, -0.00896453857421875, 0.0215606689453125, -0.04681396484375, 0.01337432861328125, -0.0050201416015625, 0.0028018951416015625, 0.02032470703125, -0.03125, -0.01044464111328125, -0.012237548828125, -0.055450439453125, 0.01554107666015625, 0.0236053466796875, -0.01427459716796875, -0.02081298828125, 0.01837158203125, -0.0041046142578125, 0.0031986236572265625, 0.003082275390625 ]
f16a2e67c7db6ec328afa0b2b60c6eda97103e44
Wordpress Stackexchange Q: Redeclare function (override) What is the best method, to change the previously declared function into the new one? for example, there is already declared: function smth(){ echo 'aaa'; } and i want that it displayed not aaa, but bbb function smth(){ echo 'bbb'; } but when i insert the new function (inside functions.php), i get error message (Fatal error: Cannot redeclare **smth()** (previously declared in ... ) UPDATE - I have found a solution: https://stackoverflow.com/a/8125517/2165415 A: PHP cannot redeclare functions. You will need to use some other approach, like filters or similar.
Q: Redeclare function (override) What is the best method, to change the previously declared function into the new one? for example, there is already declared: function smth(){ echo 'aaa'; } and i want that it displayed not aaa, but bbb function smth(){ echo 'bbb'; } but when i insert the new function (inside functions.php), i get error message (Fatal error: Cannot redeclare **smth()** (previously declared in ... ) UPDATE - I have found a solution: https://stackoverflow.com/a/8125517/2165415 A: PHP cannot redeclare functions. You will need to use some other approach, like filters or similar. A: PHP doesn't allow to redeclare functions. If you write the original function, there aare a lot of ways to allow you to write a more flexible functions. Conditional on passed arguments and filter hook, are first that comes into my mind. EX. 1: function smth( $out = 'a' ){ if ( $out === 'a' ) { echo 'aaa'; } else { echo 'bbb'; } } After that, first time call smth(); and second time: smth('b'); EX. 2 function smth(){ echo apply_filters('my_smth_filter', 'aaa'); } After that, first time call smth(); and second time: add_filter('my_smth_filter', function() { return 'bbb'; }); smth(); If the original function is not function of yours and it doesn't provide any filter to change output and you absolutely need to change that function behaviour, then look at Patchwork, a PHP library that lets you redefine user-defined functions at runtime. However use Patchwork with caution and only if absolutely necessary, because Patchwork is intended to be used for testing purpose, not on production. A: I would suggest to use OOP approach, like: class SomeClass { public function aa() { echo 'aa'; } } class SomeOtherClass extends SomeClass { public function aa() { return 'bb'; } } $a = new SomeClass(); $a->aa(); // outputs aa $b = new SomeOtherClass(); $b->aa(); // outputs bb
wordpress
{ "language": "en", "length": 307, "provenance": "stackexchange_00019.jsonl.gz:441764", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131726" }
[ 0.0863037109375, 0.033721923828125, -0.022857666015625, -0.07757568359375, 0.061431884765625, -0.022552490234375, 0.004558563232421875, -0.042694091796875, 0.019683837890625, -0.0022335052490234375, -0.027801513671875, -0.003200531005859375, -0.034881591796875, -0.0303497314453125, -0.01161956787109375, -0.032196044921875, 0.038726806640625, -0.046844482421875, 0.01374053955078125, -0.0221405029296875, -0.00189208984375, 0.005802154541015625, 0.054779052734375, 0.0926513671875, 0.01119232177734375, -0.026885986328125, 0.01318359375, -0.037078857421875, 0.0010671615600585938, -0.03662109375, 0.008453369140625, 0.048126220703125, -0.035003662109375, 0.110595703125, -0.07855224609375, -0.02581787109375, 0.04534912109375, 0.046539306640625, 0.050048828125, 0.033721923828125, -0.00426483154296875, 0.0035228729248046875, -0.0003714561462402344, -0.01380157470703125, -0.018646240234375, -0.041015625, 0.01898193359375, 0.010467529296875, -0.035369873046875, 0.03759765625, 0.035858154296875, -0.0002713203430175781, 0.021759033203125, 0.0252532958984375, 0.00812530517578125, -0.003963470458984375, -0.052764892578125, 0.05242919921875, 0.016510009765625, 0.050384521484375, 0.010589599609375, 0.032867431640625, -0.01218414306640625, -0.0183563232421875, -0.0018892288208007812, 0.0022220611572265625, -0.01232147216796875, 0.045745849609375, -0.055633544921875, -0.02508544921875, 0.00601959228515625, -0.0240478515625, 0.007694244384765625, -0.00800323486328125, 0.01496124267578125, 0.0035858154296875, 0.015045166015625, 0.039337158203125, 0.0242462158203125, 0.007175445556640625, 0.0196990966796875, -0.057952880859375, 0.015777587890625, -0.0005035400390625, 0.01849365234375, 0.02752685546875, 0.0092010498046875, -0.0156097412109375, -0.0103912353515625, 0.00281524658203125, -0.0244903564453125, 0.005458831787109375, -0.014984130859375, 0.0194091796875, -0.007587432861328125, 0.00775909423828125, 0.0265655517578125, 0.0241241455078125, -0.0213623046875, 0.0025463104248046875, -0.0240325927734375, -0.0200653076171875, -0.0094451904296875, -0.0288543701171875, 0.00992584228515625, 0.052154541015625, -0.01119232177734375, -0.03472900390625, -0.0010089874267578125, 0.02020263671875, 0.005279541015625, -0.034515380859375, -0.0322265625, -0.033447265625, -0.00089263916015625, 0.03912353515625, -0.03643798828125, -0.0204010009765625, -0.01275634765625, 0.003803253173828125, 0.0213165283203125, 0.03509521484375, 0.01171112060546875, -0.0003933906555175781, -0.01549530029296875, -0.01125335693359375, -0.011383056640625, -0.053314208984375, 0.06427001953125, 0.01145172119140625, -0.031646728515625, -0.038055419921875, 0.03875732421875, 0.045166015625, 0.04095458984375, -0.0272216796875, 0.08087158203125, 0.0141448974609375, 0.0174407958984375, 0.042327880859375, -0.0152130126953125, -0.05853271484375, -0.0243377685546875, 0.004352569580078125, -0.00023376941680908203, 0.037689208984375, 0.002960205078125, 0.0020656585693359375, 0.00281524658203125, -0.087646484375, 0.0247650146484375, -0.094970703125, 0.03436279296875, -0.018402099609375, -0.0264129638671875, -0.0031375885009765625, -0.03533935546875, 0.00577545166015625, -0.018035888671875, 0.0202178955078125, 0.00823974609375, -0.0250244140625, -0.0207061767578125, 0.01503753662109375, -0.035064697265625, 0.04290771484375, -0.00237274169921875, -0.0112762451171875, 0.029144287109375, 0.00439453125, 0.046295166015625, 0.00731658935546875, 0.047515869140625, 0.0021228790283203125, 0.004791259765625, -0.0009589195251464844, 0.0195159912109375, 0.0115509033203125, -0.00001043081283569336, 0.06085205078125, 0.015411376953125, -0.0185089111328125, 0.02294921875, -0.01464080810546875, -0.0859375, 0.032958984375, -0.00463104248046875, 0.08404541015625, 0.053070068359375, 0.0107421875, 0.0159912109375, -0.028594970703125, -0.0030155181884765625, 0.0399169921875, -0.040374755859375, -0.05706787109375, 0.045440673828125, 0.0305023193359375, -0.027801513671875, 0.0003478527069091797, -0.01155853271484375, 0.037750244140625, -0.03692626953125, 0.0238800048828125, -0.0654296875, 0.004428863525390625, -0.02764892578125, 0.037628173828125, 0.0228118896484375, 0.052703857421875, 0.005695343017578125, 0.004474639892578125, -0.0154266357421875, 0.00980377197265625, 0.00006097555160522461, -0.015899658203125, -0.029632568359375, 0.03057861328125, -0.00824737548828125, 0.06396484375, -0.021331787109375, -0.00850677490234375, -0.0248870849609375, -0.03741455078125, -0.007312774658203125, -0.02423095703125, -0.022369384765625, -0.0231475830078125, -0.035369873046875, -0.000232696533203125, -0.03314208984375, 0.05780029296875, -0.01143646240234375, 0.0670166015625, 0.01690673828125, -0.0052337646484375, -0.00661468505859375, -0.046417236328125, 0.005336761474609375, 0.023223876953125, 0.031982421875, 0.035491943359375, 0.01910400390625, 0.068603515625, 0.038482666015625, -0.00917816162109375, 0.017242431640625, 0.00689697265625, 0.0106048583984375, 0.038787841796875, 0.0004868507385253906, 0.0123443603515625, 0.01454925537109375, -0.006168365478515625, 0.0025882720947265625, 0.05084228515625, -0.01470947265625, -0.0263671875, -0.004596710205078125, 0.0008358955383300781, 0.01360321044921875, -0.054107666015625, -0.040313720703125, 0.003692626953125, 0.059600830078125, -0.0188140869140625, 0.0224609375, 0.006072998046875, -0.0011186599731445312, -0.009674072265625, 0.02001953125, -0.03753662109375, 0.003643035888671875, -0.01416778564453125, -0.0239410400390625, 0.028106689453125, -0.043365478515625, 0.022735595703125, 0.01448822021484375, 0.00644683837890625, 0.0058441162109375, 0.047027587890625, -0.01457977294921875, -0.01485443115234375, 0.00336456298828125, -0.0014276504516601562, -0.01947021484375, -0.0013408660888671875, 0.01506805419921875, -0.01232147216796875, 0.007610321044921875, 0.06085205078125, 0.0171966552734375, 0.0238494873046875, -0.034271240234375, 0.00428009033203125, 0.006809234619140625, 0.006008148193359375, -0.006427764892578125, 0.01430511474609375, 0.01445770263671875, 0.04156494140625, 0.01039886474609375, -0.0011625289916992188, 0.005931854248046875, 0.029541015625, 0.03662109375, 0.02203369140625, 0.0103607177734375, -0.022186279296875, -0.006465911865234375, -0.01059722900390625, 0.040374755859375, 0.048004150390625, 0.0237579345703125, -0.0333251953125, -0.0133056640625, 0.052337646484375, -0.0562744140625, -0.01056671142578125, -0.05059814453125, -0.0299835205078125, -0.01294708251953125, 0.030517578125, -0.01580810546875, 0.00783538818359375, 0.04150390625, 0.0250396728515625, 0.04791259765625, -0.0285797119140625, -0.04827880859375, -0.0673828125, -0.07318115234375, -0.0606689453125, -0.005672454833984375, -0.0095672607421875, -0.0015649795532226562, 0.058990478515625, 0.0120697021484375, -0.02227783203125, 0.031951904296875, 0.01267242431640625, -0.0113677978515625, 0.01454925537109375, 0.0343017578125, -0.03448486328125, 0.005176544189453125, 0.00867462158203125, -0.0025081634521484375, 0.019287109375, -0.00989532470703125, -0.0306243896484375, 0.01165008544921875, 0.0256195068359375, 0.02081298828125, 0.0703125, -0.005523681640625, -0.0194549560546875, 0.04901123046875, -0.044036865234375, 0.00339508056640625, 0.03857421875, 0.000885009765625, 0.0014657974243164062, -0.0272369384765625, -0.04693603515625, 0.0158538818359375, 0.01049041748046875, -0.004505157470703125, 0.00754547119140625, -0.0028514862060546875, -0.004375457763671875, 0.0352783203125, -0.01218414306640625, 0.01065826416015625, -0.0283966064453125, 0.063720703125, -0.005260467529296875, -0.034423828125, 0.01873779296875, 0.030517578125, 0.042510986328125, -0.02008056640625, 0.0211181640625, -0.01271820068359375, -0.00267791748046875, -0.056793212890625, 0.014312744140625, -0.020660400390625, 0.02001953125, -0.0002918243408203125, 0.052642822265625, 0.007488250732421875, -0.004421234130859375, 0.0295867919921875, -0.006938934326171875, -0.0665283203125, 0.0203399658203125, -0.107666015625, 0.0153350830078125, -0.03314208984375, -0.0161285400390625, -0.0272369384765625, -0.00777435302734375, -0.04010009765625, 0.06121826171875, -0.01739501953125, -0.0179290771484375, 0.03338623046875, -0.028350830078125, 0.015960693359375, 0.006511688232421875, 0.00466156005859375, -0.0166473388671875, -0.01415252685546875, -0.02264404296875, -0.064208984375, 0.0022735595703125, -0.08636474609375, 0.059356689453125, 0.029327392578125, 0.0235137939453125, -0.022369384765625, 0.00975799560546875, 0.021484375, 0.02093505859375, 0.00597381591796875, -0.0099029541015625, 0.00995635986328125, -0.011810302734375, -0.0010271072387695312, -0.0260009765625, -0.00624847412109375, -0.0034027099609375, -0.0191497802734375, 0.03839111328125, -0.0119781494140625, 0.03277587890625, -0.0086212158203125, -0.021148681640625, -0.041595458984375, -0.0185394287109375, 0.01334381103515625, 0.0105743408203125, -0.002735137939453125, -0.00969696044921875, -0.00392913818359375, -0.0272674560546875, 0.016693115234375, -0.0168609619140625, -0.02545166015625, 0.0192413330078125, 0.0538330078125, 0.01110076904296875, -0.01457977294921875, -0.036407470703125, -0.0071258544921875, -0.00553131103515625, 0.03485107421875, -0.06170654296875, -0.1083984375, -0.01462554931640625, 0.0328369140625, -0.05523681640625, 0.025909423828125, -0.034027099609375, 0.0031566619873046875, -0.005157470703125, -0.01560211181640625, 0.023345947265625, 0.004756927490234375, 0.0289764404296875, -0.03814697265625, 0.007720947265625, 0.0343017578125, 0.024017333984375, -0.0233917236328125, 0.02618408203125, -0.02374267578125, 0.017822265625, -0.0169830322265625, 0.0031757354736328125, 0.004638671875, 0.016845703125, 0.0188446044921875, -0.00003600120544433594, 0.00827789306640625, 0.01482391357421875, 0.01328277587890625, 0.005260467529296875, 0.041900634765625, -0.0252838134765625, 0.053985595703125, 0.018280029296875, 0.0055389404296875, -0.0258941650390625, 0.00045680999755859375, 0.055877685546875, 0.036773681640625, 0.00360107421875, -0.0548095703125, 0.0122222900390625, 0.0091705322265625, -0.034637451171875, 0.00505828857421875, 0.002017974853515625, -0.003337860107421875, -0.01290130615234375, 0.0267181396484375, -0.01384735107421875, 0.006317138671875, -0.003887176513671875, 0.04852294921875, 0.0247650146484375, -0.0236663818359375, -0.006229400634765625, 0.00577545166015625, 0.0220947265625, -0.013153076171875, 0.005756378173828125, 0.05059814453125, -0.0171966552734375, -0.0012722015380859375, -0.01146697998046875, 0.061065673828125, 0.01593017578125, -0.0225677490234375, 0.007579803466796875, -0.025543212890625, -0.0203704833984375, 0.026885986328125, 0.036529541015625, 0.00318145751953125, 0.0032863616943359375, 0.007843017578125, -0.015655517578125, -0.023468017578125, 0.06329345703125, 0.0567626953125, -0.045379638671875, -0.0033473968505859375, -0.0159454345703125, -0.00983428955078125, -0.01232147216796875, -0.005771636962890625, 0.00024116039276123047, -0.021331787109375, 0.0303497314453125, -0.0295867919921875, -0.004848480224609375, -0.00334930419921875, -0.0010652542114257812, -0.007030487060546875, -0.01702880859375, -0.02520751953125, -0.031341552734375, -0.044219970703125, -0.004878997802734375, -0.0206756591796875, 0.03546142578125, -0.03192138671875, 0.01172637939453125, 0.0083465576171875, -0.013214111328125, 0.05560302734375, 0.0102691650390625, 0.08551025390625, 0.02960205078125, -0.032745361328125, -0.00696563720703125, -0.0555419921875, -0.0185699462890625, -0.06622314453125, -0.053314208984375, -0.0246124267578125, 0.00426483154296875, 0.00847625732421875, 0.021881103515625, -0.0025424957275390625, -0.0185394287109375, 0.0203704833984375, -0.0021610260009765625, -0.002269744873046875, 0.0196380615234375, -0.039215087890625, -0.00019299983978271484, 0.04583740234375, 0.00408172607421875, -0.01056671142578125, -0.00583648681640625, 0.029388427734375, -0.01666259765625, 0.0184326171875, -0.038299560546875, 0.00016379356384277344, -0.044708251953125, -0.031402587890625, -0.03656005859375, 0.03594970703125, -0.010162353515625, 0.04754638671875, 0.0015096664428710938, -0.0243682861328125, -0.016845703125, 0.0058746337890625, -0.001739501953125, 0.10235595703125, -0.04351806640625, 0.005260467529296875, 0.020233154296875, -0.0015630722045898438, -0.0167388916015625, 0.006443023681640625, 0.015228271484375, 0.0270233154296875, -0.025543212890625, -0.060211181640625, 0.02764892578125, 0.045074462890625, 0.01959228515625, 0.01174163818359375, -0.039276123046875, 0.00551605224609375, -0.0107879638671875, -0.005702972412109375, 0.022369384765625, 0.026458740234375, 0.0246734619140625, -0.0281982421875, -0.01197052001953125, -0.0240020751953125, -0.01873779296875, -0.0016222000122070312, 0.06756591796875, 0.0670166015625, -0.09027099609375, -0.0011529922485351562, 0.01519775390625, -0.01617431640625, 0.002899169921875, 0.0243072509765625, -0.00441741943359375, -0.0029888153076171875, 0.01195526123046875, -0.020843505859375, 0.00270843505859375, 0.02099609375, 0.0163421630859375, -0.0107574462890625, -0.06866455078125, 0.0310821533203125, 0.0267486572265625, -0.00237274169921875, 0.079833984375, -0.009124755859375, 0.048583984375, -0.031280517578125, 0.0274810791015625, 0.00501251220703125, -0.00836944580078125, -0.0140533447265625, 0.052642822265625, 0.0189971923828125, -0.0028514862060546875, 0.0019102096557617188, 0.020660400390625, 0.0024509429931640625, 0.07293701171875, -0.023223876953125, 0.0211334228515625, 0.0467529296875, -0.006000518798828125, 0.024261474609375, -0.045166015625, 0.0178375244140625, 0.043487548828125, -0.047119140625, 0.0158233642578125, 0.015594482421875, -0.023956298828125, -0.021331787109375, -0.041656494140625, 0.00467681884765625, -0.007076263427734375, 0.003894805908203125, 0.0309295654296875, 0.033355712890625, -0.01099395751953125, 0.0012407302856445312, 0.0207977294921875, -0.08203125, -0.0418701171875, 0.003986358642578125, -0.033233642578125, -0.006328582763671875, -0.00997161865234375, -0.01546478271484375, 0.0960693359375, 0.032379150390625, 0.018707275390625, 0.050140380859375, 0.038604736328125, -0.06597900390625, 0.013458251953125, -0.0186309814453125, 0.008544921875, -0.0286865234375, 0.05462646484375, -0.0031795501708984375, 0.01508331298828125, 0.016143798828125, 0.01416015625, -0.0149383544921875, -0.01611328125, 0.013671875, 0.0144805908203125, 0.044036865234375, 0.0367431640625, 0.007354736328125, -0.004547119140625, -0.05340576171875, -0.07037353515625, -0.01461029052734375, -0.029541015625, 0.006633758544921875, -0.01617431640625, -0.03173828125, -0.0242919921875, 0.002368927001953125, -0.0173797607421875, -0.04571533203125, -0.059326171875, -0.01056671142578125, -0.0106964111328125, -0.0224151611328125, 0.056488037109375, 0.021942138671875, 0.0275115966796875, 0.037872314453125, -0.02008056640625, -0.00867462158203125, -0.011138916015625, 0.05218505859375, -0.00839996337890625, 0.0292816162109375, 0.00998687744140625, -0.00015485286712646484, 0.004383087158203125, -0.015594482421875, -0.007541656494140625, 0.00893402099609375, -0.00980377197265625, 0.048980712890625, 0.03704833984375, 0.059234619140625, 0.005077362060546875, -0.03692626953125, -0.007049560546875, 0.045074462890625, -0.0178985595703125, -0.00148773193359375, -0.00492095947265625, 0.0034313201904296875, 0.005374908447265625, -0.0272216796875, 0.0299835205078125, 0.058837890625, 0.03558349609375, -0.00878143310546875, -0.0298919677734375, 0.0218048095703125, 0.0177459716796875, 0.034454345703125, 0.0182037353515625, -0.00713348388671875, -0.05120849609375, -0.040008544921875, -0.015655517578125, 0.019805908203125, 0.0653076171875, 0.02935791015625, 0.06121826171875, 0.016632080078125, -0.037261962890625, -0.026336669921875, 0.048187255859375, -0.01806640625, 0.02960205078125, -0.052886962890625, -0.03631591796875, 0.0162353515625, 0.0423583984375, 0.00897216796875, 0.01459503173828125, 0.019775390625, -0.01535797119140625, -0.03582763671875, 0.006343841552734375, 0.0599365234375, -0.035308837890625, 0.049713134765625, -0.0198516845703125, 0.00846099853515625, -0.026611328125, -0.03875732421875, -0.0484619140625, 0.006671905517578125, 0.033416748046875, 0.0325927734375, 0.01544952392578125, 0.0104217529296875, -0.01462554931640625, 0.013092041015625, 0.00168609619140625, 0.07647705078125, 0.06121826171875, -0.007061004638671875, 0.037261962890625, -0.070068359375, -0.054168701171875, 0.0189971923828125, 0.0271759033203125, -0.019805908203125, 0.028717041015625, 0.03131103515625, -0.010833740234375, 0.04364013671875, -0.0102691650390625, -0.0283050537109375, 0.015655517578125, 0.034332275390625, 0.00841522216796875, -0.078125, -0.0304412841796875, -0.022125244140625, 0.02435302734375, 0.0305633544921875, 0.0384521484375, 0.013153076171875, 0.024688720703125, -0.05010986328125, -0.0247955322265625, -0.0168914794921875, -0.045684814453125, 0.023193359375, 0.0176239013671875, -0.0094146728515625, 0.005504608154296875, -0.039337158203125, 0.0303955078125, 0.00601959228515625, -0.02471923828125, 0.040863037109375, -0.02410888671875, 0.006870269775390625, -0.02581787109375, -0.00170135498046875, -0.021148681640625, -0.0065765380859375, 0.033935546875, 0.0032367706298828125, 0.0030117034912109375, 0.034759521484375, 0.034332275390625, -0.047027587890625, 0.002750396728515625, -0.0836181640625, -0.00821685791015625, 0.0052032470703125, -0.0123138427734375, 0.022003173828125, 0.04339599609375, -0.041778564453125, -0.042633056640625, -0.037200927734375, -0.0161285400390625, -0.003734588623046875, 0.0269775390625, -0.04864501953125, -0.01025390625, -0.0283355712890625, -0.01123046875, -0.0124053955078125, -0.042633056640625, -0.0212860107421875, 0.03765869140625, -0.048828125, -0.0087890625, 0.0125885009765625, 0.0105743408203125, -0.0000622868537902832, -0.0215606689453125, -0.005474090576171875, -0.00498199462890625, -0.0032291412353515625, 0.029296875, -0.01776123046875, 0.048187255859375, 0.027923583984375, -0.0819091796875, 0.03558349609375, -0.0186614990234375, 0.0343017578125, -0.0013065338134765625, -0.036834716796875, 0.01134490966796875, 0.02789306640625, -0.033660888671875, -0.055419921875, -0.025177001953125, 0.03765869140625, -0.0418701171875, 0.0293121337890625, 0.04632568359375, -0.0214996337890625, 0.026336669921875, 0.0260009765625, 0.025390625, 0.05792236328125, -0.0258636474609375, -0.0076751708984375, 0.0567626953125, -0.02374267578125, -0.05145263671875, -0.0173797607421875, 0.039459228515625, -0.07415771484375, -0.0281829833984375, 0.00682830810546875, -0.0130157470703125, 0.008087158203125, -0.04180908203125, -0.0714111328125, 0.039398193359375, 0.0040435791015625, -0.03143310546875, -0.009918212890625, -0.01490020751953125, -0.02685546875, 0.007152557373046875, -0.0061187744140625, 0.009246826171875, 0.009033203125, 0.04705810546875, 0.002105712890625, 0.0288848876953125, 0.0177154541015625, -0.0153656005859375, -0.0294952392578125, 0.009307861328125, 0.00458526611328125, 0.01544189453125, -0.058990478515625, 0.00009888410568237305, 0.015899658203125, 0.02789306640625, 0.0033664703369140625, 0.0189208984375, 0.05047607421875, 0.00908660888671875, 0.0019178390502929688, -0.037811279296875, -0.036407470703125, -0.0146636962890625, 0.044158935546875, 0.0298614501953125, 0.0168304443359375, -0.0474853515625, 0.0014371871948242188, 0.009735107421875, -0.02734375, 0.0313720703125, 0.017059326171875, -0.045745849609375, 0.00438690185546875, 0.0222320556640625, -0.045684814453125, 0.0391845703125, 0.004192352294921875, -0.03924560546875, 0.0189208984375, -0.007343292236328125, -0.047149658203125, -0.01166534423828125, -0.025115966796875, 0.06390380859375, -0.05029296875, -0.003658294677734375, 0.0245513916015625, 0.0156707763671875, 0.0068511962890625, 0.00704193115234375, 0.0138397216796875, -0.015899658203125, 0.0026950836181640625, -0.0047760009765625, 0.0224456787109375, 0.0110626220703125, 0.00815582275390625, -0.06390380859375, -0.0269927978515625, 0.031494140625, 0.0239105224609375, 0.0305023193359375, -0.03497314453125, 0.0643310546875, 0.033203125, 0.032684326171875, -0.0264129638671875, 0.035003662109375, -0.0262298583984375, 0.0061798095703125, -0.0011472702026367188, 0.017669677734375, 0.024658203125, 0.0167694091796875, 0.00580596923828125, 0.006130218505859375, 0.0191192626953125, -0.0294647216796875, 0.023834228515625, 0.0113677978515625, 0.00377655029296875, 0.01128387451171875 ]
afacdb3dc758c498d3d641a9e928749123b7b7cc
Wordpress Stackexchange Q: Display current category title on category page Using the following code in a category template, but instead of showing the current category page that I am on, it displays the first category of the first post. For example on Food category page it should say Food, but instead it says Desserts because the first post's category is desserts. Here is the site http://theveganproject.ca/wp/category/food/ add_action ( 'genesis_before_content', 'sk_show_category_name' ); function sk_show_category_name() { $category = get_the_category(); if (is_category()) { echo '<div id="cat-name">' . $category[0]->cat_name . '</div>'; } } A: On a category page, you can use the function single_cat_title(), or the more generic single_term_title(). These functions pull from the global $wp_query object, via get_queried_object().
Q: Display current category title on category page Using the following code in a category template, but instead of showing the current category page that I am on, it displays the first category of the first post. For example on Food category page it should say Food, but instead it says Desserts because the first post's category is desserts. Here is the site http://theveganproject.ca/wp/category/food/ add_action ( 'genesis_before_content', 'sk_show_category_name' ); function sk_show_category_name() { $category = get_the_category(); if (is_category()) { echo '<div id="cat-name">' . $category[0]->cat_name . '</div>'; } } A: On a category page, you can use the function single_cat_title(), or the more generic single_term_title(). These functions pull from the global $wp_query object, via get_queried_object(). A: You can use single_cat_title('' , true ) this function and add those parameters to removed the prefix.
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:441769", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131749" }
[ -0.0012464523315429688, 0.0008597373962402344, -0.03326416015625, -0.006549835205078125, -0.0008840560913085938, -0.027587890625, 0.007762908935546875, -0.022125244140625, 0.01227569580078125, 0.0188446044921875, -0.0138397216796875, -0.01166534423828125, 0.009368896484375, -0.0361328125, -0.003055572509765625, -0.01629638671875, 0.038421630859375, -0.01078033447265625, 0.038818359375, -0.0019283294677734375, -0.0020904541015625, 0.0322265625, 0.04302978515625, 0.0382080078125, 0.01290130615234375, -0.07904052734375, 0.047210693359375, -0.0171356201171875, 0.0028247833251953125, -0.053863525390625, 0.014404296875, 0.060394287109375, 0.0250091552734375, -0.006038665771484375, 0.0246734619140625, 0.030487060546875, 0.016815185546875, -0.002910614013671875, 0.03143310546875, 0.0179901123046875, 0.024993896484375, -0.01331329345703125, 0.05072021484375, 0.0205535888671875, 0.025177001953125, -0.06365966796875, 0.053741455078125, -0.05291748046875, -0.002849578857421875, -0.01430511474609375, 0.02508544921875, -0.01245880126953125, 0.038330078125, -0.0361328125, -0.01390838623046875, 0.0002758502960205078, -0.029937744140625, -0.00823211669921875, 0.030517578125, 0.008941650390625, -0.0096588134765625, -0.024505615234375, 0.0255279541015625, -0.0177459716796875, -0.0222015380859375, 0.0181121826171875, 0.09844970703125, -0.0149078369140625, -0.028472900390625, -0.049896240234375, 0.01629638671875, 0.022186279296875, -0.001251220703125, -0.00818634033203125, -0.023162841796875, -0.0203094482421875, 0.00954437255859375, -0.0224761962890625, 0.0014715194702148438, 0.01444244384765625, -0.018280029296875, -0.0064239501953125, -0.0251617431640625, -0.0204010009765625, 0.0224609375, 0.01490020751953125, -0.0199737548828125, -0.01409149169921875, -0.007633209228515625, -0.0177001953125, -0.013031005859375, 0.01236724853515625, -0.025970458984375, 0.004528045654296875, -0.00677490234375, -0.0455322265625, 0.041595458984375, 0.09912109375, -0.03662109375, -0.0222930908203125, -0.02117919921875, -0.00994873046875, -0.04962158203125, -0.036224365234375, 0.032440185546875, 0.040283203125, -0.030242919921875, -0.0200653076171875, 0.057464599609375, 0.0233612060546875, 0.01959228515625, 0.059661865234375, -0.0026569366455078125, -0.013519287109375, -0.017547607421875, 0.041351318359375, -0.025604248046875, 0.01702880859375, -0.0009694099426269531, 0.036865234375, 0.017974853515625, 0.04559326171875, 0.033172607421875, -0.02630615234375, 0.03070068359375, 0.0406494140625, -0.0166168212890625, -0.07000732421875, -0.0036468505859375, -0.01404571533203125, -0.021270751953125, 0.0204620361328125, 0.06280517578125, 0.04266357421875, 0.0142822265625, -0.00455474853515625, 0.002773284912109375, -0.00677490234375, 0.01050567626953125, -0.0174102783203125, -0.0005135536193847656, 0.0232696533203125, 0.044158935546875, -0.0302276611328125, -0.01129150390625, 0.006591796875, -0.004764556884765625, 0.031890869140625, -0.0026397705078125, -0.042724609375, 0.06109619140625, -0.048919677734375, 0.013275146484375, 0.032318115234375, -0.044708251953125, 0.0240325927734375, -0.005695343017578125, 0.00738525390625, -0.030914306640625, -0.0125732421875, 0.041778564453125, -0.0030364990234375, -0.007518768310546875, -0.00414276123046875, -0.038482666015625, 0.004131317138671875, -0.050811767578125, -0.00013840198516845703, 0.01824951171875, 0.0264892578125, -0.0250701904296875, 0.019683837890625, 0.0187530517578125, 0.00074005126953125, -0.01389312744140625, 0.0014829635620117188, -0.0272369384765625, -0.019378662109375, 0.02899169921875, 0.0574951171875, -0.0018663406372070312, -0.0253753662109375, -0.01541900634765625, 0.0002989768981933594, -0.0209503173828125, 0.037078857421875, -0.006999969482421875, 0.005970001220703125, 0.001148223876953125, -0.003963470458984375, 0.019775390625, 0.044281005859375, -0.063720703125, 0.038604736328125, 0.0005192756652832031, -0.0211334228515625, 0.00839996337890625, 0.00946807861328125, 0.00249481201171875, -0.023284912109375, 0.02001953125, 0.01483154296875, -0.007904052734375, -0.0016527175903320312, -0.0165863037109375, -0.01192474365234375, -0.0017709732055664062, 0.02691650390625, 0.0098876953125, 0.00727081298828125, 0.006542205810546875, -0.01108551025390625, 0.01178741455078125, -0.0751953125, -0.040435791015625, -0.006175994873046875, 0.001239776611328125, -0.00252532958984375, -0.0155181884765625, 0.0033664703369140625, -0.01227569580078125, 0.0250091552734375, -0.0165557861328125, 0.0452880859375, 0.048797607421875, 0.026397705078125, -0.0452880859375, -0.0146484375, 0.013336181640625, 0.03594970703125, -0.08905029296875, 0.029541015625, -0.0077362060546875, -0.0025806427001953125, -0.053070068359375, 0.0022563934326171875, -0.0036373138427734375, 0.033111572265625, -0.006443023681640625, 0.03411865234375, 0.0205535888671875, 0.01222991943359375, -0.018310546875, -0.00937652587890625, 0.06439208984375, -0.039154052734375, -0.014007568359375, -0.01153564453125, 0.029052734375, 0.059967041015625, 0.00981903076171875, 0.00064849853515625, 0.00914764404296875, -0.0028247833251953125, 0.048095703125, 0.01922607421875, -0.01270294189453125, -0.03375244140625, 0.007080078125, -0.007061004638671875, 0.0303955078125, -0.007404327392578125, -0.042694091796875, 0.01033782958984375, 0.04193115234375, 0.01617431640625, 0.0330810546875, 0.01013946533203125, -0.047760009765625, 0.0223388671875, 0.02685546875, 0.02496337890625, -0.002597808837890625, 0.007320404052734375, 0.032470703125, -0.0207061767578125, -0.032135009765625, -0.00640869140625, 0.0277099609375, -0.005878448486328125, -0.017181396484375, 0.03692626953125, -0.0079345703125, -0.0196075439453125, -0.042236328125, -0.08978271484375, 0.01090240478515625, 0.011627197265625, -0.005878448486328125, -0.00348663330078125, 0.00545501708984375, 0.044097900390625, -0.015594482421875, 0.031951904296875, -0.0214691162109375, 0.0108642578125, 0.038970947265625, 0.005222320556640625, 0.0005183219909667969, 0.0024776458740234375, 0.03594970703125, 0.04595947265625, 0.00545501708984375, -0.00142669677734375, -0.0002257823944091797, -0.005588531494140625, 0.0158538818359375, -0.013275146484375, -0.02459716796875, 0.0230560302734375, -0.05767822265625, 0.0162200927734375, 0.01346588134765625, 0.056976318359375, -0.007617950439453125, -0.040130615234375, 0.0249481201171875, 0.020721435546875, -0.033355712890625, -0.055450439453125, -0.027801513671875, -0.0205841064453125, 0.017059326171875, 0.024200439453125, 0.0164794921875, -0.021820068359375, 0.0487060546875, 0.01103973388671875, 0.0364990234375, -0.034027099609375, -0.0418701171875, -0.02679443359375, -0.0626220703125, -0.0177154541015625, -0.004093170166015625, -0.01432037353515625, 0.0001857280731201172, 0.05780029296875, 0.01337432861328125, -0.03582763671875, 0.002613067626953125, 0.042755126953125, -0.0177764892578125, 0.00556182861328125, 0.0242767333984375, -0.038848876953125, 0.00032901763916015625, 0.01337432861328125, -0.0307464599609375, 0.00763702392578125, 0.00743865966796875, -0.01090240478515625, -0.0159149169921875, 0.028045654296875, -0.01033782958984375, 0.0103607177734375, 0.027679443359375, 0.04180908203125, 0.007259368896484375, -0.015960693359375, -0.033050537109375, -0.0250244140625, -0.0609130859375, -0.043548583984375, 0.051513671875, 0.01282501220703125, -0.03741455078125, -0.0130462646484375, -0.04559326171875, -0.004093170166015625, 0.0465087890625, -0.05072021484375, 0.02044677734375, -0.008026123046875, -0.04608154296875, -0.01543426513671875, 0.022552490234375, -0.01486968994140625, 0.0026416778564453125, -0.0009245872497558594, 0.0219268798828125, 0.0012531280517578125, 0.0058135986328125, -0.016845703125, -0.03857421875, 0.0268402099609375, -0.058837890625, 0.0170135498046875, -0.0531005859375, -0.0087127685546875, -0.0143585205078125, 0.068359375, -0.0732421875, -0.006793975830078125, -0.0020847320556640625, 0.0223846435546875, -0.0207977294921875, -0.04840087890625, -0.053375244140625, -0.0242156982421875, -0.1094970703125, 0.00873565673828125, -0.01849365234375, -0.025482177734375, -0.022979736328125, 0.023101806640625, -0.07666015625, -0.040802001953125, 0.0222625732421875, -0.05010986328125, -0.0158843994140625, 0.015899658203125, -0.050445556640625, 0.00789642333984375, -0.01430511474609375, -0.050750732421875, -0.0046844482421875, -0.0060577392578125, 0.0172271728515625, 0.0020275115966796875, -0.006519317626953125, -0.017974853515625, -0.00679779052734375, 0.0272216796875, -0.00879669189453125, 0.0276336669921875, 0.0038547515869140625, 0.02496337890625, 0.021453857421875, -0.0225677490234375, -0.0025691986083984375, -0.02728271484375, -0.01410675048828125, -0.045135498046875, -0.0307159423828125, -0.00359344482421875, -0.018646240234375, 0.0259246826171875, -0.0180206298828125, -0.0018930435180664062, -0.061126708984375, -0.05731201171875, -0.0124053955078125, 0.0223541259765625, -0.004848480224609375, 0.0288238525390625, -0.06658935546875, -0.06207275390625, 0.044769287109375, -0.002857208251953125, -0.0171661376953125, 0.006198883056640625, 0.053741455078125, 0.0097198486328125, -0.0274200439453125, -0.01155853271484375, 0.048919677734375, 0.041534423828125, 0.0029163360595703125, 0.043121337890625, -0.0159149169921875, -0.033172607421875, 0.09771728515625, -0.0012845993041992188, -0.0005793571472167969, -0.014312744140625, 0.053619384765625, -0.013397216796875, -0.0157012939453125, 0.007297515869140625, -0.033477783203125, 0.0163116455078125, -0.01537322998046875, -0.0122222900390625, 0.00650787353515625, -0.0061187744140625, 0.01319122314453125, -0.004375457763671875, 0.01861572265625, -0.0050506591796875, 0.01264190673828125, -0.0135498046875, 0.07708740234375, 0.0474853515625, 0.0743408203125, -0.00536346435546875, 0.01143646240234375, 0.00803375244140625, -0.0144500732421875, -0.021636962890625, -0.016571044921875, -0.006011962890625, 0.002777099609375, -0.016143798828125, -0.0181884765625, -0.0027294158935546875, -0.006374359130859375, 0.02264404296875, 0.0089111328125, -0.0290069580078125, -0.022491455078125, -0.0119171142578125, 0.043182373046875, 0.006855010986328125, 0.0218048095703125, 0.004726409912109375, -0.00014340877532958984, 0.02423095703125, 0.0237274169921875, -0.0008540153503417969, 0.0008072853088378906, 0.007434844970703125, 0.0200958251953125, 0.021514892578125, -0.0103759765625, 0.0325927734375, 0.046112060546875, -0.00337982177734375, 0.050872802734375, -0.01290130615234375, 0.01055908203125, -0.001018524169921875, 0.018951416015625, 0.042388916015625, -0.035430908203125, 0.0013179779052734375, -0.016571044921875, 0.007808685302734375, -0.031768798828125, -0.008209228515625, 0.01513671875, 0.006603240966796875, -0.0222320556640625, -0.0244140625, 0.047332763671875, 0.027679443359375, -0.00794219970703125, 0.037994384765625, 0.022796630859375, -0.0230865478515625, -0.016143798828125, 0.0325927734375, 0.0263519287109375, 0.01042938232421875, -0.0241241455078125, 0.00665283203125, -0.0269012451171875, 0.04693603515625, -0.0093231201171875, 0.01006317138671875, 0.004985809326171875, -0.01346588134765625, -0.056427001953125, -0.031585693359375, -0.0003590583801269531, -0.006252288818359375, -0.00730133056640625, -0.0212554931640625, -0.022552490234375, 0.01403045654296875, 0.0093994140625, 0.039947509765625, -0.04510498046875, -0.02398681640625, -0.046173095703125, -0.0120391845703125, 0.07659912109375, 0.037322998046875, -0.0657958984375, -0.001842498779296875, -0.057281494140625, 0.003173828125, 0.01300811767578125, -0.047760009765625, -0.018463134765625, -0.0311737060546875, 0.003711700439453125, 0.02001953125, 0.0288543701171875, 0.0173797607421875, -0.0165252685546875, 0.006786346435546875, -0.0009288787841796875, 0.0183563232421875, -0.017303466796875, 0.04156494140625, 0.039031982421875, 0.044158935546875, 0.00789642333984375, 0.006103515625, -0.01454925537109375, -0.016357421875, 0.006877899169921875, -0.0673828125, -0.00942230224609375, 0.019622802734375, -0.03863525390625, 0.027069091796875, 0.02655029296875, 0.017730712890625, 0.0207061767578125, 0.0233306884765625, 0.0195770263671875, 0.00885009765625, -0.07293701171875, 0.027740478515625, -0.0243072509765625, 0.06500244140625, -0.019805908203125, 0.0116729736328125, -0.0016603469848632812, -0.006591796875, 0.01473236083984375, -0.03466796875, 0.0117034912109375, 0.028839111328125, -0.02294921875, 0.051788330078125, 0.06298828125, 0.01056671142578125, 0.037750244140625, 0.0279541015625, 0.021728515625, 0.006702423095703125, -0.0199127197265625, 0.0011034011840820312, -0.0251007080078125, 0.037933349609375, -0.010040283203125, 0.006252288818359375, 0.0400390625, -0.0162353515625, -0.017791748046875, 0.040191650390625, 0.03118896484375, -0.0217437744140625, -0.01187896728515625, 0.005207061767578125, -0.03497314453125, -0.02764892578125, 0.0286407470703125, -0.0234375, -0.005706787109375, 0.023284912109375, -0.0196685791015625, -0.01071929931640625, 0.0219268798828125, 0.0196380615234375, 0.00848388671875, 0.00884246826171875, 0.03997802734375, 0.00717926025390625, -0.057373046875, -0.03778076171875, 0.0279388427734375, -0.00650787353515625, -0.067626953125, -0.00927734375, 0.033233642578125, 0.0006437301635742188, -0.0517578125, 0.0694580078125, 0.00533294677734375, 0.046478271484375, 0.0196533203125, -0.0057373046875, -0.0164031982421875, 0.041748046875, -0.03790283203125, 0.04278564453125, 0.0160064697265625, -0.06719970703125, 0.03302001953125, -0.01126861572265625, 0.0190582275390625, 0.027374267578125, -0.07269287109375, 0.0009851455688476562, -0.0274810791015625, 0.0261688232421875, -0.026580810546875, -0.06048583984375, 0.0848388671875, -0.0206146240234375, -0.0157318115234375, 0.0062713623046875, 0.0252685546875, -0.005390167236328125, 0.0077667236328125, 0.031463623046875, -0.00029659271240234375, 0.033416748046875, 0.01337432861328125, 0.026336669921875, 0.0023250579833984375, 0.01012420654296875, -0.06646728515625, -0.0014638900756835938, -0.0016307830810546875, 0.053131103515625, 0.017547607421875, -0.0264739990234375, 0.00933074951171875, -0.052154541015625, -0.03680419921875, 0.0616455078125, 0.0289459228515625, 0.04095458984375, -0.0555419921875, -0.0178985595703125, 0.02508544921875, 0.049468994140625, 0.0196075439453125, 0.006023406982421875, 0.01026153564453125, -0.01800537109375, -0.01395416259765625, 0.023345947265625, -0.037506103515625, 0.01715087890625, -0.0141754150390625, -0.01605224609375, -0.00007975101470947266, 0.0343017578125, 0.040679931640625, -0.0027313232421875, -0.0733642578125, 0.014190673828125, 0.03936767578125, 0.05694580078125, 0.01837158203125, 0.00719451904296875, -0.052642822265625, 0.002811431884765625, 0.056854248046875, -0.0264892578125, 0.004535675048828125, 0.0738525390625, 0.06549072265625, -0.031463623046875, -0.004734039306640625, -0.03765869140625, 0.06884765625, 0.0186920166015625, 0.024749755859375, 0.058441162109375, 0.0167083740234375, 0.04241943359375, 0.0266876220703125, 0.02813720703125, 0.01023101806640625, 0.00885772705078125, 0.051025390625, 0.0101470947265625, 0.03594970703125, -0.0185699462890625, -0.0045623779296875, 0.022735595703125, 0.0687255859375, -0.043914794921875, -0.01522064208984375, 0.032257080078125, 0.01428985595703125, -0.03607177734375, 0.0125579833984375, -0.0158538818359375, 0.0614013671875, 0.08367919921875, -0.0247955322265625, -0.0264129638671875, 0.028778076171875, 0.04852294921875, 0.003414154052734375, -0.00873565673828125, -0.01617431640625, -0.050506591796875, -0.068115234375, 0.054473876953125, 0.00928497314453125, 0.0799560546875, -0.0037136077880859375, 0.09320068359375, -0.031982421875, -0.031585693359375, 0.0049591064453125, 0.005756378173828125, 0.00530242919921875, -0.00974273681640625, -0.004451751708984375, 0.01465606689453125, -0.018524169921875, 0.006931304931640625, 0.03765869140625, -0.01052093505859375, 0.03460693359375, 0.0394287109375, 0.011871337890625, -0.01512908935546875, -0.0027103424072265625, -0.00010591745376586914, -0.01332855224609375, -0.017242431640625, 0.02459716796875, 0.029296875, -0.0019359588623046875, -0.00013947486877441406, 0.047088623046875, 0.022979736328125, -0.044189453125, 0.0273895263671875, -0.01306915283203125, -0.033782958984375, 0.054718017578125, -0.019744873046875, 0.094970703125, -0.0172882080078125, -0.1356201171875, -0.027923583984375, -0.0252685546875, -0.034088134765625, 0.046112060546875, 0.046051025390625, -0.0153656005859375, -0.0091094970703125, 0.020233154296875, -0.0028934478759765625, 0.0186309814453125, -0.0219879150390625, 0.0257720947265625, 0.005062103271484375, 0.005702972412109375, 0.013946533203125, -0.01541900634765625, -0.014373779296875, 0.04345703125, 0.01239776611328125, -0.00888824462890625, 0.031646728515625, 0.005199432373046875, -0.0097503662109375, -0.042816162109375, 0.07232666015625, -0.10711669921875, -0.0714111328125, 0.095947265625, -0.0226898193359375, -0.02032470703125, 0.005741119384765625, -0.0343017578125, 0.017425537109375, 0.052581787109375, -0.026336669921875, 0.018768310546875, -0.004100799560546875, 0.0116119384765625, -0.03948974609375, 0.0214996337890625, -0.017486572265625, 0.0016660690307617188, -0.0239105224609375, -0.038665771484375, 0.0562744140625, 0.050689697265625, 0.0209808349609375, -0.0131378173828125, 0.0164794921875, -0.02362060546875, -0.0238189697265625, 0.031280517578125, -0.01995849609375, 0.03350830078125, 0.00001913309097290039, 0.01287841796875, 0.0163726806640625, -0.013427734375, 0.01837158203125, 0.0149993896484375, 0.00003361701965332031, 0.007617950439453125, -0.0115966796875, 0.02423095703125, -0.0205841064453125, 0.006801605224609375, -0.048370361328125, -0.00673675537109375, 0.020965576171875, 0.004520416259765625, -0.004436492919921875, -0.0261383056640625, -0.046844482421875, -0.018585205078125, 0.0013275146484375, 0.0126953125, 0.0018434524536132812, -0.033416748046875, -0.0665283203125, -0.004596710205078125, 0.003505706787109375, -0.012603759765625, -0.005268096923828125, 0.0288543701171875, -0.033935546875, -0.01441192626953125, -0.01446533203125, -0.0390625, 0.018096923828125, 0.0229339599609375, -0.057830810546875, 0.052825927734375, -0.032745361328125, -0.08154296875, -0.001369476318359375, 0.007129669189453125, -0.003887176513671875, -0.004467010498046875, -0.0037097930908203125, 0.01271820068359375, 0.0083160400390625, 0.06396484375, 0.023773193359375, 0.0011243820190429688, 0.016448974609375, 0.005794525146484375, -0.062408447265625, -0.0173797607421875, 0.046112060546875, -0.0188751220703125, -0.0489501953125, 0.01241302490234375, -0.0234527587890625, -0.002666473388671875, -0.033294677734375, -0.01397705078125, 0.050201416015625, 0.0115509033203125, -0.0253753662109375, -0.0093994140625, 0.00095367431640625, -0.0220947265625, 0.0038013458251953125, 0.0015840530395507812, -0.0308074951171875, 0.0084381103515625, 0.04522705078125, 0.017974853515625, 0.052093505859375, 0.01678466796875, 0.00940704345703125, -0.04046630859375, -0.01010894775390625, -0.02850341796875, 0.0191802978515625, -0.0025272369384765625, 0.0014858245849609375, -0.0196990966796875, 0.022216796875, -0.049774169921875, -0.040802001953125, -0.0108489990234375, 0.0367431640625, 0.011566162109375, -0.03253173828125, -0.045135498046875, -0.049163818359375, 0.023712158203125, 0.0002734661102294922, 0.0066680908203125, 0.006855010986328125, -0.062042236328125, -0.04473876953125, -0.04351806640625, -0.0110626220703125, 0.026519775390625, -0.06707763671875, 0.0262908935546875, 0.0160369873046875, -0.0095062255859375, -0.0033206939697265625, -0.0163726806640625, -0.04730224609375, -0.0176849365234375, -0.03375244140625, 0.0049285888671875, -0.035125732421875, 0.0008516311645507812, 0.042266845703125, -0.0394287109375, -0.058685302734375, -0.0021209716796875, 0.01493072509765625, -0.02716064453125, -0.0443115234375, 0.01142120361328125, 0.0243682861328125, -0.0222015380859375, -0.0296478271484375, 0.02789306640625, 0.0093994140625, 0.0286407470703125, -0.029052734375, -0.02728271484375, 0.0302734375, 0.0235748291015625, 0.0389404296875, -0.0174713134765625, 0.03515625, 0.03955078125, 0.0229949951171875, 0.0263824462890625, -0.0097503662109375, -0.005352020263671875, 0.03863525390625, 0.013153076171875, -0.035614013671875, 0.01319122314453125, -0.03839111328125, -0.01314544677734375, -0.0203857421875, -0.0169677734375, -0.01233673095703125, 0.0018701553344726562, -0.06585693359375, -0.0237884521484375, 0.018096923828125 ]
69b7bca689e1d7914ca8fb9c51828d4d625dcea7
Wordpress Stackexchange Q: How to redirect non-logged in users to a specific page? How to redirect non-logged users requesting for a specific page/URL to another page/URL and display a message like "for members only". I know its quite easy to code using !is_user_logged_in() function but i don't know how to code it because i am a newbie to WordPress. Care to tell me the file to put the code also. A: Here are 2 examples which you will need to modify slightly to get it working for your specific needs. add_action( 'admin_init', 'redirect_non_logged_users_to_specific_page' ); function redirect_non_logged_users_to_specific_page() { if ( !is_user_logged_in() && is_page('add page slug or ID here') && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) { wp_redirect( 'http://www.example.dev/page/' ); exit; } } Put this in your child theme functions file, change the page ID or slug and the redirect url. You could also use code like this: add_action( 'template_redirect', 'redirect_to_specific_page' ); function redirect_to_specific_page() { if ( is_page('slug') && ! is_user_logged_in() ) { wp_redirect( 'http://www.example.dev/your-page/', 301 ); exit; } } You can add the message directly to the page or if you want to display the message for all non logged in users, add it to the code. http://codex.wordpress.org/Function_Reference/wp_redirect
Q: How to redirect non-logged in users to a specific page? How to redirect non-logged users requesting for a specific page/URL to another page/URL and display a message like "for members only". I know its quite easy to code using !is_user_logged_in() function but i don't know how to code it because i am a newbie to WordPress. Care to tell me the file to put the code also. A: Here are 2 examples which you will need to modify slightly to get it working for your specific needs. add_action( 'admin_init', 'redirect_non_logged_users_to_specific_page' ); function redirect_non_logged_users_to_specific_page() { if ( !is_user_logged_in() && is_page('add page slug or ID here') && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) { wp_redirect( 'http://www.example.dev/page/' ); exit; } } Put this in your child theme functions file, change the page ID or slug and the redirect url. You could also use code like this: add_action( 'template_redirect', 'redirect_to_specific_page' ); function redirect_to_specific_page() { if ( is_page('slug') && ! is_user_logged_in() ) { wp_redirect( 'http://www.example.dev/your-page/', 301 ); exit; } } You can add the message directly to the page or if you want to display the message for all non logged in users, add it to the code. http://codex.wordpress.org/Function_Reference/wp_redirect A: How can we tell you where to put it if you didn't tell us what and where you want to display it? Whole posts? Pages? Custom parts of pages? Sorry... I guess my crystal ball isn't quite working today. Since you are, and I quote you: "a newbie to wordpress" you should rather learn, than to ask for direct answer. As for where you should read the reference 1 link. This will tell you which file you need to put it in. As for how to do it you should first read reference link 2 and 3. Overall it should look something like this: if ( is_user_logged_in() ) { the_content(); } else { echo 'For members only'; } Of course the above code needs to go into a loop. You can build it up as complex or as simple as you want. For example instead of simple text if not logged in you can display whole sign up form for example or - as I would suggest - a divided screen where user can log in (since user can have an account but forgot to sign in) or sign up (if he doesn't have one). * *Template Hierarchy *Conditional Tags *The Loop Added after comments below: To redirect use header with the wp_login_url - again, check references 1 and 2 below: if ( is_user_logged_in() ) { the_content(); } else { header('Location: ' . wp_login_url()); } Reference: * *Header - PHP *wp_login_url A: You can't redirect to a specific page, but every non-logged-in user will be redirected to Log-In Screen. <?php auth_redirect(); ?> Wordpress Reference: auth_redirect() Just to mention another solution. A: This would be better: if ( !is_user_logged_in() ) { auth_redirect(); } // continue as normal for authenticated users What this does is redirect the user to the login page. Once logged in, the user is redirected back to the secure page they were trying to access initially. Documentation here: https://codex.wordpress.org/Function_Reference/auth_redirect A: According to this guide: https://vvcares.com/blog/post/wordpress-buddypress-hide-page-from-non-members How to hiding members page from non logged in users ? Here the simple step to protect your Wordpress BuddyPress member only pages. Add this simple snippet into your theme's 'functions.php' file. That's it.. The below snippet sample will redirect the visitor if the visitor is not logged in & trying to visit the sensitive BuddyPress pages. Will redirect non-logged-in users trying to access private content to your front page or home page //Hide for non-logged-in users (public visitors) function bp_logged_out_page_template_redirect() { if ( ! is_user_logged_in() && is_page( 'members' ) || is_page( 'activity' ) || bp_is_user() ) { wp_redirect( home_url( 'https://vvcares.com/?buddypressBlogPostRedirect' ) ); exit(); } } add_action( 'template_redirect', 'bp_logged_out_page_template_redirect' );
wordpress
{ "language": "en", "length": 631, "provenance": "stackexchange_00019.jsonl.gz:441808", "question_score": "24", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131879" }
[ 0.08331298828125, 0.01381683349609375, 0.0176239013671875, -0.0404052734375, 0.036834716796875, -0.039703369140625, 0.059051513671875, -0.036590576171875, -0.01461029052734375, 0.01226043701171875, -0.01198577880859375, 0.019500732421875, -0.035736083984375, -0.0305633544921875, 0.01171112060546875, -0.0294342041015625, 0.0129241943359375, -0.0166473388671875, 0.024932861328125, -0.02008056640625, 0.02203369140625, -0.00604248046875, 0.022705078125, 0.0159454345703125, 0.0048370361328125, -0.03167724609375, 0.09613037109375, -0.033782958984375, 0.0130157470703125, -0.033782958984375, 0.011444091796875, -0.0230865478515625, 0.019622802734375, 0.037261962890625, -0.035430908203125, -0.0219879150390625, 0.00026106834411621094, 0.00222015380859375, -0.0015668869018554688, 0.0252685546875, 0.0228118896484375, -0.01094818115234375, -0.0179595947265625, 0.0141448974609375, -0.03851318359375, -0.0256805419921875, 0.028472900390625, 0.0037708282470703125, 0.0259246826171875, 0.0201568603515625, -0.002437591552734375, -0.01258087158203125, 0.0027256011962890625, 0.01427459716796875, -0.0189056396484375, 0.0037479400634765625, -0.00914764404296875, 0.016998291015625, 0.0265655517578125, -0.00537109375, -0.0064239501953125, 0.0018281936645507812, 0.0017642974853515625, -0.019500732421875, -0.01331329345703125, -0.0092926025390625, -0.032135009765625, 0.029754638671875, -0.0271148681640625, -0.038482666015625, -0.0021228790283203125, -0.013427734375, -0.00888824462890625, 0.01509857177734375, -0.052825927734375, 0.0009126663208007812, 0.035980224609375, 0.0100250244140625, 0.01055145263671875, 0.0094757080078125, -0.007843017578125, -0.002216339111328125, -0.033111572265625, -0.0271453857421875, 0.0224456787109375, 0.0188140869140625, -0.0239715576171875, -0.01491546630859375, -0.054718017578125, -0.00431060791015625, -0.04925537109375, 0.024078369140625, -0.034088134765625, -0.03753662109375, -0.041778564453125, -0.0004100799560546875, 0.0218048095703125, 0.056884765625, -0.01042938232421875, -0.0207366943359375, -0.01384735107421875, -0.019683837890625, -0.0289459228515625, -0.0265350341796875, 0.01312255859375, 0.0850830078125, 0.0396728515625, -0.01488494873046875, -0.01480865478515625, -0.0255584716796875, 0.0174713134765625, -0.0203704833984375, -0.0213623046875, -0.021240234375, -0.0204925537109375, 0.049346923828125, -0.00965118408203125, -0.022369384765625, -0.0037670135498046875, 0.01702880859375, -0.0161590576171875, 0.01084136962890625, 0.036651611328125, -0.032440185546875, 0.00272369384765625, -0.0118560791015625, -0.00978851318359375, -0.05194091796875, 0.042572021484375, 0.0091705322265625, -0.02386474609375, -0.00397491455078125, 0.053680419921875, 0.01461029052734375, 0.00879669189453125, -0.01352691650390625, 0.065673828125, -0.022064208984375, -0.01216888427734375, 0.0213470458984375, 0.02838134765625, -0.03515625, -0.032470703125, -0.006320953369140625, 0.04595947265625, 0.031036376953125, 0.0194091796875, 0.006313323974609375, 0.016632080078125, -0.041595458984375, 0.0098114013671875, -0.0009527206420898438, 0.0142974853515625, -0.0035305023193359375, 0.018341064453125, -0.00992584228515625, -0.009674072265625, 0.002880096435546875, 0.0012788772583007812, 0.01035308837890625, 0.0237274169921875, 0.010711669921875, 0.027923583984375, -0.013916015625, -0.0258941650390625, -0.038360595703125, -0.0604248046875, -0.0135498046875, 0.0255889892578125, -0.024444580078125, 0.0293731689453125, -0.03570556640625, -0.0059356689453125, 0.01419830322265625, 0.01284027099609375, 0.0308074951171875, -0.035919189453125, 0.08734130859375, 0.0118408203125, 0.007488250732421875, 0.033233642578125, -0.0255889892578125, 0.047698974609375, 0.03363037109375, -0.040008544921875, 0.06842041015625, -0.003688812255859375, 0.05194091796875, 0.009033203125, -0.006328582763671875, 0.01085662841796875, 0.03753662109375, -0.0024242401123046875, 0.0015268325805664062, -0.02496337890625, -0.05743408203125, -0.0159759521484375, -0.029327392578125, -0.0308837890625, 0.07171630859375, 0.030181884765625, 0.0163726806640625, -0.01849365234375, -0.014892578125, -0.047210693359375, -0.0158538818359375, -0.00734710693359375, 0.028594970703125, 0.032623291015625, 0.0293731689453125, -0.0154876708984375, -0.0020771026611328125, -0.0015153884887695312, -0.052947998046875, -0.049072265625, 0.006252288818359375, -0.005279541015625, 0.043609619140625, 0.0167388916015625, 0.038177490234375, 0.025421142578125, -0.0196685791015625, 0.0057373046875, -0.0419921875, 0.0628662109375, -0.02093505859375, -0.0097503662109375, -0.026947021484375, 0.03546142578125, -0.0035800933837890625, -0.018524169921875, 0.053131103515625, 0.043121337890625, 0.047088623046875, -0.044036865234375, 0.0013904571533203125, -0.0180206298828125, 0.00977325439453125, -0.0102386474609375, 0.032928466796875, 0.0189666748046875, 0.0322265625, -0.032196044921875, 0.0013570785522460938, 0.0262451171875, -0.0655517578125, -0.014923095703125, 0.022918701171875, 0.0021915435791015625, -0.0059967041015625, 0.01325225830078125, -0.0002218484878540039, 0.04022216796875, -0.020904541015625, 0.0207061767578125, 0.040618896484375, -0.01454925537109375, -0.0118560791015625, 0.004764556884765625, -0.010528564453125, 0.00592041015625, -0.0220489501953125, -0.0075836181640625, -0.01029205322265625, -0.028472900390625, -0.0357666015625, -0.0284881591796875, -0.038604736328125, 0.0028858184814453125, -0.049102783203125, 0.028778076171875, -0.036285400390625, 0.0000330805778503418, 0.0286865234375, 0.054443359375, -0.01702880859375, -0.04815673828125, -0.0084228515625, 0.033905029296875, 0.005077362060546875, -0.00826263427734375, 0.0328369140625, 0.035491943359375, -0.0204315185546875, 0.0059814453125, -0.004283905029296875, 0.010650634765625, -0.024261474609375, 0.00653839111328125, -0.0098724365234375, 0.0220184326171875, 0.0257568359375, -0.0255126953125, 0.049468994140625, -0.028717041015625, -0.0243682861328125, -0.004154205322265625, -0.0556640625, 0.048614501953125, -0.044952392578125, 0.0496826171875, 0.0726318359375, -0.0059814453125, 0.022613525390625, -0.00334930419921875, -0.0301666259765625, -0.0309906005859375, 0.022216796875, -0.00238037109375, -0.04443359375, 0.00681304931640625, 0.052093505859375, 0.0241546630859375, 0.01183319091796875, 0.0006785392761230469, -0.035736083984375, -0.00797271728515625, -0.002197265625, -0.05780029296875, -0.054412841796875, -0.03253173828125, -0.06768798828125, 0.03155517578125, 0.005031585693359375, -0.0184783935546875, -0.01041412353515625, 0.0396728515625, 0.0228118896484375, 0.01183319091796875, 0.01062774658203125, -0.045135498046875, 0.0022411346435546875, -0.0271759033203125, 0.037139892578125, -0.0161285400390625, -0.01099395751953125, 0.0018672943115234375, 0.01093292236328125, -0.0058746337890625, -0.0313720703125, 0.006317138671875, 0.050018310546875, 0.006565093994140625, -0.0213775634765625, -0.053802490234375, -0.0033779144287109375, 0.00402069091796875, 0.003387451171875, 0.0311431884765625, -0.0292510986328125, 0.03948974609375, -0.016510009765625, -0.0030651092529296875, -0.01947021484375, 0.0155029296875, -0.0158843994140625, -0.0103607177734375, -0.01105499267578125, 0.0084686279296875, -0.04302978515625, 0.0014829635620117188, -0.0213623046875, -0.05242919921875, 0.0312042236328125, 0.046600341796875, -0.01328277587890625, 0.01226043701171875, -0.040557861328125, 0.04022216796875, 0.028472900390625, -0.0257415771484375, 0.035980224609375, -0.0031108856201171875, -0.005733489990234375, 0.0186920166015625, -0.015777587890625, 0.04345703125, 0.0129547119140625, 0.00856781005859375, 0.01525115966796875, 0.0430908203125, 0.0101776123046875, 0.00885009765625, -0.050994873046875, -0.054656982421875, 0.03179931640625, -0.035858154296875, -0.005764007568359375, -0.0287017822265625, 0.0046234130859375, -0.01020050048828125, 0.0675048828125, -0.061614990234375, -0.0200042724609375, -0.00640106201171875, 0.0177764892578125, 0.0214691162109375, -0.043243408203125, -0.018798828125, -0.0321044921875, -0.0814208984375, -0.0003552436828613281, 0.00499725341796875, -0.043731689453125, -0.00962066650390625, 0.0162506103515625, -0.046173095703125, -0.034271240234375, 0.01544952392578125, 0.033050537109375, 0.0204620361328125, 0.0214691162109375, 0.01093292236328125, 0.006671905517578125, 0.01505279541015625, -0.013275146484375, -0.0631103515625, -0.00905609130859375, -0.0236053466796875, 0.05780029296875, 0.045379638671875, -0.0260772705078125, -0.0008606910705566406, 0.03680419921875, -0.0009541511535644531, -0.0036945343017578125, -0.0112457275390625, -0.0177154541015625, 0.0206298828125, 0.01486968994140625, -0.026092529296875, 0.00380706787109375, 0.007537841796875, -0.0012302398681640625, -0.03753662109375, 0.0009927749633789062, -0.037200927734375, -0.01250457763671875, 0.021514892578125, -0.046142578125, -0.080322265625, -0.023651123046875, 0.016937255859375, 0.020263671875, -0.0013103485107421875, 0.005947113037109375, -0.0325927734375, -0.06787109375, 0.03778076171875, 0.0089111328125, -0.0167083740234375, 0.012725830078125, 0.01258087158203125, 0.0119171142578125, -0.032806396484375, 0.004856109619140625, 0.007205963134765625, 0.026092529296875, -0.044189453125, 0.04998779296875, 0.003376007080078125, -0.018341064453125, 0.0830078125, -0.024017333984375, -0.01555633544921875, -0.006969451904296875, 0.047119140625, -0.00836181640625, -0.046844482421875, 0.024200439453125, -0.052154541015625, 0.0036563873291015625, 0.035614013671875, 0.0122833251953125, -0.01165771484375, 0.0077972412109375, 0.0186767578125, 0.0046539306640625, -0.02117919921875, -0.029083251953125, -0.04278564453125, -0.0016717910766601562, 0.028717041015625, 0.0305328369140625, 0.039886474609375, -0.0147857666015625, 0.047698974609375, 0.0289154052734375, -0.031097412109375, 0.0172882080078125, -0.00986480712890625, -0.002285003662109375, 0.0111541748046875, 0.01018524169921875, -0.0400390625, 0.019500732421875, -0.01111602783203125, 0.053985595703125, 0.0115966796875, -0.037811279296875, -0.01062774658203125, -0.0309600830078125, 0.0142822265625, 0.0098724365234375, 0.0061798095703125, 0.0634765625, 0.002880096435546875, -0.034454345703125, -0.018035888671875, -0.019500732421875, -0.038848876953125, -0.06524658203125, 0.0156097412109375, -0.0202484130859375, 0.017547607421875, -0.0247650146484375, 0.11419677734375, 0.017730712890625, 0.0540771484375, -0.02850341796875, 0.03839111328125, 0.070068359375, 0.010284423828125, 0.026763916015625, 0.01001739501953125, -0.0517578125, 0.0132904052734375, -0.01776123046875, -0.02520751953125, 0.01320648193359375, 0.035125732421875, 0.036346435546875, 0.020965576171875, -0.0241241455078125, -0.003086090087890625, -0.0399169921875, 0.00251007080078125, 0.0625, 0.0042572021484375, -0.062469482421875, -0.03759765625, -0.00154876708984375, 0.0301971435546875, -0.035858154296875, -0.0015535354614257812, -0.00926971435546875, -0.02093505859375, 0.0120391845703125, 0.001567840576171875, -0.0156402587890625, -0.00672149658203125, -0.0015411376953125, -0.0628662109375, -0.01509857177734375, 0.0177154541015625, 0.0005502700805664062, -0.01165771484375, -0.0094451904296875, -0.031494140625, 0.0136260986328125, -0.01568603515625, 0.010650634765625, -0.0255584716796875, -0.00525665283203125, -0.0013990402221679688, -0.0183258056640625, 0.07122802734375, 0.0301361083984375, -0.01366424560546875, 0.0182647705078125, -0.043212890625, -0.0007071495056152344, 0.0103912353515625, -0.027679443359375, -0.006526947021484375, -0.035400390625, 0.0114898681640625, 0.0380859375, -0.007110595703125, -0.033660888671875, -0.0228424072265625, -0.0126495361328125, 0.0201416015625, 0.0254669189453125, 0.00015747547149658203, 0.047943115234375, -0.020263671875, 0.038818359375, 0.00807952880859375, 0.0271453857421875, 0.004428863525390625, -0.024261474609375, 0.0176849365234375, 0.0149078369140625, -0.00577545166015625, -0.0282440185546875, 0.00632476806640625, -0.036346435546875, 0.0531005859375, -0.0084381103515625, -0.00507354736328125, 0.00901031494140625, 0.01052093505859375, -0.0256195068359375, -0.00424957275390625, 0.02618408203125, 0.01001739501953125, -0.015899658203125, 0.005687713623046875, -0.0186004638671875, -0.0041046142578125, -0.004055023193359375, -0.0004210472106933594, 0.0244598388671875, 0.00861358642578125, -0.02398681640625, -0.0821533203125, 0.07720947265625, 0.0947265625, 0.0006575584411621094, 0.044097900390625, 0.01204681396484375, 0.0025539398193359375, 0.04632568359375, -0.02587890625, 0.004306793212890625, 0.027191162109375, 0.07080078125, -0.005779266357421875, -0.01776123046875, 0.0509033203125, -0.0179595947265625, 0.024566650390625, 0.09912109375, 0.07373046875, -0.1397705078125, 0.016448974609375, 0.007091522216796875, 0.009185791015625, 0.03662109375, -0.0179443359375, -0.0031757354736328125, 0.00975799560546875, 0.0303802490234375, 0.01220703125, -0.0210418701171875, 0.0210418701171875, 0.02301025390625, -0.0213623046875, -0.0114288330078125, 0.026214599609375, -0.007511138916015625, -0.0197296142578125, -0.015289306640625, -0.002506256103515625, -0.017974853515625, -0.022735595703125, -0.0124664306640625, 0.022674560546875, -0.035308837890625, -0.058349609375, 0.014007568359375, -0.01558685302734375, 0.01001739501953125, 0.039154052734375, -0.008880615234375, 0.0095062255859375, 0.048553466796875, -0.0225830078125, 0.0173797607421875, 0.02880859375, -0.0606689453125, 0.007801055908203125, -0.0167999267578125, -0.00965118408203125, -0.01081085205078125, -0.041656494140625, 0.007259368896484375, -0.0399169921875, -0.00638580322265625, -0.0200042724609375, -0.0217437744140625, 0.076904296875, -0.004673004150390625, -0.034271240234375, 0.009735107421875, 0.0268707275390625, -0.00823211669921875, -0.004451751708984375, 0.044036865234375, -0.03948974609375, -0.0214385986328125, 0.0013141632080078125, -0.025115966796875, -0.005939483642578125, -0.015716552734375, -0.056121826171875, 0.06787109375, 0.04534912109375, 0.019439697265625, -0.0177459716796875, 0.0302734375, -0.0179290771484375, 0.0165863037109375, -0.05523681640625, 0.07965087890625, 0.04022216796875, 0.07244873046875, -0.01511383056640625, 0.00312042236328125, 0.055908203125, -0.005584716796875, 0.047943115234375, 0.030426025390625, -0.059234619140625, 0.004596710205078125, 0.01068115234375, -0.013702392578125, -0.0248870849609375, 0.0885009765625, -0.0227203369140625, -0.02044677734375, 0.0150299072265625, -0.0286407470703125, 0.01422882080078125, -0.001140594482421875, -0.02801513671875, -0.0127105712890625, 0.007007598876953125, -0.0196075439453125, -0.037353515625, 0.0217132568359375, -0.0919189453125, 0.0015859603881835938, 0.0416259765625, 0.0261688232421875, -0.0018072128295898438, 0.015838623046875, 0.004673004150390625, -0.061065673828125, 0.0242767333984375, -0.049224853515625, 0.0340576171875, -0.01983642578125, -0.006526947021484375, 0.00907135009765625, -0.0019779205322265625, 0.01336669921875, 0.006053924560546875, -0.01544952392578125, 0.0274810791015625, 0.00614166259765625, 0.09136962890625, 0.041046142578125, 0.040008544921875, -0.01273345947265625, 0.01206207275390625, 0.01611328125, 0.09619140625, -0.042755126953125, 0.00433349609375, -0.00727081298828125, 0.004375457763671875, 0.034881591796875, -0.019927978515625, 0.07476806640625, -0.0184173583984375, -0.0152740478515625, -0.03448486328125, -0.004878997802734375, 0.04254150390625, 0.0083770751953125, -0.007717132568359375, -0.0523681640625, -0.011810302734375, 0.020477294921875, -0.0242156982421875, -0.01309967041015625, 0.033843994140625, 0.00908660888671875, 0.0107269287109375, 0.006252288818359375, 0.0684814453125, -0.0025882720947265625, 0.002193450927734375, -0.037689208984375, -0.0030002593994140625, -0.002460479736328125, -0.02838134765625, -0.00096893310546875, 0.011566162109375, 0.056060791015625, 0.045074462890625, -0.027984619140625, 0.012176513671875, 0.004192352294921875, -0.017578125, -0.0011510848999023438, 0.00743865966796875, -0.00458526611328125, 0.038055419921875, -0.005558013916015625, 0.01174163818359375, -0.01381683349609375, -0.0279998779296875, -0.0230865478515625, 0.027740478515625, 0.0132293701171875, -0.040191650390625, 0.067138671875, -0.0088348388671875, -0.0225677490234375, -0.0025787353515625, -0.019500732421875, 0.06988525390625, -0.007129669189453125, -0.05548095703125, -0.00958251953125, -0.009765625, -0.02069091796875, 0.0160675048828125, 0.02008056640625, -0.006519317626953125, 0.0234832763671875, 0.050018310546875, 0.0285186767578125, 0.007061004638671875, -0.0167999267578125, 0.0084228515625, -0.01361846923828125, 0.049835205078125, 0.031829833984375, -0.0261383056640625, -0.00949859619140625, -0.03546142578125, 0.033721923828125, 0.0129852294921875, 0.056549072265625, -0.01806640625, 0.0341796875, -0.040771484375, 0.035186767578125, -0.040863037109375, -0.037567138671875, 0.057220458984375, 0.0149993896484375, -0.014892578125, -0.01641845703125, -0.0606689453125, 0.05889892578125, 0.00531005859375, 0.01302337646484375, 0.06591796875, -0.0265045166015625, -0.0105743408203125, -0.015838623046875, -0.0362548828125, -0.034210205078125, -0.047027587890625, -0.037200927734375, 0.017120361328125, 0.0085906982421875, 0.002948760986328125, -0.042083740234375, 0.048370361328125, -0.036407470703125, -0.038421630859375, -0.0202178955078125, -0.057525634765625, -0.06005859375, 0.025146484375, 0.0120697021484375, 0.016571044921875, -0.0153350830078125, -0.01934814453125, 0.01068115234375, 0.00780487060546875, -0.0216827392578125, -0.008819580078125, 0.02520751953125, 0.007450103759765625, -0.0316162109375, -0.00006204843521118164, -0.01476287841796875, -0.0309295654296875, -0.00841522216796875, -0.0126190185546875, -0.00603485107421875, -0.026702880859375, -0.043701171875, -0.0638427734375, 0.015716552734375, 0.0208740234375, 0.0010557174682617188, -0.0115966796875, -0.0193939208984375, 0.0171966552734375, 0.0112152099609375, -0.010009765625, -0.0308074951171875, 0.006805419921875, -0.0271148681640625, 0.07073974609375, -0.046600341796875, 0.0225372314453125, 0.007354736328125, 0.018310546875, -0.031463623046875, 0.0218048095703125, -0.017791748046875, -0.00890350341796875, 0.00007557868957519531, -0.01617431640625, 0.0301971435546875, 0.01062774658203125, -0.01219940185546875, -0.03387451171875, -0.0472412109375, 0.02899169921875, -0.0545654296875, -0.0228424072265625, 0.00475311279296875, -0.003719329833984375, -0.006099700927734375, 0.00411224365234375, 0.00769805908203125, -0.00569915771484375, -0.0185089111328125, 0.039276123046875, -0.042388916015625, -0.0108795166015625, -0.048065185546875, -0.08447265625, 0.080322265625, -0.005279541015625, -0.03570556640625, -0.051513671875, 0.052154541015625, 0.0167999267578125, -0.03936767578125, -0.0220489501953125, -0.017791748046875, -0.01904296875, 0.005641937255859375, 0.03826904296875, -0.021453857421875, 0.0377197265625, 0.054168701171875, -0.0271759033203125, 0.04815673828125, 0.0169525146484375, -0.012786865234375, -0.010650634765625, 0.01052093505859375, 0.03265380859375, 0.056640625, -0.007171630859375, 0.035919189453125, -0.0157012939453125, -0.0259552001953125, -0.00774383544921875, -0.02313232421875, 0.0019989013671875, -0.025543212890625, 0.0189971923828125, 0.01169586181640625, -0.0024776458740234375, 0.0008292198181152344, -0.0755615234375, -0.0173492431640625, -0.01218414306640625, -0.0016889572143554688, 0.04608154296875, -0.10125732421875, -0.005420684814453125, 0.01293182373046875, -0.0401611328125, -0.00594329833984375, 0.03759765625, -0.043792724609375, 0.0242767333984375, 0.0467529296875, -0.01837158203125, -0.037933349609375, -0.0123138427734375, 0.05010986328125, -0.03271484375, -0.01552581787109375, 0.0022716522216796875, 0.0221099853515625, 0.005126953125, -0.042083740234375, 0.03533935546875, 0.04901123046875, -0.053924560546875, -0.00984954833984375, 0.005313873291015625, 0.0498046875, -0.04754638671875, -0.03851318359375, -0.0272369384765625, 0.02728271484375, -0.01265716552734375, 0.024505615234375, 0.01568603515625, 0.0254058837890625, 0.031005859375, 0.05224609375, -0.006351470947265625, -0.014862060546875, -0.0199127197265625, 0.046905517578125, 0.01800537109375, -0.0294036865234375, 0.0265045166015625, -0.01038360595703125, 0.00481414794921875, 0.00792694091796875, 0.0458984375, -0.039764404296875, 0.047576904296875, -0.0004012584686279297, 0.017822265625, 0.0201873779296875 ]
adfe4a6d38721b2ed7fc767b2992ef281352b2a4
Wordpress Stackexchange Q: Javascript WP Object Documentation? I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that showed me how to do this using the JS object 'wp' I can't seem to find any documentation on this in the codex or when Googling. How does one learn this object and its methods? A: http://codex.wordpress.org/Javascript_Reference/wp It's a work in progress. Contribute if you can!
Q: Javascript WP Object Documentation? I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that showed me how to do this using the JS object 'wp' I can't seem to find any documentation on this in the codex or when Googling. How does one learn this object and its methods? A: http://codex.wordpress.org/Javascript_Reference/wp It's a work in progress. Contribute if you can! A: Since there is still no real documentation in codex/developer docs, the only way is WordPress Trac: https://core.trac.wordpress.org/browser/trunk#src/js/_enqueues/wp All components are at least commented and each file has a header with a description.
wordpress
{ "language": "en", "length": 104, "provenance": "stackexchange_00019.jsonl.gz:441810", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131887" }
[ -0.0014190673828125, -0.0033473968505859375, -0.062744140625, -0.0087890625, -0.0054779052734375, -0.0369873046875, 0.004772186279296875, 0.0067291259765625, -0.0169830322265625, 0.0008153915405273438, -0.041168212890625, 0.0015316009521484375, -0.005649566650390625, -0.005504608154296875, 0.02874755859375, -0.051788330078125, 0.061431884765625, -0.0129852294921875, 0.0565185546875, 0.015350341796875, 0.0033931732177734375, 0.05999755859375, 0.0406494140625, 0.06298828125, 0.030426025390625, -0.0303802490234375, 0.056671142578125, 0.0137786865234375, 0.018768310546875, -0.0219268798828125, 0.0170745849609375, 0.0003714561462402344, 0.0124053955078125, 0.046295166015625, -0.05950927734375, -0.0159149169921875, 0.0078277587890625, 0.0231170654296875, 0.01751708984375, 0.027801513671875, 0.0183258056640625, 0.00023543834686279297, -0.0238189697265625, 0.015350341796875, -0.019775390625, -0.031494140625, 0.00115966796875, -0.02911376953125, 0.006130218505859375, 0.0244903564453125, 0.00664520263671875, -0.01983642578125, 0.0146484375, -0.0302734375, 0.002506256103515625, -0.0028972625732421875, 0.0308074951171875, 0.010498046875, 0.02130126953125, -0.0014886856079101562, -0.037353515625, 0.03143310546875, 0.00421905517578125, -0.0193328857421875, -0.01555633544921875, 0.003429412841796875, -0.037200927734375, 0.0205841064453125, -0.02960205078125, -0.0234527587890625, 0.00553131103515625, -0.0367431640625, 0.008575439453125, -0.0259857177734375, 0.025604248046875, -0.02398681640625, 0.00211334228515625, -0.031982421875, 0.00261688232421875, 0.016143798828125, 0.017425537109375, -0.0218353271484375, -0.0213623046875, -0.011383056640625, 0.019378662109375, 0.0189971923828125, 0.017059326171875, -0.017608642578125, -0.037078857421875, -0.0035247802734375, -0.027557373046875, 0.01226043701171875, -0.034912109375, 0.002460479736328125, -0.0099334716796875, -0.006862640380859375, -0.01016998291015625, 0.0229949951171875, 0.00201416015625, 0.02130126953125, 0.0184326171875, -0.038604736328125, 0.0171661376953125, -0.024688720703125, -0.00424957275390625, -0.011077880859375, -0.0097198486328125, -0.0310211181640625, 0.0166168212890625, 0.0286712646484375, -0.034912109375, 0.01158905029296875, 0.0275726318359375, -0.007511138916015625, 0.0079803466796875, -0.02093505859375, -0.00701141357421875, 0.02508544921875, 0.000720977783203125, -0.0210418701171875, -0.01409149169921875, -0.0169830322265625, 0.0009121894836425781, 0.0167083740234375, 0.0217742919921875, 0.018768310546875, -0.021148681640625, 0.010040283203125, -0.00695037841796875, 0.019378662109375, -0.01219940185546875, 0.0204620361328125, 0.051910400390625, 0.007038116455078125, -0.026092529296875, -0.0094451904296875, 0.03448486328125, 0.0113983154296875, 0.02008056640625, -0.0002455711364746094, -0.01434326171875, -0.00995635986328125, 0.022216796875, -0.0279998779296875, 0.0007119178771972656, 0.019744873046875, 0.005672454833984375, 0.0225982666015625, -0.0007796287536621094, -0.03680419921875, 0.032684326171875, -0.0263214111328125, 0.0176849365234375, 0.016845703125, 0.0012922286987304688, -0.0289154052734375, 0.02374267578125, -0.044219970703125, 0.01227569580078125, -0.0574951171875, 0.0272674560546875, -0.006702423095703125, 0.024627685546875, -0.0018339157104492188, -0.0278778076171875, -0.00521087646484375, -0.051544189453125, -0.004032135009765625, 0.0222015380859375, 0.07489013671875, -0.0261383056640625, -0.0526123046875, -0.01364898681640625, 0.00954437255859375, -0.028076171875, 0.022003173828125, -0.00637054443359375, 0.0252227783203125, 0.0144195556640625, 0.017608642578125, 0.0202178955078125, -0.03173828125, 0.0499267578125, -0.0036907196044921875, 0.00048828125, -0.023956298828125, 0.032684326171875, 0.0168609619140625, -0.0227203369140625, 0.0199127197265625, 0.046295166015625, 0.0124053955078125, -0.022430419921875, 0.04583740234375, -0.0213623046875, -0.0413818359375, -0.039794921875, 0.0107574462890625, -0.037200927734375, 0.0015287399291992188, 0.0025997161865234375, 0.04693603515625, -0.01338958740234375, 0.022247314453125, -0.01207733154296875, 0.01715087890625, 0.0034008026123046875, 0.01515960693359375, 0.027923583984375, 0.01261138916015625, -0.0009560585021972656, 0.00946807861328125, -0.012359619140625, -0.0253448486328125, -0.0266265869140625, 0.0155181884765625, -0.039093017578125, 0.04046630859375, -0.00766754150390625, 0.0438232421875, -0.0286407470703125, -0.0115509033203125, -0.0104217529296875, 0.0014257431030273438, -0.01392364501953125, 0.0021209716796875, -0.0133514404296875, -0.01036834716796875, 0.006679534912109375, 0.0008320808410644531, 0.026336669921875, 0.0034427642822265625, -0.0030345916748046875, 0.062744140625, -0.0057830810546875, -0.0294952392578125, 0.006862640380859375, -0.045257568359375, 0.048553466796875, 0.022064208984375, 0.01629638671875, 0.042388916015625, -0.0019407272338867188, 0.004352569580078125, 0.0550537109375, 0.0119781494140625, 0.0291595458984375, -0.016387939453125, -0.0010471343994140625, 0.0240631103515625, -0.0225372314453125, -0.0049896240234375, 0.0340576171875, -0.05615234375, -0.0158233642578125, 0.054595947265625, 0.006206512451171875, 0.03143310546875, -0.02850341796875, 0.0169830322265625, 0.006885528564453125, -0.00826263427734375, -0.0264892578125, -0.02569580078125, 0.06494140625, 0.03118896484375, 0.0614013671875, 0.051971435546875, -0.01084136962890625, 0.0238189697265625, -0.01055908203125, -0.04449462890625, -0.00711822509765625, 0.033935546875, 0.03399658203125, -0.01242828369140625, -0.033905029296875, -0.0192108154296875, 0.01396942138671875, 0.017425537109375, -0.0264892578125, -0.005931854248046875, -0.049041748046875, -0.0123138427734375, -0.002269744873046875, -0.027374267578125, 0.008209228515625, -0.0011844635009765625, -0.0159759521484375, 0.004428863525390625, 0.02789306640625, 0.038909912109375, -0.029937744140625, 0.032440185546875, 0.0306243896484375, -0.00689697265625, 0.029296875, -0.0307464599609375, 0.038726806640625, -0.026092529296875, 0.03521728515625, 0.0557861328125, -0.034271240234375, 0.0255584716796875, 0.0073699951171875, -0.00386810302734375, 0.005641937255859375, -0.0000972747802734375, 0.0029926300048828125, -0.0018453598022460938, -0.038726806640625, 0.01226806640625, 0.009429931640625, -0.0088653564453125, 0.00482177734375, -0.04022216796875, -0.0266876220703125, -0.00855255126953125, -0.11346435546875, -0.08123779296875, 0.0080718994140625, -0.11981201171875, 0.0290374755859375, -0.006549835205078125, -0.061798095703125, -0.02581787109375, 0.0560302734375, 0.01629638671875, -0.0269775390625, 0.004100799560546875, -0.037506103515625, -0.0643310546875, -0.06640625, -0.0210418701171875, -0.0164031982421875, 0.0220489501953125, 0.0092315673828125, 0.0010976791381835938, 0.004085540771484375, -0.0149078369140625, 0.01219940185546875, 0.05096435546875, 0.00859832763671875, -0.01116180419921875, 0.0333251953125, -0.0233154296875, -0.04388427734375, 0.0148162841796875, 0.0079803466796875, 0.025726318359375, -0.039794921875, -0.00035691261291503906, -0.017669677734375, -0.0267181396484375, -0.0267333984375, 0.0467529296875, 0.023834228515625, -0.04534912109375, -0.01873779296875, -0.07318115234375, 0.03887939453125, 0.035308837890625, 0.0286865234375, -0.0416259765625, -0.071533203125, -0.037506103515625, 0.00092315673828125, 0.0230712890625, 0.021881103515625, 0.0294952392578125, -0.04290771484375, -0.0252532958984375, 0.043121337890625, 0.0218658447265625, 0.057647705078125, 0.04132080078125, 0.044586181640625, -0.01788330078125, -0.044677734375, -0.00267791748046875, 0.0029754638671875, -0.001911163330078125, -0.023468017578125, -0.03564453125, -0.043731689453125, 0.0256195068359375, -0.043243408203125, -0.0328369140625, -0.01218414306640625, -0.0092620849609375, 0.0268402099609375, 0.0726318359375, 0.000054836273193359375, 0.005199432373046875, -0.03228759765625, -0.024169921875, -0.01532745361328125, -0.0131072998046875, -0.043731689453125, -0.0009298324584960938, -0.0283203125, 0.0028400421142578125, 0.0097198486328125, -0.00954437255859375, -0.037506103515625, 0.08502197265625, -0.0290985107421875, -0.01418304443359375, 0.031646728515625, -0.052093505859375, -0.0013628005981445312, -0.0050811767578125, -0.0009775161743164062, -0.055755615234375, -0.02325439453125, -0.0181121826171875, -0.0870361328125, -0.01462554931640625, -0.02691650390625, 0.07781982421875, 0.0281524658203125, -0.03448486328125, -0.025054931640625, 0.043792724609375, 0.00063323974609375, 0.034027099609375, -0.0023250579833984375, 0.0164794921875, 0.0026111602783203125, -0.032958984375, 0.0166778564453125, -0.0247955322265625, 0.0026721954345703125, -0.060516357421875, -0.036163330078125, -0.02093505859375, -0.025299072265625, 0.041961669921875, -0.03668212890625, -0.0032253265380859375, 0.0164794921875, -0.016143798828125, -0.027313232421875, 0.0258636474609375, -0.039031982421875, 0.0194549560546875, -0.027984619140625, 0.00560760498046875, 0.01203155517578125, -0.008544921875, -0.0113525390625, 0.0225830078125, 0.052978515625, 0.026092529296875, -0.01056671142578125, -0.053680419921875, -0.028076171875, 0.0223846435546875, -0.019439697265625, 0.042816162109375, 0.0210723876953125, -0.035491943359375, 0.067626953125, 0.0007290840148925781, 0.01233673095703125, -0.00637054443359375, 0.0032367706298828125, 0.017547607421875, -0.0115966796875, 0.006656646728515625, 0.01727294921875, 0.0097808837890625, -0.053009033203125, -0.044647216796875, 0.02154541015625, -0.037109375, 0.0086517333984375, -0.0241241455078125, 0.09490966796875, -0.0008349418640136719, -0.059326171875, 0.01132965087890625, -0.04345703125, 0.07415771484375, 0.0286865234375, -0.0028781890869140625, 0.0543212890625, 0.042266845703125, 0.01360321044921875, 0.0201873779296875, 0.02392578125, -0.01157379150390625, 0.0119476318359375, 0.04541015625, -0.005092620849609375, -0.016632080078125, -0.0038089752197265625, 0.024993896484375, -0.0028972625732421875, -0.038238525390625, 0.014190673828125, -0.01418304443359375, 0.0011653900146484375, 0.02203369140625, 0.01499176025390625, 0.0262603759765625, 0.04632568359375, 0.01068115234375, -0.01119232177734375, 0.00847625732421875, 0.02227783203125, -0.04071044921875, 0.04107666015625, -0.0036869049072265625, 0.007610321044921875, 0.01617431640625, 0.04425048828125, -0.023468017578125, 0.0301361083984375, 0.0035610198974609375, 0.039703369140625, 0.00905609130859375, 0.07080078125, 0.0173187255859375, -0.039764404296875, 0.007427215576171875, 0.034942626953125, -0.0237579345703125, -0.02374267578125, -0.01479339599609375, 0.0273284912109375, 0.025543212890625, -0.01708984375, -0.009613037109375, 0.0212554931640625, -0.0004992485046386719, 0.0011339187622070312, -0.054595947265625, -0.05364990234375, 0.004093170166015625, 0.01242828369140625, 0.036651611328125, 0.0213470458984375, 0.019927978515625, 0.01983642578125, -0.001712799072265625, 0.015869140625, 0.01406097412109375, -0.0248870849609375, 0.004047393798828125, -0.0240936279296875, -0.002105712890625, -0.0295867919921875, -0.002475738525390625, 0.020477294921875, -0.03643798828125, -0.051300048828125, -0.00933074951171875, -0.02227783203125, 0.07684326171875, -0.03155517578125, 0.005420684814453125, -0.0174102783203125, 0.0233154296875, -0.0982666015625, 0.0222625732421875, 0.01233673095703125, 0.01727294921875, 0.00806427001953125, -0.035125732421875, -0.040924072265625, -0.046844482421875, -0.035675048828125, -0.00939178466796875, -0.04327392578125, 0.0236663818359375, -0.0347900390625, 0.00388336181640625, 0.0024204254150390625, 0.053314208984375, -0.00835418701171875, 0.03363037109375, -0.018646240234375, -0.00493621826171875, 0.0082550048828125, 0.04119873046875, -0.007030487060546875, 0.05718994140625, 0.0247802734375, 0.0232391357421875, -0.02252197265625, -0.032745361328125, -0.01033782958984375, -0.069091796875, -0.00484466552734375, 0.0236358642578125, -0.04205322265625, 0.01340484619140625, 0.007904052734375, 0.0094146728515625, 0.02557373046875, -0.01099395751953125, -0.002140045166015625, -0.02044677734375, -0.006072998046875, -0.0474853515625, -0.0012273788452148438, -0.0309600830078125, -0.0275726318359375, 0.02789306640625, -0.00652313232421875, -0.0222320556640625, 0.052734375, -0.028167724609375, 0.03887939453125, 0.0244903564453125, 0.0013980865478515625, 0.03802490234375, 0.026153564453125, -0.0256805419921875, 0.011444091796875, 0.0212249755859375, -0.006595611572265625, -0.0161285400390625, 0.039154052734375, 0.026275634765625, -0.055145263671875, 0.0474853515625, 0.01230621337890625, -0.0138397216796875, 0.0259857177734375, -0.03875732421875, 0.031341552734375, -0.0119476318359375, 0.061981201171875, -0.0152587890625, 0.0251007080078125, 0.0038700103759765625, -0.0283050537109375, 0.030487060546875, -0.00323486328125, 0.0257720947265625, 0.0194549560546875, -0.0285797119140625, 0.0039215087890625, -0.03839111328125, -0.016937255859375, -0.020477294921875, -0.0204010009765625, 0.01221466064453125, -0.0020046234130859375, 0.01132965087890625, -0.02593994140625, -0.0000985860824584961, 0.019256591796875, 0.01399993896484375, 0.01482391357421875, 0.0039215087890625, 0.0301971435546875, -0.03936767578125, -0.022674560546875, 0.045440673828125, -0.0108184814453125, -0.022979736328125, 0.02532958984375, -0.0125579833984375, 0.0340576171875, 0.049041748046875, -0.0144195556640625, 0.00949859619140625, 0.020416259765625, 0.00592803955078125, 0.0005450248718261719, -0.01303863525390625, 0.032684326171875, 0.01306915283203125, -0.08746337890625, 0.01788330078125, -0.059326171875, 0.01183319091796875, -0.00139617919921875, -0.0241851806640625, 0.03485107421875, -0.026580810546875, -0.00870513916015625, 0.04559326171875, 0.0023365020751953125, -0.032318115234375, -0.00598907470703125, 0.0194549560546875, -0.038726806640625, -0.00238800048828125, 0.0151519775390625, -0.0023193359375, -0.0179443359375, -0.004360198974609375, -0.040130615234375, 0.06005859375, 0.042266845703125, -0.0020503997802734375, 0.0198974609375, 0.017120361328125, -0.03717041015625, 0.00263214111328125, -0.050750732421875, 0.026702880859375, -0.0462646484375, 0.034576416015625, -0.087646484375, -0.005252838134765625, -0.0298004150390625, 0.0247650146484375, 0.01486968994140625, -0.00951385498046875, -0.0162200927734375, -0.01080322265625, 0.0234375, 0.049468994140625, 0.0203399658203125, 0.0136566162109375, 0.01409149169921875, 0.0288848876953125, 0.03680419921875, -0.01177978515625, 0.036346435546875, -0.041046142578125, -0.0244598388671875, 0.0207366943359375, 0.022064208984375, 0.0088348388671875, 0.024383544921875, 0.0156402587890625, -0.04461669921875, 0.01464080810546875, 0.027313232421875, 0.018768310546875, 0.0073089599609375, 0.050323486328125, -0.018585205078125, 0.0313720703125, 0.05133056640625, -0.035308837890625, 0.03228759765625, -0.05828857421875, 0.004108428955078125, 0.03240966796875, 0.038848876953125, -0.04656982421875, -0.0108184814453125, 0.004817962646484375, 0.025360107421875, -0.0421142578125, 0.0565185546875, -0.01016998291015625, 0.0079498291015625, -0.1009521484375, -0.03009033203125, 0.053131103515625, 0.09051513671875, -0.045654296875, -0.03173828125, 0.007167816162109375, 0.010833740234375, 0.026336669921875, -0.01264190673828125, 0.021514892578125, -0.04119873046875, -0.01303863525390625, -0.03411865234375, 0.0007958412170410156, 0.0290985107421875, 0.034027099609375, 0.0015125274658203125, 0.0179290771484375, -0.052703857421875, -0.0212249755859375, -0.035003662109375, -0.005096435546875, 0.01464080810546875, 0.0362548828125, 0.00958251953125, 0.053436279296875, -0.00740814208984375, -0.019317626953125, 0.01531219482421875, 0.0219879150390625, 0.042816162109375, -0.0310821533203125, 0.0225677490234375, -0.01386260986328125, 0.034698486328125, 0.01251983642578125, 0.0178070068359375, 0.036529541015625, 0.04840087890625, 0.00867462158203125, -0.053314208984375, 0.0093994140625, 0.0460205078125, -0.031890869140625, -0.005950927734375, -0.01393890380859375, 0.0372314453125, 0.032012939453125, 0.01097869873046875, 0.00141143798828125, 0.0296630859375, 0.038177490234375, -0.04791259765625, 0.048736572265625, -0.021209716796875, -0.057647705078125, 0.057373046875, -0.0220794677734375, 0.1422119140625, -0.03814697265625, -0.08563232421875, -0.02392578125, -0.0140838623046875, -0.048004150390625, 0.034942626953125, 0.048736572265625, -0.028778076171875, 0.01302337646484375, -0.0311737060546875, -0.00885772705078125, -0.0091705322265625, 0.0026073455810546875, 0.01727294921875, -0.022705078125, 0.00897216796875, -0.019989013671875, -0.059356689453125, -0.02789306640625, -0.0179901123046875, 0.00751495361328125, 0.03656005859375, 0.0140838623046875, 0.03204345703125, 0.018707275390625, -0.0140533447265625, -0.03277587890625, 0.0171966552734375, -0.00818634033203125, -0.032379150390625, 0.03094482421875, 0.0232086181640625, -0.01324462890625, 0.0092010498046875, 0.045501708984375, 0.02215576171875, -0.004100799560546875, 0.0455322265625, -0.043914794921875, 0.0212554931640625, -0.0099945068359375, 0.0188751220703125, -0.0201416015625, -0.00832366943359375, -0.0031185150146484375, 0.00066375732421875, 0.0222015380859375, 0.0111541748046875, -0.0194854736328125, 0.0186309814453125, -0.02044677734375, -0.043670654296875, -0.0135650634765625, -0.015869140625, -0.037322998046875, 0.031829833984375, 0.025238037109375, 0.007843017578125, 0.0267181396484375, -0.0189666748046875, 0.027252197265625, -0.0107879638671875, 0.041290283203125, 0.01088714599609375, -0.080322265625, 0.005123138427734375, 0.023834228515625, -0.002513885498046875, -0.04888916015625, -0.018798828125, 0.050445556640625, -0.03497314453125, -0.0240020751953125, 0.0107269287109375, -0.007221221923828125, 0.0038585662841796875, -0.01241302490234375, 0.0206298828125, -0.0021152496337890625, -0.0088348388671875, -0.048309326171875, -0.004734039306640625, 0.0134429931640625, -0.0137939453125, -0.0170135498046875, -0.00986480712890625, -0.012847900390625, 0.016632080078125, -0.0184783935546875, 0.065673828125, -0.034942626953125, -0.0021991729736328125, -0.021392822265625, -0.04736328125, -0.01483917236328125, 0.083251953125, 0.006282806396484375, 0.0732421875, 0.065185546875, -0.08056640625, 0.08782958984375, 0.056671142578125, 0.0875244140625, 0.12445068359375, 0.032745361328125, -0.0021152496337890625, 0.01093292236328125, 0.0159912109375, -0.0117034912109375, -0.0263824462890625, -0.0090484619140625, 0.01335906982421875, -0.01412200927734375, -0.0251617431640625, -0.0035152435302734375, -0.0164794921875, -0.049560546875, -0.094482421875, 0.08447265625, -0.019287109375, -0.03656005859375, -0.03961181640625, 0.0042724609375, 0.0225830078125, -0.022491455078125, -0.0259246826171875, -0.01230621337890625, -0.04144287109375, 0.02081298828125, 0.022918701171875, -0.00007700920104980469, 0.00812530517578125, 0.0094146728515625, -0.06536865234375, 0.008819580078125, 0.005462646484375, 0.01143646240234375, -0.004245758056640625, 0.01026153564453125, 0.0081329345703125, 0.01763916015625, -0.025146484375, 0.0036869049072265625, -0.009185791015625, 0.011444091796875, -0.014556884765625, 0.0258331298828125, -0.016510009765625, 0.0030422210693359375, 0.0280303955078125, 0.08685302734375, 0.014007568359375, -0.0304107666015625, 0.06689453125, -0.02752685546875, -0.042022705078125, 0.007091522216796875, -0.01084136962890625, -0.01514434814453125, -0.0129241943359375, 0.026092529296875, 0.024658203125, -0.033538818359375, -0.0280914306640625, -0.01251220703125, -0.028045654296875, 0.0028743743896484375, 0.0099029541015625, 0.03460693359375, -0.0699462890625, 0.0670166015625, -0.022186279296875, 0.0159149169921875, 0.03155517578125, 0.034088134765625, 0.035247802734375, 0.055877685546875, -0.0220184326171875, -0.0199737548828125, -0.0189208984375, 0.01324462890625, -0.0034351348876953125, 0.00611114501953125, -0.0168609619140625, 0.004985809326171875, -0.0007500648498535156, 0.0307159423828125, 0.0196533203125, 0.042144775390625, -0.043426513671875, 0.045257568359375, 0.005126953125, 0.004131317138671875, -0.055816650390625, -0.003574371337890625, -0.033355712890625, 0.0260162353515625, -0.0126495361328125, 0.0184783935546875, 0.05096435546875, -0.019134521484375, 0.004093170166015625, 0.01444244384765625, -0.00778961181640625, -0.032867431640625, 0.01006317138671875, -0.006927490234375, 0.0190582275390625, 0.01554107666015625 ]
4d258196a9061132d324c99b1a6bf14302369e0a
Wordpress Stackexchange Q: How to not allow custom roles to edit published custom post types? I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members plugin, and i have 'edit_published_events' unchecked in it, but the users can still edit the events. I think the problem is that I have another CPT that I want to let them edit (called listings), so I can't fully restrict 'edit_posts' in the capabilities. Any ideas on how I can just remove the option for editing a published CPT? I did see a post about removing the 'edit' option that appears when you hover over the post's name in the list, but clicking on the post still lets you edit... Thanks!!! A: Something like this (untested) add_action( 'init', 'remove_revisor_cap_edit_posts' ); function remove_revisor_cap_edit_posts() { if ( 'events' == get_post_type() ) { $role = get_role( 'revisor' ); $role->remove_cap( 'edit_posts' ); } }
Q: How to not allow custom roles to edit published custom post types? I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members plugin, and i have 'edit_published_events' unchecked in it, but the users can still edit the events. I think the problem is that I have another CPT that I want to let them edit (called listings), so I can't fully restrict 'edit_posts' in the capabilities. Any ideas on how I can just remove the option for editing a published CPT? I did see a post about removing the 'edit' option that appears when you hover over the post's name in the list, but clicking on the post still lets you edit... Thanks!!! A: Something like this (untested) add_action( 'init', 'remove_revisor_cap_edit_posts' ); function remove_revisor_cap_edit_posts() { if ( 'events' == get_post_type() ) { $role = get_role( 'revisor' ); $role->remove_cap( 'edit_posts' ); } }
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:441840", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/131974" }
[ 0.040008544921875, 0.00496673583984375, 0.01482391357421875, -0.006191253662109375, 0.0285186767578125, -0.032318115234375, 0.0384521484375, -0.0516357421875, 0.0115203857421875, 0.005298614501953125, 0.034454345703125, -0.0172882080078125, -0.038360595703125, -0.0511474609375, -0.01629638671875, -0.0061798095703125, 0.021820068359375, -0.006317138671875, 0.0122222900390625, -0.036163330078125, 0.00722503662109375, -0.025909423828125, 0.039154052734375, 0.031829833984375, -0.005870819091796875, 0.0265045166015625, 0.048492431640625, -0.01491546630859375, 0.0172271728515625, 0.016845703125, 0.019195556640625, -0.06317138671875, -0.00690460205078125, 0.051422119140625, -0.037261962890625, 0.01220703125, 0.00984954833984375, 0.01580810546875, 0.0142822265625, 0.01910400390625, 0.003910064697265625, 0.01303863525390625, -0.0086822509765625, 0.0286102294921875, -0.0257415771484375, -0.03985595703125, 0.005596160888671875, -0.007244110107421875, 0.01263427734375, 0.0014238357543945312, 0.005252838134765625, 0.0240631103515625, 0.0155487060546875, -0.001628875732421875, -0.010040283203125, -0.0083465576171875, -0.0262451171875, 0.01081085205078125, 0.0102691650390625, 0.043121337890625, -0.003162384033203125, 0.0209808349609375, -0.0024967193603515625, -0.0260772705078125, -0.029754638671875, 0.017181396484375, 0.050872802734375, -0.00676727294921875, -0.0706787109375, -0.043121337890625, 0.0266876220703125, -0.016387939453125, 0.016448974609375, -0.01235198974609375, -0.0145416259765625, 0.0087432861328125, 0.0008254051208496094, -0.01169586181640625, 0.0112762451171875, -0.0080413818359375, 0.036590576171875, -0.0294342041015625, 0.0203094482421875, 0.005645751953125, -0.01336669921875, 0.006595611572265625, -0.00142669677734375, -0.0007352828979492188, -0.004150390625, 0.0186920166015625, -0.0172271728515625, -0.03131103515625, -0.0016841888427734375, 0.058135986328125, 0.01377105712890625, -0.0067138671875, 0.059173583984375, 0.0772705078125, -0.019622802734375, -0.028594970703125, 0.0254974365234375, -0.0548095703125, 0.0186767578125, -0.047515869140625, 0.034332275390625, 0.051116943359375, -0.01995849609375, -0.047943115234375, 0.0357666015625, 0.01206207275390625, 0.0230712890625, 0.0022907257080078125, 0.0300140380859375, -0.0085601806640625, -0.00107574462890625, -0.00978851318359375, -0.0031414031982421875, 0.051666259765625, 0.00368499755859375, 0.058746337890625, -0.0046844482421875, -0.0001494884490966797, 0.0287933349609375, -0.05999755859375, 0.0300140380859375, -0.0005249977111816406, -0.06378173828125, -0.003429412841796875, 0.01084136962890625, -0.00400543212890625, -0.066650390625, -0.00035071372985839844, 0.12353515625, 0.0587158203125, 0.05474853515625, -0.024566650390625, -0.00270843505859375, -0.0187225341796875, -0.020355224609375, 0.0190887451171875, 0.01313018798828125, 0.00046133995056152344, 0.0256500244140625, -0.02557373046875, 0.0123291015625, 0.0306243896484375, 0.00400543212890625, 0.006214141845703125, 0.01093292236328125, 0.01001739501953125, -0.0313720703125, -0.04583740234375, 0.032745361328125, -0.008270263671875, 0.0097503662109375, -0.0679931640625, 0.04510498046875, -0.0533447265625, 0.03704833984375, -0.046539306640625, 0.0248565673828125, -0.00957489013671875, -0.0013933181762695312, -0.034759521484375, -0.08807373046875, 0.01971435546875, -0.02197265625, -0.018524169921875, 0.0215911865234375, -0.01129913330078125, 0.047515869140625, -0.0165863037109375, -0.00848388671875, 0.0221710205078125, 0.01151275634765625, 0.0238800048828125, 0.0239105224609375, 0.023345947265625, -0.01453399658203125, 0.045257568359375, 0.0109405517578125, -0.0272369384765625, 0.0281524658203125, -0.025726318359375, -0.04595947265625, 0.0127410888671875, -0.0177459716796875, 0.023529052734375, 0.03955078125, 0.0017843246459960938, 0.0113983154296875, 0.01055145263671875, -0.0026760101318359375, -0.041015625, 0.01110076904296875, -0.020751953125, 0.00542449951171875, -0.0227203369140625, -0.0006866455078125, 0.042236328125, -0.002593994140625, -0.00667572021484375, -0.0132293701171875, -0.0205841064453125, -0.072509765625, -0.0071563720703125, -0.0271453857421875, 0.045196533203125, -0.03094482421875, 0.0302581787109375, 0.031402587890625, 0.0296783447265625, -0.045166015625, -0.01398468017578125, -0.0023059844970703125, 0.003986358642578125, -0.00908660888671875, 0.0306549072265625, -0.00821685791015625, 0.0085906982421875, 0.0198516845703125, -0.078369140625, 0.01125335693359375, 0.0166778564453125, 0.06402587890625, 0.0021114349365234375, -0.009765625, -0.014556884765625, 0.07330322265625, 0.0022640228271484375, -0.006748199462890625, 0.01800537109375, 0.044281005859375, 0.004547119140625, -0.0189056396484375, 0.0019016265869140625, -0.003955841064453125, -0.09942626953125, -0.0020198822021484375, 0.07720947265625, 0.038055419921875, 0.0143280029296875, -0.016143798828125, 0.005916595458984375, 0.0195465087890625, -0.040435791015625, 0.0193634033203125, -0.01947021484375, 0.0040283203125, 0.049346923828125, 0.002567291259765625, 0.01273345947265625, 0.024200439453125, 0.003780364990234375, 0.01837158203125, 0.024932861328125, 0.00882720947265625, 0.01313018798828125, 0.0382080078125, -0.029388427734375, 0.0021800994873046875, -0.045318603515625, -0.029205322265625, -0.0211944580078125, 0.00678253173828125, -0.0007538795471191406, 0.018890380859375, 0.0191497802734375, -0.0167236328125, -0.0271759033203125, 0.019622802734375, 0.018463134765625, -0.01194000244140625, 0.0296173095703125, 0.03759765625, 0.01457977294921875, -0.0528564453125, -0.0039215087890625, 0.005710601806640625, 0.0283966064453125, -0.016510009765625, -0.004459381103515625, 0.018768310546875, -0.00850677490234375, 0.0220184326171875, -0.01708984375, 0.0199432373046875, -0.019378662109375, -0.006725311279296875, -0.042877197265625, 0.0017290115356445312, -0.01114654541015625, -0.0379638671875, 0.041473388671875, 0.0158538818359375, -0.04632568359375, -0.038299560546875, -0.033447265625, 0.0301513671875, -0.0340576171875, 0.0281829833984375, 0.072021484375, -0.00449371337890625, 0.00948333740234375, 0.0205078125, -0.060394287109375, 0.00390625, 0.055816650390625, 0.0241851806640625, -0.018646240234375, -0.05743408203125, 0.005901336669921875, 0.0328369140625, 0.015625, 0.041046142578125, 0.0033721923828125, 0.0290374755859375, 0.042327880859375, 0.0118408203125, -0.0006704330444335938, 0.04107666015625, -0.0204010009765625, -0.00621795654296875, 0.01904296875, -0.0125274658203125, -0.0238037109375, 0.039581298828125, -0.001674652099609375, -0.019134521484375, 0.032989501953125, 0.037078857421875, 0.0242767333984375, -0.01554107666015625, -0.054290771484375, 0.00412750244140625, 0.0181884765625, 0.000055909156799316406, 0.07318115234375, 0.00818634033203125, -0.0643310546875, 0.0023746490478515625, -0.033477783203125, -0.034454345703125, 0.01001739501953125, 0.019927978515625, -0.01177978515625, 0.034393310546875, 0.016937255859375, 0.01690673828125, 0.016876220703125, -0.0172882080078125, -0.043701171875, 0.0206146240234375, -0.01451873779296875, 0.04522705078125, 0.039764404296875, -0.036163330078125, 0.062255859375, 0.093505859375, -0.0015468597412109375, -0.0235748291015625, -0.0026702880859375, -0.04412841796875, -0.01934814453125, 0.00847625732421875, 0.01053619384765625, -0.038665771484375, 0.0309295654296875, 0.033050537109375, 0.023101806640625, 0.01558685302734375, 0.0074005126953125, 0.0008616447448730469, 0.016937255859375, 0.04315185546875, -0.0233001708984375, 0.0159912109375, -0.01053619384765625, 0.0207061767578125, -0.003795623779296875, 0.0271453857421875, -0.0167236328125, 0.0313720703125, -0.05584716796875, -0.062286376953125, 0.039337158203125, -0.07281494140625, -0.00319671630859375, -0.033966064453125, 0.005039215087890625, 0.01255035400390625, 0.0836181640625, -0.0307159423828125, -0.031463623046875, -0.0298919677734375, 0.0072021484375, -0.01364898681640625, -0.027679443359375, 0.0179901123046875, -0.0145111083984375, -0.029998779296875, 0.0190582275390625, 0.0009622573852539062, -0.0086822509765625, -0.03466796875, 0.016632080078125, -0.033233642578125, -0.00925445556640625, 0.055999755859375, -0.03192138671875, 0.01000213623046875, 0.0258941650390625, -0.0112762451171875, -0.0134124755859375, -0.05963134765625, -0.001354217529296875, -0.1181640625, -0.02203369140625, 0.00032019615173339844, 0.060791015625, -0.028564453125, 0.04351806640625, -0.01166534423828125, 0.07745361328125, 0.04400634765625, -0.047515869140625, 0.0166778564453125, -0.0235595703125, -0.0120849609375, 0.00531005859375, 0.00118255615234375, -0.02325439453125, 0.0007243156433105469, 0.018463134765625, -0.007678985595703125, 0.044158935546875, -0.044158935546875, -0.05242919921875, 0.0038299560546875, -0.038055419921875, -0.036773681640625, -0.0096282958984375, -0.00298309326171875, 0.033599853515625, -0.004093170166015625, 0.0096588134765625, -0.0301055908203125, -0.06341552734375, 0.036529541015625, -0.049530029296875, -0.005237579345703125, 0.004756927490234375, 0.0965576171875, 0.01508331298828125, -0.001316070556640625, -0.0084228515625, 0.0005650520324707031, 0.02301025390625, 0.0192718505859375, 0.0341796875, 0.02545166015625, -0.006359100341796875, -0.000797271728515625, 0.00511932373046875, -0.01971435546875, -0.0017337799072265625, 0.03533935546875, 0.01081085205078125, 0.0031604766845703125, -0.0182647705078125, -0.03900146484375, 0.045623779296875, -0.0228118896484375, -0.0101318359375, -0.0017518997192382812, 0.0491943359375, 0.0240936279296875, -0.035491943359375, 0.04095458984375, 0.0027523040771484375, 0.0251617431640625, 0.0035457611083984375, 0.030731201171875, 0.0252838134765625, 0.03436279296875, -0.003932952880859375, -0.02154541015625, -0.0212860107421875, 0.00896453857421875, -0.0181121826171875, -0.0178070068359375, -0.016754150390625, 0.0340576171875, 0.001949310302734375, 0.01068878173828125, -0.00417327880859375, 0.007198333740234375, 0.005306243896484375, -0.036041259765625, -0.06005859375, -0.035186767578125, 0.0011243820190429688, 0.0171966552734375, 0.037445068359375, 0.005706787109375, 0.0189056396484375, 0.041900634765625, 0.036163330078125, 0.0035381317138671875, 0.03497314453125, 0.03985595703125, -0.0006499290466308594, 0.00605010986328125, 0.0267791748046875, -0.0257720947265625, 0.0261688232421875, 0.0169525146484375, 0.0289306640625, -0.0015401840209960938, -0.0323486328125, 0.08514404296875, 0.0689697265625, 0.01104736328125, -0.0038204193115234375, 0.0228271484375, -0.01551055908203125, -0.004730224609375, -0.025482177734375, -0.03759765625, -0.044708251953125, 0.04608154296875, 0.0408935546875, -0.005840301513671875, 0.007015228271484375, -0.0006465911865234375, 0.020660400390625, -0.00676727294921875, 0.022857666015625, 0.0289764404296875, -0.01412200927734375, -0.01500701904296875, 0.01788330078125, 0.0305023193359375, 0.00899505615234375, -0.007511138916015625, 0.000579833984375, -0.0233917236328125, -0.036346435546875, -0.00843048095703125, -0.0609130859375, -0.00315093994140625, 0.0282440185546875, -0.055267333984375, -0.01427459716796875, 0.0227508544921875, -0.0021190643310546875, -0.01361846923828125, -0.007354736328125, -0.03594970703125, 0.01288604736328125, -0.050079345703125, 0.01983642578125, -0.02423095703125, 0.026153564453125, -0.05670166015625, 0.01396942138671875, 0.05841064453125, 0.0501708984375, -0.044036865234375, -0.02313232421875, -0.0567626953125, -0.007656097412109375, -0.07855224609375, -0.0462646484375, -0.00966644287109375, 0.046630859375, 0.0498046875, 0.013580322265625, 0.02203369140625, -0.06732177734375, -0.017425537109375, 0.0059967041015625, 0.041656494140625, 0.03521728515625, -0.0169677734375, 0.058837890625, 0.007389068603515625, 0.0701904296875, -0.00713348388671875, 0.0211029052734375, -0.01025390625, -0.0309906005859375, -0.0079193115234375, -0.046295166015625, -0.0019397735595703125, -0.01092529296875, 0.003833770751953125, 0.03521728515625, 0.03143310546875, 0.007434844970703125, 0.00460052490234375, -0.025665283203125, 0.01456451416015625, -0.039947509765625, 0.00910186767578125, -0.05474853515625, -0.0108489990234375, -0.028564453125, -0.0243988037109375, 0.018157958984375, 0.01020050048828125, 0.0068817138671875, 0.01554107666015625, -0.0114898681640625, 0.03253173828125, -0.00823974609375, 0.006641387939453125, -0.012115478515625, 0.0185699462890625, -0.0218963623046875, 0.03045654296875, 0.0114288330078125, 0.0204620361328125, 0.025543212890625, -0.00905609130859375, 0.027679443359375, 0.0027942657470703125, 0.021484375, -0.0180816650390625, -0.01299285888671875, -0.01560211181640625, -0.0170745849609375, 0.024261474609375, 0.06671142578125, 0.061126708984375, -0.09918212890625, 0.017303466796875, 0.01105499267578125, 0.00681304931640625, 0.0560302734375, 0.0240478515625, -0.01396942138671875, 0.0030803680419921875, -0.016387939453125, -0.07086181640625, -0.042083740234375, -0.01059722900390625, -0.00743865966796875, -0.01233673095703125, -0.0093841552734375, 0.005786895751953125, 0.00963592529296875, 0.0274505615234375, 0.0166473388671875, -0.0268402099609375, 0.0272369384765625, 0.0114288330078125, 0.0181427001953125, 0.0279693603515625, -0.04608154296875, -0.09893798828125, -0.03192138671875, 0.0176849365234375, -0.0726318359375, 0.042266845703125, -0.00887298583984375, 0.00473785400390625, 0.04644775390625, -0.03155517578125, 0.032135009765625, 0.02044677734375, -0.06280517578125, -0.043670654296875, -0.045166015625, -0.003414154052734375, 0.025909423828125, -0.0288238525390625, 0.03570556640625, 0.0048065185546875, -0.050018310546875, -0.0009622573852539062, -0.01322174072265625, 0.047332763671875, -0.01438140869140625, -0.0232391357421875, 0.0257720947265625, -0.01157379150390625, -0.0180206298828125, 0.00618743896484375, -0.01525115966796875, -0.0177001953125, -0.0224761962890625, -0.01474761962890625, -0.053070068359375, 0.0158843994140625, 0.007305145263671875, -0.0286865234375, 0.1103515625, -0.026336669921875, -0.0029430389404296875, 0.041290283203125, 0.043609619140625, -0.036529541015625, 0.0209503173828125, -0.04510498046875, 0.061279296875, -0.041961669921875, 0.0309906005859375, -0.05712890625, 0.00891876220703125, -0.01416015625, -0.01277923583984375, 0.0911865234375, 0.034515380859375, -0.036651611328125, -0.0199432373046875, 0.01050567626953125, 0.02252197265625, -0.030792236328125, 0.045196533203125, -0.0057373046875, -0.01129150390625, 0.031890869140625, -0.0081939697265625, 0.032470703125, -0.0093994140625, -0.01025390625, 0.0156707763671875, 0.00027489662170410156, 0.006099700927734375, -0.036376953125, -0.0306549072265625, -0.01303863525390625, -0.028228759765625, -0.01361846923828125, 0.0220794677734375, 0.0236358642578125, 0.01381683349609375, 0.05987548828125, -0.0345458984375, -0.005802154541015625, -0.017913818359375, 0.0560302734375, 0.027587890625, -0.0021076202392578125, 0.0182342529296875, 0.0223236083984375, -0.047119140625, 0.00335693359375, -0.0019683837890625, 0.021759033203125, -0.0223236083984375, -0.00045800209045410156, 0.033599853515625, 0.00954437255859375, -0.0210723876953125, 0.03472900390625, 0.07421875, 0.0153350830078125, -0.032257080078125, -0.01184844970703125, 0.009674072265625, 0.021392822265625, 0.0020599365234375, -0.0232391357421875, -0.005283355712890625, -0.0176849365234375, 0.0112762451171875, -0.03802490234375, 0.0283966064453125, 0.0193634033203125, 0.007205963134765625, -0.0052337646484375, 0.0017976760864257812, -0.03131103515625, 0.032440185546875, -0.0203857421875, -0.017425537109375, 0.0219879150390625, 0.03338623046875, 0.035888671875, 0.0159149169921875, 0.0394287109375, -0.01132965087890625, -0.01410675048828125, 0.03448486328125, -0.0179595947265625, 0.01258087158203125, -0.049072265625, -0.070068359375, 0.00762176513671875, 0.046295166015625, 0.025390625, -0.010894775390625, 0.036590576171875, 0.044189453125, 0.0093841552734375, 0.00017499923706054688, 0.039886474609375, 0.00783538818359375, -0.03289794921875, -0.03057861328125, -0.0021190643310546875, 0.0035953521728515625, 0.0081024169921875, 0.0195770263671875, 0.0357666015625, 0.0113525390625, 0.00006198883056640625, -0.0195159912109375, 0.0181121826171875, -0.04052734375, 0.0135650634765625, 0.02789306640625, 0.01922607421875, 0.022430419921875, -0.0416259765625, 0.0227203369140625, -0.09130859375, -0.0227813720703125, 0.015533447265625, 0.0095977783203125, -0.0199432373046875, 0.0501708984375, -0.0093536376953125, 0.016998291015625, -0.0096893310546875, -0.008453369140625, -0.00411224365234375, -0.016021728515625, 0.01477813720703125, -0.00858306884765625, -0.0291748046875, -0.0262451171875, -0.017608642578125, 0.04461669921875, -0.00136566162109375, 0.0816650390625, -0.041839599609375, 0.0248565673828125, -0.00679779052734375, 0.046905517578125, -0.039825439453125, -0.02911376953125, 0.04412841796875, 0.0224609375, 0.0330810546875, -0.0186004638671875, 0.01123046875, 0.024871826171875, 0.0472412109375, -0.03173828125, 0.018951416015625, -0.0013818740844726562, 0.001453399658203125, -0.03680419921875, 0.0008111000061035156, -0.0275115966796875, -0.005199432373046875, 0.001369476318359375, -0.0075836181640625, 0.003932952880859375, -0.028045654296875, -0.00937652587890625, 0.0172576904296875, -0.0131072998046875, -0.05023193359375, 0.0240478515625, -0.035858154296875, 0.0043792724609375, 0.016326904296875, 0.0113677978515625, -0.00270843505859375, 0.0517578125, 0.007411956787109375, -0.0007767677307128906, 0.038055419921875, -0.003124237060546875, 0.038970947265625, -0.043609619140625, -0.032806396484375, -0.0236358642578125, 0.020355224609375, -0.0192718505859375, 0.00588226318359375, -0.0239410400390625, 0.0028667449951171875, -0.0198516845703125, 0.003406524658203125, -0.02587890625, -0.0411376953125, -0.021026611328125, 0.004047393798828125, -0.036529541015625, -0.0850830078125, -0.0582275390625, 0.00998687744140625, 0.05987548828125, 0.023834228515625, -0.0953369140625, 0.0550537109375, -0.035369873046875, 0.0452880859375, -0.002719879150390625, -0.0233154296875, 0.02423095703125, 0.032989501953125, -0.0271148681640625, 0.0187835693359375, -0.0228424072265625, -0.03375244140625, -0.00414276123046875, 0.006092071533203125, 0.036865234375, 0.002330780029296875, -0.0207366943359375, -0.0136871337890625, -0.0164337158203125, 0.04278564453125, -0.06005859375, -0.01126861572265625, 0.006313323974609375, -0.00641632080078125, -0.03570556640625, 0.0065460205078125, 0.0166168212890625, -0.00467681884765625, -0.060089111328125, -0.031097412109375, 0.0219573974609375, 0.0352783203125, -0.0084228515625, -0.038665771484375, 0.0694580078125, -0.0210418701171875, -0.00853729248046875, -0.0283203125, -0.006580352783203125, -0.0024318695068359375, 0.017913818359375, -0.0034160614013671875, -0.0311431884765625, -0.024139404296875, 0.0211181640625, -0.00746917724609375, 0.0094757080078125, 0.01025390625, -0.018768310546875, -0.018524169921875, 0.01324462890625, 0.02685546875, -0.0255584716796875, -0.0207366943359375, 0.019989013671875, -0.0013837814331054688, 0.00234222412109375, -0.031341552734375, -0.0210723876953125, 0.0005307197570800781, 0.026092529296875, -0.0285186767578125, -0.03515625, -0.0269775390625, -0.027435302734375, 0.050445556640625, 0.07000732421875, 0.0136871337890625, -0.02301025390625, 0.044281005859375, -0.038665771484375, -0.08416748046875, -0.01250457763671875, 0.020111083984375, -0.053802490234375, -0.00750732421875, 0.0211181640625, -0.0207672119140625, 0.016357421875, -0.0072174072265625, -0.037322998046875, -0.00634002685546875, -0.014801025390625, -0.0020275115966796875, -0.0714111328125, 0.0810546875, -0.01800537109375, -0.0264434814453125, 0.00820159912109375, -0.031280517578125, -0.03546142578125, -0.004314422607421875, -0.022216796875, -0.019805908203125, -0.0135345458984375, -0.021209716796875, 0.044769287109375, -0.0234375, 0.042449951171875, -0.07318115234375, -0.01233673095703125, 0.00493621826171875, 0.0286407470703125, -0.01517486572265625, 0.0247955322265625, -0.0028247833251953125, 0.033447265625, -0.01265716552734375, 0.0557861328125, 0.000885009765625, -0.018035888671875, -0.0269012451171875, 0.0150299072265625, 0.0048980712890625, -0.0065460205078125, 0.041748046875, -0.01055908203125, -0.0001348257064819336, -0.006374359130859375, -0.050567626953125, -0.024200439453125, -0.0218658447265625, -0.03143310546875, -0.032501220703125, -0.004543304443359375 ]
79ef4659ee3475cc32feaf3910872403dd9d3591
Wordpress Stackexchange Q: How to add active class on current menu item page? I have two links: Products and News. When i click on Products or News, it returns me an archive page that contains some posts, when i click on a post it returns me a single page of this post. In the menu I use this code on <li> to add a class called active if the page is home: <li<?php if(is_home()) {?> class="active"<?php } ?>> But i dont know how to do it when I have two archive pages and two singles pages. If i use if( is_archive() || is_single() ) it'll add class on both menu itens. Some help would be appreciated. A: You could add conditional classes for each in your child theme functions file: Here's one example you can modify to suit your own needs. add_filter('nav_menu_css_class' , 'wpsites_nav_class' , 10 , 2); function wpsites_nav_class($classes, $item){ if( is_archive() && $item->title == "Products"){ $classes[] = "products-class"; } return $classes; Source http://codex.wordpress.org/Function_Reference/wp_nav_menu#Adding_Conditional_Classes_to_Menu_Items You can then style your nav menu using the new class in your child themes style.css file. .products-class { Your CSS declarations } This CSS code is conditional based on the PHP code above.
Q: How to add active class on current menu item page? I have two links: Products and News. When i click on Products or News, it returns me an archive page that contains some posts, when i click on a post it returns me a single page of this post. In the menu I use this code on <li> to add a class called active if the page is home: <li<?php if(is_home()) {?> class="active"<?php } ?>> But i dont know how to do it when I have two archive pages and two singles pages. If i use if( is_archive() || is_single() ) it'll add class on both menu itens. Some help would be appreciated. A: You could add conditional classes for each in your child theme functions file: Here's one example you can modify to suit your own needs. add_filter('nav_menu_css_class' , 'wpsites_nav_class' , 10 , 2); function wpsites_nav_class($classes, $item){ if( is_archive() && $item->title == "Products"){ $classes[] = "products-class"; } return $classes; Source http://codex.wordpress.org/Function_Reference/wp_nav_menu#Adding_Conditional_Classes_to_Menu_Items You can then style your nav menu using the new class in your child themes style.css file. .products-class { Your CSS declarations } This CSS code is conditional based on the PHP code above. A: I suppose your Products and News posts are custom posts. For both conditional tags, there is a $post_type-specific equivalent: if (is_post_type_archive('products')) { // ... } elseif (is_post_type_archive(array('news', 'something'))) { // ... } elseif (is_singular('products')) { // ... } elseif (is_singular(array('news', 'something'))) { // ... } So, for Products, it would be: if (is_post_type_archive('products') || is_singular('products')) News accordingly. References: * *is_post_type_archive *is_singular
wordpress
{ "language": "en", "length": 259, "provenance": "stackexchange_00019.jsonl.gz:442026", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133649" }
[ 0.0308837890625, 0.01763916015625, 0.0021572113037109375, 0.00395965576171875, 0.036102294921875, -0.045440673828125, 0.075927734375, -0.04400634765625, -0.02154541015625, -0.018280029296875, -0.044036865234375, -0.0021953582763671875, -0.0509033203125, -0.0301055908203125, 0.005542755126953125, -0.065185546875, 0.032623291015625, -0.018585205078125, 0.020721435546875, 0.0018815994262695312, -0.0206298828125, 0.0263671875, 0.00730133056640625, 0.035247802734375, 0.0251312255859375, -0.07464599609375, 0.07330322265625, -0.00862884521484375, 0.03717041015625, 0.0026035308837890625, 0.03009033203125, -0.0280609130859375, 0.0103759765625, -0.00865936279296875, 0.06011962890625, 0.037017822265625, 0.0211944580078125, -0.00043511390686035156, 0.0253143310546875, 0.0201416015625, 0.030609130859375, -0.0233917236328125, 0.0067291259765625, 0.0260162353515625, -0.0009946823120117188, -0.0474853515625, 0.0303955078125, -0.04107666015625, 0.01470184326171875, -0.0267333984375, 0.0272216796875, -0.0128326416015625, 0.029876708984375, -0.044921875, -0.0189666748046875, 0.0109405517578125, -0.039215087890625, 0.006195068359375, 0.0284423828125, -0.003421783447265625, -0.024688720703125, -0.03289794921875, 0.0216064453125, -0.01180267333984375, 0.01001739501953125, 0.0248260498046875, 0.0606689453125, 0.01506805419921875, -0.072998046875, -0.00795745849609375, 0.032196044921875, -0.03656005859375, 0.00106048583984375, -0.0149688720703125, -0.041961669921875, -0.0140533447265625, 0.018341064453125, -0.0275115966796875, 0.0157470703125, 0.0119781494140625, 0.00875091552734375, 0.0662841796875, -0.00811004638671875, -0.06622314453125, 0.022430419921875, -0.043548583984375, -0.0246429443359375, -0.01067352294921875, 0.0065765380859375, -0.024658203125, -0.005634307861328125, -0.008331298828125, 0.02032470703125, -0.01326751708984375, -0.01541900634765625, -0.048126220703125, 0.01355743408203125, 0.091796875, -0.03363037109375, 0.028533935546875, -0.015777587890625, -0.0341796875, 0.048492431640625, -0.072509765625, 0.0009598731994628906, 0.0654296875, 0.0303955078125, 0.05908203125, 0.048919677734375, 0.00687408447265625, 0.033538818359375, 0.046875, -0.01361083984375, -0.03314208984375, -0.01300048828125, 0.01189422607421875, -0.03680419921875, 0.01097869873046875, 0.023223876953125, -0.0216522216796875, -0.0003657341003417969, 0.0236053466796875, 0.0355224609375, -0.029815673828125, -0.0135650634765625, -0.00707244873046875, -0.02557373046875, -0.04913330078125, 0.004055023193359375, 0.01654052734375, -0.021697998046875, 0.007259368896484375, 0.026763916015625, 0.0196990966796875, -0.00963592529296875, -0.016357421875, 0.0259246826171875, 0.00421142578125, 0.00501251220703125, 0.0016803741455078125, 0.0396728515625, -0.015777587890625, -0.0226593017578125, 0.0196685791015625, 0.037017822265625, 0.010772705078125, 0.0249176025390625, 0.00559234619140625, 0.0058135986328125, -0.0367431640625, 0.0689697265625, -0.0301361083984375, 0.045379638671875, 0.0181884765625, -0.0296783447265625, -0.008453369140625, 0.0113677978515625, -0.0037403106689453125, -0.0240020751953125, -0.03961181640625, 0.006801605224609375, -0.0046234130859375, 0.0406494140625, -0.07269287109375, -0.07177734375, -0.0271148681640625, -0.0787353515625, -0.0171966552734375, 0.020233154296875, -0.054595947265625, -0.0045623779296875, -0.0161285400390625, 0.0275421142578125, 0.0205230712890625, -0.0015230178833007812, 0.06414794921875, -0.00539398193359375, 0.0192718505859375, 0.0287933349609375, 0.008880615234375, -0.0186614990234375, -0.039886474609375, 0.04779052734375, -0.0201263427734375, -0.02874755859375, 0.01403045654296875, -0.005123138427734375, 0.0150299072265625, 0.0032215118408203125, 0.0139923095703125, 0.0017557144165039062, 0.0179595947265625, -0.01861572265625, -0.024139404296875, -0.002384185791015625, -0.01324462890625, -0.0010747909545898438, 0.0050811767578125, -0.0115814208984375, 0.00887298583984375, 0.0137939453125, -0.00433349609375, -0.006290435791015625, -0.0143890380859375, -0.036163330078125, -0.01166534423828125, -0.0206146240234375, 0.037322998046875, -0.0200042724609375, 0.008941650390625, 0.005626678466796875, -0.014373779296875, 0.017669677734375, -0.0848388671875, -0.0162353515625, 0.01203155517578125, 0.0167083740234375, 0.033111572265625, -0.00641632080078125, -0.0204315185546875, -0.00254058837890625, -0.0200042724609375, -0.0029354095458984375, 0.030426025390625, 0.0276031494140625, -0.0019083023071289062, -0.029205322265625, -0.017578125, 0.01580810546875, 0.00943756103515625, -0.0124053955078125, 0.040496826171875, 0.039154052734375, 0.034515380859375, -0.0303955078125, -0.0062255859375, -0.00899505615234375, -0.04156494140625, -0.007678985595703125, 0.04296875, 0.04827880859375, 0.005245208740234375, 0.0045623779296875, -0.014404296875, 0.048583984375, 0.0084991455078125, 0.03424072265625, -0.03558349609375, -0.05059814453125, -0.004558563232421875, 0.0278472900390625, 0.028350830078125, 0.0296630859375, 0.00566864013671875, -0.0180816650390625, 0.042449951171875, -0.0153045654296875, -0.01178741455078125, -0.01206207275390625, 0.01560211181640625, 0.0036411285400390625, 0.03680419921875, -0.006740570068359375, 0.015869140625, 0.032958984375, -0.004222869873046875, 0.022308349609375, 0.003917694091796875, 0.001285552978515625, -0.01398468017578125, 0.00452423095703125, -0.0126800537109375, 0.0169525146484375, 0.0306243896484375, -0.022735595703125, 0.0275421142578125, -0.01482391357421875, -0.00927734375, 0.0189208984375, 0.0098724365234375, -0.03515625, 0.0248565673828125, 0.04254150390625, -0.017333984375, -0.00835418701171875, -0.05352783203125, 0.034698486328125, -0.03619384765625, -0.02374267578125, -0.0269622802734375, 0.0202178955078125, 0.009124755859375, -0.036529541015625, 0.048004150390625, -0.007778167724609375, -0.022247314453125, 0.049652099609375, 0.03387451171875, 0.0042877197265625, -0.0005078315734863281, 0.053741455078125, 0.036163330078125, -0.0450439453125, 0.02587890625, 0.001964569091796875, 0.004718780517578125, -0.0108489990234375, 0.0265960693359375, 0.007694244384765625, -0.0108795166015625, -0.00525665283203125, 0.060516357421875, 0.021270751953125, 0.0034942626953125, 0.016876220703125, -0.0275726318359375, 0.00037479400634765625, -0.0011644363403320312, -0.05279541015625, -0.06011962890625, -0.0018758773803710938, -0.09576416015625, 0.0396728515625, 0.0021839141845703125, -0.03277587890625, -0.03863525390625, 0.06219482421875, 0.0256805419921875, -0.020721435546875, -0.00556182861328125, -0.0252838134765625, -0.029449462890625, -0.0511474609375, 0.0123443603515625, -0.001689910888671875, 0.0232086181640625, 0.0067901611328125, 0.055084228515625, 0.00601959228515625, -0.02923583984375, 0.01088714599609375, 0.0200042724609375, -0.0119781494140625, 0.0116119384765625, -0.0067596435546875, -0.032623291015625, -0.0147552490234375, 0.011077880859375, 0.0061492919921875, -0.0121307373046875, 0.004001617431640625, 0.002330780029296875, -0.00835418701171875, 0.04339599609375, 0.016143798828125, 0.044281005859375, 0.032745361328125, 0.081787109375, 0.053680419921875, 0.0164031982421875, -0.033294677734375, -0.018646240234375, -0.048309326171875, 0.016998291015625, 0.02056884765625, 0.00331878662109375, -0.015411376953125, 0.018798828125, 0.011383056640625, -0.01340484619140625, 0.0396728515625, -0.0253753662109375, 0.05303955078125, -0.01110076904296875, -0.01186370849609375, -0.049224853515625, 0.04840087890625, -0.0025615692138671875, 0.0086517333984375, 0.0234222412109375, 0.00331878662109375, -0.0249176025390625, 0.0289459228515625, -0.07940673828125, -0.052093505859375, 0.0301513671875, -0.003139495849609375, 0.032012939453125, -0.0294952392578125, -0.0262603759765625, 0.01404571533203125, 0.10015869140625, -0.07464599609375, -0.03466796875, 0.00075531005859375, 0.0311126708984375, 0.0219879150390625, -0.03424072265625, 0.0009088516235351562, -0.040985107421875, -0.066650390625, 0.03662109375, -0.00843048095703125, -0.0202484130859375, -0.03399658203125, -0.002918243408203125, -0.056610107421875, -0.031097412109375, 0.037933349609375, -0.043212890625, 0.0081939697265625, 0.05322265625, -0.0210113525390625, 0.015350341796875, -0.02935791015625, -0.0277099609375, -0.07342529296875, -0.004245758056640625, -0.0288238525390625, 0.061279296875, 0.01404571533203125, 0.0147705078125, -0.01250457763671875, 0.04498291015625, 0.021728515625, 0.016143798828125, 0.0150299072265625, -0.00490570068359375, 0.0252685546875, -0.007015228271484375, 0.00597381591796875, -0.01885986328125, 0.010498046875, -0.01158905029296875, -0.06536865234375, -0.031951904296875, -0.040374755859375, -0.01129913330078125, 0.0123748779296875, -0.0281219482421875, -0.0399169921875, -0.036285400390625, 0.014495849609375, 0.0139617919921875, 0.0130767822265625, -0.0039520263671875, -0.03582763671875, -0.04913330078125, -0.002651214599609375, -0.048492431640625, -0.0234375, 0.020751953125, 0.01474761962890625, 0.021087646484375, -0.00399017333984375, 0.0237884521484375, 0.006702423095703125, 0.01153564453125, 0.005649566650390625, 0.06207275390625, 0.019622802734375, -0.007472991943359375, 0.031829833984375, -0.0013475418090820312, -0.003139495849609375, -0.0008869171142578125, 0.07025146484375, 0.01197052001953125, -0.024688720703125, 0.00812530517578125, 0.00794219970703125, -0.0257110595703125, 0.01493072509765625, 0.0087890625, -0.065673828125, -0.006572723388671875, 0.06427001953125, 0.0235443115234375, -0.0013418197631835938, -0.047607421875, 0.00803375244140625, -0.021484375, 0.00905609130859375, 0.061767578125, 0.07244873046875, -0.0150604248046875, 0.0261993408203125, 0.01479339599609375, -0.0186004638671875, -0.0189056396484375, 0.0182952880859375, -0.011688232421875, 0.02349853515625, -0.043792724609375, -0.031646728515625, -0.0208587646484375, -0.0122528076171875, 0.038482666015625, 0.019439697265625, -0.01947021484375, -0.0261688232421875, 0.0178070068359375, 0.01363372802734375, -0.0064239501953125, -0.009857177734375, 0.0562744140625, 0.0023479461669921875, -0.0269622802734375, -0.032867431640625, -0.0592041015625, -0.006221771240234375, -0.0745849609375, 0.03314208984375, 0.026153564453125, 0.0004024505615234375, 0.0234832763671875, 0.0130157470703125, 0.059661865234375, -0.0010480880737304688, -0.04150390625, -0.0223541259765625, -0.01160430908203125, 0.04205322265625, 0.0243682861328125, -0.0257720947265625, 0.00711822509765625, 0.0270233154296875, 0.0579833984375, -0.02960205078125, -0.002285003662109375, 0.038726806640625, 0.049896240234375, -0.00254058837890625, -0.0111846923828125, -0.004978179931640625, -0.0157623291015625, -0.01514434814453125, 0.01776123046875, 0.0009713172912597656, -0.00824737548828125, -0.0343017578125, 0.007511138916015625, 0.03619384765625, 0.01678466796875, -0.03741455078125, 0.0145721435546875, -0.0015964508056640625, 0.0386962890625, 0.05499267578125, -0.039642333984375, 0.050445556640625, 0.03485107421875, -0.0333251953125, -0.001148223876953125, 0.03387451171875, -0.07745361328125, -0.01316070556640625, -0.032623291015625, -0.0307464599609375, 0.04302978515625, -0.02996826171875, 0.045013427734375, -0.049560546875, -0.0044708251953125, -0.045684814453125, 0.004009246826171875, 0.029083251953125, 0.016326904296875, -0.033477783203125, -0.001491546630859375, -0.046295166015625, -0.00858306884765625, -0.0303192138671875, -0.042266845703125, -0.026824951171875, -0.004917144775390625, 0.006061553955078125, 0.00981903076171875, -0.0036106109619140625, -0.029327392578125, -0.03411865234375, 0.01053619384765625, 0.03363037109375, -0.01800537109375, -0.0215911865234375, 0.10577392578125, 0.005504608154296875, 0.048248291015625, 0.017120361328125, 0.03741455078125, -0.03546142578125, 0.00839996337890625, -0.00441741943359375, -0.0037326812744140625, 0.0014829635620117188, -0.0189666748046875, -0.0217437744140625, 0.0184173583984375, 0.09332275390625, -0.0009617805480957031, 0.0262451171875, -0.0129547119140625, 0.00870513916015625, -0.031494140625, -0.022613525390625, -0.0458984375, -0.0208282470703125, -0.00311279296875, -0.0146636962890625, 0.041351318359375, -0.001857757568359375, -0.0157928466796875, 0.0300140380859375, -0.01168060302734375, 0.047821044921875, 0.00904083251953125, -0.0657958984375, 0.0655517578125, 0.05859375, -0.0165252685546875, 0.04620361328125, -0.017333984375, 0.0140533447265625, 0.037017822265625, -0.027740478515625, -0.01062774658203125, 0.06732177734375, 0.07269287109375, -0.020782470703125, -0.0166168212890625, 0.035064697265625, -0.0289459228515625, -0.0010824203491210938, 0.037994384765625, 0.044464111328125, -0.055572509765625, 0.002246856689453125, -0.00281524658203125, -0.0142669677734375, 0.041351318359375, 0.0301971435546875, -0.00714874267578125, 0.028961181640625, 0.0006117820739746094, -0.029205322265625, -0.0131072998046875, 0.0255889892578125, 0.0181121826171875, 0.00742340087890625, 0.000037729740142822266, 0.00016558170318603516, -0.006099700927734375, -0.05047607421875, -0.0270233154296875, 0.0307769775390625, -0.019256591796875, -0.0214691162109375, -0.0177459716796875, 0.01232147216796875, -0.0294647216796875, -0.0222930908203125, 0.03662109375, -0.0256805419921875, 0.023284912109375, -0.0007457733154296875, -0.00901031494140625, 0.00731658935546875, 0.0279998779296875, -0.02752685546875, 0.014129638671875, -0.0121612548828125, 0.005565643310546875, -0.040679931640625, -0.01544952392578125, 0.039459228515625, -0.0535888671875, -0.054351806640625, 0.01312255859375, -0.056396484375, -0.05194091796875, -0.01055145263671875, -0.0171661376953125, 0.06585693359375, -0.041259765625, -0.012054443359375, 0.0162200927734375, -0.0159759521484375, -0.00272369384765625, -0.002887725830078125, 0.06256103515625, -0.0263214111328125, -0.00942230224609375, 0.025665283203125, -0.016387939453125, -0.037811279296875, -0.015838623046875, -0.0191497802734375, 0.0308990478515625, -0.04949951171875, -0.01480865478515625, 0.038421630859375, 0.03369140625, -0.029449462890625, 0.01027679443359375, -0.0072479248046875, 0.055999755859375, 0.0119171142578125, -0.00489044189453125, -0.017181396484375, 0.00890350341796875, -0.003894805908203125, 0.00806427001953125, -0.032623291015625, -0.0019321441650390625, -0.028900146484375, 0.0111083984375, 0.0582275390625, 0.0255889892578125, 0.026123046875, 0.024322509765625, -0.044830322265625, -0.029876708984375, 0.0031833648681640625, -0.0258941650390625, 0.0285186767578125, -0.0230560302734375, -0.041229248046875, -0.04058837890625, 0.01377105712890625, 0.014556884765625, -0.0082244873046875, 0.0650634765625, -0.00482940673828125, -0.005695343017578125, 0.0031261444091796875, 0.0219879150390625, -0.00481414794921875, 0.0439453125, 0.003124237060546875, 0.003391265869140625, -0.01061248779296875, -0.033477783203125, 0.020660400390625, -0.006084442138671875, -0.0036983489990234375, 0.0268096923828125, 0.016265869140625, -0.0207061767578125, 0.044830322265625, 0.01374053955078125, 0.049652099609375, -0.02618408203125, 0.03582763671875, 0.03826904296875, 0.03875732421875, 0.01558685302734375, -0.0194244384765625, -0.013763427734375, 0.03289794921875, -0.01328277587890625, -0.0460205078125, 0.01338958740234375, -0.00249481201171875, 0.00678253173828125, 0.01177978515625, 0.01377105712890625, -0.03424072265625, 0.0079193115234375, -0.03076171875, 0.0152587890625, 0.04803466796875, -0.007213592529296875, 0.0081634521484375, 0.03460693359375, -0.037017822265625, 0.0178985595703125, -0.054046630859375, 0.01279449462890625, 0.01032257080078125, 0.0650634765625, 0.0242919921875, 0.047149658203125, -0.004364013671875, -0.0304412841796875, -0.0175628662109375, 0.03607177734375, 0.0031833648681640625, 0.00927734375, -0.0283050537109375, -0.04290771484375, 0.008636474609375, 0.0298004150390625, 0.040283203125, 0.0202789306640625, 0.0396728515625, 0.01451873779296875, -0.0112762451171875, 0.00402069091796875, 0.034881591796875, -0.01384735107421875, -0.03631591796875, -0.00705718994140625, 0.01287078857421875, 0.047332763671875, 0.0142364501953125, 0.00136566162109375, 0.01153564453125, 0.06719970703125, -0.0341796875, 0.004302978515625, -0.007297515869140625, -0.0163421630859375, 0.02130126953125, 0.0325927734375, 0.01242828369140625, 0.01158905029296875, -0.12646484375, -0.038360595703125, -0.006519317626953125, -0.046356201171875, 0.06451416015625, 0.064453125, -0.031494140625, 0.01049041748046875, 0.052276611328125, -0.01442718505859375, 0.0015850067138671875, 0.01251220703125, 0.00431060791015625, 0.038421630859375, 0.0291748046875, 0.046173095703125, -0.0404052734375, -0.0131683349609375, -0.0223541259765625, 0.0283050537109375, 0.04974365234375, -0.01097869873046875, 0.019012451171875, 0.049102783203125, -0.035064697265625, 0.007587432861328125, -0.041412353515625, -0.039703369140625, 0.0357666015625, -0.01605224609375, -0.005096435546875, 0.00870513916015625, -0.043365478515625, -0.0068817138671875, 0.06854248046875, -0.0310821533203125, 0.0249786376953125, -0.0132598876953125, 0.0130462646484375, -0.0684814453125, 0.01354217529296875, -0.02490234375, 0.00891876220703125, -0.0115203857421875, -0.02203369140625, 0.031036376953125, 0.003391265869140625, -0.006134033203125, 0.044219970703125, 0.01361846923828125, -0.0174713134765625, 0.024322509765625, -0.03326416015625, 0.027618408203125, 0.0310211181640625, -0.0032634735107421875, -0.0242919921875, 0.043853759765625, -0.0039043426513671875, 0.029815673828125, 0.00403594970703125, 0.051544189453125, 0.03192138671875, -0.02642822265625, 0.06268310546875, 0.055267333984375, 0.0411376953125, -0.0299530029296875, 0.00591278076171875, 0.09027099609375, -0.020721435546875, 0.004924774169921875, -0.04595947265625, -0.02923583984375, -0.0389404296875, 0.01465606689453125, 0.033050537109375, -0.0053863525390625, -0.0073394775390625, -0.055877685546875, 0.0173492431640625, 0.019683837890625, -0.0038242340087890625, -0.053375244140625, 0.022857666015625, -0.0214385986328125, 0.065673828125, -0.0408935546875, -0.01340484619140625, -0.0025005340576171875, -0.018768310546875, -0.0220947265625, 0.0036163330078125, -0.04718017578125, 0.0014362335205078125, -0.0268402099609375, -0.0033435821533203125, 0.0162200927734375, -0.00818634033203125, 0.0162200927734375, -0.017364501953125, -0.0085601806640625, 0.0404052734375, -0.0017251968383789062, -0.03387451171875, 0.021209716796875, -0.024078369140625, 0.01629638671875, -0.02288818359375, -0.0008969306945800781, -0.0472412109375, -0.0123748779296875, 0.034881591796875, -0.0265655517578125, 0.005859375, -0.03363037109375, -0.06500244140625, 0.088623046875, 0.0094757080078125, -0.03643798828125, -0.0031986236572265625, 0.01824951171875, -0.032928466796875, -0.00213623046875, 0.0027904510498046875, -0.03631591796875, 0.0307464599609375, 0.030792236328125, 0.00698089599609375, 0.107421875, -0.0030364990234375, 0.0172882080078125, -0.0052490234375, -0.0008611679077148438, -0.0270843505859375, 0.028106689453125, -0.005889892578125, -0.005397796630859375, 0.0200653076171875, 0.024566650390625, -0.042205810546875, -0.006710052490234375, 0.0020427703857421875, 0.0242767333984375, 0.0279693603515625, -0.0172119140625, -0.05072021484375, -0.056243896484375, 0.0172271728515625, -0.0089111328125, 0.0059967041015625, 0.03631591796875, 0.00035762786865234375, -0.0251922607421875, -0.043792724609375, 0.0030651092529296875, 0.0146331787109375, -0.032257080078125, 0.0032520294189453125, 0.01081085205078125, -0.01251983642578125, 0.00470733642578125, 0.0277557373046875, -0.032989501953125, 0.01055908203125, 0.01507568359375, -0.007106781005859375, -0.06768798828125, -0.07171630859375, 0.02093505859375, -0.00389862060546875, 0.01122283935546875, 0.016998291015625, 0.037994384765625, 0.0009088516235351562, 0.064453125, 0.0017032623291015625, 0.01096343994140625, -0.023651123046875, -0.020538330078125, 0.009033203125, 0.0061187744140625, 0.00894927978515625, 0.000736236572265625, 0.0051422119140625, 0.0002321004867553711, 0.0171051025390625, 0.0165252685546875, -0.0089569091796875, -0.00003522634506225586, -0.0175628662109375, 0.008026123046875, 0.015899658203125, 0.0265960693359375, 0.0026149749755859375, 0.033172607421875, 0.0055694580078125, -0.0280303955078125, 0.024322509765625, -0.0362548828125, -0.0189361572265625, -0.0024166107177734375, -0.0318603515625, -0.0977783203125, 0.057159423828125, -0.013580322265625, 0.01763916015625, 0.03778076171875 ]
bcaad45fd75a1dd8467ea5a38dd21232fa63e9dd
Wordpress Stackexchange Q: Removing My Sites menu from Admin I am trying to find a solution to remove the "My Sites" menu that comes under the Dashboard section of a multi-site install. Any ideas on which hook to use? A: You can use remove_submenu_page to remove it. Note that it doesn't prevent visiting that page if you manually enter the URL. function adjust_the_wp_menu() { $page = remove_submenu_page( 'index.php', 'my-sites.php' ); } add_action( 'admin_menu', 'adjust_the_wp_menu', 999 ); Based on the example from remove_submenu_page Codex page.
Q: Removing My Sites menu from Admin I am trying to find a solution to remove the "My Sites" menu that comes under the Dashboard section of a multi-site install. Any ideas on which hook to use? A: You can use remove_submenu_page to remove it. Note that it doesn't prevent visiting that page if you manually enter the URL. function adjust_the_wp_menu() { $page = remove_submenu_page( 'index.php', 'my-sites.php' ); } add_action( 'admin_menu', 'adjust_the_wp_menu', 999 ); Based on the example from remove_submenu_page Codex page.
wordpress
{ "language": "en", "length": 82, "provenance": "stackexchange_00019.jsonl.gz:442032", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133666" }
[ 0.0712890625, 0.0259246826171875, 0.0258941650390625, 0.05322265625, 0.025848388671875, -0.051055908203125, 0.09808349609375, -0.09344482421875, 0.0082855224609375, 0.00939178466796875, 0.018951416015625, -0.0089874267578125, -0.053985595703125, -0.032073974609375, -0.0213470458984375, -0.034576416015625, 0.0228729248046875, -0.0001615285873413086, 0.025177001953125, 0.0008463859558105469, 0.0047454833984375, 0.0310821533203125, -0.002071380615234375, 0.003818511962890625, 0.004840850830078125, -0.02081298828125, -0.0120849609375, 0.033966064453125, -0.032012939453125, -0.019073486328125, 0.0005154609680175781, 0.0465087890625, -0.0038661956787109375, 0.0164947509765625, 0.0089263916015625, 0.00881195068359375, -0.0057525634765625, 0.016448974609375, 0.0262298583984375, 0.0068817138671875, -0.01117706298828125, 0.023590087890625, 0.007122039794921875, 0.0298919677734375, -0.0160980224609375, -0.054046630859375, 0.006122589111328125, -0.047271728515625, -0.0024013519287109375, -0.051025390625, 0.024169921875, -0.0192413330078125, 0.04705810546875, -0.032012939453125, -0.03436279296875, -0.015777587890625, 0.036529541015625, -0.011993408203125, 0.0335693359375, 0.01372528076171875, -0.038787841796875, 0.00482940673828125, 0.0015935897827148438, -0.058197021484375, -0.00962066650390625, -0.0038852691650390625, -0.0029964447021484375, -0.006481170654296875, -0.08209228515625, 0.0160369873046875, 0.07122802734375, -0.0506591796875, 0.0096588134765625, 0.0124359130859375, -0.0406494140625, -0.0416259765625, 0.01409912109375, -0.0369873046875, 0.03558349609375, -0.0187225341796875, -0.01113128662109375, -0.0006623268127441406, -0.0287628173828125, 0.01337432861328125, -0.0032558441162109375, 0.042327880859375, -0.0195159912109375, -0.0217742919921875, -0.035400390625, 0.01447296142578125, -0.0204620361328125, -0.008148193359375, -0.0166015625, 0.021392822265625, -0.00836944580078125, -0.006710052490234375, 0.0587158203125, 0.08221435546875, -0.002227783203125, -0.0160980224609375, -0.00812530517578125, -0.034027099609375, -0.0242919921875, -0.030059814453125, -0.0017223358154296875, 0.042083740234375, -0.00429534912109375, -0.01751708984375, 0.0237884521484375, 0.0228424072265625, 0.0038356781005859375, -0.00960540771484375, -0.00995635986328125, -0.02545166015625, -0.0472412109375, 0.01934814453125, -0.0168609619140625, -0.024261474609375, 0.005382537841796875, -0.03070068359375, -0.0103607177734375, 0.0171051025390625, -0.03436279296875, 0.018768310546875, -0.00756072998046875, -0.00356292724609375, -0.0282440185546875, 0.013641357421875, -0.027740478515625, -0.008056640625, -0.047943115234375, 0.010223388671875, 0.09149169921875, 0.05950927734375, 0.032257080078125, -0.0262908935546875, 0.01558685302734375, -0.0169677734375, 0.009307861328125, 0.01465606689453125, 0.03692626953125, -0.032196044921875, -0.0201568603515625, -0.0072174072265625, -0.0301361083984375, -0.0162353515625, -0.0030002593994140625, 0.039154052734375, 0.0183563232421875, 0.001964569091796875, -0.01495361328125, -0.0295867919921875, 0.042633056640625, 0.0195770263671875, -0.014923095703125, -0.0213470458984375, 0.044830322265625, -0.04449462890625, -0.0182952880859375, -0.0589599609375, -0.068603515625, -0.014312744140625, 0.053436279296875, -0.0467529296875, -0.042694091796875, 0.040008544921875, -0.0158843994140625, -0.002918243408203125, 0.035247802734375, -0.02001953125, 0.00983428955078125, -0.06268310546875, 0.0259552001953125, 0.035369873046875, 0.0088653564453125, 0.0621337890625, 0.0087127685546875, 0.00970458984375, 0.00762939453125, 0.062347412109375, -0.00418853759765625, -0.0386962890625, 0.0057220458984375, 0.0001157522201538086, -0.0865478515625, 0.031768798828125, 0.018157958984375, 0.087890625, 0.00921630859375, 0.028472900390625, 0.086669921875, 0.0025196075439453125, -0.0274200439453125, -0.0292205810546875, 0.0089263916015625, 0.00025343894958496094, -0.0206756591796875, 0.00809478759765625, -0.0189208984375, -0.00763702392578125, -0.0002529621124267578, 0.0343017578125, -0.00574493408203125, 0.04730224609375, -0.0399169921875, 0.042205810546875, -0.020965576171875, 0.0298004150390625, 0.037567138671875, 0.0164947509765625, -0.0247802734375, -0.00841522216796875, 0.00839996337890625, -0.0439453125, -0.032073974609375, 0.0133514404296875, -0.00458526611328125, 0.0185546875, -0.0084686279296875, 0.01898193359375, -0.0232391357421875, -0.01751708984375, -0.028900146484375, -0.006023406982421875, 0.0416259765625, 0.00689697265625, -0.0479736328125, -0.0120086669921875, 0.0267181396484375, -0.016632080078125, -0.0056915283203125, 0.056640625, 0.032501220703125, 0.038848876953125, -0.005947113037109375, 0.01328277587890625, 0.02093505859375, -0.07421875, -0.017730712890625, 0.0272979736328125, 0.023681640625, 0.034149169921875, -0.046783447265625, -0.024169921875, 0.01259613037109375, -0.06927490234375, -0.005550384521484375, 0.0013647079467773438, 0.003787994384765625, 0.02313232421875, 0.023345947265625, 0.0005364418029785156, 0.02545166015625, 0.0174102783203125, 0.0252838134765625, 0.0223236083984375, -0.0200347900390625, -0.031707763671875, 0.0195770263671875, -0.0179595947265625, 0.028594970703125, 0.006443023681640625, -0.038299560546875, 0.005077362060546875, 0.013397216796875, 0.025146484375, 0.0284423828125, 0.0396728515625, -0.029632568359375, -0.01358795166015625, 0.0309295654296875, 0.034698486328125, -0.0194244384765625, 0.01690673828125, 0.04632568359375, -0.034698486328125, -0.0284271240234375, -0.005893707275390625, -0.032562255859375, -0.006809234619140625, -0.0209197998046875, 0.0185546875, -0.01255035400390625, -0.0080108642578125, -0.0205078125, -0.06793212890625, 0.0170135498046875, 0.01294708251953125, 0.007587432861328125, -0.01593017578125, 0.02508544921875, -0.0133209228515625, -0.02996826171875, 0.00185394287109375, 0.020355224609375, -0.04437255859375, 0.03704833984375, -0.023193359375, 0.0277862548828125, -0.01416015625, 0.02447509765625, 0.060028076171875, 0.017913818359375, -0.02197265625, 0.003627777099609375, -0.00756072998046875, -0.0016870498657226562, -0.0013170242309570312, -0.0036983489990234375, 0.028656005859375, -0.05517578125, 0.05841064453125, 0.0035457611083984375, -0.044097900390625, 0.00563812255859375, -0.0308837890625, -0.01690673828125, -0.0135345458984375, -0.0909423828125, -0.031829833984375, -0.01513671875, -0.01494598388671875, -0.0019025802612304688, 0.0307464599609375, -0.010040283203125, -0.006687164306640625, 0.063720703125, 0.0037631988525390625, 0.0164642333984375, -0.031951904296875, -0.0196990966796875, -0.00848388671875, -0.042633056640625, 0.036529541015625, 0.0159149169921875, 0.001880645751953125, 0.00583648681640625, 0.041717529296875, 0.0010223388671875, -0.059112548828125, 0.01519775390625, -0.02386474609375, -0.01436614990234375, 0.017425537109375, 0.025360107421875, -0.0195159912109375, -0.0016880035400390625, 0.00789642333984375, 0.005001068115234375, 0.0201263427734375, -0.00447845458984375, -0.0246429443359375, -0.02154541015625, 0.0025043487548828125, 0.023101806640625, -0.054718017578125, 0.0160369873046875, -0.0014476776123046875, -0.016265869140625, -0.051971435546875, -0.007793426513671875, -0.0232086181640625, -0.033721923828125, 0.048492431640625, 0.007049560546875, -0.0214080810546875, 0.014068603515625, 0.0157623291015625, 0.0274810791015625, -0.01392364501953125, 0.0021820068359375, 0.01031494140625, 0.009246826171875, -0.0022735595703125, 0.015350341796875, -0.023193359375, 0.032257080078125, -0.0201416015625, -0.00048089027404785156, 0.00962066650390625, 0.00444793701171875, 0.0015468597412109375, -0.0032024383544921875, -0.006923675537109375, -0.0196685791015625, 0.047332763671875, -0.006328582763671875, 0.054168701171875, -0.03912353515625, -0.0291595458984375, -0.030792236328125, 0.091064453125, -0.0634765625, -0.0184326171875, -0.0113983154296875, 0.0034618377685546875, 0.0301361083984375, -0.034332275390625, -0.0270233154296875, -0.03265380859375, -0.1453857421875, -0.00893402099609375, -0.0330810546875, -0.042327880859375, -0.0285186767578125, 0.046630859375, -0.0869140625, -0.059173583984375, 0.051025390625, -0.040679931640625, 0.006023406982421875, 0.00399017333984375, -0.007587432861328125, -0.04705810546875, -0.035675048828125, -0.01364898681640625, -0.02923583984375, 0.00885009765625, -0.0545654296875, 0.0330810546875, 0.040771484375, -0.01251983642578125, 0.004314422607421875, 0.0153656005859375, 0.015655517578125, -0.01027679443359375, -0.00870513916015625, -0.0076141357421875, 0.001956939697265625, -0.00588226318359375, -0.015716552734375, -0.021087646484375, -0.017181396484375, 0.00777435302734375, -0.023529052734375, 0.034881591796875, 0.005947113037109375, 0.00868988037109375, 0.03765869140625, -0.026824951171875, -0.0491943359375, -0.056884765625, -0.019073486328125, -0.0274505615234375, -0.0241546630859375, 0.0172882080078125, -0.0244293212890625, -0.0175933837890625, -0.00930023193359375, 0.0190582275390625, -0.05078125, 0.02301025390625, -0.002490997314453125, 0.02252197265625, -0.01416778564453125, -0.042755126953125, 0.0162506103515625, 0.025604248046875, -0.046417236328125, 0.055938720703125, 0.019317626953125, 0.00292205810546875, 0.032867431640625, -0.0289306640625, 0.0180206298828125, -0.0225830078125, 0.03472900390625, 0.0216217041015625, 0.01404571533203125, 0.00933837890625, 0.000583648681640625, 0.0030193328857421875, 0.0026836395263671875, 0.0083465576171875, -0.035491943359375, -0.0318603515625, 0.052947998046875, 0.035308837890625, -0.01519775390625, -0.06884765625, -0.007701873779296875, -0.00412750244140625, -0.0131378173828125, 0.03204345703125, 0.040802001953125, -0.0128173828125, 0.00865936279296875, 0.01837158203125, 0.01517486572265625, -0.032012939453125, 0.00499725341796875, -0.0504150390625, 0.02911376953125, -0.04217529296875, -0.00969696044921875, -0.007549285888671875, -0.0118560791015625, 0.05926513671875, 0.01097869873046875, -0.03411865234375, -0.0391845703125, -0.0112762451171875, 0.05303955078125, -0.006687164306640625, 0.0122528076171875, 0.0156707763671875, 0.01532745361328125, -0.0259246826171875, -0.00492095947265625, 0.0289764404296875, -0.048858642578125, -0.0305938720703125, -0.0255279541015625, 0.00258636474609375, -0.020477294921875, 0.037567138671875, 0.025543212890625, -0.007495880126953125, 0.03192138671875, -0.016571044921875, 0.0145721435546875, 0.003910064697265625, 0.021636962890625, -0.012542724609375, 0.03521728515625, 0.014190673828125, -0.0146331787109375, 0.037109375, -0.0024738311767578125, -0.0006356239318847656, 0.0160980224609375, 0.0070037841796875, 0.048583984375, 0.0219268798828125, -0.02789306640625, -0.0122528076171875, -0.02764892578125, 0.08575439453125, -0.0369873046875, -0.125, -0.024627685546875, 0.036346435546875, 0.0191802978515625, -0.0684814453125, 0.01373291015625, 0.01470184326171875, -0.0142059326171875, -0.00638580322265625, -0.0018377304077148438, -0.031890869140625, -0.0267181396484375, -0.0142059326171875, -0.0010786056518554688, 0.033172607421875, 0.00907135009765625, -0.1131591796875, -0.0870361328125, 0.00220489501953125, 0.008270263671875, 0.046783447265625, -0.0106201171875, 0.0034809112548828125, -0.0223388671875, 0.008026123046875, -0.021697998046875, -0.0092315673828125, 0.06646728515625, 0.0299530029296875, -0.061614990234375, -0.0009508132934570312, -0.020416259765625, -0.0091094970703125, -0.03570556640625, -0.042877197265625, -0.045684814453125, 0.0012788772583007812, 0.0031280517578125, -0.0009336471557617188, 0.01247406005859375, 0.006931304931640625, 0.006805419921875, 0.018951416015625, -0.01030731201171875, -0.0261993408203125, 0.004772186279296875, 0.059906005859375, -0.008209228515625, 0.034454345703125, 0.031707763671875, 0.05548095703125, 0.00907135009765625, -0.0338134765625, 0.0222015380859375, -0.04510498046875, -0.036163330078125, -0.020782470703125, -0.0244140625, 0.0299072265625, 0.03436279296875, -0.0064849853515625, -0.0098419189453125, 0.0019779205322265625, 0.004215240478515625, -0.039215087890625, 0.01690673828125, -0.01953125, -0.0134735107421875, -0.02349853515625, -0.026641845703125, 0.0301971435546875, -0.00545501708984375, 0.010040283203125, 0.0191497802734375, -0.02398681640625, 0.0167694091796875, 0.025726318359375, -0.0226898193359375, 0.07598876953125, 0.0948486328125, -0.0191192626953125, 0.04278564453125, 0.024749755859375, -0.0173187255859375, 0.0070648193359375, 0.0067901611328125, 0.002475738525390625, -0.01059722900390625, 0.004795074462890625, -0.0014677047729492188, 0.044586181640625, 0.031463623046875, 0.01027679443359375, -0.012359619140625, 0.07391357421875, 0.05975341796875, -0.1046142578125, 0.007190704345703125, 0.025787353515625, 0.038726806640625, 0.047332763671875, -0.0308990478515625, -0.0257720947265625, -0.041839599609375, 0.02972412109375, 0.01250457763671875, -0.04046630859375, -0.0100250244140625, 0.01326751708984375, -0.0279083251953125, -0.01136016845703125, 0.050018310546875, 0.0394287109375, 0.027130126953125, 0.0017681121826171875, -0.0245361328125, 0.0236968994140625, -0.01235198974609375, 0.00482940673828125, 0.0148162841796875, -0.01323699951171875, -0.04864501953125, 0.024139404296875, -0.029327392578125, -0.006877899169921875, 0.0281524658203125, 0.01397705078125, -0.0283355712890625, 0.051055908203125, -0.044952392578125, 0.0357666015625, 0.009002685546875, -0.018768310546875, 0.0038204193115234375, 0.00559234619140625, 0.03546142578125, -0.0090484619140625, -0.0275115966796875, 0.0148773193359375, -0.0297088623046875, -0.0345458984375, 0.0014562606811523438, -0.0004286766052246094, 0.0789794921875, -0.0628662109375, -0.0016832351684570312, 0.014434814453125, 0.0274810791015625, 0.0003921985626220703, 0.00778961181640625, 0.04425048828125, -0.0408935546875, -0.03521728515625, 0.01305389404296875, -0.0304412841796875, -0.033203125, -0.018463134765625, -0.06024169921875, 0.08233642578125, -0.035064697265625, 0.0235137939453125, 0.0232696533203125, 0.0310211181640625, -0.0300140380859375, 0.0066375732421875, -0.03021240234375, 0.0247039794921875, 0.081298828125, 0.017364501953125, -0.004230499267578125, -0.0174560546875, -0.005710601806640625, 0.018768310546875, -0.005950927734375, 0.01220703125, 0.0011358261108398438, -0.0032978057861328125, 0.023284912109375, 0.020477294921875, 0.0186920166015625, 0.0196380615234375, -0.0330810546875, 0.0095062255859375, 0.033447265625, -0.058258056640625, 0.0257568359375, -0.01898193359375, -0.031524658203125, -0.022552490234375, 0.01355743408203125, 0.0006842613220214844, 0.0137176513671875, -0.01085662841796875, -0.020843505859375, 0.0202484130859375, 0.00959014892578125, 0.02349853515625, -0.0036830902099609375, -0.004711151123046875, -0.0179443359375, 0.00728607177734375, 0.04998779296875, -0.0264892578125, 0.03399658203125, 0.0194244384765625, -0.004638671875, 0.02166748046875, 0.0199737548828125, -0.01605224609375, -0.0001786947250366211, -0.0045013427734375, 0.03741455078125, -0.03143310546875, 0.016571044921875, 0.01374053955078125, 0.036407470703125, -0.0212860107421875, -0.01195526123046875, 0.0118408203125, 0.03240966796875, -0.005615234375, -0.03826904296875, 0.021942138671875, -0.0029010772705078125, -0.0064544677734375, 0.0238189697265625, 0.0294342041015625, 0.0312042236328125, 0.0277557373046875, 0.0250701904296875, -0.0078125, 0.0234832763671875, 0.006282806396484375, 0.0028839111328125, 0.0097198486328125, 0.0114288330078125, 0.01071929931640625, -0.02728271484375, 0.01529693603515625, 0.00675201416015625, 0.029083251953125, 0.021209716796875, 0.0198974609375, -0.038604736328125, -0.0130615234375, -0.0134735107421875, 0.027435302734375, -0.043243408203125, 0.022430419921875, -0.08038330078125, -0.08770751953125, 0.01934814453125, 0.059417724609375, -0.0079498291015625, 0.006671905517578125, 0.048309326171875, 0.05126953125, -0.0170135498046875, -0.0224456787109375, 0.004947662353515625, -0.018310546875, -0.006381988525390625, -0.0200653076171875, -0.001689910888671875, 0.0196990966796875, -0.01531982421875, 0.015625, 0.037750244140625, 0.0130767822265625, -0.01297760009765625, 0.020294189453125, -0.0060577392578125, -0.0100250244140625, 0.0129241943359375, 0.0024566650390625, 0.01551055908203125, 0.0279388427734375, -0.0574951171875, -0.01092529296875, -0.04327392578125, -0.0098724365234375, 0.0144195556640625, 0.043792724609375, -0.0108795166015625, 0.0185089111328125, 0.0230712890625, 0.0226898193359375, -0.016998291015625, -0.0265960693359375, 0.0222625732421875, -0.016204833984375, 0.025604248046875, 0.0267486572265625, -0.00489044189453125, -0.01447296142578125, 0.0219573974609375, 0.03814697265625, -0.018524169921875, 0.06060791015625, -0.020233154296875, 0.012176513671875, -0.0185394287109375, -0.01360321044921875, -0.002590179443359375, -0.0004532337188720703, -0.0186309814453125, 0.01363372802734375, -0.001068115234375, -0.016845703125, -0.06787109375, 0.04571533203125, 0.037078857421875, -0.01151275634765625, 0.04266357421875, 0.0186004638671875, -0.005100250244140625, -0.035614013671875, 0.01284027099609375, -0.01221466064453125, 0.0016965866088867188, -0.029144287109375, -0.0259552001953125, 0.0416259765625, 0.03167724609375, -0.010009765625, 0.02301025390625, -0.0191497802734375, -0.01447296142578125, 0.0203857421875, -0.006198883056640625, 0.00009548664093017578, 0.0296630859375, -0.0182952880859375, -0.01192474365234375, 0.0193634033203125, 0.00437164306640625, 0.00033593177795410156, 0.03564453125, -0.0202178955078125, 0.055633544921875, -0.007762908935546875, -0.0026378631591796875, 0.0032806396484375, 0.0232086181640625, -0.0198516845703125, 0.004924774169921875, -0.004467010498046875, 0.00045299530029296875, -0.01416015625, 0.0275421142578125, -0.03741455078125, -0.02288818359375, 0.00876617431640625, 0.0269775390625, -0.007061004638671875, -0.01531982421875, -0.12091064453125, 0.01107025146484375, 0.07122802734375, 0.024749755859375, -0.09552001953125, 0.04461669921875, -0.030487060546875, 0.057342529296875, 0.034576416015625, -0.017608642578125, -0.00904083251953125, 0.017364501953125, -0.027679443359375, -0.027587890625, -0.0438232421875, 0.01366424560546875, -0.048828125, -0.0022869110107421875, 0.01096343994140625, -0.012481689453125, 0.04461669921875, -0.019317626953125, -0.01045989990234375, 0.047637939453125, -0.0011205673217773438, -0.0133514404296875, 0.012237548828125, 0.002063751220703125, -0.0018558502197265625, -0.029083251953125, -0.0213165283203125, -0.004276275634765625, 0.00391387939453125, 0.0173797607421875, -0.0164794921875, 0.00482177734375, -0.0469970703125, -0.08331298828125, 0.03472900390625, -0.0005583763122558594, -0.048614501953125, -0.0253143310546875, 0.0007424354553222656, -0.00569915771484375, 0.01502227783203125, -0.011016845703125, -0.0052947998046875, -0.005687713623046875, 0.0288848876953125, 0.046295166015625, 0.0242767333984375, 0.021728515625, 0.0232086181640625, -0.0278167724609375, 0.0400390625, 0.011627197265625, 0.04071044921875, -0.004505157470703125, -0.0146484375, 0.033355712890625, 0.0277252197265625, -0.0242462158203125, 0.0005440711975097656, 0.025726318359375, 0.0013484954833984375, -0.0285491943359375, 0.01094818115234375, -0.0107269287109375, -0.00632476806640625, 0.06707763671875, 0.059234619140625, 0.0155487060546875, -0.0167083740234375, -0.011810302734375, -0.006549835205078125, 0.02056884765625, -0.03594970703125, 0.01560211181640625, -0.08123779296875, -0.048126220703125, 0.007686614990234375, -0.02496337890625, -0.0030612945556640625, -0.00965118408203125, -0.05389404296875, 0.0007228851318359375, -0.0026187896728515625, 0.01328277587890625, -0.03826904296875, -0.0022735595703125, 0.019775390625, -0.0284576416015625, -0.02203369140625, -0.0203399658203125, 0.023223876953125, -0.00795745849609375, -0.038482666015625, -0.028594970703125, -0.0301666259765625, -0.03912353515625, 0.0298614501953125, -0.0360107421875, 0.046905517578125, -0.05755615234375, -0.017913818359375, -0.034332275390625, 0.0271148681640625, 0.007022857666015625, 0.032470703125, -0.00228118896484375, 0.03021240234375, 0.027801513671875, 0.02716064453125, 0.0019273757934570312, 0.057769775390625, -0.021026611328125, 0.06524658203125, 0.0044097900390625, -0.038970947265625, 0.040863037109375, -0.036285400390625, -0.0148773193359375, 0.030853271484375, -0.0238800048828125, -0.08319091796875, 0.04962158203125, -0.01104736328125, 0.040069580078125, 0.03338623046875 ]
c6d048094e837e9a729704ded961de4a5594911a
Wordpress Stackexchange Q: Display WooCommerce newest product reviews on top By default, woocommerce product reviews are listed in chronological order. How do you get the newest review to appear first? A: I couldn't find this documented anywhere, but the solution is pretty simple. In single_product_review.php, the arguments passed to wp_list_comments are filtered: wp_list_comments( apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) ); by adding reverse_top_level to the arguments, the order is reversed. Add the following code to your theme's functions.php: // show newest product reviews on top add_filter( 'woocommerce_product_review_list_args', 'newest_reviews_first' ); function newest_reviews_first($args) { $args['reverse_top_level'] = true; return $args; }
Q: Display WooCommerce newest product reviews on top By default, woocommerce product reviews are listed in chronological order. How do you get the newest review to appear first? A: I couldn't find this documented anywhere, but the solution is pretty simple. In single_product_review.php, the arguments passed to wp_list_comments are filtered: wp_list_comments( apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) ); by adding reverse_top_level to the arguments, the order is reversed. Add the following code to your theme's functions.php: // show newest product reviews on top add_filter( 'woocommerce_product_review_list_args', 'newest_reviews_first' ); function newest_reviews_first($args) { $args['reverse_top_level'] = true; return $args; }
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:442033", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133667" }
[ 0.00962066650390625, -0.0343017578125, 0.006092071533203125, 0.003726959228515625, -0.045684814453125, -0.007556915283203125, -0.006008148193359375, -0.02191162109375, -0.0218048095703125, 0.04022216796875, -0.0160369873046875, -0.02191162109375, -0.03961181640625, 0.00716400146484375, -0.050079345703125, -0.07342529296875, 0.039642333984375, 0.007843017578125, 0.03607177734375, 0.011016845703125, -0.01441192626953125, 0.04071044921875, 0.01806640625, 0.044525146484375, -0.0022792816162109375, -0.03009033203125, 0.122314453125, -0.038665771484375, 0.03125, -0.0185394287109375, 0.0247802734375, -0.023651123046875, -0.00041747093200683594, -0.0022106170654296875, 0.0215911865234375, -0.001903533935546875, -0.009002685546875, 0.006610870361328125, 0.0245208740234375, -0.00022339820861816406, 0.01070404052734375, -0.0010881423950195312, 0.0032329559326171875, 0.00571441650390625, -0.01099395751953125, -0.042510986328125, 0.01117706298828125, -0.0355224609375, 0.02423095703125, -0.0263519287109375, 0.0235137939453125, 0.04351806640625, 0.03759765625, -0.037261962890625, -0.0258331298828125, 0.004180908203125, -0.052703857421875, 0.0440673828125, 0.0145263671875, 0.0163726806640625, 0.01204681396484375, 0.017578125, -0.004512786865234375, -0.01230621337890625, 0.00799560546875, 0.00957489013671875, 0.0198822021484375, 0.013916015625, -0.006855010986328125, 0.0030040740966796875, 0.006923675537109375, -0.0153045654296875, 0.00800323486328125, -0.00933837890625, 0.00788116455078125, -0.0159149169921875, -0.0308074951171875, -0.033355712890625, 0.040863037109375, 0.0080108642578125, -0.050872802734375, -0.0168304443359375, -0.00969696044921875, -0.0789794921875, 0.0137939453125, -0.056732177734375, -0.020050048828125, 0.0343017578125, -0.02947998046875, -0.040069580078125, -0.02227783203125, -0.0306243896484375, -0.060882568359375, 0.01107025146484375, -0.01293182373046875, -0.0235595703125, 0.0262603759765625, 0.03594970703125, 0.0006227493286132812, -0.01267242431640625, 0.00411224365234375, -0.039520263671875, -0.015838623046875, -0.0094451904296875, 0.0022449493408203125, -0.0210418701171875, -0.01161956787109375, -0.045440673828125, 0.0223846435546875, 0.037109375, -0.0222320556640625, 0.04632568359375, -0.00396728515625, -0.040283203125, 0.00887298583984375, -0.0133209228515625, -0.0589599609375, 0.0667724609375, 0.022857666015625, 0.0171661376953125, 0.02362060546875, 0.0384521484375, 0.00803375244140625, -0.0012760162353515625, 0.006381988525390625, 0.01050567626953125, -0.007076263427734375, -0.04278564453125, -0.02691650390625, 0.045013427734375, -0.024566650390625, -0.009613037109375, -0.0110626220703125, 0.026885986328125, -0.01117706298828125, -0.029388427734375, 0.0263214111328125, 0.047821044921875, 0.0006837844848632812, -0.004154205322265625, 0.0169830322265625, 0.012054443359375, -0.00882720947265625, -0.0172271728515625, 0.0249176025390625, -0.00278472900390625, -0.003429412841796875, 0.01446533203125, 0.0205535888671875, 0.00182342529296875, 0.00307464599609375, -0.002857208251953125, 0.00536346435546875, 0.01031494140625, 0.016448974609375, -0.00611114501953125, 0.036346435546875, -0.0206451416015625, 0.0121612548828125, -0.0286712646484375, 0.006122589111328125, 0.0028839111328125, 0.00785064697265625, -0.03973388671875, -0.04351806640625, -0.0047760009765625, -0.0309295654296875, -0.01282501220703125, 0.028778076171875, 0.04632568359375, -0.002033233642578125, -0.045654296875, 0.039337158203125, -0.00971221923828125, -0.03839111328125, 0.01303863525390625, -0.0204010009765625, 0.010589599609375, 0.0343017578125, -0.0165252685546875, -0.0312042236328125, -0.04144287109375, 0.055145263671875, -0.011077880859375, 0.005771636962890625, -0.003459930419921875, 0.050750732421875, 0.04547119140625, -0.054595947265625, 0.04827880859375, -0.00403594970703125, 0.0306243896484375, -0.03570556640625, 0.03582763671875, 0.0034465789794921875, -0.018157958984375, 0.0023021697998046875, 0.0210113525390625, -0.00986480712890625, -0.037872314453125, -0.0182342529296875, 0.033843994140625, -0.0160369873046875, 0.006252288818359375, -0.0254974365234375, 0.0161285400390625, -0.01190948486328125, 0.058349609375, -0.008087158203125, 0.021270751953125, 0.02056884765625, 0.0031986236572265625, -0.03570556640625, 0.00843048095703125, 0.0035228729248046875, 0.0032863616943359375, -0.04876708984375, 0.07855224609375, 0.0014400482177734375, 0.050628662109375, 0.01335906982421875, -0.041229248046875, 0.0211181640625, -0.0012359619140625, 0.06280517578125, 0.0028934478759765625, -0.01479339599609375, -0.031097412109375, 0.0792236328125, 0.0146636962890625, -0.01312255859375, -0.0234375, 0.009033203125, -0.00469207763671875, -0.0465087890625, 0.01959228515625, 0.01531219482421875, -0.0169677734375, -0.00785064697265625, 0.035736083984375, 0.0110626220703125, 0.07281494140625, 0.04852294921875, 0.11651611328125, 0.048492431640625, -0.01507568359375, 0.02227783203125, 0.0313720703125, 0.0056304931640625, 0.046722412109375, 0.00537872314453125, -0.003490447998046875, -0.0035686492919921875, -0.0513916015625, 0.005588531494140625, 0.0340576171875, -0.01139068603515625, 0.011444091796875, -0.0357666015625, 0.04541015625, -0.00916290283203125, -0.0189971923828125, 0.0005536079406738281, -0.024139404296875, 0.0272369384765625, -0.017333984375, 0.020843505859375, 0.0067138671875, -0.0335693359375, -0.01446533203125, 0.0367431640625, 0.00824737548828125, -0.00005251169204711914, 0.025146484375, -0.00995635986328125, -0.0267791748046875, -0.014617919921875, 0.0030841827392578125, -0.004718780517578125, -0.003612518310546875, 0.02215576171875, 0.058135986328125, 0.0665283203125, -0.00568389892578125, -0.0279388427734375, -0.023223876953125, 0.0355224609375, 0.020965576171875, -0.039825439453125, -0.01372528076171875, 0.006267547607421875, 0.01983642578125, -0.043060302734375, 0.01071929931640625, -0.0275726318359375, -0.00835418701171875, -0.022705078125, -0.016448974609375, 0.036529541015625, -0.04046630859375, 0.032257080078125, 0.055328369140625, -0.0003254413604736328, 0.00823974609375, -0.0018463134765625, 0.0179595947265625, 0.0117034912109375, -0.02911376953125, -0.040618896484375, 0.04107666015625, -0.11181640625, 0.007572174072265625, 0.039031982421875, 0.058746337890625, 0.00476837158203125, -0.0183868408203125, 0.006702423095703125, 0.040191650390625, -0.04412841796875, -0.08154296875, -0.01412200927734375, -0.00994110107421875, 0.002521514892578125, 0.01062774658203125, 0.00643157958984375, -0.01158905029296875, 0.0199737548828125, -0.0026340484619140625, 0.0017099380493164062, -0.014373779296875, -0.02911376953125, -0.01309967041015625, -0.02655029296875, 0.036163330078125, 0.00040912628173828125, 0.00913238525390625, -0.003871917724609375, 0.042572021484375, -0.0220489501953125, -0.04498291015625, -0.0105438232421875, 0.0009455680847167969, 0.005962371826171875, 0.0095977783203125, 0.0197906494140625, -0.0191497802734375, 0.009552001953125, 0.01114654541015625, -0.0205230712890625, 0.03863525390625, -0.019805908203125, -0.01053619384765625, 0.0005555152893066406, -0.00435638427734375, -0.0003020763397216797, 0.02728271484375, 0.027374267578125, 0.027923583984375, 0.01451873779296875, -0.0264892578125, -0.00952911376953125, -0.0017805099487304688, -0.0278167724609375, -0.03704833984375, 0.00107574462890625, -0.0034236907958984375, -0.0413818359375, 0.02301025390625, -0.00374603271484375, -0.03228759765625, 0.09161376953125, -0.0501708984375, -0.0294189453125, -0.00949859619140625, -0.038787841796875, -0.05523681640625, 0.059478759765625, -0.01331329345703125, -0.007904052734375, 0.0266571044921875, 0.0238494873046875, 0.0025482177734375, -0.01181793212890625, -0.0693359375, 0.00638580322265625, 0.04150390625, 0.0010738372802734375, 0.0243377685546875, -0.0222625732421875, -0.03594970703125, -0.01494598388671875, 0.07440185546875, -0.040496826171875, -0.0325927734375, 0.0243682861328125, 0.00580596923828125, -0.00689697265625, 0.023101806640625, -0.05731201171875, -0.0157470703125, -0.09075927734375, 0.030792236328125, 0.0014209747314453125, -0.00926971435546875, 0.001708984375, 0.0198974609375, -0.03424072265625, -0.04913330078125, 0.0229034423828125, -0.038330078125, -0.011505126953125, 0.0821533203125, -0.052093505859375, 0.0755615234375, -0.02911376953125, -0.029571533203125, 0.0027332305908203125, -0.00710296630859375, -0.0012025833129882812, 0.01410675048828125, 0.00289154052734375, 0.020904541015625, -0.022735595703125, 0.0203704833984375, -0.00888824462890625, 0.027191162109375, -0.01214599609375, 0.025299072265625, -0.022613525390625, -0.03857421875, -0.019287109375, -0.035675048828125, 0.00516510009765625, -0.0174407958984375, -0.004177093505859375, 0.0017061233520507812, -0.023529052734375, 0.0175628662109375, -0.0067596435546875, -0.0142364501953125, -0.07830810546875, -0.040130615234375, 0.0018301010131835938, 0.01287078857421875, -0.0235748291015625, 0.0228729248046875, -0.035736083984375, -0.06951904296875, -0.02557373046875, -0.0711669921875, -0.03375244140625, 0.02777099609375, 0.05426025390625, 0.033355712890625, 0.03546142578125, 0.0305023193359375, 0.018585205078125, 0.0294342041015625, 0.037017822265625, 0.0169830322265625, -0.03289794921875, -0.023284912109375, 0.048309326171875, -0.00003439188003540039, 0.00811004638671875, 0.034088134765625, 0.0168914794921875, -0.00034546852111816406, -0.0256195068359375, 0.0178070068359375, 0.00026869773864746094, -0.032196044921875, -0.0274505615234375, -0.0176239013671875, -0.00901031494140625, -0.037109375, 0.024566650390625, 0.01371002197265625, 0.0233612060546875, -0.01290130615234375, -0.033416748046875, 0.0120697021484375, -0.01203155517578125, 0.043914794921875, 0.041259765625, 0.0013093948364257812, 0.03924560546875, 0.0109405517578125, -0.01146697998046875, -0.038543701171875, -0.04290771484375, 0.0015134811401367188, 0.01401519775390625, 0.0006546974182128906, -0.0031280517578125, 0.0014905929565429688, -0.006053924560546875, 0.04364013671875, -0.0200042724609375, -0.045135498046875, -0.031402587890625, -0.02191162109375, 0.0046844482421875, 0.029815673828125, -0.004817962646484375, 0.03173828125, 0.00281524658203125, -0.0190887451171875, -0.007076263427734375, -0.0650634765625, -0.00033211708068847656, -0.056182861328125, 0.023712158203125, 0.0110015869140625, 0.00652313232421875, 0.0292510986328125, 0.061065673828125, -0.004840850830078125, 0.050201416015625, -0.0134429931640625, 0.0121612548828125, 0.040374755859375, 0.0014095306396484375, 0.02349853515625, 0.01092529296875, -0.0015850067138671875, -0.01141357421875, 0.0357666015625, -0.00870513916015625, -0.0267486572265625, -0.009552001953125, -0.02587890625, -0.0364990234375, 0.002685546875, 0.056732177734375, 0.0226593017578125, -0.0206298828125, -0.01068115234375, 0.037841796875, -0.010345458984375, 0.0160980224609375, 0.02362060546875, -0.024200439453125, 0.0217742919921875, -0.01132965087890625, 0.00030493736267089844, -0.053802490234375, -0.035491943359375, -0.00618743896484375, -0.0192413330078125, -0.00858306884765625, -0.003879547119140625, -0.03662109375, -0.038482666015625, 0.004703521728515625, -0.058074951171875, 0.0010690689086914062, -0.01239776611328125, -0.022064208984375, 0.026031494140625, -0.0030345916748046875, 0.0494384765625, -0.034576416015625, -0.01348114013671875, -0.048614501953125, -0.0008993148803710938, 0.041229248046875, 0.026763916015625, -0.036407470703125, -0.04156494140625, -0.043792724609375, -0.04083251953125, 0.005191802978515625, 0.01849365234375, -0.034454345703125, 0.0203094482421875, 0.007595062255859375, 0.026031494140625, -0.020355224609375, -0.03802490234375, -0.0167999267578125, 0.0003008842468261719, 0.0192108154296875, 0.0215606689453125, -0.01007080078125, 0.075927734375, 0.033905029296875, 0.04205322265625, 0.044586181640625, 0.03570556640625, -0.0697021484375, -0.0036220550537109375, 0.0146636962890625, -0.004486083984375, -0.024383544921875, -0.007671356201171875, -0.06536865234375, -0.003978729248046875, 0.06329345703125, -0.011199951171875, 0.0282135009765625, -0.006927490234375, 0.01433563232421875, -0.010345458984375, -0.03094482421875, -0.01375579833984375, -0.00403594970703125, 0.040374755859375, 0.003643035888671875, 0.002498626708984375, -0.01062774658203125, 0.0007967948913574219, -0.01163482666015625, 0.0166015625, -0.007549285888671875, -0.0237274169921875, -0.042144775390625, 0.058349609375, 0.036895751953125, 0.006244659423828125, 0.01454925537109375, 0.00569915771484375, -0.0012884140014648438, -0.0289306640625, 0.03497314453125, 0.0168914794921875, -0.01207733154296875, 0.05242919921875, -0.005496978759765625, 0.007587432861328125, 0.0183563232421875, -0.0204010009765625, 0.0015287399291992188, -0.0093994140625, 0.00356292724609375, -0.051849365234375, 0.0268707275390625, -0.0212860107421875, -0.001758575439453125, 0.03863525390625, -0.0172119140625, 0.00771331787109375, -0.07421875, 0.1192626953125, -0.03717041015625, 0.00400543212890625, 0.02130126953125, -0.0701904296875, 0.0086212158203125, 0.00862884521484375, 0.0130462646484375, -0.01849365234375, -0.0823974609375, -0.0284423828125, 0.04815673828125, -0.0404052734375, -0.044921875, -0.01441192626953125, 0.017242431640625, -0.0153656005859375, -0.060638427734375, 0.035369873046875, -0.017120361328125, 0.054473876953125, 0.07037353515625, -0.035980224609375, -0.0289459228515625, 0.03997802734375, -0.039154052734375, 0.056610107421875, -0.00255584716796875, -0.0675048828125, -0.039306640625, -0.039215087890625, 0.044677734375, 0.03448486328125, -0.06695556640625, 0.024688720703125, -0.02325439453125, -0.0206298828125, -0.01427459716796875, -0.0014467239379882812, 0.047393798828125, 0.0037384033203125, -0.0350341796875, 0.0277557373046875, 0.02545166015625, -0.018341064453125, 0.0014429092407226562, 0.031646728515625, 0.001438140869140625, 0.035888671875, 0.00911712646484375, 0.01087188720703125, -0.0008554458618164062, 0.00963592529296875, -0.0770263671875, -0.0160980224609375, -0.024688720703125, 0.036590576171875, 0.02154541015625, -0.0413818359375, -0.00502777099609375, -0.0643310546875, -0.00848388671875, 0.027374267578125, -0.02691650390625, 0.051300048828125, -0.06683349609375, -0.0207061767578125, 0.002124786376953125, 0.0726318359375, 0.0271759033203125, -0.006237030029296875, -0.0245361328125, 0.047637939453125, 0.1221923828125, 0.03033447265625, 0.0163726806640625, 0.03924560546875, 0.0022029876708984375, -0.03680419921875, 0.031341552734375, 0.0130767822265625, 0.02880859375, -0.0195770263671875, -0.004848480224609375, 0.00653076171875, 0.0255584716796875, 0.0273284912109375, -0.002925872802734375, 0.057647705078125, -0.037322998046875, 0.00907135009765625, 0.042694091796875, -0.00251007080078125, 0.01580810546875, 0.01020050048828125, 0.0135040283203125, -0.00522613525390625, -0.005992889404296875, -0.00920867919921875, 0.03045654296875, 0.01084136962890625, 0.0243988037109375, 0.05523681640625, 0.027801513671875, 0.056488037109375, -0.041839599609375, 0.0175933837890625, -0.0242156982421875, -0.0258636474609375, 0.0227813720703125, 0.0178985595703125, 0.038543701171875, 0.00042629241943359375, 0.01457977294921875, 0.02783203125, 0.0188446044921875, -0.021453857421875, 0.004852294921875, 0.02178955078125, -0.0010938644409179688, -0.022491455078125, -0.03765869140625, -0.035858154296875, -0.04095458984375, -0.0288543701171875, -0.030181884765625, -0.024322509765625, 0.01256561279296875, 0.07086181640625, 0.01049041748046875, -0.004913330078125, -0.037933349609375, -0.064208984375, -0.0418701171875, 0.027008056640625, 0.010589599609375, 0.057464599609375, -0.0165557861328125, 0.071533203125, -0.04296875, -0.02606201171875, 0.0259552001953125, -0.0034999847412109375, -0.04180908203125, -0.01212310791015625, -0.0272064208984375, -0.050537109375, -0.01503753662109375, 0.047515869140625, 0.0213623046875, 0.0282745361328125, 0.00628662109375, 0.010406494140625, 0.037872314453125, 0.0085906982421875, 0.06298828125, -0.00970458984375, -0.035919189453125, -0.0122833251953125, 0.00002777576446533203, 0.01837158203125, -0.00014913082122802734, 0.0092620849609375, 0.040985107421875, -0.006916046142578125, -0.0258636474609375, 0.023406982421875, -0.00957489013671875, -0.04486083984375, 0.0184478759765625, 0.0044403076171875, 0.07708740234375, 0.00276947021484375, -0.01290130615234375, 0.0033855438232421875, -0.0379638671875, 0.0089874267578125, -0.0037441253662109375, 0.0123291015625, -0.0124664306640625, 0.0533447265625, 0.025115966796875, -0.013824462890625, 0.047698974609375, -0.030426025390625, 0.0107574462890625, -0.0084228515625, 0.00876617431640625, -0.00701904296875, -0.0157318115234375, -0.0007314682006835938, -0.00467681884765625, 0.0009493827819824219, 0.03863525390625, 0.01009368896484375, 0.035675048828125, 0.0266265869140625, -0.025482177734375, 0.01422119140625, -0.043792724609375, -0.0675048828125, 0.10723876953125, -0.02386474609375, -0.048583984375, 0.01007080078125, -0.042755126953125, -0.012786865234375, 0.0809326171875, -0.00351715087890625, 0.0296478271484375, -0.018707275390625, 0.0286865234375, -0.06475830078125, 0.0205841064453125, -0.033843994140625, -0.0290985107421875, -0.0181884765625, 0.0015287399291992188, -0.0111541748046875, -0.047454833984375, -0.0214080810546875, 0.01329803466796875, 0.0200653076171875, -0.02215576171875, 0.0232391357421875, -0.0147857666015625, 0.04156494140625, 0.029052734375, 0.0177154541015625, 0.04229736328125, 0.0010547637939453125, -0.0215911865234375, 0.032501220703125, -0.005680084228515625, -0.023773193359375, 0.004261016845703125, -0.037567138671875, 0.00719451904296875, 0.0182342529296875, 0.031219482421875, -0.0089263916015625, -0.00577545166015625, 0.030303955078125, -0.0263671875, -0.041290283203125, 0.0082550048828125, -0.0192413330078125, -0.0026531219482421875, -0.0015115737915039062, -0.003917694091796875, 0.01751708984375, -0.044219970703125, -0.026214599609375, 0.0009412765502929688, -0.00557708740234375, -0.00806427001953125, -0.035614013671875, 0.0182342529296875, -0.002323150634765625, 0.027191162109375, -0.0211181640625, -0.0204925537109375, 0.004711151123046875, -0.007015228271484375, -0.0130462646484375, -0.018341064453125, -0.044708251953125, 0.024261474609375, -0.03131103515625, -0.03253173828125, -0.02288818359375, 0.010284423828125, 0.024169921875, -0.048919677734375, -0.0159149169921875, 0.01041412353515625, -0.01067352294921875, -0.0018167495727539062, 0.044647216796875, 0.0209197998046875, -0.0543212890625, -0.0692138671875, 0.00441741943359375, -0.0216522216796875, 0.0258026123046875, -0.0283660888671875, 0.0290679931640625, 0.03192138671875, 0.001556396484375, 0.021148681640625, 0.08148193359375, -0.0032482147216796875, 0.016082763671875, -0.01369476318359375, -0.0025501251220703125, -0.04693603515625, 0.059112548828125, 0.0013446807861328125, -0.026763916015625, 0.040618896484375, 0.0675048828125, -0.0183563232421875, 0.04058837890625, 0.0034351348876953125, -0.0355224609375, 0.01087188720703125, -0.00905609130859375, 0.012542724609375, -0.0182342529296875, -0.0178375244140625, -0.0060272216796875, 0.006641387939453125, -0.0003578662872314453, -0.034393310546875, 0.004627227783203125, 0.028167724609375, 0.0416259765625, 0.0011882781982421875, 0.0144195556640625, -0.0328369140625, -0.040435791015625, 0.013092041015625, 0.041778564453125, -0.001132965087890625, 0.005035400390625, 0.0252532958984375, 0.0249481201171875, -0.023834228515625, 0.00728607177734375, 0.0162506103515625, -0.03717041015625, -0.00128173828125, 0.024322509765625, 0.0159454345703125, 0.00743865966796875, -0.024261474609375, -0.033203125, -0.0279083251953125, -0.039947509765625, 0.015777587890625, -0.06427001953125, 0.035400390625, 0.035919189453125, -0.040924072265625, -0.0311279296875, 0.0045318603515625, -0.01617431640625, -0.01168060302734375, -0.039825439453125, -0.0034656524658203125, 0.04107666015625, 0.005878448486328125, -0.0179901123046875, 0.03173828125, 0.006633758544921875, 0.0196685791015625, 0.0101776123046875, -0.0164947509765625, 0.0237579345703125, -0.002685546875, -0.0028209686279296875, 0.01267242431640625, 0.021728515625, -0.0025310516357421875, 0.10150146484375, -0.00891876220703125, 0.098876953125, -0.00909423828125, 0.061614990234375, 0.020263671875, -0.017120361328125, 0.0318603515625, -0.01708984375, 0.01934814453125, 0.0147552490234375, -0.004913330078125, 0.0049285888671875, 0.01280975341796875, 0.04779052734375, -0.02593994140625, -0.0037784576416015625 ]
5c99c1eecb8a867228e3e6cc1fcccabd48776a05
Wordpress Stackexchange Q: How to show an error message after publishing a post? I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post published": How can I do that? A: I wouldn't use that hook. Here's why Try something like this using admin_notices. function wpsites_admin_notice() { $screen = get_current_screen(); if( 'post' == $screen->post_type && 'edit' == $screen->base ){ ?> <div class="error"> <p><?php _e( 'Updated Demo Message!', 'wpsites' ); ?></p> </div> <?php }} add_action( 'admin_notices', 'wpsites_admin_notice' ); Untested.
Q: How to show an error message after publishing a post? I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post published": How can I do that? A: I wouldn't use that hook. Here's why Try something like this using admin_notices. function wpsites_admin_notice() { $screen = get_current_screen(); if( 'post' == $screen->post_type && 'edit' == $screen->base ){ ?> <div class="error"> <p><?php _e( 'Updated Demo Message!', 'wpsites' ); ?></p> </div> <?php }} add_action( 'admin_notices', 'wpsites_admin_notice' ); Untested. A: add_settings_error( 'myUniqueIdentifyer', esc_attr( 'settings_updated' ), $message, $type ); Check http://codex.wordpress.org/Function_Reference/add_settings_error
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:442036", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133674" }
[ 0.04229736328125, -0.019866943359375, -0.0142059326171875, -0.0194091796875, -0.0033779144287109375, -0.04034423828125, 0.0179901123046875, -0.030059814453125, 0.052886962890625, -0.0031032562255859375, -0.034393310546875, -0.019378662109375, -0.039520263671875, -0.03228759765625, -0.04541015625, -0.047637939453125, 0.0234527587890625, 0.00341796875, 0.03692626953125, 0.001773834228515625, -0.004169464111328125, 0.0156097412109375, 0.0222625732421875, -0.002758026123046875, -0.033355712890625, 0.01654052734375, 0.07916259765625, -0.052520751953125, -0.01080322265625, -0.03424072265625, -0.006725311279296875, 0.0022716522216796875, 0.04681396484375, 0.0177459716796875, -0.059356689453125, 0.03289794921875, 0.023773193359375, -0.008758544921875, -0.04547119140625, 0.07232666015625, 0.0195465087890625, -0.0129241943359375, 0.0947265625, 0.01445770263671875, 0.035675048828125, 0.01094818115234375, 0.025299072265625, -0.057342529296875, 0.031494140625, 0.006381988525390625, 0.0192718505859375, -0.0005702972412109375, 0.01059722900390625, 0.02105712890625, -0.03302001953125, -0.00958251953125, -0.0311737060546875, 0.043609619140625, 0.0343017578125, 0.0477294921875, -0.0219268798828125, 0.004222869873046875, -0.029510498046875, -0.072509765625, 0.0064544677734375, -0.007114410400390625, -0.00801849365234375, 0.00513458251953125, -0.031524658203125, -0.00835418701171875, 0.0248870849609375, -0.0343017578125, -0.0192108154296875, -0.02496337890625, 0.0033473968505859375, -0.0021076202392578125, 0.0141448974609375, -0.0087127685546875, -0.0185699462890625, 0.035308837890625, 0.040435791015625, 0.021942138671875, 0.0601806640625, -0.0144195556640625, 0.0173187255859375, 0.016632080078125, -0.0147705078125, -0.019989013671875, -0.020782470703125, -0.006534576416015625, -0.025665283203125, -0.0014524459838867188, -0.038909912109375, 0.0026264190673828125, 0.00218963623046875, -0.034423828125, 0.0047454833984375, 0.06292724609375, -0.0430908203125, -0.0006237030029296875, -0.0469970703125, 0.0005235671997070312, -0.0227203369140625, -0.034576416015625, 0.0041656494140625, 0.0113677978515625, -0.033111572265625, -0.05963134765625, 0.01166534423828125, 0.038665771484375, -0.0167083740234375, -0.05267333984375, -0.045745849609375, -0.0279693603515625, -0.046630859375, 0.058563232421875, -0.02105712890625, -0.03826904296875, 0.0008268356323242188, 0.02215576171875, 0.01168060302734375, 0.01611328125, 0.0007758140563964844, -0.049957275390625, 0.00439453125, -0.03759765625, -0.050506591796875, -0.0135498046875, 0.048431396484375, 0.0200347900390625, -0.0272979736328125, -0.0062713623046875, 0.0249481201171875, 0.004085540771484375, 0.016815185546875, -0.026641845703125, 0.007534027099609375, -0.0019321441650390625, 0.005031585693359375, 0.01092529296875, -0.030792236328125, -0.03753662109375, 0.002288818359375, -0.0189056396484375, 0.0048370361328125, 0.056121826171875, 0.02545166015625, -0.0215606689453125, -0.0200042724609375, -0.07635498046875, -0.004001617431640625, -0.01959228515625, 0.01360321044921875, 0.018280029296875, 0.01097869873046875, -0.04071044921875, 0.0523681640625, -0.053558349609375, 0.01160430908203125, -0.061737060546875, 0.03924560546875, 0.007053375244140625, 0.032989501953125, -0.021240234375, -0.039459228515625, -0.0213623046875, -0.09368896484375, -0.005817413330078125, 0.01468658447265625, -0.005100250244140625, 0.0012655258178710938, -0.0221405029296875, -0.030426025390625, -0.038238525390625, -0.0211029052734375, 0.00434112548828125, -0.0201416015625, -0.00789642333984375, 0.033599853515625, 0.0008711814880371094, -0.0162200927734375, -0.0236663818359375, 0.0218658447265625, -0.0048980712890625, -0.0273284912109375, 0.01751708984375, 0.024322509765625, 0.056182861328125, -0.0232696533203125, 0.0386962890625, -0.0081634521484375, 0.010711669921875, -0.0099334716796875, 0.00852203369140625, -0.041595458984375, -0.0287933349609375, 0.010528564453125, 0.01097869873046875, -0.0155792236328125, 0.010589599609375, -0.003204345703125, 0.04693603515625, -0.0225982666015625, 0.045867919921875, -0.032470703125, 0.034423828125, -0.01849365234375, 0.03411865234375, -0.0114898681640625, -0.0211944580078125, 0.00933074951171875, -0.048553466796875, 0.00835418701171875, -0.0236053466796875, -0.03179931640625, -0.0167999267578125, -0.0288543701171875, 0.007114410400390625, -0.0061798095703125, 0.061553955078125, -0.01100921630859375, -0.031768798828125, -0.039215087890625, -0.043853759765625, 0.033172607421875, -0.0286712646484375, 0.007663726806640625, -0.00846099853515625, 0.06170654296875, -0.019287109375, 0.042388916015625, 0.0125732421875, 0.00797271728515625, -0.0001169443130493164, -0.0055389404296875, -0.00007683038711547852, 0.00904083251953125, -0.08770751953125, 0.00965118408203125, 0.059295654296875, 0.0161285400390625, 0.0321044921875, -0.0033893585205078125, 0.05010986328125, 0.0236358642578125, -0.035888671875, -0.0018472671508789062, 0.023681640625, 0.00560760498046875, 0.0202178955078125, -0.026275634765625, -0.01024627685546875, 0.029144287109375, -0.0823974609375, -0.002223968505859375, 0.043792724609375, -0.0018310546875, 0.01425933837890625, 0.017242431640625, -0.03497314453125, 0.0170135498046875, -0.07598876953125, -0.0562744140625, -0.033966064453125, 0.0167694091796875, -0.03662109375, 0.01065826416015625, -0.01383209228515625, -0.02813720703125, -0.0260009765625, 0.0421142578125, -0.005428314208984375, 0.004680633544921875, 0.0128326416015625, -0.0523681640625, 0.032989501953125, -0.0227203369140625, 0.01068115234375, 0.00464630126953125, 0.002025604248046875, -0.016265869140625, -0.003162384033203125, 0.003253936767578125, -0.00797271728515625, 0.01316070556640625, -0.00472259521484375, 0.0282135009765625, -0.007564544677734375, 0.0537109375, -0.022735595703125, -0.00013709068298339844, 0.018218994140625, -0.0267791748046875, 0.0933837890625, -0.0164031982421875, -0.0523681640625, -0.0246124267578125, -0.05621337890625, 0.054534912109375, -0.05682373046875, 0.03253173828125, 0.06817626953125, -0.0301361083984375, 0.036407470703125, -0.01444244384765625, 0.042144775390625, -0.0127410888671875, 0.01425933837890625, -0.0078125, -0.0225067138671875, -0.01499176025390625, 0.004184722900390625, 0.036529541015625, 0.03155517578125, 0.0054473876953125, -0.019805908203125, 0.006683349609375, 0.03594970703125, -0.054473876953125, -0.06884765625, -0.05633544921875, -0.05450439453125, 0.01532745361328125, 0.0285186767578125, -0.01313018798828125, -0.0054473876953125, 0.053009033203125, 0.019378662109375, -0.046966552734375, -0.0049285888671875, -0.03106689453125, -0.040771484375, -0.054779052734375, -0.0199432373046875, -0.00695037841796875, 0.0157012939453125, 0.01149749755859375, 0.06878662109375, 0.004150390625, -0.09515380859375, -0.0091552734375, 0.0157470703125, -0.0345458984375, 0.0316162109375, -0.00411224365234375, 0.006099700927734375, 0.00450897216796875, 0.013092041015625, -0.023773193359375, 0.00984954833984375, -0.0167388916015625, -0.01522064208984375, -0.039703369140625, 0.0107879638671875, -0.011383056640625, -0.041473388671875, 0.041290283203125, -0.01364898681640625, -0.041473388671875, -0.040130615234375, -0.004955291748046875, -0.007472991943359375, -0.051239013671875, -0.0249481201171875, 0.00778961181640625, -0.01055145263671875, -0.0094146728515625, -0.00836181640625, -0.021881103515625, 0.00409698486328125, 0.033447265625, -0.023284912109375, 0.023040771484375, -0.0242767333984375, -0.033843994140625, -0.0253448486328125, -0.0167694091796875, -0.00738525390625, 0.04180908203125, 0.000036656856536865234, 0.032257080078125, -0.008331298828125, 0.050079345703125, -0.036346435546875, -0.0499267578125, 0.0219268798828125, -0.08636474609375, -0.04345703125, -0.02874755859375, 0.01184844970703125, 0.01271820068359375, 0.0615234375, -0.00998687744140625, -0.00846099853515625, -0.03564453125, -0.0268096923828125, 0.0022106170654296875, 0.0067291259765625, -0.0252685546875, 0.00894927978515625, -0.05279541015625, 0.03692626953125, -0.0023708343505859375, 0.003940582275390625, -0.0594482421875, 0.042694091796875, -0.051788330078125, -0.020782470703125, 0.0273895263671875, -0.03656005859375, 0.0025043487548828125, 0.0200653076171875, -0.0254669189453125, -0.0087738037109375, -0.01505279541015625, -0.041290283203125, -0.06683349609375, -0.0119781494140625, -0.0411376953125, 0.061187744140625, 0.032867431640625, -0.01123046875, -0.0181732177734375, 0.029510498046875, 0.0052642822265625, 0.029205322265625, -0.022308349609375, 0.01560211181640625, 0.0305633544921875, -0.040374755859375, -0.0223846435546875, -0.0220947265625, 0.0119476318359375, 0.0219879150390625, -0.06036376953125, 0.0289154052734375, -0.01971435546875, 0.006076812744140625, 0.03948974609375, -0.06390380859375, -0.0140228271484375, -0.038238525390625, 0.01453399658203125, 0.03399658203125, -0.00353240966796875, 0.0206298828125, -0.05340576171875, -0.024200439453125, -0.0218658447265625, -0.00878143310546875, -0.049835205078125, 0.01763916015625, 0.019073486328125, 0.0335693359375, -0.00243377685546875, -0.0174713134765625, -0.009490966796875, 0.03131103515625, 0.005260467529296875, -0.0156097412109375, -0.01143646240234375, -0.044921875, 0.026275634765625, -0.00008851289749145508, -0.045135498046875, 0.01922607421875, 0.01300048828125, 0.023834228515625, -0.0252227783203125, -0.00702667236328125, -0.0118865966796875, 0.05133056640625, 0.0131683349609375, -0.0019989013671875, -0.000637054443359375, 0.0308074951171875, 0.00887298583984375, -0.0440673828125, 0.037994384765625, 0.01171875, -0.0012874603271484375, -0.0165557861328125, 0.0299530029296875, 0.004962921142578125, 0.03692626953125, 0.0118560791015625, -0.011810302734375, 0.025634765625, -0.028839111328125, -0.0186309814453125, -0.023651123046875, 0.0182647705078125, 0.0189208984375, -0.00849151611328125, -0.0128326416015625, -0.0294036865234375, -0.0113677978515625, 0.0545654296875, 0.015655517578125, -0.029052734375, -0.00394439697265625, 0.000022292137145996094, -0.0054931640625, 0.0057373046875, -0.01435089111328125, 0.005115509033203125, 0.062042236328125, -0.040008544921875, -0.003448486328125, 0.060089111328125, 0.00797271728515625, -0.03192138671875, 0.044158935546875, 0.035064697265625, 0.005615234375, 0.050140380859375, 0.038848876953125, 0.0233306884765625, 0.0263214111328125, -0.0210723876953125, 0.0202484130859375, 0.0204620361328125, 0.0145721435546875, 0.0245819091796875, -0.004581451416015625, 0.0057830810546875, -0.005237579345703125, 0.006359100341796875, -0.035858154296875, -0.0287017822265625, 0.0212554931640625, 0.02630615234375, -0.032135009765625, -0.01375579833984375, 0.050933837890625, 0.019500732421875, -0.02691650390625, 0.07635498046875, 0.06549072265625, -0.06689453125, -0.01446533203125, 0.006038665771484375, -0.0016813278198242188, -0.0215606689453125, -0.00405120849609375, 0.0233917236328125, -0.003643035888671875, 0.03399658203125, -0.032562255859375, -0.00475311279296875, -0.0006279945373535156, 0.003570556640625, 0.006679534912109375, -0.0283050537109375, -0.0122528076171875, -0.019775390625, 0.0096435546875, -0.017303466796875, -0.004283905029296875, 0.03070068359375, -0.062408447265625, -0.0538330078125, -0.0217437744140625, 0.07684326171875, -0.08245849609375, 0.025604248046875, 0.0257415771484375, 0.014892578125, -0.06536865234375, -0.001495361328125, -0.050750732421875, -0.012725830078125, -0.01204681396484375, -0.042633056640625, -0.034423828125, -0.029449462890625, 0.056427001953125, 0.00311279296875, 0.039703369140625, -0.042816162109375, -0.0589599609375, 0.0178070068359375, 0.0718994140625, 0.0242919921875, 0.01284027099609375, 0.04986572265625, -0.01207733154296875, 0.050994873046875, 0.036407470703125, 0.039520263671875, 0.00666046142578125, -0.04913330078125, 0.00852203369140625, -0.01186370849609375, -0.0087890625, -0.014617919921875, 0.021697998046875, -0.007415771484375, 0.017120361328125, -0.002147674560546875, -0.01561737060546875, 0.005283355712890625, 0.020294189453125, -0.01031494140625, 0.01078033447265625, 0.018341064453125, -0.0369873046875, 0.04638671875, -0.03326416015625, -0.0269927978515625, 0.0027217864990234375, 0.0022258758544921875, 0.0108184814453125, -0.00952911376953125, -0.01158905029296875, 0.01111602783203125, -0.0003790855407714844, 0.0271759033203125, 0.029998779296875, -0.00989532470703125, 0.0296478271484375, 0.00820159912109375, 0.0076751708984375, -0.005260467529296875, 0.004138946533203125, -0.032470703125, 0.005405426025390625, 0.050384521484375, 0.004428863525390625, -0.01105499267578125, 0.038604736328125, -0.0188751220703125, 0.01219940185546875, 0.098388671875, 0.09674072265625, -0.1090087890625, 0.01363372802734375, 0.045166015625, -0.0225372314453125, 0.0020599365234375, -0.007617950439453125, 0.01378631591796875, 0.01267242431640625, 0.0302886962890625, -0.01232147216796875, -0.005313873291015625, 0.018035888671875, -0.00899505615234375, -0.00656890869140625, -0.0204010009765625, 0.03564453125, 0.00832366943359375, -0.0338134765625, 0.0087127685546875, 0.0223236083984375, 0.01873779296875, 0.01288604736328125, 0.011444091796875, -0.0237579345703125, -0.025054931640625, -0.02423095703125, -0.01375579833984375, -0.010986328125, 0.0029315948486328125, -0.0020732879638671875, 0.01317596435546875, -0.01326751708984375, 0.056121826171875, -0.0252685546875, 0.0246734619140625, 0.0278472900390625, -0.019683837890625, -0.0106048583984375, -0.01427459716796875, -0.0177154541015625, 0.052398681640625, -0.03778076171875, 0.01555633544921875, -0.009765625, 0.018280029296875, -0.0009627342224121094, -0.00926971435546875, 0.06939697265625, -0.01947021484375, -0.03314208984375, -0.00023281574249267578, 0.006519317626953125, 0.0144805908203125, 0.0186614990234375, 0.03631591796875, -0.03118896484375, -0.006916046142578125, 0.007480621337890625, -0.0296173095703125, -0.041748046875, -0.0274505615234375, -0.020111083984375, 0.0760498046875, -0.0167999267578125, 0.0024814605712890625, 0.051849365234375, 0.02349853515625, -0.032989501953125, 0.0001773834228515625, -0.048309326171875, 0.06695556640625, 0.0118865966796875, 0.040313720703125, -0.05706787109375, -0.00428009033203125, 0.0041046142578125, 0.027191162109375, 0.06219482421875, 0.023895263671875, -0.039306640625, -0.0062255859375, 0.005573272705078125, 0.0232696533203125, -0.0191802978515625, 0.0517578125, 0.00197601318359375, 0.0188140869140625, 0.0087127685546875, -0.040008544921875, 0.053741455078125, -0.07562255859375, -0.01265716552734375, 0.0021724700927734375, 0.0240020751953125, 0.030975341796875, 0.021820068359375, 0.0178375244140625, -0.021240234375, 0.022705078125, 0.0308380126953125, -0.029541015625, 0.00007265806198120117, 0.0289306640625, 0.012603759765625, 0.0008883476257324219, -0.0020771026611328125, -0.02142333984375, 0.0301666259765625, -0.01068115234375, 0.0423583984375, 0.00836181640625, 0.0312042236328125, 0.007232666015625, 0.04595947265625, 0.027557373046875, 0.060394287109375, -0.02587890625, 0.0198516845703125, 0.0017757415771484375, -0.0007185935974121094, -0.0261688232421875, 0.01419830322265625, 0.022735595703125, 0.0172576904296875, -0.029632568359375, -0.01203155517578125, -0.0075225830078125, 0.00821685791015625, 0.0270233154296875, -0.0323486328125, 0.01611328125, 0.0157012939453125, 0.0386962890625, -0.014404296875, -0.0276641845703125, -0.00392913818359375, 0.0251922607421875, 0.0016632080078125, -0.01422882080078125, 0.009674072265625, -0.031646728515625, -0.0357666015625, -0.0122833251953125, 0.0594482421875, 0.053375244140625, 0.0027294158935546875, 0.03289794921875, 0.007770538330078125, -0.0026760101318359375, -0.0134429931640625, -0.01605224609375, 0.00687408447265625, 0.023040771484375, -0.0197601318359375, 0.02618408203125, -0.00850677490234375, 0.02423095703125, -0.0328369140625, -0.020111083984375, 0.0024204254150390625, 0.036712646484375, -0.0065155029296875, -0.03253173828125, -0.01544189453125, -0.022125244140625, -0.0029315948486328125, -0.048126220703125, -0.00539398193359375, -0.0118560791015625, -0.0036334991455078125, -0.004680633544921875, 0.018768310546875, 0.006862640380859375, -0.037139892578125, 0.0264434814453125, -0.01079559326171875, -0.036376953125, 0.047149658203125, -0.003948211669921875, 0.06597900390625, -0.01015472412109375, -0.1063232421875, -0.031890869140625, -0.017974853515625, -0.011749267578125, 0.01369476318359375, 0.04095458984375, -0.01035308837890625, 0.029052734375, -0.0125732421875, 0.02032470703125, 0.013458251953125, -0.035369873046875, 0.002185821533203125, -0.004787445068359375, 0.004779815673828125, -0.001468658447265625, -0.00632476806640625, -0.0142822265625, -0.005306243896484375, 0.05670166015625, 0.01812744140625, 0.0628662109375, -0.029998779296875, 0.0240325927734375, -0.0748291015625, 0.0310821533203125, -0.07666015625, -0.0517578125, 0.0142364501953125, 0.0053558349609375, -0.01024627685546875, 0.013519287109375, 0.01031494140625, 0.060638427734375, 0.0006976127624511719, -0.0237579345703125, 0.048797607421875, -0.0309906005859375, -0.0029506683349609375, -0.01407623291015625, 0.0017614364624023438, -0.0275421142578125, -0.022186279296875, 0.0031566619873046875, 0.038330078125, -0.00768280029296875, 0.003108978271484375, -0.01012420654296875, 0.02789306640625, -0.0144500732421875, -0.0226287841796875, 0.0163116455078125, -0.0293426513671875, -0.002490997314453125, 0.02655029296875, -0.028076171875, 0.00107574462890625, -0.00750732421875, -0.0245208740234375, 0.006855010986328125, -0.0014657974243164062, 0.036224365234375, -0.0150604248046875, 0.049072265625, -0.036651611328125, -0.04254150390625, -0.0150909423828125, -0.0262298583984375, -0.01318359375, 0.0032253265380859375, -0.01081085205078125, -0.033111572265625, 0.060150146484375, -0.0179901123046875, -0.0186004638671875, 0.00634002685546875, 0.00039887428283691406, 0.015289306640625, -0.034423828125, -0.0171661376953125, -0.016876220703125, 0.00782012939453125, -0.0119781494140625, -0.0085601806640625, -0.036712646484375, 0.0004911422729492188, 0.041778564453125, -0.0211334228515625, -0.016448974609375, 0.01302337646484375, 0.026275634765625, -0.0230712890625, -0.0034580230712890625, -0.030517578125, -0.006534576416015625, -0.0297393798828125, -0.01715087890625, 0.022552490234375, -0.022613525390625, -0.052703857421875, -0.044708251953125, -0.0021915435791015625, -0.0008883476257324219, 0.00782012939453125, -0.018280029296875, -0.035980224609375, 0.028289794921875, 0.0218963623046875, -0.0491943359375, 0.01377105712890625, -0.03912353515625, -0.027130126953125, 0.0193328857421875, -0.0078887939453125, 0.02044677734375, -0.049591064453125, -0.07928466796875, 0.0645751953125, -0.007740020751953125, -0.03369140625, 0.027923583984375, -0.03961181640625, -0.0298309326171875, 0.057464599609375, 0.0252227783203125, -0.019439697265625, -0.0262603759765625, 0.005878448486328125, -0.0064239501953125, -0.007678985595703125, 0.05059814453125, -0.047119140625, -0.034515380859375, -0.028106689453125, -0.0145263671875, -0.036376953125, -0.0037384033203125, -0.00933837890625, 0.0161285400390625, 0.03466796875, -0.050445556640625, -0.019134521484375, -0.006839752197265625, 0.0179595947265625, -0.00531005859375, -0.037506103515625, -0.007404327392578125, -0.0235595703125, 0.035919189453125, 0.021209716796875, 0.0125732421875, -0.013641357421875, -0.008148193359375, -0.03472900390625, -0.044952392578125, -0.0033168792724609375, 0.018096923828125, -0.056732177734375, 0.00023543834686279297, 0.0288238525390625, -0.0019283294677734375, 0.0035610198974609375, -0.034637451171875, -0.016632080078125, -0.013519287109375, 0.0028820037841796875, 0.0250701904296875, -0.04632568359375, -0.041656494140625, 0.10321044921875, -0.03692626953125, 0.023040771484375, 0.0264739990234375, 0.0256195068359375, 0.046661376953125, 0.044586181640625, 0.011810302734375, 0.003204345703125, -0.04510498046875, -0.003383636474609375, -0.01070404052734375, 0.066650390625, -0.03106689453125, -0.036285400390625, 0.00719451904296875, 0.004856109619140625, -0.01506805419921875, -0.0158233642578125, 0.0142364501953125, -0.004901885986328125, -0.03240966796875, 0.09857177734375, -0.03466796875, 0.125732421875, 0.007083892822265625, 0.0167083740234375, -0.0216217041015625, 0.0240936279296875, 0.0099945068359375, -0.0163726806640625, 0.004878997802734375, 0.04193115234375, 0.044036865234375, -0.0008802413940429688, 0.04144287109375, 0.030059814453125, 0.02459716796875, 0.00853729248046875 ]
06876f6ec77b507f398c6b6b20213e4fc0e588ea
Wordpress Stackexchange Q: After moving wordpress some files still point to old directory I moved my wordpress installation from: /wordpress to /html/website The process was extremely traumatic and even though I followed the instructions closely the site went down a few minutes, after trying everything to get it back up I got to the point that the site works but I cannot remove the old directory since some files seem to still be pointing to it. If I change it's name to /wordpress2 to see if my website still has dependencies in it I get the error message: Warning: require_once(/home/content/77/11193277/html/wordpress/wp-includes/pomo/translations.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/77/11192277/html/wordpress/wp-includes/pomo/mo.php on line 10 Showing it's still pointing to it, how can I fix it? I want to remove the old folder A: Did you follow these docs?: http://codex.wordpress.org/Moving_WordPress You can leave all your files in /wordpress/ and simply make WordPress appear to be in root. See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install If /html/website is really web root, you don't use that string in any configurations, you use mydomain.com.
Q: After moving wordpress some files still point to old directory I moved my wordpress installation from: /wordpress to /html/website The process was extremely traumatic and even though I followed the instructions closely the site went down a few minutes, after trying everything to get it back up I got to the point that the site works but I cannot remove the old directory since some files seem to still be pointing to it. If I change it's name to /wordpress2 to see if my website still has dependencies in it I get the error message: Warning: require_once(/home/content/77/11193277/html/wordpress/wp-includes/pomo/translations.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/77/11192277/html/wordpress/wp-includes/pomo/mo.php on line 10 Showing it's still pointing to it, how can I fix it? I want to remove the old folder A: Did you follow these docs?: http://codex.wordpress.org/Moving_WordPress You can leave all your files in /wordpress/ and simply make WordPress appear to be in root. See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install If /html/website is really web root, you don't use that string in any configurations, you use mydomain.com. A: First, this kind of things should be done by developers. So I strongly suggest you that if maybe you're not planning to be a dev (aka studying), then just hire a dev. Sometimes the web is not free at all ;) That said, per se, to move a wp website it's not that difficult task. First, always make a bakup of both files and database. In fact, I usually maintain 2 versions of my projects: the 'staging' one and the 'production' one, each with its own DB. Hopefully, you should also version control both versions with GIT or the like. Then, when you're moving your website, just make a query of this kind: update wp_posts set post_content = replace(post_content,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_posts set guid = replace(guid,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_options set option_value = replace(option_value,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_comments set comment_author_url = replace(comment_author_url,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_comments set comment_content = replace(comment_content,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_links set link_url = replace(link_url,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_postmeta set meta_value = replace(meta_value,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_usermeta set meta_value = replace(meta_value,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); update wp_commentmeta set meta_value = replace(meta_value,'http://dev.old-domain.com/whatever', 'http://www.newdomain.com'); Sometimes you'll need to add some table (you'll know because of errors coming out, or just inspecting your original db). Then (or before), move the files. Be sure to also move the .htaccess file if present (if you're using permalinks, you've got one), and maybe do a rapid check of its contents. Then (or before), edit the wp-config.php file with the new settings, if needed. That's all.
wordpress
{ "language": "en", "length": 418, "provenance": "stackexchange_00019.jsonl.gz:442067", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133800" }
[ 0.0224151611328125, 0.0194854736328125, -0.007183074951171875, 0.0077972412109375, 0.01390838623046875, -0.047332763671875, 0.03436279296875, -0.05657958984375, 0.0091094970703125, 0.0017938613891601562, 0.018310546875, -0.009429931640625, 0.004749298095703125, -0.053070068359375, 0.01476287841796875, -0.0034084320068359375, 0.039581298828125, -0.0025768280029296875, 0.054290771484375, 0.01268768310546875, 0.005405426025390625, 0.041778564453125, 0.0372314453125, -0.0003960132598876953, -0.01508331298828125, -0.01087188720703125, 0.06671142578125, -0.039215087890625, -0.0065765380859375, -0.034820556640625, -0.0018129348754882812, 0.0212860107421875, 0.013763427734375, 0.054443359375, -0.0648193359375, -0.025360107421875, 0.003528594970703125, 0.016448974609375, -0.01898193359375, 0.027191162109375, 0.0228424072265625, -0.005992889404296875, 0.02191162109375, 0.025726318359375, 0.00676727294921875, -0.06915283203125, 0.04583740234375, -0.052703857421875, -0.007598876953125, -0.027099609375, 0.01010894775390625, -0.020721435546875, 0.0367431640625, -0.01953125, -0.0182342529296875, -0.0247039794921875, 0.01546478271484375, 0.007625579833984375, -0.01073455810546875, -0.0200042724609375, -0.003307342529296875, 0.0640869140625, 0.0230865478515625, 0.035675048828125, -0.00759124755859375, -0.0013446807861328125, 0.03094482421875, 0.01305389404296875, -0.09490966796875, -0.0188140869140625, 0.052734375, -0.03314208984375, 0.0179901123046875, -0.0210723876953125, 0.04473876953125, 0.00524139404296875, -0.01141357421875, 0.01149749755859375, 0.034454345703125, 0.018798828125, -0.005069732666015625, -0.018096923828125, -0.0335693359375, -0.051239013671875, 0.034423828125, 0.00733184814453125, -0.0117950439453125, -0.022491455078125, -0.008392333984375, -0.0244903564453125, -0.0218048095703125, 0.018341064453125, -0.0159759521484375, 0.004970550537109375, -0.026947021484375, 0.01085662841796875, 0.0014562606811523438, 0.034423828125, -0.023529052734375, 0.00879669189453125, -0.0341796875, -0.0010223388671875, -0.006839752197265625, -0.0257415771484375, 0.008697509765625, 0.040771484375, -0.0010051727294921875, -0.00099945068359375, 0.036407470703125, 0.006496429443359375, 0.0026836395263671875, 0.0250091552734375, 0.0034923553466796875, -0.06817626953125, 0.01336669921875, 0.0518798828125, 0.01165008544921875, -0.0011491775512695312, 0.0245819091796875, 0.005023956298828125, 0.0124053955078125, 0.033447265625, -0.041046142578125, -0.046875, 0.00444793701171875, -0.042144775390625, -0.03900146484375, 0.04046630859375, -0.0033626556396484375, 0.0233612060546875, -0.0172882080078125, 0.0180206298828125, 0.0009374618530273438, -0.0072784423828125, -0.03167724609375, -0.0164794921875, -0.00838470458984375, 0.0140228271484375, 0.0146484375, 0.0071563720703125, 0.01259613037109375, -0.056549072265625, -0.0244293212890625, 0.0251617431640625, -0.0118560791015625, 0.00800323486328125, 0.004932403564453125, 0.01502227783203125, -0.0127716064453125, -0.064453125, 0.0285797119140625, -0.0307769775390625, 0.033050537109375, 0.01422119140625, 0.0210113525390625, -0.051605224609375, 0.0306549072265625, -0.0626220703125, 0.034332275390625, -0.055572509765625, -0.03302001953125, -0.0100555419921875, 0.0361328125, -0.046966552734375, -0.059051513671875, 0.01422882080078125, -0.033721923828125, -0.0029163360595703125, 0.0038013458251953125, 0.0031185150146484375, -0.0160980224609375, -0.0007433891296386719, -0.00923919677734375, -0.01070404052734375, 0.01416015625, 0.0272674560546875, 0.020904541015625, -0.037384033203125, 0.025054931640625, 0.11236572265625, 0.02728271484375, -0.00720977783203125, 0.033233642578125, 0.0015554428100585938, -0.07452392578125, -0.0166168212890625, 0.0225982666015625, 0.006221771240234375, 0.0170440673828125, 0.006389617919921875, 0.08563232421875, 0.0307464599609375, -0.0176544189453125, 0.03411865234375, -0.023895263671875, -0.00571441650390625, 0.004848480224609375, 0.0421142578125, -0.017913818359375, -0.02703857421875, -0.0068359375, -0.0163421630859375, 0.01346588134765625, 0.004608154296875, -0.05810546875, 0.0098419189453125, -0.038330078125, 0.038726806640625, 0.01153564453125, 0.0101776123046875, 0.01425933837890625, 0.01058197021484375, -0.0029926300048828125, -0.0701904296875, -0.050567626953125, 0.002475738525390625, -0.0377197265625, 0.041107177734375, -0.00843048095703125, 0.05999755859375, -0.017669677734375, -0.01395416259765625, -0.0192718505859375, -0.0288848876953125, 0.016448974609375, 0.01270294189453125, -0.041015625, -0.0091400146484375, -0.0245361328125, 0.0167236328125, -0.0555419921875, 0.049346923828125, 0.01013946533203125, -0.0008845329284667969, -0.031280517578125, -0.004848480224609375, -0.034698486328125, -0.08441162109375, 0.0025424957275390625, 0.06866455078125, 0.040771484375, 0.02532958984375, -0.002040863037109375, 0.001079559326171875, 0.04376220703125, -0.0882568359375, -0.01010894775390625, 0.001743316650390625, -0.012237548828125, -0.0213775634765625, 0.026702880859375, 0.0021343231201171875, 0.033935546875, -0.05615234375, 0.00360107421875, 0.04571533203125, -0.01308441162109375, -0.024932861328125, -0.00827789306640625, -0.004329681396484375, 0.019439697265625, -0.027496337890625, -0.059967041015625, 0.00495147705078125, 0.01177215576171875, 0.007366180419921875, 0.0192718505859375, 0.0287322998046875, 0.003978729248046875, -0.0109100341796875, 0.0096435546875, -0.0243682861328125, 0.0011091232299804688, 0.037384033203125, 0.046417236328125, -0.032867431640625, -0.019561767578125, -0.0028553009033203125, -0.030029296875, 0.01403045654296875, -0.031951904296875, -0.00516510009765625, -0.01409912109375, -0.0002397298812866211, -0.030975341796875, -0.0256805419921875, 0.0364990234375, 0.03045654296875, 0.01020050048828125, 0.035064697265625, 0.047515869140625, 0.0283966064453125, -0.04052734375, 0.058837890625, -0.0034694671630859375, -0.01132965087890625, 0.0855712890625, -0.0224456787109375, 0.01369476318359375, 0.0127410888671875, 0.0251617431640625, 0.048370361328125, 0.057525634765625, -0.05712890625, -0.00524139404296875, 0.037322998046875, 0.031890869140625, -0.0283203125, -0.046966552734375, -0.0040435791015625, -0.0709228515625, -0.043487548828125, 0.02215576171875, -0.020263671875, 0.007373809814453125, -0.02264404296875, -0.014862060546875, -0.0204620361328125, -0.07025146484375, -0.06597900390625, -0.033721923828125, -0.00791168212890625, 0.002658843994140625, 0.0611572265625, -0.00792694091796875, -0.0225982666015625, 0.0643310546875, 0.0165252685546875, 0.01404571533203125, -0.05682373046875, -0.046356201171875, -0.08740234375, -0.0771484375, -0.0311126708984375, 0.0117645263671875, 0.01505279541015625, 0.00286865234375, -0.014984130859375, -0.0011434555053710938, -0.037994384765625, 0.0005712509155273438, 0.10430908203125, 0.01200103759765625, -0.01160430908203125, 0.011810302734375, -0.032012939453125, 0.02691650390625, -0.0009555816650390625, 0.058746337890625, 0.03472900390625, -0.029205322265625, 0.0016927719116210938, 0.00885009765625, -0.00017261505126953125, -0.007568359375, -0.0310211181640625, 0.007190704345703125, -0.042938232421875, -0.06854248046875, -0.0797119140625, -0.0260162353515625, 0.0131988525390625, -0.019989013671875, 0.028350830078125, 0.0161285400390625, -0.031707763671875, 0.0166473388671875, 0.0082550048828125, -0.0055389404296875, 0.019500732421875, 0.0243377685546875, -0.025146484375, -0.0132904052734375, -0.012603759765625, -0.019073486328125, -0.00551605224609375, 0.04949951171875, -0.016937255859375, -0.0014190673828125, 0.0134124755859375, -0.01261138916015625, -0.014434814453125, -0.0154876708984375, -0.034820556640625, -0.02752685546875, 0.0516357421875, -0.001461029052734375, 0.004993438720703125, -0.0172119140625, -0.043182373046875, 0.00676727294921875, 0.082763671875, -0.01641845703125, -0.0246734619140625, 0.044403076171875, 0.01043701171875, -0.0009622573852539062, 0.017852783203125, -0.0450439453125, -0.0240325927734375, -0.0338134765625, -0.029083251953125, -0.0308685302734375, -0.00539398193359375, -0.00070953369140625, -0.03204345703125, 0.01291656494140625, -0.0396728515625, 0.03326416015625, -0.03436279296875, 0.0279388427734375, -0.0180206298828125, 0.01486968994140625, -0.031494140625, -0.0214385986328125, -0.0247955322265625, -0.05926513671875, -0.007404327392578125, -0.030792236328125, 0.042022705078125, -0.019317626953125, 0.063720703125, -0.03790283203125, 0.0173797607421875, -0.0406494140625, 0.0167388916015625, -0.0008220672607421875, 0.0305938720703125, -0.0029964447021484375, 0.012603759765625, 0.01255035400390625, -0.00905609130859375, 0.00247955322265625, -0.046600341796875, -0.03155517578125, 0.0020465850830078125, -0.041168212890625, 0.03350830078125, -0.0242767333984375, -0.01151275634765625, 0.01251220703125, -0.01424407958984375, -0.052581787109375, 0.024810791015625, 0.0023250579833984375, -0.0199127197265625, -0.0360107421875, -0.02496337890625, 0.01218414306640625, -0.0156402587890625, -0.0164642333984375, 0.0114898681640625, 0.0479736328125, 0.0217742919921875, -0.0150299072265625, 0.01207733154296875, 0.0138702392578125, 0.0321044921875, 0.037078857421875, 0.062408447265625, 0.03875732421875, 0.008544921875, 0.0198211669921875, 0.01244354248046875, -0.0026798248291015625, 0.0027484893798828125, -0.0061798095703125, 0.0196990966796875, -0.0033283233642578125, -0.00859832763671875, 0.028045654296875, 0.0171051025390625, 0.049652099609375, 0.0043487548828125, 0.00266265869140625, -0.04473876953125, 0.007656097412109375, 0.00482177734375, -0.019439697265625, -0.038604736328125, -0.06427001953125, 0.018402099609375, -0.047210693359375, 0.04364013671875, -0.024810791015625, 0.01143646240234375, 0.063232421875, 0.0509033203125, -0.0146484375, 0.00934600830078125, 0.0101470947265625, 0.0068206787109375, 0.036590576171875, 0.0151519775390625, 0.01092529296875, -0.015380859375, -0.0146942138671875, 0.0635986328125, 0.0111541748046875, -0.050872802734375, -0.005626678466796875, -0.023040771484375, -0.01102447509765625, 0.0174713134765625, -0.01352691650390625, 0.02789306640625, 0.020416259765625, 0.0008778572082519531, 0.0098876953125, -0.01244354248046875, -0.007068634033203125, -0.041015625, -0.037750244140625, -0.00033593177795410156, -0.0264739990234375, 0.018951416015625, 0.009674072265625, 0.0277099609375, -0.0013713836669921875, -0.0199737548828125, 0.005870819091796875, -0.0258636474609375, 0.051849365234375, -0.0295867919921875, 0.01812744140625, 0.017791748046875, 0.036773681640625, 0.04888916015625, -0.036224365234375, 0.0009708404541015625, 0.035552978515625, 0.06915283203125, -0.009063720703125, -0.054351806640625, -0.00098419189453125, -0.053619384765625, 0.01134490966796875, 0.030792236328125, -0.0305328369140625, -0.07086181640625, 0.00885009765625, 0.01190185546875, 0.0156097412109375, -0.049957275390625, -0.009002685546875, -0.0283660888671875, -0.053466796875, -0.033111572265625, 0.0552978515625, -0.04498291015625, -0.015045166015625, -0.0258331298828125, -0.0185089111328125, 0.0041961669921875, 0.0042877197265625, -0.04547119140625, -0.032379150390625, -0.01074981689453125, -0.01763916015625, 0.0455322265625, -0.00750732421875, 0.0236053466796875, -0.0262603759765625, -0.0123291015625, -0.050994873046875, 0.0148162841796875, 0.0031833648681640625, -0.00920867919921875, -0.08575439453125, 0.03955078125, -0.07373046875, -0.019439697265625, -0.0266571044921875, -0.051025390625, -0.09112548828125, -0.01194000244140625, 0.0007901191711425781, -0.002544403076171875, -0.01407623291015625, -0.0270233154296875, -0.0258331298828125, 0.0189056396484375, 0.017791748046875, -0.0103302001953125, -0.037322998046875, 0.046875, 0.0275421142578125, 0.015838623046875, 0.00235748291015625, 0.0069732666015625, 0.01016998291015625, -0.01557159423828125, 0.03369140625, -0.002391815185546875, -0.03558349609375, -0.0236968994140625, -0.0106048583984375, -0.006793975830078125, 0.04168701171875, -0.023895263671875, -0.03472900390625, 0.0011386871337890625, -0.004817962646484375, -0.027008056640625, 0.03778076171875, 0.00934600830078125, 0.0163116455078125, -0.04595947265625, -0.039886474609375, 0.02459716796875, -0.009368896484375, 0.002239227294921875, 0.01531982421875, -0.0304718017578125, -0.01270294189453125, 0.07373046875, -0.01325225830078125, 0.0020008087158203125, 0.061492919921875, 0.01235198974609375, 0.056243896484375, 0.0150146484375, 0.0416259765625, 0.060791015625, -0.007659912109375, 0.024566650390625, 0.0269622802734375, 0.05426025390625, 0.0000286102294921875, -0.0144195556640625, 0.03338623046875, -0.028900146484375, 0.0127716064453125, 0.04058837890625, 0.040679931640625, -0.037994384765625, -0.016448974609375, -0.00960540771484375, -0.02545166015625, 0.03448486328125, -0.01971435546875, 0.0114288330078125, -0.014190673828125, 0.0001392364501953125, 0.043914794921875, -0.018707275390625, -0.0007839202880859375, 0.01546478271484375, -0.0115509033203125, 0.0153350830078125, 0.01459503173828125, 0.0089569091796875, -0.0028228759765625, -0.0213775634765625, 0.01250457763671875, 0.0011234283447265625, -0.01029205322265625, -0.0196685791015625, 0.0075836181640625, -0.040618896484375, -0.053192138671875, -0.00435638427734375, -0.052093505859375, -0.00525665283203125, 0.01389312744140625, 0.00159454345703125, 0.049224853515625, 0.0270538330078125, 0.0095367431640625, -0.01137542724609375, -0.01351165771484375, 0.006565093994140625, 0.01910400390625, -0.005008697509765625, 0.03240966796875, -0.0234375, -0.040679931640625, 0.006481170654296875, -0.043548583984375, -0.0164947509765625, 0.018341064453125, 0.025054931640625, 0.002349853515625, -0.05462646484375, -0.00501251220703125, 0.034698486328125, -0.010498046875, 0.0079803466796875, 0.0119171142578125, 0.025177001953125, -0.0384521484375, -0.0256805419921875, 0.0107879638671875, -0.0345458984375, -0.01507568359375, 0.01512908935546875, -0.04132080078125, 0.09295654296875, -0.0295257568359375, 0.01004791259765625, 0.0003757476806640625, 0.043487548828125, -0.0301055908203125, 0.0347900390625, -0.0032787322998046875, 0.0187835693359375, 0.0195465087890625, 0.00830841064453125, 0.0042266845703125, 0.009521484375, 0.0019235610961914062, 0.0305328369140625, 0.03985595703125, 0.0159759521484375, -0.0163116455078125, 0.004497528076171875, 0.011444091796875, 0.0165863037109375, -0.0084075927734375, 0.037872314453125, -0.0394287109375, -0.000995635986328125, -0.0011968612670898438, -0.021514892578125, 0.0232086181640625, -0.01149749755859375, -0.0789794921875, -0.0280303955078125, -0.007678985595703125, -0.036712646484375, -0.02496337890625, -0.005489349365234375, -0.0228271484375, -0.00522613525390625, 0.00717926025390625, 0.023773193359375, 0.01654052734375, 0.01177215576171875, 0.0311737060546875, -0.02203369140625, 0.00850677490234375, -0.022186279296875, 0.0438232421875, 0.005695343017578125, 0.03472900390625, 0.001049041748046875, 0.01294708251953125, 0.057037353515625, -0.0253448486328125, -0.0003979206085205078, 0.03143310546875, -0.03765869140625, 0.057281494140625, 0.07666015625, 0.048828125, 0.028472900390625, 0.0160369873046875, 0.018463134765625, 0.062744140625, -0.029876708984375, -0.00695037841796875, 0.01357269287109375, 0.002559661865234375, -0.01605224609375, -0.0184326171875, -0.007190704345703125, -0.0224609375, -0.0195770263671875, -0.009796142578125, -0.0099334716796875, 0.01335906982421875, -0.0011529922485351562, -0.0009713172912597656, 0.005809783935546875, 0.01552581787109375, 0.00388336181640625, -0.0225830078125, 0.039093017578125, 0.0098724365234375, 0.0031585693359375, -0.01456451416015625, 0.0245208740234375, 0.0205230712890625, 0.0136566162109375, 0.01332855224609375, 0.025299072265625, -0.01434326171875, -0.005039215087890625, -0.055877685546875, -0.0855712890625, 0.0379638671875, 0.06011962890625, 0.051177978515625, 0.03656005859375, 0.0165252685546875, 0.015380859375, 0.0111083984375, 0.0147552490234375, 0.00032019615173339844, -0.0211334228515625, 0.034576416015625, -0.029052734375, 0.039031982421875, -0.000012516975402832031, -0.01030731201171875, -0.027496337890625, 0.0145111083984375, 0.04351806640625, 0.0031147003173828125, 0.0172576904296875, -0.0019989013671875, -0.003665924072265625, 0.046173095703125, 0.036376953125, 0.05023193359375, 0.04669189453125, 0.004680633544921875, -0.01215362548828125, -0.007053375244140625, 0.040008544921875, -0.0189208984375, 0.02392578125, 0.0157928466796875, 0.021484375, 0.03948974609375, -0.0007143020629882812, -0.03759765625, 0.0269622802734375, 0.00504302978515625, 0.0220947265625, 0.053375244140625, 0.043182373046875, 0.0025634765625, -0.01174163818359375, 0.0033416748046875, 0.058380126953125, 0.011505126953125, 0.08331298828125, -0.048248291015625, 0.021240234375, -0.054107666015625, 0.006793975830078125, -0.0176544189453125, -0.03167724609375, 0.0026454925537109375, 0.043182373046875, 0.0146331787109375, -0.0220794677734375, -0.078369140625, 0.0173492431640625, 0.0165557861328125, -0.0132598876953125, 0.01824951171875, -0.0013628005981445312, 0.021209716796875, -0.0166168212890625, 0.00684356689453125, -0.023834228515625, -0.06402587890625, -0.04315185546875, 0.01129150390625, 0.01064300537109375, 0.0240325927734375, -0.027252197265625, 0.01393890380859375, 0.019073486328125, -0.032135009765625, 0.034881591796875, -0.0283660888671875, 0.051055908203125, 0.03790283203125, 0.028717041015625, -0.04266357421875, -0.00928497314453125, -0.0226898193359375, 0.00872802734375, -0.0109405517578125, 0.062744140625, -0.017242431640625, -0.0386962890625, -0.051300048828125, -0.031494140625, -0.003887176513671875, -0.006626129150390625, -0.003498077392578125, -0.0472412109375, -0.00323486328125, 0.0094451904296875, 0.0155487060546875, -0.0196533203125, -0.0012578964233398438, -0.00849151611328125, 0.005275726318359375, -0.009368896484375, -0.00858306884765625, -0.0220184326171875, -0.0008707046508789062, 0.05029296875, 0.0419921875, -0.09521484375, 0.0278778076171875, -0.003978729248046875, 0.044403076171875, 0.018890380859375, -0.032196044921875, -0.0116729736328125, -0.005767822265625, -0.031097412109375, -0.054290771484375, -0.0474853515625, 0.033416748046875, -0.036529541015625, -0.0007700920104980469, -0.0008482933044433594, -0.00701141357421875, 0.0204620361328125, 0.01177215576171875, -0.00017952919006347656, 0.051239013671875, 0.011016845703125, -0.033355712890625, -0.01384735107421875, -0.01294708251953125, 0.02294921875, -0.033294677734375, -0.00921630859375, -0.0248260498046875, -0.03076171875, -0.037811279296875, -0.0032062530517578125, -0.01155853271484375, -0.0604248046875, -0.0838623046875, -0.0104827880859375, 0.0019407272338867188, -0.0302581787109375, -0.034942626953125, -0.024688720703125, -0.04150390625, 0.0845947265625, -0.00202178955078125, -0.045379638671875, 0.004520416259765625, 0.06787109375, 0.028289794921875, 0.036712646484375, 0.007110595703125, 0.022216796875, 0.0178375244140625, 0.036651611328125, 0.03228759765625, 0.02105712890625, -0.0085906982421875, 0.0228729248046875, 0.01204681396484375, 0.0687255859375, 0.017242431640625, 0.017913818359375, 0.002292633056640625, -0.09423828125, -0.0304412841796875, -0.0206756591796875, -0.0244293212890625, -0.00795745849609375, 0.08111572265625, 0.0294647216796875, 0.01641845703125, -0.0240325927734375, -0.024749755859375, -0.0460205078125, -0.006092071533203125, -0.0303802490234375, 0.012481689453125, -0.060699462890625, 0.00966644287109375, -0.0231475830078125, -0.0205078125, -0.0037250518798828125, -0.01666259765625, -0.034576416015625, 0.004180908203125, -0.005016326904296875, -0.01203155517578125, -0.0113372802734375, -0.013397216796875, 0.03790283203125, -0.0077667236328125, 0.038604736328125, -0.0203094482421875, 0.0263519287109375, 0.054962158203125, 0.022979736328125, 0.029022216796875, 0.023223876953125, -0.0220489501953125, -0.00772857666015625, 0.0343017578125, 0.02508544921875, 0.006732940673828125, -0.04827880859375, 0.0222015380859375, -0.00891876220703125, -0.01324462890625, -0.032684326171875, -0.005748748779296875, 0.032989501953125, -0.01727294921875, 0.07135009765625, 0.014801025390625, -0.01007080078125, -0.02239990234375, 0.06549072265625, -0.019073486328125, -0.02886962890625, -0.003662109375, -0.037384033203125, -0.0060577392578125, -0.0217437744140625, -0.01605224609375, -0.06207275390625, 0.0226287841796875, 0.01103973388671875, -0.006908416748046875, 0.0213623046875 ]
a54aeee3e3fd9e6b2867f58672aaeac03dacb5a5
Wordpress Stackexchange Q: How to change the language for the front-end only? I have installed a wordpress theme, i can see the .mo and .po /public_html/wp-content/themes/themename/lang, the language I want to use is available. Could you please advise on how to use a specific language? I don't want to change the admin language just the theme language. A: Well, you actually do not need anything special to have two different languages in the back end and in the front end. I just tested it again on WP 5.1 * *go to the settings and set the Site Language to the front end laguage, for example - German, then save. *go to Users and then click edit on your administrator account. There you can set Language to English and save. That's it. Your front end will use German as base and the back end will be in English.
Q: How to change the language for the front-end only? I have installed a wordpress theme, i can see the .mo and .po /public_html/wp-content/themes/themename/lang, the language I want to use is available. Could you please advise on how to use a specific language? I don't want to change the admin language just the theme language. A: Well, you actually do not need anything special to have two different languages in the back end and in the front end. I just tested it again on WP 5.1 * *go to the settings and set the Site Language to the front end laguage, for example - German, then save. *go to Users and then click edit on your administrator account. There you can set Language to English and save. That's it. Your front end will use German as base and the back end will be in English. A: If anyone is still looking for that, here is what you should do since version 4.7 function wp_noshor_redefine_locale($locale) { if( is_admin() ): switch_to_locale('en_US'); endif; } add_filter('init','wp_noshor_redefine_locale'); This forces the dashboard to load in English, then you can go to settings, set the language you desire. A: You can filter the string for locale, it holds the current language. And you can exclude the admin from that filter: is_admin() or add_filter( 'locale', function() { return 'ar'; }); A: I think that your simplest option would be to update your installation using the localized version of WordPress for your native language (and making sure that WPLANG remains set accordingly), and then to use a plugin such as: * *English WordPress Admin *Admin in English, or *WP Native Dashboard ... in order to switch just the admin interface to English. A: Here is the complete and a better solution to only change theme (front-end) or plugin language. It even works for changing even a specific page/post etc. language as well. TLDR; There is a filter called locale, which determines which language to load. You can change to your specific language based on the conditions that you prefer. Changing only Theme language, or based on other conditions, without touching the admin dashboard language. add_filter('locale', function($locale) { if( is_admin() ) { return $locale; // Leave default language if it is admin side. } // You can load language based on any conditional tags here, like, is_page(), is_singular(), is_archive() etc. // I want to change the language for all front end in this particular example. $locale = 'en_US'; // Change to your required language. The language must be installed and loaded. return $locale; // Return language to be used. }); Before you change the language, you may need to load that language first. In your theme or child theme, load the custom language by using this snippet. add_action( 'after_setup_theme', function() { // Assuming your language files are in /wp-content/themes/your-theme/languages // Don't forget to change 'text-domain' to your theme text-domain. // For Theme. load_theme_textdomain( 'text-domain', get_template_directory() . '/languages' ); // For Child Theme load_child_theme_textdomain( 'text-domain', get_stylesheet_directory() . '/languages' ); // Remove the load_child_theme_textdomain if you are using it for the main theme, // OR Remove load_theme_textdomain if you are loading child theme language. }); Similarly, you can change language based on URL, or for your plugin page, etc. Hope it'll help. OR let me know if I missed something. A: You can also try this: 1.Download jquery translate script from this link 2.How it works ( doc, live test ) <?php function ravs_frontend_translate_script() { wp_enqueue_script( 'translate', get_template_directory_uri() . '/js/jquery.translate.js', array( 'jquery' ), '0.0.1', true ); } add_action( 'wp_enqueue_scripts', 'ravs_frontend_translate_script' ); function ravs_translate_webpage_fx(){ ?> <script> // run script after both script load for translate webpage jQuery(document).ready(function(){ //from english to german: jQuery('body').translate( 'ar' ); }); </script> <?php add_action('wp_footer','ravs_translate_webpage_fx', 999 ); // make sure this hook run after jquery-translate include in webpage
wordpress
{ "language": "en", "length": 628, "provenance": "stackexchange_00019.jsonl.gz:442096", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133882" }
[ -0.00897216796875, -0.03582763671875, -0.02044677734375, -0.0078125, -0.032318115234375, -0.01229095458984375, -0.004184722900390625, 0.00495147705078125, 0.01091766357421875, 0.014495849609375, 0.02276611328125, -0.02947998046875, 0.0185699462890625, -0.046356201171875, -0.01105499267578125, -0.018829345703125, 0.0377197265625, 0.016082763671875, 0.048828125, 0.006916046142578125, 0.00412750244140625, 0.0128936767578125, 0.0260467529296875, 0.0213623046875, 0.0631103515625, -0.04296875, 0.0233306884765625, -0.050628662109375, 0.02850341796875, -0.0266571044921875, 0.039093017578125, 0.012786865234375, 0.0205078125, -0.005245208740234375, 0.015716552734375, 0.0019292831420898438, 0.0294647216796875, -0.02288818359375, 0.006206512451171875, 0.01666259765625, 0.029388427734375, -0.0255126953125, -0.00392913818359375, 0.10498046875, -0.00548553466796875, -0.0623779296875, 0.04205322265625, -0.068359375, -0.002323150634765625, -0.038726806640625, 0.01739501953125, -0.01052093505859375, 0.0301971435546875, -0.03228759765625, -0.00669097900390625, 0.008941650390625, -0.0212249755859375, 0.036041259765625, 0.031097412109375, 0.00839996337890625, -0.029052734375, -0.00998687744140625, 0.004634857177734375, -0.0302581787109375, 0.018829345703125, -0.00213623046875, -0.014129638671875, 0.0316162109375, -0.05029296875, 0.0166168212890625, 0.0299072265625, -0.050079345703125, 0.02374267578125, -0.046722412109375, -0.01303863525390625, 0.04803466796875, -0.037872314453125, -0.01311492919921875, 0.0404052734375, -0.0406494140625, 0.011810302734375, -0.0036525726318359375, -0.031036376953125, -0.041229248046875, 0.0152130126953125, -0.006038665771484375, -0.01373291015625, -0.0020503997802734375, -0.07647705078125, -0.029083251953125, -0.040283203125, -0.0012331008911132812, -0.12139892578125, -0.00322723388671875, 0.0259857177734375, -0.01535797119140625, -0.01263427734375, 0.015655517578125, 0.01092529296875, 0.0165863037109375, 0.0029125213623046875, -0.0479736328125, 0.042816162109375, -0.03778076171875, 0.0035762786865234375, -0.0183868408203125, -0.00909423828125, 0.023681640625, 0.042877197265625, 0.045806884765625, -0.006320953369140625, 0.0472412109375, 0.0095367431640625, -0.0287628173828125, -0.012298583984375, 0.0196075439453125, -0.007350921630859375, 0.0333251953125, 0.01611328125, 0.0273895263671875, 0.0139007568359375, 0.04296875, -0.00650787353515625, -0.051513671875, -0.01256561279296875, -0.03131103515625, -0.0186309814453125, -0.024169921875, 0.01413726806640625, 0.0433349609375, -0.043548583984375, -0.0021915435791015625, 0.055633544921875, 0.017669677734375, -0.00511932373046875, -0.02947998046875, 0.001789093017578125, 0.03851318359375, 0.0016756057739257812, 0.0053863525390625, 0.01666259765625, -0.033935546875, -0.00937652587890625, 0.01873779296875, -0.0294647216796875, -0.0134735107421875, 0.006786346435546875, 0.04656982421875, 0.004180908203125, -0.06561279296875, 0.0625, -0.043304443359375, -0.0115509033203125, 0.0292205810546875, -0.0002052783966064453, 0.037109375, 0.010894775390625, 0.01204681396484375, -0.0205230712890625, 0.00778961181640625, -0.03131103515625, -0.0240936279296875, 0.021240234375, -0.0041961669921875, -0.0223236083984375, 0.03192138671875, -0.0059356689453125, 0.016387939453125, 0.01200103759765625, -0.0219573974609375, 0.058197021484375, 0.0098724365234375, -0.0147247314453125, -0.0093231201171875, 0.006134033203125, -0.012786865234375, -0.036376953125, 0.01248931884765625, 0.0188751220703125, 0.03411865234375, 0.0345458984375, -0.014892578125, 0.032257080078125, 0.035980224609375, -0.024017333984375, -0.030517578125, 0.0255889892578125, 0.052093505859375, 0.038055419921875, 0.02777099609375, -0.01287841796875, -0.032958984375, -0.0158843994140625, 0.016021728515625, -0.02020263671875, -0.01328277587890625, -0.05316162109375, -0.0016183853149414062, -0.031005859375, 0.003570556640625, 0.0606689453125, -0.017181396484375, 0.0059356689453125, -0.022857666015625, -0.06005859375, -0.0255889892578125, -0.01309967041015625, 0.01314544677734375, 0.04022216796875, 0.0280303955078125, -0.005157470703125, 0.0035190582275390625, 0.009674072265625, -0.0626220703125, -0.055816650390625, 0.007015228271484375, -0.0094757080078125, 0.05316162109375, 0.036895751953125, 0.01129913330078125, 0.0780029296875, -0.044281005859375, 0.0726318359375, -0.00046944618225097656, -0.005153656005859375, 0.0014619827270507812, -0.0023860931396484375, -0.0022029876708984375, 0.02801513671875, -0.0030231475830078125, 0.039581298828125, 0.01276397705078125, 0.0026187896728515625, -0.00893402099609375, 0.005199432373046875, 0.00815582275390625, 0.0362548828125, -0.08404541015625, 0.00940704345703125, 0.038604736328125, 0.0302886962890625, 0.021636962890625, 0.0027942657470703125, -0.0010232925415039062, 0.02874755859375, 0.0031223297119140625, 0.041534423828125, -0.0258331298828125, 0.024810791015625, 0.0204925537109375, -0.0259552001953125, -0.0280914306640625, 0.03338623046875, -0.0799560546875, 0.0006585121154785156, 0.052947998046875, -0.02813720703125, -0.05804443359375, 0.034454345703125, -0.0172271728515625, 0.02337646484375, -0.048309326171875, -0.0595703125, -0.0003561973571777344, 0.005840301513671875, -0.00891876220703125, -0.007106781005859375, -0.0128173828125, -0.0243072509765625, 0.01268768310546875, 0.0261993408203125, -0.024261474609375, 0.017425537109375, 0.0240478515625, -0.0653076171875, 0.015960693359375, -0.0240631103515625, 0.00887298583984375, 0.0290985107421875, -0.00015091896057128906, -0.01421356201171875, 0.032806396484375, 0.0027103424072265625, -0.01174163818359375, 0.0156707763671875, -0.06268310546875, 0.0000054836273193359375, -0.00566864013671875, 0.003253936767578125, 0.00899505615234375, 0.04248046875, -0.0328369140625, -0.05865478515625, 0.037322998046875, -0.044525146484375, -0.034393310546875, 0.0214691162109375, -0.014312744140625, 0.0186767578125, -0.00738525390625, 0.028350830078125, 0.0511474609375, 0.0215301513671875, -0.0226593017578125, 0.01441192626953125, -0.0236663818359375, 0.0003764629364013672, 0.0259246826171875, -0.0013637542724609375, -0.0012874603271484375, -0.0748291015625, -0.0027675628662109375, 0.01383209228515625, -0.02581787109375, -0.01361846923828125, -0.0292816162109375, -0.03466796875, -0.006763458251953125, -0.056854248046875, -0.01222991943359375, 0.00186920166015625, -0.02105712890625, 0.016998291015625, 0.0171051025390625, 0.00036835670471191406, -0.0294647216796875, 0.0211639404296875, -0.004978179931640625, 0.053497314453125, -0.039276123046875, -0.027496337890625, -0.0257720947265625, -0.0543212890625, -0.04400634765625, 0.01103973388671875, -0.0157928466796875, 0.00597381591796875, 0.04638671875, -0.00279998779296875, -0.058013916015625, -0.031829833984375, 0.07049560546875, -0.022613525390625, -0.0161590576171875, 0.0013866424560546875, -0.07330322265625, 0.033905029296875, -0.0173187255859375, 0.0036144256591796875, 0.004558563232421875, 0.01776123046875, 0.01319122314453125, -0.01081085205078125, -0.028564453125, -0.0171661376953125, -0.0195770263671875, 0.003986358642578125, -0.02801513671875, -0.0299835205078125, -0.057769775390625, -0.038360595703125, 0.048309326171875, -0.0242156982421875, -0.003314971923828125, -0.0079498291015625, -0.038299560546875, 0.0059814453125, 0.02239990234375, 0.0095367431640625, -0.005718231201171875, -0.00978851318359375, -0.0192108154296875, 0.038818359375, 0.01300048828125, 0.00925445556640625, -0.00638580322265625, 0.036041259765625, -0.01837158203125, 0.032135009765625, 0.026824951171875, 0.003963470458984375, -0.004352569580078125, 0.00762176513671875, 0.0004813671112060547, -0.078857421875, 0.037811279296875, -0.06817626953125, -0.01044464111328125, -0.0084075927734375, -0.021942138671875, 0.036376953125, 0.1177978515625, -0.0460205078125, 0.0086517333984375, 0.00617218017578125, 0.01207733154296875, -0.01236724853515625, -0.021728515625, -0.07464599609375, -0.0223388671875, -0.048553466796875, 0.00868988037109375, -0.004444122314453125, 0.009552001953125, -0.042449951171875, 0.0518798828125, -0.02801513671875, -0.0235595703125, 0.032806396484375, -0.0252532958984375, -0.009124755859375, 0.01419830322265625, -0.042816162109375, 0.0016946792602539062, -0.032562255859375, -0.0206298828125, -0.050689697265625, -0.0254058837890625, -0.002346038818359375, 0.058319091796875, -0.0001798868179321289, -0.01189422607421875, 0.002918243408203125, 0.05572509765625, 0.0196075439453125, 0.0199432373046875, -0.00019359588623046875, -0.006336212158203125, 0.029296875, -0.01120758056640625, -0.01477813720703125, -0.00405120849609375, -0.0264129638671875, -0.004550933837890625, -0.023834228515625, 0.06158447265625, -0.002246856689453125, 0.0286407470703125, 0.025970458984375, -0.033294677734375, -0.042694091796875, -0.0034999847412109375, -0.0242919921875, -0.0014858245849609375, -0.0177154541015625, -0.0008363723754882812, -0.00855255126953125, -0.0523681640625, 0.073974609375, -0.0033931732177734375, -0.01132965087890625, -0.0084991455078125, 0.072998046875, 0.006580352783203125, -0.044586181640625, -0.05145263671875, -0.0174713134765625, 0.045135498046875, -0.00472259521484375, 0.044158935546875, 0.0217132568359375, -0.04931640625, 0.11102294921875, 0.0236663818359375, -0.0279388427734375, 0.01502227783203125, 0.021453857421875, 0.00481414794921875, -0.035797119140625, 0.020782470703125, 0.004512786865234375, -0.00746917724609375, -0.0129547119140625, -0.005889892578125, 0.0213623046875, 0.01239013671875, -0.0127105712890625, 0.0077667236328125, -0.00658416748046875, 0.0009055137634277344, -0.047271728515625, 0.01383209228515625, -0.0218353271484375, -0.00991058349609375, -0.0130767822265625, 0.01221466064453125, -0.001010894775390625, 0.042144775390625, -0.0269775390625, 0.0216827392578125, -0.02191162109375, 0.01421356201171875, -0.00640869140625, 0.0296783447265625, -0.0207977294921875, 0.020538330078125, -0.01538848876953125, 0.080078125, 0.0095672607421875, -0.056915283203125, 0.01169586181640625, -0.00450897216796875, 0.0146942138671875, 0.046478271484375, -0.004833221435546875, 0.027496337890625, -0.01070404052734375, -0.01393890380859375, -0.0099334716796875, 0.012847900390625, -0.060211181640625, -0.04583740234375, 0.0096588134765625, 0.0137176513671875, -0.01061248779296875, 0.002155303955078125, 0.0595703125, 0.02081298828125, 0.0181732177734375, -0.00925445556640625, -0.01268768310546875, -0.0039520263671875, 0.02044677734375, -0.00507354736328125, 0.009033203125, 0.0340576171875, -0.019989013671875, 0.059356689453125, 0.01006317138671875, 0.0244140625, 0.04254150390625, 0.041229248046875, 0.009674072265625, -0.0037670135498046875, -0.034088134765625, -0.06317138671875, 0.0233001708984375, 0.044464111328125, -0.00298309326171875, -0.06390380859375, -0.007076263427734375, 0.0272064208984375, 0.03338623046875, -0.0594482421875, -0.010162353515625, -0.01015472412109375, -0.0034046173095703125, 0.01378631591796875, 0.0224609375, -0.0310516357421875, 0.015350341796875, 0.0079345703125, -0.01824951171875, -0.00325775146484375, -0.0016679763793945312, -0.07244873046875, -0.02911376953125, -0.003192901611328125, -0.0015468597412109375, 0.0263824462890625, 0.005268096923828125, 0.00820159912109375, -0.0051422119140625, -0.027557373046875, 0.015594482421875, -0.0006728172302246094, 0.048828125, -0.010650634765625, -0.0277862548828125, -0.0205230712890625, -0.054718017578125, -0.04052734375, -0.033721923828125, -0.01215362548828125, -0.03790283203125, 0.01483917236328125, -0.01155853271484375, 0.02911376953125, -0.032989501953125, 0.0014324188232421875, 0.0079803466796875, 0.039215087890625, 0.00264739990234375, 0.0692138671875, -0.039886474609375, 0.0748291015625, -0.00040340423583984375, 0.03558349609375, 0.0018568038940429688, 0.034393310546875, 0.0123443603515625, -0.01244354248046875, 0.0207977294921875, 0.00841522216796875, -0.01369476318359375, -0.0197906494140625, -0.00809478759765625, -0.0310821533203125, 0.038909912109375, -0.007556915283203125, 0.0132904052734375, -0.0112457275390625, 0.0116729736328125, -0.0167694091796875, 0.01103973388671875, -0.054779052734375, 0.0232391357421875, -0.013885498046875, -0.006591796875, 0.01044464111328125, -0.0229339599609375, -0.0240631103515625, 0.0304412841796875, -0.0026721954345703125, 0.02740478515625, 0.00890350341796875, -0.01462554931640625, -0.005954742431640625, 0.035125732421875, 0.023345947265625, 0.042724609375, 0.0333251953125, 0.0296630859375, -0.01116943359375, 0.023712158203125, -0.034027099609375, 0.006275177001953125, -0.00838470458984375, -0.0177459716796875, -0.0006628036499023438, -0.026153564453125, 0.002346038818359375, 0.007106781005859375, 0.12139892578125, 0.0880126953125, -0.153076171875, -0.0088348388671875, 0.0223846435546875, -0.00569915771484375, -0.0164031982421875, 0.01641845703125, -0.0254058837890625, -0.06732177734375, 0.0321044921875, -0.03387451171875, -0.0087890625, 0.004566192626953125, -0.01116180419921875, -0.00432586669921875, 0.0164794921875, 0.049591064453125, 0.0151214599609375, -0.01806640625, -0.035858154296875, 0.01552581787109375, -0.00457000732421875, -0.032745361328125, 0.00004500150680541992, 0.0015621185302734375, -0.03363037109375, -0.08270263671875, -0.0016651153564453125, 0.013458251953125, -0.0016727447509765625, 0.0286407470703125, 0.01413726806640625, -0.0027904510498046875, 0.06683349609375, -0.0367431640625, 0.01180267333984375, 0.01641845703125, 0.00919342041015625, 0.0003521442413330078, 0.005016326904296875, 0.0269622802734375, -0.01061248779296875, -0.04937744140625, 0.00684356689453125, -0.06744384765625, 0.004180908203125, -0.01165008544921875, -0.03009033203125, 0.0198211669921875, 0.0204315185546875, -0.0156707763671875, 0.0179595947265625, 0.0091552734375, 0.00809478759765625, -0.024749755859375, -0.019195556640625, -0.04217529296875, -0.005733489990234375, -0.0246429443359375, -0.037078857421875, 0.0013532638549804688, -0.006458282470703125, -0.06689453125, 0.10430908203125, -0.0172271728515625, 0.040985107421875, 0.0229949951171875, 0.029022216796875, -0.025299072265625, 0.000016927719116210938, -0.02001953125, 0.0203704833984375, -0.00844573974609375, -0.00559234619140625, -0.038055419921875, 0.0107574462890625, -0.01457977294921875, 0.02130126953125, 0.032867431640625, 0.0140228271484375, 0.0154571533203125, 0.00628662109375, 0.0254974365234375, 0.0178070068359375, -0.0112152099609375, 0.0145111083984375, -0.062408447265625, 0.026824951171875, -0.00585174560546875, -0.057373046875, 0.0206146240234375, -0.01015472412109375, -0.0697021484375, -0.0217437744140625, 0.0022830963134765625, -0.0174102783203125, 0.0206298828125, 0.017730712890625, -0.044464111328125, 0.004581451416015625, 0.0286407470703125, -0.047882080078125, -0.01163482666015625, 0.022247314453125, 0.01386260986328125, -0.050262451171875, 0.0233612060546875, -0.04119873046875, 0.044219970703125, -0.004108428955078125, 0.0055694580078125, 0.0037689208984375, 0.01056671142578125, 0.003261566162109375, -0.0248260498046875, 0.0004100799560546875, 0.0108184814453125, -0.01419830322265625, 0.0283203125, 0.03936767578125, 0.0277252197265625, -0.00033402442932128906, 0.0250091552734375, 0.01091766357421875, 0.03167724609375, -0.03460693359375, -0.021209716796875, 0.0009832382202148438, -0.031494140625, -0.0126190185546875, -0.002864837646484375, -0.0224609375, 0.034027099609375, 0.0187225341796875, 0.01540374755859375, 0.00669097900390625, -0.0017223358154296875, 0.0215911865234375, 0.005802154541015625, 0.016632080078125, -0.02783203125, 0.023712158203125, -0.05126953125, 0.0231170654296875, 0.015594482421875, 0.052825927734375, 0.015777587890625, 0.030181884765625, 0.0080413818359375, -0.01374053955078125, -0.0113067626953125, 0.0282440185546875, -0.009307861328125, 0.007389068603515625, -0.00815582275390625, -0.019866943359375, -0.038909912109375, 0.01016998291015625, -0.0138092041015625, -0.0119476318359375, 0.03472900390625, 0.059600830078125, -0.0189056396484375, -0.03497314453125, 0.01216888427734375, -0.00803375244140625, 0.0029811859130859375, -0.00974273681640625, 0.004207611083984375, 0.0007500648498535156, -0.00390625, -0.027099609375, 0.09039306640625, -0.0174713134765625, -0.005603790283203125, 0.0263824462890625, -0.00205230712890625, -0.041412353515625, 0.0296478271484375, -0.00870513916015625, 0.09527587890625, 0.0205230712890625, -0.061798095703125, -0.00852203369140625, -0.035308837890625, -0.03436279296875, 0.022796630859375, 0.02801513671875, -0.03558349609375, 0.042633056640625, -0.0165252685546875, -0.0175628662109375, 0.016143798828125, 0.0074005126953125, 0.0118865966796875, -0.00495147705078125, 0.0155792236328125, -0.0107421875, -0.0643310546875, -0.045745849609375, -0.033905029296875, 0.054229736328125, 0.0335693359375, 0.0167236328125, 0.00868988037109375, 0.036956787109375, -0.0300750732421875, 0.01473236083984375, -0.0179595947265625, -0.0302276611328125, 0.01141357421875, 0.037261962890625, 0.0225372314453125, -0.02496337890625, -0.05621337890625, 0.00420379638671875, 0.0288848876953125, -0.03350830078125, 0.03717041015625, -0.0205535888671875, 0.0062103271484375, -0.056488037109375, -0.0004589557647705078, -0.0228424072265625, -0.056610107421875, -0.07666015625, 0.0129547119140625, 0.03765869140625, 0.0274200439453125, -0.06768798828125, 0.015869140625, -0.037506103515625, -0.046722412109375, 0.023834228515625, -0.0457763671875, 0.01332855224609375, 0.0270538330078125, -0.0255279541015625, -0.0021724700927734375, 0.0008640289306640625, -0.0178985595703125, 0.006328582763671875, 0.00949859619140625, 0.032745361328125, 0.0023345947265625, 0.00560760498046875, -0.00978851318359375, 0.01297760009765625, 0.003009796142578125, -0.037322998046875, 0.00023186206817626953, 0.039337158203125, -0.019683837890625, -0.02325439453125, 0.0250396728515625, 0.0094451904296875, 0.003017425537109375, -0.0277557373046875, 0.007579803466796875, 0.0038928985595703125, -0.005893707275390625, -0.001018524169921875, 0.00782012939453125, 0.01027679443359375, -0.022186279296875, -0.016143798828125, 0.00965118408203125, -0.0291900634765625, 0.012664794921875, -0.0305633544921875, -0.05511474609375, 0.03216552734375, 0.042449951171875, -0.03167724609375, -0.0205078125, -0.03106689453125, -0.0266876220703125, -0.0474853515625, -0.0014476776123046875, 0.0302886962890625, 0.0109405517578125, 0.01352691650390625, 0.00701904296875, -0.029632568359375, 0.06292724609375, -0.035247802734375, -0.003932952880859375, 0.01319122314453125, 0.0200347900390625, -0.0380859375, -0.08642578125, 0.022613525390625, -0.0548095703125, -0.008392333984375, -0.032440185546875, -0.0014133453369140625, -0.00965118408203125, -0.07147216796875, -0.1461181640625, 0.0283203125, -0.035858154296875, -0.047882080078125, -0.01180267333984375, 0.031341552734375, 0.00289154052734375, -0.0230560302734375, -0.0175018310546875, -0.01132965087890625, -0.00737762451171875, -0.003986358642578125, 0.032684326171875, 0.06109619140625, -0.0109100341796875, 0.054534912109375, -0.004314422607421875, 0.037811279296875, 0.021331787109375, 0.025665283203125, 0.0110626220703125, -0.01226043701171875, -0.0084991455078125, 0.01849365234375, -0.0609130859375, -0.037078857421875, -0.03363037109375, 0.0244140625, -0.0021381378173828125, -0.057861328125, 0.01470947265625, -0.060882568359375, 0.026153564453125, -0.031951904296875, -0.005573272705078125, 0.0278167724609375, -0.031005859375, -0.0160980224609375, -0.005840301513671875, 0.00739288330078125, 0.0038089752197265625, -0.052490234375, 0.01593017578125, 0.0185089111328125, -0.00560760498046875, -0.00670623779296875, 0.04541015625, -0.013397216796875, 0.00147247314453125, 0.037322998046875, -0.0255889892578125, -0.0273895263671875, -0.018341064453125, 0.08380126953125, -0.0401611328125, 0.0113525390625, -0.005401611328125, 0.0256500244140625, 0.046417236328125, 0.0123138427734375, 0.0220489501953125, -0.015838623046875, 0.00350189208984375, 0.04046630859375, 0.0179901123046875, 0.0175018310546875, -0.00860595703125, -0.032745361328125, -0.0084228515625, 0.0202178955078125, 0.02130126953125, 0.0457763671875, -0.032135009765625, 0.0197601318359375, 0.0219268798828125, -0.019378662109375, -0.018951416015625, -0.0082550048828125, -0.0154266357421875, 0.0293426513671875, -0.0264892578125, -0.00467681884765625, -0.008026123046875, -0.024139404296875, 0.013641357421875, -0.0176239013671875, 0.00647735595703125, -0.0260772705078125, 0.0012960433959960938, -0.0007596015930175781, -0.003116607666015625, 0.0222015380859375 ]
9fb0b1d08b624be8247719210fac3b2cb4b196f3
Wordpress Stackexchange Q: redirect does not work in ajax function I'm using ajax to post the form data. In the end I want to redirect to homepage. I'm trying following code, it does not work. It returns error 302. How can I redirect in the following function? Thanks. add_action('wp_ajax_nopriv_custom_register', 'custom_register'); add_action('wp_ajax_custom_register', 'custom_register'); function custom_register(){ //process wp_redirect( home_url() ); exit; } A: The AJAX request runs in the background. Redirects here do not affect the main page. And 302 is not an error, it is just a status code. Your AJAX response should return either the URL and the status code to the calling page or just a number like 1. Then you handle the redirect in the calling page: jQuery( document ).ready( function( $ ) { var url = '<?php echo home_url(); ?>'; $( '#ajaxtrigger' ).on( 'click', function() { $.post( ajaxurl, {}, function( response ) { if ( 1 == response ) top.location.replace(url); }); return false; } ); });
Q: redirect does not work in ajax function I'm using ajax to post the form data. In the end I want to redirect to homepage. I'm trying following code, it does not work. It returns error 302. How can I redirect in the following function? Thanks. add_action('wp_ajax_nopriv_custom_register', 'custom_register'); add_action('wp_ajax_custom_register', 'custom_register'); function custom_register(){ //process wp_redirect( home_url() ); exit; } A: The AJAX request runs in the background. Redirects here do not affect the main page. And 302 is not an error, it is just a status code. Your AJAX response should return either the URL and the status code to the calling page or just a number like 1. Then you handle the redirect in the calling page: jQuery( document ).ready( function( $ ) { var url = '<?php echo home_url(); ?>'; $( '#ajaxtrigger' ).on( 'click', function() { $.post( ajaxurl, {}, function( response ) { if ( 1 == response ) top.location.replace(url); }); return false; } ); }); A: It's some years behind but I think this answer can help others: I have used a function to redirect from a JS AJAX call. First, it sets some values to database and then tries to redirect in this way: if (wp_safe_redirect( $url)) exit(); But it just returns same page followed by 'undefined'. I finally solved directly the redirection part in JS: window.location.href = url; // keeps page history Works also : window.location.replace( url ); // cleans page history A: If you want to redirect then use javascript window.lcation="your url" in your php code. Try this in your function that is called by the ajax call; add_action('wp_ajax_nopriv_custom_register', 'custom_register'); add_action('wp_ajax_custom_register', 'custom_register'); function custom_register(){ //process $url = home_url(); ?> <script> demo(); //function name of jscript function demo() { window.location="<?php echo $url ?>"; } </script> <?php exit; }
wordpress
{ "language": "en", "length": 292, "provenance": "stackexchange_00019.jsonl.gz:442119", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/133937" }
[ 0.0726318359375, 0.005519866943359375, -0.017425537109375, -0.031585693359375, 0.037078857421875, -0.0516357421875, 0.040802001953125, -0.0313720703125, 0.0208587646484375, 0.04437255859375, -0.0125579833984375, -0.02618408203125, -0.0249481201171875, -0.01328277587890625, -0.055450439453125, -0.0296478271484375, 0.040679931640625, -0.05645751953125, -0.01104736328125, -0.013702392578125, 0.004364013671875, 0.0032176971435546875, 0.012847900390625, 0.0274658203125, 0.018463134765625, 0.00732421875, 0.061431884765625, -0.03033447265625, -0.0005197525024414062, -0.01084136962890625, 0.0238494873046875, 0.0004525184631347656, 0.039459228515625, 0.042449951171875, -0.085205078125, -0.033538818359375, 0.017913818359375, 0.0197601318359375, -0.0294952392578125, 0.046905517578125, 0.028076171875, -0.013153076171875, 0.03985595703125, 0.0103302001953125, -0.01352691650390625, -0.02734375, 0.03814697265625, -0.00426483154296875, 0.005405426025390625, -0.00002276897430419922, 0.037506103515625, 0.0111541748046875, 0.04144287109375, -0.0149078369140625, -0.0211029052734375, 0.0168304443359375, -0.054290771484375, 0.00023281574249267578, 0.0033931732177734375, 0.058258056640625, 0.03387451171875, 0.005474090576171875, -0.00722503662109375, -0.02374267578125, -0.02862548828125, -0.01486968994140625, -0.035064697265625, 0.003505706787109375, -0.036956787109375, -0.042877197265625, 0.02569580078125, -0.01117706298828125, -0.00856781005859375, 0.027740478515625, -0.04412841796875, -0.058441162109375, 0.0308074951171875, -0.026947021484375, 0.006008148193359375, 0.0264129638671875, -0.01617431640625, -0.0065155029296875, 0.0084075927734375, -0.003704071044921875, -0.00449371337890625, 0.0287933349609375, -0.027496337890625, -0.0171051025390625, -0.059356689453125, -0.027313232421875, -0.030059814453125, -0.040496826171875, -0.04901123046875, -0.014892578125, 0.004726409912109375, -0.029022216796875, 0.01123809814453125, 0.01154327392578125, 0.00914764404296875, 0.002605438232421875, 0.01554107666015625, -0.044097900390625, 0.0164794921875, -0.025238037109375, 0.0362548828125, 0.0750732421875, 0.0286102294921875, -0.0162200927734375, 0.02978515625, -0.0269927978515625, 0.00769805908203125, 0.043548583984375, -0.01702880859375, -0.01187896728515625, -0.015777587890625, 0.0133209228515625, -0.037811279296875, -0.01904296875, -0.006252288818359375, -0.003101348876953125, -0.0031299591064453125, 0.0257568359375, 0.01806640625, -0.01486968994140625, -0.0022830963134765625, -0.00775909423828125, -0.005992889404296875, -0.058258056640625, 0.01580810546875, 0.0037975311279296875, -0.040618896484375, 0.0364990234375, 0.033233642578125, -0.0195159912109375, -0.0011205673217773438, -0.011260986328125, 0.07843017578125, -0.01473236083984375, -0.02020263671875, 0.036376953125, 0.02545166015625, -0.0401611328125, -0.0631103515625, 0.0099029541015625, -0.0032138824462890625, 0.026031494140625, 0.00632476806640625, 0.0016279220581054688, -0.018768310546875, -0.0310516357421875, -0.01751708984375, -0.0302886962890625, 0.036285400390625, 0.00969696044921875, -0.01453399658203125, -0.0044708251953125, 0.0015869140625, -0.0080718994140625, -0.00579071044921875, -0.0208892822265625, 0.047760009765625, 0.005802154541015625, 0.006015777587890625, -0.0186004638671875, -0.035919189453125, -0.025665283203125, -0.06768798828125, -0.0191650390625, 0.0206298828125, 0.04541015625, 0.018646240234375, -0.01354217529296875, -0.043792724609375, -0.00853729248046875, -0.00283050537109375, 0.00519561767578125, 0.003612518310546875, 0.0189971923828125, 0.037750244140625, 0.00696563720703125, -0.027801513671875, -0.023773193359375, 0.07574462890625, -0.0304718017578125, -0.0467529296875, 0.08355712890625, 0.01849365234375, 0.06365966796875, -0.045013427734375, -0.0017108917236328125, 0.04241943359375, 0.06683349609375, -0.000010073184967041016, 0.0151214599609375, -0.01221466064453125, -0.04150390625, -0.0101318359375, -0.0201568603515625, -0.022857666015625, 0.03912353515625, 0.016845703125, 0.0281219482421875, -0.01387786865234375, -0.001010894775390625, -0.04547119140625, 0.02459716796875, -0.0184783935546875, 0.051483154296875, 0.019805908203125, 0.032684326171875, 0.0145263671875, 0.02679443359375, -0.039947509765625, -0.009521484375, -0.0155792236328125, 0.0030670166015625, -0.05023193359375, 0.0562744140625, -0.0206146240234375, 0.06585693359375, -0.040283203125, -0.048828125, -0.0285797119140625, -0.04205322265625, 0.035125732421875, -0.028594970703125, -0.000335693359375, -0.0233917236328125, 0.00864410400390625, -0.010284423828125, -0.0264434814453125, 0.052093505859375, 0.0206451416015625, 0.00879669189453125, -0.059326171875, -0.013702392578125, -0.021026611328125, -0.042755126953125, 0.006961822509765625, 0.061126708984375, 0.0194549560546875, 0.018768310546875, -0.0419921875, 0.00653839111328125, -0.00933074951171875, -0.04083251953125, -0.0021305084228515625, 0.0241546630859375, 0.04095458984375, 0.00975799560546875, -0.06756591796875, -0.03704833984375, 0.043609619140625, -0.04443359375, 0.0286865234375, 0.03741455078125, -0.048370361328125, -0.01357269287109375, -0.0296783447265625, -0.007617950439453125, 0.014129638671875, -0.039459228515625, -0.0197906494140625, -0.026214599609375, -0.0014019012451171875, -0.0270843505859375, 0.01491546630859375, 0.003082275390625, -0.0027103424072265625, -0.035675048828125, 0.0228424072265625, -0.0105743408203125, 0.006778717041015625, 0.027191162109375, 0.0283050537109375, 0.0043487548828125, -0.055908203125, -0.0037975311279296875, 0.0491943359375, 0.0217132568359375, -0.012847900390625, 0.016357421875, -0.0399169921875, -0.0193023681640625, -0.01282501220703125, -0.0239105224609375, 0.0032806396484375, 0.006923675537109375, 0.043182373046875, 0.02752685546875, 0.056182861328125, 0.0106201171875, 0.0022640228271484375, 0.0152587890625, -0.01390838623046875, -0.0245513916015625, 0.0248260498046875, 0.00608062744140625, 0.0113067626953125, -0.00920867919921875, 0.0494384765625, 0.043701171875, -0.003971099853515625, 0.020538330078125, 0.0016880035400390625, 0.0298919677734375, 0.0031490325927734375, -0.011688232421875, -0.0093841552734375, 0.006900787353515625, -0.038665771484375, -0.00623321533203125, 0.0545654296875, 0.036346435546875, 0.0290374755859375, -0.014984130859375, 0.01971435546875, 0.042938232421875, -0.055389404296875, -0.0828857421875, -0.05084228515625, -0.0301055908203125, 0.0309906005859375, 0.0250396728515625, 0.016082763671875, 0.0005059242248535156, 0.03857421875, 0.032318115234375, 0.0135955810546875, -0.0205230712890625, -0.0255279541015625, -0.033905029296875, -0.057891845703125, -0.0115203857421875, 0.003147125244140625, -0.00971221923828125, -0.00002676248550415039, -0.00501251220703125, -0.00948333740234375, -0.055816650390625, 0.0009860992431640625, 0.0294952392578125, -0.00627899169921875, 0.00872802734375, -0.005947113037109375, -0.01541900634765625, -0.020355224609375, 0.003513336181640625, 0.034088134765625, -0.0034465789794921875, 0.002658843994140625, -0.01421356201171875, -0.029296875, -0.031768798828125, 0.01424407958984375, -0.01480865478515625, 0.01555633544921875, 0.0178985595703125, 0.04248046875, -0.0107421875, -0.0238037109375, -0.0010128021240234375, -0.059478759765625, 0.0106201171875, 0.049468994140625, -0.0059814453125, 0.01175689697265625, -0.0114593505859375, 0.01537322998046875, 0.0120086669921875, 0.01474761962890625, -0.008026123046875, 0.040252685546875, -0.0178375244140625, -0.00972747802734375, -0.03460693359375, 0.037689208984375, 0.00936126708984375, 0.023101806640625, 0.0178375244140625, 0.0175628662109375, -0.0150604248046875, 0.0208740234375, -0.06439208984375, -0.0770263671875, 0.0234222412109375, -0.0345458984375, -0.0263824462890625, 0.017425537109375, -0.011322021484375, 0.07000732421875, 0.09576416015625, -0.009033203125, 0.00476837158203125, -0.017120361328125, -0.001811981201171875, -0.015838623046875, -0.03399658203125, -0.043060302734375, 0.0040435791015625, -0.05377197265625, 0.00809478759765625, 0.00040650367736816406, -0.01934814453125, -0.0006432533264160156, -0.0229644775390625, -0.0229644775390625, -0.0362548828125, 0.0355224609375, -0.016143798828125, 0.03271484375, -0.007175445556640625, 0.0267333984375, -0.03759765625, -0.0035724639892578125, -0.01800537109375, -0.07257080078125, -0.0072021484375, -0.00557708740234375, 0.06671142578125, 0.022918701171875, -0.0273590087890625, -0.01323699951171875, 0.04156494140625, 0.0295257568359375, 0.0187835693359375, -0.01458740234375, -0.0299072265625, 0.046478271484375, 0.0072021484375, -0.0301971435546875, 0.00693511962890625, -0.00881195068359375, 0.002948760986328125, 0.004558563232421875, 0.026123046875, -0.0282440185546875, -0.038848876953125, 0.0182952880859375, -0.023101806640625, -0.052001953125, -0.033905029296875, -0.031341552734375, 0.008544921875, -0.0191650390625, -0.007266998291015625, -0.0372314453125, -0.043701171875, 0.00522613525390625, -0.03717041015625, -0.01305389404296875, 0.002185821533203125, 0.01117706298828125, 0.022186279296875, 0.007564544677734375, 0.04571533203125, -0.00031828880310058594, 0.0240325927734375, 0.0265655517578125, 0.026580810546875, -0.00963592529296875, -0.033599853515625, 0.0718994140625, -0.0037441253662109375, 0.02178955078125, -0.0000032186508178710938, 0.036407470703125, 0.007678985595703125, -0.0210113525390625, 0.0231475830078125, 0.017608642578125, -0.0675048828125, 0.045440673828125, -0.0052032470703125, 0.0025615692138671875, 0.007556915283203125, -0.005283355712890625, -0.040496826171875, 0.027069091796875, 0.0239105224609375, -0.0148773193359375, 0.0006542205810546875, 0.0023975372314453125, 0.04608154296875, 0.0224761962890625, 0.004863739013671875, 0.00806427001953125, 0.0462646484375, 0.0260009765625, 0.01611328125, 0.0128021240234375, -0.045257568359375, 0.053131103515625, 0.00458526611328125, -0.01568603515625, 0.0144500732421875, -0.0015096664428710938, 0.0204925537109375, 0.009613037109375, -0.035614013671875, 0.002811431884765625, -0.00907135009765625, -0.0028057098388671875, -0.005718231201171875, 0.0236663818359375, 0.023590087890625, 0.0225372314453125, -0.0082244873046875, -0.0183868408203125, 0.04205322265625, -0.007610321044921875, -0.02532958984375, 0.04779052734375, 0.0239410400390625, -0.003299713134765625, -0.030487060546875, 0.069091796875, 0.08221435546875, -0.0118865966796875, -0.035308837890625, 0.0284881591796875, -0.0115966796875, 0.03948974609375, 0.0240020751953125, -0.0022735595703125, 0.0212860107421875, -0.0160369873046875, -0.01029205322265625, -0.03131103515625, -0.0254974365234375, 0.01258087158203125, 0.06005859375, 0.02874755859375, 0.0206451416015625, -0.0154266357421875, -0.0247650146484375, -0.0283050537109375, 0.0628662109375, -0.00823211669921875, -0.0726318359375, -0.048126220703125, -0.0164337158203125, 0.045867919921875, 0.00357818603515625, -0.016815185546875, 0.007007598876953125, -0.032501220703125, 0.0309295654296875, 0.00818634033203125, 0.01317596435546875, -0.0106353759765625, -0.018218994140625, -0.0204010009765625, -0.0178070068359375, -0.01190948486328125, 0.0105133056640625, -0.001567840576171875, -0.03704833984375, -0.013214111328125, 0.05841064453125, -0.034423828125, -0.0150146484375, -0.018798828125, 0.0190582275390625, -0.017242431640625, -0.0057525634765625, 0.0875244140625, 0.02960205078125, -0.038787841796875, -0.0210418701171875, -0.04815673828125, -0.000675201416015625, 0.029876708984375, -0.01468658447265625, -0.00396728515625, -0.0208740234375, 0.0308990478515625, 0.0228424072265625, 0.0075225830078125, -0.037933349609375, -0.038238525390625, 0.00855255126953125, 0.0372314453125, 0.0255584716796875, -0.004116058349609375, 0.052276611328125, -0.03765869140625, 0.038238525390625, -0.01519012451171875, 0.01702880859375, 0.00820159912109375, -0.01727294921875, -0.01276397705078125, -0.0285491943359375, 0.009124755859375, -0.0113525390625, 0.0172119140625, 0.038360595703125, 0.049224853515625, 0.01229095458984375, -0.0254974365234375, 0.0275726318359375, -0.0008339881896972656, -0.03369140625, 0.007965087890625, 0.0516357421875, 0.0098114013671875, -0.0003693103790283203, 0.0042266845703125, 0.03814697265625, -0.005390167236328125, 0.007167816162109375, -0.01088714599609375, -0.012939453125, 0.013580322265625, 0.00145721435546875, -0.038543701171875, 0.01690673828125, 0.0540771484375, 0.00876617431640625, 0.055572509765625, 0.01593017578125, 0.025054931640625, 0.06842041015625, 0.039764404296875, -0.048248291015625, -0.0102691650390625, 0.051116943359375, 0.00653076171875, -0.0421142578125, 0.029632568359375, -0.0322265625, 0.0036106109619140625, 0.08001708984375, 0.05328369140625, -0.11737060546875, 0.00809478759765625, 0.0223388671875, 0.018463134765625, 0.032440185546875, -0.024993896484375, 0.0084381103515625, 0.030517578125, -0.01097869873046875, 0.0027599334716796875, -0.04150390625, -0.00701141357421875, 0.024993896484375, 0.00012302398681640625, -0.00762176513671875, 0.0036220550537109375, -0.0181121826171875, -0.0728759765625, -0.0111236572265625, 0.036590576171875, -0.0233001708984375, -0.032958984375, 0.0178070068359375, 0.03961181640625, 0.0016050338745117188, -0.05938720703125, 0.0516357421875, 0.00208282470703125, -0.00910186767578125, 0.0151824951171875, -0.0154876708984375, 0.020538330078125, 0.02349853515625, -0.01424407958984375, 0.0118255615234375, -0.014068603515625, 0.00876617431640625, -0.00934600830078125, -0.0355224609375, -0.003116607666015625, -0.032318115234375, -0.060943603515625, 0.01476287841796875, -0.02520751953125, -0.024169921875, -0.0119171142578125, 0.01367950439453125, 0.07611083984375, -0.040252685546875, -0.0216064453125, -0.0051116943359375, 0.017669677734375, 0.0194549560546875, -0.0273895263671875, 0.0171356201171875, -0.059600830078125, -0.0209197998046875, -0.019439697265625, -0.04522705078125, -0.01751708984375, -0.062255859375, 0.0009665489196777344, 0.0989990234375, -0.0168914794921875, -0.01160430908203125, 0.0293426513671875, 0.0511474609375, -0.01125335693359375, 0.052886962890625, -0.028533935546875, 0.07379150390625, 0.0022983551025390625, -0.0065155029296875, -0.01111602783203125, 0.0225830078125, 0.00884246826171875, -0.01702880859375, -0.022216796875, 0.01345062255859375, -0.0355224609375, -0.01071929931640625, -0.023834228515625, 0.0173797607421875, -0.00299072265625, 0.02105712890625, -0.006526947021484375, -0.0176239013671875, 0.048858642578125, -0.0262451171875, 0.0283050537109375, -0.0019044876098632812, -0.0030117034912109375, 0.01178741455078125, 0.0157012939453125, 0.0009598731994628906, 0.00838470458984375, 0.01059722900390625, -0.071533203125, 0.03125, 0.047637939453125, 0.00569915771484375, -0.01506805419921875, 0.01090240478515625, -0.01611328125, -0.00537109375, 0.05963134765625, -0.0335693359375, 0.029693603515625, -0.0308837890625, 0.007076263427734375, 0.01509857177734375, 0.01461029052734375, 0.0404052734375, -0.01739501953125, -0.0113067626953125, 0.0124359130859375, 0.0029850006103515625, 0.06494140625, 0.050994873046875, 0.024993896484375, -0.0232086181640625, -0.04095458984375, 0.050262451171875, 0.08807373046875, -0.036865234375, -0.018341064453125, -0.0020313262939453125, 0.02783203125, 0.0382080078125, -0.006900787353515625, 0.07293701171875, -0.022430419921875, -0.007457733154296875, -0.04974365234375, 0.00016677379608154297, 0.0269317626953125, 0.01763916015625, -0.008392333984375, -0.0177459716796875, -0.0160064697265625, -0.0164031982421875, -0.034820556640625, -0.01207733154296875, 0.0167694091796875, 0.049041748046875, 0.02392578125, 0.0361328125, 0.0046234130859375, -0.027099609375, -0.0116729736328125, 0.046905517578125, 0.0004987716674804688, 0.0121612548828125, -0.062469482421875, -0.0767822265625, 0.04205322265625, 0.052825927734375, 0.0306243896484375, 0.0552978515625, 0.0284881591796875, 0.01277923583984375, 0.0367431640625, 0.01183319091796875, 0.0208740234375, -0.0193939208984375, 0.015106201171875, -0.040924072265625, -0.01270294189453125, -0.042449951171875, -0.01282501220703125, 0.002475738525390625, -0.010650634765625, -0.01367950439453125, -0.03961181640625, 0.06915283203125, -0.0248260498046875, -0.03125, 0.0144195556640625, -0.037384033203125, 0.12371826171875, -0.0237579345703125, -0.0477294921875, -0.0274658203125, 0.01751708984375, -0.040069580078125, 0.013916015625, 0.0350341796875, -0.01441192626953125, 0.0131378173828125, -0.047454833984375, -0.04534912109375, 0.06280517578125, -0.018402099609375, -0.01275634765625, 0.01221466064453125, -0.0204925537109375, -0.04742431640625, 0.006744384765625, 0.0303802490234375, 0.040679931640625, -0.0221405029296875, -0.018951416015625, 0.05572509765625, -0.009918212890625, -0.0157012939453125, -0.0183563232421875, 0.0170440673828125, -0.034759521484375, -0.01499176025390625, -0.004940032958984375, -0.019317626953125, -0.003673553466796875, 0.004241943359375, -0.09039306640625, 0.024139404296875, 0.00498199462890625, 0.0080718994140625, 0.0653076171875, -0.02911376953125, -0.0011835098266601562, -0.01311492919921875, -0.00934600830078125, -0.045013427734375, -0.059417724609375, -0.0633544921875, 0.0028533935546875, 0.01010894775390625, 0.0164947509765625, -0.0037746429443359375, 0.022216796875, -0.0284271240234375, -0.059539794921875, 0.03741455078125, -0.08953857421875, 0.060546875, 0.039794921875, -0.017486572265625, -0.055511474609375, -0.0106048583984375, -0.0020160675048828125, -0.02435302734375, 0.0020008087158203125, 0.01371002197265625, 0.0062255859375, -0.0242462158203125, -0.0758056640625, -0.0040740966796875, -0.01611328125, -0.0270843505859375, 0.0203704833984375, -0.0004246234893798828, -0.03558349609375, -0.022674560546875, -0.0167388916015625, -0.0120849609375, 0.00669097900390625, -0.00942230224609375, 0.026611328125, 0.02105712890625, -0.0188446044921875, -0.05780029296875, 0.0186004638671875, -0.017242431640625, -0.03857421875, -0.0017309188842773438, -0.019500732421875, -0.042236328125, 0.0665283203125, -0.060546875, 0.03143310546875, -0.01898193359375, 0.0247955322265625, -0.031494140625, -0.0163116455078125, -0.039031982421875, 0.0243682861328125, -0.03857421875, -0.0216064453125, 0.042144775390625, -0.005443572998046875, -0.0704345703125, -0.068603515625, -0.034332275390625, -0.019866943359375, -0.00376129150390625, -0.00959014892578125, -0.016326904296875, 0.026763916015625, -0.014862060546875, -0.0288848876953125, 0.0149078369140625, -0.0110015869140625, -0.025909423828125, -0.046539306640625, 0.0160369873046875, 0.0027751922607421875, -0.032318115234375, -0.0531005859375, 0.016357421875, -0.00801849365234375, -0.0255584716796875, 0.00037670135498046875, 0.0238037109375, 0.02484130859375, -0.036041259765625, -0.007129669189453125, -0.0273284912109375, -0.0296478271484375, -0.032958984375, 0.026947021484375, 0.026580810546875, 0.01227569580078125, 0.0023097991943359375, -0.02032470703125, 0.0288543701171875, 0.0239410400390625, 0.0242767333984375, -0.0283660888671875, 0.0017538070678710938, 0.03973388671875, 0.03466796875, 0.01061248779296875, 0.02752685546875, 0.04266357421875, -0.0172882080078125, 0.0131683349609375, -0.01898193359375, 0.026824951171875, -0.00974273681640625, -0.02545166015625, -0.0250396728515625, -0.016387939453125, 0.00836181640625, -0.047821044921875, -0.0236053466796875, 0.0479736328125, -0.01074981689453125, -0.0090789794921875, -0.0543212890625, -0.01000213623046875, -0.00975799560546875, 0.005626678466796875, -0.003963470458984375, 0.0020923614501953125, -0.006587982177734375, -0.01143646240234375, 0.0254974365234375, -0.00371551513671875, 0.00921630859375, -0.0004589557647705078, 0.047271728515625, -0.02685546875, -0.0018463134765625, 0.01153564453125, 0.00811004638671875, 0.0038242340087890625, 0.01447296142578125, 0.0305023193359375, 0.0584716796875, -0.052459716796875, -0.04852294921875, 0.017578125, 0.045257568359375, -0.010833740234375, -0.028472900390625, 0.006011962890625, 0.02386474609375, -0.0291290283203125, 0.026947021484375, 0.0513916015625, 0.008026123046875, -0.00618743896484375, 0.00945281982421875, -0.024261474609375, 0.03533935546875, -0.0304107666015625, 0.03265380859375, 0.006908416748046875, 0.01305389404296875, 0.051513671875, -0.01526641845703125, 0.032501220703125, 0.040435791015625, 0.036529541015625, 0.0435791015625, 0.006061553955078125, -0.01099395751953125, 0.01166534423828125, -0.01788330078125 ]
406fa5ca82727f2343ecbafc441aedd723dceee5
Wordpress Stackexchange Q: How do I add to the list table a filter? I am trying to find the hook for adding a filter to the list under "Posts [Add New]": A: You can use views_edit-post hook to do so. It is a possible variation of views_{$this->screen->id} and resides in class-wp-list-table.php. add_filter('views_edit-post', 'my_post_views' ); function my_post_views( $views ){ $views['html_class_name_for_li'] = 'the html'; // ex: <a href="#">something (11)</a> return $views; }
Q: How do I add to the list table a filter? I am trying to find the hook for adding a filter to the list under "Posts [Add New]": A: You can use views_edit-post hook to do so. It is a possible variation of views_{$this->screen->id} and resides in class-wp-list-table.php. add_filter('views_edit-post', 'my_post_views' ); function my_post_views( $views ){ $views['html_class_name_for_li'] = 'the html'; // ex: <a href="#">something (11)</a> return $views; }
wordpress
{ "language": "en", "length": 68, "provenance": "stackexchange_00019.jsonl.gz:442165", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134103" }
[ 0.07696533203125, 0.00934600830078125, 0.0157318115234375, -0.02252197265625, 0.035369873046875, -0.035308837890625, 0.07257080078125, -0.0254058837890625, 0.01800537109375, -0.0033588409423828125, -0.035797119140625, 0.0138092041015625, -0.04010009765625, -0.02227783203125, -0.0103302001953125, -0.040069580078125, 0.0390625, -0.05902099609375, 0.0281219482421875, -0.011688232421875, 0.00919342041015625, 0.0094451904296875, 0.0694580078125, 0.016448974609375, -0.004100799560546875, 0.043701171875, 0.050018310546875, -0.032958984375, 0.031951904296875, 0.00667572021484375, 0.006793975830078125, -0.050384521484375, 0.0078582763671875, 0.0002892017364501953, 0.0164337158203125, 0.0159454345703125, 0.0077667236328125, 0.00044155120849609375, 0.01364898681640625, 0.0108184814453125, 0.0305633544921875, -0.01441192626953125, -0.017333984375, 0.045928955078125, -0.03521728515625, -0.040985107421875, 0.043731689453125, -0.00262451171875, 0.0106048583984375, -0.0338134765625, 0.01448822021484375, 0.0306854248046875, 0.03472900390625, -0.03900146484375, -0.003582000732421875, 0.0297698974609375, 0.003147125244140625, 0.01094818115234375, 0.01030731201171875, 0.003978729248046875, -0.0228424072265625, 0.0237579345703125, 0.01325225830078125, -0.0024547576904296875, -0.0020618438720703125, 0.0021114349365234375, 0.040191650390625, 0.004581451416015625, -0.029693603515625, -0.004146575927734375, 0.02154541015625, -0.0198516845703125, -0.0212860107421875, -0.0310516357421875, 0.0126495361328125, -0.018096923828125, 0.04388427734375, -0.01445770263671875, -0.0289459228515625, 0.04052734375, -0.0240936279296875, -0.039306640625, -0.006282806396484375, -0.0186920166015625, -0.0287933349609375, -0.0034503936767578125, -0.0238037109375, 0.0186004638671875, -0.01824951171875, 0.00205230712890625, -0.0139007568359375, -0.01212310791015625, -0.0215911865234375, 0.0201873779296875, 0.001667022705078125, -0.0126190185546875, 0.031097412109375, 0.0538330078125, 0.00958251953125, 0.02484130859375, 0.0207977294921875, -0.0718994140625, 0.072998046875, -0.059234619140625, 0.005420684814453125, 0.041839599609375, 0.0027256011962890625, 0.039031982421875, 0.0311737060546875, 0.03277587890625, 0.00702667236328125, -0.004253387451171875, 0.01953125, 0.0164794921875, -0.021270751953125, -0.045440673828125, -0.040435791015625, 0.016693115234375, -0.02178955078125, -0.006900787353515625, -0.0222930908203125, -0.003986358642578125, -0.0270233154296875, 0.0201263427734375, 0.0260772705078125, 0.00104522705078125, -0.00659942626953125, 0.0098724365234375, 0.0226287841796875, -0.027252197265625, -0.0223388671875, 0.04254150390625, 0.038665771484375, 0.0103759765625, -0.018463134765625, 0.00286865234375, 0.01224517822265625, -0.035980224609375, -0.031890869140625, 0.016265869140625, -0.00969696044921875, -0.0213775634765625, -0.01155853271484375, -0.03924560546875, 0.04638671875, 0.01220703125, 0.0115509033203125, 0.0206756591796875, 0.032562255859375, -0.0032787322998046875, 0.01947021484375, -0.022308349609375, 0.0091552734375, 0.030609130859375, 0.004520416259765625, -0.00876617431640625, 0.007732391357421875, -0.024993896484375, 0.01169586181640625, -0.02001953125, 0.0054931640625, -0.00007253885269165039, 0.0087738037109375, -0.0753173828125, -0.07684326171875, 0.0031261444091796875, -0.0535888671875, -0.004390716552734375, 0.01263427734375, -0.00949859619140625, -0.01377105712890625, -0.0261077880859375, 0.01206207275390625, -0.020294189453125, -0.0203094482421875, 0.0201416015625, -0.006679534912109375, 0.0004603862762451172, 0.0294647216796875, 0.0220184326171875, 0.0008978843688964844, -0.0272979736328125, 0.0128326416015625, 0.017547607421875, -0.04827880859375, 0.056182861328125, 0.01068878173828125, 0.0806884765625, -0.0008692741394042969, 0.0127410888671875, 0.0372314453125, 0.01560211181640625, -0.015777587890625, 0.00004392862319946289, 0.004756927490234375, -0.052276611328125, -0.007274627685546875, -0.0301666259765625, -0.0017375946044921875, 0.0341796875, 0.0187225341796875, 0.00750732421875, 0.0212249755859375, -0.02520751953125, -0.043426513671875, 0.01158905029296875, -0.02728271484375, 0.049224853515625, 0.01080322265625, -0.00772857666015625, -0.007282257080078125, -0.041656494140625, 0.0116729736328125, -0.01605224609375, -0.033203125, 0.036529541015625, -0.0347900390625, -0.00714111328125, 0.0106964111328125, -0.0204925537109375, 0.00397491455078125, 0.0226287841796875, -0.0025119781494140625, -0.01776123046875, 0.034698486328125, -0.03961181640625, -0.0191497802734375, -0.042938232421875, -0.028106689453125, -0.00330352783203125, -0.0548095703125, 0.072265625, 0.02923583984375, 0.034942626953125, -0.0263519287109375, -0.0016679763793945312, -0.025146484375, -0.040374755859375, -0.0101318359375, 0.05108642578125, 0.03228759765625, 0.0782470703125, 0.0269775390625, 0.01294708251953125, 0.08001708984375, -0.0023326873779296875, 0.035308837890625, -0.0279541015625, -0.014495849609375, 0.046722412109375, 0.01126861572265625, 0.036865234375, 0.0133056640625, -0.013427734375, 0.01262664794921875, 0.01959228515625, 0.0041046142578125, 0.05987548828125, -0.0036716461181640625, -0.036773681640625, -0.0014896392822265625, -0.02880859375, -0.0247039794921875, -0.0117340087890625, 0.036224365234375, 0.0050506591796875, 0.0435791015625, 0.029510498046875, -0.0287933349609375, -0.005702972412109375, 0.01459503173828125, 0.00307464599609375, 0.006557464599609375, 0.007015228271484375, -0.059783935546875, 0.0256195068359375, -0.016143798828125, 0.01119232177734375, 0.0175018310546875, -0.00783538818359375, -0.0160064697265625, 0.010162353515625, 0.01387786865234375, -0.0109100341796875, 0.0097503662109375, -0.0540771484375, 0.02471923828125, -0.02337646484375, -0.01230621337890625, -0.00923919677734375, 0.01068115234375, 0.0176849365234375, -0.01055145263671875, 0.004695892333984375, 0.0185089111328125, -0.0208740234375, 0.0254364013671875, -0.025421142578125, 0.032684326171875, -0.046539306640625, 0.014984130859375, 0.037567138671875, -0.03485107421875, 0.008453369140625, 0.0185394287109375, -0.006046295166015625, 0.026123046875, 0.0114898681640625, 0.0027294158935546875, -0.013702392578125, -0.024871826171875, 0.028045654296875, 0.01324462890625, 0.02093505859375, -0.0132598876953125, -0.026214599609375, -0.020904541015625, -0.001743316650390625, -0.0263519287109375, -0.0114593505859375, -0.0098724365234375, -0.048309326171875, -0.0305633544921875, -0.0111846923828125, -0.041778564453125, 0.01555633544921875, 0.00849151611328125, -0.00763702392578125, -0.0225067138671875, 0.0016031265258789062, -0.007373809814453125, -0.01102447509765625, -0.033233642578125, 0.04571533203125, 0.00806427001953125, 0.022796630859375, 0.00437164306640625, 0.08184814453125, 0.00826263427734375, -0.045745849609375, 0.0014324188232421875, -0.033233642578125, -0.025909423828125, 0.013916015625, -0.0102386474609375, -0.01102447509765625, -0.00582122802734375, -0.00038695335388183594, 0.0035724639892578125, 0.032623291015625, -0.0260467529296875, 0.001873016357421875, -0.047027587890625, 0.0181732177734375, -0.018280029296875, -0.0081329345703125, 0.05035400390625, -0.001216888427734375, -0.0036449432373046875, -0.045501708984375, 0.01084136962890625, 0.004085540771484375, 0.002117156982421875, -0.04766845703125, -0.0623779296875, 0.010955810546875, -0.01287841796875, 0.050994873046875, -0.001850128173828125, -0.01544952392578125, 0.041290283203125, -0.01001739501953125, -0.0158538818359375, -0.00934600830078125, -0.01541900634765625, -0.01568603515625, -0.006786346435546875, -0.014068603515625, 0.00818634033203125, -0.0071563720703125, 0.032806396484375, 0.00037789344787597656, 0.0133819580078125, -0.041107177734375, -0.039215087890625, 0.04833984375, 0.0419921875, 0.04443359375, -0.01168060302734375, -0.047454833984375, 0.01214599609375, 0.098388671875, -0.060577392578125, -0.038787841796875, -0.0269927978515625, 0.0126953125, 0.0117340087890625, -0.0472412109375, 0.032379150390625, -0.03271484375, -0.07989501953125, -0.0008344650268554688, -0.0134124755859375, -0.01763916015625, -0.0204315185546875, 0.01812744140625, -0.047760009765625, -0.031036376953125, 0.059967041015625, -0.07122802734375, -0.00008988380432128906, 0.05279541015625, -0.03326416015625, 0.01708984375, -0.052154541015625, -0.01334381103515625, -0.036529541015625, 0.00206756591796875, -0.037872314453125, 0.004207611083984375, 0.025787353515625, -0.011688232421875, -0.006809234619140625, 0.004436492919921875, 0.016876220703125, 0.018951416015625, 0.00792694091796875, 0.01490020751953125, -0.00041413307189941406, -0.04522705078125, 0.0075225830078125, -0.061370849609375, -0.005519866943359375, -0.06329345703125, -0.04888916015625, -0.01068878173828125, -0.026702880859375, 0.058135986328125, -0.031707763671875, -0.0005054473876953125, -0.0560302734375, -0.060150146484375, -0.01215362548828125, 0.0081634521484375, -0.025909423828125, 0.02935791015625, -0.05413818359375, -0.060577392578125, 0.035369873046875, -0.006694793701171875, -0.0128631591796875, 0.00746917724609375, 0.091552734375, 0.0206146240234375, -0.0145111083984375, -0.060272216796875, 0.03521728515625, 0.05364990234375, -0.03338623046875, 0.0687255859375, 0.054412841796875, -0.0027713775634765625, 0.033233642578125, 0.0122833251953125, 0.0007843971252441406, -0.0304412841796875, 0.0418701171875, 0.0292205810546875, 0.03900146484375, -0.025054931640625, 0.017059326171875, 0.033111572265625, -0.00689697265625, -0.021209716796875, 0.01415252685546875, 0.049774169921875, 0.019866943359375, -0.0273284912109375, 0.01227569580078125, -0.01230621337890625, -0.029632568359375, 0.006542205810546875, -0.04913330078125, 0.05975341796875, 0.0296478271484375, 0.0013599395751953125, 0.014068603515625, -0.00653839111328125, 0.0070037841796875, -0.0145111083984375, 0.0169830322265625, -0.0169525146484375, 0.038177490234375, -0.01027679443359375, -0.0004296302795410156, -0.027191162109375, -0.007480621337890625, 0.0248260498046875, 0.0016574859619140625, -0.054534912109375, 0.043548583984375, -0.010955810546875, -0.0035076141357421875, 0.0251312255859375, 0.0187225341796875, -0.0172576904296875, 0.01128387451171875, -0.007160186767578125, 0.003482818603515625, 0.0261688232421875, -0.0028667449951171875, -0.01824951171875, 0.005706787109375, -0.008453369140625, -0.005199432373046875, 0.0242767333984375, 0.01212310791015625, -0.0110626220703125, 0.020050048828125, -0.01934814453125, 0.0450439453125, 0.041595458984375, 0.007495880126953125, 0.0192108154296875, 0.0076751708984375, -0.01457977294921875, 0.0127105712890625, -0.012237548828125, -0.041046142578125, -0.01438140869140625, 0.00879669189453125, 0.015899658203125, -0.0060577392578125, -0.01120758056640625, 0.032806396484375, -0.009979248046875, -0.0265655517578125, 0.01195526123046875, 0.016876220703125, -0.039337158203125, -0.02215576171875, -0.0024013519287109375, 0.008758544921875, 0.01105499267578125, 0.0116424560546875, -0.0270843505859375, -0.01363372802734375, 0.014007568359375, -0.0251007080078125, 0.02288818359375, -0.0307769775390625, -0.03887939453125, -0.0297088623046875, 0.00827789306640625, 0.015716552734375, -0.056854248046875, -0.054962158203125, -0.004474639892578125, -0.0037403106689453125, 0.059844970703125, 0.006130218505859375, 0.06011962890625, -0.01020050048828125, -0.056396484375, 0.041778564453125, -0.00469970703125, 0.055328369140625, 0.0078125, -0.04412841796875, -0.00818634033203125, -0.042572021484375, -0.01043701171875, -0.02325439453125, -0.00836181640625, -0.035247802734375, 0.01087188720703125, -0.005138397216796875, 0.01523590087890625, -0.01235198974609375, -0.04010009765625, -0.0251922607421875, -0.0197906494140625, 0.015777587890625, -0.04510498046875, 0.0017833709716796875, 0.08099365234375, -0.0296630859375, 0.05511474609375, 0.0162200927734375, 0.0238800048828125, -0.03875732421875, -0.005458831787109375, 0.01055145263671875, -0.04779052734375, -0.0343017578125, 0.01143646240234375, -0.07196044921875, 0.023468017578125, 0.06097412109375, -0.0117034912109375, 0.01702880859375, -0.0384521484375, -0.00545501708984375, -0.016387939453125, 0.02386474609375, -0.047698974609375, -0.0195465087890625, 0.0645751953125, 0.01116180419921875, 0.020782470703125, -0.040130615234375, 0.0220184326171875, -0.0225677490234375, -0.0136871337890625, -0.0115966796875, -0.01094818115234375, -0.05572509765625, 0.0692138671875, 0.06781005859375, 0.011383056640625, 0.038970947265625, 0.01479339599609375, 0.0142669677734375, 0.0044403076171875, 0.00007468461990356445, -0.0036716461181640625, -0.0016431808471679688, 0.0543212890625, 0.007259368896484375, -0.0218048095703125, 0.041412353515625, -0.042449951171875, -0.00659942626953125, 0.045928955078125, 0.0350341796875, -0.0731201171875, 0.00856781005859375, 0.0041351318359375, -0.0026302337646484375, 0.01025390625, 0.01032257080078125, -0.0012569427490234375, -0.0012807846069335938, 0.03753662109375, -0.0255126953125, -0.01215362548828125, 0.023406982421875, -0.01422119140625, 0.0167694091796875, -0.0299072265625, 0.03369140625, -0.00911712646484375, 0.026123046875, -0.0494384765625, -0.004207611083984375, -0.0180206298828125, -0.00937652587890625, 0.0264129638671875, 0.001983642578125, -0.0215301513671875, -0.06732177734375, -0.0031986236572265625, 0.00634765625, -0.030029296875, 0.056671142578125, -0.0233306884765625, -0.017578125, 0.0228118896484375, -0.026397705078125, 0.040771484375, -0.0078887939453125, -0.05426025390625, 0.0131072998046875, 0.00807952880859375, -0.01383209228515625, 0.01220703125, -0.0063323974609375, 0.0036716461181640625, -0.0232696533203125, 0.00966644287109375, -0.000598907470703125, -0.07806396484375, 0.0494384765625, -0.032501220703125, -0.0170440673828125, 0.00908660888671875, -0.0380859375, 0.007480621337890625, 0.04254150390625, 0.002254486083984375, -0.0162506103515625, -0.030303955078125, 0.012451171875, -0.07794189453125, -0.006824493408203125, 0.026458740234375, -0.061767578125, 0.07025146484375, -0.0015783309936523438, 0.0116119384765625, 0.0060577392578125, 0.032257080078125, -0.047149658203125, -0.01097869873046875, -0.035797119140625, 0.0164794921875, 0.0117645263671875, 0.0545654296875, -0.040985107421875, -0.0159912109375, 0.010894775390625, 0.061767578125, 0.03961181640625, 0.0022373199462890625, -0.025146484375, -0.0295562744140625, 0.0165557861328125, 0.042022705078125, 0.0192718505859375, 0.026458740234375, -0.017578125, 0.055511474609375, 0.0322265625, -0.0284576416015625, 0.031036376953125, 0.005245208740234375, -0.045654296875, 0.00400543212890625, -0.021759033203125, -0.0240020751953125, 0.022857666015625, -0.0011930465698242188, -0.003292083740234375, -0.0002675056457519531, -0.02392578125, -0.0118560791015625, 0.0240325927734375, 0.01027679443359375, -0.00489044189453125, -0.0171051025390625, -0.039093017578125, -0.0014524459838867188, 0.0160675048828125, 0.010406494140625, 0.00876617431640625, 0.042877197265625, 0.0209503173828125, 0.0207977294921875, 0.0273284912109375, 0.015625, 0.030731201171875, 0.0035457611083984375, 0.04852294921875, 0.022552490234375, 0.0247802734375, -0.03076171875, 0.015625, 0.0240631103515625, 0.0548095703125, -0.041290283203125, -0.005168914794921875, 0.0139617919921875, 0.0078277587890625, -0.01861572265625, -0.0159912109375, 0.00274658203125, 0.0087127685546875, 0.041015625, -0.05999755859375, -0.0101776123046875, 0.016357421875, 0.0227203369140625, -0.01470184326171875, -0.020233154296875, -0.007076263427734375, -0.01654052734375, -0.03729248046875, 0.0081939697265625, 0.01387786865234375, 0.046875, 0.007740020751953125, 0.036102294921875, -0.0194549560546875, -0.0084381103515625, -0.036590576171875, 0.0081634521484375, 0.0214385986328125, 0.047515869140625, -0.058258056640625, -0.010711669921875, 0.0253143310546875, 0.047607421875, -0.008514404296875, 0.0294952392578125, 0.040679931640625, 0.0194549560546875, -0.05517578125, -0.01187896728515625, 0.0183258056640625, -0.0487060546875, -0.0124053955078125, -0.035430908203125, 0.0261383056640625, 0.0487060546875, -0.0009012222290039062, 0.0273590087890625, -0.01177978515625, 0.08575439453125, -0.048248291015625, 0.017608642578125, -0.0158233642578125, -0.0526123046875, 0.035797119140625, -0.00445556640625, 0.09478759765625, -0.0205230712890625, -0.097412109375, 0.0095672607421875, -0.0338134765625, -0.10845947265625, 0.04058837890625, 0.052215576171875, -0.04144287109375, -0.006565093994140625, 0.041717529296875, -0.0128631591796875, -0.0105133056640625, 0.0175323486328125, 0.01210784912109375, 0.0006022453308105469, 0.04022216796875, 0.0032711029052734375, -0.0275115966796875, 0.0070953369140625, -0.0253448486328125, 0.0202789306640625, 0.02288818359375, 0.05401611328125, -0.01561737060546875, 0.0294952392578125, -0.021148681640625, 0.0240936279296875, -0.03509521484375, -0.0189666748046875, 0.054046630859375, -0.0044708251953125, -0.0161590576171875, -0.015045166015625, -0.0170745849609375, -0.01279449462890625, 0.047088623046875, -0.0204620361328125, -0.021453857421875, -0.031158447265625, 0.032867431640625, -0.0184173583984375, 0.05010986328125, -0.00531005859375, 0.01898193359375, 0.0059661865234375, -0.0335693359375, 0.051300048828125, 0.02960205078125, 0.0460205078125, 0.02752685546875, 0.0129241943359375, 0.019012451171875, 0.0016889572143554688, 0.0098724365234375, 0.0028209686279296875, 0.034088134765625, -0.06097412109375, 0.009735107421875, 0.0229339599609375, -0.0021076202392578125, -0.0034618377685546875, 0.0286712646484375, -0.0157470703125, 0.0233917236328125, -0.0406494140625, -0.0011653900146484375, 0.004528045654296875, 0.04095458984375, -0.00977325439453125, 0.003082275390625, -0.00891876220703125, -0.00331878662109375, -0.024169921875, 0.05902099609375, -0.0350341796875, -0.016204833984375, -0.0270233154296875, -0.015716552734375, -0.0096588134765625, -0.078857421875, -0.085693359375, 0.019622802734375, 0.0311279296875, 0.00789642333984375, -0.08380126953125, 0.039825439453125, -0.0128021240234375, 0.06658935546875, -0.00489044189453125, 0.00962066650390625, 0.00966644287109375, 0.0301971435546875, -0.0509033203125, -0.005401611328125, -0.004207611083984375, 0.001110076904296875, -0.005428314208984375, 0.0158538818359375, 0.03173828125, -0.0238800048828125, -0.000545501708984375, 0.02947998046875, 0.0050811767578125, 0.0716552734375, -0.009765625, -0.035369873046875, 0.01371002197265625, 0.00554656982421875, 0.0081329345703125, -0.06402587890625, -0.0072174072265625, -0.060302734375, 0.0159759521484375, 0.0151214599609375, -0.0123443603515625, 0.016998291015625, -0.043304443359375, -0.1278076171875, 0.0814208984375, -0.030609130859375, -0.04541015625, -0.0309906005859375, -0.02349853515625, -0.012725830078125, 0.00939178466796875, -0.001773834228515625, -0.062164306640625, -0.0299835205078125, 0.036712646484375, 0.0013380050659179688, 0.047088623046875, 0.0238494873046875, -0.0021190643310546875, -0.04779052734375, -0.0174560546875, -0.041595458984375, 0.002231597900390625, 0.005367279052734375, -0.028076171875, 0.0204010009765625, 0.02215576171875, -0.042449951171875, -0.024200439453125, -0.006153106689453125, 0.005290985107421875, 0.009979248046875, -0.060546875, -0.062164306640625, -0.056854248046875, 0.09307861328125, 0.0178680419921875, 0.0311431884765625, 0.0025463104248046875, 0.0179290771484375, -0.042572021484375, -0.04266357421875, 0.0075225830078125, 0.0142974853515625, -0.0198974609375, 0.0120391845703125, 0.0247344970703125, 0.015289306640625, -0.004459381103515625, -0.006500244140625, -0.00946044921875, -0.043975830078125, -0.028839111328125, 0.0006122589111328125, -0.06365966796875, 0.022918701171875, 0.046661376953125, -0.04425048828125, -0.023712158203125, 0.0002338886260986328, 0.00036406517028808594, -0.00867462158203125, -0.039520263671875, -0.038482666015625, -0.0841064453125, 0.04400634765625, 0.033050537109375, -0.00940704345703125, 0.040283203125, -0.004726409912109375, -0.0099029541015625, -0.025421142578125, 0.0147247314453125, -0.0006084442138671875, 0.0048370361328125, -0.0034046173095703125, 0.014007568359375, -0.016265869140625, 0.09197998046875, -0.0224761962890625, 0.0423583984375, -0.0233612060546875, 0.043212890625, 0.01161956787109375, -0.004512786865234375, 0.052398681640625, -0.00904083251953125, -0.01201629638671875, 0.00955963134765625, -0.061737060546875, -0.0291748046875, -0.00485992431640625, -0.029327392578125, -0.0224609375, 0.01250457763671875 ]
61a1fe9ff3e5d942af3539b89ddc23b31ecb54b4
Wordpress Stackexchange Q: Preferred way to include Advanced Custom Fields in a plugin? So I am building a plugin for a site that is already using Advanced Custom Fields (ACF). I wonder what would be the best way to include ACF in my plugin? The site is already using ACF, so is it possible to include ACF from the plugin directory or should I include ACF again? A: If ACF (or any other plugin) is active on the site you do not need to include its files as they are all being included in the wordpress initialization process. The only tricky part is that you don't know the order in which files are included and yours might be included before the ACF files are included, therefor you should probably wait for the init action or even later action before using it. Side note: ACF provides GUI for custom fields, but if you just need to use the data it is better not to rely on its API and query using the get_post_meta API. This will result in better software modularization and hopefully a more maintainable site.
Q: Preferred way to include Advanced Custom Fields in a plugin? So I am building a plugin for a site that is already using Advanced Custom Fields (ACF). I wonder what would be the best way to include ACF in my plugin? The site is already using ACF, so is it possible to include ACF from the plugin directory or should I include ACF again? A: If ACF (or any other plugin) is active on the site you do not need to include its files as they are all being included in the wordpress initialization process. The only tricky part is that you don't know the order in which files are included and yours might be included before the ACF files are included, therefor you should probably wait for the init action or even later action before using it. Side note: ACF provides GUI for custom fields, but if you just need to use the data it is better not to rely on its API and query using the get_post_meta API. This will result in better software modularization and hopefully a more maintainable site. A: This information has been updated! Please see ACF's website: https://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/ Well you would just check by if ACF class exists if( !class_exists('acf') ) to check if a user has ACF installed already and if not then, fall-back on your version of ACF you would included along with your plugin or theme, setting ACF_LITE to "not" show ACF menu to the user... But if a user decides to install ACF themselves, it will override your version included with you plugin or theme as expected :). // Optionally you can use below to check by plugin location: // if((is_plugin_active('advanced-custom-fields/acf.php'))|| (is_plugin_active('advanced-custom-fields-pro/acf.php'))): // Check if ACF Classes exists: if(!class_exists('acf_pro') || !class_exists('acf')): // Define path and URL to the ACF plugin. define( 'MY_ACF_PATH', get_stylesheet_directory() . '/includes/acf/' ); define( 'MY_ACF_URL', get_stylesheet_directory_uri() . '/includes/acf/' ); // Include the ACF plugin. include_once( MY_ACF_PATH . 'acf.php' ); // Customize the url setting to fix incorrect asset URLs. add_filter('acf/settings/url', 'my_acf_settings_url'); function my_acf_settings_url( $url ) { return MY_ACF_URL; } // (Optional) Hide the ACF admin menu item. add_filter('acf/settings/show_admin', 'my_acf_settings_show_admin'); function my_acf_settings_show_admin( $show_admin ) { return false; } endif; Also. After you have made your fields and field group with ACF, export them to PHP using ACF's export feature. Then include that exported PHP into you plugin/theme. ACF is so powerful. And I am grateful for Elliott generosity of allowing us to even use PRO into making our plugins! A: Am I doing it wrong, or do others find this clunky: http://www.advancedcustomfields.com/resources/getting-started/including-acf-in-a-plugin-theme/ So in order to include ACF in my plugin and hide ACF from users in the WP admin, I need to: * *Set up a local site with ACF *Export the custom fields to PHP *Import the custom fields PHP into my plugin Or am I missing something?
wordpress
{ "language": "en", "length": 473, "provenance": "stackexchange_00019.jsonl.gz:442206", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134229" }
[ 0.06719970703125, -0.00952911376953125, 0.004238128662109375, -0.06463623046875, 0.0018520355224609375, -0.005481719970703125, -0.0226287841796875, -0.01335906982421875, -0.0171356201171875, 0.0218505859375, -0.00699615478515625, 0.0528564453125, -0.0242919921875, -0.0134124755859375, 0.0188140869140625, -0.0084381103515625, 0.041290283203125, -0.0135345458984375, 0.0272369384765625, -0.006259918212890625, 0.007350921630859375, 0.0208282470703125, 0.0187835693359375, 0.022216796875, 0.027435302734375, -0.06817626953125, 0.062286376953125, 0.005062103271484375, 0.021728515625, 0.00130462646484375, 0.040863037109375, -0.024810791015625, 0.010528564453125, 0.0164031982421875, 0.01255035400390625, -0.01500701904296875, 0.054534912109375, -0.020599365234375, -0.00028705596923828125, 0.06884765625, 0.0244903564453125, 0.006092071533203125, 0.001316070556640625, 0.07708740234375, -0.004512786865234375, -0.050628662109375, 0.01393890380859375, -0.0595703125, 0.004161834716796875, -0.0283966064453125, 0.0163421630859375, -0.027740478515625, 0.0418701171875, -0.01094818115234375, -0.0177001953125, -0.0113525390625, 0.0014715194702148438, 0.0243682861328125, 0.051422119140625, -0.0306396484375, -0.05426025390625, -0.0214996337890625, 0.034271240234375, -0.0301055908203125, 0.030059814453125, -0.01207733154296875, -0.0115203857421875, 0.0203094482421875, -0.045196533203125, 0.022552490234375, 0.049072265625, -0.05328369140625, -0.00713348388671875, 0.006252288818359375, -0.0278167724609375, -0.030548095703125, 0.034912109375, -0.0142822265625, 0.005001068115234375, 0.003551483154296875, -0.05615234375, 0.057525634765625, -0.05902099609375, -0.0457763671875, -0.027130126953125, -0.039154052734375, -0.03814697265625, -0.0014476776123046875, -0.000965118408203125, -0.006317138671875, -0.01175689697265625, 0.00893402099609375, -0.0338134765625, 0.0297088623046875, -0.01454925537109375, -0.003940582275390625, 0.0146942138671875, 0.0089874267578125, 0.0142364501953125, 0.04150390625, 0.0185699462890625, -0.05352783203125, 0.06524658203125, -0.0308990478515625, -0.007965087890625, 0.056060791015625, -0.01522064208984375, -0.0104522705078125, 0.015228271484375, 0.03131103515625, 0.0206298828125, -0.044769287109375, 0.03009033203125, -0.025146484375, -0.0175628662109375, 0.01300811767578125, 0.0177154541015625, 0.0251617431640625, 0.01410675048828125, 0.01611328125, 0.003879547119140625, -0.0024566650390625, 0.004150390625, -0.041961669921875, -0.024688720703125, -0.073486328125, -0.055572509765625, 0.027862548828125, -0.07781982421875, 0.02325439453125, -0.01062774658203125, 0.0076751708984375, 0.0560302734375, 0.058074951171875, 0.003326416015625, -0.01244354248046875, 0.0095367431640625, 0.00005054473876953125, 0.0082855224609375, -0.004352569580078125, 0.004497528076171875, -0.0256195068359375, -0.0187530517578125, -0.00490570068359375, -0.0305023193359375, -0.019775390625, -0.0079345703125, 0.039093017578125, -0.01395416259765625, -0.043060302734375, 0.05377197265625, -0.05731201171875, 0.0291290283203125, 0.004878997802734375, 0.031585693359375, 0.003124237060546875, 0.0290985107421875, -0.0234222412109375, -0.01396942138671875, -0.0013256072998046875, 0.036712646484375, -0.021392822265625, -0.060638427734375, -0.032806396484375, -0.036468505859375, 0.00028705596923828125, -0.0029697418212890625, 0.0166015625, 0.037384033203125, -0.061370849609375, 0.052947998046875, -0.03399658203125, 0.0204620361328125, 0.027008056640625, 0.028228759765625, 0.051910400390625, 0.0035877227783203125, 0.055816650390625, 0.01568603515625, 0.0313720703125, 0.0207366943359375, -0.0279541015625, 0.09893798828125, -0.0294342041015625, -0.037872314453125, 0.0245819091796875, -0.0095062255859375, 0.03900146484375, 0.023193359375, 0.006641387939453125, 0.01678466796875, 0.00852203369140625, -0.0104827880859375, 0.01053619384765625, -0.013519287109375, 0.00033211708068847656, 0.000009655952453613281, 0.01788330078125, -0.0189666748046875, -0.01354217529296875, -0.03369140625, 0.004703521728515625, 0.0027637481689453125, 0.0194244384765625, 0.016876220703125, -0.0025272369384765625, 0.0015888214111328125, 0.0226287841796875, -0.01125335693359375, -0.0012693405151367188, 0.0035877227783203125, 0.0018892288208007812, -0.007537841796875, -0.01218414306640625, -0.01068115234375, 0.0263214111328125, 0.020477294921875, 0.025726318359375, 0.016143798828125, 0.01419830322265625, 0.027923583984375, -0.01280975341796875, 0.007541656494140625, 0.03302001953125, 0.0231170654296875, -0.028411865234375, 0.004791259765625, -0.0248565673828125, 0.0033702850341796875, -0.00652313232421875, -0.0139007568359375, 0.03955078125, -0.0167083740234375, 0.01558685302734375, -0.0168914794921875, -0.007843017578125, -0.029571533203125, -0.053192138671875, 0.0122222900390625, 0.048797607421875, 0.035003662109375, 0.001712799072265625, 0.0006780624389648438, 0.0255126953125, 0.036376953125, -0.0204010009765625, 0.0059356689453125, 0.01465606689453125, -0.00019037723541259766, 0.029296875, -0.0262908935546875, -0.0150604248046875, 0.0335693359375, -0.050018310546875, -0.0228271484375, 0.047271728515625, -0.03802490234375, -0.065185546875, -0.0142822265625, -0.0019311904907226562, 0.024139404296875, -0.072509765625, -0.0533447265625, -0.022125244140625, 0.03875732421875, 0.00786590576171875, 0.03631591796875, 0.04254150390625, -0.008026123046875, 0.0007600784301757812, 0.0093536376953125, 0.020660400390625, -0.009124755859375, 0.019256591796875, -0.01485443115234375, 0.0131378173828125, -0.037811279296875, 0.00022399425506591797, 0.0099945068359375, 0.00240325927734375, -0.0112152099609375, -0.0021572113037109375, -0.0274505615234375, -0.01251220703125, 0.0100250244140625, -0.03045654296875, 0.0283203125, 0.01910400390625, -0.0062713623046875, -0.0200958251953125, 0.0287628173828125, -0.01012420654296875, -0.01093292236328125, -0.0009369850158691406, -0.003726959228515625, -0.040313720703125, -0.028106689453125, -0.049896240234375, 0.038665771484375, -0.044036865234375, 0.0159149169921875, 0.06756591796875, 0.016021728515625, -0.0228271484375, -0.021881103515625, 0.0018968582153320312, -0.0159454345703125, 0.01334381103515625, -0.0153961181640625, -0.06915283203125, -0.0164642333984375, -0.0182037353515625, 0.04205322265625, 0.1209716796875, -0.0228118896484375, -0.060211181640625, 0.023223876953125, 0.059600830078125, -0.049591064453125, -0.08966064453125, 0.0047760009765625, -0.065673828125, -0.00691986083984375, 0.016387939453125, -0.03997802734375, -0.0099639892578125, 0.0457763671875, 0.00910186767578125, -0.03253173828125, -0.0384521484375, -0.0158843994140625, -0.0810546875, -0.059112548828125, -0.04205322265625, 0.00666046142578125, -0.004802703857421875, -0.01519012451171875, 0.0933837890625, 0.00022780895233154297, -0.0304718017578125, -0.01294708251953125, -0.040557861328125, 0.005168914794921875, 0.00839996337890625, 0.036346435546875, -0.046417236328125, 0.045379638671875, 0.0020503997802734375, 0.03436279296875, 0.053985595703125, -0.044403076171875, -0.017181396484375, -0.0264434814453125, 0.020751953125, -0.0174102783203125, 0.036651611328125, 0.042877197265625, -0.005573272705078125, 0.0031337738037109375, -0.0355224609375, 0.04412841796875, 0.018096923828125, 0.0248565673828125, -0.00476837158203125, -0.0435791015625, -0.032684326171875, 0.0080413818359375, 0.007343292236328125, -0.00785064697265625, -0.003509521484375, 0.01494598388671875, -0.0264434814453125, -0.01074981689453125, -0.0033321380615234375, -0.004810333251953125, -0.002803802490234375, 0.03619384765625, -0.01338958740234375, 0.021026611328125, 0.00977325439453125, 0.016693115234375, 0.0036983489990234375, 0.0101470947265625, -0.03106689453125, -0.036895751953125, 0.034759521484375, -0.0364990234375, -0.0018367767333984375, -0.0224456787109375, -0.0009098052978515625, -0.002704620361328125, 0.06683349609375, -0.01395416259765625, -0.01361083984375, -0.02008056640625, 0.004150390625, 0.00608062744140625, -0.02056884765625, -0.005252838134765625, -0.0209197998046875, -0.051116943359375, -0.01380157470703125, -0.0260467529296875, -0.018585205078125, -0.01593017578125, 0.03741455078125, -0.046539306640625, -0.041168212890625, 0.023834228515625, -0.0584716796875, 0.02667236328125, 0.00482177734375, 0.01041412353515625, -0.022247314453125, 0.00653076171875, -0.049102783203125, -0.057525634765625, 0.0003418922424316406, -0.067138671875, 0.041290283203125, 0.0367431640625, -0.0172271728515625, -0.020782470703125, 0.01227569580078125, -0.039031982421875, 0.0204925537109375, -0.000469207763671875, 0.02923583984375, 0.0033359527587890625, 0.023712158203125, 0.00843048095703125, -0.006557464599609375, 0.027435302734375, 0.0169525146484375, -0.0556640625, -0.034332275390625, -0.0269927978515625, -0.054168701171875, 0.0328369140625, -0.06927490234375, -0.0156097412109375, -0.0129547119140625, -0.0677490234375, -0.0199737548828125, -0.032958984375, -0.031402587890625, 0.00408935546875, -0.020416259765625, 0.0254058837890625, 0.015838623046875, -0.00669097900390625, 0.024627685546875, 0.068359375, 0.0110931396484375, -0.0161895751953125, -0.09527587890625, 0.01238250732421875, 0.0276031494140625, -0.0294036865234375, 0.06134033203125, 0.044036865234375, -0.0160980224609375, 0.06732177734375, -0.0011644363403320312, 0.0206146240234375, -0.032745361328125, 0.0268402099609375, -0.0011119842529296875, -0.0171356201171875, 0.00992584228515625, 0.006816864013671875, 0.0241546630859375, 0.02386474609375, -0.00550079345703125, -0.02630615234375, 0.004985809326171875, 0.0260162353515625, -0.033203125, 0.02734375, -0.024444580078125, -0.055023193359375, 0.0167999267578125, 0.02978515625, 0.022705078125, 0.0217437744140625, -0.01038360595703125, 0.040008544921875, -0.0099639892578125, 0.0222015380859375, 0.017242431640625, 0.00750732421875, -0.0072479248046875, 0.0082855224609375, 0.0775146484375, 0.0018396377563476562, 0.0140228271484375, -0.007015228271484375, 0.07403564453125, -0.03607177734375, -0.0728759765625, -0.037200927734375, -0.035736083984375, 0.016265869140625, 0.04644775390625, 0.00531005859375, 0.059417724609375, 0.0594482421875, -0.0005483627319335938, 0.0028781890869140625, -0.0333251953125, 0.04449462890625, -0.05322265625, -0.0034313201904296875, 0.0144500732421875, -0.027313232421875, -0.0227203369140625, 0.05218505859375, 0.017669677734375, 0.01213836669921875, -0.0132293701171875, 0.039031982421875, 0.0003561973571777344, 0.03533935546875, 0.022735595703125, -0.04071044921875, 0.0025348663330078125, -0.01337432861328125, -0.0305328369140625, -0.0243377685546875, -0.00677490234375, -0.043975830078125, 0.007083892822265625, -0.046600341796875, -0.03570556640625, 0.09576416015625, -0.009979248046875, -0.01222991943359375, -0.0019025802612304688, -0.00290679931640625, -0.036407470703125, 0.005184173583984375, 0.0173797607421875, 0.0074005126953125, 0.0030918121337890625, -0.01230621337890625, 0.05938720703125, -0.0182952880859375, 0.03448486328125, -0.0214691162109375, -0.0088653564453125, -0.00476837158203125, 0.0179290771484375, 0.01100921630859375, -0.0251617431640625, -0.0233001708984375, -0.00839996337890625, -0.0187835693359375, -0.0155487060546875, -0.0027828216552734375, 0.033782958984375, -0.04052734375, 0.033935546875, -0.0030269622802734375, -0.00972747802734375, 0.010345458984375, 0.0185394287109375, 0.0167083740234375, 0.017791748046875, -0.01018524169921875, 0.008331298828125, -0.035675048828125, -0.034088134765625, -0.04217529296875, -0.0322265625, -0.051483154296875, -0.005138397216796875, 0.009002685546875, 0.021942138671875, -0.00910186767578125, -0.035400390625, 0.0099029541015625, 0.00505828857421875, -0.0040283203125, 0.004924774169921875, 0.01519775390625, 0.0281219482421875, -0.0006618499755859375, 0.056884765625, 0.028656005859375, 0.0183258056640625, -0.0269927978515625, -0.033233642578125, -0.017303466796875, -0.039642333984375, -0.0220489501953125, 0.0042572021484375, -0.005123138427734375, 0.035858154296875, 0.0288543701171875, 0.004993438720703125, 0.0109100341796875, -0.01824951171875, 0.0015325546264648438, -0.02008056640625, 0.045074462890625, -0.0207672119140625, -0.0208587646484375, 0.0265045166015625, -0.0026912689208984375, 0.002574920654296875, -0.005298614501953125, -0.0433349609375, 0.01451873779296875, 0.0246734619140625, 0.0194091796875, -0.0171966552734375, -0.049713134765625, 0.0804443359375, 0.0118865966796875, -0.0120086669921875, 0.0088958740234375, 0.010650634765625, -0.0007052421569824219, -0.039764404296875, 0.0255126953125, -0.021728515625, -0.0654296875, 0.043060302734375, 0.0227813720703125, -0.0360107421875, 0.040557861328125, -0.029632568359375, 0.024322509765625, 0.03936767578125, 0.03167724609375, -0.0906982421875, 0.034698486328125, -0.019744873046875, 0.008209228515625, 0.06878662109375, -0.002780914306640625, -0.01345062255859375, 0.00865936279296875, 0.0262451171875, -0.004192352294921875, -0.0190277099609375, 0.0207977294921875, 0.0226593017578125, -0.007045745849609375, 0.005702972412109375, -0.034881591796875, -0.006488800048828125, 0.01212310791015625, -0.0194549560546875, -0.0162811279296875, 0.01410675048828125, 0.02264404296875, -0.0004782676696777344, 0.01435089111328125, -0.0362548828125, -0.036285400390625, -0.005229949951171875, -0.03424072265625, -0.035888671875, 0.03582763671875, 0.01151275634765625, 0.05560302734375, 0.052825927734375, 0.0009617805480957031, 0.0038814544677734375, 0.007236480712890625, 0.058013916015625, -0.009735107421875, -0.043243408203125, 0.01143646240234375, 0.0173797607421875, -0.05010986328125, 0.017364501953125, -0.01140594482421875, -0.036529541015625, -0.0189666748046875, 0.024658203125, 0.0980224609375, -0.0156402587890625, -0.0300140380859375, 0.00015497207641601562, 0.0268402099609375, 0.0021533966064453125, -0.01483154296875, 0.037628173828125, -0.04974365234375, 0.007083892822265625, 0.003574371337890625, 0.0140228271484375, -0.0059814453125, -0.012603759765625, -0.042572021484375, 0.09295654296875, 0.0037593841552734375, 0.0021495819091796875, 0.0147552490234375, 0.03515625, -0.0293426513671875, 0.01544952392578125, -0.0007023811340332031, 0.0295867919921875, -0.01041412353515625, 0.000021517276763916016, -0.056549072265625, -0.01593017578125, -0.0196533203125, 0.06201171875, 0.04583740234375, 0.016937255859375, -0.037567138671875, -0.00890350341796875, 0.03546142578125, 0.0291900634765625, 0.00033354759216308594, 0.03485107421875, 0.0305023193359375, 0.0181732177734375, 0.01316070556640625, -0.00044989585876464844, 0.03363037109375, -0.021087646484375, -0.01271820068359375, 0.06024169921875, 0.0158538818359375, 0.0266876220703125, -0.0165252685546875, 0.0242462158203125, -0.0126953125, -0.00656890869140625, 0.0296783447265625, -0.0246124267578125, 0.00844573974609375, 0.0175628662109375, 0.01459503173828125, 0.0244903564453125, -0.0008115768432617188, -0.005756378173828125, 0.03277587890625, 0.011627197265625, 0.0440673828125, 0.057861328125, 0.0207977294921875, 0.047027587890625, -0.026611328125, 0.032562255859375, -0.00021851062774658203, -0.03668212890625, -0.006748199462890625, -0.01374053955078125, 0.0053253173828125, -0.04052734375, -0.00485992431640625, 0.038970947265625, -0.002223968505859375, -0.023345947265625, -0.048553466796875, 0.00954437255859375, 0.025054931640625, 0.0273590087890625, 0.011932373046875, 0.0296630859375, -0.006450653076171875, 0.03546142578125, -0.035552978515625, 0.023834228515625, 0.0272979736328125, 0.0007915496826171875, -0.0125274658203125, -0.007366180419921875, -0.03436279296875, 0.033966064453125, -0.031341552734375, -0.0091552734375, -0.003704071044921875, 0.035003662109375, 0.032562255859375, 0.0191650390625, 0.002704620361328125, -0.0181884765625, -0.0287017822265625, 0.034912109375, 0.01534271240234375, 0.0252838134765625, -0.0291290283203125, -0.020050048828125, 0.0175323486328125, 0.033416748046875, -0.00508880615234375, 0.0121917724609375, 0.025146484375, 0.025299072265625, -0.01505279541015625, -0.01959228515625, 0.0005803108215332031, -0.021270751953125, 0.003948211669921875, -0.0626220703125, 0.03485107421875, 0.050628662109375, 0.00036025047302246094, 0.0281829833984375, -0.0733642578125, 0.095947265625, -0.01151275634765625, 0.003936767578125, 0.00797271728515625, -0.034881591796875, 0.019134521484375, 0.0008950233459472656, 0.0390625, 0.0156402587890625, -0.00939178466796875, 0.0008115768432617188, -0.0310516357421875, -0.050567626953125, 0.016815185546875, 0.0421142578125, 0.00989532470703125, -0.0006594657897949219, 0.0271759033203125, 0.0176849365234375, -0.01171875, -0.006771087646484375, 0.0035495758056640625, -0.008453369140625, 0.0300750732421875, 0.0111846923828125, 0.0066986083984375, 0.0026798248291015625, 0.0234222412109375, 0.02960205078125, 0.0291748046875, 0.0438232421875, -0.01175689697265625, 0.03509521484375, 0.0234832763671875, -0.038848876953125, 0.034271240234375, 0.036865234375, -0.008880615234375, 0.00604248046875, -0.02703857421875, -0.02838134765625, -0.0124969482421875, 0.00726318359375, 0.0274810791015625, -0.0394287109375, -0.00933074951171875, -0.005218505859375, 0.0233001708984375, 0.0014638900756835938, 0.00865936279296875, -0.04864501953125, -0.07000732421875, -0.078125, -0.00850677490234375, -0.00614166259765625, -0.037689208984375, -0.03314208984375, 0.020172119140625, 0.060455322265625, 0.018096923828125, 0.004985809326171875, 0.0014429092407226562, 0.03363037109375, 0.03521728515625, -0.0009365081787109375, -0.0003688335418701172, 0.0247650146484375, -0.0186767578125, 0.062042236328125, -0.031005859375, 0.07501220703125, 0.006175994873046875, -0.051361083984375, 0.003021240234375, 0.042022705078125, 0.060211181640625, 0.0086212158203125, 0.03759765625, -0.0135955810546875, 0.004840850830078125, 0.0294189453125, -0.0780029296875, -0.042999267578125, -0.07257080078125, 0.01142120361328125, 0.040679931640625, -0.030914306640625, -0.03448486328125, -0.05682373046875, 0.01641845703125, 0.0308990478515625, -0.0177154541015625, -0.047637939453125, 0.01461029052734375, -0.041259765625, 0.05450439453125, -0.02850341796875, -0.012603759765625, -0.002040863037109375, 0.04541015625, 0.004749298095703125, -0.0157928466796875, -0.01995849609375, 0.0158233642578125, 0.00293731689453125, 0.044036865234375, 0.050140380859375, -0.033843994140625, -0.0208892822265625, 0.0290374755859375, 0.0304107666015625, 0.0706787109375, -0.00193023681640625, -0.011932373046875, 0.0181884765625, -0.00830078125, -0.016754150390625, -0.047210693359375, 0.0264892578125, -0.06292724609375, -0.026275634765625, -0.07342529296875, 0.033660888671875, 0.027313232421875, -0.0308990478515625, -0.044921875, 0.066650390625, -0.0255584716796875, -0.01013946533203125, -0.057525634765625, -0.0169830322265625, 0.0192718505859375, 0.00939178466796875, -0.014129638671875, -0.05010986328125, -0.06536865234375, 0.027496337890625, 0.0184783935546875, 0.03228759765625, 0.0113372802734375, 0.0024776458740234375, -0.033599853515625, 0.0165252685546875, 0.0085296630859375, 0.02923583984375, 0.02813720703125, -0.031768798828125, 0.03814697265625, 0.019317626953125, -0.05755615234375, -0.005096435546875, 0.0019407272338867188, 0.0271148681640625, -0.0275421142578125, -0.066650390625, 0.01459503173828125, -0.01641845703125, 0.0643310546875, 0.003009796142578125, -0.0037822723388671875, -0.02392578125, -0.01152801513671875, 0.0024051666259765625, 0.01218414306640625, -0.0002810955047607422, -0.004787445068359375, -0.0335693359375, 0.0028324127197265625, -0.01276397705078125, -0.0161895751953125, -0.03424072265625, 0.037841796875, -0.032562255859375, 0.00801849365234375, 0.0433349609375, -0.01317596435546875, -0.032989501953125, 0.0277099609375, 0.060028076171875, -0.0435791015625, -0.01078033447265625, 0.021453857421875, -0.0164031982421875, 0.0218353271484375, 0.02569580078125, 0.01398468017578125, -0.006809234619140625, -0.0288238525390625, 0.0300750732421875, -0.006931304931640625, 0.058197021484375, -0.043212890625, -0.031280517578125, 0.00826263427734375, 0.027557373046875, -0.020660400390625, 0.029388427734375, -0.0084075927734375, 0.052032470703125, 0.0078277587890625, 0.048065185546875, 0.003658294677734375, -0.003467559814453125, -0.0198822021484375, 0.033355712890625, 0.0009069442749023438, -0.020904541015625, 0.027923583984375, -0.033477783203125, -0.0008001327514648438, 0.0295257568359375, -0.04150390625, 0.004604339599609375, -0.01393890380859375, 0.0196075439453125, -0.003482818603515625, -0.01739501953125 ]
f67858fcf73738f8bbd104ab8024b75a6b7f909d
Wordpress Stackexchange Q: WP-CLI works on non WP-CLI installed Wordpress instance? I came across WP-CLI via the tutorial at http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html and was wondering does WP-CLI work on Wordpress instances which were NOT initially installed with WP-CLI but installed via normal FTP upload Wordpress installs ? So can I manage plugins, core updates via WP-CLI on non WP-CLI installed Wordpress installs ? A: Yes, of course it does, as long as you also have SSH access to the instance (it won't work over FTP). There's nothing special about WordPress instances installed via WP-CLI. Commands such as wp core download and wp core install perform the same actions you would normally do when installing manually.
Q: WP-CLI works on non WP-CLI installed Wordpress instance? I came across WP-CLI via the tutorial at http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html and was wondering does WP-CLI work on Wordpress instances which were NOT initially installed with WP-CLI but installed via normal FTP upload Wordpress installs ? So can I manage plugins, core updates via WP-CLI on non WP-CLI installed Wordpress installs ? A: Yes, of course it does, as long as you also have SSH access to the instance (it won't work over FTP). There's nothing special about WordPress instances installed via WP-CLI. Commands such as wp core download and wp core install perform the same actions you would normally do when installing manually.
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:442217", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134256" }
[ -0.028656005859375, -0.02191162109375, -0.0101776123046875, -0.01019287109375, -0.033966064453125, -0.01715087890625, -0.00807952880859375, -0.0010690689086914062, 0.00812530517578125, 0.0128631591796875, -0.02569580078125, -0.00830078125, -0.00839996337890625, -0.016937255859375, -0.013214111328125, -0.0411376953125, 0.02728271484375, -0.0166168212890625, 0.0272369384765625, -0.00930023193359375, 0.01337432861328125, 0.01091766357421875, 0.02996826171875, 0.04998779296875, 0.01309967041015625, -0.0225372314453125, 0.0582275390625, 0.006649017333984375, 0.01548004150390625, 0.0005373954772949219, 0.026214599609375, -0.0294189453125, 0.0321044921875, 0.031524658203125, -0.059326171875, -0.0029010772705078125, -0.0201873779296875, 0.017578125, -0.015899658203125, 0.010772705078125, -0.006038665771484375, 0.0009975433349609375, 0.075439453125, 0.035247802734375, 0.01386260986328125, -0.022491455078125, -0.018310546875, -0.04669189453125, 0.01800537109375, -0.0020427703857421875, -0.01486968994140625, 0.0275726318359375, 0.0132904052734375, -0.0321044921875, -0.0032520294189453125, 0.005863189697265625, -0.021148681640625, 0.053192138671875, 0.0180206298828125, -0.038330078125, -0.0301055908203125, 0.01340484619140625, 0.0183868408203125, 0.024322509765625, 0.004375457763671875, -0.004058837890625, 0.00614166259765625, 0.00531768798828125, -0.07147216796875, 0.0262603759765625, 0.06097412109375, -0.047271728515625, 0.0009264945983886719, -0.005168914794921875, 0.026123046875, -0.0196380615234375, 0.01230621337890625, -0.01483917236328125, 0.0035762786865234375, 0.030242919921875, 0.05682373046875, 0.018280029296875, 0.032440185546875, 0.0089263916015625, 0.007106781005859375, 0.02947998046875, 0.006649017333984375, -0.03271484375, -0.007678985595703125, -0.0180206298828125, -0.0302886962890625, -0.00439453125, -0.01078033447265625, -0.006435394287109375, -0.031280517578125, -0.0158843994140625, -0.0218505859375, -0.0197906494140625, 0.0011816024780273438, 0.022491455078125, 0.04266357421875, -0.05267333984375, 0.06402587890625, -0.03265380859375, -0.01416015625, 0.039154052734375, 0.0186767578125, 0.0357666015625, 0.01369476318359375, 0.0143280029296875, -0.00342559814453125, -0.01331329345703125, 0.0308685302734375, -0.010223388671875, 0.045379638671875, -0.01763916015625, -0.0284881591796875, 0.07659912109375, -0.0209808349609375, 0.0224761962890625, 0.0149688720703125, 0.047821044921875, -0.02783203125, 0.005031585693359375, 0.003925323486328125, 0.0296630859375, 0.0245361328125, -0.046295166015625, -0.056488037109375, 0.041259765625, -0.0176849365234375, 0.0108489990234375, 0.033935546875, -0.002658843994140625, -0.0323486328125, -0.0230560302734375, 0.02685546875, 0.015228271484375, 0.0272216796875, -0.0206298828125, 0.0206756591796875, -0.01406097412109375, -0.0197601318359375, 0.00647735595703125, 0.0489501953125, -0.0015964508056640625, 0.005096435546875, 0.0246734619140625, 0.018646240234375, -0.0028743743896484375, 0.0245208740234375, -0.00363922119140625, 0.0304107666015625, 0.0178070068359375, 0.048126220703125, -0.0233154296875, 0.06976318359375, -0.0404052734375, 0.006855010986328125, -0.033111572265625, -0.01092529296875, -0.017669677734375, 0.027313232421875, -0.00780487060546875, -0.01271820068359375, 0.032501220703125, -0.05108642578125, -0.00115966796875, 0.0218658447265625, -0.0262451171875, 0.0228118896484375, -0.02978515625, 0.031707763671875, 0.01727294921875, 0.00371551513671875, 0.019744873046875, 0.036407470703125, 0.0013341903686523438, 0.035919189453125, 0.036773681640625, -0.0123291015625, -0.025665283203125, 0.07904052734375, -0.046600341796875, -0.034210205078125, -0.0243377685546875, 0.0046539306640625, 0.0457763671875, 0.066162109375, 0.0177154541015625, 0.01531219482421875, -0.06719970703125, -0.01226806640625, 0.0068817138671875, -0.019439697265625, -0.0028743743896484375, -0.020233154296875, 0.026397705078125, -0.0210723876953125, -0.014404296875, 0.0225067138671875, -0.04669189453125, 0.034881591796875, -0.0310211181640625, -0.0758056640625, -0.01434326171875, -0.03997802734375, 0.0160675048828125, 0.038238525390625, -0.01422119140625, -0.00311279296875, -0.0001519918441772461, 0.03118896484375, -0.09405517578125, -0.07122802734375, 0.01806640625, -0.040771484375, 0.04681396484375, -0.0124969482421875, 0.043212890625, -0.022003173828125, -0.028839111328125, -0.0087127685546875, -0.0236663818359375, -0.031890869140625, 0.0294647216796875, -0.0113677978515625, 0.0231475830078125, -0.0026187896728515625, 0.0229644775390625, 0.07623291015625, -0.028656005859375, -0.000022709369659423828, 0.0015611648559570312, -0.047637939453125, -0.0280914306640625, -0.0347900390625, -0.035614013671875, 0.031494140625, 0.04864501953125, 0.0164337158203125, 0.0204925537109375, -0.0227203369140625, -0.01502227783203125, 0.039337158203125, 0.0129547119140625, 0.0285186767578125, -0.0377197265625, -0.03564453125, 0.0098876953125, 0.003803253173828125, 0.00685882568359375, 0.0189208984375, 0.01424407958984375, -0.016876220703125, 0.0435791015625, 0.0018587112426757812, -0.0170440673828125, 0.002323150634765625, -0.0218505859375, 0.02880859375, -0.0232391357421875, -0.0546875, 0.00640869140625, -0.00732421875, -0.05462646484375, -0.005767822265625, -0.02081298828125, 0.0120086669921875, -0.056549072265625, 0.0257568359375, -0.0172271728515625, 0.0233306884765625, 0.03179931640625, -0.034088134765625, 0.057586669921875, -0.038330078125, -0.0200958251953125, 0.04931640625, 0.0355224609375, -0.0204620361328125, -0.000013113021850585938, 0.02081298828125, -0.0059661865234375, 0.00042319297790527344, 0.022552490234375, 0.049713134765625, 0.01306915283203125, 0.018798828125, -0.0229339599609375, 0.0232696533203125, -0.0009670257568359375, -0.0168304443359375, 0.02606201171875, 0.0232086181640625, -0.0467529296875, 0.007076263427734375, -0.000004231929779052734, 0.0007219314575195312, 0.00585174560546875, 0.00591278076171875, 0.042724609375, 0.03936767578125, -0.03363037109375, 0.01377105712890625, 0.0360107421875, 0.041900634765625, -0.0321044921875, -0.018829345703125, 0.043365478515625, -0.0731201171875, 0.0033397674560546875, -0.009002685546875, 0.01541900634765625, -0.0242919921875, -0.058502197265625, -0.0155181884765625, -0.0294952392578125, -0.08935546875, -0.060089111328125, -0.0165557861328125, -0.00975799560546875, -0.01495361328125, -0.0175933837890625, -0.01125335693359375, 0.01137542724609375, -0.016571044921875, 0.0111846923828125, -0.001094818115234375, -0.042083740234375, 0.020660400390625, -0.05340576171875, -0.046051025390625, -0.06591796875, 0.0252838134765625, -0.00257110595703125, 0.0027980804443359375, 0.042327880859375, 0.01329803466796875, -0.04412841796875, 0.0004935264587402344, 0.07080078125, -0.026336669921875, -0.00560760498046875, -0.00942230224609375, -0.021820068359375, 0.01910400390625, -0.00934600830078125, 0.032073974609375, 0.00800323486328125, 0.003208160400390625, -0.006999969482421875, 0.026519775390625, -0.02923583984375, 0.007495880126953125, -0.017364501953125, -0.0281829833984375, -0.046539306640625, -0.03759765625, -0.07330322265625, 0.0217437744140625, -0.01483154296875, -0.0164794921875, 0.00020253658294677734, 0.0004131793975830078, -0.0132293701171875, -0.01476287841796875, -0.0006399154663085938, 0.0027599334716796875, 0.0038623809814453125, 0.0026035308837890625, -0.017120361328125, 0.031524658203125, 0.0003523826599121094, -0.0005974769592285156, -0.0087738037109375, 0.0517578125, -0.0095062255859375, -0.05169677734375, -0.00861358642578125, -0.020050048828125, -0.04730224609375, -0.01097869873046875, -0.092041015625, -0.01033782958984375, 0.03875732421875, -0.01776123046875, 0.01535797119140625, -0.01715087890625, -0.020263671875, 0.015716552734375, 0.07513427734375, -0.08441162109375, -0.052490234375, 0.0166778564453125, 0.06402587890625, -0.03594970703125, -0.07122802734375, 0.0277557373046875, -0.03656005859375, -0.025787353515625, -0.0128173828125, 0.010833740234375, -0.032928466796875, 0.018096923828125, -0.00243377685546875, -0.0177001953125, -0.0266571044921875, 0.02020263671875, -0.019378662109375, 0.041717529296875, -0.034912109375, 0.017181396484375, -0.048980712890625, -0.016815185546875, -0.0335693359375, -0.08355712890625, -0.01172637939453125, -0.002315521240234375, 0.034576416015625, -0.0286865234375, 0.0601806640625, -0.0254974365234375, 0.033477783203125, -0.0167999267578125, 0.035888671875, -0.01013946533203125, 0.013275146484375, 0.0016727447509765625, 0.0032024383544921875, 0.01222991943359375, -0.00620269775390625, -0.01367950439453125, -0.01523590087890625, -0.035400390625, 0.0097503662109375, 0.006977081298828125, 0.006572723388671875, 0.04718017578125, -0.039642333984375, 0.0011281967163085938, -0.056304931640625, -0.0372314453125, -0.0035858154296875, -0.02557373046875, 0.0133819580078125, -0.0462646484375, 0.019378662109375, 0.03564453125, -0.0404052734375, 0.03839111328125, 0.0087127685546875, 0.0684814453125, 0.0023899078369140625, -0.00457763671875, 0.0038318634033203125, 0.02557373046875, -0.0049896240234375, 0.0533447265625, 0.073974609375, 0.00501251220703125, 0.0268707275390625, -0.017730712890625, 0.00736236572265625, -0.00839996337890625, 0.0016832351684570312, 0.01702880859375, 0.04095458984375, -0.00933074951171875, -0.00910186767578125, 0.0298614501953125, -0.0030078887939453125, 0.0218505859375, 0.00992584228515625, -0.0271148681640625, 0.0216827392578125, 0.02862548828125, -0.00623321533203125, -0.012237548828125, -0.037750244140625, -0.062286376953125, 0.0157470703125, -0.0997314453125, 0.04296875, 0.0228729248046875, -0.01416778564453125, 0.042083740234375, -0.00890350341796875, -0.0252227783203125, 0.03271484375, -0.00150299072265625, 0.01045989990234375, 0.003665924072265625, 0.028900146484375, -0.0283660888671875, 0.0167083740234375, 0.0003211498260498047, 0.0888671875, -0.029693603515625, -0.037689208984375, -0.033416748046875, -0.02508544921875, -0.0167999267578125, 0.045196533203125, -0.005336761474609375, 0.059783935546875, -0.00940704345703125, -0.038665771484375, -0.052093505859375, -0.01497650146484375, -0.06817626953125, -0.0679931640625, -0.0286102294921875, 0.005161285400390625, -0.0241241455078125, 0.00997161865234375, 0.01654052734375, -0.0379638671875, 0.00501251220703125, 0.01104736328125, 0.039581298828125, 0.068115234375, -0.015869140625, 0.016845703125, -0.01141357421875, 0.01477813720703125, -0.048126220703125, 0.020233154296875, -0.006473541259765625, -0.0225830078125, 0.01396942138671875, 0.0311126708984375, 0.04498291015625, 0.03900146484375, -0.0159759521484375, -0.001983642578125, 0.01519775390625, -0.0018701553344726562, 0.0103302001953125, -0.00006312131881713867, 0.01351165771484375, 0.031829833984375, 0.0134735107421875, -0.005329132080078125, -0.0236053466796875, 0.026214599609375, -0.0180206298828125, -0.016754150390625, 0.03857421875, -0.043182373046875, 0.0030498504638671875, 0.01531219482421875, 0.00760650634765625, -0.0066986083984375, -0.01519012451171875, 0.034698486328125, -0.00988006591796875, -0.027587890625, -0.0362548828125, 0.05242919921875, -0.0258331298828125, -0.00307464599609375, -0.034088134765625, 0.0279541015625, -0.022064208984375, 0.001827239990234375, 0.048309326171875, 0.03155517578125, -0.0023899078369140625, 0.01263427734375, -0.02410888671875, -0.039703369140625, -0.0157928466796875, -0.0313720703125, -0.0623779296875, -0.0204925537109375, 0.04083251953125, -0.006500244140625, 0.00920867919921875, -0.0546875, -0.039825439453125, 0.033660888671875, 0.0726318359375, 0.014678955078125, -0.0121917724609375, 0.0438232421875, 0.012054443359375, 0.00473785400390625, 0.01351165771484375, 0.0408935546875, 0.01447296142578125, -0.019683837890625, 0.005828857421875, -0.0377197265625, -0.005584716796875, -0.0308074951171875, 0.03973388671875, 0.00400543212890625, 0.00008910894393920898, 0.00354766845703125, 0.00945281982421875, -0.0147857666015625, 0.004184722900390625, -0.019012451171875, 0.01320648193359375, -0.014251708984375, -0.00798797607421875, 0.0231170654296875, -0.03753662109375, -0.0247955322265625, 0.0037631988525390625, 0.0006227493286132812, 0.010894775390625, -0.0163421630859375, -0.0185546875, 0.021697998046875, -0.024627685546875, 0.0791015625, 0.1312255859375, -0.029693603515625, 0.04180908203125, 0.0401611328125, -0.0251617431640625, 0.020965576171875, -0.006664276123046875, -0.014556884765625, 0.0011310577392578125, 0.03466796875, -0.004764556884765625, -0.0009479522705078125, 0.032623291015625, -0.015045166015625, 0.03924560546875, 0.06024169921875, 0.085693359375, -0.041900634765625, -0.0115966796875, 0.0192413330078125, -0.068115234375, -0.013946533203125, 0.01035308837890625, -0.0243682861328125, -0.028839111328125, 0.020538330078125, 0.00010800361633300781, -0.03094482421875, 0.01007080078125, 0.023773193359375, -0.01523590087890625, -0.005931854248046875, 0.0270233154296875, 0.0241546630859375, -0.0041656494140625, 0.024993896484375, -0.0116119384765625, 0.031646728515625, -0.0009822845458984375, 0.0016431808471679688, -0.0281524658203125, -0.04437255859375, -0.049591064453125, -0.044342041015625, -0.00579071044921875, -0.0249176025390625, 0.02008056640625, -0.00528717041015625, 0.0309600830078125, 0.04443359375, -0.000018417835235595703, 0.0225677490234375, 0.014495849609375, 0.006153106689453125, -0.026885986328125, -0.044219970703125, 0.022735595703125, 0.04833984375, -0.054534912109375, 0.03753662109375, -0.0207977294921875, -0.0238189697265625, -0.00951385498046875, 0.0215606689453125, 0.06036376953125, -0.032745361328125, -0.003116607666015625, 0.048492431640625, 0.01413726806640625, -0.0139007568359375, 0.015045166015625, 0.01161956787109375, -0.0362548828125, -0.0224151611328125, 0.02423095703125, -0.035369873046875, -0.01424407958984375, 0.0295257568359375, -0.002948760986328125, 0.093505859375, -0.00543212890625, -0.035980224609375, 0.0193634033203125, 0.058074951171875, -0.012847900390625, 0.048431396484375, -0.035736083984375, 0.062286376953125, 0.0219268798828125, 0.035186767578125, -0.043975830078125, -0.00914764404296875, 0.0127716064453125, 0.0214691162109375, 0.021453857421875, 0.0016832351684570312, -0.01629638671875, -0.0089874267578125, 0.034271240234375, 0.01166534423828125, -0.004650115966796875, 0.039093017578125, 0.0019779205322265625, 0.0124969482421875, 0.02490234375, -0.01739501953125, 0.038848876953125, -0.02545166015625, -0.0198974609375, 0.0205841064453125, 0.020721435546875, 0.054534912109375, 0.0182952880859375, 0.02899169921875, -0.0041656494140625, 0.00820159912109375, 0.01297760009765625, 0.01457977294921875, -0.01763916015625, -0.0005483627319335938, -0.044677734375, 0.029876708984375, -0.0239410400390625, -0.002948760986328125, 0.0026760101318359375, -0.0016260147094726562, -0.01000213623046875, -0.029632568359375, 0.0100860595703125, -0.0193328857421875, -0.035552978515625, -0.0191650390625, 0.0207061767578125, -0.037322998046875, 0.0006957054138183594, -0.007038116455078125, 0.021728515625, -0.0218353271484375, 0.058563232421875, 0.034454345703125, -0.00534820556640625, -0.033538818359375, -0.058380126953125, 0.0000030994415283203125, 0.0109100341796875, -0.0001251697540283203, -0.00936126708984375, -0.039703369140625, -0.0225067138671875, 0.052886962890625, 0.0020599365234375, -0.0131378173828125, 0.02252197265625, 0.0003170967102050781, 0.0209197998046875, 0.033538818359375, -0.01152801513671875, -0.007022857666015625, -0.0023822784423828125, -0.00859832763671875, 0.00746917724609375, 0.027191162109375, 0.007808685302734375, 0.0343017578125, -0.0011510848999023438, -0.018096923828125, -0.025604248046875, 0.056365966796875, -0.006561279296875, 0.0190277099609375, -0.007038116455078125, -0.0250701904296875, -0.01294708251953125, 0.0243072509765625, 0.0347900390625, 0.037353515625, 0.0477294921875, 0.07916259765625, 0.006618499755859375, 0.0080108642578125, 0.11285400390625, 0.005306243896484375, -0.01157379150390625, -0.0017957687377929688, -0.003887176513671875, 0.006229400634765625, -0.024627685546875, -0.0185089111328125, 0.05804443359375, 0.00424957275390625, -0.033599853515625, 0.03546142578125, -0.0081787109375, -0.0232696533203125, 0.060821533203125, 0.0025463104248046875, 0.06085205078125, 0.0013494491577148438, -0.01059722900390625, -0.01290130615234375, 0.0113525390625, -0.011077880859375, -0.0004639625549316406, 0.0201873779296875, -0.006336212158203125, 0.02001953125, 0.0063629150390625, -0.035797119140625, 0.005115509033203125, 0.0369873046875, 0.028076171875, -0.0113067626953125, -0.00949859619140625, -0.01038360595703125, 0.0209197998046875, -0.0010023117065429688, -0.035125732421875, 0.0791015625, 0.040191650390625, 0.0523681640625, -0.05218505859375, 0.055389404296875, -0.0097198486328125, -0.006565093994140625, -0.00693511962890625, -0.0033092498779296875, -0.0219573974609375, 0.0131988525390625, -0.00910186767578125, -0.0113983154296875, -0.057403564453125, 0.01329803466796875, 0.0195770263671875, -0.0135345458984375, 0.0296783447265625, -0.01534271240234375, 0.01348876953125, -0.00911712646484375, -0.0099334716796875, -0.036834716796875, -0.0260772705078125, -0.01702880859375, -0.016937255859375, 0.0098419189453125, 0.00978851318359375, 0.0318603515625, 0.02215576171875, 0.0086822509765625, -0.008941650390625, -0.0034580230712890625, -0.007419586181640625, -0.01812744140625, 0.00995635986328125, 0.0208282470703125, -0.02239990234375, -0.0269317626953125, -0.032501220703125, -0.0131378173828125, -0.01447296142578125, 0.034942626953125, -0.0418701171875, 0.0005908012390136719, -0.03717041015625, -0.01021575927734375, 0.0269927978515625, -0.01166534423828125, 0.0154571533203125, -0.03240966796875, 0.0007328987121582031, 0.0189666748046875, -0.037384033203125, -0.027313232421875, -0.05706787109375, 0.01346588134765625, 0.024383544921875, -0.021392822265625, -0.031646728515625, -0.039215087890625, 0.0042266845703125, 0.0276947021484375, 0.0020046234130859375, -0.0280609130859375, 0.033935546875, -0.035980224609375, -0.021636962890625, 0.01446533203125, 0.020751953125, -0.026824951171875, -0.023193359375, -0.02032470703125, -0.04132080078125, -0.04864501953125, 0.05078125, -0.018646240234375, 0.0282745361328125, 0.0287933349609375, -0.0154266357421875, -0.023712158203125, 0.02020263671875, -0.00533294677734375, 0.07354736328125, 0.0021228790283203125, -0.0166778564453125, -0.0265655517578125, -0.0024242401123046875, -0.0374755859375, 0.0029087066650390625, 0.03265380859375, -0.027069091796875, -0.05401611328125, -0.0626220703125, 0.01654052734375, 0.006969451904296875, -0.064453125, -0.130859375, 0.025665283203125, -0.042816162109375, -0.041259765625, -0.07012939453125, -0.02813720703125, -0.0007700920104980469, 0.0182342529296875, -0.0516357421875, -0.0008172988891601562, -0.045562744140625, 0.07647705078125, -0.00357818603515625, 0.01519012451171875, -0.0001882314682006836, -0.0080108642578125, 0.01751708984375, 0.0350341796875, 0.048095703125, -0.00421905517578125, 0.00649261474609375, 0.00418853759765625, 0.01556396484375, 0.0430908203125, -0.0165557861328125, 0.01454925537109375, -0.00421142578125, -0.0182952880859375, -0.014373779296875, 0.025482177734375, -0.044464111328125, 0.008575439453125, 0.040557861328125, 0.08123779296875, 0.0161895751953125, -0.0307464599609375, -0.051422119140625, -0.0280303955078125, 0.0158843994140625, -0.024017333984375, 0.01277923583984375, -0.07525634765625, -0.016265869140625, 0.00833892822265625, 0.00621795654296875, 0.027984619140625, -0.01043701171875, 0.006908416748046875, -0.01425933837890625, 0.0251312255859375, -0.0104217529296875, -0.01549530029296875, -0.060089111328125, 0.07537841796875, -0.031768798828125, 0.0179443359375, 0.006046295166015625, 0.039215087890625, 0.04364013671875, 0.035247802734375, -0.034637451171875, 0.0322265625, -0.0173797607421875, 0.0226898193359375, -0.0217132568359375, 0.029510498046875, -0.044708251953125, 0.03289794921875, 0.030792236328125, 0.0389404296875, -0.01241302490234375, 0.0384521484375, 0.006900787353515625, 0.0200653076171875, -0.0253753662109375, 0.033111572265625, -0.0163116455078125, -0.08575439453125, -0.05792236328125, 0.05828857421875, -0.032989501953125, -0.002857208251953125, 0.00010597705841064453, 0.01165771484375, 0.00878143310546875, 0.0205841064453125, -0.01074981689453125, -0.0309295654296875, 0.0048675537109375, 0.05224609375, -0.005695343017578125, 0.0020198822021484375 ]
08823f44dc2a33ac9f52e06d599de886e79dace8
Wordpress Stackexchange Q: How to pass data parameter to ajax action function handler I have the following js to process an ajax request: $('#someelement').click(function() { var cokeValue = 'coke'; var data = { action: 'load_post', another_par: someVar }; jQuery.post(ajax_object.ajax_url, data, function(response) { alert(response); }); }); And this is my ajax handler function (hopefully my terminology is correct): add_action('wp_ajax_get_coke', 'get_coke_ajax'); function get_coke_ajax() { // need to get another_par in here !!!!!!! die(); } As you can see, the action is load_post which is fine, but I need to pass the another_par parameter to my ajax function so that I can assign its value to a variable and use it for my purposes. A: When you use jQuery.post(), the data is sent as regular $_POST arguments. So this JavaScript … var data = { action: 'load_post', foo: 'bar' }; … is available in your callback function per: $action = $_POST['action']; $foo = $_POST['foo']; // bar And when you are using jQuery.get(), the data is in $_GET. You can also use $_REQUEST which returns both, GET and POST data (and COOKIE). But you should always ask for the specific resource to avoid injection from sources you didn’t expect, like a cookie.
Q: How to pass data parameter to ajax action function handler I have the following js to process an ajax request: $('#someelement').click(function() { var cokeValue = 'coke'; var data = { action: 'load_post', another_par: someVar }; jQuery.post(ajax_object.ajax_url, data, function(response) { alert(response); }); }); And this is my ajax handler function (hopefully my terminology is correct): add_action('wp_ajax_get_coke', 'get_coke_ajax'); function get_coke_ajax() { // need to get another_par in here !!!!!!! die(); } As you can see, the action is load_post which is fine, but I need to pass the another_par parameter to my ajax function so that I can assign its value to a variable and use it for my purposes. A: When you use jQuery.post(), the data is sent as regular $_POST arguments. So this JavaScript … var data = { action: 'load_post', foo: 'bar' }; … is available in your callback function per: $action = $_POST['action']; $foo = $_POST['foo']; // bar And when you are using jQuery.get(), the data is in $_GET. You can also use $_REQUEST which returns both, GET and POST data (and COOKIE). But you should always ask for the specific resource to avoid injection from sources you didn’t expect, like a cookie.
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:442255", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134413" }
[ 0.058563232421875, 0.0015239715576171875, -0.05450439453125, -0.09027099609375, 0.04974365234375, -0.0311126708984375, 0.0117645263671875, 0.039398193359375, -0.004878997802734375, -0.029541015625, -0.046539306640625, -0.00792694091796875, -0.030975341796875, -0.0159912109375, 0.036865234375, -0.0643310546875, 0.0306396484375, 0.0045013427734375, 0.031890869140625, -0.00667572021484375, 0.01386260986328125, -0.01548004150390625, 0.03973388671875, 0.03448486328125, 0.037994384765625, 0.03875732421875, -0.01019287109375, 0.0196075439453125, -0.00506591796875, -0.00295257568359375, 0.02154541015625, -0.031341552734375, 0.00946044921875, 0.043426513671875, -0.03192138671875, -0.009429931640625, 0.038848876953125, 0.006855010986328125, 0.01462554931640625, 0.03277587890625, 0.06317138671875, -0.03369140625, 0.033843994140625, 0.0132904052734375, 0.00922393798828125, -0.031402587890625, 0.08660888671875, -0.029571533203125, 0.0196990966796875, -0.0042572021484375, 0.0313720703125, 0.0408935546875, 0.0283966064453125, 0.006137847900390625, -0.0014467239379882812, 0.0128326416015625, -0.0296783447265625, -0.0136260986328125, 0.03271484375, 0.061370849609375, -0.00135040283203125, -0.0261383056640625, 0.0028629302978515625, -0.06402587890625, -0.01230621337890625, 0.0290069580078125, 0.033477783203125, -0.003093719482421875, -0.056976318359375, 0.00606536865234375, 0.0364990234375, -0.0401611328125, -0.00481414794921875, 0.0031795501708984375, 0.0225677490234375, -0.041015625, 0.0335693359375, 0.0139617919921875, -0.02935791015625, 0.045257568359375, -0.003330230712890625, -0.0094757080078125, -0.0074310302734375, 0.004314422607421875, -0.0193939208984375, 0.011138916015625, -0.016265869140625, -0.009368896484375, -0.0076141357421875, -0.04766845703125, -0.0191650390625, -0.0195465087890625, 0.000377655029296875, 0.0028972625732421875, -0.035491943359375, -0.038970947265625, -0.011444091796875, -0.00955963134765625, 0.018096923828125, 0.01442718505859375, 0.007648468017578125, -0.033935546875, 0.02325439453125, -0.019775390625, 0.0027446746826171875, 0.01812744140625, 0.00506591796875, 0.034088134765625, 0.030303955078125, 0.019775390625, -0.0252685546875, 0.04150390625, 0.002613067626953125, 0.008331298828125, -0.029998779296875, 0.01163482666015625, -0.02178955078125, 0.0017805099487304688, -0.0184783935546875, 0.0011205673217773438, -0.0240020751953125, -0.01442718505859375, -0.019073486328125, 0.0240631103515625, 0.0509033203125, 0.0186004638671875, -0.0121612548828125, 0.017913818359375, -0.056884765625, 0.045562744140625, -0.020843505859375, 0.0195465087890625, 0.08062744140625, 0.0267486572265625, -0.0133819580078125, -0.0308990478515625, 0.0250701904296875, -0.0302581787109375, -0.007198333740234375, 0.016937255859375, -0.00627899169921875, -0.03631591796875, -0.0007300376892089844, 0.0064544677734375, -0.02239990234375, -0.01995849609375, 0.021728515625, 0.01898193359375, -0.00722503662109375, 0.004245758056640625, -0.0175933837890625, 0.0224151611328125, 0.0186767578125, 0.01861572265625, -0.01107025146484375, 0.05609130859375, 0.038360595703125, -0.00408935546875, -0.06549072265625, -0.01910400390625, 0.0130157470703125, 0.0199432373046875, 0.009124755859375, 0.034423828125, 0.039031982421875, -0.046112060546875, 0.003055572509765625, 0.007419586181640625, 0.0215606689453125, 0.0816650390625, -0.041473388671875, 0.009552001953125, 0.006938934326171875, -0.0008616447448730469, -0.02386474609375, -0.007610321044921875, 0.007572174072265625, 0.02447509765625, 0.03692626953125, -0.02935791015625, -0.0364990234375, -0.038665771484375, 0.08831787109375, -0.028533935546875, -0.0201416015625, 0.0552978515625, 0.0147552490234375, 0.053985595703125, -0.026641845703125, 0.01837158203125, 0.00044655799865722656, 0.06866455078125, -0.01102447509765625, -0.0030193328857421875, 0.0003402233123779297, -0.0323486328125, -0.002063751220703125, -0.0132598876953125, -0.003826141357421875, 0.021270751953125, 0.021820068359375, 0.0247650146484375, -0.00798797607421875, 0.0206298828125, -0.021484375, 0.0063934326171875, -0.00958251953125, 0.0265045166015625, -0.01318359375, 0.0289764404296875, 0.03466796875, 0.063720703125, -0.06414794921875, -0.020294189453125, -0.03631591796875, 0.00001043081283569336, -0.054534912109375, 0.036224365234375, -0.01483917236328125, 0.057037353515625, -0.0200653076171875, -0.04400634765625, -0.0231170654296875, -0.0244598388671875, 0.0362548828125, 0.01116180419921875, -0.03546142578125, -0.018218994140625, 0.02789306640625, -0.0022602081298828125, 0.0004494190216064453, 0.0438232421875, 0.0367431640625, 0.034423828125, -0.024444580078125, -0.031646728515625, -0.01476287841796875, -0.08795166015625, 0.0228271484375, 0.07171630859375, 0.0176544189453125, 0.049072265625, -0.01068878173828125, 0.0170135498046875, 0.033935546875, -0.01273345947265625, 0.00733184814453125, -0.0015916824340820312, -0.014617919921875, 0.0016584396362304688, -0.01580810546875, -0.00882720947265625, 0.033447265625, -0.053192138671875, -0.0011358261108398438, 0.035400390625, -0.015289306640625, 0.02386474609375, -0.025299072265625, 0.0176544189453125, -0.0198516845703125, 0.0157928466796875, 0.01233673095703125, -0.0139312744140625, 0.029571533203125, -0.048095703125, 0.0033702850341796875, 0.005100250244140625, -0.008331298828125, -0.02734375, 0.0222320556640625, -0.00653839111328125, -0.0083770751953125, 0.041778564453125, 0.026611328125, -0.01702880859375, -0.028350830078125, -0.01207733154296875, 0.0018310546875, 0.0236358642578125, 0.005584716796875, 0.0276641845703125, 0.0181427001953125, -0.0091552734375, 0.0241546630859375, 0.0318603515625, 0.01934814453125, 0.002025604248046875, 0.0526123046875, -0.006282806396484375, 0.0205230712890625, 0.00514984130859375, -0.006732940673828125, 0.056854248046875, -0.00902557373046875, -0.046722412109375, 0.0743408203125, 0.03399658203125, -0.0204315185546875, 0.01262664794921875, 0.0265045166015625, 0.0162811279296875, 0.002544403076171875, -0.0241241455078125, -0.00617218017578125, 0.006610870361328125, -0.0232391357421875, 0.01416015625, -0.00884246826171875, -0.049652099609375, -0.0193328857421875, -0.002002716064453125, 0.0186004638671875, 0.043670654296875, 0.01079559326171875, -0.04461669921875, -0.005100250244140625, 0.0496826171875, -0.10498046875, -0.099853515625, 0.03656005859375, -0.07464599609375, 0.002285003662109375, -0.004337310791015625, -0.0450439453125, -0.0188446044921875, 0.0181732177734375, -0.0015850067138671875, -0.026519775390625, 0.0228424072265625, -0.00449371337890625, -0.0035686492919921875, -0.0228271484375, 0.00494384765625, -0.01367950439453125, -0.002323150634765625, -0.0010652542114257812, 0.0352783203125, -0.0162811279296875, -0.0305023193359375, -0.049407958984375, 0.009124755859375, -0.0012540817260742188, -0.050445556640625, 0.006816864013671875, -0.037445068359375, 0.0296478271484375, -0.0146331787109375, 0.03973388671875, 0.04119873046875, -0.0182647705078125, 0.01015472412109375, -0.01654052734375, 0.039215087890625, 0.01513671875, 0.0121002197265625, 0.0019207000732421875, 0.03375244140625, 0.03411865234375, -0.03521728515625, -0.023529052734375, -0.0260009765625, -0.0599365234375, -0.0382080078125, 0.0638427734375, -0.002544403076171875, -0.042266845703125, 0.003932952880859375, 0.0299072265625, 0.0051116943359375, -0.005283355712890625, 0.0058135986328125, 0.0167999267578125, -0.007282257080078125, 0.01168060302734375, -0.026947021484375, 0.0041961669921875, -0.0221710205078125, 0.01280975341796875, 0.0022335052490234375, 0.00652313232421875, 0.0298309326171875, -0.0121612548828125, 0.013153076171875, 0.00464630126953125, 0.0458984375, 0.018768310546875, 0.026214599609375, -0.0167388916015625, -0.0352783203125, -0.0175018310546875, 0.054046630859375, 0.051025390625, -0.0160369873046875, -0.0175628662109375, 0.0030670166015625, -0.07232666015625, -0.06103515625, -0.0289764404296875, 0.0155029296875, 0.0064697265625, -0.005077362060546875, -0.03179931640625, 0.0252685546875, -0.026885986328125, 0.016937255859375, -0.0014190673828125, -0.032501220703125, 0.038299560546875, -0.05010986328125, -0.006069183349609375, 0.0401611328125, 0.0081787109375, -0.0228118896484375, -0.03387451171875, -0.00952911376953125, 0.0164794921875, -0.0052947998046875, -0.0119476318359375, 0.006412506103515625, 0.0567626953125, -0.04901123046875, 0.043670654296875, 0.045440673828125, 0.00960540771484375, 0.0455322265625, 0.0156097412109375, -0.0131988525390625, 0.050994873046875, -0.0012731552124023438, 0.027618408203125, -0.011627197265625, -0.010528564453125, -0.0198974609375, 0.0016765594482421875, -0.008056640625, -0.048309326171875, -0.056549072265625, -0.042938232421875, -0.003925323486328125, -0.09930419921875, -0.04864501953125, 0.0272064208984375, 0.011322021484375, -0.001720428466796875, 0.0171356201171875, -0.0533447265625, -0.07098388671875, 0.0380859375, 0.00435638427734375, -0.007770538330078125, -0.019775390625, 0.0677490234375, 0.0249786376953125, -0.019073486328125, 0.0267333984375, -0.02410888671875, 0.0158233642578125, -0.01282501220703125, 0.0250701904296875, -0.00787353515625, -0.004009246826171875, 0.0187530517578125, -0.0292816162109375, 0.04443359375, -0.02911376953125, 0.048492431640625, 0.0026493072509765625, -0.0010843276977539062, 0.0258026123046875, 0.028717041015625, -0.0704345703125, 0.0081787109375, -0.01236724853515625, 0.0272979736328125, 0.01285552978515625, -0.0012836456298828125, -0.051300048828125, 0.040435791015625, 0.003849029541015625, 0.01506805419921875, -0.0097198486328125, -0.00734710693359375, 0.06689453125, 0.049713134765625, 0.0022487640380859375, 0.0161590576171875, 0.02490234375, 0.01363372802734375, 0.020355224609375, 0.060516357421875, -0.0193939208984375, 0.0489501953125, 0.031097412109375, -0.00684356689453125, -0.0276947021484375, 0.0014944076538085938, 0.00104522705078125, 0.00005042552947998047, -0.0295562744140625, -0.04742431640625, 0.020904541015625, 0.059661865234375, -0.0190582275390625, 0.02490234375, 0.01482391357421875, 0.033843994140625, 0.0178375244140625, 0.0233917236328125, 0.068115234375, -0.008087158203125, 0.007556915283203125, 0.065185546875, 0.0178070068359375, 0.01128387451171875, 0.0024127960205078125, 0.089111328125, 0.0357666015625, 0.0276031494140625, -0.0494384765625, 0.05853271484375, 0.0177154541015625, 0.0660400390625, 0.0137481689453125, -0.051300048828125, 0.00955963134765625, 0.040374755859375, -0.03265380859375, -0.039825439453125, -0.020660400390625, 0.01255035400390625, 0.0504150390625, 0.0189971923828125, 0.005336761474609375, -0.002742767333984375, -0.00720977783203125, -0.0291595458984375, 0.006134033203125, 0.01885986328125, -0.0293121337890625, 0.0004448890686035156, 0.0110321044921875, 0.00930023193359375, 0.03955078125, 0.0215301513671875, 0.005222320556640625, 0.032470703125, 0.0704345703125, -0.03485107421875, 0.0552978515625, -0.0226287841796875, -0.03729248046875, 0.02728271484375, 0.0214385986328125, -0.01210784912109375, -0.01641845703125, -0.0126190185546875, -0.0255126953125, -0.021881103515625, 0.0771484375, -0.03662109375, -0.00583648681640625, -0.037689208984375, 0.0391845703125, -0.005847930908203125, 0.0023899078369140625, 0.07470703125, 0.032470703125, 0.0291900634765625, -0.0002970695495605469, -0.024078369140625, -0.038055419921875, 0.003326416015625, -0.03448486328125, -0.016510009765625, -0.032257080078125, -0.02972412109375, 0.01149749755859375, 0.003635406494140625, 0.0645751953125, 0.0090179443359375, 0.01184844970703125, -0.043365478515625, 0.01776123046875, -0.0105743408203125, 0.07806396484375, -0.046295166015625, 0.0545654296875, 0.007785797119140625, 0.03131103515625, -0.0307159423828125, -0.01275634765625, -0.0093536376953125, -0.03765869140625, -0.0088043212890625, 0.00981903076171875, -0.0160675048828125, 0.01180267333984375, 0.049346923828125, -0.00255584716796875, -0.0062713623046875, 0.0019702911376953125, -0.002197265625, -0.01151275634765625, 0.03961181640625, 0.03106689453125, 0.005496978759765625, 0.013824462890625, -0.01232147216796875, 0.0029201507568359375, -0.0073394775390625, 0.01013946533203125, 0.0252838134765625, -0.0252227783203125, 0.0233001708984375, 0.0006022453308105469, -0.05718994140625, 0.00952911376953125, 0.07293701171875, 0.0212249755859375, 0.054718017578125, -0.006427764892578125, 0.03668212890625, 0.0418701171875, 0.033905029296875, -0.03546142578125, -0.052520751953125, 0.01007080078125, -0.0062103271484375, -0.0283660888671875, 0.00293731689453125, -0.0167083740234375, 0.0241546630859375, 0.053955078125, 0.09613037109375, -0.0782470703125, 0.024322509765625, 0.03173828125, -0.05352783203125, -0.0022182464599609375, -0.022247314453125, -0.0018177032470703125, 0.00286865234375, 0.01558685302734375, 0.033935546875, -0.032196044921875, 0.006038665771484375, 0.037078857421875, 0.0118560791015625, -0.01727294921875, 0.00104522705078125, -0.0101318359375, -0.032135009765625, 0.0006914138793945312, 0.04345703125, -0.0103607177734375, -0.0023193359375, 0.006000518798828125, 0.01280975341796875, -0.025299072265625, -0.05267333984375, 0.00876617431640625, 0.0007243156433105469, -0.021087646484375, -0.0271148681640625, 0.0051116943359375, 0.0701904296875, 0.04058837890625, 0.01171875, -0.032379150390625, -0.0033817291259765625, 0.060272216796875, -0.012298583984375, -0.0313720703125, 0.02532958984375, 0.004207611083984375, -0.057037353515625, 0.023712158203125, -0.02685546875, -0.027099609375, -0.0061492919921875, -0.0146026611328125, 0.03619384765625, -0.036041259765625, -0.002655029296875, 0.056854248046875, -0.00897216796875, -0.037109375, 0.0157012939453125, -0.050506591796875, -0.006465911865234375, 0.00893402099609375, -0.027862548828125, -0.055938720703125, 0.03594970703125, -0.0206451416015625, -0.03509521484375, 0.09100341796875, 0.0201873779296875, -0.008056640625, 0.006778717041015625, 0.038543701171875, -0.034942626953125, 0.0215606689453125, -0.04034423828125, 0.025665283203125, 0.001918792724609375, 0.0157928466796875, -0.055694580078125, -0.005016326904296875, -0.02484130859375, 0.019195556640625, 0.04443359375, 0.01047515869140625, -0.0281982421875, -0.037567138671875, -0.010589599609375, 0.034149169921875, -0.016632080078125, 0.022857666015625, 0.035675048828125, 0.029052734375, 0.06805419921875, -0.01409912109375, 0.0251922607421875, -0.003414154052734375, 0.0224609375, 0.060821533203125, 0.004344940185546875, -0.00603485107421875, 0.0200653076171875, 0.054351806640625, -0.025238037109375, 0.009765625, 0.022186279296875, -0.03094482421875, -0.0029735565185546875, 0.012298583984375, -0.002674102783203125, 0.0010280609130859375, -0.01120758056640625, -0.01465606689453125, 0.01219940185546875, 0.0021724700927734375, -0.0007576942443847656, 0.04449462890625, 0.0041961669921875, 0.01503753662109375, 0.013580322265625, -0.00624847412109375, 0.0026874542236328125, 0.0262603759765625, 0.0675048828125, 0.0032787322998046875, 0.0138702392578125, -0.08990478515625, -0.0254974365234375, 0.0426025390625, 0.1011962890625, -0.048980712890625, -0.026702880859375, -0.0035762786865234375, -0.0006394386291503906, 0.03680419921875, -0.0207977294921875, 0.052642822265625, -0.011260986328125, -0.005779266357421875, -0.0156402587890625, 0.004932403564453125, 0.0028324127197265625, 0.0421142578125, 0.0021724700927734375, 0.0195465087890625, -0.04486083984375, -0.01824951171875, -0.0357666015625, -0.0144805908203125, 0.015716552734375, 0.057586669921875, 0.017852783203125, 0.03985595703125, -0.0253143310546875, -0.031524658203125, 0.0208740234375, 0.006969451904296875, -0.00312042236328125, 0.00002956390380859375, -0.00522613525390625, -0.016845703125, -0.022186279296875, 0.02691650390625, 0.007419586181640625, 0.03851318359375, 0.026397705078125, 0.0187835693359375, 0.0015687942504882812, 0.005401611328125, 0.05499267578125, -0.01629638671875, 0.04931640625, -0.037445068359375, 0.0017871856689453125, -0.04205322265625, -0.0291290283203125, -0.0262451171875, 0.00701904296875, -0.0205230712890625, -0.037628173828125, 0.0599365234375, -0.019012451171875, -0.02679443359375, 0.0301513671875, -0.03985595703125, 0.10980224609375, -0.015838623046875, -0.050537109375, -0.0183258056640625, 0.0005946159362792969, -0.0284271240234375, 0.019500732421875, 0.037872314453125, -0.026153564453125, 0.0307159423828125, -0.04022216796875, -0.020050048828125, 0.0106353759765625, 0.0036945343017578125, -0.0103759765625, 0.044464111328125, 0.0311126708984375, -0.01103973388671875, 0.03411865234375, 0.01983642578125, 0.054351806640625, 0.01474761962890625, 0.01324462890625, -0.026092529296875, 0.0130157470703125, 0.0205535888671875, 0.00360107421875, 0.0242462158203125, -0.006084442138671875, 0.0185546875, -0.00942230224609375, 0.002838134765625, 0.01253509521484375, -0.0132904052734375, -0.0377197265625, 0.038970947265625, -0.0120849609375, -0.013519287109375, 0.0251312255859375, -0.0189208984375, 0.01145172119140625, 0.0102386474609375, 0.04888916015625, -0.0225677490234375, -0.0305633544921875, -0.04974365234375, -0.031463623046875, 0.040802001953125, 0.040496826171875, 0.00617218017578125, 0.01496124267578125, 0.0221405029296875, 0.005847930908203125, 0.016845703125, -0.006378173828125, 0.043304443359375, 0.0267486572265625, -0.02923583984375, 0.01363372802734375, -0.005397796630859375, -0.026885986328125, 0.037750244140625, 0.0010652542114257812, -0.01294708251953125, 0.00998687744140625, -0.009674072265625, -0.05902099609375, 0.01499176025390625, 0.0209808349609375, 0.01363372802734375, 0.0195465087890625, -0.0275726318359375, -0.0186767578125, -0.0472412109375, 0.017730712890625, -0.0156707763671875, -0.00927734375, -0.024810791015625, -0.0103607177734375, 0.00455474853515625, -0.05194091796875, -0.04168701171875, -0.021575927734375, 0.01136016845703125, -0.007007598876953125, 0.002910614013671875, -0.018798828125, -0.0157012939453125, 0.005069732666015625, -0.00788116455078125, -0.0018339157104492188, 0.006908416748046875, 0.0567626953125, -0.0506591796875, -0.050323486328125, -0.0053863525390625, -0.006256103515625, -0.03985595703125, 0.0153656005859375, 0.028228759765625, -0.0191650390625, -0.051422119140625, 0.0099945068359375, 0.0009889602661132812, 0.061279296875, 0.0330810546875, -0.01546478271484375, 0.035858154296875, 0.0103607177734375, -0.03497314453125, -0.07275390625, -0.005260467529296875, -0.0206298828125, 0.031463623046875, -0.00611114501953125, 0.0083160400390625, 0.016754150390625, -0.0311279296875, -0.046234130859375, 0.0537109375, -0.004505157470703125, -0.0283050537109375, -0.008148193359375, -0.0230255126953125, 0.0257110595703125, -0.016632080078125, -0.01348114013671875, -0.0245819091796875, -0.0780029296875, -0.01479339599609375, 0.01219940185546875, 0.0013952255249023438, 0.042205810546875, -0.0106048583984375, -0.00580596923828125, 0.019012451171875, 0.01311492919921875, -0.006229400634765625, -0.045013427734375, 0.009368896484375, 0.04107666015625, 0.038116455078125, 0.0005359649658203125, 0.04388427734375, 0.045867919921875, -0.004756927490234375, 0.005626678466796875, -0.03607177734375, -0.00916290283203125, -0.0140228271484375, 0.043304443359375, -0.014678955078125, 0.019744873046875, -0.026092529296875, 0.0162506103515625, -0.02862548828125, -0.00505828857421875, -0.01042938232421875, -0.0005021095275878906, -0.0400390625, -0.0117034912109375, -0.0030155181884765625, 0.0016450881958007812, 0.003177642822265625, 0.02874755859375, -0.0011730194091796875, -0.027557373046875, 0.039154052734375, -0.0232696533203125, -0.02886962890625, -0.038299560546875, 0.060699462890625, -0.01299285888671875, 0.0130615234375, 0.0330810546875, 0.0239715576171875, 0.03082275390625, 0.07977294921875, 0.01302337646484375, 0.06683349609375, -0.042205810546875, -0.0123291015625, 0.0239410400390625, 0.0290374755859375, -0.0029964447021484375, -0.0172882080078125, 0.01470947265625, 0.0238189697265625, -0.01328277587890625, 0.041015625, 0.04022216796875, -0.0117950439453125, -0.0104522705078125, -0.0279388427734375, -0.05108642578125, -0.024749755859375, -0.0191802978515625, -0.017852783203125, 0.016021728515625, 0.0301361083984375, 0.0987548828125, -0.03143310546875, -0.0062713623046875, 0.01549530029296875, -0.027557373046875, -0.010711669921875, 0.013092041015625, -0.007076263427734375, -0.01235198974609375, 0.0019435882568359375 ]
28cf43ab2bf0362844d0e1ee08c322318b3059e4
Wordpress Stackexchange Q: How to hide menu on WordPress admin I want to hide some menus on admin panel: Appearance, Plugins, and Tools. How to hide it without plugin? And how can I un-hide them later easily? A: You can do this with remove_menu_page. Add the appropriate menu slug in your functions.php of your theme or your plugin. <?php remove_menu_page( $menu_slug ) ?> Note that users can still access these menus using a direct link. If you intend to block a user from accessing a menu, you will have to set up a user role and make sure they don't have the relevant capabilities. Here is a list of slug examples for the menus included in a clean WordPress install. <?php function remove_menus(){ remove_menu_page( 'index.php' ); //Dashboard remove_menu_page( 'edit.php' ); //Posts remove_menu_page( 'upload.php' ); //Media remove_menu_page( 'edit.php?post_type=page' ); //Pages remove_menu_page( 'edit-comments.php' ); //Comments remove_menu_page( 'themes.php' ); //Appearance remove_menu_page( 'plugins.php' ); //Plugins remove_menu_page( 'users.php' ); //Users remove_menu_page( 'tools.php' ); //Tools remove_menu_page( 'options-general.php' ); //Settings } add_action( 'admin_menu', 'remove_menus' ); ?>
Q: How to hide menu on WordPress admin I want to hide some menus on admin panel: Appearance, Plugins, and Tools. How to hide it without plugin? And how can I un-hide them later easily? A: You can do this with remove_menu_page. Add the appropriate menu slug in your functions.php of your theme or your plugin. <?php remove_menu_page( $menu_slug ) ?> Note that users can still access these menus using a direct link. If you intend to block a user from accessing a menu, you will have to set up a user role and make sure they don't have the relevant capabilities. Here is a list of slug examples for the menus included in a clean WordPress install. <?php function remove_menus(){ remove_menu_page( 'index.php' ); //Dashboard remove_menu_page( 'edit.php' ); //Posts remove_menu_page( 'upload.php' ); //Media remove_menu_page( 'edit.php?post_type=page' ); //Pages remove_menu_page( 'edit-comments.php' ); //Comments remove_menu_page( 'themes.php' ); //Appearance remove_menu_page( 'plugins.php' ); //Plugins remove_menu_page( 'users.php' ); //Users remove_menu_page( 'tools.php' ); //Tools remove_menu_page( 'options-general.php' ); //Settings } add_action( 'admin_menu', 'remove_menus' ); ?> A: can do it with remove_menu_page() try out these locations Remove Menu Item in WordPress Admin Panel Remove Unwanted Items from the WordPress Admin Sidebar A: This is a nice chunk of code from Bill Erickson's Core Functionality plugin. /** * Remove Menu Items * @since 1.0.0 * * Remove unused menu items by adding them to the array. * See the commented list of menu items for reference. * */ function ni_remove_menus () { global $menu; // Example: //$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins')); end ($menu); while (prev($menu)){ $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted) { unset($menu[key($menu)]); } } } add_action( 'admin_menu', 'ni_remove_menus' ); Uncomment the restricted array and include the menu items you'd like to hide. The example contains all the menu items for reference.
wordpress
{ "language": "en", "length": 303, "provenance": "stackexchange_00019.jsonl.gz:442267", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134453" }
[ 0.055572509765625, 0.021331787109375, 0.0216522216796875, 0.043975830078125, 0.036163330078125, -0.047149658203125, 0.10223388671875, -0.07818603515625, -0.009429931640625, 0.0156707763671875, 0.01494598388671875, -0.008392333984375, -0.03759765625, -0.036102294921875, -0.0179595947265625, -0.025970458984375, 0.00380706787109375, 0.041168212890625, 0.042877197265625, -0.0025615692138671875, 0.007503509521484375, 0.0028171539306640625, 0.016876220703125, 0.040771484375, 0.018768310546875, -0.0367431640625, 0.0386962890625, -0.0229339599609375, 0.00543212890625, -0.0287933349609375, 0.005741119384765625, 0.014129638671875, -0.01181793212890625, 0.0297698974609375, 0.0252532958984375, 0.0011959075927734375, -0.0303955078125, 0.031402587890625, 0.042694091796875, -0.036895751953125, 0.02557373046875, -0.00530242919921875, -0.011444091796875, 0.0166168212890625, -0.0168609619140625, -0.0528564453125, 0.0294647216796875, -0.0164947509765625, -0.0210113525390625, -0.01403045654296875, 0.032379150390625, -0.01126861572265625, 0.047637939453125, 0.0026874542236328125, -0.01287841796875, 0.01190185546875, -0.010345458984375, -0.005657196044921875, 0.035491943359375, 0.031158447265625, -0.0259246826171875, -0.0234222412109375, 0.00946044921875, -0.06671142578125, -0.01189422607421875, 0.0033245086669921875, 0.003986358642578125, 0.0153350830078125, -0.0850830078125, -0.0023174285888671875, 0.054107666015625, -0.043487548828125, 0.004222869873046875, 0.0055694580078125, -0.0321044921875, -0.01296234130859375, 0.00905609130859375, -0.0146942138671875, 0.0345458984375, -0.0078125, 0.0166168212890625, 0.0158538818359375, -0.0523681640625, 0.01334381103515625, -0.007785797119140625, 0.03912353515625, -0.0023517608642578125, -0.0292510986328125, -0.0069732666015625, 0.0167999267578125, -0.01186370849609375, -0.0164031982421875, 0.00911712646484375, 0.0310211181640625, -0.0036487579345703125, 0.0091094970703125, 0.047332763671875, 0.05029296875, -0.0016460418701171875, -0.01015472412109375, 0.012451171875, -0.047210693359375, 0.011505126953125, -0.021636962890625, -0.0209808349609375, 0.049530029296875, 0.01654052734375, 0.0237579345703125, 0.004825592041015625, 0.0186309814453125, 0.01448822021484375, -0.027618408203125, -0.0372314453125, -0.02813720703125, -0.01334381103515625, 0.037322998046875, -0.035400390625, 0.002330780029296875, 0.0038814544677734375, 0.021484375, -0.04345703125, -0.0187530517578125, -0.0176544189453125, 0.002689361572265625, -0.0024089813232421875, -0.019378662109375, -0.0193023681640625, 0.0219268798828125, -0.00414276123046875, 0.0230560302734375, -0.029541015625, -0.0079803466796875, 0.07098388671875, 0.06390380859375, 0.0270538330078125, -0.023712158203125, 0.0013284683227539062, -0.031585693359375, -0.0061492919921875, 0.0212249755859375, -0.0003249645233154297, -0.041961669921875, -0.01042938232421875, -0.0248565673828125, -0.0157623291015625, -0.007518768310546875, 0.00818634033203125, 0.017974853515625, 0.006893157958984375, -0.01593017578125, -0.032470703125, -0.01438140869140625, 0.049774169921875, 0.006465911865234375, -0.0233306884765625, 0.0207061767578125, 0.0310211181640625, -0.010986328125, -0.049957275390625, -0.0260162353515625, -0.0210723876953125, -0.02630615234375, 0.017791748046875, -0.046478271484375, -0.040435791015625, 0.0263671875, -0.0160980224609375, 0.004726409912109375, 0.021881103515625, -0.025634765625, 0.0440673828125, -0.0310211181640625, 0.006595611572265625, 0.02484130859375, 0.01496124267578125, 0.043701171875, -0.000518798828125, 0.0279541015625, 0.004547119140625, 0.047271728515625, 0.005985260009765625, -0.034210205078125, 0.019744873046875, -0.00547027587890625, -0.07647705078125, 0.0506591796875, -0.0011615753173828125, 0.059234619140625, 0.0218505859375, 0.0150909423828125, 0.06939697265625, 0.0138092041015625, 0.002285003662109375, -0.0236053466796875, 0.00356292724609375, -0.0270538330078125, 0.021636962890625, -0.004451751708984375, -0.00978851318359375, -0.0007472038269042969, 0.0015058517456054688, 0.01025390625, -0.00878143310546875, 0.00908660888671875, -0.07977294921875, 0.006031036376953125, -0.03631591796875, 0.0380859375, 0.0223236083984375, 0.01471710205078125, -0.015350341796875, -0.019866943359375, -0.0029621124267578125, -0.01861572265625, -0.03125, -0.005832672119140625, 0.0015115737915039062, 0.047332763671875, -0.001239776611328125, 0.03631591796875, 0.0056304931640625, -0.024505615234375, 0.0171051025390625, -0.0038204193115234375, 0.031524658203125, -0.016448974609375, -0.01268768310546875, -0.0292510986328125, -0.00383758544921875, -0.0235595703125, -0.004047393798828125, 0.061553955078125, 0.0286407470703125, 0.038482666015625, -0.006572723388671875, 0.00384521484375, 0.00620269775390625, -0.0496826171875, -0.0093994140625, 0.0217437744140625, 0.04449462890625, 0.0278778076171875, -0.0170135498046875, -0.02435302734375, 0.040252685546875, -0.07086181640625, -0.0032806396484375, -0.01294708251953125, -0.00024819374084472656, -0.0010423660278320312, 0.04962158203125, 0.0010919570922851562, 0.026641845703125, 0.01502227783203125, 0.0401611328125, 0.021331787109375, -0.0247039794921875, 0.00021922588348388672, 0.032989501953125, -0.0328369140625, 0.01540374755859375, 0.0064697265625, 0.0012912750244140625, -0.0013370513916015625, -0.00061798095703125, -0.0018663406372070312, 0.0015974044799804688, 0.01079559326171875, -0.0264739990234375, -0.017852783203125, 0.033782958984375, 0.0423583984375, -0.0190277099609375, -0.0155487060546875, 0.0294036865234375, -0.027923583984375, -0.034881591796875, 0.01505279541015625, -0.01097869873046875, -0.0255126953125, -0.00743865966796875, 0.004322052001953125, 0.050506591796875, 0.005451202392578125, 0.00598907470703125, -0.01361083984375, 0.046417236328125, 0.0253143310546875, -0.0085906982421875, -0.013946533203125, 0.009918212890625, 0.0268096923828125, -0.0290069580078125, 0.0283966064453125, -0.005458831787109375, -0.006633758544921875, 0.016357421875, -0.009246826171875, 0.010528564453125, -0.00978851318359375, 0.039276123046875, 0.047332763671875, 0.0112457275390625, -0.0286712646484375, 0.0264434814453125, -0.032989501953125, 0.0199432373046875, 0.019439697265625, 0.0126495361328125, -0.00107574462890625, -0.016754150390625, 0.0516357421875, -0.002895355224609375, -0.02886962890625, -0.03411865234375, -0.05340576171875, -0.05621337890625, -0.020660400390625, -0.08404541015625, 0.006198883056640625, -0.006092071533203125, -0.059417724609375, 0.032012939453125, 0.0243377685546875, -0.0321044921875, -0.02459716796875, 0.08575439453125, 0.023101806640625, -0.00513458251953125, -0.0276947021484375, -0.0207977294921875, -0.01030731201171875, -0.01451873779296875, 0.040069580078125, -0.008941650390625, -0.0183258056640625, -0.004314422607421875, 0.0782470703125, -0.006481170654296875, -0.0816650390625, -0.0038604736328125, -0.0205078125, -0.0075836181640625, 0.037994384765625, 0.03436279296875, -0.0109710693359375, -0.000797271728515625, 0.01824951171875, 0.03265380859375, 0.0160369873046875, -0.027801513671875, -0.041168212890625, -0.0163421630859375, -0.00836181640625, 0.019134521484375, -0.03143310546875, 0.01082611083984375, 0.0005702972412109375, -0.00821685791015625, -0.041229248046875, -0.0277099609375, -0.00821685791015625, -0.043426513671875, 0.07275390625, 0.00989532470703125, 0.0028400421142578125, 0.0160064697265625, 0.038726806640625, 0.020599365234375, 0.032562255859375, -0.0016498565673828125, 0.0164337158203125, -0.01104736328125, -0.00319671630859375, 0.0138092041015625, -0.0028095245361328125, 0.04193115234375, -0.00969696044921875, -0.033203125, 0.0063018798828125, -0.004161834716796875, 0.015960693359375, -0.006927490234375, 0.01113128662109375, -0.031951904296875, 0.05224609375, 0.00891876220703125, -0.0029697418212890625, -0.0238189697265625, -0.016387939453125, -0.01213836669921875, 0.0638427734375, -0.058807373046875, -0.029998779296875, -0.01007080078125, 0.01398468017578125, 0.00904083251953125, -0.01371002197265625, -0.01372528076171875, -0.028045654296875, -0.155029296875, 0.0304412841796875, 0.00675201416015625, -0.039794921875, -0.019744873046875, 0.035797119140625, -0.10040283203125, -0.03668212890625, 0.03375244140625, -0.0312042236328125, 0.021575927734375, 0.015716552734375, 0.006359100341796875, -0.0419921875, -0.024017333984375, -0.00739288330078125, -0.045684814453125, -0.00384521484375, -0.043701171875, 0.041473388671875, 0.05181884765625, -0.016998291015625, -0.010467529296875, 0.01468658447265625, 0.0294952392578125, 0.0216064453125, -0.00652313232421875, -0.01410675048828125, -0.003887176513671875, -0.005855560302734375, -0.00959014892578125, -0.0139617919921875, 0.0037994384765625, 0.00411224365234375, -0.020843505859375, 0.0013589859008789062, -0.017242431640625, -0.0020122528076171875, 0.029693603515625, -0.0328369140625, -0.029144287109375, -0.036163330078125, -0.057464599609375, -0.04119873046875, -0.0181732177734375, -0.016357421875, -0.0084991455078125, -0.0408935546875, 0.020233154296875, -0.01348876953125, -0.0258636474609375, 0.01806640625, 0.035247802734375, 0.0251922607421875, -0.01232147216796875, -0.0224151611328125, 0.034820556640625, 0.03692626953125, -0.00717926025390625, 0.0584716796875, 0.0194854736328125, -0.019775390625, 0.05889892578125, 0.01084136962890625, 0.01629638671875, -0.056304931640625, 0.07415771484375, -0.022613525390625, -0.025604248046875, 0.050445556640625, -0.0299224853515625, 0.0047454833984375, 0.016876220703125, -0.0028972625732421875, -0.0277557373046875, -0.032958984375, 0.0367431640625, 0.031585693359375, -0.014251708984375, -0.059234619140625, -0.0267333984375, -0.00788116455078125, -0.0017566680908203125, 0.0289154052734375, 0.025634765625, -0.0017557144165039062, 0.016082763671875, 0.0226287841796875, -0.00711822509765625, -0.00772857666015625, 0.0197601318359375, -0.035675048828125, 0.043701171875, -0.0372314453125, -0.0143890380859375, -0.009735107421875, -0.0012083053588867188, 0.04693603515625, 0.0002999305725097656, -0.0214385986328125, -0.07061767578125, 0.01177215576171875, 0.047027587890625, -0.00487518310546875, 0.01067352294921875, 0.050628662109375, 0.006748199462890625, 0.00962066650390625, -0.01947021484375, -0.01165008544921875, -0.017333984375, -0.04071044921875, 0.001895904541015625, 0.0016632080078125, -0.005954742431640625, 0.048370361328125, 0.037322998046875, -0.017852783203125, 0.051727294921875, -0.01462554931640625, 0.0304412841796875, 0.027008056640625, 0.011383056640625, 0.0005803108215332031, 0.006732940673828125, 0.0004792213439941406, -0.0229339599609375, 0.014312744140625, -0.0179901123046875, -0.02264404296875, 0.03973388671875, -0.000015735626220703125, 0.027252197265625, 0.0201873779296875, -0.0211334228515625, 0.0226898193359375, -0.02752685546875, 0.06298828125, -0.0308837890625, -0.083740234375, -0.0460205078125, 0.0260009765625, 0.050933837890625, -0.0440673828125, -0.0230255126953125, 0.0333251953125, -0.02386474609375, -0.006252288818359375, 0.01303863525390625, -0.07965087890625, 0.0191497802734375, 0.04132080078125, -0.002780914306640625, 0.006439208984375, 0.006195068359375, -0.10357666015625, -0.0443115234375, -0.009033203125, 0.0171051025390625, 0.044097900390625, -0.0218353271484375, 0.0294952392578125, -0.0305023193359375, -0.00556182861328125, 0.007228851318359375, -0.01641845703125, 0.06280517578125, 0.038726806640625, -0.0360107421875, 0.01006317138671875, -0.02880859375, -0.00897979736328125, -0.0257568359375, -0.03631591796875, -0.042724609375, -0.016357421875, -0.01317596435546875, -0.0077667236328125, 0.0132598876953125, 0.04705810546875, -0.010986328125, 0.04144287109375, -0.00695037841796875, 0.0278167724609375, 0.0045013427734375, 0.05889892578125, -0.002368927001953125, 0.0482177734375, 0.034423828125, 0.047821044921875, -0.0223236083984375, -0.031707763671875, 0.0280303955078125, -0.005741119384765625, -0.038177490234375, -0.03240966796875, -0.035125732421875, -0.00978851318359375, 0.0618896484375, -0.01654052734375, 0.0009431838989257812, -0.002910614013671875, 0.0036106109619140625, -0.050872802734375, 0.024383544921875, -0.0177764892578125, 0.00052642822265625, -0.0305633544921875, -0.036529541015625, -0.010101318359375, -0.0039825439453125, -0.00516510009765625, 0.037628173828125, -0.023529052734375, 0.0323486328125, 0.0096588134765625, -0.0258941650390625, 0.07373046875, 0.0850830078125, -0.019378662109375, 0.03350830078125, 0.0216217041015625, -0.01412200927734375, 0.007755279541015625, -0.03326416015625, -0.01023101806640625, 0.040191650390625, 0.049896240234375, -0.00080108642578125, 0.0288848876953125, 0.0640869140625, -0.01247406005859375, 0.0256500244140625, 0.0982666015625, 0.0635986328125, -0.1395263671875, 0.01102447509765625, 0.002620697021484375, 0.01195526123046875, 0.06024169921875, 0.001979827880859375, -0.00858306884765625, -0.050079345703125, 0.0207977294921875, -0.0229339599609375, -0.01435089111328125, -0.0010957717895507812, -0.00811767578125, -0.0248565673828125, 0.0162353515625, 0.0219573974609375, 0.01526641845703125, 0.00927734375, 0.006351470947265625, -0.0184173583984375, 0.01953125, -0.00745391845703125, -0.0010290145874023438, 0.03729248046875, -0.035247802734375, -0.031951904296875, 0.04901123046875, -0.02392578125, 0.00011175870895385742, 0.062164306640625, 0.0013017654418945312, -0.0231475830078125, 0.053466796875, -0.039703369140625, 0.04327392578125, 0.004985809326171875, -0.0340576171875, -0.032562255859375, -0.032257080078125, 0.00832366943359375, 0.0003032684326171875, -0.02679443359375, 0.0228424072265625, -0.01715087890625, -0.03948974609375, -0.0225982666015625, 0.0026798248291015625, 0.1435546875, -0.018096923828125, -0.0531005859375, -0.01358795166015625, 0.00305938720703125, 0.00695037841796875, -0.0172119140625, 0.0216217041015625, -0.004451751708984375, 0.039703369140625, -0.005977630615234375, 0.031341552734375, -0.01239013671875, -0.023101806640625, -0.0771484375, 0.06842041015625, -0.0182647705078125, 0.034423828125, -0.01047515869140625, 0.0262298583984375, 0.00218963623046875, 0.006893157958984375, -0.0263519287109375, 0.0628662109375, 0.0204010009765625, 0.035003662109375, -0.0236968994140625, -0.0028324127197265625, 0.019561767578125, 0.031707763671875, 0.0228424072265625, 0.019012451171875, -0.035614013671875, -0.007297515869140625, 0.038909912109375, 0.0372314453125, 0.0333251953125, 0.034759521484375, -0.00531768798828125, -0.011474609375, 0.007465362548828125, -0.0273895263671875, 0.0467529296875, -0.06903076171875, -0.01329803466796875, -0.0034637451171875, 0.01381683349609375, 0.004970550537109375, 0.00252532958984375, 0.01068878173828125, -0.00835418701171875, 0.00467681884765625, 0.0005588531494140625, -0.00408935546875, -0.0230560302734375, 0.0099029541015625, -0.0205841064453125, -0.0192413330078125, -0.03466796875, -0.0174560546875, 0.01253509521484375, 0.024078369140625, 0.00730133056640625, 0.01374053955078125, 0.0347900390625, -0.041900634765625, -0.04327392578125, 0.01137542724609375, 0.0163421630859375, -0.06890869140625, 0.0196380615234375, 0.0098724365234375, 0.0259552001953125, -0.031402587890625, -0.01422882080078125, 0.0035572052001953125, 0.02667236328125, -0.01215362548828125, -0.043609619140625, 0.0191497802734375, 0.01201629638671875, -0.0076141357421875, 0.033721923828125, 0.0147705078125, 0.0115814208984375, 0.0635986328125, -0.0229949951171875, 0.00565338134765625, 0.019561767578125, 0.0013227462768554688, -0.01155853271484375, -0.0009918212890625, 0.00823211669921875, 0.0295867919921875, -0.055908203125, 0.0312347412109375, 0.0210113525390625, 0.025543212890625, 0.0139617919921875, 0.0274810791015625, 0.0267333984375, -0.01059722900390625, 0.004367828369140625, 0.01050567626953125, -0.0293731689453125, -0.00441741943359375, -0.05633544921875, -0.07379150390625, 0.0011014938354492188, 0.041046142578125, -0.008758544921875, 0.0018749237060546875, 0.01059722900390625, 0.001285552978515625, -0.00850677490234375, -0.022308349609375, -0.002986907958984375, -0.0197296142578125, -0.029205322265625, -0.0159759521484375, 0.006999969482421875, 0.0006375312805175781, 0.0072021484375, 0.005908966064453125, 0.0347900390625, 0.0010290145874023438, -0.0175933837890625, 0.0197906494140625, -0.004947662353515625, -0.02362060546875, 0.001033782958984375, -0.0255126953125, 0.01071929931640625, 0.0071868896484375, -0.0765380859375, -0.0268707275390625, -0.0372314453125, 0.00902557373046875, 0.028076171875, 0.0258331298828125, -0.01557159423828125, 0.047698974609375, 0.0287017822265625, 0.0185089111328125, -0.004291534423828125, -0.0249176025390625, 0.0259857177734375, 0.00525665283203125, 0.0174560546875, 0.0311737060546875, -0.0206298828125, -0.0207977294921875, -0.023712158203125, 0.054168701171875, 0.0207672119140625, 0.0521240234375, -0.02471923828125, 0.027923583984375, -0.0699462890625, -0.016998291015625, -0.019622802734375, -0.045745849609375, 0.01416778564453125, 0.0270843505859375, -0.0249176025390625, 0.005695343017578125, -0.04302978515625, 0.02813720703125, 0.041107177734375, -0.019775390625, 0.005336761474609375, 0.0271148681640625, 0.003173828125, -0.0252838134765625, -0.0005717277526855469, -0.0025768280029296875, -0.00342559814453125, 0.0025119781494140625, 0.01500701904296875, 0.0295562744140625, 0.054779052734375, -0.01617431640625, 0.0100555419921875, -0.025146484375, -0.018524169921875, -0.01522064208984375, 0.01629638671875, -0.031646728515625, 0.021484375, -0.02056884765625, 0.003086090087890625, 0.024688720703125, -0.006755828857421875, 0.0216217041015625, 0.0208740234375, 0.004451751708984375, 0.0273590087890625, -0.005157470703125, 0.0119781494140625, -0.0136871337890625, 0.0142059326171875, -0.00992584228515625, -0.01456451416015625, -0.00482177734375, -0.00553131103515625, -0.01934814453125, -0.00020873546600341797, -0.040130615234375, -0.0306396484375, 0.00614166259765625, 0.0228271484375, -0.0153045654296875, -0.043243408203125, -0.10858154296875, 0.0241851806640625, 0.0198211669921875, 0.0177764892578125, -0.07763671875, 0.041961669921875, -0.021209716796875, 0.05718994140625, -0.0222625732421875, 0.03076171875, -0.0131378173828125, -0.00537872314453125, -0.051361083984375, -0.00501251220703125, -0.036529541015625, 0.016082763671875, -0.020294189453125, 0.00982666015625, 0.030853271484375, -0.015533447265625, 0.0143585205078125, 0.004024505615234375, 0.01898193359375, 0.04571533203125, -0.001148223876953125, -0.00533294677734375, -0.022705078125, 0.0267333984375, 0.0017538070678710938, -0.034149169921875, -0.0034942626953125, -0.01360321044921875, -0.01959228515625, 0.0225372314453125, -0.007373809814453125, 0.021759033203125, -0.050506591796875, -0.11334228515625, 0.06695556640625, -0.01256561279296875, -0.054107666015625, 0.0209503173828125, 0.0021610260009765625, -0.01480865478515625, -0.007640838623046875, 0.001514434814453125, -0.026885986328125, -0.00324249267578125, 0.0156097412109375, 0.0123138427734375, 0.04595947265625, -0.0107879638671875, 0.010833740234375, -0.040679931640625, 0.02337646484375, -0.0047454833984375, 0.01215362548828125, 0.00089263916015625, -0.01517486572265625, 0.0352783203125, 0.04949951171875, -0.026519775390625, -0.001979827880859375, 0.01174163818359375, -0.0196075439453125, -0.017791748046875, -0.0163116455078125, -0.03240966796875, -0.002925872802734375, 0.07196044921875, 0.062103271484375, 0.0270233154296875, -0.018798828125, -0.0239105224609375, -0.0418701171875, 0.0132293701171875, -0.0289306640625, 0.0157470703125, -0.088134765625, -0.025970458984375, 0.0295867919921875, -0.0193023681640625, 0.005283355712890625, 0.0162811279296875, -0.03173828125, -0.007274627685546875, 0.015228271484375, -0.0030231475830078125, -0.050018310546875, -0.01325225830078125, 0.031982421875, -0.037139892578125, -0.0186920166015625, -0.0214385986328125, 0.0255584716796875, -0.004703521728515625, -0.042694091796875, -0.037139892578125, -0.0411376953125, -0.026153564453125, 0.045196533203125, -0.03204345703125, 0.062408447265625, -0.053497314453125, -0.011749267578125, -0.0255584716796875, 0.033905029296875, 0.0191650390625, 0.05316162109375, -0.033111572265625, 0.03375244140625, 0.041839599609375, -0.003582000732421875, -0.01302337646484375, 0.04095458984375, -0.009521484375, 0.03900146484375, 0.009765625, -0.022369384765625, 0.0626220703125, -0.06085205078125, -0.0192108154296875, 0.007518768310546875, -0.0213775634765625, -0.09381103515625, 0.05291748046875, -0.0104827880859375, 0.0322265625, 0.0447998046875 ]
c43d1c85fdd6bb472782732583f47efc7c3edeed
Wordpress Stackexchange Q: apply_filters('the_content', $content) alternative "the_content" filter can get added with other filters from plugins and themes which could alter content, when you simply want this to format the post_content to HTML format. Is there a better solution for this that other plugins do not add filters to and can format the post content to HTML format just like this filter do? A: The Core filters on the_content are: 131 add_filter( 'the_content', 'wptexturize' ); 132 add_filter( 'the_content', 'convert_smilies' ); 133 add_filter( 'the_content', 'convert_chars' ); 134 add_filter( 'the_content', 'wpautop' ); 135 add_filter( 'the_content', 'shortcode_unautop' ); 136 add_filter( 'the_content', 'prepend_attachment' ); You can apply whichever of those you'd like to any string you'd like. The second parameter is the name of a function which takes a string as input, so... $str = 'this is my content'; $str = wptexturize($str); $str = convert_smilies($str); $str = wpautop($str); And so on. Use the ones you want. Ignore the others. That should give you plenty of control. Plugins cannot hook in if there is no hook, but be careful robbing a theme of expected functionality is unfriendly and could break things. http://codex.wordpress.org/Function_Reference/wptexturize http://codex.wordpress.org/Function_Reference/convert_smilies http://codex.wordpress.org/Function_Reference/wpautop
Q: apply_filters('the_content', $content) alternative "the_content" filter can get added with other filters from plugins and themes which could alter content, when you simply want this to format the post_content to HTML format. Is there a better solution for this that other plugins do not add filters to and can format the post content to HTML format just like this filter do? A: The Core filters on the_content are: 131 add_filter( 'the_content', 'wptexturize' ); 132 add_filter( 'the_content', 'convert_smilies' ); 133 add_filter( 'the_content', 'convert_chars' ); 134 add_filter( 'the_content', 'wpautop' ); 135 add_filter( 'the_content', 'shortcode_unautop' ); 136 add_filter( 'the_content', 'prepend_attachment' ); You can apply whichever of those you'd like to any string you'd like. The second parameter is the name of a function which takes a string as input, so... $str = 'this is my content'; $str = wptexturize($str); $str = convert_smilies($str); $str = wpautop($str); And so on. Use the ones you want. Ignore the others. That should give you plenty of control. Plugins cannot hook in if there is no hook, but be careful robbing a theme of expected functionality is unfriendly and could break things. http://codex.wordpress.org/Function_Reference/wptexturize http://codex.wordpress.org/Function_Reference/convert_smilies http://codex.wordpress.org/Function_Reference/wpautop
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:442305", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134582" }
[ 0.011810302734375, 0.006122589111328125, -0.01560211181640625, -0.0139312744140625, 0.04156494140625, -0.056243896484375, 0.06146240234375, -0.026885986328125, 0.01213836669921875, 0.0190582275390625, 0.020294189453125, -0.04095458984375, -0.006420135498046875, -0.04449462890625, -0.0163116455078125, -0.036102294921875, 0.0123443603515625, -0.013214111328125, 0.012298583984375, -0.019287109375, 0.00443267822265625, 0.0038204193115234375, 0.00013387203216552734, -0.00872802734375, 0.0108642578125, -0.0284576416015625, 0.10003662109375, -0.01123046875, 0.0196990966796875, -0.00704193115234375, 0.0296478271484375, -0.0227508544921875, 0.06768798828125, 0.034423828125, -0.117919921875, 0.06280517578125, -0.011077880859375, -0.0040435791015625, -0.036102294921875, 0.038818359375, 0.007450103759765625, 0.005947113037109375, 0.046600341796875, 0.03826904296875, -0.0093536376953125, -0.0107421875, 0.036590576171875, -0.034881591796875, -0.01226806640625, 0.012481689453125, 0.0501708984375, -0.005401611328125, 0.057647705078125, -0.083251953125, 0.0003044605255126953, 0.0186004638671875, -0.07501220703125, 0.017669677734375, 0.0230560302734375, 0.0019044876098632812, -0.004390716552734375, -0.0216064453125, 0.0143890380859375, 0.0188140869140625, 0.0089111328125, 0.039794921875, 0.024993896484375, -0.010101318359375, -0.002857208251953125, 0.00737762451171875, -0.0028285980224609375, -0.029327392578125, 0.00557708740234375, -0.022491455078125, -0.011444091796875, -0.0046844482421875, -0.040283203125, -0.0233154296875, 0.03564453125, -0.017242431640625, 0.017303466796875, 0.0116729736328125, -0.003925323486328125, -0.0360107421875, 0.018341064453125, -0.00502777099609375, 0.0023937225341796875, -0.01412200927734375, -0.0007581710815429688, -0.00839996337890625, -0.004444122314453125, 0.03924560546875, -0.0227203369140625, 0.00595855712890625, 0.0013904571533203125, -0.03582763671875, 0.012054443359375, 0.0075225830078125, 0.005584716796875, 0.050201416015625, 0.036590576171875, -0.0797119140625, 0.10400390625, -0.05078125, 0.0174560546875, 0.05157470703125, 0.024200439453125, 0.0312042236328125, 0.06866455078125, -0.0035400390625, 0.01800537109375, 0.06591796875, -0.004047393798828125, -0.0215911865234375, -0.01483917236328125, 0.02099609375, -0.006237030029296875, -0.0172576904296875, 0.01386260986328125, -0.005767822265625, 0.009674072265625, -0.011627197265625, 0.025146484375, -0.04150390625, 0.006343841552734375, -0.02325439453125, -0.055877685546875, 0.00695037841796875, 0.039947509765625, -0.0232696533203125, -0.00424957275390625, 0.00922393798828125, 0.00921630859375, 0.0274505615234375, 0.00716400146484375, -0.0009336471557617188, 0.01383209228515625, -0.045989990234375, -0.0250091552734375, 0.02825927734375, -0.0260772705078125, 0.004482269287109375, 0.013214111328125, -0.060821533203125, 0.0005927085876464844, 0.0272064208984375, 0.0090484619140625, 0.018524169921875, 0.012359619140625, -0.0782470703125, 0.047119140625, -0.04559326171875, 0.036346435546875, -0.01041412353515625, -0.0364990234375, -0.047607421875, 0.007244110107421875, -0.04669189453125, 0.0084991455078125, -0.07049560546875, 0.0309600830078125, -0.0260772705078125, -0.0281982421875, -0.0239105224609375, -0.040863037109375, 0.01395416259765625, -0.0477294921875, 0.008697509765625, 0.010711669921875, 0.0012035369873046875, -0.005931854248046875, 0.00670623779296875, -0.01409149169921875, -0.0279388427734375, -0.0228271484375, -0.0176239013671875, -0.06591796875, 0.0413818359375, 0.03448486328125, 0.0290374755859375, 0.041717529296875, -0.015289306640625, 0.0582275390625, 0.0357666015625, -0.0501708984375, 0.0244598388671875, 0.006473541259765625, 0.033111572265625, 0.0291900634765625, 0.0031223297119140625, 0.0228729248046875, -0.01091766357421875, -0.0275421142578125, -0.00769805908203125, -0.006439208984375, -0.051300048828125, 0.0128326416015625, -0.0240478515625, 0.00983428955078125, 0.0394287109375, 0.039154052734375, -0.0011415481567382812, 0.032989501953125, -0.0206756591796875, -0.03204345703125, 0.0155792236328125, -0.00708770751953125, 0.0265350341796875, -0.0421142578125, -0.0237884521484375, 0.034271240234375, -0.006092071533203125, -0.0246124267578125, 0.006351470947265625, -0.02294921875, 0.0195159912109375, -0.046966552734375, -0.0265960693359375, 0.00014841556549072266, -0.004261016845703125, 0.025054931640625, -0.00853729248046875, -0.0006918907165527344, 0.00615692138671875, 0.055023193359375, -0.00711822509765625, -0.00807952880859375, 0.0012788772583007812, 0.0220794677734375, 0.01540374755859375, -0.033233642578125, 0.020355224609375, 0.06524658203125, 0.036285400390625, -0.03900146484375, -0.013092041015625, -0.01050567626953125, -0.05072021484375, -0.016571044921875, 0.0645751953125, 0.047271728515625, 0.08563232421875, -0.0131072998046875, -0.05328369140625, 0.11737060546875, -0.0265045166015625, 0.011810302734375, -0.051849365234375, 0.053375244140625, 0.051788330078125, -0.060302734375, -0.03265380859375, 0.03021240234375, -0.072998046875, 0.047210693359375, 0.0235748291015625, -0.010467529296875, -0.006671905517578125, -0.0154266357421875, 0.0099639892578125, 0.02020263671875, 0.0285186767578125, -0.0034694671630859375, 0.00013172626495361328, 0.028106689453125, 0.00873565673828125, 0.03253173828125, 0.0175628662109375, -0.0072021484375, -0.0158233642578125, 0.00531005859375, 0.0189056396484375, -0.006259918212890625, 0.02752685546875, 0.0285491943359375, -0.032196044921875, -0.04779052734375, 0.011688232421875, -0.001079559326171875, 0.006011962890625, -0.0021648406982421875, 0.06854248046875, -0.0091094970703125, -0.0247650146484375, -0.01462554931640625, -0.019866943359375, -0.0304412841796875, -0.007007598876953125, 0.01800537109375, -0.031524658203125, -0.00803375244140625, 0.04437255859375, 0.0016727447509765625, 0.0284881591796875, 0.01395416259765625, -0.0015897750854492188, 0.01302337646484375, -0.024566650390625, 0.0413818359375, -0.0391845703125, 0.020172119140625, 0.053619384765625, -0.002685546875, -0.02740478515625, -0.0010576248168945312, 0.0413818359375, 0.0187530517578125, -0.004253387451171875, -0.0006642341613769531, -0.0117034912109375, -0.01837158203125, -0.024261474609375, 0.0045013427734375, 0.0204315185546875, -0.041656494140625, -0.051788330078125, -0.039031982421875, -0.000514984130859375, -0.09283447265625, -0.0141754150390625, 0.003204345703125, -0.0836181640625, -0.0301361083984375, -0.01250457763671875, -0.052825927734375, 0.0167694091796875, 0.006626129150390625, 0.0007281303405761719, -0.01413726806640625, -0.0286102294921875, -0.0232086181640625, -0.03778076171875, -0.0472412109375, 0.042449951171875, -0.007411956787109375, 0.00958251953125, 0.004886627197265625, -0.01557159423828125, 0.0035610198974609375, -0.02313232421875, 0.01303863525390625, 0.050323486328125, 0.0009775161743164062, 0.0012006759643554688, -0.0160980224609375, 0.007259368896484375, -0.0248870849609375, 0.007549285888671875, 0.019561767578125, 0.0151519775390625, -0.0194549560546875, -0.0050201416015625, -0.0210418701171875, 0.039642333984375, 0.007678985595703125, 0.0323486328125, 0.033782958984375, 0.034332275390625, 0.03997802734375, -0.021728515625, 0.030731201171875, 0.00366973876953125, -0.01959228515625, 0.052734375, 0.018646240234375, -0.042388916015625, 0.037750244140625, -0.017608642578125, 0.002536773681640625, 0.01357269287109375, 0.04608154296875, 0.0023059844970703125, -0.0200042724609375, -0.0135955810546875, -0.037445068359375, -0.01047515869140625, 0.007633209228515625, -0.0210723876953125, 0.0242462158203125, 0.00817108154296875, 0.0128936767578125, 0.00962066650390625, -0.0087432861328125, -0.00015628337860107422, -0.05145263671875, 0.0693359375, -0.020416259765625, 0.008331298828125, -0.06768798828125, -0.03570556640625, -0.0232086181640625, 0.10321044921875, -0.019989013671875, -0.00743865966796875, 0.022979736328125, 0.02032470703125, 0.01495361328125, -0.0296478271484375, -0.0278778076171875, -0.050079345703125, -0.061859130859375, -0.01041412353515625, -0.02337646484375, -0.027069091796875, -0.0015115737915039062, 0.0013380050659179688, -0.01433563232421875, -0.0302734375, 0.0196380615234375, -0.0003323554992675781, 0.015350341796875, 0.0308990478515625, -0.01396942138671875, 0.01525115966796875, -0.01483917236328125, -0.0141143798828125, -0.063232421875, -0.007373809814453125, -0.0070648193359375, 0.032684326171875, 0.0312042236328125, -0.064208984375, 0.008270263671875, 0.055145263671875, -0.01090240478515625, -0.0173492431640625, 0.005298614501953125, 0.0247802734375, 0.0026302337646484375, -0.0006613731384277344, 0.0175933837890625, -0.036041259765625, -0.01611328125, -0.03564453125, -0.03448486328125, 0.0537109375, -0.0184478759765625, 0.048492431640625, -0.0245819091796875, -0.0005688667297363281, -0.04864501953125, -0.0233917236328125, -0.050628662109375, -0.00612640380859375, -0.061126708984375, 0.0207672119140625, -0.00960540771484375, -0.06365966796875, 0.057647705078125, 0.0560302734375, -0.029266357421875, -0.01502227783203125, 0.05084228515625, 0.0212554931640625, -0.0501708984375, -0.035369873046875, -0.035247802734375, 0.0184783935546875, -0.026947021484375, 0.08612060546875, 0.050140380859375, -0.015960693359375, 0.07952880859375, 0.006702423095703125, 0.005218505859375, -0.03411865234375, 0.05999755859375, 0.0112457275390625, 0.02471923828125, -0.0016536712646484375, 0.00557708740234375, 0.0166168212890625, -0.02593994140625, -0.01641845703125, -0.0020313262939453125, 0.046142578125, 0.006763458251953125, -0.0007600784301757812, 0.0101470947265625, -0.0007462501525878906, -0.0364990234375, 0.01410675048828125, 0.037933349609375, 0.0041046142578125, 0.0005059242248535156, 0.0232391357421875, -0.0019054412841796875, 0.029205322265625, 0.00576019287109375, -0.007701873779296875, 0.041595458984375, -0.00839996337890625, 0.049407958984375, -0.00982666015625, 0.0253753662109375, -0.0467529296875, -0.002490997314453125, 0.019805908203125, 0.0022735595703125, 0.002437591552734375, -0.0281524658203125, -0.0181121826171875, -0.0027923583984375, -0.0017986297607421875, 0.00931549072265625, -0.01348114013671875, 0.0335693359375, -0.01230621337890625, 0.0010385513305664062, 0.039337158203125, 0.01549530029296875, -0.0230712890625, -0.003208160400390625, -0.0029296875, 0.0010204315185546875, 0.04217529296875, -0.006801605224609375, -0.0149078369140625, 0.02886962890625, -0.00812530517578125, 0.016204833984375, 0.01024627685546875, 0.0254669189453125, 0.0294342041015625, -0.0246124267578125, 0.004848480224609375, -0.01010894775390625, -0.0200347900390625, -0.052764892578125, -0.03778076171875, 0.04022216796875, 0.053466796875, -0.043304443359375, -0.0231170654296875, 0.0160980224609375, 0.0015869140625, 0.00679779052734375, -0.0136260986328125, -0.019989013671875, 0.00046753883361816406, -0.01448822021484375, 0.0246734619140625, 0.028350830078125, 0.02001953125, -0.0013875961303710938, -0.001800537109375, 0.0010061264038085938, 0.007965087890625, 0.023590087890625, -0.04425048828125, 0.0059356689453125, -0.0035152435302734375, 0.039306640625, -0.017852783203125, -0.01226043701171875, -0.0657958984375, -0.00325775146484375, -0.01312255859375, 0.0194549560546875, 0.058013916015625, -0.0022106170654296875, 0.033050537109375, -0.0384521484375, 0.01068115234375, -0.006107330322265625, 0.00037288665771484375, 0.01824951171875, 0.00308990478515625, -0.026458740234375, 0.00894927978515625, -0.0362548828125, -0.01058197021484375, -0.0305633544921875, -0.032958984375, -0.0281829833984375, -0.0009360313415527344, 0.005313873291015625, 0.01551055908203125, 0.0020122528076171875, -0.005016326904296875, -0.022247314453125, -0.003498077392578125, -0.0011749267578125, 0.050048828125, -0.02880859375, 0.07177734375, 0.029693603515625, 0.06884765625, 0.00446319580078125, 0.01319122314453125, -0.01190185546875, -0.01561737060546875, 0.008575439453125, -0.0655517578125, -0.022491455078125, -0.003559112548828125, 0.00872039794921875, 0.038787841796875, -0.01264190673828125, 0.0039215087890625, 0.03009033203125, -0.022979736328125, -0.0269622802734375, -0.0302581787109375, 0.035736083984375, -0.041046142578125, 0.01386260986328125, -0.01555633544921875, -0.02105712890625, 0.0005693435668945312, -0.01218414306640625, 0.013031005859375, 0.01084136962890625, -0.003894805908203125, -0.0112457275390625, 0.0198822021484375, 0.0127105712890625, 0.00628662109375, 0.02484130859375, -0.0113677978515625, -0.000782012939453125, 0.00958251953125, -0.019561767578125, -0.011688232421875, -0.017181396484375, 0.031829833984375, 0.0095062255859375, 0.03924560546875, -0.00661468505859375, -0.0089874267578125, 0.00835418701171875, -0.03021240234375, 0.0306243896484375, 0.07818603515625, 0.075439453125, -0.10662841796875, 0.00632476806640625, 0.01114654541015625, -0.016326904296875, -0.00264739990234375, 0.0083160400390625, 0.02899169921875, 0.03997802734375, 0.044769287109375, -0.0011119842529296875, 0.01018524169921875, 0.0478515625, -0.0117950439453125, -0.030670166015625, -0.0223236083984375, 0.0491943359375, 0.0118560791015625, -0.0192413330078125, 0.0041046142578125, 0.0015544891357421875, -0.032684326171875, -0.01377105712890625, 0.0182342529296875, -0.025360107421875, -0.032745361328125, -0.038177490234375, -0.01479339599609375, 0.01439666748046875, -0.01511383056640625, 0.00412750244140625, -0.0195159912109375, 0.030670166015625, 0.0762939453125, -0.0343017578125, 0.022857666015625, 0.0411376953125, 0.00414276123046875, -0.00981903076171875, -0.0112152099609375, 0.0024700164794921875, 0.04681396484375, -0.01180267333984375, 0.024810791015625, 0.0079498291015625, -0.009918212890625, 0.002960205078125, -0.045623779296875, 0.04571533203125, -0.0190277099609375, -0.0212554931640625, 0.031280517578125, -0.058837890625, -0.02301025390625, -0.009185791015625, 0.0187835693359375, -0.07403564453125, -0.039093017578125, -0.0033512115478515625, -0.040924072265625, 0.002574920654296875, -0.0127716064453125, -0.0906982421875, 0.11444091796875, -0.006557464599609375, 0.0594482421875, 0.018524169921875, 0.019866943359375, -0.050201416015625, -0.0274658203125, -0.00909423828125, 0.04034423828125, -0.018035888671875, 0.0222930908203125, -0.0288238525390625, -0.0016317367553710938, 0.016510009765625, 0.03692626953125, 0.02825927734375, 0.01309967041015625, -0.0479736328125, -0.01103973388671875, 0.0089263916015625, 0.0168914794921875, 0.003986358642578125, 0.05157470703125, -0.0186614990234375, 0.0285797119140625, 0.015838623046875, -0.055450439453125, 0.0126495361328125, -0.035614013671875, -0.02520751953125, 0.0063629150390625, -0.0007262229919433594, -0.0029964447021484375, 0.00656890869140625, 0.00688934326171875, -0.035797119140625, -0.01129150390625, 0.01503753662109375, -0.023681640625, -0.0196990966796875, 0.050933837890625, 0.0203857421875, -0.082275390625, -0.04119873046875, -0.04510498046875, 0.041595458984375, -0.003665924072265625, 0.06390380859375, 0.01464080810546875, 0.01317596435546875, 0.08026123046875, -0.018585205078125, 0.017578125, 0.01000213623046875, -0.0177001953125, 0.02703857421875, 0.0120697021484375, -0.0025634765625, -0.028472900390625, 0.0158843994140625, 0.004505157470703125, 0.0263214111328125, -0.03485107421875, -0.02301025390625, 0.01332855224609375, 0.0091400146484375, -0.006626129150390625, -0.021209716796875, -0.01296234130859375, -0.049652099609375, -0.01605224609375, -0.058837890625, -0.0203399658203125, 0.048675537109375, -0.0012121200561523438, -0.00914764404296875, 0.01424407958984375, 0.01435089111328125, -0.03369140625, -0.0211944580078125, -0.009521484375, 0.0132904052734375, 0.06756591796875, 0.021728515625, 0.071044921875, -0.051666259765625, -0.02984619140625, -0.0113067626953125, 0.0086822509765625, -0.01169586181640625, 0.0116729736328125, -0.0012006759643554688, 0.005550384521484375, -0.0273284912109375, 0.0225982666015625, 0.03497314453125, -0.033599853515625, 0.03704833984375, 0.04327392578125, -0.045013427734375, 0.0002313852310180664, 0.033599853515625, -0.00653839111328125, 0.017364501953125, -0.0226898193359375, -0.0174102783203125, -0.00720977783203125, -0.0161285400390625, -0.022186279296875, 0.003337860107421875, 0.0207672119140625, 0.0084686279296875, 0.03094482421875, -0.0056915283203125, -0.0175628662109375, 0.05792236328125, -0.00815582275390625, 0.046173095703125, 0.00836181640625, -0.06475830078125, 0.00592803955078125, -0.03790283203125, -0.078857421875, 0.0352783203125, 0.042633056640625, -0.03369140625, 0.02001953125, -0.00473785400390625, -0.01605224609375, -0.0105438232421875, 0.0223388671875, -0.003429412841796875, -0.017120361328125, 0.0070953369140625, -0.028289794921875, -0.0031414031982421875, 0.0022678375244140625, -0.0312042236328125, 0.0518798828125, 0.0276031494140625, 0.1036376953125, -0.0469970703125, 0.046539306640625, -0.02789306640625, -0.03564453125, -0.0233306884765625, -0.00630950927734375, -0.002155303955078125, 0.0002410411834716797, 0.00008505582809448242, -0.01299285888671875, 0.0194091796875, -0.0267333984375, 0.050567626953125, -0.033294677734375, -0.04107666015625, -0.0077056884765625, 0.0235595703125, -0.015869140625, 0.0601806640625, 0.014007568359375, 0.0169677734375, -0.0300750732421875, -0.026092529296875, 0.07049560546875, 0.07952880859375, 0.0462646484375, 0.014892578125, 0.0306549072265625, 0.007427215576171875, 0.023529052734375, -0.003261566162109375, 0.033355712890625, 0.035797119140625, -0.003681182861328125, -0.030181884765625, 0.0205841064453125, -0.009735107421875, 0.0171966552734375, 0.0193634033203125, 0.031494140625, 0.036865234375, -0.03509521484375, -0.040252685546875, 0.00646209716796875, 0.028411865234375, 0.00797271728515625, 0.0184478759765625, -0.0036640167236328125, -0.026153564453125, -0.01806640625, 0.0275115966796875, -0.0032138824462890625, -0.035675048828125, -0.02001953125, -0.032806396484375, -0.0087432861328125, -0.075439453125, -0.006160736083984375, -0.00684356689453125, 0.04400634765625, 0.005954742431640625, -0.02978515625, -0.0157470703125, -0.006153106689453125, 0.031585693359375, 0.0104522705078125, 0.02069091796875, -0.0254058837890625, -0.019134521484375, -0.0160675048828125, -0.041900634765625, -0.07635498046875, 0.0552978515625, -0.03240966796875, -0.001617431640625, 0.040557861328125, -0.01171112060546875, -0.0595703125, 0.017852783203125, -0.027801513671875, 0.060455322265625, -0.018035888671875, -0.0068206787109375, 0.04010009765625, -0.00415802001953125, -0.0289764404296875, -0.01446533203125, 0.00555419921875, -0.0039520263671875, 0.00705718994140625, 0.03216552734375, -0.030792236328125, -0.0223846435546875, -0.041534423828125, -0.053070068359375, -0.031982421875, 0.0269622802734375, -0.0406494140625, -0.0044097900390625, 0.0014190673828125, 0.00852203369140625, -0.03436279296875, -0.025543212890625, 0.01305389404296875, -0.04022216796875, -0.00582122802734375, 0.0021305084228515625, 0.053192138671875, -0.018829345703125, -0.008697509765625, -0.043701171875, 0.0234375, 0.012115478515625, 0.0304412841796875, -0.01934814453125, -0.017669677734375, 0.0103302001953125, 0.0116729736328125, -0.025634765625, -0.0189666748046875, 0.00965118408203125, -0.004840850830078125, -0.01425933837890625, -0.0133056640625, -0.0462646484375, -0.018280029296875, 0.056396484375, 0.06976318359375, 0.0178680419921875, -0.022674560546875, -0.00244140625, -0.007537841796875, -0.023712158203125, 0.0024204254150390625, 0.0278472900390625, -0.06121826171875, -0.01534271240234375, 0.007476806640625, -0.0126953125, 0.03204345703125, -0.03363037109375, -0.00951385498046875, -0.0234527587890625, -0.033111572265625, -0.0020809173583984375, -0.01302337646484375, -0.06939697265625, 0.047576904296875, -0.027099609375, 0.004070281982421875, 0.005702972412109375, 0.03857421875, 0.0145111083984375, 0.040191650390625, -0.01293182373046875, -0.023162841796875, 0.0210113525390625, -0.001590728759765625, 0.0235443115234375, 0.0202789306640625, 0.0182647705078125, 0.0016574859619140625, -0.016143798828125, -0.0026836395263671875, -0.005786895751953125, 0.00848388671875, 0.0171356201171875, 0.0076141357421875, -0.01291656494140625, 0.00119781494140625, -0.038848876953125, -0.002635955810546875, -0.01934814453125, 0.002471923828125, 0.0003116130828857422, -0.004024505615234375, 0.048187255859375, -0.0261383056640625, 0.00661468505859375, -0.00841522216796875, 0.01065826416015625, -0.032562255859375, -0.004924774169921875, -0.0838623046875, 0.020599365234375, -0.0004363059997558594 ]
f49d47f2806d883717ba0f7a83887ae40851dd66
Wordpress Stackexchange Q: How do you get the count of posts in an archive page? I have a custom posts archive page of the type archive-my_custom_post_type.php and I am using the "standard" loop which consists of the ever-so famous <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> ... <?php endwhile; ?> <?php endif; ?> Which seems to use global variables. How would I go about getting the total amount of posts for this page? I need it to calculate the width of the columns I'm going to display these things in. Well, I found the answer: After some tedious inspection on the $GLOBALS variable in PHP, I found out you can get a reference to the WP_Query that was used to generate the page with $wp_the_query. And, lo and behold, you can get the amount of posts using this handy trick: $countPosts = $wp_the_query->post_count; Hope this helps anyone who has the same problem I had! A: As stated in the edit: $count = $GLOBALS['wp_query']->post_count; Another option would be to use $count = $GLOBALS['wp_query']->found_posts
Q: How do you get the count of posts in an archive page? I have a custom posts archive page of the type archive-my_custom_post_type.php and I am using the "standard" loop which consists of the ever-so famous <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> ... <?php endwhile; ?> <?php endif; ?> Which seems to use global variables. How would I go about getting the total amount of posts for this page? I need it to calculate the width of the columns I'm going to display these things in. Well, I found the answer: After some tedious inspection on the $GLOBALS variable in PHP, I found out you can get a reference to the WP_Query that was used to generate the page with $wp_the_query. And, lo and behold, you can get the amount of posts using this handy trick: $countPosts = $wp_the_query->post_count; Hope this helps anyone who has the same problem I had! A: As stated in the edit: $count = $GLOBALS['wp_query']->post_count; Another option would be to use $count = $GLOBALS['wp_query']->found_posts
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:442317", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134613" }
[ 0.035003662109375, -0.01123046875, 0.006145477294921875, 0.03240966796875, 0.0048828125, -0.04156494140625, 0.0885009765625, -0.0153656005859375, 0.00872039794921875, 0.0029773712158203125, -0.032379150390625, -0.01457977294921875, -0.03729248046875, -0.02288818359375, -0.003986358642578125, -0.042144775390625, 0.053985595703125, -0.04437255859375, 0.022491455078125, -0.00012886524200439453, 0.003032684326171875, 0.0382080078125, 0.03448486328125, 0.04730224609375, 0.0194244384765625, 0.01898193359375, 0.08111572265625, -0.0292816162109375, 0.0268096923828125, -0.018646240234375, 0.02325439453125, -0.0203704833984375, 0.0283050537109375, -0.021881103515625, 0.0188446044921875, 0.0283355712890625, 0.00907135009765625, -0.0100860595703125, 0.0087432861328125, 0.01471710205078125, 0.0258331298828125, -0.0211944580078125, 0.048370361328125, -0.036773681640625, 0.032379150390625, -0.0154571533203125, 0.0184478759765625, -0.07647705078125, 0.0211334228515625, -0.0251007080078125, -0.0129241943359375, 0.05206298828125, 0.010650634765625, -0.032257080078125, 0.012420654296875, 0.0301055908203125, 0.05853271484375, -0.018707275390625, 0.0513916015625, -0.082763671875, -0.08270263671875, -0.026885986328125, 0.0677490234375, 0.0081939697265625, -0.0140228271484375, 0.0036468505859375, 0.0272674560546875, 0.01904296875, -0.006580352783203125, -0.044281005859375, -0.005016326904296875, 0.0167236328125, -0.0003380775451660156, 0.01104736328125, -0.0013208389282226562, -0.053436279296875, 0.0225067138671875, -0.03369140625, 0.0007681846618652344, 0.04736328125, -0.0166778564453125, 0.0125885009765625, -0.04864501953125, 0.00832366943359375, -0.0308685302734375, 0.004383087158203125, -0.0287933349609375, -0.00891876220703125, 0.006313323974609375, -0.0293121337890625, 0.007213592529296875, -0.0182647705078125, -0.0211944580078125, 0.0283050537109375, 0.012786865234375, -0.0465087890625, 0.03021240234375, 0.0675048828125, -0.035797119140625, -0.048065185546875, -0.017059326171875, -0.0120086669921875, -0.04547119140625, -0.0218963623046875, 0.01270294189453125, 0.02008056640625, 0.01153564453125, 0.04132080078125, 0.046417236328125, 0.01934814453125, 0.008026123046875, 0.03173828125, -0.033538818359375, -0.01605224609375, -0.045928955078125, 0.0301361083984375, -0.032867431640625, -0.0165557861328125, -0.0018968582153320312, 0.005413055419921875, -0.0168914794921875, -0.00841522216796875, -0.002689361572265625, 0.018585205078125, 0.00911712646484375, -0.018218994140625, -0.006572723388671875, -0.00284576416015625, 0.026092529296875, 0.070556640625, -0.04046630859375, -0.015960693359375, 0.0258026123046875, -0.006610870361328125, -0.00571441650390625, -0.0408935546875, 0.01849365234375, -0.01131439208984375, -0.003810882568359375, 0.00848388671875, 0.0035190582275390625, -0.03509521484375, -0.0016145706176757812, -0.00960540771484375, 0.0140838623046875, 0.0228424072265625, 0.034454345703125, 0.0267791748046875, -0.036529541015625, -0.0775146484375, 0.043853759765625, 0.0150604248046875, 0.025604248046875, 0.01152801513671875, -0.0201568603515625, -0.00897216796875, -0.0113067626953125, -0.011016845703125, -0.006984710693359375, -0.00626373291015625, 0.0264892578125, 0.005260467529296875, -0.0275726318359375, 0.0053253173828125, -0.0296630859375, 0.00577545166015625, -0.0005521774291992188, -0.005367279052734375, 0.01239776611328125, -0.0198974609375, 0.0250396728515625, -0.005458831787109375, 0.021270751953125, -0.009521484375, -0.00978851318359375, 0.0021305084228515625, -0.03814697265625, -0.031280517578125, 0.0205535888671875, 0.047088623046875, -0.0007085800170898438, -0.0171356201171875, -0.01416015625, 0.0170745849609375, -0.00978851318359375, -0.002964019775390625, 0.00034737586975097656, -0.0179901123046875, 0.002750396728515625, 0.002399444580078125, 0.00933074951171875, 0.0423583984375, -0.00839996337890625, 0.023284912109375, 0.00611114501953125, 0.00037479400634765625, -0.0304107666015625, -0.0020542144775390625, -0.01739501953125, -0.0162811279296875, 0.036834716796875, 0.0005545616149902344, -0.0005159378051757812, 0.00447845458984375, -0.052459716796875, 0.00888824462890625, -0.0093536376953125, 0.01035308837890625, -0.0184173583984375, 0.0386962890625, 0.042877197265625, 0.01384735107421875, -0.03668212890625, -0.01507568359375, -0.0119476318359375, -0.017578125, 0.00872039794921875, -0.00670623779296875, -0.0283203125, -0.0160369873046875, -0.0250091552734375, 0.005565643310546875, -0.047027587890625, 0.04302978515625, 0.06500244140625, -0.03118896484375, -0.0212249755859375, -0.04156494140625, 0.0011529922485351562, 0.00444793701171875, -0.0838623046875, 0.06097412109375, 0.01454925537109375, 0.01332855224609375, -0.034332275390625, -0.0298309326171875, -0.039306640625, -0.06622314453125, 0.01727294921875, 0.07080078125, 0.0506591796875, 0.023162841796875, 0.005962371826171875, -0.01910400390625, 0.060516357421875, -0.03070068359375, 0.020751953125, -0.0382080078125, 0.0194244384765625, 0.04229736328125, 0.024810791015625, -0.00298309326171875, 0.01500701904296875, 0.0084228515625, 0.0237579345703125, 0.019287109375, 0.0297393798828125, 0.030609130859375, -0.03558349609375, 0.0516357421875, -0.0120086669921875, 0.0143890380859375, -0.004180908203125, -0.01212310791015625, 0.0156097412109375, -0.0078277587890625, 0.0192718505859375, 0.00885009765625, -0.0218048095703125, 0.00746917724609375, 0.01107025146484375, -0.01171875, -0.00627899169921875, -0.05096435546875, -0.06280517578125, 0.01226043701171875, -0.0699462890625, 0.061492919921875, 0.0229034423828125, -0.047515869140625, -0.0227203369140625, 0.0204925537109375, -0.0401611328125, -0.0134124755859375, -0.026336669921875, -0.08074951171875, 0.01085662841796875, 0.0267181396484375, -0.01346588134765625, 0.003772735595703125, 0.005527496337890625, 0.050262451171875, -0.0219573974609375, 0.03704833984375, 0.00917816162109375, 0.004825592041015625, 0.0287933349609375, -0.09149169921875, 0.0655517578125, -0.05291748046875, 0.070556640625, 0.075439453125, -0.033966064453125, 0.041900634765625, 0.005367279052734375, 0.0026683807373046875, -0.000911712646484375, 0.0297698974609375, 0.012237548828125, -0.0244140625, -0.028564453125, 0.018463134765625, 0.0250244140625, 0.058990478515625, -0.006313323974609375, -0.032379150390625, -0.0005850791931152344, 0.024932861328125, -0.08404541015625, -0.082275390625, 0.03839111328125, -0.1207275390625, -0.00887298583984375, -0.021514892578125, -0.06927490234375, -0.00817108154296875, 0.03204345703125, 0.0011701583862304688, -0.0357666015625, -0.0191497802734375, -0.03350830078125, -0.0709228515625, -0.08734130859375, -0.019683837890625, 0.0229644775390625, 0.034912109375, 0.0006990432739257812, 0.08892822265625, 0.0018672943115234375, -0.0745849609375, -0.021575927734375, 0.03375244140625, -0.021942138671875, 0.01236724853515625, 0.0291595458984375, -0.0161590576171875, -0.0283050537109375, 0.0173187255859375, 0.0078582763671875, 0.0147552490234375, -0.0140380859375, -0.004680633544921875, 0.01392364501953125, -0.0125579833984375, 0.03271484375, 0.026641845703125, -0.0268096923828125, -0.00585174560546875, 0.0288848876953125, -0.046356201171875, -0.062225341796875, 0.0035686492919921875, -0.050323486328125, -0.00635528564453125, 0.029876708984375, 0.0121917724609375, -0.034881591796875, 0.030975341796875, -0.00717926025390625, -0.0122833251953125, -0.005611419677734375, -0.035980224609375, 0.0675048828125, 0.010284423828125, 0.0261993408203125, 0.00521087646484375, -0.01177978515625, -0.04412841796875, 0.035614013671875, -0.0015840530395507812, -0.00791168212890625, 0.005229949951171875, -0.003917694091796875, 0.0215301513671875, -0.049774169921875, 0.0472412109375, 0.05242919921875, 0.02239990234375, 0.01471710205078125, -0.053131103515625, 0.027069091796875, 0.08319091796875, -0.0308380126953125, -0.04144287109375, -0.0270843505859375, 0.008270263671875, 0.033447265625, -0.043731689453125, 0.050872802734375, -0.044647216796875, -0.0867919921875, 0.011505126953125, -0.017547607421875, -0.0197601318359375, -0.0213775634765625, 0.000919342041015625, -0.052001953125, -0.04437255859375, 0.01678466796875, -0.030242919921875, 0.0218353271484375, -0.023345947265625, -0.026336669921875, -0.005657196044921875, -0.0089874267578125, -0.0479736328125, -0.0728759765625, -0.0207977294921875, 0.001239776611328125, 0.0379638671875, -0.011444091796875, -0.016876220703125, -0.00164794921875, 0.041534423828125, 0.0143280029296875, 0.018585205078125, -0.004505157470703125, 0.006122589111328125, -0.00498199462890625, -0.0164031982421875, -0.007282257080078125, -0.034423828125, -0.005954742431640625, -0.0106658935546875, -0.003246307373046875, -0.0023593902587890625, -0.036224365234375, -0.023712158203125, -0.0206451416015625, -0.01293182373046875, -0.0211639404296875, 0.00015401840209960938, 0.0256500244140625, 0.026580810546875, -0.0010881423950195312, 0.0101776123046875, 0.002971649169921875, -0.013885498046875, 0.023956298828125, 0.0518798828125, -0.0259857177734375, 0.00923919677734375, 0.07232666015625, 0.01378631591796875, -0.037322998046875, -0.0865478515625, -0.0006122589111328125, 0.03533935546875, -0.038909912109375, 0.047149658203125, 0.0328369140625, -0.007366180419921875, 0.0219573974609375, -0.0001138448715209961, 0.0008754730224609375, -0.01404571533203125, 0.02984619140625, -0.0035724639892578125, -0.0139007568359375, 0.004009246826171875, -0.0185089111328125, 0.0177459716796875, 0.002223968505859375, -0.0178680419921875, -0.001079559326171875, 0.0384521484375, 0.048004150390625, -0.0213623046875, 0.0170440673828125, -0.0256500244140625, -0.0244903564453125, 0.00704193115234375, -0.012969970703125, 0.048065185546875, 0.00785064697265625, 0.00470733642578125, 0.02130126953125, 0.01507568359375, 0.0224609375, 0.014556884765625, 0.042388916015625, -0.0037555694580078125, 0.047393798828125, -0.0024566650390625, 0.00661468505859375, -0.0075225830078125, -0.0063934326171875, 0.022308349609375, -0.0082855224609375, -0.05194091796875, 0.0097503662109375, -0.002689361572265625, -0.012542724609375, 0.0219573974609375, -0.034912109375, 0.06463623046875, 0.04345703125, -0.0312347412109375, 0.00330352783203125, -0.0265960693359375, -0.042388916015625, -0.058380126953125, 0.0240325927734375, 0.01043701171875, -0.00382232666015625, 0.0113677978515625, 0.0716552734375, -0.01502227783203125, 0.0474853515625, -0.0205078125, -0.0106658935546875, -0.00909423828125, 0.07672119140625, 0.040069580078125, -0.059967041015625, -0.0200042724609375, 0.049560546875, -0.018890380859375, -0.00910186767578125, -0.00955963134765625, 0.0207977294921875, 0.026580810546875, 0.00423431396484375, 0.0013637542724609375, -0.004505157470703125, -0.0184783935546875, -0.01861572265625, 0.01018524169921875, 0.00444793701171875, -0.00940704345703125, -0.031097412109375, -0.0131683349609375, 0.02716064453125, 0.0169219970703125, -0.0223846435546875, -0.0004603862762451172, -0.040283203125, 0.01934814453125, -0.0228729248046875, 0.0035495758056640625, 0.0051116943359375, -0.001712799072265625, -0.04718017578125, -0.024322509765625, -0.0130767822265625, 0.0030193328857421875, -0.02398681640625, -0.008941650390625, -0.0252227783203125, 0.031829833984375, -0.02362060546875, 0.0217742919921875, -0.0109100341796875, -0.01043701171875, 0.008697509765625, 0.006519317626953125, 0.0653076171875, 0.0269775390625, -0.01690673828125, -0.016693115234375, -0.035888671875, -0.0216217041015625, 0.0452880859375, 0.0106048583984375, -0.036407470703125, -0.00461578369140625, 0.0101165771484375, 0.01165771484375, -0.01354217529296875, -0.036529541015625, -0.017852783203125, 0.01513671875, 0.02337646484375, 0.0281829833984375, -0.00909423828125, 0.05816650390625, 0.0030918121337890625, 0.0309600830078125, -0.0024623870849609375, 0.0231475830078125, 0.0098419189453125, -0.0303192138671875, 0.0386962890625, -0.03045654296875, -0.025482177734375, -0.021759033203125, -0.020111083984375, -0.06072998046875, -0.0293121337890625, -0.01322174072265625, -0.0215301513671875, -0.0109405517578125, 0.01059722900390625, -0.01519775390625, 0.01140594482421875, 0.0211334228515625, -0.030914306640625, 0.02801513671875, -0.0121002197265625, 0.0005707740783691406, 0.0266265869140625, -0.01381683349609375, 0.026580810546875, 0.01401519775390625, 0.012939453125, -0.016204833984375, -0.034698486328125, 0.0595703125, 0.07861328125, 0.022613525390625, 0.040924072265625, 0.0291748046875, 0.016265869140625, -0.0139617919921875, 0.0164337158203125, 0.0009131431579589844, -0.0009975433349609375, 0.05242919921875, -0.004467010498046875, -0.0290374755859375, 0.0157470703125, -0.0430908203125, 0.0170135498046875, -0.00933837890625, 0.03436279296875, 0.0084991455078125, 0.0038242340087890625, 0.0150299072265625, -0.026824951171875, 0.0114593505859375, -0.006927490234375, -0.0245361328125, -0.034088134765625, 0.072509765625, -0.0132598876953125, -0.022003173828125, 0.027923583984375, 0.01169586181640625, 0.0020751953125, -0.00733184814453125, 0.0230560302734375, 0.0122222900390625, -0.033050537109375, 0.0364990234375, 0.00748443603515625, 0.029022216796875, -0.011260986328125, 0.01172637939453125, -0.020660400390625, 0.039581298828125, -0.018157958984375, 0.049560546875, -0.06024169921875, 0.0276947021484375, -0.0224456787109375, 0.0036106109619140625, 0.037200927734375, 0.046234130859375, -0.01303863525390625, 0.007720947265625, 0.027374267578125, -0.0234832763671875, -0.060638427734375, -0.012298583984375, 0.023284912109375, 0.031890869140625, -0.032562255859375, 0.033172607421875, -0.0244293212890625, -0.0259246826171875, -0.00955963134765625, 0.020751953125, 0.084228515625, -0.036590576171875, -0.022125244140625, 0.031982421875, 0.0374755859375, -0.0190887451171875, -0.0173797607421875, 0.04083251953125, -0.0728759765625, -0.0100555419921875, 0.0229949951171875, 0.022064208984375, -0.0186309814453125, 0.01361083984375, -0.033447265625, 0.08721923828125, -0.041168212890625, -0.00795745849609375, 0.0050201416015625, 0.0555419921875, 0.0081024169921875, 0.052337646484375, -0.053375244140625, 0.0672607421875, -0.01520538330078125, 0.059783935546875, -0.08538818359375, -0.0101165771484375, 0.00867462158203125, 0.039886474609375, 0.0296173095703125, -0.00272369384765625, 0.001972198486328125, -0.036285400390625, 0.0205230712890625, 0.0743408203125, 0.0148162841796875, 0.0007390975952148438, 0.044525146484375, 0.071533203125, 0.07073974609375, -0.0467529296875, 0.0281829833984375, -0.01739501953125, 0.0192108154296875, 0.049041748046875, 0.0128936767578125, 0.0015668869018554688, 0.01042938232421875, 0.015777587890625, -0.041015625, 0.0020008087158203125, 0.0211029052734375, 0.0206298828125, -0.0236968994140625, 0.08380126953125, 0.046630859375, -0.05242919921875, -0.039459228515625, -0.031494140625, 0.04254150390625, -0.01206207275390625, 0.03375244140625, 0.0235443115234375, 0.01227569580078125, 0.0672607421875, -0.040863037109375, 0.007022857666015625, 0.004688262939453125, -0.027435302734375, 0.06201171875, 0.043304443359375, 0.037200927734375, -0.033782958984375, -0.03363037109375, 0.0210113525390625, 0.08056640625, -0.030792236328125, -0.0301055908203125, 0.020599365234375, 0.01116180419921875, -0.0292205810546875, 0.0161285400390625, 0.00930023193359375, 0.031524658203125, 0.04644775390625, -0.016815185546875, -0.024871826171875, 0.01165771484375, 0.0127716064453125, 0.005619049072265625, -0.0011081695556640625, 0.01525115966796875, -0.037078857421875, -0.01438140869140625, -0.04754638671875, 0.01546478271484375, 0.0633544921875, 0.033966064453125, 0.00566864013671875, -0.0242919921875, -0.01555633544921875, -0.007755279541015625, 0.0235137939453125, -0.00969696044921875, 0.015228271484375, -0.028167724609375, -0.01483917236328125, -0.0092926025390625, 0.03173828125, 0.00205230712890625, -0.033660888671875, 0.0308685302734375, 0.0248260498046875, -0.03863525390625, -0.02923583984375, -0.01044464111328125, -0.0253143310546875, -0.031585693359375, -0.01306915283203125, 0.0034618377685546875, 0.024200439453125, 0.0117950439453125, -0.0082855224609375, 0.027801513671875, 0.034332275390625, 0.002040863037109375, 0.006008148193359375, 0.016876220703125, -0.031402587890625, 0.0167083740234375, 0.0147552490234375, 0.055145263671875, 0.0275726318359375, -0.0750732421875, -0.0188751220703125, -0.01136016845703125, -0.014068603515625, 0.038238525390625, 0.039794921875, -0.0272064208984375, 0.033050537109375, -0.004169464111328125, -0.02459716796875, 0.00980377197265625, 0.00658416748046875, 0.013671875, 0.034881591796875, 0.01605224609375, 0.0202178955078125, -0.037567138671875, -0.056396484375, 0.0010156631469726562, 0.060638427734375, 0.0283966064453125, -0.01035308837890625, 0.00864410400390625, 0.045074462890625, -0.0106353759765625, -0.01129913330078125, -0.01332855224609375, 0.003780364990234375, 0.0182952880859375, -0.0012149810791015625, -0.00119781494140625, -0.0156097412109375, -0.034423828125, 0.00678253173828125, 0.050811767578125, -0.04437255859375, 0.0111846923828125, -0.01114654541015625, 0.01439666748046875, -0.02874755859375, -0.0035610198974609375, -0.031280517578125, 0.01509857177734375, 0.0244293212890625, -0.028961181640625, 0.0191192626953125, -0.032073974609375, 0.009063720703125, 0.0679931640625, -0.0184478759765625, -0.026153564453125, 0.0279693603515625, -0.0662841796875, 0.0292510986328125, 0.032470703125, -0.0010776519775390625, -0.00466156005859375, 0.03704833984375, -0.01322174072265625, 0.006404876708984375, 0.025390625, 0.03839111328125, 0.0162353515625, -0.0153656005859375, -0.02386474609375, -0.00934600830078125, 0.04412841796875, 0.00995635986328125, 0.016510009765625, -0.04595947265625, 0.00414276123046875, -0.0039215087890625, -0.0098114013671875, -0.0253448486328125, -0.036834716796875, 0.01476287841796875, 0.022491455078125, 0.0223846435546875, 0.01007080078125, -0.001682281494140625, -0.026702880859375, 0.016204833984375, 0.0004165172576904297, -0.0247650146484375, 0.0272674560546875, -0.0311737060546875, -0.0188751220703125, -0.037750244140625, -0.03485107421875, 0.0214996337890625, 0.0256500244140625, -0.021240234375, 0.00876617431640625, -0.04608154296875, -0.027191162109375, -0.007091522216796875, 0.025970458984375, 0.036529541015625, -0.042449951171875, 0.00989532470703125, 0.0203399658203125, 0.032440185546875, 0.0521240234375, 0.028289794921875, 0.0120086669921875, 0.0286102294921875, 0.01399993896484375, -0.038848876953125, -0.07958984375, 0.02899169921875, -0.04925537109375, -0.0013856887817382812, -0.01702880859375, 0.0152435302734375, 0.0250244140625, -0.0257110595703125, -0.07098388671875, 0.043365478515625, -0.0310516357421875, -0.039031982421875, -0.084228515625, 0.0201873779296875, 0.02972412109375, -0.01800537109375, -0.018798828125, -0.0185699462890625, -0.05157470703125, 0.0086669921875, 0.0177001953125, 0.01483154296875, 0.033447265625, -0.0029659271240234375, -0.07708740234375, -0.00820159912109375, -0.0228729248046875, 0.028961181640625, 0.016998291015625, -0.01824951171875, 0.0218353271484375, 0.0303497314453125, -0.044677734375, 0.00041222572326660156, -0.0269012451171875, 0.0167083740234375, -0.0027446746826171875, -0.0423583984375, -0.00901031494140625, -0.0225830078125, 0.0269622802734375, 0.02081298828125, 0.009429931640625, -0.0285186767578125, -0.003444671630859375, -0.003757476806640625, -0.041656494140625, -0.0182342529296875, 0.0141143798828125, -0.042816162109375, -0.01548004150390625, -0.0276336669921875, -0.0345458984375, -0.007007598876953125, -0.026123046875, -0.04730224609375, -0.0031719207763671875, -0.0574951171875, -0.00618743896484375, -0.00597381591796875, -0.013702392578125, 0.007549285888671875, -0.0149993896484375, -0.00696563720703125, -0.018829345703125, 0.02398681640625, -0.01213836669921875, 0.004222869873046875, -0.01529693603515625, 0.0113677978515625, -0.0196380615234375, 0.01482391357421875, -0.008056640625, 0.0048065185546875, -0.0271148681640625, 0.004367828369140625, 0.01708984375, 0.0109405517578125, -0.0089874267578125, -0.006683349609375, -0.002292633056640625, 0.01325225830078125, -0.024932861328125, 0.047607421875, -0.0006389617919921875, 0.03240966796875, 0.001682281494140625, 0.0201263427734375, -0.0283203125, -0.0025081634521484375, -0.0182647705078125, -0.037994384765625, -0.01107025146484375, -0.0095367431640625, -0.04840087890625, -0.0518798828125, -0.00012171268463134766, 0.021820068359375, -0.0019683837890625, 0.0181732177734375 ]
610291401b1d34739e88279b3b9cd3d264688981
Wordpress Stackexchange Q: Allow user to Publish, but not Edit or Delete I saw post Allow Content Author to Publish, But Not Edit or Delete but is not the same I need and I cannot ask there because of reputation ¬¬ I need an user that can publish any user's post but can't edit or delete any post, not only their. I tried with capabilites Read|Publish Post but can't see the Posts. With Read|Edit Posts|Publish Post can see the Posts but only publish own Posts. Is there a way of doing what I need ? Thank you in advance A: I am not sure what you're trying to do by not allowing Edit. Its only a job of Publishing the post it seems. (or maybe add some Meta description etc) But, if you're looking at creating a Moderator, you need to create additional user group & assign permissions. You can try http://wordpress.org/plugins/advanced-access-manager/ or similar plugins to modify granular permissions.
Q: Allow user to Publish, but not Edit or Delete I saw post Allow Content Author to Publish, But Not Edit or Delete but is not the same I need and I cannot ask there because of reputation ¬¬ I need an user that can publish any user's post but can't edit or delete any post, not only their. I tried with capabilites Read|Publish Post but can't see the Posts. With Read|Edit Posts|Publish Post can see the Posts but only publish own Posts. Is there a way of doing what I need ? Thank you in advance A: I am not sure what you're trying to do by not allowing Edit. Its only a job of Publishing the post it seems. (or maybe add some Meta description etc) But, if you're looking at creating a Moderator, you need to create additional user group & assign permissions. You can try http://wordpress.org/plugins/advanced-access-manager/ or similar plugins to modify granular permissions. A: I'm finishing up a project where we used Theme Hybrid's Members Plugin. It gives you granular control over what each role can do (you can also easily create custom roles), and this plugin would allow you to permit a user to post, but not edit or delete a post. There are more "advanced" ways of doing this, but I say, "pick you battles" and make use of a great free plugin as long as it doesn't create other problems for you.
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:442320", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134625" }
[ -0.00008499622344970703, 0.01480865478515625, -0.028045654296875, 0.02362060546875, 0.01105499267578125, -0.035064697265625, 0.0156402587890625, -0.047393798828125, 0.018524169921875, 0.0293121337890625, -0.0171661376953125, -0.00323486328125, 0.00711822509765625, -0.0225372314453125, -0.0240020751953125, -0.00989532470703125, 0.013916015625, -0.0033664703369140625, 0.0207672119140625, -0.035614013671875, -0.0003154277801513672, -0.031494140625, 0.050811767578125, -0.0027141571044921875, 0.0016994476318359375, 0.0523681640625, 0.029449462890625, -0.020904541015625, 0.0034332275390625, -0.0159912109375, 0.0162506103515625, -0.0246124267578125, -0.01409912109375, 0.037200927734375, -0.00832366943359375, -0.013397216796875, -0.0042724609375, 0.01739501953125, 0.00487518310546875, 0.00847625732421875, 0.01222991943359375, 0.0048828125, -0.01549530029296875, 0.0899658203125, -0.036773681640625, -0.068359375, 0.047271728515625, -0.01389312744140625, 0.04595947265625, 0.037841796875, -0.01399993896484375, 0.005462646484375, -0.01375579833984375, -0.0248260498046875, -0.0194244384765625, -0.018341064453125, 0.0218048095703125, 0.01503753662109375, 0.0555419921875, -0.0509033203125, -0.062469482421875, -0.03192138671875, 0.040435791015625, -0.01428985595703125, 0.01483154296875, -0.01258087158203125, 0.0131378173828125, 0.003978729248046875, -0.08856201171875, 0.01502227783203125, 0.07989501953125, -0.061004638671875, 0.00873565673828125, 0.00408172607421875, 0.002330780029296875, -0.0174102783203125, 0.00513458251953125, -0.0003685951232910156, 0.0105438232421875, 0.020111083984375, 0.0036640167236328125, 0.0007152557373046875, -0.025787353515625, -0.0133056640625, -0.0202789306640625, -0.00421905517578125, -0.00847625732421875, -0.007076263427734375, -0.01464080810546875, -0.0007877349853515625, -0.01041412353515625, -0.043182373046875, -0.0083160400390625, 0.039794921875, -0.0108184814453125, 0.0005979537963867188, 0.033294677734375, 0.048858642578125, 0.00933074951171875, 0.0121917724609375, 0.00196075439453125, -0.04241943359375, 0.0133209228515625, -0.0421142578125, 0.01009368896484375, 0.042266845703125, -0.01122283935546875, -0.009307861328125, 0.025848388671875, 0.0178680419921875, 0.0036869049072265625, -0.029632568359375, 0.0010557174682617188, -0.0302581787109375, -0.0057220458984375, 0.037506103515625, -0.017578125, 0.01983642578125, 0.0107269287109375, 0.02392578125, 0.0011491775512695312, 0.017333984375, -0.01515960693359375, -0.042755126953125, 0.0246429443359375, -0.00165557861328125, -0.02142333984375, 0.007781982421875, 0.037017822265625, -0.0021419525146484375, -0.0555419921875, 0.03509521484375, 0.088134765625, 0.0138092041015625, 0.0138702392578125, -0.01715087890625, -0.044525146484375, -0.0159454345703125, -0.0096588134765625, 0.0012369155883789062, -0.0159759521484375, 0.0167694091796875, 0.06646728515625, -0.02642822265625, -0.0171051025390625, 0.061676025390625, 0.04107666015625, -0.0166778564453125, -0.0214080810546875, -0.04937744140625, -0.041290283203125, -0.00537109375, 0.01393890380859375, -0.0096588134765625, 0.03521728515625, -0.07110595703125, 0.051239013671875, -0.0545654296875, 0.04522705078125, -0.04193115234375, 0.037811279296875, 0.0251007080078125, 0.0673828125, -0.0206146240234375, -0.0416259765625, -0.037109375, -0.08892822265625, -0.024017333984375, 0.01934814453125, -0.011566162109375, 0.0224456787109375, -0.0155181884765625, 0.00627899169921875, 0.01062774658203125, 0.002017974853515625, 0.021942138671875, 0.0135955810546875, -0.0019197463989257812, -0.002349853515625, 0.037017822265625, -0.00911712646484375, -0.0286407470703125, 0.027496337890625, -0.025482177734375, -0.028594970703125, -0.0200347900390625, 0.0261993408203125, 0.0167083740234375, 0.0174407958984375, 0.01136016845703125, 0.041534423828125, 0.006656646728515625, -0.0020542144775390625, 0.0176849365234375, 0.017791748046875, -0.0703125, 0.032379150390625, -0.03692626953125, 0.0092620849609375, 0.007572174072265625, 0.033294677734375, -0.0234222412109375, 0.018768310546875, -0.026641845703125, -0.050506591796875, -0.017822265625, -0.022674560546875, 0.01275634765625, 0.00995635986328125, 0.00225067138671875, 0.015869140625, -0.0135040283203125, -0.005496978759765625, -0.034942626953125, -0.048553466796875, -0.00408172607421875, -0.01312255859375, 0.0341796875, 0.008453369140625, 0.00484466552734375, 0.01528167724609375, -0.038818359375, 0.029937744140625, 0.008941650390625, 0.066650390625, -0.06097412109375, 0.03369140625, -0.046661376953125, 0.07000732421875, -0.01157379150390625, -0.004238128662109375, 0.015533447265625, 0.003124237060546875, 0.01546478271484375, -0.01247406005859375, -0.00264739990234375, 0.00823974609375, -0.06134033203125, 0.0229949951171875, 0.053863525390625, 0.01313018798828125, -0.01067352294921875, -0.0133056640625, 0.0301971435546875, 0.032562255859375, -0.0083770751953125, 0.00634765625, 0.01183319091796875, 0.0203094482421875, 0.0723876953125, 0.0029144287109375, -0.003765106201171875, -0.0034923553466796875, -0.07568359375, -0.0035839080810546875, 0.039794921875, 0.0015745162963867188, 0.057373046875, -0.035858154296875, -0.0070037841796875, -0.01491546630859375, -0.03070068359375, 0.00202178955078125, -0.034393310546875, -0.01213836669921875, -0.001247406005859375, 0.0182647705078125, 0.029144287109375, 0.0167236328125, -0.019256591796875, 0.00649261474609375, -0.0061187744140625, 0.0227508544921875, 0.0330810546875, -0.00624847412109375, 0.02227783203125, -0.0295257568359375, -0.01108551025390625, 0.033599853515625, 0.0188446044921875, -0.018798828125, -0.0200042724609375, 0.016143798828125, -0.01079559326171875, 0.036712646484375, -0.01007843017578125, 0.01812744140625, -0.031829833984375, 0.005611419677734375, 0.0014743804931640625, 0.0213470458984375, 0.01053619384765625, -0.03472900390625, 0.048736572265625, 0.007343292236328125, -0.0165863037109375, -0.05450439453125, -0.0826416015625, 0.06292724609375, -0.06500244140625, 0.04718017578125, 0.09576416015625, -0.0006494522094726562, 0.007671356201171875, 0.0224609375, -0.006969451904296875, 0.0215301513671875, 0.037841796875, 0.0162811279296875, 0.02093505859375, -0.06488037109375, -0.017486572265625, 0.0178375244140625, -0.0156402587890625, 0.0139617919921875, 0.0033206939697265625, -0.0189971923828125, 0.0189971923828125, -0.039031982421875, -0.011260986328125, 0.01678466796875, -0.037506103515625, -0.00432586669921875, 0.0112762451171875, -0.020050048828125, -0.00919342041015625, 0.041290283203125, 0.00020134449005126953, -0.0828857421875, 0.034454345703125, 0.034271240234375, -0.0035877227783203125, 0.0019207000732421875, -0.0200958251953125, -0.0144805908203125, 0.0121002197265625, -0.0024242401123046875, 0.07421875, -0.00736236572265625, -0.06170654296875, -0.0263214111328125, -0.0279388427734375, -0.03387451171875, -0.002956390380859375, -0.0034313201904296875, 0.035064697265625, -0.025054931640625, 0.0285797119140625, 0.02801513671875, 0.006343841552734375, -0.034576416015625, -0.03424072265625, 0.003753662109375, 0.01030731201171875, 0.04266357421875, 0.0120697021484375, -0.03564453125, 0.05145263671875, 0.06610107421875, -0.00818634033203125, -0.0281219482421875, 0.01081085205078125, -0.04620361328125, -0.01055908203125, 0.0232696533203125, -0.002590179443359375, -0.0098724365234375, 0.007175445556640625, 0.039581298828125, 0.043853759765625, 0.0157318115234375, 0.023651123046875, -0.0037708282470703125, 0.002941131591796875, -0.00164031982421875, -0.0263214111328125, -0.009857177734375, -0.0259246826171875, 0.02716064453125, -0.016387939453125, 0.006134033203125, -0.0535888671875, 0.0635986328125, -0.07415771484375, -0.031219482421875, 0.043731689453125, -0.018585205078125, 0.00601959228515625, -0.0188751220703125, -0.014251708984375, -0.001186370849609375, 0.058380126953125, 0.027099609375, -0.013702392578125, -0.023681640625, -0.005855560302734375, -0.049713134765625, -0.0167083740234375, -0.03350830078125, 0.01445770263671875, 0.01216888427734375, 0.00571441650390625, -0.00742340087890625, 0.01055145263671875, -0.03826904296875, -0.0016222000122070312, 0.006683349609375, -0.006809234619140625, 0.03228759765625, -0.0232086181640625, 0.0367431640625, 0.0040130615234375, 0.0014104843139648438, -0.005641937255859375, -0.028839111328125, -0.0308074951171875, -0.043670654296875, -0.01153564453125, 0.01042938232421875, 0.0249176025390625, -0.01494598388671875, 0.056304931640625, -0.0225067138671875, 0.02679443359375, 0.01091766357421875, 0.0310516357421875, -0.0084228515625, -0.0017061233520507812, -0.0198974609375, -0.0232696533203125, 0.01018524169921875, -0.038116455078125, 0.0084381103515625, 0.01395416259765625, 0.006969451904296875, 0.029449462890625, -0.061737060546875, -0.047393798828125, -0.03521728515625, -0.02880859375, -0.052490234375, -0.033905029296875, -0.029937744140625, 0.0281982421875, -0.0195465087890625, 0.0012140274047851562, -0.044677734375, -0.0814208984375, 0.0699462890625, -0.039886474609375, 0.004039764404296875, -0.00732421875, 0.12030029296875, 0.00704193115234375, -0.0005049705505371094, -0.0284423828125, 0.007236480712890625, 0.02593994140625, 0.00849151611328125, 0.0252685546875, 0.032440185546875, -0.010162353515625, -0.0248260498046875, 0.0111236572265625, -0.002307891845703125, -0.00844573974609375, 0.036102294921875, -0.01273345947265625, -0.00916290283203125, 0.00415802001953125, -0.037689208984375, 0.04046630859375, 0.00994110107421875, -0.0033473968505859375, 0.01377105712890625, 0.037750244140625, 0.0114898681640625, -0.017974853515625, -0.00891876220703125, -0.0031642913818359375, 0.00240325927734375, 0.005218505859375, -0.010406494140625, 0.032501220703125, 0.01488494873046875, 0.003692626953125, -0.016693115234375, -0.0009984970092773438, -0.0286407470703125, -0.02728271484375, -0.01453399658203125, -0.00124359130859375, 0.0225677490234375, -0.029205322265625, -0.02288818359375, -0.016571044921875, -0.0197906494140625, 0.062744140625, -0.0143280029296875, -0.061248779296875, 0.00965118408203125, -0.030487060546875, 0.03680419921875, 0.039093017578125, -0.00585174560546875, -0.002613067626953125, 0.06988525390625, 0.0299072265625, 0.006267547607421875, 0.029998779296875, 0.049530029296875, -0.0119781494140625, 0.0099945068359375, 0.006275177001953125, -0.01009368896484375, 0.027587890625, 0.04205322265625, -0.0276641845703125, 0.0277099609375, -0.00769805908203125, 0.10205078125, 0.0640869140625, -0.038909912109375, -0.00756072998046875, 0.0684814453125, -0.005153656005859375, -0.062744140625, -0.033935546875, -0.0029888153076171875, -0.007755279541015625, 0.0301513671875, 0.0021495819091796875, 0.009857177734375, 0.01424407958984375, -0.00885772705078125, 0.0024662017822265625, -0.02520751953125, 0.00864410400390625, 0.0584716796875, 0.0015592575073242188, 0.0029163360595703125, 0.00534820556640625, -0.0155181884765625, 0.032806396484375, 0.01580810546875, -0.06793212890625, -0.0119171142578125, -0.040496826171875, -0.0017757415771484375, -0.0166473388671875, -0.020965576171875, -0.025634765625, 0.00826263427734375, -0.033447265625, -0.0021152496337890625, 0.016998291015625, 0.0311737060546875, -0.044769287109375, -0.01160430908203125, 0.067138671875, -0.0261077880859375, 0.01175689697265625, -0.05474853515625, 0.041107177734375, -0.00792694091796875, -0.019317626953125, 0.072265625, 0.04632568359375, -0.0341796875, -0.029388427734375, -0.05181884765625, -0.0207366943359375, -0.056732177734375, -0.0479736328125, -0.0281829833984375, 0.0235137939453125, 0.0216827392578125, 0.009979248046875, -0.0135040283203125, -0.06072998046875, -0.04742431640625, 0.035491943359375, 0.058135986328125, 0.043914794921875, -0.0266876220703125, 0.07122802734375, 0.016815185546875, 0.078369140625, 0.0266265869140625, 0.046142578125, -0.015472412109375, -0.038482666015625, -0.00484466552734375, -0.033477783203125, -0.0179901123046875, -0.0093231201171875, 0.0060577392578125, 0.015472412109375, 0.037139892578125, 0.001178741455078125, -0.0238800048828125, -0.0259552001953125, 0.0015039443969726562, -0.034912109375, 0.0750732421875, -0.02923583984375, -0.008331298828125, -0.0301513671875, -0.036468505859375, 0.03143310546875, -0.005710601806640625, -0.0145416259765625, 0.00634002685546875, -0.0269622802734375, -0.0012683868408203125, 0.042266845703125, 0.0190277099609375, -0.00498199462890625, 0.0130767822265625, -0.03302001953125, 0.035003662109375, 0.0269622802734375, 0.020751953125, 0.040374755859375, -0.057830810546875, -0.0003955364227294922, 0.0207366943359375, -0.01497650146484375, -0.0440673828125, 0.01085662841796875, -0.00989532470703125, -0.0083770751953125, 0.0264434814453125, 0.0750732421875, 0.06494140625, -0.10308837890625, 0.01995849609375, 0.0174102783203125, -0.01076507568359375, 0.03765869140625, 0.0174102783203125, 0.01971435546875, 0.0362548828125, 0.021209716796875, -0.035003662109375, -0.0159759521484375, 0.02606201171875, -0.01177215576171875, -0.015594482421875, -0.00353240966796875, 0.0222625732421875, 0.0189971923828125, 0.008148193359375, 0.00797271728515625, -0.0086517333984375, 0.02264404296875, 0.0122528076171875, 0.005218505859375, 0.0215911865234375, -0.02935791015625, -0.051116943359375, 0.01397705078125, -0.0163116455078125, -0.033721923828125, 0.0345458984375, 0.002887725830078125, -0.006885528564453125, 0.03924560546875, -0.023590087890625, 0.03656005859375, 0.013641357421875, -0.03985595703125, -0.0667724609375, -0.05023193359375, -0.00511932373046875, 0.03485107421875, -0.01401519775390625, 0.03955078125, 0.002658843994140625, -0.04931640625, -0.0233917236328125, -0.021881103515625, 0.066162109375, -0.021697998046875, -0.0186920166015625, 0.0191192626953125, 0.01186370849609375, -0.016265869140625, 0.0138092041015625, -0.038604736328125, -0.0195465087890625, 0.01073455810546875, -0.0121307373046875, -0.0273284912109375, 0.00795745849609375, 0.00807952880859375, -0.04071044921875, 0.055694580078125, -0.0204925537109375, 0.02142333984375, 0.026397705078125, 0.0156402587890625, -0.0198974609375, -0.0004067420959472656, -0.044342041015625, 0.06524658203125, -0.01461029052734375, 0.035675048828125, -0.05517578125, 0.0166473388671875, -0.0032329559326171875, 0.0030994415283203125, 0.1190185546875, 0.041900634765625, -0.067138671875, -0.047149658203125, -0.0048370361328125, 0.0267791748046875, -0.0198822021484375, 0.06903076171875, -0.00035881996154785156, 0.024688720703125, 0.007228851318359375, -0.033294677734375, 0.031829833984375, -0.0322265625, -0.042388916015625, 0.0210418701171875, 0.0031299591064453125, 0.01091766357421875, -0.0101470947265625, 0.04534912109375, -0.010650634765625, -0.01213836669921875, 0.0153961181640625, -0.01497650146484375, 0.0029296875, -0.0013494491577148438, 0.0374755859375, -0.0640869140625, -0.0098419189453125, -0.020843505859375, 0.051055908203125, 0.0364990234375, 0.01158905029296875, 0.0235748291015625, 0.0308380126953125, -0.0345458984375, -0.003406524658203125, 0.0272064208984375, 0.01502227783203125, -0.03704833984375, -0.0038013458251953125, 0.01262664794921875, 0.01129150390625, -0.050384521484375, -0.00647735595703125, 0.06610107421875, 0.0169830322265625, -0.0160064697265625, -0.0132598876953125, 0.0053253173828125, 0.0160675048828125, 0.005558013916015625, 0.0008611679077148438, 0.0017938613891601562, 0.038360595703125, 0.059814453125, -0.050384521484375, 0.0282745361328125, 0.0231475830078125, 0.009979248046875, 0.00818634033203125, 0.0245208740234375, -0.05401611328125, 0.027679443359375, -0.0284271240234375, -0.0206298828125, -0.00476837158203125, 0.00778961181640625, 0.03662109375, -0.0043487548828125, 0.048492431640625, 0.00555419921875, -0.0096893310546875, 0.036895751953125, 0.0095062255859375, -0.00927734375, -0.033935546875, -0.06390380859375, 0.0169219970703125, 0.039703369140625, -0.0186309814453125, -0.0189666748046875, 0.0189361572265625, 0.06317138671875, -0.00717926025390625, -0.03857421875, 0.0193023681640625, -0.00864410400390625, -0.0304718017578125, -0.011932373046875, -0.0338134765625, -0.02197265625, -0.0206756591796875, -0.007598876953125, 0.041107177734375, -0.0201416015625, -0.0106658935546875, -0.01971435546875, 0.00638580322265625, -0.037017822265625, 0.061187744140625, -0.006866455078125, 0.0111846923828125, -0.01141357421875, -0.06756591796875, 0.0253143310546875, -0.0826416015625, -0.018280029296875, 0.01306915283203125, 0.0095367431640625, -0.0352783203125, 0.05621337890625, 0.00424957275390625, -0.0024929046630859375, 0.008331298828125, -0.0076141357421875, 0.014862060546875, -0.0113677978515625, 0.0026149749755859375, -0.01082611083984375, -0.00836944580078125, -0.025726318359375, 0.006114959716796875, 0.07037353515625, -0.0211181640625, 0.06671142578125, -0.047454833984375, 0.013031005859375, -0.04107666015625, 0.05206298828125, -0.07275390625, -0.0501708984375, 0.058868408203125, 0.015594482421875, -0.0037384033203125, -0.00931549072265625, -0.01090240478515625, 0.03167724609375, 0.02203369140625, -0.0203857421875, 0.017333984375, -0.0191802978515625, -0.002079010009765625, -0.0167236328125, -0.01190185546875, -0.0386962890625, 0.00262451171875, -0.0279693603515625, -0.0130767822265625, 0.0198516845703125, -0.04315185546875, -0.0218658447265625, 0.02838134765625, 0.0209197998046875, -0.030242919921875, 0.0093841552734375, -0.0338134765625, 0.005100250244140625, 0.01003265380859375, 0.0161285400390625, -0.0183258056640625, 0.01324462890625, -0.01242828369140625, -0.0030918121337890625, 0.016571044921875, 0.01611328125, 0.0292510986328125, -0.022064208984375, -0.042083740234375, -0.0333251953125, 0.0239410400390625, 0.004116058349609375, 0.00713348388671875, -0.040435791015625, -0.0038814544677734375, -0.035491943359375, 0.0163726806640625, -0.0187530517578125, 0.00031065940856933594, -0.0248565673828125, 0.0002455711364746094, -0.0079498291015625, -0.10089111328125, -0.07806396484375, 0.00940704345703125, 0.005001068115234375, 0.004302978515625, -0.07037353515625, 0.045166015625, -0.0016679763793945312, 0.034454345703125, -0.050445556640625, -0.00868988037109375, 0.011688232421875, 0.01093292236328125, -0.03936767578125, 0.039703369140625, -0.019683837890625, -0.0172271728515625, 0.024169921875, 0.0280609130859375, 0.041412353515625, -0.0071563720703125, -0.048736572265625, 0.05059814453125, 0.003330230712890625, 0.09271240234375, -0.00064849853515625, -0.0204620361328125, -0.0279083251953125, 0.00228118896484375, 0.01409912109375, -0.03240966796875, 0.00855255126953125, -0.033935546875, -0.04217529296875, -0.008941650390625, 0.01486968994140625, 0.02093505859375, -0.015777587890625, -0.01153564453125, 0.04620361328125, -0.00252532958984375, -0.024627685546875, 0.0249176025390625, -0.0299530029296875, -0.01812744140625, 0.00962066650390625, 0.02349853515625, -0.044036865234375, -0.037750244140625, -0.007251739501953125, -0.019500732421875, -0.00237274169921875, -0.0009813308715820312, -0.0222320556640625, -0.032958984375, 0.0110015869140625, 0.028961181640625, -0.027984619140625, -0.0026397705078125, 0.00047898292541503906, 0.002231597900390625, 0.019683837890625, -0.0294647216796875, -0.0164794921875, -0.0007195472717285156, -0.022247314453125, -0.0229339599609375, -0.04266357421875, -0.021087646484375, -0.032958984375, 0.07159423828125, 0.052825927734375, 0.01024627685546875, -0.0175628662109375, 0.01474761962890625, -0.051910400390625, -0.07904052734375, 0.010498046875, 0.018707275390625, -0.026580810546875, 0.0419921875, 0.0196685791015625, -0.0210113525390625, -0.0034027099609375, -0.022796630859375, -0.0421142578125, -0.01363372802734375, -0.03424072265625, 0.0086822509765625, -0.043426513671875, 0.0140533447265625, 0.038726806640625, -0.0288238525390625, -0.0048065185546875, 0.0090789794921875, -0.01306915283203125, 0.0015172958374023438, 0.017852783203125, -0.032501220703125, -0.01513671875, -0.0235748291015625, 0.0252838134765625, -0.01235198974609375, 0.0191497802734375, -0.01465606689453125, 0.0206451416015625, 0.017242431640625, 0.0267333984375, -0.013458251953125, 0.0287322998046875, -0.005138397216796875, 0.0543212890625, -0.0169830322265625, 0.044525146484375, -0.0111541748046875, -0.052825927734375, -0.0233154296875, 0.012481689453125, -0.006511688232421875, 0.000640869140625, 0.0220184326171875, -0.0293121337890625, 0.0009889602661132812, 0.0017452239990234375, -0.017730712890625, -0.01776123046875, 0.00096893310546875, 0.00907135009765625, 0.0030536651611328125, 0.008514404296875 ]
cd0c898b435fe172dd5a9c6dc87a59d1056b0787
Wordpress Stackexchange Q: How to add menu to Dashboard that can be viewed by all users I am able to add Menu to the Dashboard using the below code, it can be viewed by an administrator. That menu doesn't appear when logged in as an Author or a Subscriber. How to make sure every user can view the custom added menus. //Add Menu Page add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_dashboard_page( 'custom menu title', 'Test', 'manage_options', 'custompage', 'my_custom_menu_page', plugins_url( 'test/images/icon.png' ), 6 ); } function my_custom_menu_page(){ echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>Test</h2>'; echo 'Test'; echo '</div>'; } A: You have to use the right capability for this. You chose manage_options, which by default only users with an Administrator user role have. So, change it to read or exist, for instance, and every user will be able to see and access the menu. add_dashboard_page( 'custom menu title', 'Test', 'read', 'custompage', 'my_custom_menu_page', plugins_url( 'test/images/icon.png' ), 6 );
Q: How to add menu to Dashboard that can be viewed by all users I am able to add Menu to the Dashboard using the below code, it can be viewed by an administrator. That menu doesn't appear when logged in as an Author or a Subscriber. How to make sure every user can view the custom added menus. //Add Menu Page add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_dashboard_page( 'custom menu title', 'Test', 'manage_options', 'custompage', 'my_custom_menu_page', plugins_url( 'test/images/icon.png' ), 6 ); } function my_custom_menu_page(){ echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>Test</h2>'; echo 'Test'; echo '</div>'; } A: You have to use the right capability for this. You chose manage_options, which by default only users with an Administrator user role have. So, change it to read or exist, for instance, and every user will be able to see and access the menu. add_dashboard_page( 'custom menu title', 'Test', 'read', 'custompage', 'my_custom_menu_page', plugins_url( 'test/images/icon.png' ), 6 );
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:442342", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134685" }
[ 0.1058349609375, 0.002532958984375, 0.050872802734375, -0.014678955078125, 0.027313232421875, -0.024139404296875, 0.056549072265625, -0.0679931640625, -0.039764404296875, 0.016815185546875, 0.0152130126953125, -0.005184173583984375, -0.048828125, -0.03228759765625, -0.0105133056640625, -0.054840087890625, 0.031402587890625, 0.0175628662109375, 0.048919677734375, -0.0030689239501953125, 0.01090240478515625, 0.027099609375, 0.0176544189453125, 0.0294647216796875, 0.031524658203125, -0.0411376953125, -0.031829833984375, 0.01059722900390625, -0.007137298583984375, -0.0098724365234375, 0.00826263427734375, 0.0211944580078125, -0.01097869873046875, 0.0223388671875, 0.03375244140625, 0.036468505859375, 0.034637451171875, 0.0197296142578125, 0.0428466796875, 0.0093994140625, 0.0294342041015625, -0.0051727294921875, 0.007049560546875, 0.056427001953125, -0.01111602783203125, -0.05615234375, 0.0430908203125, -0.0283355712890625, -0.0170745849609375, -0.0286102294921875, 0.0251617431640625, -0.01009368896484375, 0.0418701171875, 0.005359649658203125, -0.0214691162109375, -0.019866943359375, 0.002986907958984375, 0.0110015869140625, 0.03851318359375, 0.006961822509765625, -0.023651123046875, -0.004547119140625, 0.0054473876953125, -0.04571533203125, 0.0015926361083984375, -0.000545501708984375, 0.0228729248046875, 0.012451171875, -0.055267333984375, -0.005260467529296875, 0.021270751953125, -0.0250244140625, 0.0307769775390625, -0.021148681640625, -0.03216552734375, -0.040191650390625, -0.0016574859619140625, -0.04620361328125, 0.03277587890625, -0.02911376953125, 0.01042938232421875, -0.01690673828125, -0.00571441650390625, 0.039581298828125, -0.04217529296875, 0.025543212890625, -0.0174560546875, -0.0118255615234375, -0.00022470951080322266, 0.025177001953125, -0.006710052490234375, 0.000072479248046875, 0.0103302001953125, 0.016387939453125, -0.0008192062377929688, -0.0227508544921875, 0.04620361328125, 0.089111328125, -0.0226898193359375, 0.03253173828125, -0.0165557861328125, -0.0257110595703125, 0.056365966796875, -0.071533203125, -0.00516510009765625, 0.0318603515625, -0.0079193115234375, 0.0014972686767578125, 0.0238800048828125, 0.0271148681640625, 0.00799560546875, -0.0096282958984375, -0.017242431640625, -0.03948974609375, 0.0010900497436523438, 0.0226287841796875, -0.036407470703125, -0.0086517333984375, 0.0048675537109375, -0.00928497314453125, -0.017822265625, 0.0124969482421875, -0.033355712890625, 0.00882720947265625, -0.002399444580078125, -0.01557159423828125, -0.0169677734375, 0.01318359375, -0.05120849609375, 0.01241302490234375, -0.01140594482421875, 0.0131683349609375, 0.05889892578125, 0.060455322265625, 0.0174102783203125, -0.0159149169921875, -0.004901885986328125, -0.044219970703125, -0.0148773193359375, 0.0269927978515625, 0.00836944580078125, -0.01232147216796875, 0.019775390625, -0.0272979736328125, -0.01331329345703125, 0.000013649463653564453, 0.007709503173828125, 0.0179595947265625, -0.013214111328125, -0.048553466796875, -0.003208160400390625, -0.007068634033203125, 0.030303955078125, -0.00862884521484375, -0.0292510986328125, 0.0023059844970703125, -0.0200042724609375, 0.00588226318359375, -0.0182952880859375, 0.0078887939453125, -0.01446533203125, -0.01268768310546875, 0.0174560546875, -0.028656005859375, -0.0196380615234375, -0.006084442138671875, -0.02587890625, 0.0069732666015625, 0.0289154052734375, 0.005619049072265625, -0.01541900634765625, -0.024871826171875, 0.04510498046875, 0.033172607421875, 0.0009455680847167969, 0.051483154296875, -0.00988006591796875, 0.051177978515625, 0.01043701171875, 0.00937652587890625, -0.011138916015625, -0.046234130859375, 0.0616455078125, -0.0255126953125, -0.06683349609375, 0.037750244140625, -0.00798797607421875, 0.0849609375, 0.03668212890625, 0.0200042724609375, 0.0239105224609375, -0.0167999267578125, -0.0172576904296875, -0.0287322998046875, 0.007663726806640625, 0.00913238525390625, -0.0241851806640625, 0.00722503662109375, -0.0184783935546875, 0.008392333984375, -0.012054443359375, -0.0184783935546875, 0.01180267333984375, -0.006011962890625, -0.0638427734375, 0.005840301513671875, -0.028839111328125, 0.03424072265625, 0.044189453125, 0.0024967193603515625, -0.02020263671875, -0.0095977783203125, 0.0186004638671875, -0.061737060546875, -0.041900634765625, 0.004512786865234375, -0.0236968994140625, 0.03411865234375, -0.02691650390625, 0.007396697998046875, -0.00122833251953125, -0.053619384765625, 0.0028133392333984375, 0.026397705078125, 0.04974365234375, -0.006256103515625, -0.021270751953125, -0.0111541748046875, 0.042694091796875, 0.01070404052734375, -0.01013946533203125, 0.0259857177734375, 0.005542755126953125, -0.0196380615234375, -0.040191650390625, -0.01090240478515625, -0.00852203369140625, -0.08758544921875, 0.0178985595703125, 0.05682373046875, 0.0141448974609375, 0.01971435546875, -0.0178375244140625, 0.032745361328125, 0.0092315673828125, -0.0648193359375, -0.01351165771484375, 0.031097412109375, -0.0267333984375, 0.03314208984375, 0.0286102294921875, 0.041778564453125, 0.005710601806640625, 0.03521728515625, -0.002582550048828125, 0.039031982421875, -0.0204620361328125, 0.0017080307006835938, -0.00495147705078125, -0.01983642578125, 0.014739990234375, 0.01303863525390625, 0.005069732666015625, -0.006206512451171875, -0.019989013671875, 0.0163421630859375, 0.019439697265625, 0.032806396484375, -0.03045654296875, -0.0292205810546875, 0.02996826171875, 0.07684326171875, -0.01253509521484375, 0.0107879638671875, 0.006160736083984375, -0.016021728515625, -0.0198822021484375, 0.007122039794921875, 0.0033740997314453125, 0.0024585723876953125, 0.00888824462890625, 0.0206146240234375, -0.00927734375, -0.0119781494140625, 0.01226043701171875, -0.057830810546875, -0.0035114288330078125, 0.01776123046875, 0.009613037109375, 0.0064239501953125, 0.031951904296875, -0.0003917217254638672, -0.0038604736328125, 0.00656890869140625, 0.01024627685546875, -0.0223236083984375, -0.00027823448181152344, -0.0526123046875, 0.039886474609375, -0.0212554931640625, 0.06744384765625, 0.074462890625, 0.0014047622680664062, 0.020172119140625, -0.0005435943603515625, -0.02166748046875, -0.0215606689453125, 0.0496826171875, 0.01143646240234375, -0.0472412109375, 0.0302734375, 0.07843017578125, 0.014739990234375, -0.02880859375, 0.00960540771484375, -0.0183868408203125, -0.0254669189453125, -0.00814056396484375, -0.0709228515625, -0.044189453125, 0.0232696533203125, -0.035247802734375, -0.0235137939453125, -0.0100555419921875, -0.030181884765625, 0.00765228271484375, 0.016357421875, -0.0037994384765625, -0.0308380126953125, -0.00872039794921875, 0.0025348663330078125, -0.0189971923828125, -0.011016845703125, 0.0006670951843261719, -0.0001558065414428711, -0.01934814453125, -0.0036163330078125, 0.032470703125, -0.015716552734375, -0.05120849609375, 0.0028018951416015625, -0.001422882080078125, 0.0147552490234375, 0.00836181640625, 0.02685546875, -0.00702667236328125, 0.029449462890625, -0.0009260177612304688, 0.03955078125, 0.04486083984375, -0.051422119140625, -0.012847900390625, -0.01010894775390625, -0.01361846923828125, 0.005878448486328125, 0.0220794677734375, 0.01904296875, 0.0240631103515625, 0.035736083984375, -0.017242431640625, 0.027679443359375, -0.032806396484375, -0.0176239013671875, 0.0206756591796875, 0.0195159912109375, -0.008056640625, -0.006671905517578125, 0.003276824951171875, -0.001068115234375, 0.017242431640625, 0.01336669921875, 0.017974853515625, -0.0306396484375, -0.0210418701171875, -0.02178955078125, 0.0009531974792480469, 0.039886474609375, -0.0181732177734375, 0.0033626556396484375, 0.01418304443359375, 0.0019521713256835938, -0.01654052734375, 0.01190185546875, -0.0294189453125, -0.0305938720703125, 0.0220947265625, -0.0291595458984375, 0.038726806640625, -0.0233001708984375, -0.0158843994140625, 0.003292083740234375, 0.08172607421875, -0.0682373046875, 0.0039520263671875, 0.01412200927734375, -0.00714111328125, 0.01000213623046875, 0.00873565673828125, -0.0828857421875, -0.02276611328125, -0.1055908203125, -0.01043701171875, -0.006999969482421875, -0.053985595703125, 0.002468109130859375, -0.0271148681640625, -0.060302734375, -0.03790283203125, 0.048583984375, -0.00786590576171875, 0.017242431640625, 0.0272979736328125, 0.01520538330078125, -0.007415771484375, -0.036224365234375, 0.00893402099609375, -0.10211181640625, -0.0205841064453125, -0.0513916015625, 0.1033935546875, 0.03472900390625, -0.005382537841796875, -0.01126861572265625, 0.0623779296875, 0.037750244140625, 0.015228271484375, 0.007568359375, -0.00792694091796875, 0.0082855224609375, -0.0303192138671875, -0.003292083740234375, -0.038238525390625, 0.0148162841796875, 0.004810333251953125, -0.0251617431640625, 0.0004115104675292969, -0.033660888671875, -0.01078033447265625, -0.0012111663818359375, -0.035919189453125, -0.059356689453125, -0.06488037109375, -0.039398193359375, -0.00897979736328125, -0.0080413818359375, -0.010223388671875, -0.057098388671875, -0.0579833984375, -0.01084136962890625, 0.00792694091796875, -0.0114288330078125, 0.026947021484375, 0.021087646484375, 0.018035888671875, -0.01837158203125, -0.0229034423828125, 0.0212249755859375, 0.04071044921875, -0.011260986328125, 0.0289306640625, 0.0291595458984375, -0.0209808349609375, 0.017578125, 0.00347900390625, 0.025299072265625, -0.0169525146484375, 0.0408935546875, -0.0055999755859375, -0.0303802490234375, 0.031646728515625, 0.0036716461181640625, -0.027862548828125, 0.0245513916015625, -0.00811767578125, -0.0239410400390625, -0.057861328125, 0.041351318359375, -0.006183624267578125, 0.042205810546875, -0.0364990234375, -0.009796142578125, 0.0006241798400878906, -0.01444244384765625, 0.0438232421875, 0.006687164306640625, 0.005115509033203125, -0.0013942718505859375, 0.0035762786865234375, -0.00882720947265625, 0.049957275390625, 0.04693603515625, 0.01120758056640625, 0.04400634765625, 0.02752685546875, -0.0094146728515625, -0.005706787109375, -0.0067138671875, 0.0765380859375, 0.01409912109375, -0.041290283203125, -0.02716064453125, -0.0016164779663085938, 0.05255126953125, -0.00789642333984375, 0.016265869140625, 0.045196533203125, 0.036590576171875, -0.00914764404296875, -0.013397216796875, 0.01084136962890625, 0.0059814453125, -0.046417236328125, 0.01511383056640625, 0.0185394287109375, -0.0201873779296875, -0.015777587890625, 0.0377197265625, -0.008026123046875, 0.0053863525390625, -0.0002275705337524414, 0.052642822265625, 0.062286376953125, 0.0025730133056640625, -0.0069122314453125, 0.0278778076171875, -0.0236968994140625, 0.0159759521484375, 0.002513885498046875, -0.01117706298828125, 0.0296630859375, 0.00782012939453125, 0.003021240234375, 0.038787841796875, -0.021026611328125, 0.0070343017578125, -0.0252532958984375, -0.0281219482421875, 0.054168701171875, -0.044921875, -0.09625244140625, -0.05596923828125, 0.0164337158203125, 0.056793212890625, -0.0293731689453125, -0.0019741058349609375, 0.0333251953125, 0.0080718994140625, 0.050018310546875, -0.0167694091796875, 0.003353118896484375, 0.0025844573974609375, 0.0052337646484375, -0.0122528076171875, 0.0284423828125, 0.036834716796875, -0.052703857421875, -0.04266357421875, -0.0243988037109375, -0.0245208740234375, 0.0654296875, -0.0161590576171875, 0.0241546630859375, -0.0269775390625, -0.0168304443359375, -0.04461669921875, -0.006786346435546875, 0.0809326171875, 0.05072021484375, -0.006195068359375, -0.0200653076171875, -0.0224761962890625, -0.0167694091796875, 0.01198577880859375, -0.04425048828125, -0.017913818359375, -0.0244598388671875, 0.046234130859375, 0.02630615234375, 0.0146484375, -0.025146484375, -0.0189361572265625, 0.01052093505859375, 0.03338623046875, 0.06890869140625, -0.00302886962890625, 0.07470703125, -0.0007052421569824219, 0.06427001953125, 0.0224151611328125, 0.0292816162109375, -0.039886474609375, -0.01091766357421875, 0.00791168212890625, -0.0201416015625, -0.0230712890625, -0.033782958984375, -0.0006685256958007812, 0.0298309326171875, 0.058349609375, -0.007221221923828125, -0.002910614013671875, -0.004550933837890625, 0.007274627685546875, -0.0147857666015625, 0.01235198974609375, 0.0119781494140625, -0.019744873046875, 0.04437255859375, -0.012237548828125, 0.01419830322265625, 0.0220184326171875, -0.0073089599609375, 0.03790283203125, 0.0011034011840820312, 0.03851318359375, -0.03326416015625, -0.077880859375, 0.11614990234375, 0.1170654296875, -0.00675201416015625, 0.038299560546875, 0.0161590576171875, -0.016143798828125, -0.0029296875, -0.012786865234375, 0.0102691650390625, 0.0008807182312011719, -0.008575439453125, -0.0260467529296875, 0.00811767578125, -0.0167999267578125, -0.002376556396484375, 0.002353668212890625, 0.08172607421875, 0.037139892578125, -0.10137939453125, -0.0014505386352539062, -0.01016998291015625, 0.0189208984375, 0.0302886962890625, 0.004474639892578125, 0.0193328857421875, 0.015594482421875, 0.03509521484375, -0.0501708984375, -0.0105133056640625, 0.017242431640625, -0.034088134765625, 0.0016431808471679688, 0.0249176025390625, 0.034698486328125, -0.0022735595703125, 0.0190277099609375, -0.07586669921875, -0.0000559687614440918, -0.03045654296875, 0.0155029296875, -0.00978851318359375, 0.00951385498046875, -0.01715087890625, -0.0202484130859375, 0.02374267578125, -0.06591796875, 0.004985809326171875, 0.056427001953125, 0.0141754150390625, 0.009979248046875, 0.038818359375, -0.017120361328125, 0.03448486328125, 0.0021114349365234375, -0.02691650390625, 0.0233306884765625, -0.030670166015625, -0.0176544189453125, 0.044219970703125, -0.01171875, 0.01102447509765625, 0.0261077880859375, -0.007080078125, -0.019256591796875, -0.0057220458984375, 0.12646484375, -0.042266845703125, -0.029693603515625, -0.0060882568359375, 0.01528167724609375, 0.0007486343383789062, 0.01132965087890625, 0.01513671875, -0.0367431640625, -0.01534271240234375, 0.01012420654296875, -0.035186767578125, -0.0194854736328125, 0.0194854736328125, -0.03533935546875, 0.06719970703125, -0.048980712890625, 0.0078582763671875, 0.00862884521484375, 0.036285400390625, 0.004932403564453125, 0.031097412109375, -0.0200958251953125, 0.038238525390625, 0.0213775634765625, 0.04937744140625, -0.033721923828125, -0.0279998779296875, 0.01480865478515625, 0.065673828125, 0.006908416748046875, 0.022064208984375, -0.03326416015625, -0.02410888671875, -0.033905029296875, 0.010650634765625, -0.00287628173828125, 0.0345458984375, -0.0113067626953125, -0.00971221923828125, 0.0182647705078125, -0.00992584228515625, 0.0291900634765625, -0.00958251953125, -0.03277587890625, 0.01439666748046875, -0.003902435302734375, -0.003448486328125, -0.00829315185546875, -0.010345458984375, 0.0009002685546875, 0.0001270771026611328, -0.00807952880859375, -0.01270294189453125, -0.00351715087890625, -0.01049041748046875, -0.0186309814453125, 0.00864410400390625, -0.036956787109375, 0.006000518798828125, 0.0035858154296875, 0.015716552734375, -0.02020263671875, -0.0199737548828125, 0.0120697021484375, -0.0865478515625, 0.0131988525390625, -0.0182647705078125, 0.038604736328125, -0.0187835693359375, 0.029388427734375, 0.00815582275390625, 0.0244598388671875, -0.05126953125, -0.044525146484375, 0.0251922607421875, 0.04510498046875, -0.02203369140625, -0.0306243896484375, 0.004711151123046875, 0.00555419921875, 0.00904083251953125, 0.0227508544921875, 0.0306549072265625, -0.0014181137084960938, 0.034454345703125, -0.03338623046875, 0.01525115966796875, -0.0031642913818359375, 0.00537872314453125, -0.0258331298828125, -0.0284881591796875, 0.006938934326171875, 0.043121337890625, -0.0247802734375, -0.00010687112808227539, 0.0097503662109375, 0.0118255615234375, 0.01200103759765625, 0.01181793212890625, 0.0016231536865234375, -0.0031604766845703125, -0.01776123046875, 0.0231170654296875, -0.002902984619140625, 0.02728271484375, -0.05908203125, -0.06341552734375, 0.0579833984375, 0.04779052734375, 0.0141143798828125, -0.029876708984375, -0.01071929931640625, -0.0000014901161193847656, 0.01131439208984375, 0.003170013427734375, -0.00634002685546875, -0.005023956298828125, -0.0126190185546875, -0.007381439208984375, -0.0108795166015625, 0.0099639892578125, -0.02471923828125, 0.00937652587890625, -0.0021877288818359375, 0.03961181640625, -0.011810302734375, 0.019805908203125, -0.0016374588012695312, -0.01116180419921875, 0.024627685546875, -0.0311737060546875, 0.033233642578125, -0.0007386207580566406, -0.08697509765625, -0.032745361328125, -0.0418701171875, -0.0024566650390625, 0.037078857421875, 0.0367431640625, -0.006256103515625, 0.02020263671875, 0.0011138916015625, 0.028900146484375, -0.01605224609375, -0.0294952392578125, 0.0190277099609375, 0.0162200927734375, 0.022735595703125, 0.03887939453125, 0.0006084442138671875, -0.003719329833984375, -0.0093231201171875, 0.037078857421875, 0.01117706298828125, 0.03680419921875, -0.0234527587890625, 0.033721923828125, -0.04534912109375, -0.00505828857421875, -0.026763916015625, -0.04095458984375, 0.036712646484375, 0.009796142578125, -0.030609130859375, -0.00858306884765625, -0.06927490234375, 0.03729248046875, 0.01861572265625, -0.0226593017578125, 0.031646728515625, 0.0006556510925292969, 0.0036525726318359375, -0.0274658203125, -0.003429412841796875, -0.01210784912109375, -0.01348114013671875, -0.0478515625, -0.028564453125, 0.042938232421875, 0.0399169921875, -0.00392913818359375, 0.050262451171875, -0.0170440673828125, 0.013885498046875, -0.0110321044921875, -0.00786590576171875, -0.021728515625, 0.0187225341796875, -0.0256500244140625, 0.0191802978515625, 0.0055694580078125, -0.007755279541015625, 0.0220947265625, 0.01511383056640625, -0.010040283203125, 0.02288818359375, 0.01837158203125, 0.04412841796875, 0.0135650634765625, 0.0284423828125, -0.044464111328125, -0.0020885467529296875, 0.022857666015625, 0.004180908203125, 0.0130767822265625, 0.0090484619140625, -0.033843994140625, -0.0157012939453125, 0.00862884521484375, 0.0169219970703125, 0.00927734375, -0.0250091552734375, -0.10595703125, 0.04022216796875, 0.031890869140625, 0.01175689697265625, -0.0938720703125, 0.06573486328125, -0.0272216796875, 0.0721435546875, -0.021148681640625, -0.00922393798828125, 0.00299072265625, 0.015380859375, -0.0207366943359375, 0.017669677734375, -0.018890380859375, -0.020355224609375, 0.007171630859375, 0.0023670196533203125, 0.014801025390625, -0.008453369140625, 0.0185546875, -0.007129669189453125, -0.004863739013671875, 0.044189453125, -0.000759124755859375, -0.02734375, -0.02740478515625, -0.01100921630859375, 0.0098114013671875, -0.01482391357421875, 0.0160675048828125, -0.05963134765625, -0.05255126953125, -0.0009212493896484375, -0.003589630126953125, 0.0184326171875, -0.040435791015625, -0.08770751953125, 0.05072021484375, -0.0089111328125, -0.04547119140625, -0.0399169921875, 0.027130126953125, -0.0233917236328125, 0.010772705078125, -0.01152801513671875, -0.0235595703125, 0.030731201171875, 0.058624267578125, 0.0247955322265625, -0.0150604248046875, 0.033538818359375, 0.0253448486328125, -0.062103271484375, 0.01090240478515625, -0.00524139404296875, -0.00937652587890625, 0.0159759521484375, -0.04998779296875, 0.03985595703125, 0.0200653076171875, -0.041595458984375, -0.05877685546875, 0.00702667236328125, 0.018890380859375, -0.01129913330078125, 0.029388427734375, 0.0281982421875, 0.0140380859375, 0.01708984375, 0.00701141357421875, 0.0023174285888671875, -0.015960693359375, -0.020172119140625, -0.0487060546875, 0.0010652542114257812, -0.007061004638671875, 0.014556884765625, -0.06292724609375, 0.01404571533203125, 0.01488494873046875, -0.03271484375, -0.0008716583251953125, 0.03717041015625, -0.046417236328125, 0.0186004638671875, 0.047515869140625, 0.003143310546875, -0.06689453125, -0.004131317138671875, 0.08404541015625, -0.05865478515625, -0.041717529296875, 0.004749298095703125, 0.01001739501953125, 0.006977081298828125, -0.046966552734375, -0.034515380859375, -0.02154541015625, -0.044189453125, 0.041259765625, -0.043182373046875, 0.07806396484375, -0.08441162109375, 0.004238128662109375, -0.02105712890625, 0.03643798828125, -0.00878143310546875, 0.052337646484375, 0.005298614501953125, 0.04925537109375, 0.0270538330078125, 0.0281219482421875, -0.0024051666259765625, -0.0014476776123046875, -0.01751708984375, 0.039459228515625, 0.012969970703125, -0.0162506103515625, 0.033233642578125, -0.0389404296875, -0.015960693359375, -0.0090179443359375, -0.0333251953125, -0.07183837890625, 0.034027099609375, -0.0215606689453125, 0.0014286041259765625, 0.0288543701171875 ]
39a8508f209f9cc95b45ddba9862f1d76cd34546
Wordpress Stackexchange Q: Proper use of option_page_capability_{$page_name} I am having trouble giving access to an options page to Editors. I am pretty sure I need to use the filter option_page_capability_{$page_name} but it is not working for me. Is there a specific place to hook this? I am still getting the Cheatin', uh? error with this: function bf_ins_capability(){ return 'edit_posts'; } add_filter( 'option_page_capability_brightfire-insurance-settings', 'bf_ins_capability' ); A: So in this hook is not exactly looking for the {$page_name}. Once I replaced the {$page_name} part of this filter to the {$option_group} parameter from my register_settings() function, all is well in the land of WordPress. Here is what my update needed to look like. function bf_ins_capability(){ return 'edit_posts'; } add_filter( 'option_page_capability_bf_insurance_settings', 'bf_ins_capability');
Q: Proper use of option_page_capability_{$page_name} I am having trouble giving access to an options page to Editors. I am pretty sure I need to use the filter option_page_capability_{$page_name} but it is not working for me. Is there a specific place to hook this? I am still getting the Cheatin', uh? error with this: function bf_ins_capability(){ return 'edit_posts'; } add_filter( 'option_page_capability_brightfire-insurance-settings', 'bf_ins_capability' ); A: So in this hook is not exactly looking for the {$page_name}. Once I replaced the {$page_name} part of this filter to the {$option_group} parameter from my register_settings() function, all is well in the land of WordPress. Here is what my update needed to look like. function bf_ins_capability(){ return 'edit_posts'; } add_filter( 'option_page_capability_bf_insurance_settings', 'bf_ins_capability');
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:442352", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/134712" }
[ 0.033477783203125, -0.0261077880859375, -0.0024356842041015625, -0.0074462890625, -0.011260986328125, -0.0303802490234375, 0.0413818359375, -0.0034694671630859375, 0.0380859375, -0.01325225830078125, -0.0174102783203125, -0.01026153564453125, -0.032958984375, -0.0260467529296875, -0.01213836669921875, -0.03985595703125, 0.012176513671875, -0.0158233642578125, 0.007419586181640625, -0.0284271240234375, 0.006683349609375, -0.02008056640625, -0.0218658447265625, 0.0131378173828125, 0.05865478515625, -0.036163330078125, -0.019805908203125, -0.0230865478515625, 0.0369873046875, 0.0010013580322265625, 0.0252838134765625, -0.013153076171875, 0.02410888671875, 0.0006203651428222656, -0.0063323974609375, 0.0091552734375, 0.0106658935546875, -0.01117706298828125, -0.0205841064453125, 0.03350830078125, 0.0211944580078125, -0.0120849609375, 0.00676727294921875, -0.01242828369140625, -0.011322021484375, -0.0296173095703125, 0.0194549560546875, -0.034515380859375, 0.004970550537109375, 0.044342041015625, 0.0189361572265625, 0.005466461181640625, 0.01554107666015625, 0.055511474609375, -0.0120849609375, -0.01073455810546875, -0.037567138671875, 0.029022216796875, 0.031646728515625, 0.020904541015625, -0.0034961700439453125, 0.008392333984375, -0.0017423629760742188, -0.0241546630859375, 0.024810791015625, -0.00865936279296875, 0.0047760009765625, -0.0006351470947265625, -0.039581298828125, 0.007659912109375, 0.04925537109375, -0.033294677734375, 0.020263671875, -0.0264434814453125, -0.01474761962890625, -0.01251220703125, -0.0159454345703125, -0.010894775390625, 0.022003173828125, -0.022674560546875, -0.03155517578125, -0.0248870849609375, -0.045166015625, 0.019317626953125, -0.0350341796875, 0.036529541015625, -0.020477294921875, 0.00270843505859375, -0.00279998779296875, 0.0295562744140625, -0.01207733154296875, -0.02471923828125, 0.07171630859375, 0.013519287109375, -0.03515625, 0.01053619384765625, 0.03564453125, 0.031982421875, 0.0195159912109375, -0.00928497314453125, 0.058685302734375, -0.092529296875, 0.06768798828125, -0.046722412109375, 0.0122528076171875, 0.0411376953125, -0.0160064697265625, 0.002178192138671875, 0.03009033203125, 0.01531982421875, -0.0003981590270996094, -0.054718017578125, 0.0279998779296875, -0.033538818359375, 0.00921630859375, -0.0191497802734375, -0.01322174072265625, 0.0217742919921875, 0.031494140625, -0.0518798828125, 0.023162841796875, 0.0233154296875, -0.047760009765625, -0.0184326171875, 0.00209808349609375, -0.016021728515625, -0.032440185546875, 0.0171661376953125, 0.053466796875, -0.00768280029296875, -0.032196044921875, 0.0192413330078125, 0.049835205078125, -0.00909423828125, -0.00492095947265625, -0.01357269287109375, 0.00482177734375, -0.0338134765625, 0.0179901123046875, 0.002895355224609375, 0.04254150390625, -0.01322174072265625, 0.007442474365234375, 0.023345947265625, -0.00971221923828125, -0.00015163421630859375, 0.02471923828125, 0.033447265625, -0.0011262893676757812, -0.02630615234375, 0.018218994140625, 0.00640869140625, 0.031707763671875, 0.0036907196044921875, -0.023529052734375, -0.0142669677734375, 0.00415802001953125, -0.023406982421875, -0.00493621826171875, -0.044830322265625, 0.01018524169921875, -0.0147857666015625, -0.00293731689453125, -0.060333251953125, -0.024505615234375, -0.0207672119140625, -0.043304443359375, -0.0019063949584960938, 0.0003094673156738281, 0.0189056396484375, 0.0179595947265625, -0.0110015869140625, -0.06390380859375, -0.0196533203125, -0.01114654541015625, -0.004390716552734375, -0.018463134765625, 0.03326416015625, 0.0325927734375, -0.051849365234375, -0.050567626953125, -0.051788330078125, 0.05615234375, -0.0244903564453125, -0.0521240234375, 0.01143646240234375, 0.01531219482421875, 0.039154052734375, -0.0072174072265625, 0.004199981689453125, 0.062103271484375, 0.0130615234375, 0.025543212890625, 0.02008056640625, 0.0316162109375, -0.055023193359375, -0.0098114013671875, -0.0321044921875, -0.0015153884887695312, 0.0017576217651367188, 0.07177734375, 0.006072998046875, 0.0290985107421875, -0.03973388671875, -0.0672607421875, 0.0433349609375, -0.0389404296875, 0.043426513671875, 0.008758544921875, -0.0382080078125, 0.005512237548828125, -0.05084228515625, -0.01242828369140625, 0.01215362548828125, -0.041748046875, 0.0028972625732421875, -0.01229095458984375, 0.01763916015625, 0.021392822265625, 0.032379150390625, 0.01554107666015625, 0.0005803108215332031, 0.006114959716796875, 0.01084136962890625, 0.038177490234375, -0.005954742431640625, -0.0216827392578125, -0.0239105224609375, 0.01178741455078125, -0.0158843994140625, 0.0112762451171875, 0.055084228515625, -0.006496429443359375, 0.0013790130615234375, -0.015869140625, 0.00702667236328125, -0.0083465576171875, -0.07464599609375, 0.0022487640380859375, 0.05548095703125, 0.035736083984375, 0.043487548828125, -0.005702972412109375, -0.0291290283203125, 0.0435791015625, -0.039276123046875, 0.01383209228515625, -0.0272369384765625, 0.00888824462890625, 0.071044921875, 0.00650787353515625, 0.0166168212890625, -0.00887298583984375, 0.0019054412841796875, -0.002410888671875, 0.016754150390625, -0.06329345703125, -0.01041412353515625, 0.043548583984375, -0.035247802734375, 0.0014705657958984375, -0.0670166015625, 0.0236358642578125, -0.043975830078125, -0.00323486328125, -0.025909423828125, 0.019561767578125, 0.0026378631591796875, -0.0005173683166503906, -0.0423583984375, 0.03179931640625, 0.04327392578125, -0.005352020263671875, 0.01155853271484375, 0.005176544189453125, -0.04522705078125, -0.027587890625, 0.0171051025390625, -0.01419830322265625, -0.0107269287109375, -0.006183624267578125, 0.047943115234375, -0.01102447509765625, -0.0211944580078125, -0.004184722900390625, -0.04071044921875, -0.025787353515625, -0.003704071044921875, -0.0035533905029296875, -0.024566650390625, 0.0020580291748046875, -0.020355224609375, -0.06524658203125, 0.0489501953125, -0.002933502197265625, -0.0433349609375, 0.04193115234375, -0.07464599609375, 0.048553466796875, -0.02716064453125, 0.05474853515625, 0.087890625, 0.0179595947265625, 0.00170135498046875, 0.0223388671875, -0.004383087158203125, 0.0049285888671875, 0.043975830078125, 0.0430908203125, -0.0135040283203125, 0.0120391845703125, 0.07574462890625, 0.0206451416015625, 0.019744873046875, -0.004665374755859375, -0.0325927734375, -0.005672454833984375, 0.00955963134765625, -0.021148681640625, 0.00431060791015625, -0.0158233642578125, -0.059417724609375, 0.0031890869140625, 0.004573822021484375, -0.03411865234375, 0.00689697265625, 0.024932861328125, 0.00806427001953125, -0.0257568359375, -0.0189666748046875, -0.031585693359375, -0.038665771484375, -0.039825439453125, -0.00667572021484375, -0.004871368408203125, 0.005626678466796875, -0.0048980712890625, 0.0440673828125, 0.00139617919921875, -0.041778564453125, -0.00012385845184326172, -0.0221099853515625, -0.02630615234375, -0.0012302398681640625, 0.00946807861328125, -0.039093017578125, -0.015472412109375, 0.00543975830078125, -0.00738525390625, -0.0231170654296875, 0.01103973388671875, -0.015899658203125, -0.05047607421875, 0.025115966796875, -0.01342010498046875, 0.024627685546875, 0.05401611328125, 0.03057861328125, 0.0182342529296875, -0.019012451171875, 0.007244110107421875, -0.023101806640625, -0.032806396484375, -0.00217437744140625, 0.006160736083984375, 0.001308441162109375, 0.0032444000244140625, 0.01149749755859375, -0.01206207275390625, 0.0012750625610351562, 0.0023860931396484375, -0.017730712890625, -0.0302581787109375, 0.007289886474609375, 0.0136871337890625, 0.0404052734375, 0.01119232177734375, -0.01506805419921875, 0.0298614501953125, 0.021270751953125, -0.0005245208740234375, -0.0264434814453125, 0.0018978118896484375, -0.055267333984375, -0.0791015625, 0.0386962890625, -0.06512451171875, -0.022735595703125, -0.043426513671875, 0.0093841552734375, -0.0092620849609375, 0.08099365234375, -0.0246429443359375, -0.004512786865234375, 0.01174163818359375, 0.016143798828125, -0.03973388671875, -0.04693603515625, -0.0293731689453125, -0.0013341903686523438, -0.0771484375, 0.0043792724609375, 0.0035877227783203125, -0.0489501953125, -0.0013017654418945312, -0.0904541015625, -0.05438232421875, -0.0426025390625, 0.04742431640625, -0.036834716796875, -0.029693603515625, 0.05487060546875, -0.06793212890625, 0.0220489501953125, -0.06878662109375, 0.01087188720703125, -0.0772705078125, -0.006359100341796875, 0.007904052734375, 0.0379638671875, 0.007663726806640625, -0.0291900634765625, -0.00611114501953125, 0.048492431640625, 0.0105133056640625, 0.036041259765625, 0.0299224853515625, 0.0128326416015625, 0.046051025390625, -0.027069091796875, 0.0157012939453125, -0.0382080078125, 0.024322509765625, 0.00238800048828125, -0.05096435546875, -0.00566864013671875, -0.054351806640625, -0.0083465576171875, -0.0206756591796875, -0.040130615234375, -0.11798095703125, -0.03985595703125, -0.020660400390625, -0.034912109375, -0.016510009765625, -0.017242431640625, -0.016326904296875, -0.09539794921875, 0.0428466796875, -0.05560302734375, 0.015655517578125, -0.01629638671875, 0.088623046875, 0.01261138916015625, -0.005031585693359375, 0.05975341796875, -0.020538330078125, 0.0222320556640625, -0.0085296630859375, 0.071533203125, 0.033416748046875, -0.0200653076171875, 0.038787841796875, 0.021392822265625, 0.0024566650390625, -0.0360107421875, 0.014068603515625, 0.018035888671875, 0.0225830078125, -0.028228759765625, 0.0083465576171875, 0.061187744140625, 0.006313323974609375, -0.0303955078125, 0.0018444061279296875, 0.0239715576171875, 0.04864501953125, -0.053741455078125, 0.042938232421875, -0.01322174072265625, -0.00749969482421875, 0.0011548995971679688, -0.0157623291015625, 0.0347900390625, 0.052001953125, -0.005443572998046875, 0.0048828125, -0.002323150634765625, 0.019927978515625, 0.01554107666015625, 0.0282745361328125, -0.032318115234375, 0.06317138671875, 0.004199981689453125, 0.00971221923828125, 0.005603790283203125, -0.0195159912109375, 0.056640625, -0.0182952880859375, -0.041748046875, 0.0150909423828125, -0.0187530517578125, 0.02740478515625, 0.029052734375, 0.0016317367553710938, 0.005535125732421875, 0.050628662109375, -0.0205230712890625, 0.005458831787109375, 0.039306640625, 0.01348876953125, -0.0236358642578125, 0.022857666015625, 0.013946533203125, -0.00630950927734375, 0.00582122802734375, 0.01995849609375, 0.0236663818359375, -0.0117950439453125, -0.0177459716796875, 0.0204010009765625, 0.037841796875, -0.007099151611328125, 0.035552978515625, -0.01544952392578125, 0.0157012939453125, -0.0621337890625, 0.00649261474609375, -0.006500244140625, -0.0313720703125, -0.000013768672943115234, -0.0015087127685546875, -0.0036296844482421875, 0.0203857421875, 0.021240234375, 0.02716064453125, -0.01629638671875, 0.059844970703125, 0.035858154296875, -0.062744140625, -0.0181121826171875, 0.036590576171875, 0.02069091796875, -0.0263519287109375, -0.02191162109375, 0.01425933837890625, -0.04425048828125, -0.0222015380859375, -0.03216552734375, -0.02911376953125, -0.012786865234375, 0.00379180908203125, 0.01000213623046875, 0.00039649009704589844, -0.00893402099609375, -0.04827880859375, -0.0455322265625, -0.0207366943359375, 0.0273895263671875, 0.059967041015625, 0.003726959228515625, 0.0316162109375, -0.01102447509765625, -0.043914794921875, -0.07159423828125, -0.0203399658203125, 0.058380126953125, 0.040771484375, -0.030975341796875, 0.017333984375, -0.0382080078125, -0.0094451904296875, -0.0227203369140625, -0.04193115234375, -0.041961669921875, -0.029296875, -0.01410675048828125, 0.009185791015625, -0.0372314453125, -0.007740020751953125, -0.021087646484375, 0.04248046875, 0.0268402099609375, 0.07147216796875, -0.01023101806640625, 0.050872802734375, -0.011688232421875, 0.0272979736328125, 0.005420684814453125, 0.0109405517578125, -0.00279998779296875, -0.014190673828125, -0.0186309814453125, -0.05126953125, -0.011932373046875, -0.0281829833984375, -0.00888824462890625, 0.07220458984375, 0.0697021484375, 0.0133056640625, -0.024017333984375, -0.0184326171875, -0.0057373046875, -0.025604248046875, 0.025970458984375, -0.01039886474609375, -0.038604736328125, 0.01398468017578125, -0.033477783203125, 0.00891876220703125, -0.006275177001953125, 0.015960693359375, 0.005725860595703125, -0.037750244140625, -0.00688934326171875, 0.0330810546875, -0.021087646484375, 0.044586181640625, 0.0833740234375, 0.0015192031860351562, 0.038360595703125, 0.040069580078125, -0.007389068603515625, -0.00054931640625, 0.04290771484375, -0.03564453125, -0.0206756591796875, 0.0202789306640625, 0.01450347900390625, 0.0107574462890625, 0.0129852294921875, -0.004833221435546875, 0.04632568359375, 0.056121826171875, 0.06829833984375, -0.10577392578125, 0.032806396484375, 0.0243377685546875, 0.0089111328125, 0.04962158203125, 0.01155853271484375, -0.0165557861328125, -0.0330810546875, 0.0240631103515625, -0.04095458984375, -0.00582122802734375, 0.003002166748046875, -0.012725830078125, -0.00519561767578125, -0.0364990234375, 0.0662841796875, -0.003711700439453125, -0.018951416015625, 0.0035495758056640625, 0.0004878044128417969, 0.00875091552734375, 0.0002079010009765625, 0.02886962890625, -0.035736083984375, -0.0286865234375, -0.050201416015625, -0.038055419921875, -0.0094146728515625, -0.05084228515625, -0.0401611328125, -0.01311492919921875, 0.0288543701171875, 0.050506591796875, -0.01806640625, -0.0149688720703125, 0.04974365234375, -0.04144287109375, -0.04876708984375, -0.0176544189453125, 0.004131317138671875, 0.0133209228515625, -0.0020618438720703125, 0.022552490234375, -0.0291290283203125, -0.015655517578125, -0.018157958984375, -0.0230560302734375, 0.06939697265625, 0.0126495361328125, -0.0386962890625, 0.028411865234375, -0.007175445556640625, -0.034393310546875, 0.028228759765625, -0.02642822265625, -0.02996826171875, -0.033966064453125, -0.0007724761962890625, -0.059295654296875, 0.0081939697265625, 0.034027099609375, -0.0625, 0.12261962890625, -0.0100860595703125, 0.03717041015625, 0.012237548828125, 0.050537109375, -0.03253173828125, 0.0243682861328125, -0.04754638671875, 0.01605224609375, 0.0165557861328125, 0.043426513671875, -0.018707275390625, -0.0071563720703125, 0.0023632049560546875, 0.02508544921875, -0.0010404586791992188, 0.002506256103515625, -0.01434326171875, -0.03631591796875, 0.00490570068359375, 0.00322723388671875, 0.0059967041015625, 0.045745849609375, 0.009735107421875, 0.0180816650390625, 0.0261993408203125, -0.02764892578125, 0.03204345703125, -0.0645751953125, 0.0007319450378417969, 0.0016269683837890625, -0.00861358642578125, -0.0033588409423828125, -0.031341552734375, -0.0328369140625, -0.0203857421875, -0.031707763671875, 0.002727508544921875, -0.0269012451171875, 0.0016727447509765625, 0.00027680397033691406, 0.0174407958984375, -0.056396484375, -0.0164031982421875, -0.0220794677734375, 0.0423583984375, 0.00847625732421875, -0.016510009765625, 0.0264892578125, 0.013336181640625, -0.031890869140625, -0.01535797119140625, -0.011077880859375, 0.0031528472900390625, 0.005489349365234375, 0.01006317138671875, -0.0218048095703125, 0.0099334716796875, -0.02117919921875, 0.0187225341796875, 0.034027099609375, 0.007328033447265625, -0.01502227783203125, -0.03424072265625, -0.0091552734375, 0.0058746337890625, 0.0170135498046875, 0.01366424560546875, 0.0274505615234375, 0.04559326171875, 0.068359375, -0.0672607421875, -0.00926971435546875, 0.0209197998046875, 0.03521728515625, -0.017333984375, -0.0146026611328125, -0.024749755859375, -0.02398681640625, -0.00688934326171875, -0.04425048828125, 0.01605224609375, 0.02490234375, 0.0400390625, -0.00640106201171875, 0.0168914794921875, 0.007167816162109375, -0.047698974609375, 0.0310821533203125, -0.006397247314453125, 0.05682373046875, -0.08197021484375, -0.023651123046875, 0.00493621826171875, 0.06024169921875, -0.00860595703125, 0.049102783203125, 0.0001938343048095703, 0.01081085205078125, 0.03900146484375, 0.0014524459838867188, 0.035369873046875, -0.0263519287109375, -0.00473785400390625, -0.037261962890625, 0.008819580078125, 0.00835418701171875, -0.00885009765625, -0.01837158203125, -0.00878143310546875, 0.041046142578125, -0.006008148193359375, 0.005489349365234375, 0.0089263916015625, -0.0110931396484375, -0.00818634033203125, 0.0173187255859375, 0.0304412841796875, 0.0390625, -0.07574462890625, -0.005039215087890625, -0.033660888671875, -0.07318115234375, 0.0323486328125, 0.05560302734375, -0.0096282958984375, -0.021820068359375, -0.0311279296875, -0.02423095703125, 0.034393310546875, -0.00017213821411132812, -0.039337158203125, 0.004161834716796875, 0.03192138671875, -0.037445068359375, 0.01727294921875, 0.0009813308715820312, 0.00849151611328125, 0.07305908203125, 0.019012451171875, 0.06634521484375, -0.0501708984375, 0.0206146240234375, 0.01763916015625, 0.00390625, 0.002960205078125, 0.0033283233642578125, 0.0159912109375, 0.00856781005859375, 0.007480621337890625, -0.01983642578125, -0.040679931640625, 0.04571533203125, 0.010589599609375, -0.0287933349609375, 0.00316619873046875, 0.031524658203125, 0.00395965576171875, 0.0259246826171875, -0.0082855224609375, -0.0220947265625, 0.004833221435546875, 0.0115203857421875, -0.0172576904296875, 0.02801513671875, 0.0218658447265625, 0.0135650634765625, 0.009857177734375, 0.028900146484375, 0.02618408203125, -0.0013332366943359375, 0.054229736328125, -0.025604248046875, 0.0007410049438476562, -0.01361083984375, -0.0302886962890625, 0.0125274658203125, -0.0078125, -0.0239105224609375, 0.00682830810546875, 0.01763916015625, 0.007354736328125, -0.0189361572265625, 0.005306243896484375, -0.026397705078125, 0.01251220703125, -0.0254669189453125, -0.003986358642578125, -0.014739990234375, 0.0001283884048461914, -0.004901885986328125, -0.039215087890625, -0.02587890625, -0.0430908203125, -0.00504302978515625, 0.006557464599609375, -0.013153076171875, -0.054473876953125, -0.0263519287109375, -0.007678985595703125, 0.003917694091796875, -0.00007587671279907227, -0.0545654296875, 0.027374267578125, -0.01218414306640625, 0.0579833984375, -0.037384033203125, -0.0269622802734375, 0.002719879150390625, 0.0009784698486328125, -0.0263671875, 0.01499176025390625, -0.0229644775390625, -0.0198516845703125, 0.01152801513671875, 0.036529541015625, 0.0487060546875, -0.026397705078125, -0.035400390625, 0.0599365234375, 0.01357269287109375, 0.1024169921875, -0.0299530029296875, -0.0089263916015625, 0.03607177734375, -0.0020160675048828125, -0.026275634765625, -0.045257568359375, 0.01018524169921875, -0.02886962890625, -0.00885009765625, 0.0390625, 0.0013427734375, 0.027099609375, -0.030609130859375, -0.03369140625, 0.044921875, 0.0302886962890625, -0.02349853515625, 0.009429931640625, -0.0246734619140625, -0.0105743408203125, 0.041473388671875, 0.015869140625, -0.04541015625, -0.0418701171875, -0.0008130073547363281, 0.007160186767578125, -0.01114654541015625, 0.02081298828125, -0.0030670166015625, -0.064208984375, -0.004886627197265625, -0.0143890380859375, -0.0252227783203125, 0.0282745361328125, -0.0096435546875, 0.032989501953125, 0.0611572265625, -0.01010894775390625, -0.059661865234375, -0.0225982666015625, -0.040130615234375, 0.0227508544921875, -0.005413055419921875, -0.034942626953125, -0.0167694091796875, 0.034820556640625, 0.05810546875, 0.0193328857421875, -0.01352691650390625, 0.0111083984375, -0.057220458984375, -0.040985107421875, -0.0007200241088867188, 0.013580322265625, -0.0224609375, 0.036163330078125, 0.00691986083984375, -0.005901336669921875, 0.033416748046875, -0.01384735107421875, -0.0037250518798828125, -0.0103607177734375, -0.01202392578125, -0.015411376953125, -0.0462646484375, -0.04144287109375, 0.03704833984375, -0.0382080078125, -0.038604736328125, -0.0106658935546875, 0.03839111328125, -0.02667236328125, -0.0202789306640625, -0.01239013671875, -0.0167083740234375, -0.047821044921875, 0.0160064697265625, -0.01383209228515625, 0.033721923828125, -0.04296875, -0.007648468017578125, 0.01399993896484375, 0.0227508544921875, -0.016204833984375, 0.01338958740234375, 0.0147857666015625, 0.06610107421875, -0.00952911376953125, 0.06268310546875, -0.00948333740234375, 0.07977294921875, 0.00589752197265625, 0.01971435546875, 0.007610321044921875, -0.00598907470703125, 0.033416748046875, -0.035552978515625, 0.010223388671875, -0.016326904296875, 0.00023126602172851562, -0.0276031494140625, 0.0074920654296875, 0.0228271484375, -0.01071929931640625, 0.024871826171875 ]
ec136f10cd409f5d0896da6ff76755e8418005bb
Wordpress Stackexchange Q: What for is the table "wp_commentmeta" exactly? I have been reading about the Database Description of Wordpress. I haven't understood the meaning to the use of the table wp_commentmeta. The documentation says: Each comment features information called the meta data and it is stored in the wp_commentmeta. I have a fair idea of what meta-data is. I know how the table wp_postmeta stores custom field, for example. But in the case of the comments, I don't understand: * *What kind of information would go in this table? *Why wouldn't it be in the same wp_comments table? *What is a practical example of how someone would use it, so that I could test it out and have a more graphic idea of how it works? A: This can be used, mainly by plugins, to add some additional information to a comment. By having one generic table you don't need to add columns to wp_comment for every additional piece of data. E.g. a plugin could add a rating to each comment and store that value in wp_commentmeta.
Q: What for is the table "wp_commentmeta" exactly? I have been reading about the Database Description of Wordpress. I haven't understood the meaning to the use of the table wp_commentmeta. The documentation says: Each comment features information called the meta data and it is stored in the wp_commentmeta. I have a fair idea of what meta-data is. I know how the table wp_postmeta stores custom field, for example. But in the case of the comments, I don't understand: * *What kind of information would go in this table? *Why wouldn't it be in the same wp_comments table? *What is a practical example of how someone would use it, so that I could test it out and have a more graphic idea of how it works? A: This can be used, mainly by plugins, to add some additional information to a comment. By having one generic table you don't need to add columns to wp_comment for every additional piece of data. E.g. a plugin could add a rating to each comment and store that value in wp_commentmeta. A: That table is essentially the same as for all of the other "meta" tables in the WordPress architecture. It holds misc. bits of extra, usually optional, information about the associated post, user, or in this case comment. You can store whatever information you need to add to a comment-- perhaps a plugin wants to implement "abuse" flags, or comment upvotes. It can really be just about anything. This information would not go in the comments table because it is usually optional and additional, and has no predefined meaning. How many extra columns would you put in the comments table "just in case"? See what I mean. You can see an example of use in the Codex entry for add_comment_meta. function add_custom_comment_field( $comment_id ) { add_comment_meta( $comment_id, 'my_custom_comment_field', $_POST['my_custom_comment_field'] ); } add_action( 'comment_post', 'add_custom_comment_field' );
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:442467", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/135116" }
[ 0.03271484375, -0.017486572265625, -0.03173828125, -0.03466796875, 0.01202392578125, -0.0382080078125, 0.0218505859375, 0.0118408203125, 0.03289794921875, 0.049102783203125, -0.061553955078125, -0.008209228515625, 0.0208282470703125, 0.0153961181640625, -0.047698974609375, -0.040008544921875, 0.05029296875, 0.01373291015625, 0.04376220703125, 0.011016845703125, -0.00701904296875, 0.0438232421875, 0.0004520416259765625, 0.0181121826171875, 0.0322265625, -0.06427001953125, 0.0810546875, -0.0260772705078125, 0.048553466796875, -0.0098114013671875, 0.03143310546875, -0.0275115966796875, 0.022125244140625, -0.005344390869140625, 0.020263671875, -0.025909423828125, 0.02691650390625, -0.0129241943359375, 0.0062713623046875, 0.0228424072265625, 0.031280517578125, -0.017120361328125, -0.0220184326171875, -0.007427215576171875, -0.0128021240234375, -0.0166778564453125, 0.0184478759765625, -0.0288238525390625, 0.006256103515625, -0.0192718505859375, 0.00858306884765625, 0.032440185546875, 0.03424072265625, 0.0007014274597167969, -0.0160064697265625, -0.0005035400390625, -0.0182647705078125, -0.0269927978515625, 0.004161834716796875, 0.00726318359375, 0.01409912109375, 0.0188751220703125, 0.007598876953125, 0.02215576171875, 0.007602691650390625, -0.024444580078125, 0.0484619140625, 0.029327392578125, -0.010711669921875, -0.0040740966796875, 0.0287628173828125, 0.00537109375, 0.01197052001953125, -0.042755126953125, 0.01824951171875, 0.00695037841796875, -0.00611114501953125, -0.02410888671875, -0.006778717041015625, 0.020263671875, -0.003582000732421875, -0.02288818359375, -0.0100555419921875, -0.04449462890625, 0.0250701904296875, -0.0292510986328125, -0.0159454345703125, 0.005039215087890625, -0.012451171875, -0.01285552978515625, -0.0228729248046875, -0.06756591796875, 0.0054473876953125, 0.01290130615234375, -0.02410888671875, -0.01067352294921875, -0.003429412841796875, 0.043548583984375, -0.02764892578125, 0.006458282470703125, -0.00771331787109375, -0.01435089111328125, -0.005229949951171875, -0.029937744140625, 0.01406097412109375, 0.018310546875, -0.052581787109375, -0.08636474609375, 0.02032470703125, 0.039154052734375, 0.007579803466796875, -0.0215301513671875, -0.010650634765625, -0.060791015625, 0.0157318115234375, 0.04608154296875, -0.021209716796875, 0.036376953125, 0.019287109375, 0.0207366943359375, -0.029693603515625, -0.007720947265625, -0.003658294677734375, -0.015869140625, 0.015777587890625, -0.01271820068359375, -0.007648468017578125, 0.02642822265625, -0.09027099609375, 0.060699462890625, -0.007343292236328125, 0.0015630722045898438, 0.04144287109375, 0.028045654296875, -0.02581787109375, -0.017608642578125, 0.023712158203125, -0.0098724365234375, -0.0246734619140625, 0.045745849609375, -0.0230560302734375, -0.06591796875, -0.015869140625, -0.020233154296875, -0.07220458984375, 0.007053375244140625, 0.0173797607421875, 0.0211639404296875, -0.039154052734375, -0.037384033203125, -0.045867919921875, 0.04248046875, -0.0048065185546875, 0.004497528076171875, 0.0178070068359375, -0.012359619140625, -0.00841522216796875, -0.01459503173828125, 0.00945281982421875, -0.00814056396484375, -0.0228118896484375, -0.017913818359375, -0.006282806396484375, -0.035064697265625, -0.041412353515625, 0.01220703125, 0.0048370361328125, -0.00507354736328125, 0.016845703125, 0.01297760009765625, -0.00728607177734375, -0.022003173828125, -0.010101318359375, -0.00977325439453125, -0.001842498779296875, 0.0091705322265625, -0.035675048828125, -0.025390625, 0.0360107421875, 0.0036640167236328125, -0.0299835205078125, -0.03106689453125, -0.004215240478515625, 0.00878143310546875, -0.01241302490234375, 0.031341552734375, 0.0304107666015625, 0.05047607421875, -0.01471710205078125, 0.0261688232421875, -0.01384735107421875, 0.015869140625, -0.0267791748046875, 0.030303955078125, -0.0020656585693359375, -0.00360107421875, -0.020233154296875, 0.00856781005859375, -0.02227783203125, -0.0190582275390625, 0.050079345703125, 0.0166778564453125, 0.005657196044921875, -0.0170440673828125, -0.12396240234375, 0.04827880859375, -0.049407958984375, 0.051849365234375, -0.0124053955078125, 0.00803375244140625, 0.0164642333984375, -0.031982421875, -0.0266265869140625, 0.0401611328125, -0.006591796875, -0.0238037109375, -0.01129913330078125, 0.0007367134094238281, -0.006298065185546875, 0.04522705078125, -0.0167236328125, -0.0084228515625, -0.051025390625, 0.01253509521484375, 0.040740966796875, 0.0007696151733398438, -0.01038360595703125, -0.012115478515625, 0.051788330078125, -0.0002593994140625, 0.01171112060546875, 0.0232086181640625, 0.0254058837890625, 0.043731689453125, 0.00025272369384765625, -0.004978179931640625, 0.00730133056640625, -0.07958984375, 0.01180267333984375, 0.04254150390625, 0.03564453125, -0.022857666015625, -0.00989532470703125, 0.0284576416015625, 0.0191650390625, -0.034393310546875, 0.01087188720703125, 0.0087127685546875, 0.0135650634765625, 0.046417236328125, 0.002132415771484375, -0.0025196075439453125, 0.013702392578125, -0.05755615234375, -0.0153350830078125, 0.034515380859375, -0.033905029296875, 0.036590576171875, 0.0038967132568359375, 0.004665374755859375, -0.0174102783203125, 0.0260162353515625, 0.050445556640625, -0.024017333984375, 0.0205535888671875, 0.00437164306640625, 0.047027587890625, 0.0305633544921875, 0.00824737548828125, -0.0140533447265625, -0.0003170967102050781, 0.00435638427734375, -0.0012121200561523438, 0.007274627685546875, 0.00585174560546875, 0.0528564453125, -0.0214385986328125, -0.014801025390625, 0.0160369873046875, 0.0255279541015625, -0.01143646240234375, 0.037109375, -0.06268310546875, -0.0204010009765625, -0.0010080337524414062, -0.01308441162109375, -0.044097900390625, -0.00977325439453125, -0.0202178955078125, -0.0211639404296875, -0.0014276504516601562, 0.056488037109375, 0.00940704345703125, 0.003971099853515625, 0.0282135009765625, 0.006015777587890625, 0.04290771484375, -0.00476837158203125, 0.0110321044921875, -0.01148223876953125, 0.007633209228515625, 0.034454345703125, 0.0006580352783203125, -0.023681640625, -0.0179290771484375, -0.03790283203125, -0.030975341796875, 0.00875091552734375, -0.0203094482421875, -0.044921875, -0.0154266357421875, 0.05242919921875, 0.016387939453125, 0.036102294921875, -0.00847625732421875, -0.042388916015625, -0.0084991455078125, 0.043487548828125, -0.02423095703125, -0.0268707275390625, 0.048004150390625, -0.032257080078125, 0.0027256011962890625, -0.056488037109375, -0.01201629638671875, -0.01751708984375, -0.04534912109375, -0.00876617431640625, 0.0020389556884765625, -0.04278564453125, -0.055511474609375, -0.048431396484375, -0.0606689453125, 0.0028934478759765625, -0.0020542144775390625, 0.0033550262451171875, -0.009307861328125, 0.0474853515625, -0.0213470458984375, -0.046844482421875, -0.029296875, -0.0322265625, -0.0006322860717773438, -0.027008056640625, 0.0152587890625, -0.033355712890625, -0.001842498779296875, -0.00615692138671875, -0.015045166015625, 0.02752685546875, -0.018951416015625, -0.00580596923828125, 0.031097412109375, 0.0200042724609375, 0.03729248046875, -0.0258026123046875, -0.038055419921875, 0.058319091796875, 0.0233612060546875, -0.0114898681640625, -0.01531982421875, -0.0077667236328125, -0.04071044921875, -0.055450439453125, 0.007205963134765625, 0.0171661376953125, -0.018341064453125, 0.004852294921875, 0.05328369140625, 0.04583740234375, 0.04052734375, 0.0003390312194824219, -0.017486572265625, -0.00624847412109375, -0.0026531219482421875, -0.04290771484375, 0.0061187744140625, -0.0386962890625, -0.0160369873046875, -0.021148681640625, -0.01270294189453125, -0.0182952880859375, -0.006328582763671875, -0.0308990478515625, -0.0193023681640625, 0.044281005859375, 0.0053253173828125, 0.042083740234375, -0.03802490234375, -0.0313720703125, -0.038726806640625, 0.06121826171875, -0.00799560546875, -0.0140533447265625, -0.0007758140563964844, 0.0034656524658203125, -0.05792236328125, 0.0269317626953125, -0.04046630859375, 0.00624847412109375, -0.0191650390625, 0.006359100341796875, 0.0126495361328125, -0.02581787109375, -0.035675048828125, 0.0714111328125, -0.0294647216796875, -0.00490570068359375, 0.000255584716796875, -0.0340576171875, 0.0212554931640625, 0.019927978515625, -0.001800537109375, 0.02001953125, 0.03680419921875, -0.08355712890625, -0.024658203125, -0.0190277099609375, -0.01387786865234375, 0.04840087890625, 0.047760009765625, -0.045928955078125, 0.0159454345703125, 0.036651611328125, -0.01465606689453125, 0.0850830078125, -0.03033447265625, 0.01290130615234375, -0.0209808349609375, -0.0191802978515625, 0.01491546630859375, -0.03173828125, -0.01555633544921875, -0.01397705078125, 0.0362548828125, 0.06396484375, -0.026397705078125, 0.022186279296875, -0.03936767578125, 0.015167236328125, 0.05352783203125, 0.00180816650390625, -0.028656005859375, 0.032318115234375, -0.0307769775390625, -0.0002856254577636719, -0.00823974609375, 0.0133056640625, 0.0191192626953125, -0.0266265869140625, 0.012054443359375, 0.033782958984375, 0.053863525390625, 0.0100250244140625, -0.005016326904296875, -0.10205078125, -0.01514434814453125, 0.042633056640625, 0.021484375, 0.0260467529296875, 0.02716064453125, -0.0335693359375, 0.044342041015625, 0.038330078125, 0.0038394927978515625, -0.01358795166015625, 0.061187744140625, 0.00226593017578125, 0.0126800537109375, 0.0023345947265625, -0.0085906982421875, -0.01491546630859375, 0.0185089111328125, -0.012451171875, -0.0140838623046875, -0.06414794921875, 0.0653076171875, 0.026031494140625, -0.00849151611328125, -0.0948486328125, -0.0278472900390625, 0.00452423095703125, -0.061859130859375, 0.051910400390625, 0.017181396484375, -0.0032749176025390625, 0.0222015380859375, 0.01904296875, 0.03253173828125, 0.006298065185546875, 0.0211181640625, -0.027587890625, 0.025390625, 0.047271728515625, 0.00476837158203125, -0.020782470703125, -0.01392364501953125, 0.08306884765625, -0.00988006591796875, -0.0780029296875, 0.0343017578125, -0.01708984375, 0.0091400146484375, 0.05731201171875, 0.0304412841796875, 0.032623291015625, 0.0016031265258789062, 0.0054473876953125, 0.00849151611328125, -0.00269317626953125, 0.00275421142578125, -0.025299072265625, 0.02801513671875, 0.01038360595703125, 0.006328582763671875, 0.0100250244140625, 0.062408447265625, -0.017242431640625, 0.04949951171875, -0.0179290771484375, 0.053619384765625, 0.00826263427734375, 0.08221435546875, 0.013153076171875, -0.0256500244140625, 0.006923675537109375, 0.053985595703125, -0.042022705078125, -0.03375244140625, -0.01309967041015625, 0.03509521484375, 0.048614501953125, 0.0091400146484375, -0.003063201904296875, -0.01153564453125, -0.0230560302734375, 0.01495361328125, 0.031524658203125, 0.006595611572265625, -0.038299560546875, 0.01103973388671875, 0.00386810302734375, 0.008697509765625, -0.035491943359375, 0.0090484619140625, 0.017669677734375, -0.01213836669921875, 0.035675048828125, -0.0186004638671875, 0.032806396484375, -0.035980224609375, -0.034088134765625, -0.01739501953125, -0.0019931793212890625, -0.01605224609375, -0.047821044921875, -0.042694091796875, 0.0185546875, 0.0008463859558105469, 0.00783538818359375, 0.01080322265625, 0.0169525146484375, -0.01568603515625, -0.0186004638671875, -0.048370361328125, 0.01531982421875, -0.007678985595703125, -0.0290985107421875, -0.01111602783203125, -0.01654052734375, -0.0183258056640625, -0.034881591796875, -0.0078277587890625, -0.045623779296875, -0.0215911865234375, 0.0031719207763671875, -0.03167724609375, 0.0261993408203125, -0.0193023681640625, 0.020355224609375, -0.0291900634765625, 0.0183258056640625, -0.00782012939453125, 0.0301971435546875, -0.036163330078125, 0.091796875, 0.01328277587890625, 0.0277099609375, 0.0203399658203125, 0.08697509765625, 0.008575439453125, -0.018768310546875, 0.029632568359375, -0.03167724609375, -0.0494384765625, -0.03387451171875, -0.0130157470703125, -0.006809234619140625, 0.01300048828125, -0.0203857421875, 0.026947021484375, -0.01435089111328125, -0.0108489990234375, -0.0116119384765625, 0.004108428955078125, -0.00384521484375, 0.0435791015625, 0.02154541015625, 0.003406524658203125, 0.052978515625, -0.051177978515625, -0.026153564453125, 0.01187896728515625, -0.007686614990234375, 0.024322509765625, 0.03564453125, -0.07183837890625, 0.055877685546875, 0.087646484375, 0.0294952392578125, 0.058013916015625, -0.0002772808074951172, 0.01407623291015625, 0.0301055908203125, 0.007221221923828125, -0.0155181884765625, -0.01708984375, 0.06463623046875, 0.0191497802734375, -0.0210418701171875, 0.05560302734375, -0.02667236328125, 0.021026611328125, 0.0011434555053710938, 0.034393310546875, -0.053314208984375, 0.032440185546875, 0.00818634033203125, -0.006824493408203125, 0.0283050537109375, -0.0029392242431640625, -0.0156097412109375, -0.04010009765625, -0.011474609375, 0.045135498046875, -0.0228271484375, -0.006847381591796875, 0.0223236083984375, -0.020233154296875, 0.0110931396484375, -0.0010881423950195312, -0.01508331298828125, 0.017303466796875, -0.06597900390625, 0.006511688232421875, -0.05718994140625, -0.0124664306640625, 0.0020122528076171875, 0.0220947265625, -0.01435089111328125, -0.062469482421875, 0.0276031494140625, -0.0302734375, -0.01210784912109375, -0.0006489753723144531, 0.0254364013671875, 0.0469970703125, 0.04168701171875, 0.0014352798461914062, -0.01422882080078125, 0.016143798828125, 0.0246429443359375, -0.05706787109375, -0.028533935546875, -0.0004911422729492188, 0.0209808349609375, 0.016387939453125, 0.0325927734375, -0.00356292724609375, -0.041534423828125, 0.0118255615234375, 0.0056610107421875, 0.036376953125, -0.063720703125, 0.0038166046142578125, 0.0193023681640625, -0.0270843505859375, 0.0208587646484375, -0.00901031494140625, 0.0275421142578125, -0.005977630615234375, 0.041046142578125, -0.0019588470458984375, 0.01374053955078125, -0.01082611083984375, -0.019073486328125, -0.050201416015625, 0.051422119140625, 0.023406982421875, -0.000026166439056396484, 0.001918792724609375, 0.0139312744140625, -0.022491455078125, 0.0015020370483398438, -0.03448486328125, 0.05926513671875, -0.04156494140625, 0.082763671875, -0.0738525390625, -0.0067901611328125, 0.032806396484375, 0.03912353515625, 0.102294921875, 0.0244140625, -0.033203125, -0.0015115737915039062, 0.04669189453125, -0.006256103515625, -0.042755126953125, 0.05133056640625, -0.02398681640625, 0.03289794921875, 0.065185546875, -0.036041259765625, 0.0088958740234375, 0.0509033203125, -0.02362060546875, 0.0126495361328125, 0.003063201904296875, 0.00989532470703125, -0.01727294921875, 0.044708251953125, 0.031005859375, -0.031494140625, -0.01076507568359375, -0.061309814453125, -0.0161895751953125, 0.046234130859375, 0.0548095703125, -0.0433349609375, -0.01166534423828125, -0.032684326171875, 0.05694580078125, 0.0157012939453125, 0.050567626953125, 0.0255126953125, 0.029205322265625, 0.0518798828125, -0.0015935897827148438, 0.022003173828125, 0.01558685302734375, -0.04052734375, 0.06195068359375, 0.0019989013671875, 0.016845703125, -0.0677490234375, 0.005615234375, 0.02264404296875, 0.076171875, -0.0477294921875, -0.00201416015625, 0.0230865478515625, 0.011993408203125, -0.00785064697265625, -0.01068115234375, 0.0250244140625, -0.004730224609375, 0.002574920654296875, 0.00521087646484375, -0.011993408203125, -0.00804901123046875, 0.001163482666015625, 0.0020351409912109375, 0.03399658203125, 0.0038127899169921875, -0.0022678375244140625, -0.018310546875, 0.0017499923706054688, 0.0078887939453125, 0.01329803466796875, 0.0014371871948242188, 0.035980224609375, 0.0289306640625, 0.010009765625, -0.0141448974609375, 0.00867462158203125, 0.006801605224609375, 0.0020904541015625, -0.042724609375, -0.036102294921875, 0.049652099609375, 0.0386962890625, 0.03564453125, 0.00762176513671875, 0.0168304443359375, -0.018768310546875, -0.0095367431640625, 0.0146484375, 0.0078277587890625, -0.02752685546875, -0.0050811767578125, -0.043548583984375, 0.037353515625, 0.0322265625, 0.0247344970703125, -0.01763916015625, 0.0362548828125, 0.017669677734375, -0.0204315185546875, 0.01654052734375, 0.00878143310546875, -0.0223846435546875, 0.034698486328125, 0.01641845703125, 0.0227203369140625, 0.01055908203125, -0.01605224609375, -0.01111602783203125, -0.0037441253662109375, -0.009918212890625, -0.00627899169921875, 0.0400390625, 0.00418853759765625, 0.00875091552734375, -0.06353759765625, 0.011871337890625, 0.00365447998046875, -0.0169219970703125, -0.01160430908203125, 0.06231689453125, 0.024169921875, 0.003993988037109375, -0.0186767578125, -0.0099945068359375, 0.006927490234375, 0.0049285888671875, 0.00743865966796875, 0.06011962890625, -0.0061798095703125, 0.018463134765625, -0.04443359375, 0.022430419921875, -0.01129150390625, -0.030517578125, 0.05810546875, 0.04559326171875, -0.00922393798828125, -0.03515625, -0.00577545166015625, -0.0008387565612792969, 0.054840087890625, -0.021575927734375, -0.002178192138671875, -0.00539398193359375, 0.0229644775390625, -0.0249176025390625, 0.00356292724609375, -0.0240936279296875, 0.011962890625, 0.00019156932830810547, -0.034515380859375, 0.048828125, 0.028656005859375, 0.0499267578125, 0.02886962890625, -0.004306793212890625, 0.0093536376953125, 0.01102447509765625, -0.01434326171875, 0.0172271728515625, 0.0247039794921875, -0.0250091552734375, -0.019744873046875, 0.044525146484375, -0.0182037353515625, 0.0176544189453125, 0.0013666152954101562, 0.066162109375, 0.01285552978515625, -0.034088134765625, -0.01287078857421875, 0.042083740234375, 0.064208984375, 0.0141143798828125, 0.029296875, -0.017333984375, -0.007694244384765625, 0.0135040283203125, -0.0028095245361328125, -0.0281524658203125, -0.0648193359375, -0.0018405914306640625, 0.0244293212890625, -0.06304931640625, -0.014862060546875, -0.07330322265625, -0.0015459060668945312, 0.019866943359375, 0.0189361572265625, -0.042755126953125, 0.01296234130859375, 0.0012807846069335938, 0.031982421875, 0.012237548828125, -0.0052032470703125, 0.00861358642578125, 0.0247344970703125, -0.01995849609375, -0.012420654296875, -0.033935546875, 0.00577545166015625, -0.01088714599609375, 0.059173583984375, 0.02398681640625, -0.0478515625, 0.03021240234375, 0.1064453125, 0.061309814453125, 0.1480712890625, 0.050933837890625, -0.01197052001953125, 0.0252838134765625, 0.006500244140625, -0.00896453857421875, -0.0716552734375, -0.0196380615234375, -0.0167236328125, 0.036224365234375, -0.0257415771484375, 0.029998779296875, 0.03643798828125, -0.043609619140625, -0.10467529296875, 0.040191650390625, -0.0318603515625, -0.03680419921875, -0.042388916015625, -0.040435791015625, -0.00832366943359375, 0.04632568359375, -0.005321502685546875, -0.036895751953125, -0.051788330078125, 0.039581298828125, 0.0247802734375, -0.01617431640625, 0.047943115234375, -0.00787353515625, -0.050994873046875, -0.00028896331787109375, 0.01507568359375, 0.0249481201171875, -0.0183868408203125, 0.0206451416015625, 0.0210113525390625, 0.03900146484375, -0.020660400390625, 0.01171875, 0.01184844970703125, 0.0087127685546875, 0.0014581680297851562, -0.02056884765625, -0.007080078125, 0.00946807861328125, 0.026397705078125, 0.039276123046875, 0.0128021240234375, -0.0460205078125, 0.02838134765625, -0.0276336669921875, -0.0035648345947265625, -0.045440673828125, -0.0030727386474609375, -0.04107666015625, -0.040679931640625, -0.00922393798828125, -0.00487518310546875, 0.018524169921875, -0.003978729248046875, 0.0007872581481933594, -0.00029969215393066406, 0.027099609375, -0.0257568359375, -0.0009889602661132812, -0.04656982421875, 0.051971435546875, -0.032257080078125, -0.007061004638671875, -0.0051116943359375, 0.041107177734375, 0.00873565673828125, -0.0081787109375, -0.004810333251953125, -0.032073974609375, -0.01116943359375, 0.0169677734375, -0.013214111328125, 0.0250396728515625, -0.0229949951171875, -0.0333251953125, 0.0008349418640136719, 0.0159454345703125, -0.0056915283203125, 0.0133819580078125, -0.01131439208984375, 0.02508544921875, 0.0021228790283203125, -0.00843048095703125, -0.00418853759765625, -0.0093994140625, -0.032135009765625, 0.06463623046875, -0.0136260986328125, -0.0273895263671875, 0.0038928985595703125, 0.0018873214721679688, -0.00568389892578125, 0.0155487060546875, 0.01198577880859375, -0.053619384765625, 0.02532958984375, 0.004550933837890625, 0.0174560546875, 0.0209197998046875 ]
77d47926b9cef01e88794d7e7264e29392d48a06
Wordpress Stackexchange Q: Resolve a custom post type name vs. page permalink conflict (same slug) I have a custom post type called "visningshus", and also a Page with that slug. This is as it should (must) be. Currently, "http://my-site.com/visningshus" lists all posts of that type. I want to show the page that has that permalink slug instead. How can I make Wordpress not make the post type name take precedence, but instead the permalink, and show the Page? A: Tjena Henrik! I think all you need to do is to add a rewrite rule to the Wordpress Rewrite rules that have already been created. Add this code snippet to your functions.php of your theme or include it as a separate pugin... add_action('init', function () { add_rewrite_rule('visningshus/?$','index.php?pagename=visningshus', 'top'); flush_rewrite_rules(); }, 1000);
Q: Resolve a custom post type name vs. page permalink conflict (same slug) I have a custom post type called "visningshus", and also a Page with that slug. This is as it should (must) be. Currently, "http://my-site.com/visningshus" lists all posts of that type. I want to show the page that has that permalink slug instead. How can I make Wordpress not make the post type name take precedence, but instead the permalink, and show the Page? A: Tjena Henrik! I think all you need to do is to add a rewrite rule to the Wordpress Rewrite rules that have already been created. Add this code snippet to your functions.php of your theme or include it as a separate pugin... add_action('init', function () { add_rewrite_rule('visningshus/?$','index.php?pagename=visningshus', 'top'); flush_rewrite_rules(); }, 1000); A: The easiest would be to just disable the archive page for this CPT: register_post_type( 'visningshus', array( [...] 'has_archive' => false, [...] ) ); Don't forget to refresh you permalinks afterwards at "Settings > Permalinks" A: If you registered the post type yourself, you can change the archive status and URL in your theme or plugin. 'has_archive' => true, enables the archive in post-type-permalink. so change that to 'has_archive' => false, will disable the archive. 'has_archive' => 'custom-slug', will enable the archive in custom slug(http://my-site.com/custom-slug/). If a plugin or your theme register it, you can disable it with the way krafter did. You can also use custom slug for the archive. register_post_type( 'visningshus', array( [...] 'has_archive' => 'custom-slug', [...] ) ); If you need both the page and the archive the best way would be to put the archive in a different custom slug. A: I'm not high enough reputation to comment on @Carl's post, but his is the correct answer (at least to this situation of keeping the page slug and custom post type slug the same and not using an archive.php file) But his answer would give errors with pagination. To avoid pagination errors: add_rewrite_rule('^visningshus/page/([0-9]+)','index.php?pagename=visningshus&paged=$matches[1]', 'top'); This looks at the pagination, grabs the page number, and then on the flip side forces it to use the page with the matching slug, and then inserts the page variable. This in addition to 'has_archive' => false, posted above should achieve the desired functionality. As others stated, be sure to flush the rewrite rules by visiting Settings > Permalinks after making this change. Hope this helps someone, because I know this stumped me for a really long time. A: I solved it without solving the conflict. Create a page with slug visningshus and write whatever you want in it. Take note on the ID of this page. Create and customize the archive-custom-post-type.php template in whatever way you like (most likely you will just use a page template) but replace the loop part with $recent = new WP_Query("page_id=your-page-id"); while($recent->have_posts()) : $recent->the_post(); the_content(); endwhile; Then when you'll go to http://my-site.com/visningshus youll see the content managed by the page at the correct url. Let me know it it works. A: Not allowed to vote, but + for Carls solution, register_post_type should have 'has_archive' => false Simple. However, when you face pagination problems, take a look at add_rewrite_rule A: What Fixed it for me was setting archive as false but also Setting the Hierarchical to false when setting up my custom post type! A: Here is a general solution to prioritize pagination over custom post types content for ANY custom post type slug. // prioritize pagination over displaying custom post type content add_action('init', function() { add_rewrite_rule( '(.?.+?)/page/?([0-9]{1,})/?$', 'index.php?pagename=$matches[1]&paged=$matches[2]', 'top' ); }); Besides adding this snippet, you should also make sure that your custom post type has archive = false and last but not least go to the Permalinks settings page Settings > Permalinks (/wp/wp-admin/options-permalink.php) and save current settings to refresh links structure on the page.
wordpress
{ "language": "en", "length": 628, "provenance": "stackexchange_00019.jsonl.gz:442476", "question_score": "31", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/135146" }
[ 0.07452392578125, -0.007747650146484375, 0.005367279052734375, -0.0272674560546875, 0.0020122528076171875, -0.025238037109375, 0.0517578125, -0.0330810546875, -0.0364990234375, 0.0005502700805664062, -0.0031566619873046875, 0.042388916015625, -0.008087158203125, -0.0301513671875, 0.052490234375, -0.0027637481689453125, 0.038299560546875, -0.007610321044921875, 0.053985595703125, -0.018463134765625, 0.0310211181640625, -0.0006289482116699219, 0.04107666015625, 0.041900634765625, 0.038299560546875, -0.0279693603515625, 0.0243377685546875, -0.036407470703125, 0.01013946533203125, -0.032958984375, 0.0157318115234375, 0.01450347900390625, 0.00823211669921875, -0.0068206787109375, 0.032684326171875, -0.0024509429931640625, 0.0164642333984375, -0.0031337738037109375, 0.0219268798828125, 0.00896453857421875, 0.006885528564453125, -0.0013303756713867188, 0.036865234375, 0.021575927734375, 0.00830078125, -0.03424072265625, -0.0003571510314941406, -0.07281494140625, 0.0287017822265625, -0.0193939208984375, -0.018829345703125, 0.023345947265625, -0.0088348388671875, 0.010040283203125, -0.01052093505859375, -0.00476837158203125, -0.00518035888671875, 0.002254486083984375, 0.0227813720703125, -0.0081329345703125, -0.0159149169921875, 0.00469970703125, 0.01274871826171875, 0.01360321044921875, -0.0191802978515625, 0.0043487548828125, 0.040863037109375, 0.01111602783203125, -0.037567138671875, -0.01342010498046875, 0.0305328369140625, -0.0005269050598144531, 0.00734710693359375, -0.0022296905517578125, -0.016082763671875, -0.04437255859375, 0.0102996826171875, -0.043914794921875, 0.006351470947265625, 0.020263671875, 0.013580322265625, -0.035003662109375, 0.01497650146484375, -0.007232666015625, -0.0185394287109375, -0.0128173828125, -0.004741668701171875, 0.0070648193359375, -0.03564453125, -0.00624847412109375, -0.0257720947265625, -0.045501708984375, -0.038818359375, 0.03643798828125, 0.01378631591796875, 0.0028228759765625, 0.0012845993041992188, 0.0261383056640625, -0.01324462890625, 0.01189422607421875, 0.011627197265625, -0.056640625, 0.06219482421875, -0.054046630859375, 0.00844573974609375, 0.036712646484375, -0.005756378173828125, 0.05096435546875, 0.0640869140625, 0.0116119384765625, 0.00872802734375, 0.0053253173828125, -0.01192474365234375, -0.0171661376953125, -0.0206298828125, 0.00418853759765625, -0.0419921875, -0.0083160400390625, -0.003971099853515625, -0.0104217529296875, -0.0059661865234375, 0.040130615234375, 0.01412200927734375, -0.02728271484375, 0.003559112548828125, 0.0171051025390625, 0.0028076171875, -0.06463623046875, 0.0225067138671875, 0.001087188720703125, -0.030181884765625, -0.0037326812744140625, 0.06695556640625, 0.0528564453125, 0.0272979736328125, -0.0294952392578125, 0.0107269287109375, -0.0256805419921875, -0.00833892822265625, 0.033660888671875, -0.0144805908203125, -0.03350830078125, 0.00957489013671875, -0.01119232177734375, -0.00197601318359375, 0.04791259765625, 0.016357421875, -0.0021209716796875, -0.01126861572265625, -0.0125579833984375, -0.042633056640625, -0.046142578125, 0.03668212890625, 0.0127105712890625, -0.0704345703125, -0.02178955078125, -0.039642333984375, -0.0105438232421875, -0.005275726318359375, -0.033172607421875, -0.0102691650390625, 0.004413604736328125, -0.0022602081298828125, -0.02392578125, -0.03759765625, 0.006191253662109375, -0.0075225830078125, 0.0005698204040527344, 0.00852203369140625, -0.01052093505859375, -0.0235137939453125, 0.036407470703125, -0.012969970703125, 0.0082855224609375, 0.01546478271484375, -0.0030059814453125, -0.0002608299255371094, 0.038482666015625, 0.0010395050048828125, 0.026824951171875, 0.013763427734375, -0.0394287109375, 0.042083740234375, -0.01326751708984375, -0.07208251953125, 0.056854248046875, 0.022918701171875, 0.050537109375, -0.029144287109375, -0.002918243408203125, 0.08331298828125, 0.055511474609375, -0.0261993408203125, 0.028594970703125, -0.05487060546875, -0.010833740234375, 0.0203704833984375, 0.03460693359375, -0.0316162109375, 0.0204620361328125, -0.03900146484375, 0.01090240478515625, 0.0037021636962890625, 0.0272674560546875, -0.009185791015625, 0.040008544921875, -0.0258026123046875, 0.041717529296875, 0.0137176513671875, 0.02874755859375, 0.02020263671875, 0.0090789794921875, -0.04547119140625, -0.0123291015625, -0.01180267333984375, 0.01039886474609375, -0.0128173828125, 0.0264434814453125, -0.029205322265625, 0.032196044921875, -0.0234222412109375, -0.029693603515625, -0.033111572265625, 0.0306549072265625, -0.0009593963623046875, 0.0111541748046875, -0.035308837890625, -0.001983642578125, -0.033294677734375, 0.030914306640625, -0.048065185546875, 0.0194244384765625, 0.060455322265625, 0.027740478515625, -0.0235137939453125, 0.01163482666015625, 0.018829345703125, -0.026123046875, -0.021209716796875, 0.036773681640625, 0.0244293212890625, 0.02789306640625, -0.0162200927734375, 0.003261566162109375, -0.0135345458984375, -0.0745849609375, 0.007415771484375, -0.002849578857421875, 0.0279083251953125, 0.032928466796875, 0.016204833984375, -0.00792694091796875, 0.020965576171875, -0.0280609130859375, 0.03887939453125, 0.0030078887939453125, 0.0003876686096191406, -0.01580810546875, 0.0033359527587890625, 0.023406982421875, -0.0104522705078125, -0.00043964385986328125, -0.0183563232421875, -0.0032863616943359375, 0.026214599609375, -0.0275115966796875, 0.00522613525390625, -0.0155181884765625, -0.0400390625, 0.00098419189453125, 0.02557373046875, -0.0039825439453125, -0.002040863037109375, 0.024017333984375, 0.055206298828125, -0.02587890625, -0.0250701904296875, -0.00830078125, 0.00255584716796875, 0.00762176513671875, -0.018798828125, 0.0218658447265625, -0.0650634765625, -0.002498626708984375, -0.026123046875, -0.07049560546875, -0.00968170166015625, 0.03375244140625, 0.01617431640625, 0.0008535385131835938, 0.022125244140625, 0.0272369384765625, -0.003662109375, 0.00495147705078125, 0.050506591796875, -0.0259857177734375, 0.049102783203125, -0.060546875, 0.056427001953125, -0.0543212890625, 0.0452880859375, 0.06842041015625, -0.0264434814453125, 0.0161285400390625, 0.006855010986328125, -0.039764404296875, -0.0243988037109375, 0.035736083984375, -0.0157012939453125, -0.032989501953125, -0.06439208984375, -0.0158843994140625, 0.024444580078125, 0.03564453125, 0.0067138671875, -0.01154327392578125, 0.020355224609375, 0.045013427734375, -0.00565338134765625, -0.034088134765625, -0.004871368408203125, -0.0249176025390625, 0.00951385498046875, -0.01270294189453125, 0.006526947021484375, -0.0189971923828125, -0.00424957275390625, 0.004848480224609375, -0.0249481201171875, -0.00920867919921875, -0.053436279296875, -0.07086181640625, -0.07952880859375, -0.01776123046875, 0.01158905029296875, 0.036407470703125, 0.0030803680419921875, -0.0316162109375, 0.004978179931640625, -0.01175689697265625, 0.050445556640625, 0.03204345703125, -0.006938934326171875, -0.006175994873046875, -0.0159912109375, -0.049163818359375, 0.041748046875, -0.0088043212890625, 0.05450439453125, 0.01551055908203125, 0.0042877197265625, 0.0104217529296875, 0.004596710205078125, -0.015106201171875, 0.01434326171875, 0.05767822265625, 0.0099334716796875, 0.00850677490234375, 0.051483154296875, -0.035675048828125, -0.043304443359375, -0.0010805130004882812, -0.045867919921875, -0.01404571533203125, 0.0175628662109375, 0.002773284912109375, -0.03216552734375, 0.0133514404296875, 0.00785064697265625, 0.01064300537109375, 0.043792724609375, -0.041473388671875, 0.041351318359375, -0.0028228759765625, 0.0101470947265625, -0.042877197265625, -0.011566162109375, -0.026947021484375, 0.059539794921875, 0.0017414093017578125, 0.0131988525390625, -0.005641937255859375, 0.029693603515625, -0.045135498046875, -0.050018310546875, 0.0304718017578125, -0.0830078125, -0.027008056640625, -0.04412841796875, -0.0052032470703125, -0.0215911865234375, 0.037322998046875, -0.0273895263671875, -0.003864288330078125, -0.006328582763671875, -0.00955963134765625, 0.006206512451171875, -0.0011138916015625, -0.04071044921875, -0.01458740234375, -0.047119140625, 0.01031494140625, 0.005977630615234375, -0.033203125, -0.0078125, -0.01383209228515625, -0.0394287109375, -0.0204315185546875, 0.054534912109375, -0.04962158203125, 0.01200103759765625, 0.0557861328125, -0.003650665283203125, 0.014068603515625, -0.077880859375, -0.0087432861328125, -0.0994873046875, -0.0260772705078125, 0.005340576171875, 0.07147216796875, -0.0194091796875, -0.02801513671875, -0.031768798828125, 0.05377197265625, 0.03143310546875, 0.0543212890625, 0.02166748046875, -0.041961669921875, 0.03204345703125, 0.042205810546875, 0.0506591796875, 0.0168914794921875, 0.0183563232421875, 0.002288818359375, -0.041351318359375, -0.00775909423828125, -0.0222625732421875, -0.01885986328125, 0.029388427734375, -0.059814453125, -0.0709228515625, -0.01021575927734375, -0.002262115478515625, -0.0037746429443359375, 0.01898193359375, -0.0251922607421875, -0.0015659332275390625, -0.06610107421875, 0.044677734375, 0.0117950439453125, 0.01073455810546875, 0.0005125999450683594, 0.05401611328125, -0.0008254051208496094, -0.041107177734375, -0.0236358642578125, 0.033843994140625, 0.031280517578125, -0.01297760009765625, 0.0269622802734375, -0.00957489013671875, -0.002346038818359375, 0.0279541015625, -0.0166778564453125, -0.0367431640625, 0.0086517333984375, -0.0012636184692382812, 0.00634765625, 0.00852203369140625, -0.0254974365234375, -0.0247802734375, 0.06402587890625, 0.0377197265625, -0.00818634033203125, -0.0148162841796875, -0.025634765625, 0.038787841796875, -0.01317596435546875, 0.02130126953125, -0.03076171875, -0.0178985595703125, 0.0278472900390625, -0.0288543701171875, 0.043304443359375, 0.01273345947265625, 0.00016009807586669922, 0.0107421875, -0.033233642578125, -0.0272216796875, 0.016326904296875, 0.01544952392578125, 0.03564453125, 0.0101165771484375, 0.0355224609375, 0.01345062255859375, -0.03814697265625, 0.005908966064453125, 0.0452880859375, 0.0104827880859375, -0.0005645751953125, -0.0531005859375, -0.0228424072265625, 0.0135345458984375, 0.0009579658508300781, 0.048583984375, 0.04132080078125, 0.005641937255859375, -0.015838623046875, 0.004787445068359375, 0.051513671875, -0.0035991668701171875, -0.030120849609375, 0.018829345703125, 0.0325927734375, -0.0178680419921875, -0.0116424560546875, 0.038970947265625, 0.05316162109375, -0.01074981689453125, -0.0254669189453125, -0.004352569580078125, 0.0121917724609375, 0.031829833984375, 0.0274200439453125, -0.0321044921875, -0.01013946533203125, 0.004726409912109375, 0.0115509033203125, -0.04150390625, -0.042266845703125, 0.002803802490234375, 0.08258056640625, -0.0423583984375, -0.016387939453125, 0.0244140625, -0.030792236328125, -0.006664276123046875, 0.028228759765625, 0.0292816162109375, -0.004405975341796875, -0.0305328369140625, -0.014251708984375, 0.0291900634765625, -0.00970458984375, -0.0037441253662109375, 0.0134735107421875, -0.008392333984375, 0.0029392242431640625, -0.003875732421875, -0.016845703125, 0.00115203857421875, 0.00736236572265625, 0.018829345703125, -0.00672149658203125, 0.000705718994140625, -0.0024242401123046875, -0.010467529296875, -0.0183563232421875, 0.004489898681640625, 0.0054168701171875, -0.01305389404296875, 0.06622314453125, -0.0201416015625, -0.034698486328125, 0.0309906005859375, 0.0220489501953125, 0.016693115234375, -0.0017309188842773438, -0.05108642578125, 0.019439697265625, -0.035491943359375, 0.013214111328125, 0.049072265625, -0.007080078125, -0.0194549560546875, -0.040557861328125, 0.0006537437438964844, 0.0018873214721679688, -0.005146026611328125, 0.020172119140625, -0.006778717041015625, 0.054534912109375, 0.0016736984252929688, 0.056060791015625, -0.027496337890625, 0.034942626953125, 0.00620269775390625, 0.0302734375, -0.00806427001953125, -0.023529052734375, -0.0208587646484375, -0.0043182373046875, -0.0020771026611328125, -0.06402587890625, -0.045440673828125, 0.025421142578125, -0.050628662109375, 0.07403564453125, 0.06695556640625, 0.00629425048828125, 0.02056884765625, -0.01197052001953125, 0.015869140625, -0.018798828125, -0.0166015625, -0.037872314453125, -0.005611419677734375, 0.00057220458984375, 0.003692626953125, 0.0582275390625, 0.02581787109375, -0.004619598388671875, -0.00626373291015625, -0.01204681396484375, 0.0491943359375, -0.0248870849609375, -0.02227783203125, 0.010040283203125, 0.033538818359375, 0.012451171875, 0.037689208984375, 0.0079803466796875, 0.0258636474609375, 0.0157012939453125, -0.01215362548828125, 0.021087646484375, 0.006801605224609375, 0.07012939453125, 0.01374053955078125, 0.0012044906616210938, 0.05859375, -0.0221099853515625, -0.0269317626953125, 0.09124755859375, 0.05242919921875, -0.09527587890625, -0.0296630859375, -0.00243377685546875, -0.0236968994140625, -0.022918701171875, 0.015716552734375, -0.007724761962890625, 0.03387451171875, -0.0186767578125, -0.051605224609375, -0.0382080078125, -0.0092620849609375, 0.004547119140625, -0.010650634765625, -0.031158447265625, 0.040802001953125, 0.0016231536865234375, 0.0226898193359375, -0.0213775634765625, -0.0222015380859375, -0.002582550048828125, 0.0030460357666015625, 0.0187835693359375, -0.00890350341796875, 0.000024557113647460938, 0.010345458984375, 0.044586181640625, -0.03814697265625, 0.00452423095703125, 0.05401611328125, 0.036529541015625, 0.0031070709228515625, 0.0147705078125, 0.003314971923828125, 0.011474609375, -0.01165771484375, -0.01142120361328125, 0.0478515625, -0.0310821533203125, -0.01251983642578125, -0.0032444000244140625, -0.01806640625, -0.006374359130859375, -0.0155029296875, -0.01001739501953125, -0.00598907470703125, -0.0205535888671875, 0.080322265625, -0.056793212890625, -0.0001863241195678711, 0.0311737060546875, 0.01540374755859375, -0.0130615234375, 0.037811279296875, -0.0029850006103515625, -0.0300750732421875, -0.057708740234375, 0.0128021240234375, -0.0946044921875, -0.0033588409423828125, 0.0123291015625, -0.1004638671875, 0.09393310546875, 0.058563232421875, 0.05865478515625, 0.0053558349609375, 0.0177459716796875, -0.043792724609375, -0.0184326171875, -0.0210723876953125, 0.060211181640625, 0.01342010498046875, 0.05865478515625, -0.03411865234375, -0.011383056640625, 0.0291748046875, 0.03839111328125, 0.08087158203125, 0.019378662109375, -0.033355712890625, -0.01275634765625, 0.06707763671875, 0.0201416015625, -0.02288818359375, 0.033935546875, -0.0014438629150390625, 0.01091766357421875, 0.0038204193115234375, 0.00665283203125, 0.032989501953125, -0.0164947509765625, -0.05517578125, 0.021026611328125, 0.01428985595703125, 0.0273895263671875, 0.027191162109375, -0.00757598876953125, -0.048004150390625, 0.018463134765625, 0.049591064453125, -0.0289764404296875, 0.043701171875, -0.019805908203125, 0.0660400390625, -0.0611572265625, -0.08258056640625, 0.003864288330078125, 0.047210693359375, 0.0291748046875, -0.00901031494140625, 0.01018524169921875, 0.0007529258728027344, 0.023590087890625, -0.0287933349609375, -0.022003173828125, 0.004688262939453125, 0.001018524169921875, 0.04302978515625, 0.0587158203125, 0.035491943359375, 0.01100921630859375, 0.0010766983032226562, 0.053802490234375, 0.07354736328125, -0.0380859375, -0.0120849609375, 0.006244659423828125, -0.007080078125, -0.020233154296875, -0.028289794921875, -0.0164947509765625, -0.01861572265625, -0.0020046234130859375, -0.026702880859375, 0.004077911376953125, 0.0328369140625, 0.0244903564453125, -0.0017032623291015625, -0.025360107421875, -0.049407958984375, 0.0187835693359375, -0.030029296875, 0.01087188720703125, 0.01004791259765625, 0.06640625, 0.0160064697265625, 0.0596923828125, -0.0526123046875, -0.024169921875, -0.01387786865234375, -0.0036945343017578125, -0.0006251335144042969, 0.0208282470703125, -0.05999755859375, -0.005748748779296875, 0.038818359375, 0.0489501953125, 0.0235443115234375, 0.01250457763671875, 0.01244354248046875, 0.0169830322265625, 0.03277587890625, -0.006313323974609375, 0.03594970703125, -0.0069732666015625, 0.041168212890625, -0.0160369873046875, 0.0032176971435546875, -0.0211639404296875, -0.023956298828125, -0.07171630859375, 0.031768798828125, -0.0018072128295898438, 0.024444580078125, 0.031219482421875, 0.02301025390625, -0.0100250244140625, 0.036407470703125, 0.02264404296875, 0.07232666015625, 0.0721435546875, -0.01025390625, 0.0047760009765625, -0.01274871826171875, -0.049072265625, 0.0203857421875, 0.051971435546875, 0.0196075439453125, -0.017242431640625, 0.052581787109375, -0.0244903564453125, 0.002483367919921875, 0.0020904541015625, 0.032257080078125, -0.00595855712890625, -0.01416778564453125, 0.0182037353515625, -0.06854248046875, -0.031280517578125, -0.0200042724609375, 0.016021728515625, -0.0313720703125, 0.11181640625, -0.0228424072265625, 0.0018463134765625, -0.032257080078125, 0.007152557373046875, -0.018707275390625, -0.03741455078125, 0.05084228515625, -0.0015115737915039062, -0.0208282470703125, -0.005603790283203125, -0.0271759033203125, -0.005405426025390625, 0.02667236328125, -0.02154541015625, -0.0014629364013671875, -0.044586181640625, 0.03143310546875, 0.00682830810546875, 0.005184173583984375, -0.038665771484375, -0.0215606689453125, -0.024169921875, -0.0129241943359375, 0.005367279052734375, -0.018585205078125, -0.0188751220703125, 0.05194091796875, 0.0025348663330078125, -0.01422882080078125, 0.0302734375, -0.057037353515625, 0.0245819091796875, 0.0259857177734375, 0.023193359375, -0.026702880859375, -0.0025768280029296875, -0.01523590087890625, -0.0195770263671875, 0.0220489501953125, -0.0250701904296875, 0.0107269287109375, -0.044036865234375, -0.016754150390625, -0.05560302734375, -0.0207366943359375, -0.032012939453125, -0.022491455078125, -0.01953125, 0.00543212890625, -0.010284423828125, -0.03179931640625, -0.027252197265625, -0.011383056640625, 0.0009431838989257812, 0.022552490234375, 0.00896453857421875, -0.0182342529296875, -0.01158905029296875, -0.02069091796875, 0.0204315185546875, -0.00946807861328125, -0.01165008544921875, 0.0091400146484375, -0.045562744140625, 0.01800537109375, -0.0340576171875, -0.050811767578125, 0.007480621337890625, 0.0301666259765625, -0.007793426513671875, -0.0009360313415527344, -0.027587890625, -0.0156707763671875, -0.036102294921875, -0.0017614364624023438, 0.02130126953125, -0.018218994140625, -0.0258636474609375, -0.03387451171875, -0.00881195068359375, 0.016448974609375, 0.010406494140625, -0.027008056640625, 0.01326751708984375, 0.0021419525146484375, -0.0117645263671875, -0.06396484375, 0.0193023681640625, -0.06488037109375, -0.0083465576171875, 0.01337432861328125, -0.004711151123046875, 0.0240631103515625, -0.0176544189453125, -0.02001953125, 0.037506103515625, 0.0183563232421875, -0.01416015625, -0.05389404296875, -0.00815582275390625, 0.0098114013671875, 0.006084442138671875, -0.0243377685546875, -0.0204010009765625, -0.048797607421875, 0.043487548828125, -0.00948333740234375, 0.035919189453125, 0.001220703125, 0.00685882568359375, 0.008544921875, 0.02874755859375, 0.039215087890625, -0.01849365234375, 0.0192413330078125, 0.007396697998046875, -0.0012731552124023438, 0.031402587890625, -0.032470703125, -0.01047515869140625, -0.0273590087890625, -0.0226593017578125, -0.017578125, -0.0726318359375, -0.048583984375, -0.04730224609375, 0.08526611328125, 0.05487060546875, 0.02032470703125, -0.027984619140625, -0.04278564453125, -0.04296875, -0.07464599609375, -0.0020008087158203125, 0.04644775390625, -0.066162109375, 0.035308837890625, 0.005565643310546875, -0.00920867919921875, 0.0138397216796875, -0.034210205078125, -0.01558685302734375, 0.01270294189453125, -0.00884246826171875, -0.012786865234375, -0.0004489421844482422, 0.05145263671875, 0.0309295654296875, -0.01739501953125, 0.01934814453125, -0.018463134765625, -0.00829315185546875, 0.0235137939453125, -0.03790283203125, 0.001312255859375, 0.0006113052368164062, 0.0040130615234375, 0.00057220458984375, 0.019500732421875, 0.062408447265625, 0.004131317138671875, -0.0258331298828125, 0.0220184326171875, 0.03668212890625, -0.030853271484375, 0.030670166015625, -0.002529144287109375, 0.05938720703125, -0.01337432861328125, 0.05706787109375, 0.0169830322265625, 0.0494384765625, 0.03045654296875, 0.04058837890625, -0.020538330078125, -0.0232391357421875, 0.008544921875, -0.0887451171875, -0.01039886474609375, -0.006381988525390625, -0.05267333984375, -0.06512451171875, 0.00792694091796875, 0.0196685791015625, -0.002223968505859375, 0.022979736328125 ]
623ad87240d1d8833ba0a556d7d5002c190d2d0a
Wordpress Stackexchange Q: Using wp-cli to Update WP Networks / Multisite from 3.5.1 to 3.8 I've been handed a WP Networks site that is running WP (Networks) 3.5.1 on RHEL 5.8 with about 40 sites attached to it. I see the need to update to 3.8. By background, I'm more familiar with maintaining Drupal sites with Drush. My first hunch here is to use wp-cli to run the update. Is this the preferred update method in the WP community or am I better swapping out php files from the tar ball? That is, can I depend on wp-cli to run a clean update from 3.5.1 to 3.8? Many thanks! A: For regular users, the preferred update method is pressing the "Update" button in wp-admin. For sysadmins, wp core update + wp core update-db will probably be a lot faster. Note that for multisite instances, you'll have to update the DB for each site in the network. See https://github.com/wp-cli/wp-cli/issues/683 NB: I might be biased, since I'm currently the maintainer of WP-CLI.
Q: Using wp-cli to Update WP Networks / Multisite from 3.5.1 to 3.8 I've been handed a WP Networks site that is running WP (Networks) 3.5.1 on RHEL 5.8 with about 40 sites attached to it. I see the need to update to 3.8. By background, I'm more familiar with maintaining Drupal sites with Drush. My first hunch here is to use wp-cli to run the update. Is this the preferred update method in the WP community or am I better swapping out php files from the tar ball? That is, can I depend on wp-cli to run a clean update from 3.5.1 to 3.8? Many thanks! A: For regular users, the preferred update method is pressing the "Update" button in wp-admin. For sysadmins, wp core update + wp core update-db will probably be a lot faster. Note that for multisite instances, you'll have to update the DB for each site in the network. See https://github.com/wp-cli/wp-cli/issues/683 NB: I might be biased, since I'm currently the maintainer of WP-CLI.
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:442568", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/135486" }
[ 0.0006113052368164062, -0.0265045166015625, -0.042022705078125, -0.0556640625, -0.00708770751953125, -0.027862548828125, -0.01416015625, 0.027008056640625, 0.0192718505859375, 0.0182952880859375, -0.0199127197265625, 0.01485443115234375, -0.016998291015625, -0.005889892578125, -0.0121917724609375, -0.02691650390625, 0.055450439453125, -0.0229949951171875, 0.013702392578125, 0.00194549560546875, -0.025909423828125, 0.0546875, 0.010711669921875, 0.06982421875, -0.005496978759765625, -0.062103271484375, 0.056365966796875, 0.004711151123046875, -0.01381683349609375, -0.026702880859375, 0.0130462646484375, 0.058074951171875, 0.035369873046875, 0.00107574462890625, -0.024322509765625, -0.01154327392578125, 0.005107879638671875, -0.002010345458984375, -0.0031261444091796875, 0.01457977294921875, -0.0164337158203125, 0.0011949539184570312, 0.0772705078125, -0.04986572265625, 0.03558349609375, -0.0015087127685546875, -0.0173492431640625, -0.0677490234375, 0.0328369140625, -0.00789642333984375, -0.0255279541015625, 0.01543426513671875, 0.0006928443908691406, -0.0097198486328125, -0.024749755859375, -0.02752685546875, -0.011566162109375, 0.006969451904296875, 0.0166015625, 0.0005922317504882812, -0.01189422607421875, -0.0093994140625, 0.026641845703125, -0.01129913330078125, -0.01303863525390625, -0.0009608268737792969, 0.0631103515625, 0.00432586669921875, -0.06439208984375, -0.03253173828125, 0.034393310546875, -0.0014963150024414062, 0.0212249755859375, -0.0279693603515625, 0.027740478515625, -0.003124237060546875, 0.01030731201171875, 0.0015325546264648438, 0.00917816162109375, -0.004638671875, 0.061798095703125, 0.0374755859375, 0.00948333740234375, -0.0116119384765625, 0.0211029052734375, 0.0162811279296875, 0.01216888427734375, -0.036163330078125, -0.028076171875, -0.01108551025390625, -0.0357666015625, 0.0018377304077148438, -0.042877197265625, -0.00330352783203125, -0.01122283935546875, -0.01068115234375, -0.0197906494140625, -0.018280029296875, -0.0269775390625, -0.0025997161865234375, 0.0239410400390625, -0.0379638671875, 0.033843994140625, -0.01468658447265625, -0.007801055908203125, 0.03692626953125, 0.04290771484375, 0.01055908203125, 0.00473785400390625, -0.0004506111145019531, -0.017120361328125, 0.0211334228515625, 0.0003418922424316406, 0.0071868896484375, -0.04437255859375, -0.0165557861328125, -0.046844482421875, 0.0232696533203125, -0.005077362060546875, 0.019927978515625, -0.0204620361328125, 0.00835418701171875, -0.05560302734375, 0.014373779296875, -0.01212310791015625, -0.0126190185546875, 0.01678466796875, -0.0006470680236816406, -0.0609130859375, 0.020904541015625, -0.0166473388671875, 0.0196075439453125, 0.04632568359375, 0.037506103515625, -0.01474761962890625, -0.01055145263671875, 0.027252197265625, 0.0191802978515625, 0.017486572265625, 0.03253173828125, 0.01316070556640625, -0.045684814453125, -0.0304718017578125, 0.00443267822265625, 0.06671142578125, 0.0232391357421875, 0.01444244384765625, 0.00902557373046875, 0.022979736328125, 0.0135498046875, 0.011505126953125, -0.00131988525390625, 0.035186767578125, -0.0025272369384765625, 0.05755615234375, -0.047760009765625, 0.09918212890625, -0.05828857421875, -0.0084686279296875, -0.046173095703125, -0.050689697265625, 0.003162384033203125, 0.054443359375, -0.041778564453125, -0.0243072509765625, 0.01448822021484375, -0.0286102294921875, -0.00658416748046875, 0.0251312255859375, -0.00412750244140625, -0.00592803955078125, -0.01708984375, 0.05523681640625, 0.029022216796875, 0.0020542144775390625, 0.037689208984375, 0.01520538330078125, -0.01751708984375, 0.040283203125, 0.0192413330078125, -0.028350830078125, -0.0303497314453125, 0.06536865234375, -0.039581298828125, -0.03546142578125, -0.04254150390625, -0.0002334117889404297, 0.04278564453125, 0.072509765625, 0.0189361572265625, 0.028045654296875, -0.06353759765625, 0.0029277801513671875, 0.022918701171875, -0.01593017578125, -0.002384185791015625, -0.0528564453125, 0.035736083984375, -0.0372314453125, -0.034271240234375, -0.026702880859375, 0.0215911865234375, 0.002899169921875, 0.030364990234375, -0.02899169921875, 0.03851318359375, -0.027984619140625, 0.03314208984375, 0.052734375, -0.0260009765625, 0.006290435791015625, 0.014739990234375, -0.0065155029296875, -0.043426513671875, -0.08953857421875, 0.02813720703125, -0.03741455078125, 0.034088134765625, -0.0005998611450195312, 0.03717041015625, 0.00014293193817138672, -0.0028896331787109375, 0.00423431396484375, -0.0231170654296875, -0.00408935546875, -0.013916015625, -0.005657196044921875, -0.01213836669921875, 0.02984619140625, 0.0120849609375, 0.03497314453125, 0.01100921630859375, 0.00859832763671875, 0.04327392578125, 0.004192352294921875, -0.0005474090576171875, 0.0149688720703125, -0.059356689453125, 0.0171356201171875, 0.02349853515625, 0.0626220703125, -0.023651123046875, 0.005184173583984375, -0.05767822265625, 0.0179595947265625, -0.03607177734375, 0.046783447265625, -0.06927490234375, 0.0071258544921875, 0.03912353515625, 0.01081085205078125, -0.019378662109375, 0.0164794921875, -0.051788330078125, 0.00499725341796875, 0.040191650390625, 0.0237579345703125, -0.01311492919921875, -0.0297393798828125, 0.01131439208984375, 0.0245819091796875, -0.037384033203125, -0.06903076171875, 0.01284027099609375, -0.0092620849609375, -0.011444091796875, 0.0092315673828125, 0.005863189697265625, 0.0015935897827148438, -0.0272674560546875, 0.0251922607421875, -0.0215911865234375, 0.0372314453125, 0.047210693359375, -0.07818603515625, 0.047882080078125, -0.0141143798828125, -0.01389312744140625, -0.005107879638671875, 0.0241546630859375, -0.0280609130859375, 0.0079193115234375, -0.0213165283203125, -0.01763916015625, 0.006626129150390625, 0.00027561187744140625, 0.01222991943359375, -0.02099609375, -0.049224853515625, -0.02032470703125, 0.038238525390625, -0.003429412841796875, -0.01222991943359375, -0.0070648193359375, 0.01275634765625, -0.022613525390625, 0.01363372802734375, -0.016021728515625, 0.021270751953125, -0.016815185546875, 0.0238800048828125, 0.04931640625, 0.01403045654296875, -0.0104217529296875, 0.00445556640625, 0.0413818359375, 0.050079345703125, -0.0222015380859375, -0.01258087158203125, 0.01299285888671875, -0.054779052734375, -0.0107269287109375, 0.003009796142578125, -0.0051727294921875, -0.01934814453125, -0.039093017578125, -0.022064208984375, -0.018524169921875, -0.1005859375, -0.07769775390625, -0.0391845703125, -0.04998779296875, -0.0160675048828125, -0.0177154541015625, -0.0249481201171875, 0.0191192626953125, -0.0034275054931640625, 0.0175628662109375, 0.034149169921875, -0.0147857666015625, -0.0400390625, -0.0299530029296875, -0.08087158203125, -0.03125, 0.0013427734375, 0.02960205078125, 0.002105712890625, 0.0333251953125, 0.0026340484619140625, -0.038818359375, -0.0179901123046875, 0.04327392578125, -0.02777099609375, -0.034942626953125, -0.0007066726684570312, -0.038787841796875, 0.00804901123046875, -0.0170440673828125, 0.007232666015625, 0.016876220703125, 0.0009484291076660156, -0.001049041748046875, 0.0067291259765625, -0.045074462890625, 0.0059051513671875, 0.011810302734375, -0.0094146728515625, -0.03265380859375, -0.0147247314453125, -0.06451416015625, -0.007411956787109375, 0.01039886474609375, 0.00252532958984375, 0.0255279541015625, -0.0146942138671875, -0.0241851806640625, -0.006610870361328125, 0.046905517578125, -0.014312744140625, -0.01177215576171875, 0.0210113525390625, -0.0250701904296875, 0.05511474609375, -0.01541900634765625, -0.043182373046875, -0.0298614501953125, 0.008636474609375, -0.027191162109375, -0.0256500244140625, -0.0162506103515625, -0.00914764404296875, -0.0282745361328125, 0.028289794921875, -0.03271484375, -0.02227783203125, 0.03662109375, -0.046722412109375, 0.002410888671875, -0.056488037109375, -0.019805908203125, -0.0325927734375, 0.048492431640625, -0.03125, -0.0293731689453125, -0.0282440185546875, 0.02667236328125, -0.0157928466796875, -0.052398681640625, 0.02569580078125, -0.0272674560546875, -0.022918701171875, -0.009429931640625, -0.0198822021484375, -0.009033203125, -0.0194091796875, -0.014190673828125, -0.0002872943878173828, -0.039581298828125, 0.04449462890625, -0.03271484375, -0.0036983489990234375, 0.0202484130859375, -0.03509521484375, -0.0124969482421875, -0.054168701171875, -0.01181793212890625, -0.059967041015625, -0.00016868114471435547, -0.0296630859375, 0.0350341796875, 0.0019683837890625, 0.0076751708984375, -0.02496337890625, 0.0181121826171875, 0.005634307861328125, 0.02880859375, -0.0361328125, -0.018951416015625, -0.0203704833984375, 0.0250396728515625, 0.005126953125, 0.005218505859375, -0.034881591796875, -0.034637451171875, -0.035125732421875, -0.0421142578125, 0.0038738250732421875, -0.0087738037109375, 0.0183258056640625, -0.0176239013671875, -0.0023822784423828125, -0.053253173828125, -0.038421630859375, -0.0246124267578125, -0.034027099609375, 0.006687164306640625, -0.036102294921875, -0.00328826904296875, 0.0732421875, 0.0036373138427734375, 0.03033447265625, -0.0262908935546875, 0.09423828125, 0.006282806396484375, -0.03570556640625, -0.00461578369140625, -0.01654052734375, 0.02459716796875, 0.006191253662109375, 0.04193115234375, 0.021148681640625, -0.006542205810546875, 0.008209228515625, 0.01751708984375, -0.01470947265625, 0.0562744140625, -0.0279388427734375, 0.05389404296875, 0.0016756057739257812, -0.022186279296875, 0.04150390625, -0.0228424072265625, 0.003749847412109375, -0.023223876953125, 0.006511688232421875, -0.0267181396484375, 0.0299530029296875, 0.0144500732421875, -0.01340484619140625, -0.0667724609375, -0.0657958984375, 0.0267181396484375, -0.05303955078125, 0.024688720703125, -0.008453369140625, -0.003002166748046875, 0.0249786376953125, -0.0022335052490234375, -0.0151214599609375, -0.022613525390625, 0.0159454345703125, 0.0007081031799316406, 0.004756927490234375, 0.0084686279296875, -0.023101806640625, -0.032958984375, -0.035552978515625, 0.1021728515625, 0.0049285888671875, -0.0479736328125, 0.0455322265625, -0.0226898193359375, 0.035125732421875, 0.0255279541015625, -0.0118560791015625, 0.04205322265625, 0.00215911865234375, -0.022186279296875, -0.03741455078125, -0.05767822265625, -0.037384033203125, -0.06707763671875, -0.068603515625, -0.0194091796875, -0.0287628173828125, 0.05108642578125, -0.056182861328125, -0.0252532958984375, -0.0106353759765625, -0.004314422607421875, 0.02862548828125, 0.05572509765625, -0.0389404296875, 0.01132965087890625, 0.03271484375, 0.006847381591796875, -0.07281494140625, 0.0222015380859375, -0.01300811767578125, -0.003963470458984375, 0.04095458984375, 0.04736328125, 0.04351806640625, 0.00971221923828125, -0.043304443359375, -0.03948974609375, 0.0037899017333984375, 0.04229736328125, 0.017974853515625, -0.033050537109375, -0.018829345703125, 0.013580322265625, 0.03546142578125, -0.02813720703125, 0.0102081298828125, 0.0005650520324707031, -0.0193939208984375, -0.0287322998046875, 0.0285491943359375, -0.0285186767578125, -0.03826904296875, -0.020660400390625, 0.032012939453125, -0.01117706298828125, -0.02386474609375, 0.00848388671875, 0.0252532958984375, -0.0305328369140625, -0.0213165283203125, 0.05035400390625, -0.036468505859375, -0.0185089111328125, -0.021820068359375, 0.0294647216796875, -0.013427734375, 0.0114288330078125, 0.03759765625, 0.0205078125, 0.02630615234375, -0.01190185546875, -0.01806640625, -0.0352783203125, -0.0221710205078125, -0.02197265625, -0.03363037109375, 0.01568603515625, 0.00737762451171875, 0.00027251243591308594, -0.0168304443359375, -0.035614013671875, -0.03369140625, 0.03839111328125, 0.039764404296875, 0.0097198486328125, 0.006927490234375, 0.0017614364624023438, -0.01386260986328125, 0.030242919921875, 0.0089263916015625, 0.001964569091796875, 0.00955963134765625, -0.032073974609375, -0.0004277229309082031, -0.01348114013671875, -0.0174407958984375, -0.006458282470703125, 0.00324249267578125, -0.011688232421875, 0.003093719482421875, -0.00870513916015625, 0.0268402099609375, -0.029205322265625, 0.00362396240234375, -0.032379150390625, 0.01934814453125, -0.0361328125, 0.0193328857421875, 0.00962066650390625, -0.0318603515625, -0.00887298583984375, 0.0050506591796875, 0.007541656494140625, 0.0014390945434570312, -0.0142974853515625, -0.0254364013671875, 0.0259552001953125, -0.029205322265625, 0.06988525390625, 0.10614013671875, -0.01180267333984375, 0.0285491943359375, 0.009429931640625, -0.0281982421875, -0.0120697021484375, -0.05133056640625, 0.0172271728515625, 0.00872802734375, 0.017486572265625, -0.0268402099609375, 0.031494140625, 0.02886962890625, -0.003269195556640625, 0.012481689453125, 0.0330810546875, 0.070068359375, -0.01384735107421875, -0.0031108856201171875, 0.00909423828125, -0.05560302734375, 0.0025482177734375, 0.0103302001953125, -0.019775390625, -0.031494140625, 0.04119873046875, -0.01287078857421875, -0.0118255615234375, 0.0281524658203125, 0.0098876953125, -0.0167694091796875, 0.00394439697265625, 0.03277587890625, 0.036865234375, 0.033966064453125, -0.0021800994873046875, -0.006710052490234375, 0.029541015625, 0.01190185546875, -0.01568603515625, -0.00464630126953125, -0.06414794921875, -0.041473388671875, -0.0087432861328125, 0.0006375312805175781, -0.0418701171875, 0.0382080078125, 0.00475311279296875, 0.0204925537109375, 0.0765380859375, -0.00910186767578125, 0.002712249755859375, 0.058807373046875, -0.01142120361328125, -0.0297088623046875, -0.0146942138671875, 0.052001953125, 0.00848388671875, -0.08062744140625, 0.0301513671875, -0.051727294921875, -0.00832366943359375, -0.007022857666015625, -0.0087127685546875, 0.0499267578125, -0.0071868896484375, -0.0178680419921875, 0.044830322265625, -0.00905609130859375, -0.020782470703125, 0.017852783203125, 0.043731689453125, -0.07574462890625, -0.09368896484375, 0.040313720703125, -0.07342529296875, -0.04071044921875, 0.034332275390625, -0.0189666748046875, 0.11199951171875, 0.0123291015625, -0.0277862548828125, 0.0221099853515625, 0.0614013671875, -0.033905029296875, 0.041534423828125, -0.01317596435546875, 0.01551055908203125, -0.0188446044921875, 0.0260162353515625, -0.0246124267578125, 0.014129638671875, 0.0147705078125, 0.0211181640625, -0.032440185546875, -0.00179290771484375, -0.0093231201171875, -0.0037021636962890625, 0.0023746490478515625, 0.0145111083984375, 0.0248565673828125, 0.0078887939453125, 0.00922393798828125, 0.046661376953125, 0.029022216796875, -0.049530029296875, 0.022308349609375, -0.007694244384765625, -0.022613525390625, 0.033538818359375, 0.034820556640625, 0.04901123046875, 0.0167083740234375, 0.0634765625, -0.047637939453125, 0.019744873046875, 0.059234619140625, 0.00490570068359375, 0.011810302734375, 0.0051422119140625, -0.05084228515625, 0.081298828125, 0.06024169921875, -0.00910186767578125, 0.0147705078125, -0.019134521484375, 0.0004482269287109375, 0.006099700927734375, 0.003894805908203125, 0.0380859375, 0.0049285888671875, -0.01026153564453125, 0.0298919677734375, 0.0101776123046875, 0.036346435546875, 0.018768310546875, 0.039215087890625, -0.00957489013671875, 0.025634765625, 0.0187835693359375, 0.03680419921875, -0.033966064453125, -0.057464599609375, 0.0155792236328125, 0.0130767822265625, 0.02166748046875, 0.022064208984375, 0.0257720947265625, 0.0096435546875, 0.044403076171875, -0.0182342529296875, -0.0030994415283203125, 0.0046844482421875, -0.007537841796875, 0.019500732421875, 0.0305328369140625, 0.01013946533203125, 0.010467529296875, -0.031951904296875, 0.018463134765625, 0.003936767578125, 0.0263824462890625, -0.002071380615234375, 0.0611572265625, -0.00972747802734375, -0.01256561279296875, -0.00775146484375, 0.0430908203125, 0.00199127197265625, -0.0177764892578125, 0.0017995834350585938, -0.057525634765625, 0.0135345458984375, 0.0227203369140625, 0.0265045166015625, 0.07147216796875, 0.091796875, 0.08758544921875, -0.0156402587890625, 0.00012350082397460938, 0.0740966796875, -0.01068878173828125, 0.006816864013671875, -0.01187896728515625, -0.01551055908203125, -0.0291595458984375, -0.038299560546875, -0.01171112060546875, 0.054351806640625, -0.00484466552734375, 0.00728607177734375, 0.044952392578125, 0.01544189453125, 0.0224609375, 0.049072265625, 0.036895751953125, 0.035858154296875, 0.05706787109375, 0.0196990966796875, -0.007480621337890625, 0.027740478515625, 0.0229339599609375, -0.024932861328125, 0.00799560546875, 0.002323150634765625, 0.003269195556640625, -0.038421630859375, 0.003910064697265625, 0.004024505615234375, 0.0193939208984375, -0.031402587890625, -0.01276397705078125, 0.034820556640625, -0.03369140625, -0.031524658203125, -0.0196685791015625, -0.0213623046875, 0.036407470703125, 0.0207977294921875, 0.088134765625, -0.031829833984375, 0.022369384765625, 0.02203369140625, 0.006595611572265625, 0.015228271484375, 0.02703857421875, -0.049560546875, 0.00872039794921875, 0.036102294921875, -0.0201263427734375, -0.0030460357666015625, 0.044677734375, 0.03564453125, -0.0266571044921875, 0.010101318359375, 0.01055145263671875, 0.004039764404296875, -0.00904083251953125, -0.0144805908203125, -0.046417236328125, -0.038055419921875, -0.035247802734375, -0.01082611083984375, 0.0224151611328125, -0.002681732177734375, -0.01294708251953125, 0.02362060546875, -0.009674072265625, 0.0076904296875, -0.0023746490478515625, 0.005340576171875, -0.0018978118896484375, 0.0220184326171875, -0.0215301513671875, -0.00887298583984375, -0.0016460418701171875, -0.019195556640625, -0.012176513671875, 0.0007052421569824219, 0.01050567626953125, -0.004100799560546875, 0.025115966796875, -0.0240936279296875, 0.024993896484375, 0.025848388671875, -0.0172576904296875, 0.025970458984375, -0.01137542724609375, -0.0135345458984375, 0.00830078125, -0.05987548828125, -0.0308074951171875, -0.05340576171875, 0.01103973388671875, 0.03936767578125, -0.038604736328125, 0.0117340087890625, -0.0635986328125, 0.017181396484375, 0.03466796875, -0.013092041015625, -0.0248565673828125, 0.046722412109375, -0.054168701171875, -0.01293182373046875, 0.0133056640625, -0.0281829833984375, -0.0272216796875, 0.004241943359375, 0.033721923828125, -0.024017333984375, -0.052093505859375, 0.04962158203125, -0.016815185546875, 0.0007939338684082031, 0.0364990234375, -0.00958251953125, -0.019989013671875, -0.0232696533203125, -0.0014820098876953125, 0.022186279296875, 0.01323699951171875, -0.0094757080078125, 0.044097900390625, -0.020294189453125, -0.0203857421875, -0.04742431640625, -0.00310516357421875, -0.03204345703125, 0.021209716796875, -0.0265045166015625, 0.0157470703125, 0.01471710205078125, -0.044219970703125, -0.10150146484375, 0.058685302734375, -0.03912353515625, -0.025787353515625, -0.04083251953125, -0.03179931640625, 0.005615234375, 0.0031833648681640625, -0.0322265625, -0.02093505859375, -0.044921875, 0.05499267578125, -0.0014362335205078125, 0.042083740234375, -0.03167724609375, 0.002285003662109375, -0.0182037353515625, 0.0357666015625, 0.036102294921875, 0.01303863525390625, 0.019439697265625, -0.0017070770263671875, 0.04931640625, 0.043243408203125, -0.022186279296875, 0.05120849609375, 0.0222930908203125, -0.0162811279296875, -0.0001246929168701172, 0.0247955322265625, -0.03955078125, 0.01126861572265625, 0.08062744140625, 0.061859130859375, 0.024017333984375, -0.045379638671875, -0.007610321044921875, -0.0029754638671875, 0.00612640380859375, 0.00925445556640625, 0.020782470703125, -0.0628662109375, -0.01134490966796875, 0.030059814453125, -0.006748199462890625, 0.0167236328125, 0.022369384765625, -0.0009889602661132812, -0.006206512451171875, 0.024017333984375, -0.0175628662109375, -0.025482177734375, -0.042388916015625, 0.05926513671875, -0.03302001953125, 0.00589752197265625, -0.0096588134765625, 0.0214996337890625, 0.01494598388671875, 0.0034732818603515625, -0.0254364013671875, 0.0018329620361328125, -0.015716552734375, 0.04034423828125, -0.014495849609375, -0.0074920654296875, -0.035552978515625, 0.0197296142578125, 0.02960205078125, 0.0205078125, -0.02642822265625, 0.01959228515625, 0.0268096923828125, -0.0070037841796875, -0.039764404296875, 0.0301666259765625, -0.050048828125, 0.0102996826171875, -0.0465087890625, 0.044281005859375, -0.030853271484375, 0.019775390625, 0.0145416259765625, 0.03424072265625, 0.005916595458984375, 0.016845703125, 0.007419586181640625, -0.03363037109375, 0.024322509765625, 0.010772705078125, 0.00577545166015625, 0.01282501220703125 ]
aa29bee12d5c28f9dfa047d0d54056aa8a399985
Wordpress Stackexchange Q: Theme Customizer - Nested Sections? Is it possible to put sections within sections at all? It would be very helpful for me to be able to do so due to having several options per section and I don't want the user to be overloaded with information. A: There is no core customizer behavior that supports nested sections. However, you can roll your own customizer control which contains its own accordion sections and other controls. Keep in mind that each control relates to exactly one theme_mod variable, so my suggestion would be to implement a fairly generic control that is collapsible and contain a variety of form elements.
Q: Theme Customizer - Nested Sections? Is it possible to put sections within sections at all? It would be very helpful for me to be able to do so due to having several options per section and I don't want the user to be overloaded with information. A: There is no core customizer behavior that supports nested sections. However, you can roll your own customizer control which contains its own accordion sections and other controls. Keep in mind that each control relates to exactly one theme_mod variable, so my suggestion would be to implement a fairly generic control that is collapsible and contain a variety of form elements. A: Old question but new Answer There is now ways to add nested sections, with Customizer Panels. Panels can group customizer sections together and can also set access permission. see https://developer.wordpress.org/reference/classes/wp_customize_manager/add_panel/ Example: $wp_customize->add_panel( 'panel_id', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => '', 'description' => '', ) );
wordpress
{ "language": "en", "length": 160, "provenance": "stackexchange_00019.jsonl.gz:442655", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/135774" }
[ -0.0004260540008544922, 0.0005292892456054688, -0.009063720703125, -0.035247802734375, 0.000053048133850097656, 0.0083160400390625, -0.0100860595703125, -0.0044403076171875, -0.0193023681640625, 0.007511138916015625, -0.0235595703125, 0.006626129150390625, -0.065185546875, -0.01387786865234375, 0.000047266483306884766, -0.0675048828125, 0.025115966796875, -0.0264129638671875, 0.0084686279296875, -0.0206756591796875, -0.003387451171875, -0.0203704833984375, 0.03582763671875, 0.052459716796875, 0.03656005859375, 0.019775390625, 0.00543975830078125, -0.0018711090087890625, 0.019012451171875, -0.003692626953125, 0.04315185546875, -0.0357666015625, 0.008331298828125, -0.004268646240234375, 0.04473876953125, 0.020355224609375, 0.01418304443359375, 0.0050811767578125, 0.035400390625, 0.0178375244140625, 0.009063720703125, 0.005168914794921875, 0.038604736328125, 0.050079345703125, -0.00984954833984375, -0.034271240234375, 0.020050048828125, -0.04766845703125, 0.04840087890625, -0.0216827392578125, 0.00789642333984375, 0.004184722900390625, 0.02178955078125, -0.047637939453125, -0.034027099609375, -0.02752685546875, 0.01812744140625, -0.040740966796875, 0.052337646484375, -0.04034423828125, -0.03338623046875, -0.048736572265625, 0.051910400390625, -0.001613616943359375, 0.0303192138671875, 0.0029582977294921875, -0.0168914794921875, 0.0132293701171875, -0.001964569091796875, 0.07635498046875, 0.035369873046875, -0.0460205078125, -0.004791259765625, -0.0248260498046875, 0.00466156005859375, -0.0106353759765625, -0.03656005859375, -0.039886474609375, 0.042755126953125, -0.004184722900390625, 0.007541656494140625, 0.01006317138671875, 0.04840087890625, -0.05218505859375, 0.0280914306640625, -0.03179931640625, -0.0012722015380859375, 0.0026073455810546875, -0.000025212764739990234, 0.0167388916015625, -0.000335693359375, -0.0187835693359375, -0.028900146484375, 0.09619140625, 0.015777587890625, 0.0131378173828125, 0.042388916015625, 0.033843994140625, 0.00756072998046875, 0.0302886962890625, 0.021453857421875, -0.0677490234375, 0.0994873046875, -0.054290771484375, 0.00041937828063964844, -0.004482269287109375, -0.0009145736694335938, 0.005367279052734375, 0.0304718017578125, 0.02874755859375, -0.0205535888671875, 0.037322998046875, 0.01529693603515625, -0.046722412109375, -0.0142364501953125, -0.0162200927734375, -0.023681640625, 0.024200439453125, 0.037139892578125, -0.043212890625, 0.0037403106689453125, 0.019256591796875, -0.00640106201171875, 0.022705078125, -0.0110321044921875, 0.00830841064453125, -0.0186309814453125, -0.02899169921875, 0.0165557861328125, -0.00864410400390625, -0.060302734375, 0.0094451904296875, 0.11309814453125, 0.05682373046875, 0.051177978515625, -0.0236663818359375, 0.035614013671875, -0.0171661376953125, 0.020416259765625, -0.031951904296875, 0.0246124267578125, 0.01397705078125, 0.0078125, -0.01468658447265625, -0.0302276611328125, 0.0237274169921875, 0.054351806640625, 0.006622314453125, -0.049102783203125, -0.11260986328125, 0.051116943359375, 0.002529144287109375, 0.024932861328125, 0.0232391357421875, -0.0210723876953125, -0.00882720947265625, 0.03558349609375, -0.025177001953125, -0.0012140274047851562, -0.044586181640625, -0.00611114501953125, 0.004230499267578125, 0.02294921875, -0.021270751953125, -0.03875732421875, 0.007038116455078125, -0.01800537109375, -0.0001443624496459961, 0.0256805419921875, 0.00678253173828125, 0.0148162841796875, -0.0110321044921875, -0.01065826416015625, 0.0076446533203125, 0.0035610198974609375, -0.00028204917907714844, 0.0190277099609375, 0.008087158203125, -0.007656097412109375, 0.08306884765625, 0.0276031494140625, -0.036376953125, 0.0171051025390625, 0.01125335693359375, -0.04205322265625, 0.02325439453125, 0.0022106170654296875, 0.07489013671875, 0.0290985107421875, 0.0309600830078125, 0.0150299072265625, -0.0289306640625, -0.037689208984375, 0.0185699462890625, -0.01861572265625, -0.020843505859375, 0.0021514892578125, 0.012969970703125, -0.023193359375, 0.01245880126953125, -0.08026123046875, 0.0111083984375, 0.006534576416015625, 0.0194549560546875, 0.032379150390625, -0.0002799034118652344, 0.004230499267578125, 0.031463623046875, -0.005977630615234375, 0.00875091552734375, 0.00975799560546875, -0.0031261444091796875, -0.00441741943359375, -0.03912353515625, -0.0196380615234375, 0.00939178466796875, -0.0070648193359375, 0.0193939208984375, 0.0274658203125, -0.015655517578125, 0.05450439453125, -0.00614166259765625, 0.03643798828125, 0.016387939453125, 0.09063720703125, -0.0145416259765625, 0.01322174072265625, -0.032684326171875, 0.069091796875, 0.0362548828125, -0.10400390625, -0.0175018310546875, 0.06573486328125, 0.0152587890625, -0.04095458984375, -0.00531768798828125, -0.01424407958984375, -0.0804443359375, -0.0247039794921875, 0.067626953125, 0.0181427001953125, 0.036834716796875, -0.0121307373046875, -0.01367950439453125, 0.0787353515625, 0.030120849609375, 0.00463104248046875, 0.003936767578125, -0.03271484375, -0.0064849853515625, 0.03277587890625, 0.0004906654357910156, 0.026519775390625, -0.02978515625, 0.0193023681640625, 0.02984619140625, -0.01242828369140625, -0.0360107421875, -0.0152435302734375, 0.01044464111328125, 0.0276641845703125, -0.008544921875, -0.0439453125, 0.006317138671875, 0.04486083984375, -0.018310546875, 0.04071044921875, 0.025970458984375, 0.004596710205078125, -0.0182037353515625, 0.002254486083984375, -0.02813720703125, 0.0003516674041748047, 0.038116455078125, 0.0238800048828125, 0.012481689453125, -0.033416748046875, -0.0202789306640625, 0.0149993896484375, 0.0263519287109375, -0.0098419189453125, 0.03717041015625, -0.0233306884765625, -0.01512908935546875, 0.01129150390625, -0.006725311279296875, -0.02105712890625, -0.003948211669921875, 0.01297760009765625, -0.0023365020751953125, 0.0181121826171875, 0.0212554931640625, -0.0333251953125, 0.06109619140625, -0.0257415771484375, -0.0177001953125, 0.0302734375, -0.041107177734375, 0.049102783203125, -0.006786346435546875, 0.0180206298828125, 0.0670166015625, -0.0007944107055664062, 0.018890380859375, -0.0007758140563964844, 0.00852203369140625, 0.03509521484375, -0.0133209228515625, 0.0216522216796875, -0.002582550048828125, -0.01134490966796875, 0.02276611328125, 0.0257415771484375, 0.058929443359375, 0.0135040283203125, -0.035369873046875, 0.0034160614013671875, 0.050140380859375, 0.00397491455078125, -0.0304718017578125, 0.029937744140625, -0.045166015625, -0.04107666015625, -0.00786590576171875, -0.03717041015625, -0.0019626617431640625, 0.0250396728515625, -0.0181732177734375, -0.032684326171875, -0.03594970703125, -0.0204925537109375, -0.053802490234375, -0.052032470703125, -0.01502227783203125, 0.005168914794921875, 0.0117340087890625, 0.0038509368896484375, 0.054718017578125, 0.004779815673828125, -0.07379150390625, -0.0017652511596679688, -0.00156402587890625, -0.00611114501953125, 0.035552978515625, 0.0281219482421875, -0.01247406005859375, 0.0026035308837890625, 0.01459503173828125, -0.0165252685546875, 0.023895263671875, -0.023651123046875, -0.01541900634765625, -0.004451751708984375, 0.03009033203125, -0.0206451416015625, 0.010223388671875, 0.0210113525390625, 0.010894775390625, -0.03289794921875, -0.050079345703125, -0.06640625, 0.005657196044921875, -0.08538818359375, -0.021392822265625, 0.060760498046875, -0.02001953125, -0.011077880859375, -0.018951416015625, 0.00946807861328125, -0.00022161006927490234, -0.009796142578125, -0.0170440673828125, 0.055633544921875, 0.006622314453125, 0.0259552001953125, -0.0171661376953125, 0.014892578125, -0.032562255859375, 0.027557373046875, 0.006580352783203125, -0.0023632049560546875, -0.01293182373046875, -0.0012693405151367188, -0.024322509765625, -0.059417724609375, 0.052947998046875, 0.007732391357421875, 0.0245819091796875, -0.01560211181640625, -0.034881591796875, 0.0174102783203125, 0.1107177734375, -0.08392333984375, -0.0083160400390625, 0.029296875, 0.0345458984375, -0.0142822265625, 0.0012302398681640625, -0.08056640625, -0.02838134765625, -0.06768798828125, 0.0054168701171875, -0.003021240234375, -0.0457763671875, -0.0288848876953125, 0.0281219482421875, -0.05279541015625, -0.032989501953125, -0.0223236083984375, 0.0264739990234375, 0.005168914794921875, -0.00884246826171875, -0.0137481689453125, 0.0178375244140625, 0.03240966796875, -0.04534912109375, -0.0572509765625, -0.00997161865234375, -0.0211029052734375, 0.03851318359375, 0.03729248046875, -0.0504150390625, 0.0092315673828125, 0.037689208984375, -0.005458831787109375, 0.043670654296875, 0.0023899078369140625, 0.01432037353515625, 0.0201568603515625, 0.0308380126953125, 0.0228271484375, -0.0097808837890625, -0.0111846923828125, 0.00925445556640625, 0.004444122314453125, 0.0192718505859375, -0.031951904296875, -0.028778076171875, -0.0152740478515625, -0.016204833984375, -0.0341796875, 0.017608642578125, -0.050018310546875, -0.034332275390625, -0.044189453125, -0.0007066726684570312, 0.044342041015625, -0.051910400390625, 0.01035308837890625, 0.03997802734375, -0.0126953125, 0.004817962646484375, 0.0222625732421875, 0.021331787109375, -0.037017822265625, -0.03460693359375, -0.037017822265625, 0.023529052734375, -0.005878448486328125, 0.034332275390625, -0.003292083740234375, -0.014923095703125, 0.03790283203125, -0.002960205078125, -0.002841949462890625, 0.01082611083984375, 0.045684814453125, -0.0018758773803710938, -0.02215576171875, 0.01462554931640625, -0.01163482666015625, -0.0250244140625, 0.0220947265625, -0.013671875, -0.0123748779296875, -0.0335693359375, 0.02911376953125, -0.007587432861328125, 0.003963470458984375, -0.04254150390625, -0.0290985107421875, -0.00010877847671508789, 0.00829315185546875, 0.045684814453125, 0.0023651123046875, 0.0176849365234375, 0.00339508056640625, 0.01300811767578125, 0.0033283233642578125, -0.0029888153076171875, -0.04559326171875, -0.0236663818359375, 0.030731201171875, -0.024200439453125, -0.006252288818359375, 0.03924560546875, -0.00423431396484375, 0.043182373046875, -0.0100860595703125, -0.036865234375, -0.038909912109375, 0.004856109619140625, 0.0188446044921875, 0.021087646484375, 0.01540374755859375, -0.0241241455078125, 0.00641632080078125, 0.0190277099609375, 0.0218353271484375, 0.0328369140625, 0.0262908935546875, 0.0105133056640625, 0.0311126708984375, 0.026336669921875, -0.022552490234375, -0.0255126953125, 0.0322265625, 0.036865234375, -0.033111572265625, -0.0174713134765625, -0.0247344970703125, -0.005947113037109375, -0.0038471221923828125, 0.02838134765625, 0.01165008544921875, 0.0360107421875, -0.055877685546875, 0.063720703125, -0.032257080078125, 0.003932952880859375, 0.036956787109375, 0.04827880859375, 0.0279541015625, -0.0157012939453125, -0.015045166015625, -0.0183258056640625, -0.01092529296875, -0.009429931640625, -0.0166015625, -0.0202789306640625, -0.007801055908203125, 0.041107177734375, 0.0013360977172851562, 0.0169525146484375, -0.018829345703125, -0.02618408203125, -0.046356201171875, -0.03326416015625, -0.01091766357421875, -0.05657958984375, -0.00616455078125, 0.00655364990234375, -0.03594970703125, 0.034881591796875, 0.01206207275390625, -0.1533203125, -0.10467529296875, 0.01300048828125, 0.007404327392578125, 0.065185546875, -0.007740020751953125, 0.01568603515625, -0.054473876953125, 0.0367431640625, -0.022705078125, 0.004795074462890625, 0.04705810546875, 0.006832122802734375, -0.036529541015625, 0.0108642578125, -0.049774169921875, -0.012542724609375, -0.0811767578125, -0.07952880859375, -0.07635498046875, -0.0010986328125, 0.0259246826171875, 0.0020656585693359375, 0.036468505859375, -0.0014019012451171875, -0.0142669677734375, 0.036590576171875, 0.02471923828125, 0.0026378631591796875, -0.01506805419921875, 0.03961181640625, -0.0129547119140625, 0.0479736328125, -0.005001068115234375, -0.0038204193115234375, 0.00848388671875, -0.0234527587890625, 0.035369873046875, -0.033843994140625, -0.0557861328125, -0.05548095703125, -0.01229095458984375, 0.032196044921875, 0.0310821533203125, -0.0216827392578125, 0.01593017578125, -0.03070068359375, 0.00109100341796875, -0.01457977294921875, 0.01229095458984375, -0.0546875, -0.033905029296875, 0.0238037109375, -0.0088958740234375, -0.01537322998046875, -0.00789642333984375, -0.0335693359375, -0.0010585784912109375, 0.020904541015625, -0.011260986328125, -0.0088653564453125, -0.046630859375, 0.03143310546875, 0.033966064453125, 0.01215362548828125, 0.0105438232421875, 0.004245758056640625, 0.004650115966796875, -0.034881591796875, 0.00794219970703125, -0.0034732818603515625, -0.0019512176513671875, 0.029144287109375, -0.003429412841796875, -0.0243377685546875, 0.004688262939453125, -0.0258026123046875, -0.0019779205322265625, 0.0211029052734375, 0.031463623046875, -0.0682373046875, 0.01531219482421875, -0.0008645057678222656, 0.02349853515625, 0.028472900390625, -0.0167083740234375, 0.05670166015625, 0.05743408203125, 0.034881591796875, 0.02337646484375, 0.00276947021484375, 0.032196044921875, -0.01654052734375, -0.010040283203125, -0.027069091796875, 0.034820556640625, 0.02392578125, 0.028076171875, -0.010711669921875, -0.040771484375, 0.022125244140625, -0.025360107421875, 0.034637451171875, -0.0259246826171875, -0.014404296875, -0.04412841796875, 0.01861572265625, 0.020111083984375, -0.010101318359375, 0.0019369125366210938, -0.0247650146484375, 0.01175689697265625, 0.044769287109375, -0.047393798828125, 0.0170440673828125, 0.010955810546875, 0.0012493133544921875, 0.0216827392578125, -0.00363922119140625, 0.0018053054809570312, 0.00617218017578125, -0.0655517578125, 0.0012645721435546875, -0.0594482421875, 0.02508544921875, -0.015228271484375, 0.039642333984375, 0.0755615234375, -0.040924072265625, -0.0245513916015625, 0.034332275390625, 0.02154541015625, -0.015838623046875, 0.00214385986328125, 0.016571044921875, -0.0192108154296875, 0.0014171600341796875, 0.0035457611083984375, 0.00287628173828125, 0.01081085205078125, 0.0163726806640625, -0.038299560546875, 0.0850830078125, 0.0012350082397460938, 0.01409912109375, 0.005680084228515625, 0.049957275390625, -0.0027618408203125, 0.0287628173828125, 0.01352691650390625, 0.0313720703125, 0.003986358642578125, -0.00952911376953125, 0.0200653076171875, -0.008758544921875, 0.00905609130859375, 0.043914794921875, -0.0135345458984375, -0.0010814666748046875, 0.0059356689453125, -0.00545501708984375, 0.025604248046875, 0.023406982421875, 0.004138946533203125, 0.024383544921875, 0.00534820556640625, -0.0021228790283203125, 0.0081787109375, -0.0029144287109375, 0.020965576171875, -0.00626373291015625, -0.0301055908203125, 0.022857666015625, 0.0010232925415039062, -0.002140045166015625, 0.00010877847671508789, 0.01415252685546875, -0.01052093505859375, -0.022857666015625, 0.005229949951171875, -0.0158538818359375, -0.0233612060546875, 0.0244140625, -0.00397491455078125, -0.03271484375, 0.019805908203125, -0.04388427734375, 0.037872314453125, -0.0026569366455078125, 0.0247344970703125, 0.00621795654296875, 0.01108551025390625, -0.03533935546875, 0.0200347900390625, 0.0274200439453125, 0.049224853515625, -0.057159423828125, -0.0081939697265625, -0.018280029296875, 0.024566650390625, -0.0399169921875, -0.01120758056640625, 0.015777587890625, 0.01313018798828125, -0.003753662109375, -0.04876708984375, 0.00852203369140625, 0.0033855438232421875, 0.0084991455078125, 0.0027027130126953125, 0.019866943359375, 0.0556640625, 0.06298828125, -0.004192352294921875, -0.027191162109375, 0.0249786376953125, 0.048309326171875, 0.0153656005859375, 0.0196990966796875, -0.05126953125, -0.048675537109375, -0.0201568603515625, -0.00560760498046875, -0.019989013671875, 0.050018310546875, 0.03570556640625, 0.03192138671875, -0.032196044921875, -0.02752685546875, 0.0270233154296875, 0.0034122467041015625, 0.025909423828125, -0.04083251953125, 0.0228118896484375, -0.04278564453125, 0.01293182373046875, 0.019744873046875, 0.030029296875, -0.0007691383361816406, 0.0094757080078125, 0.054229736328125, 0.049530029296875, 0.007904052734375, 0.00850677490234375, 0.01280975341796875, 0.031219482421875, -0.047119140625, 0.042755126953125, 0.0299224853515625, 0.004344940185546875, -0.00740814208984375, -0.0288848876953125, 0.08966064453125, 0.051055908203125, -0.00067138671875, 0.01953125, -0.004840850830078125, -0.01004791259765625, 0.0218048095703125, 0.02166748046875, 0.0675048828125, -0.0187835693359375, -0.0227813720703125, 0.0102081298828125, -0.06256103515625, 0.02197265625, 0.05584716796875, -0.019256591796875, -0.00452423095703125, 0.026702880859375, -0.041259765625, -0.00241851806640625, 0.0279083251953125, 0.0025615692138671875, -0.01163482666015625, 0.00884246826171875, -0.014068603515625, -0.06146240234375, -0.040435791015625, -0.036224365234375, 0.041229248046875, 0.02362060546875, 0.07122802734375, -0.01171112060546875, 0.033447265625, -0.005687713623046875, 0.02130126953125, -0.038665771484375, -0.00785064697265625, 0.033294677734375, -0.006847381591796875, -0.01148223876953125, -0.0195770263671875, -0.029998779296875, -0.015838623046875, 0.0458984375, -0.06329345703125, -0.0200042724609375, 0.0179290771484375, 0.01273345947265625, -0.037506103515625, 0.0028896331787109375, -0.0216522216796875, -0.024688720703125, -0.023406982421875, -0.0180511474609375, 0.0213775634765625, 0.02203369140625, 0.010955810546875, -0.007427215576171875, 0.0308837890625, -0.0024814605712890625, 0.012237548828125, 0.0276031494140625, 0.03411865234375, 0.0256195068359375, -0.0187225341796875, -0.01227569580078125, -0.0072479248046875, -0.01222991943359375, -0.0002639293670654297, 0.0183258056640625, -0.01026153564453125, 0.0110321044921875, -0.015228271484375, 0.0458984375, 0.09295654296875, 0.080810546875, -0.0106658935546875, 0.035675048828125, 0.0592041015625, -0.034393310546875, 0.035491943359375, -0.0465087890625, -0.022125244140625, -0.035247802734375, -0.001873016357421875, 0.0265655517578125, -0.0164031982421875, -0.0185394287109375, -0.06243896484375, 0.00475311279296875, 0.040191650390625, 0.00601959228515625, -0.0386962890625, 0.0164337158203125, -0.003940582275390625, 0.032012939453125, 0.01788330078125, 0.00861358642578125, 0.0010671615600585938, 0.0111846923828125, -0.026947021484375, 0.0162506103515625, -0.007663726806640625, -0.01026153564453125, 0.033416748046875, 0.01531219482421875, 0.03753662109375, -0.00733184814453125, -0.03167724609375, 0.052032470703125, 0.0107879638671875, 0.10845947265625, -0.017364501953125, -0.01190185546875, -0.017913818359375, 0.009521484375, -0.01480865478515625, 0.01291656494140625, 0.0302276611328125, -0.01140594482421875, -0.0546875, -0.038818359375, -0.0043487548828125, -0.0209197998046875, -0.06292724609375, -0.059051513671875, 0.046142578125, -0.0177459716796875, -0.03692626953125, -0.073486328125, 0.03643798828125, -0.009429931640625, 0.013031005859375, -0.02264404296875, -0.0036525726318359375, -0.00844573974609375, 0.037750244140625, 0.0009722709655761719, 0.0244598388671875, 0.0002722740173339844, 0.0159454345703125, -0.0022335052490234375, 0.03302001953125, 0.0311737060546875, -0.0184783935546875, 0.01346588134765625, 0.0005307197570800781, 0.005916595458984375, 0.039398193359375, -0.03790283203125, -0.058685302734375, -0.04986572265625, -0.0023479461669921875, 0.0234832763671875, -0.044036865234375, 0.0189971923828125, 0.0021190643310546875, -0.0030269622802734375, -0.0316162109375, -0.00312042236328125, -0.016143798828125, 0.025238037109375, 0.0069580078125, -0.0188751220703125, 0.02264404296875, 0.0070648193359375, -0.01082611083984375, 0.0003161430358886719, 0.0050201416015625, -0.0171051025390625, -0.0039005279541015625, -0.0236968994140625, -0.033599853515625, -0.014862060546875, 0.0095062255859375, 0.00601959228515625, -0.023651123046875, -0.014556884765625, 0.00832366943359375, -0.041839599609375, -0.044677734375, 0.0056304931640625, 0.0172119140625, -0.046417236328125, 0.0008139610290527344, 0.0034084320068359375, 0.0239410400390625, -0.05517578125, 0.01422882080078125, -0.0091400146484375, 0.04437255859375, -0.037261962890625, -0.01529693603515625, -0.0270233154296875, 0.01519775390625, 0.0097198486328125, 0.005115509033203125, -0.041259765625, 0.0672607421875, 0.025970458984375, 0.054412841796875, 0.002735137939453125, 0.042816162109375, -0.01953125, 0.0555419921875, -0.0029125213623046875, -0.01389312744140625, 0.00426483154296875, -0.00325775146484375, 0.004192352294921875, 0.018280029296875, -0.018707275390625, -0.005550384521484375, 0.00432586669921875, 0.027099609375, -0.0127410888671875, 0.006862640380859375 ]
65c1a4459f5ee743198040cc33b965a37714a7b5
Wordpress Stackexchange Q: post_row_actions filter is not working while update post using quick edit I have created two links using post_row_actions, it was displaying fine when page loads. But the links will get disappear after update post using quick-edit. Is it a bug from WordPress or did I miss something. My code will look like given below. add_filter('post_row_actions', 'add_new_link', 10, 2); public function add_new_link($actions, $page_object) { $actions['new_action'] = '<a href="'.admin_url().'post.php?id='.$page_object->ID.'&action=new-action">New Action</a>'; return $actions; } Thank you A: Sorry for the question as I found out it is my mistake. It is happened because I disabled the admin object of my plugin while doing ajax(by mistake), it cause the issue of not processing "post_row_actions"(I defined in admin class) in quick-edit. Thank you for your help.
Q: post_row_actions filter is not working while update post using quick edit I have created two links using post_row_actions, it was displaying fine when page loads. But the links will get disappear after update post using quick-edit. Is it a bug from WordPress or did I miss something. My code will look like given below. add_filter('post_row_actions', 'add_new_link', 10, 2); public function add_new_link($actions, $page_object) { $actions['new_action'] = '<a href="'.admin_url().'post.php?id='.$page_object->ID.'&action=new-action">New Action</a>'; return $actions; } Thank you A: Sorry for the question as I found out it is my mistake. It is happened because I disabled the admin object of my plugin while doing ajax(by mistake), it cause the issue of not processing "post_row_actions"(I defined in admin class) in quick-edit. Thank you for your help.
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:442687", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/135892" }
[ 0.06927490234375, -0.0240020751953125, 0.031219482421875, 0.01354217529296875, 0.0118255615234375, -0.0419921875, 0.095703125, -0.033966064453125, 0.023040771484375, 0.04986572265625, -0.0019664764404296875, -0.01306915283203125, 0.0077362060546875, -0.026641845703125, -0.048797607421875, -0.0246734619140625, 0.0303497314453125, -0.03363037109375, -0.0012426376342773438, -0.015655517578125, -0.009124755859375, 0.004230499267578125, 0.00992584228515625, 0.045989990234375, 0.0197906494140625, 0.0005316734313964844, 0.07952880859375, -0.0277557373046875, 0.0265655517578125, -0.01137542724609375, 0.0189666748046875, -0.03961181640625, 0.00859832763671875, 0.005893707275390625, -0.0233001708984375, -0.056884765625, -0.0117645263671875, 0.0038623809814453125, -0.03863525390625, 0.040008544921875, 0.0290069580078125, -0.01367950439453125, -0.0204925537109375, -0.0205841064453125, -0.0275726318359375, -0.0218505859375, 0.041900634765625, -0.0075531005859375, -0.0164337158203125, 0.0155792236328125, 0.006175994873046875, 0.01453399658203125, 0.00405120849609375, 0.00572967529296875, 0.017333984375, 0.0063629150390625, -0.07098388671875, 0.0215911865234375, 0.0312042236328125, 0.044830322265625, 0.00598907470703125, -0.03363037109375, -0.004505157470703125, -0.06353759765625, -0.0104217529296875, 0.004375457763671875, 0.027740478515625, 0.0023708343505859375, -0.044189453125, -0.0277862548828125, 0.0386962890625, -0.0193023681640625, -0.0364990234375, -0.0184326171875, 0.02093505859375, 0.0150146484375, 0.0231781005859375, 0.00384521484375, -0.0298614501953125, 0.060882568359375, 0.03082275390625, 0.0038356781005859375, 0.0279998779296875, -0.001682281494140625, 0.0029621124267578125, 0.0193634033203125, -0.0127716064453125, -0.0227508544921875, -0.0267333984375, -0.04034423828125, -0.0205230712890625, -0.09332275390625, -0.034759521484375, 0.00970458984375, 0.0014209747314453125, -0.028472900390625, 0.039459228515625, 0.0462646484375, -0.01319122314453125, 0.0222320556640625, 0.0119781494140625, -0.0732421875, 0.0714111328125, -0.048095703125, 0.0005636215209960938, 0.036590576171875, 0.05401611328125, 0.043701171875, 0.0182952880859375, -0.006664276123046875, -0.008209228515625, 0.0433349609375, -0.00750732421875, 0.0190887451171875, -0.01202392578125, -0.036376953125, -0.07196044921875, 0.0290985107421875, -0.0079498291015625, 0.0165863037109375, -0.022430419921875, -0.019775390625, -0.013336181640625, -0.0236053466796875, 0.018402099609375, -0.029510498046875, -0.037567138671875, 0.037994384765625, 0.049072265625, 0.0023174285888671875, -0.03619384765625, 0.0029087066650390625, 0.0450439453125, 0.021270751953125, 0.0110015869140625, -0.0245208740234375, 0.0301666259765625, 0.00659942626953125, -0.001964569091796875, 0.003948211669921875, 0.00682830810546875, -0.0290374755859375, -0.039794921875, -0.00754547119140625, 0.018798828125, 0.0160064697265625, 0.021331787109375, -0.00852203369140625, 0.00775146484375, -0.00980377197265625, -0.0212554931640625, -0.0165557861328125, 0.0418701171875, 0.01531219482421875, -0.00371551513671875, -0.0251312255859375, 0.06134033203125, -0.05487060546875, 0.01092529296875, -0.06536865234375, 0.039581298828125, 0.0165252685546875, 0.0236968994140625, -0.0277099609375, -0.051116943359375, -0.038360595703125, -0.06805419921875, -0.0176544189453125, 0.033447265625, 0.0266265869140625, 0.05633544921875, -0.0149078369140625, 0.0266571044921875, -0.005054473876953125, -0.01505279541015625, -0.01287078857421875, -0.0338134765625, -0.00745391845703125, 0.037841796875, -0.0030975341796875, -0.0242919921875, -0.036468505859375, 0.0288543701171875, 0.009307861328125, -0.038726806640625, 0.047271728515625, 0.01534271240234375, 0.05230712890625, -0.015869140625, 0.023529052734375, 0.02740478515625, 0.033294677734375, -0.04437255859375, 0.0141143798828125, 0.012908935546875, -0.016815185546875, 0.0022144317626953125, -0.01358795166015625, 0.003787994384765625, -0.0111541748046875, 0.0221099853515625, 0.0115509033203125, 0.0016050338745117188, 0.01763916015625, -0.06378173828125, 0.034942626953125, -0.037261962890625, 0.032745361328125, -0.0225982666015625, 0.018646240234375, 0.024383544921875, 0.013214111328125, -0.04107666015625, 0.0018949508666992188, 0.0207977294921875, 0.0295562744140625, -0.01371002197265625, 0.0219573974609375, -0.004634857177734375, 0.016815185546875, 0.00452423095703125, -0.0238189697265625, 0.0053253173828125, 0.007701873779296875, -0.0009593963623046875, -0.05242919921875, -0.01296234130859375, -0.03936767578125, -0.046600341796875, -0.041412353515625, -0.0016355514526367188, 0.0792236328125, 0.04583740234375, 0.048126220703125, -0.049560546875, -0.0243988037109375, -0.0587158203125, -0.046783447265625, 0.00298309326171875, 0.06915283203125, 0.0273590087890625, 0.0203094482421875, -0.00885772705078125, 0.012451171875, 0.05712890625, 0.0062713623046875, 0.017608642578125, -0.0007982254028320312, -0.037994384765625, 0.029083251953125, -0.0191497802734375, 0.023162841796875, 0.0055389404296875, -0.028076171875, -0.021636962890625, 0.05084228515625, 0.025115966796875, 0.0092620849609375, -0.031982421875, 0.016021728515625, 0.00011157989501953125, -0.039398193359375, -0.04852294921875, -0.003032684326171875, 0.0295562744140625, 0.0285491943359375, 0.03564453125, 0.0271148681640625, -0.0251007080078125, 0.034271240234375, 0.01861572265625, 0.0013246536254882812, 0.00008869171142578125, 0.036590576171875, 0.01155853271484375, -0.01218414306640625, -0.01507568359375, -0.0084381103515625, -0.011016845703125, 0.0198974609375, -0.007266998291015625, -0.001514434814453125, 0.0177459716796875, -0.01422882080078125, 0.038818359375, 0.0151824951171875, 0.01502227783203125, -0.052215576171875, 0.038970947265625, 0.01354217529296875, 0.0340576171875, -0.0064697265625, 0.014984130859375, 0.0275115966796875, -0.0008997917175292969, -0.033905029296875, 0.04779052734375, -0.01261138916015625, 0.031097412109375, -0.04022216796875, 0.04217529296875, 0.04571533203125, -0.0491943359375, 0.031585693359375, 0.0066680908203125, 0.0301361083984375, 0.00997161865234375, 0.01540374755859375, 0.003322601318359375, 0.002826690673828125, -0.022918701171875, 0.006542205810546875, 0.0180206298828125, 0.05694580078125, -0.033477783203125, -0.07354736328125, -0.004177093505859375, 0.0149993896484375, -0.05712890625, -0.028076171875, -0.05206298828125, -0.06854248046875, 0.02740478515625, 0.015533447265625, -0.0325927734375, -0.00556182861328125, 0.047821044921875, 0.027496337890625, 0.008758544921875, 0.0029468536376953125, -0.05621337890625, -0.00366973876953125, -0.03839111328125, 0.03643798828125, -0.006504058837890625, 0.00389862060546875, 0.00745391845703125, 0.070068359375, 0.025634765625, -0.037353515625, 0.0118865966796875, -0.0821533203125, -0.04144287109375, 0.028472900390625, 0.033477783203125, -0.01482391357421875, -0.034759521484375, 0.0173187255859375, 0.06005859375, 0.010955810546875, -0.046966552734375, -0.010223388671875, -0.038177490234375, -0.0014200210571289062, 0.023529052734375, -0.00006341934204101562, 0.0102996826171875, 0.036224365234375, 0.049072265625, -0.016357421875, -0.002796173095703125, -0.0251922607421875, -0.033233642578125, 0.043060302734375, 0.0236053466796875, -0.0026149749755859375, -0.023895263671875, 0.032135009765625, 0.0174102783203125, 0.0185089111328125, 0.023406982421875, 0.01439666748046875, -0.05828857421875, -0.00826263427734375, -0.00891876220703125, -0.0161285400390625, -0.0009355545043945312, -0.01192474365234375, 0.0232086181640625, -0.00659942626953125, 0.024566650390625, 0.005512237548828125, 0.038665771484375, -0.01001739501953125, -0.0077667236328125, 0.0254364013671875, -0.0064239501953125, 0.0164794921875, -0.0240478515625, -0.01146697998046875, -0.018768310546875, 0.0380859375, -0.03387451171875, -0.036346435546875, -0.03240966796875, 0.02288818359375, -0.01898193359375, -0.0667724609375, 0.031036376953125, -0.00937652587890625, -0.07257080078125, 0.00901031494140625, -0.025726318359375, -0.00850677490234375, -0.032501220703125, 0.056243896484375, -0.0288238525390625, -0.03289794921875, 0.052703857421875, 0.0035152435302734375, 0.00634765625, 0.03680419921875, -0.0261383056640625, 0.0206451416015625, -0.053619384765625, 0.021881103515625, -0.03741455078125, 0.008056640625, -0.04437255859375, 0.00855255126953125, 0.03704833984375, -0.0164794921875, -0.003936767578125, -0.0015869140625, -0.01395416259765625, 0.0626220703125, -0.0347900390625, 0.01448822021484375, -0.021881103515625, -0.029998779296875, -0.007465362548828125, -0.034423828125, 0.005519866943359375, -0.01319122314453125, -0.041259765625, -0.005374908447265625, -0.050262451171875, 0.00007086992263793945, -0.0242156982421875, -0.0306243896484375, -0.039581298828125, -0.0460205078125, -0.00147247314453125, 0.0313720703125, 0.00809478759765625, -0.00553131103515625, -0.06890869140625, -0.047698974609375, 0.0220184326171875, -0.058074951171875, -0.00372314453125, -0.00930023193359375, 0.08099365234375, 0.0301513671875, 0.001750946044921875, 0.057098388671875, 0.0285491943359375, 0.03375244140625, 0.0227813720703125, 0.0203399658203125, 0.0207977294921875, -0.01544952392578125, -0.002105712890625, 0.0182342529296875, 0.010498046875, -0.0504150390625, 0.05303955078125, -0.01354217529296875, -0.00008761882781982422, 0.004703521728515625, -0.01290130615234375, 0.0518798828125, -0.004261016845703125, -0.02154541015625, 0.0062713623046875, -0.0025768280029296875, 0.0284881591796875, -0.01690673828125, 0.01120758056640625, -0.01824951171875, -0.0205841064453125, 0.003795623779296875, -0.01236724853515625, 0.05657958984375, 0.0279083251953125, -0.005706787109375, 0.0163726806640625, 0.0005049705505371094, 0.020843505859375, -0.01561737060546875, 0.0088043212890625, -0.043365478515625, 0.047119140625, -0.03594970703125, -0.0179595947265625, 0.01080322265625, -0.00917816162109375, 0.002666473388671875, -0.019134521484375, -0.045806884765625, -0.0234222412109375, 0.020751953125, 0.00439453125, 0.019744873046875, 0.00858306884765625, 0.0020275115966796875, 0.054595947265625, 0.00014853477478027344, 0.01039886474609375, 0.07879638671875, 0.0227813720703125, 0.0007390975952148438, 0.00304412841796875, -0.01166534423828125, -0.00667572021484375, 0.00884246826171875, 0.0283355712890625, 0.0206756591796875, 0.014312744140625, -0.03179931640625, 0.013153076171875, 0.005123138427734375, 0.01611328125, -0.005023956298828125, 0.0288543701171875, -0.0113677978515625, 0.022308349609375, 0.0183258056640625, -0.029449462890625, -0.0010309219360351562, 0.045196533203125, 0.047454833984375, 0.0267333984375, -0.01349639892578125, -0.0076751708984375, -0.00823974609375, -0.029693603515625, 0.07159423828125, 0.046417236328125, -0.0714111328125, -0.049468994140625, 0.02655029296875, 0.04974365234375, 0.003849029541015625, 0.005931854248046875, 0.002559661865234375, -0.00859832763671875, 0.029571533203125, -0.0311431884765625, 0.0277252197265625, -0.0153045654296875, -0.0259552001953125, 0.030059814453125, -0.0264434814453125, -0.042236328125, 0.018951416015625, -0.002685546875, -0.0179290771484375, 0.0093994140625, 0.044097900390625, -0.024078369140625, 0.0293731689453125, -0.0096435546875, -0.0186614990234375, -0.019073486328125, 0.00556182861328125, 0.056610107421875, 0.034576416015625, -0.0416259765625, -0.0236968994140625, -0.0498046875, -0.0167083740234375, -0.042877197265625, -0.0301513671875, -0.0338134765625, 0.01544189453125, 0.024566650390625, 0.00424957275390625, 0.016448974609375, -0.015960693359375, -0.04437255859375, -0.006702423095703125, 0.034027099609375, -0.01629638671875, -0.0014667510986328125, 0.08428955078125, -0.0343017578125, 0.08624267578125, 0.00494384765625, 0.0231781005859375, -0.04705810546875, -0.006038665771484375, -0.01090240478515625, -0.0167999267578125, -0.0022640228271484375, 0.03106689453125, -0.058563232421875, -0.01494598388671875, 0.02813720703125, -0.0078277587890625, 0.01035308837890625, -0.0123748779296875, -0.005680084228515625, -0.0265960693359375, 0.01153564453125, 0.01019287109375, -0.0037937164306640625, 0.0120391845703125, -0.033905029296875, -0.00293731689453125, -0.0142974853515625, 0.0240936279296875, 0.015716552734375, -0.035247802734375, 0.00777435302734375, 0.0162506103515625, 0.01561737060546875, 0.0279998779296875, 0.043853759765625, -0.02301025390625, 0.048736572265625, 0.031829833984375, 0.0202789306640625, 0.059051513671875, -0.016876220703125, -0.034423828125, 0.035186767578125, 0.04632568359375, -0.0026721954345703125, -0.0204620361328125, 0.02978515625, -0.0234527587890625, 0.0137939453125, 0.056640625, 0.049102783203125, -0.10052490234375, 0.0129547119140625, 0.00873565673828125, 0.0200958251953125, 0.0465087890625, 0.002475738525390625, -0.00023639202117919922, 0.00860595703125, 0.010467529296875, -0.013885498046875, -0.0303192138671875, 0.011474609375, 0.0216217041015625, -0.0041046142578125, -0.029998779296875, 0.01415252685546875, -0.0109405517578125, 0.0027179718017578125, -0.014129638671875, -0.0038471221923828125, -0.00795745849609375, -0.031097412109375, -0.0216064453125, 0.00563812255859375, -0.0296478271484375, -0.08221435546875, -0.012481689453125, -0.026275634765625, 0.0076141357421875, 0.007266998291015625, -0.01087188720703125, 0.0178680419921875, 0.04779052734375, -0.02276611328125, 0.01148223876953125, 0.029388427734375, -0.0172576904296875, -0.0203399658203125, -0.01568603515625, -0.005035400390625, 0.052642822265625, -0.0308074951171875, 0.0050048828125, -0.002552032470703125, 0.00392913818359375, 0.006565093994140625, -0.0047760009765625, 0.037872314453125, -0.046722412109375, -0.01180267333984375, 0.014801025390625, -0.0205230712890625, -0.0007405281066894531, 0.009185791015625, -0.0426025390625, -0.027191162109375, -0.0111846923828125, -0.029388427734375, -0.044647216796875, 0.022186279296875, -0.0099945068359375, -0.052215576171875, 0.08935546875, -0.00868988037109375, 0.001796722412109375, -0.01338958740234375, 0.048248291015625, -0.01381683349609375, 0.035736083984375, -0.044097900390625, 0.03875732421875, -0.0289306640625, 0.0467529296875, -0.03375244140625, 0.00734710693359375, 0.0124359130859375, 0.0145111083984375, 0.007293701171875, 0.0019969940185546875, -0.007373809814453125, -0.0207366943359375, -0.01198577880859375, 0.0243072509765625, -0.006702423095703125, 0.00196075439453125, -0.023345947265625, -0.0089263916015625, -0.006916046142578125, -0.01568603515625, 0.0172882080078125, -0.029449462890625, -0.05169677734375, 0.003498077392578125, 0.006061553955078125, -0.00222015380859375, -0.0006580352783203125, 0.033111572265625, -0.004207611083984375, 0.00014221668243408203, 0.0026302337646484375, -0.0245361328125, -0.01177215576171875, 0.0306854248046875, 0.048675537109375, -0.05389404296875, -0.058258056640625, -0.012115478515625, 0.032867431640625, 0.04534912109375, 0.0382080078125, 0.02593994140625, 0.01837158203125, 0.057647705078125, -0.0157318115234375, 0.0206451416015625, 0.02044677734375, -0.033050537109375, 0.08172607421875, 0.016082763671875, 0.0267333984375, -0.025726318359375, 0.0062103271484375, -0.0034236907958984375, 0.078369140625, -0.042205810546875, -0.00641632080078125, 0.0001310110092163086, 0.0012121200561523438, 0.0153350830078125, -0.038360595703125, 0.01139068603515625, -0.0203094482421875, -0.0011911392211914062, 0.01194000244140625, -0.0057830810546875, -0.0037899017333984375, 0.0038776397705078125, 0.0024929046630859375, 0.0192108154296875, -0.014404296875, 0.01554107666015625, -0.060272216796875, -0.0026187896728515625, 0.018035888671875, 0.07769775390625, 0.034423828125, 0.04736328125, -0.0188446044921875, -0.036163330078125, -0.005687713623046875, 0.0223541259765625, -0.06317138671875, 0.033843994140625, -0.09393310546875, -0.092529296875, -0.010467529296875, 0.07672119140625, 0.022613525390625, 0.04803466796875, 0.0416259765625, -0.01476287841796875, -0.0160980224609375, 0.0185546875, 0.0169525146484375, -0.03997802734375, -0.00550079345703125, -0.042694091796875, -0.0087127685546875, 0.023834228515625, -0.003650665283203125, 0.0163726806640625, -0.01476287841796875, 0.0455322265625, -0.031524658203125, 0.009033203125, -0.009918212890625, -0.048065185546875, 0.03521728515625, -0.0185394287109375, 0.060302734375, -0.01483917236328125, -0.02435302734375, 0.0128326416015625, -0.035369873046875, -0.078369140625, 0.00794219970703125, 0.0214385986328125, -0.01824951171875, 0.0216522216796875, 0.01284027099609375, -0.015380859375, -0.0168609619140625, 0.00289154052734375, 0.039794921875, 0.043487548828125, 0.0005254745483398438, 0.03363037109375, 0.021209716796875, 0.00806427001953125, 0.0105133056640625, 0.0384521484375, 0.026214599609375, 0.10308837890625, -0.05206298828125, 0.0082855224609375, 0.001926422119140625, -0.00893402099609375, -0.01197052001953125, 0.0059051513671875, 0.012664794921875, -0.0163726806640625, -0.014617919921875, -0.0021572113037109375, 0.0220184326171875, 0.0226287841796875, 0.03729248046875, -0.0192413330078125, 0.01245880126953125, -0.00801849365234375, 0.00952911376953125, -0.021881103515625, 0.036834716796875, -0.024383544921875, -0.033843994140625, -0.04522705078125, -0.0211181640625, 0.01125335693359375, 0.04022216796875, 0.045379638671875, 0.046722412109375, 0.018280029296875, 0.016387939453125, -0.0004010200500488281, -0.0167999267578125, 0.0157470703125, 0.03790283203125, -0.029022216796875, 0.00658416748046875, 0.0308685302734375, -0.006557464599609375, 0.0034389495849609375, 0.0311431884765625, -0.01323699951171875, 0.0289459228515625, -0.04754638671875, -0.00916290283203125, 0.025115966796875, 0.036651611328125, -0.036346435546875, 0.01036834716796875, 0.031005859375, 0.0025081634521484375, 0.0037746429443359375, 0.039703369140625, -0.00307464599609375, 0.0029697418212890625, -0.048858642578125, -0.030548095703125, -0.007587432861328125, -0.0888671875, -0.02996826171875, -0.013214111328125, -0.004642486572265625, 0.027252197265625, -0.07427978515625, 0.05950927734375, 0.00783538818359375, -0.009002685546875, -0.0202178955078125, 0.00313568115234375, -0.003948211669921875, 0.059051513671875, -0.01062774658203125, -0.025390625, -0.01309967041015625, 0.027099609375, -0.0243988037109375, -0.01476287841796875, -0.00992584228515625, -0.005725860595703125, -0.033233642578125, -0.01331329345703125, -0.0120086669921875, 0.0195770263671875, 0.05902099609375, -0.03656005859375, -0.0301513671875, 0.024261474609375, 0.0263824462890625, -0.0222625732421875, 0.0027446746826171875, -0.020843505859375, -0.0036296844482421875, -0.0016298294067382812, -0.032745361328125, -0.02032470703125, -0.048553466796875, -0.09576416015625, 0.061676025390625, -0.0089111328125, -0.0296173095703125, -0.028961181640625, -0.014129638671875, -0.0099945068359375, 0.04193115234375, 0.0006866455078125, -0.0208587646484375, -0.0300750732421875, 0.0207061767578125, -0.03643798828125, 0.0855712890625, -0.0238189697265625, -0.0290985107421875, 0.038421630859375, 0.01873779296875, 0.02532958984375, -0.031951904296875, 0.01349639892578125, -0.0413818359375, 0.06622314453125, 0.0150146484375, -0.032073974609375, -0.0078887939453125, 0.0257720947265625, -0.0081329345703125, 0.01751708984375, -0.0631103515625, -0.06488037109375, -0.041534423828125, 0.058349609375, 0.035736083984375, 0.0258026123046875, -0.02001953125, 0.026092529296875, -0.01230621337890625, -0.0419921875, 0.0193634033203125, 0.01215362548828125, -0.01532745361328125, 0.0031108856201171875, 0.01297760009765625, 0.0013856887817382812, -0.004650115966796875, -0.01224517822265625, -0.019256591796875, -0.037445068359375, -0.046051025390625, -0.00905609130859375, -0.0301513671875, 0.01390838623046875, 0.0243988037109375, -0.027679443359375, 0.0020198822021484375, 0.0034542083740234375, -0.01114654541015625, 0.0091400146484375, 0.01428985595703125, -0.0002396106719970703, 0.00894927978515625, -0.026214599609375, 0.00556182861328125, 0.00801849365234375, 0.004581451416015625, -0.007610321044921875, -0.0229339599609375, 0.0049591064453125, 0.016387939453125, -0.0290374755859375, -0.007747650146484375, 0.00678253173828125, 0.035308837890625, -0.031341552734375, 0.1190185546875, -0.00827789306640625, 0.107177734375, 0.0006999969482421875, 0.037322998046875, 0.004180908203125, -0.0056610107421875, 0.032501220703125, 0.0022945404052734375, -0.0150604248046875, 0.0264892578125, -0.029541015625, -0.039886474609375, 0.0160064697265625, -0.01073455810546875, 0.00030875205993652344, 0.01140594482421875 ]
bd43d768052e88f69c4a4530f9c75f846511d6cb
Wordpress Stackexchange Q: Shortcode displays only default attribute values For some reasons every shortcode, that I try to add to functions.php, displays only default attribute value and ignores what I specify in a post. E.g.: function my_shortcode( $atts ) { extract( shortcode_atts( array( 'id' => '18', ), $atts ) ); return $id; } add_shortcode( 'sc', 'my_shortcode' ); So I use shortcode [sc id="81"] and expect echoing 81 but I get 18. BTW I use child theme, and latest version of wordpress. I'm really stuck. Thanks for any help. A: I just tried your exact code, putting the PHP code you pasted above in my theme's functions.php file, and inserting the shortcode as you typed [sc id="81"] in to a page in my site, publishing the page, and it correctly outputted a value of 81 on my published page. So something in your theme or a plugin must be conflicting with it. Try changing to one of the default WordPress themes and testing it again, and/or disabling your plugins. I suspect it could be a conflict because the parameter is named 'id' - so you could also try using a different parameter name (eg. 'myid').
Q: Shortcode displays only default attribute values For some reasons every shortcode, that I try to add to functions.php, displays only default attribute value and ignores what I specify in a post. E.g.: function my_shortcode( $atts ) { extract( shortcode_atts( array( 'id' => '18', ), $atts ) ); return $id; } add_shortcode( 'sc', 'my_shortcode' ); So I use shortcode [sc id="81"] and expect echoing 81 but I get 18. BTW I use child theme, and latest version of wordpress. I'm really stuck. Thanks for any help. A: I just tried your exact code, putting the PHP code you pasted above in my theme's functions.php file, and inserting the shortcode as you typed [sc id="81"] in to a page in my site, publishing the page, and it correctly outputted a value of 81 on my published page. So something in your theme or a plugin must be conflicting with it. Try changing to one of the default WordPress themes and testing it again, and/or disabling your plugins. I suspect it could be a conflict because the parameter is named 'id' - so you could also try using a different parameter name (eg. 'myid').
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:442729", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136050" }
[ 0.037139892578125, -0.0007567405700683594, 0.04388427734375, 0.004894256591796875, -0.0083770751953125, 0.0079803466796875, 0.0192718505859375, -0.05096435546875, -0.027130126953125, 0.0179901123046875, -0.03900146484375, 0.0047760009765625, -0.033477783203125, -0.0226593017578125, -0.0017910003662109375, -0.04974365234375, 0.037078857421875, 0.014404296875, 0.007358551025390625, -0.0195159912109375, -0.00386810302734375, 0.01033782958984375, -0.0074920654296875, 0.11248779296875, 0.033416748046875, -0.06658935546875, 0.037445068359375, -0.0157012939453125, 0.0205078125, -0.004650115966796875, 0.0136260986328125, -0.0022449493408203125, 0.058349609375, -0.00797271728515625, -0.037200927734375, 0.0701904296875, 0.0293731689453125, -0.01154327392578125, -0.01493072509765625, 0.0305023193359375, 0.01016998291015625, 0.005420684814453125, 0.07159423828125, -0.019927978515625, 0.000324249267578125, -0.034820556640625, 0.045654296875, -0.019683837890625, -0.0135040283203125, -0.0192718505859375, 0.033203125, 0.05517578125, 0.0633544921875, -0.017120361328125, -0.01007843017578125, -0.0166168212890625, -0.0316162109375, -0.01459503173828125, 0.03204345703125, 0.03582763671875, -0.0141754150390625, -0.0276641845703125, 0.0129241943359375, -0.055023193359375, 0.026519775390625, 0.007221221923828125, 0.04620361328125, 0.026275634765625, -0.0352783203125, 0.033203125, 0.046875, -0.035980224609375, 0.0003066062927246094, -0.035888671875, -0.0269012451171875, 0.007709503173828125, 0.05560302734375, 0.021728515625, -0.017547607421875, -0.013153076171875, -0.00350189208984375, -0.0584716796875, -0.059295654296875, 0.05633544921875, -0.01947021484375, 0.0687255859375, -0.0052642822265625, -0.0292205810546875, -0.014495849609375, 0.004276275634765625, -0.0074005126953125, 0.019989013671875, -0.0234375, -0.0216827392578125, -0.0031299591064453125, -0.024505615234375, -0.0021343231201171875, 0.048248291015625, 0.006603240966796875, 0.04742431640625, -0.0213775634765625, -0.027496337890625, 0.0248260498046875, -0.057403564453125, -0.0176544189453125, 0.0251922607421875, 0.02001953125, 0.0255584716796875, 0.01727294921875, 0.0270843505859375, 0.0017824172973632812, 0.02935791015625, -0.037261962890625, 0.0096588134765625, -0.052093505859375, 0.00015544891357421875, -0.07000732421875, -0.0086517333984375, -0.025604248046875, 0.016815185546875, 0.00637054443359375, 0.039794921875, 0.0173492431640625, -0.0256500244140625, -0.00696563720703125, 0.005756378173828125, -0.005573272705078125, -0.055084228515625, -0.00994110107421875, 0.0021514892578125, -0.037872314453125, 0.0187835693359375, 0.1002197265625, 0.032257080078125, 0.0081329345703125, -0.014434814453125, -0.01264190673828125, -0.0240478515625, -0.0100250244140625, 0.01116180419921875, -0.0289306640625, -0.0099945068359375, 0.041107177734375, -0.032318115234375, -0.05364990234375, 0.01259613037109375, 0.0238494873046875, 0.023651123046875, -0.03778076171875, -0.09210205078125, 0.0277099609375, -0.032257080078125, 0.038665771484375, 0.001537322998046875, -0.035858154296875, 0.014801025390625, -0.001842498779296875, -0.012603759765625, -0.051422119140625, -0.00791168212890625, 0.01959228515625, -0.02923583984375, -0.0423583984375, -0.03076171875, -0.0555419921875, 0.01898193359375, 0.00016200542449951172, -0.0012292861938476562, 0.02532958984375, 0.07208251953125, -0.0242156982421875, 0.005290985107421875, -0.0005803108215332031, 0.0577392578125, 0.0252532958984375, 0.02056884765625, -0.023956298828125, 0.0173492431640625, 0.04583740234375, -0.04632568359375, -0.031585693359375, -0.039520263671875, 0.0477294921875, -0.0067291259765625, -0.07275390625, 0.0496826171875, 0.004512786865234375, 0.0977783203125, 0.0217437744140625, 0.0199127197265625, 0.03057861328125, 0.0010662078857421875, -0.033905029296875, -0.0096893310546875, 0.02276611328125, 0.007320404052734375, -0.035186767578125, -0.0117645263671875, 0.01239013671875, -0.00714874267578125, -0.01522064208984375, -0.03082275390625, 0.041107177734375, -0.0108489990234375, -0.01161956787109375, -0.0101165771484375, -0.01317596435546875, 0.0206451416015625, -0.051177978515625, -0.0204315185546875, 0.0267486572265625, -0.062225341796875, -0.0269927978515625, 0.048919677734375, 0.0177764892578125, 0.02349853515625, -0.023345947265625, 0.03387451171875, -0.00922393798828125, 0.039886474609375, -0.008544921875, -0.027557373046875, -0.004150390625, 0.0260467529296875, 0.0498046875, 0.01373291015625, -0.0206451416015625, -0.0277252197265625, 0.05560302734375, -0.007160186767578125, 0.0123443603515625, 0.033721923828125, -0.007778167724609375, 0.0127410888671875, -0.056365966796875, -0.019256591796875, -0.038360595703125, -0.0078887939453125, 0.01427459716796875, 0.046661376953125, 0.044952392578125, 0.0242767333984375, 0.003265380859375, -0.0133209228515625, 0.08587646484375, 0.03790283203125, 0.049102783203125, -0.04571533203125, 0.0073089599609375, 0.01355743408203125, 0.0124969482421875, 0.00536346435546875, 0.0128173828125, -0.06793212890625, 0.0305633544921875, 0.0196990966796875, -0.0136566162109375, -0.01506805419921875, 0.00733184814453125, -0.0127105712890625, -0.00766754150390625, -0.06640625, -0.0129852294921875, -0.0273895263671875, 0.0599365234375, 0.02783203125, 0.045989990234375, 0.03228759765625, -0.054351806640625, 0.051605224609375, -0.002521514892578125, -0.0221099853515625, -0.023101806640625, -0.00786590576171875, 0.07379150390625, -0.029083251953125, -0.04998779296875, 0.0069580078125, 0.0011301040649414062, 0.0015010833740234375, 0.00977325439453125, 0.0472412109375, -0.0218048095703125, -0.0128631591796875, -0.0196533203125, -0.01235198974609375, -0.0135498046875, 0.01233673095703125, -0.00241851806640625, -0.01206207275390625, -0.00815582275390625, 0.08428955078125, -0.03839111328125, 0.08245849609375, 0.004016876220703125, 0.01346588134765625, 0.0312042236328125, -0.0386962890625, 0.04705810546875, -0.026763916015625, 0.0242462158203125, 0.06658935546875, -0.0226593017578125, 0.0384521484375, -0.01134490966796875, 0.0303802490234375, -0.022613525390625, 0.0219268798828125, -0.0038776397705078125, -0.0217132568359375, -0.039703369140625, -0.019775390625, 0.0107421875, 0.08245849609375, -0.0526123046875, -0.04974365234375, -0.0117645263671875, 0.02606201171875, -0.07135009765625, -0.1016845703125, 0.01349639892578125, -0.01219940185546875, -0.01328277587890625, -0.02838134765625, -0.0096588134765625, 0.0035762786865234375, -0.04217529296875, -0.008331298828125, -0.0215606689453125, -0.044830322265625, -0.0180816650390625, -0.059722900390625, -0.0670166015625, -0.0017528533935546875, 0.020355224609375, 0.01053619384765625, 0.0038013458251953125, 0.0294952392578125, 0.0008530616760253906, -0.038116455078125, 0.00836181640625, -0.00911712646484375, -0.02008056640625, -0.004161834716796875, 0.0096282958984375, -0.034881591796875, -0.00849151611328125, -0.002101898193359375, 0.0234222412109375, 0.0236053466796875, -0.009613037109375, -0.0077667236328125, -0.01064300537109375, -0.01837158203125, 0.03289794921875, 0.0238189697265625, -0.00337982177734375, 0.009490966796875, 0.0804443359375, -0.0244598388671875, -0.0256500244140625, -0.0004096031188964844, -0.05535888671875, 0.019256591796875, 0.033905029296875, -0.01180267333984375, -0.0221710205078125, 0.0026340484619140625, -0.002593994140625, -0.013916015625, 0.060455322265625, -0.036834716796875, -0.043975830078125, -0.01275634765625, -0.0080718994140625, -0.016998291015625, 0.0189361572265625, -0.0175628662109375, -0.032806396484375, -0.0074005126953125, 0.0292510986328125, 0.01666259765625, 0.005794525146484375, 0.006526947021484375, -0.0272979736328125, 0.034576416015625, -0.0360107421875, 0.033203125, -0.05560302734375, -0.0129241943359375, -0.0240478515625, 0.0823974609375, -0.060516357421875, 0.01279449462890625, 0.01540374755859375, -0.003078460693359375, 0.000499725341796875, -0.0209808349609375, -0.08099365234375, -0.011627197265625, -0.03271484375, 0.0389404296875, 0.0020389556884765625, 0.0297393798828125, -0.025604248046875, 0.0110626220703125, -0.01354217529296875, -0.03656005859375, 0.03985595703125, 0.00485992431640625, 0.014068603515625, -0.015655517578125, -0.01447296142578125, -0.01166534423828125, -0.0211334228515625, -0.0003380775451660156, -0.061370849609375, -0.0126953125, 0.0200042724609375, 0.0224151611328125, -0.0188446044921875, -0.027679443359375, -0.0278167724609375, 0.0245819091796875, -0.02154541015625, -0.01204681396484375, -0.0104522705078125, 0.0079345703125, -0.0016803741455078125, -0.00783538818359375, -0.0257110595703125, -0.01168060302734375, -0.0193634033203125, -0.006710052490234375, 0.00995635986328125, 0.0201263427734375, -0.0205078125, -0.0209197998046875, 0.0148468017578125, -0.0126495361328125, -0.03668212890625, -0.0565185546875, -0.0138092041015625, 0.02142333984375, -0.0235443115234375, 0.018310546875, -0.07427978515625, -0.035186767578125, 0.053680419921875, -0.01425933837890625, 0.006359100341796875, -0.005718231201171875, 0.049713134765625, -0.00531768798828125, -0.030548095703125, -0.023895263671875, 0.0225982666015625, 0.056243896484375, 0.00943756103515625, 0.0167694091796875, 0.00234222412109375, -0.024078369140625, 0.042877197265625, 0.007171630859375, 0.0679931640625, -0.08074951171875, 0.05181884765625, -0.01024627685546875, 0.024322509765625, 0.0147857666015625, 0.0260772705078125, -0.0269622802734375, -0.0017566680908203125, 0.0202484130859375, -0.0281524658203125, 0.034454345703125, 0.01497650146484375, 0.003238677978515625, 0.0098419189453125, -0.006519317626953125, -0.0029144287109375, 0.0044403076171875, 0.057098388671875, -0.009307861328125, 0.04107666015625, -0.007122039794921875, -0.004627227783203125, -0.0027942657470703125, 0.018035888671875, 0.019500732421875, 0.016754150390625, 0.01554107666015625, 0.053955078125, -0.003902435302734375, 0.0178985595703125, -0.0146331787109375, 0.0010204315185546875, 0.046112060546875, 0.0166473388671875, -0.04205322265625, -0.01531219482421875, 0.00672149658203125, 0.0050201416015625, -0.0235443115234375, -0.0005784034729003906, -0.00196075439453125, 0.06494140625, -0.0036182403564453125, 0.00040078163146972656, 0.0005865097045898438, 0.0546875, -0.0173797607421875, -0.01690673828125, 0.0015325546264648438, -0.0161285400390625, 0.0036678314208984375, 0.03656005859375, -0.0109710693359375, 0.0258636474609375, -0.008148193359375, -0.0291900634765625, -0.0287933349609375, 0.035552978515625, 0.0180816650390625, -0.0163421630859375, 0.007572174072265625, 0.0205535888671875, 0.0239715576171875, -0.015899658203125, -0.0116119384765625, 0.0111236572265625, 0.039306640625, -0.0201873779296875, -0.006500244140625, 0.00453948974609375, -0.03399658203125, -0.002208709716796875, 0.01265716552734375, -0.042633056640625, -0.0335693359375, -0.01922607421875, 0.0218048095703125, 0.0478515625, -0.0164794921875, -0.010650634765625, 0.0013866424560546875, -0.036163330078125, 0.0078277587890625, -0.040557861328125, -0.01477813720703125, -0.00322723388671875, -0.0128326416015625, 0.0044097900390625, -0.0233306884765625, -0.035186767578125, -0.006649017333984375, -0.0153656005859375, -0.009368896484375, 0.00543212890625, 0.047454833984375, -0.045806884765625, 0.01265716552734375, -0.00033164024353027344, -0.0114898681640625, 0.0249176025390625, 0.021728515625, 0.05572509765625, 0.02239990234375, -0.08050537109375, -0.012939453125, -0.01519775390625, 0.0321044921875, 0.05419921875, -0.0226593017578125, -0.0183258056640625, -0.0204315185546875, -0.006671905517578125, 0.033538818359375, -0.03326416015625, -0.03643798828125, 0.01554107666015625, 0.00994873046875, -0.032806396484375, 0.072509765625, 0.01160430908203125, -0.0280609130859375, 0.0036163330078125, -0.00226593017578125, 0.006389617919921875, -0.01059722900390625, 0.0325927734375, -0.034454345703125, 0.050445556640625, -0.0009732246398925781, -0.047271728515625, -0.03155517578125, -0.034423828125, -0.039642333984375, 0.0243682861328125, -0.0300445556640625, 0.00443267822265625, 0.0203399658203125, 0.00017631053924560547, -0.0270843505859375, 0.016693115234375, 0.01026153564453125, 0.021636962890625, -0.0132904052734375, -0.043853759765625, -0.0623779296875, 0.012847900390625, 0.0220947265625, 0.0184478759765625, -0.0207977294921875, 0.00801849365234375, -0.0009236335754394531, -0.00390625, 0.04205322265625, 0.07427978515625, -0.035430908203125, 0.021759033203125, 0.0479736328125, -0.01161956787109375, -0.00011068582534790039, 0.051849365234375, -0.0193023681640625, -0.0248260498046875, 0.0428466796875, 0.01104736328125, -0.04180908203125, 0.0016632080078125, -0.02471923828125, 0.0142364501953125, 0.043975830078125, 0.039154052734375, -0.057647705078125, 0.01302337646484375, 0.0171661376953125, -0.032745361328125, -0.012176513671875, -0.0106048583984375, -0.0206756591796875, -0.034637451171875, -0.00036787986755371094, 0.039031982421875, -0.042724609375, -0.0016613006591796875, 0.04656982421875, -0.004322052001953125, -0.0255889892578125, 0.0180511474609375, 0.0107879638671875, -0.00830841064453125, 0.0139923095703125, -0.0007843971252441406, -0.010284423828125, -0.02203369140625, -0.00383758544921875, 0.0203399658203125, -0.047027587890625, -0.08966064453125, -0.01080322265625, 0.002635955810546875, -0.036529541015625, -0.004840850830078125, -0.003406524658203125, 0.029510498046875, 0.034210205078125, -0.0261383056640625, 0.02862548828125, 0.0032520294189453125, 0.042816162109375, 0.06298828125, -0.0452880859375, -0.0071868896484375, 0.0592041015625, -0.0460205078125, 0.01088714599609375, 0.053131103515625, -0.01190948486328125, -0.0051422119140625, -0.0145263671875, 0.05267333984375, -0.037200927734375, -0.00537872314453125, 0.0311126708984375, 0.0075531005859375, 0.0012540817260742188, -0.0024871826171875, 0.002338409423828125, -0.0295257568359375, -0.0136566162109375, -0.00506591796875, -0.014556884765625, -0.0030117034912109375, -0.01227569580078125, -0.07373046875, 0.05303955078125, 0.047088623046875, 0.01262664794921875, -0.038238525390625, 0.0164031982421875, -0.0018453598022460938, 0.0020904541015625, -0.0259552001953125, 0.026580810546875, 0.009246826171875, 0.0299530029296875, -0.0298614501953125, -0.01052093505859375, 0.01415252685546875, 0.046142578125, 0.0662841796875, 0.01336669921875, 0.0291900634765625, 0.05267333984375, 0.09228515625, -0.032928466796875, -0.061798095703125, 0.0176849365234375, 0.007587432861328125, 0.0085296630859375, 0.0340576171875, -0.037200927734375, 0.0154266357421875, -0.022796630859375, 0.0164031982421875, 0.0377197265625, 0.016204833984375, 0.0243377685546875, 0.0119476318359375, 0.005901336669921875, -0.0272216796875, 0.0208892822265625, 0.0009918212890625, 0.006076812744140625, -0.0256500244140625, 0.06500244140625, 0.056610107421875, -0.0718994140625, -0.0811767578125, -0.0239105224609375, 0.0469970703125, 0.0209503173828125, 0.035675048828125, 0.037139892578125, 0.021881103515625, 0.05029296875, -0.0236358642578125, 0.0144500732421875, 0.01050567626953125, -0.0295562744140625, 0.0038623809814453125, -0.01031494140625, 0.01363372802734375, -0.031951904296875, 0.0295562744140625, 0.044525146484375, 0.005229949951171875, -0.030670166015625, -0.003932952880859375, 0.01690673828125, 0.01534271240234375, -0.0112152099609375, -0.0169525146484375, 0.023040771484375, -0.01336669921875, 0.0029850006103515625, -0.04998779296875, -0.003673553466796875, 0.024688720703125, 0.055908203125, 0.0008673667907714844, -0.01464080810546875, -0.0391845703125, -0.0384521484375, -0.0361328125, 0.022979736328125, 0.00959014892578125, 0.06927490234375, -0.004947662353515625, 0.0640869140625, -0.0836181640625, -0.03997802734375, -0.021087646484375, 0.01456451416015625, -0.0094757080078125, 0.0083770751953125, -0.0181884765625, -0.007568359375, -0.0276641845703125, 0.029632568359375, 0.015533447265625, 0.057281494140625, 0.060791015625, 0.0093994140625, -0.016204833984375, 0.004364013671875, 0.018157958984375, -0.031982421875, -0.031005859375, -0.02496337890625, 0.01045989990234375, 0.0202789306640625, 0.01137542724609375, -0.0083160400390625, 0.046142578125, 0.0114593505859375, -0.036102294921875, 0.043426513671875, 0.004634857177734375, -0.0036067962646484375, 0.03668212890625, 0.0186309814453125, 0.018035888671875, 0.01641845703125, -0.0187225341796875, 0.00377655029296875, -0.0379638671875, -0.027069091796875, -0.0033321380615234375, 0.0261993408203125, 0.0100555419921875, 0.0172882080078125, -0.0106048583984375, -0.0275115966796875, 0.00431060791015625, 0.00687408447265625, 0.00801849365234375, -0.01190948486328125, -0.0031223297119140625, -0.0263671875, -0.027740478515625, 0.0022296905517578125, -0.0031147003173828125, -0.0038204193115234375, 0.02471923828125, 0.0548095703125, -0.0012521743774414062, -0.00035452842712402344, 0.00035500526428222656, 0.04107666015625, -0.041412353515625, -0.03070068359375, 0.07513427734375, -0.0129241943359375, 0.0087127685546875, -0.0022411346435546875, 0.009857177734375, 0.07220458984375, -0.006160736083984375, 0.0003402233123779297, 0.0462646484375, -0.0237274169921875, -0.00243377685546875, -0.0018854141235351562, 0.06170654296875, -0.004245758056640625, -0.0264739990234375, -0.068359375, -0.01270294189453125, 0.051116943359375, 0.043670654296875, -0.02972412109375, -0.006805419921875, 0.04254150390625, -0.035400390625, 0.022064208984375, -0.0096588134765625, 0.05859375, 0.0291290283203125, 0.03057861328125, 0.0263214111328125, -0.01548004150390625, -0.05010986328125, 0.0406494140625, -0.01549530029296875, 0.004947662353515625, -0.003215789794921875, -0.0513916015625, 0.040191650390625, 0.0546875, 0.046356201171875, -0.034820556640625, 0.0239105224609375, 0.050628662109375, 0.005580902099609375, 0.025634765625, 0.0148773193359375, 0.004978179931640625, -0.0084381103515625, -0.001110076904296875, 0.0124664306640625, -0.00809478759765625, 0.0102081298828125, -0.03460693359375, 0.01473236083984375, 0.0212554931640625, -0.01100921630859375, -0.01171112060546875, 0.0019702911376953125, -0.006931304931640625, 0.04058837890625, -0.0169219970703125, 0.0203704833984375, -0.0016641616821289062, 0.0068817138671875, -0.045684814453125, -0.0011444091796875, -0.030059814453125, 0.008270263671875, 0.00012409687042236328, 0.0173187255859375, 0.021392822265625, -0.0040283203125, -0.03863525390625, 0.0267181396484375, -0.007450103759765625, 0.066162109375, -0.0012111663818359375, -0.035125732421875, 0.01433563232421875, -0.002658843994140625, -0.0166015625, -0.05010986328125, 0.01513671875, -0.0543212890625, 0.0115203857421875, -0.003589630126953125, -0.0026111602783203125, 0.027313232421875, -0.0242156982421875, -0.036041259765625, 0.042694091796875, -0.004634857177734375, -0.035858154296875, 0.01297760009765625, -0.0282745361328125, -0.0038127899169921875, 0.0190887451171875, 0.002437591552734375, -0.0250396728515625, -0.040924072265625, 0.00830078125, 0.01132965087890625, -0.0014591217041015625, 0.05230712890625, -0.0049591064453125, -0.02252197265625, -0.028228759765625, -0.035400390625, -0.017303466796875, 0.05615234375, -0.0190277099609375, 0.031768798828125, 0.041412353515625, -0.07330322265625, -0.0278167724609375, -0.037445068359375, 0.0013942718505859375, 0.01548004150390625, -0.051055908203125, -0.04827880859375, -0.0256195068359375, 0.0731201171875, 0.009735107421875, 0.0211944580078125, -0.02166748046875, -0.0012350082397460938, -0.0191802978515625, 0.00217437744140625, -0.0303192138671875, 0.000835418701171875, -0.04998779296875, -0.03631591796875, -0.00861358642578125, -0.032501220703125, 0.024139404296875, -0.040863037109375, -0.033233642578125, 0.0295867919921875, -0.004268646240234375, 0.00978851318359375, -0.036773681640625, -0.0294036865234375, -0.0015659332275390625, -0.005588531494140625, 0.0170135498046875, -0.00016450881958007812, 0.0293731689453125, 0.00971221923828125, 0.0277862548828125, -0.012054443359375, 0.004047393798828125, -0.0010786056518554688, 0.0019292831420898438, 0.0154571533203125, 0.0088348388671875, 0.0160675048828125, -0.01284027099609375, -0.0143585205078125, 0.00589752197265625, -0.002651214599609375, 0.019866943359375, 0.0244293212890625, -0.022186279296875, -0.0020694732666015625, 0.007068634033203125, -0.026123046875, 0.05535888671875, -0.006317138671875, 0.023345947265625, -0.055633544921875, 0.03021240234375, -0.005035400390625, -0.038665771484375, 0.0074310302734375, 0.041412353515625, 0.04425048828125, 0.007007598876953125, 0.027099609375, 0.0263519287109375, 0.0200347900390625, 0.005222320556640625 ]
b6f72c693a3be92b66b7de1654e5e5df19d86f30
Wordpress Stackexchange Q: wordpress function to change post status I'm running the YouTube Video Fetcher plugin at . It fetches videos using the youtube api and displays them on your website. Within the plugin script, there is the following sequence: if (empty($items)) {$ret .= " 'No new videos.'";} else foreach ( $items as $item ) : Is it possible to change the wordpress post status from published to draft if "No new videos" are found? I am thinking the solution is using the wp update post function and something along the lines of the following: <?php // Update post $my_post = array(); $my_post['ID'] = $id; $my_post['post_status'] = 'draft'; // Update the post into the database wp_update_post( $my_post ); ?> A: I guess it should work . As long as $id is available things are easy. <?php if (empty($items)) { $ret .= " 'No new videos.'"; $postid = $post->ID; //Supply post-Id here $post->ID. wp_update_post(array( 'ID' => $postid, 'post_status' => 'draft' )); } else foreach ( $items as $item ) : ?> Give it a shot.
Q: wordpress function to change post status I'm running the YouTube Video Fetcher plugin at . It fetches videos using the youtube api and displays them on your website. Within the plugin script, there is the following sequence: if (empty($items)) {$ret .= " 'No new videos.'";} else foreach ( $items as $item ) : Is it possible to change the wordpress post status from published to draft if "No new videos" are found? I am thinking the solution is using the wp update post function and something along the lines of the following: <?php // Update post $my_post = array(); $my_post['ID'] = $id; $my_post['post_status'] = 'draft'; // Update the post into the database wp_update_post( $my_post ); ?> A: I guess it should work . As long as $id is available things are easy. <?php if (empty($items)) { $ret .= " 'No new videos.'"; $postid = $post->ID; //Supply post-Id here $post->ID. wp_update_post(array( 'ID' => $postid, 'post_status' => 'draft' )); } else foreach ( $items as $item ) : ?> Give it a shot.
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:442749", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136112" }
[ 0.0828857421875, 0.035797119140625, -0.01727294921875, -0.0213775634765625, 0.0565185546875, -0.036376953125, 0.05401611328125, -0.0611572265625, 0.05523681640625, 0.0261383056640625, -0.04656982421875, -0.0131072998046875, -0.03173828125, -0.0017185211181640625, -0.057281494140625, -0.04248046875, 0.04058837890625, 0.0007891654968261719, 0.0498046875, 0.01055908203125, -0.00891876220703125, 0.032501220703125, 0.03521728515625, 0.0274658203125, -0.00737762451171875, 0.031768798828125, 0.0657958984375, -0.042999267578125, -0.014068603515625, -0.034820556640625, 0.0029735565185546875, 0.0298614501953125, 0.042694091796875, -0.0003752708435058594, -0.029754638671875, 0.023345947265625, 0.038848876953125, -0.0197601318359375, -0.0223388671875, 0.0501708984375, 0.0142364501953125, 0.0017423629760742188, 0.010162353515625, 0.00528717041015625, -0.00879669189453125, -0.00899505615234375, 0.0026531219482421875, -0.0256500244140625, 0.0208587646484375, 0.0260467529296875, -0.0030803680419921875, -0.01251983642578125, -0.0059356689453125, 0.02105712890625, -0.00811767578125, -0.0004029273986816406, -0.02447509765625, 0.0367431640625, 0.01529693603515625, 0.038848876953125, -0.004405975341796875, 0.0347900390625, -0.0216827392578125, -0.0229949951171875, -0.007785797119140625, 0.0138397216796875, 0.020538330078125, 0.004180908203125, -0.07012939453125, -0.03814697265625, 0.049346923828125, -0.027191162109375, 0.0038585662841796875, 0.005889892578125, 0.0093231201171875, -0.0194091796875, 0.025787353515625, 0.0028781890869140625, -0.00033164024353027344, 0.0137176513671875, 0.0447998046875, 0.004390716552734375, 0.024993896484375, -0.02880859375, 0.032623291015625, -0.01690673828125, 0.00902557373046875, -0.01068115234375, -0.046234130859375, -0.0208740234375, -0.03582763671875, -0.052093505859375, -0.035797119140625, -0.0173492431640625, -0.0186614990234375, 0.002574920654296875, 0.018951416015625, 0.072998046875, -0.035797119140625, 0.0262603759765625, -0.013397216796875, -0.02191162109375, 0.0178680419921875, -0.05096435546875, 0.0133514404296875, 0.01244354248046875, 0.0226593017578125, -0.0467529296875, 0.0137786865234375, -0.0016126632690429688, -0.0247039794921875, 0.087158203125, -0.0026912689208984375, 0.0126800537109375, -0.034454345703125, -0.03826904296875, -0.050628662109375, -0.01439666748046875, -0.0217742919921875, -0.030609130859375, 0.007354736328125, 0.032135009765625, -0.031768798828125, -0.0185394287109375, -0.00540924072265625, -0.01219940185546875, -0.0011186599731445312, -0.01514434814453125, -0.0030059814453125, 0.03387451171875, -0.0684814453125, 0.0193939208984375, 0.1510009765625, 0.02972412109375, 0.0116119384765625, -0.034637451171875, 0.0031299591064453125, 0.0193328857421875, -0.0299530029296875, 0.034088134765625, -0.031280517578125, -0.0086669921875, 0.038360595703125, -0.041778564453125, 0.01284027099609375, 0.0219573974609375, 0.00499725341796875, -0.00209808349609375, 0.00620269775390625, -0.02099609375, -0.0018482208251953125, -0.02655029296875, 0.037200927734375, 0.0018301010131835938, 0.0160980224609375, -0.004825592041015625, 0.04473876953125, -0.0238494873046875, -0.0255889892578125, -0.016357421875, 0.04296875, -0.0006604194641113281, -0.0034351348876953125, -0.0034275054931640625, -0.03851318359375, 0.01108551025390625, -0.05615234375, -0.004886627197265625, 0.028045654296875, 0.05615234375, 0.0157470703125, 0.0123748779296875, 0.0582275390625, 0.0307159423828125, -0.0191497802734375, -0.00943756103515625, -0.0026092529296875, -0.0173187255859375, 0.030975341796875, 0.010101318359375, -0.04241943359375, -0.03179931640625, 0.051544189453125, -0.030364990234375, -0.06451416015625, 0.06878662109375, -0.0175628662109375, 0.056182861328125, 0.04156494140625, 0.00566864013671875, 0.0281829833984375, 0.0092010498046875, -0.041595458984375, 0.00348663330078125, 0.0139007568359375, -0.00864410400390625, 0.02001953125, 0.0014619827270507812, 0.01454925537109375, -0.0333251953125, 0.0109100341796875, 0.0560302734375, -0.0211639404296875, 0.00026345252990722656, -0.0296783447265625, 0.0194091796875, -0.00197601318359375, 0.0467529296875, -0.0272216796875, 0.026824951171875, 0.0301055908203125, 0.024261474609375, -0.052642822265625, 0.03546142578125, -0.003841400146484375, -0.01114654541015625, -0.02252197265625, -0.00725555419921875, -0.0231475830078125, 0.028228759765625, -0.0211639404296875, -0.0189208984375, -0.033294677734375, 0.0027313232421875, 0.037445068359375, -0.0438232421875, 0.0120849609375, -0.043365478515625, 0.07147216796875, -0.0150146484375, 0.0323486328125, 0.0233917236328125, 0.032958984375, 0.0380859375, -0.015106201171875, -0.013336181640625, -0.0208282470703125, -0.10833740234375, 0.01474761962890625, 0.07110595703125, 0.01995849609375, 0.01024627685546875, -0.0169830322265625, -0.012969970703125, 0.0887451171875, 0.041778564453125, 0.0165252685546875, -0.0159454345703125, 0.0295257568359375, 0.04931640625, -0.0260467529296875, -0.00890350341796875, 0.027557373046875, -0.047882080078125, 0.025604248046875, 0.04278564453125, 0.00870513916015625, 0.0148162841796875, 0.001552581787109375, -0.005344390869140625, -0.0085906982421875, 0.0038585662841796875, -0.0030727386474609375, -0.0051727294921875, 0.06671142578125, -0.0024127960205078125, 0.040069580078125, 0.02655029296875, -0.04852294921875, 0.0185394287109375, 0.006801605224609375, -0.024810791015625, 0.022430419921875, 0.065673828125, -0.01190948486328125, 0.022979736328125, 0.0167694091796875, -0.045135498046875, 0.0019464492797851562, 0.0235595703125, -0.034637451171875, 0.00490570068359375, -0.01364898681640625, -0.01541900634765625, -0.0067596435546875, -0.0009198188781738281, 0.0239715576171875, -0.0140533447265625, -0.006988525390625, 0.007289886474609375, 0.040771484375, 0.03265380859375, -0.027740478515625, 0.0513916015625, -0.017669677734375, -0.0115814208984375, 0.059539794921875, -0.05780029296875, 0.04119873046875, -0.012176513671875, 0.042755126953125, 0.057891845703125, 0.0347900390625, -0.0340576171875, 0.007709503173828125, 0.0003325939178466797, -0.023773193359375, 0.02862548828125, -0.00955963134765625, -0.018035888671875, -0.05694580078125, 0.00518035888671875, 0.019256591796875, 0.0323486328125, 0.00140380859375, -0.0526123046875, 0.00611114501953125, 0.017547607421875, -0.08941650390625, -0.0706787109375, 0.00496673583984375, -0.05133056640625, 0.004100799560546875, -0.006031036376953125, -0.027069091796875, -0.004749298095703125, 0.0164794921875, 0.007354736328125, -0.03460693359375, 0.025482177734375, -0.033538818359375, -0.0110931396484375, -0.047576904296875, 0.0128326416015625, -0.0183563232421875, 0.0216827392578125, 0.0064544677734375, 0.07073974609375, 0.0277862548828125, -0.058837890625, 0.0004181861877441406, 0.052520751953125, -0.032745361328125, 0.0009889602661132812, 0.052703857421875, -0.031280517578125, -0.0518798828125, 0.0257110595703125, 0.0244598388671875, 0.006374359130859375, -0.0222015380859375, -0.01512908935546875, -0.021240234375, -0.0202789306640625, 0.0036296844482421875, -0.002246856689453125, 0.021240234375, 0.0289764404296875, 0.037811279296875, -0.023895263671875, -0.011932373046875, -0.00868988037109375, -0.030975341796875, 0.01509857177734375, 0.007701873779296875, 0.001556396484375, -0.00789642333984375, 0.00923919677734375, -0.0153656005859375, 0.00342559814453125, 0.036041259765625, -0.01079559326171875, -0.005947113037109375, -0.0252838134765625, -0.047576904296875, -0.024322509765625, 0.0168914794921875, 0.00014317035675048828, -0.014007568359375, -0.018310546875, 0.0159149169921875, -0.0239105224609375, 0.0127105712890625, -0.07208251953125, -0.006847381591796875, -0.01020050048828125, -0.061248779296875, 0.0157623291015625, -0.0286102294921875, 0.0057373046875, -0.006755828857421875, 0.043853759765625, -0.02392578125, -0.0168304443359375, -0.0258331298828125, 0.015625, -0.02093505859375, -0.087158203125, -0.0055694580078125, 0.0029888153076171875, 0.0111846923828125, -0.01507568359375, -0.01430511474609375, -0.0001316070556640625, -0.03472900390625, 0.022735595703125, -0.00907135009765625, -0.0021495819091796875, 0.027923583984375, 0.01934814453125, 0.0223236083984375, 0.01016998291015625, 0.0221405029296875, -0.01678466796875, 0.006069183349609375, -0.0207672119140625, -0.056182861328125, -0.0213775634765625, 0.0467529296875, 0.0299835205078125, 0.0085296630859375, -0.0694580078125, -0.0114593505859375, 0.0413818359375, -0.005863189697265625, 0.0164031982421875, -0.0202484130859375, -0.013702392578125, -0.0180816650390625, 0.01497650146484375, -0.0022411346435546875, -0.0009164810180664062, -0.028289794921875, -0.034271240234375, -0.020233154296875, -0.0019121170043945312, -0.042236328125, 0.00823211669921875, -0.0213623046875, -0.006977081298828125, -0.06219482421875, -0.0213775634765625, 0.037261962890625, 0.0197906494140625, -0.01812744140625, 0.02716064453125, -0.0196380615234375, -0.030975341796875, 0.0615234375, -0.040252685546875, -0.04571533203125, 0.00640106201171875, 0.04510498046875, -0.00046372413635253906, -0.0209197998046875, -0.048553466796875, -0.005786895751953125, 0.038177490234375, 0.005523681640625, 0.02520751953125, 0.032745361328125, -0.03851318359375, 0.050140380859375, 0.0293426513671875, -0.04052734375, 0.07830810546875, -0.01273345947265625, 0.046722412109375, -0.047119140625, 0.019256591796875, 0.03460693359375, -0.025299072265625, -0.0155029296875, -0.0260467529296875, 0.0077056884765625, 0.00673675537109375, 0.00939178466796875, -0.014495849609375, 0.0121002197265625, -0.0032100677490234375, -0.036773681640625, 0.0193328857421875, 0.01739501953125, 0.003139495849609375, 0.0209503173828125, 0.0028705596923828125, 0.018768310546875, -0.0012712478637695312, -0.0124359130859375, -0.060028076171875, -0.037017822265625, -0.005035400390625, 0.003459930419921875, -0.002685546875, 0.007061004638671875, -0.0309600830078125, 0.004302978515625, 0.0098114013671875, -0.01493072509765625, -0.049072265625, -0.041900634765625, 0.017242431640625, 0.01806640625, 0.0273284912109375, 0.028411865234375, 0.0261383056640625, 0.020263671875, 0.00514984130859375, -0.0201263427734375, -0.00334930419921875, 0.044952392578125, -0.033538818359375, 0.017974853515625, 0.04534912109375, -0.0273284912109375, -0.027130126953125, 0.0701904296875, 0.045135498046875, 0.005008697509765625, -0.015899658203125, 0.03948974609375, 0.02618408203125, 0.0032787322998046875, 0.025482177734375, -0.0209808349609375, -0.0006542205810546875, -0.0149688720703125, -0.0170135498046875, -0.023834228515625, 0.0180206298828125, -0.0070037841796875, 0.01325225830078125, -0.006893157958984375, -0.00626373291015625, 0.03765869140625, -0.0089874267578125, -0.028411865234375, 0.021759033203125, 0.02789306640625, -0.0013818740844726562, -0.007354736328125, 0.0134124755859375, 0.0061492919921875, 0.01422882080078125, 0.00897979736328125, -0.0252227783203125, 0.01526641845703125, -0.008026123046875, -0.0443115234375, -0.040283203125, -0.009979248046875, 0.0218353271484375, -0.014617919921875, -0.028045654296875, 0.00797271728515625, -0.0163116455078125, 0.0167694091796875, -0.0355224609375, -0.0435791015625, 0.0587158203125, -0.058837890625, 0.0099334716796875, -0.026336669921875, 0.03106689453125, -0.017608642578125, 0.024139404296875, 0.0131072998046875, 0.01287078857421875, -0.00887298583984375, -0.0276641845703125, -0.0083465576171875, -0.0276031494140625, -0.025177001953125, -0.030914306640625, -0.059783935546875, -0.0189971923828125, -0.01085662841796875, 0.01120758056640625, -0.0304718017578125, -0.041656494140625, -0.01203155517578125, 0.004924774169921875, 0.0328369140625, 0.0181427001953125, 0.00864410400390625, 0.038238525390625, 0.006534576416015625, 0.03216552734375, 0.0277252197265625, -0.01473236083984375, -0.046875, -0.00299072265625, -0.0178070068359375, -0.062744140625, 0.00771331787109375, 0.0260162353515625, -0.007167816162109375, 0.01218414306640625, -0.010650634765625, 0.00385284423828125, 0.0228424072265625, -0.0076751708984375, 0.004116058349609375, -0.01551055908203125, 0.01296234130859375, -0.0268707275390625, 0.0025310516357421875, 0.018035888671875, -0.018951416015625, -0.0013904571533203125, 0.01535797119140625, 0.04010009765625, -0.0195465087890625, -0.0211944580078125, -0.025726318359375, 0.01329803466796875, -0.04693603515625, 0.041168212890625, 0.0374755859375, -0.00513458251953125, 0.026885986328125, -0.0216522216796875, 0.00188446044921875, 0.0233154296875, -0.0283050537109375, 0.0166015625, 0.04681396484375, 0.08349609375, -0.0060882568359375, -0.0260772705078125, 0.048828125, -0.04193115234375, 0.0290374755859375, 0.005741119384765625, 0.048858642578125, -0.0251312255859375, 0.023468017578125, -0.0013685226440429688, -0.0367431640625, 0.0236663818359375, -0.017242431640625, -0.000023365020751953125, -0.0094757080078125, 0.037200927734375, -0.02178955078125, -0.0282745361328125, -0.0032634735107421875, -0.00366973876953125, -0.007476806640625, -0.010955810546875, 0.0025844573974609375, 0.002681732177734375, -0.08447265625, 0.026824951171875, 0.0478515625, -0.0124664306640625, -0.010040283203125, 0.03741455078125, -0.00798797607421875, -0.012420654296875, -0.05255126953125, 0.0165863037109375, 0.035675048828125, -0.024139404296875, 0.007656097412109375, 0.04852294921875, 0.0174713134765625, 0.06610107421875, 0.00830078125, -0.008331298828125, 0.045989990234375, -0.0021762847900390625, -0.06707763671875, -0.0009226799011230469, 0.0084381103515625, 0.0277252197265625, -0.021484375, 0.03570556640625, -0.0364990234375, -0.0024280548095703125, -0.006649017333984375, -0.051727294921875, 0.03253173828125, -0.0309600830078125, 0.0013580322265625, 0.0103912353515625, 0.026885986328125, 0.01268768310546875, 0.007144927978515625, 0.04376220703125, -0.0677490234375, -0.049652099609375, 0.0225830078125, -0.0614013671875, -0.050506591796875, 0.00481414794921875, -0.05096435546875, 0.1328125, 0.0279083251953125, -0.006839752197265625, 0.0019283294677734375, 0.06427001953125, -0.052032470703125, 0.046356201171875, -0.0171661376953125, 0.036163330078125, -0.018707275390625, 0.034332275390625, -0.0020160675048828125, 0.0159149169921875, 0.0284881591796875, 0.01021575927734375, 0.0714111328125, 0.020751953125, -0.04290771484375, 0.0201263427734375, 0.09619140625, 0.061126708984375, 0.0297393798828125, 0.034027099609375, -0.007450103759765625, 0.0132904052734375, 0.03619384765625, -0.037078857421875, 0.049652099609375, -0.0654296875, -0.00872802734375, -0.0153961181640625, 0.0258026123046875, 0.0168914794921875, -0.022216796875, 0.047698974609375, -0.031982421875, -0.013214111328125, 0.03533935546875, 0.01442718505859375, 0.019317626953125, 0.03802490234375, 0.038818359375, -0.05718994140625, -0.0092010498046875, -0.024261474609375, 0.044708251953125, -0.014190673828125, 0.0002651214599609375, 0.0274658203125, 0.0005092620849609375, 0.066162109375, 0.0165863037109375, -0.01070404052734375, 0.005756378173828125, 0.03558349609375, 0.050384521484375, 0.0401611328125, -0.0009608268737792969, -0.00298309326171875, 0.050994873046875, 0.042724609375, 0.04437255859375, -0.06903076171875, -0.0136871337890625, 0.01381683349609375, 0.0157470703125, -0.0107269287109375, -0.01296234130859375, 0.0125885009765625, -0.0019083023071289062, 0.0184783935546875, -0.0178680419921875, -0.0022487640380859375, 0.01216888427734375, 0.0158233642578125, -0.008453369140625, -0.004238128662109375, -0.01535797119140625, -0.010223388671875, -0.05078125, 0.0033588409423828125, 0.022216796875, 0.065673828125, 0.0176849365234375, 0.045318603515625, -0.012420654296875, -0.019439697265625, -0.0038776397705078125, 0.0239715576171875, -0.002483367919921875, -0.0189208984375, -0.031707763671875, -0.07403564453125, 0.0139312744140625, 0.041473388671875, -0.000469207763671875, 0.05670166015625, 0.035858154296875, 0.02294921875, 0.0038394927978515625, 0.0167083740234375, 0.055328369140625, -0.017608642578125, -0.04132080078125, -0.040496826171875, 0.0012464523315429688, 0.0232696533203125, 0.0161590576171875, 0.012481689453125, 0.056243896484375, -0.006000518798828125, -0.0292510986328125, 0.036651611328125, -0.017822265625, -0.0249176025390625, 0.06512451171875, -0.004489898681640625, 0.10595703125, 0.006561279296875, -0.003021240234375, -0.0007600784301757812, -0.0252838134765625, -0.018890380859375, -0.01096343994140625, 0.010498046875, -0.037750244140625, 0.054046630859375, -0.003215789794921875, 0.031036376953125, -0.00868988037109375, -0.031494140625, 0.0122833251953125, 0.01061248779296875, 0.024749755859375, 0.022918701171875, -0.0308685302734375, -0.022552490234375, -0.0243682861328125, 0.0243682861328125, -0.00586700439453125, 0.0242462158203125, 0.0033721923828125, 0.0236053466796875, -0.0045318603515625, 0.01442718505859375, -0.0247955322265625, -0.015167236328125, 0.01511383056640625, -0.03826904296875, -0.006847381591796875, 0.01043701171875, 0.0290679931640625, 0.026336669921875, 0.02423095703125, -0.0220489501953125, 0.0243072509765625, -0.05120849609375, 0.0198974609375, -0.01355743408203125, 0.005405426025390625, -0.025970458984375, -0.052734375, 0.017578125, 0.032745361328125, -0.0276336669921875, -0.006435394287109375, 0.0025730133056640625, 0.036407470703125, -0.04217529296875, -0.0123138427734375, 0.00875091552734375, -0.034912109375, -0.006076812744140625, 0.0259246826171875, -0.041015625, 0.0247344970703125, -0.002429962158203125, -0.0281829833984375, 0.006679534912109375, -0.003314971923828125, 0.00882720947265625, -0.023406982421875, -0.01323699951171875, -0.01318359375, -0.00940704345703125, 0.01108551025390625, -0.004611968994140625, 0.01496124267578125, -0.0021266937255859375, -0.0006656646728515625, -0.0164947509765625, 0.0187835693359375, -0.017913818359375, -0.048431396484375, -0.0163726806640625, -0.03936767578125, -0.0298919677734375, -0.07904052734375, -0.0005517005920410156, 0.0009784698486328125, 0.0084075927734375, 0.00927734375, -0.04351806640625, 0.0210113525390625, 0.0085601806640625, 0.025146484375, -0.00574493408203125, 0.0004673004150390625, 0.014404296875, 0.035491943359375, -0.037261962890625, -0.0173797607421875, -0.0262298583984375, 0.003612518310546875, -0.018707275390625, -0.01540374755859375, 0.03680419921875, -0.0293426513671875, -0.064453125, -0.02667236328125, 0.00452423095703125, -0.00342559814453125, 0.024078369140625, -0.0084381103515625, 0.0201416015625, 0.01105499267578125, -0.0249786376953125, -0.06494140625, 0.004032135009765625, -0.053375244140625, 0.00122833251953125, 0.0499267578125, -0.041748046875, -0.00023436546325683594, -0.0286407470703125, -0.0286407470703125, 0.018157958984375, 0.020538330078125, -0.0300750732421875, -0.0318603515625, 0.006465911865234375, -0.014404296875, 0.047393798828125, 0.0094146728515625, -0.031463623046875, -0.0098876953125, 0.0146331787109375, -0.01441192626953125, 0.040008544921875, 0.0182952880859375, -0.0226593017578125, -0.0592041015625, -0.0284881591796875, -0.037689208984375, 0.00415802001953125, -0.018707275390625, 0.01849365234375, 0.004108428955078125, 0.00743865966796875, -0.02276611328125, 0.020538330078125, 0.0078125, -0.005184173583984375, 0.0175018310546875, -0.055450439453125, -0.091796875, -0.058013916015625, 0.10772705078125, 0.050048828125, 0.042816162109375, -0.007778167724609375, -0.01708984375, -0.03802490234375, -0.05072021484375, -0.019134521484375, 0.032501220703125, -0.07513427734375, -0.01239776611328125, 0.006504058837890625, -0.004436492919921875, -0.01415252685546875, -0.03472900390625, -0.0225830078125, -0.0308380126953125, -0.02032470703125, -0.0020885467529296875, 0.029510498046875, -0.0176544189453125, 0.04327392578125, -0.039764404296875, -0.006221771240234375, 0.03533935546875, -0.0018596649169921875, 0.020111083984375, 0.05364990234375, 0.006603240966796875, -0.0322265625, 0.0164337158203125, 0.01078033447265625, 0.032318115234375, -0.00891876220703125, 0.00789642333984375, -0.03277587890625, -0.01090240478515625, -0.025421142578125, -0.0199737548828125, -0.050201416015625, -0.0019626617431640625, 0.006175994873046875, -0.02020263671875, 0.07061767578125, -0.024078369140625, 0.01849365234375, -0.0055389404296875, -0.006015777587890625, -0.00115203857421875, 0.0164337158203125, 0.04852294921875, -0.0213775634765625, 0.0142669677734375, 0.00640106201171875, 0.04425048828125, -0.029510498046875, 0.042633056640625, -0.0251922607421875, 0.01300811767578125, 0.01424407958984375 ]
aa07c008aa6875d8f928d1a5fe58957152f6ffab
Wordpress Stackexchange Q: Problem excluding category from get_next_post I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also marked as Featured. I want my next/prev links on single pages to exclude the 'featured' category (tag_ID=21) so that my current and past posts don't cross over when users are using post navigation, but I can't seem to get this to happen. I have tried: get_next_post(true,'21'), get_next_post(false,'21') and pretty much every other permutation of arguments, but my Past/Featured posts continue to show up adjacent to my Current/Featured posts in the post navigation. A: Did you try with: get_adjacent_post ? get_adjacent_post(false, 'YourID', false); wp topic: get_adjacent_posts-exclude-category-syntax
Q: Problem excluding category from get_next_post I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also marked as Featured. I want my next/prev links on single pages to exclude the 'featured' category (tag_ID=21) so that my current and past posts don't cross over when users are using post navigation, but I can't seem to get this to happen. I have tried: get_next_post(true,'21'), get_next_post(false,'21') and pretty much every other permutation of arguments, but my Past/Featured posts continue to show up adjacent to my Current/Featured posts in the post navigation. A: Did you try with: get_adjacent_post ? get_adjacent_post(false, 'YourID', false); wp topic: get_adjacent_posts-exclude-category-syntax A: The 2nd parameter enables you to exclude category I.D's $excluded_categories (string) (optional) Excluded categories IDs. Default: '' <?php get_next_post( $in_same_cat, $excluded_categories ) ?> Source https://codex.wordpress.org/Function_Reference/get_next_post Same with get_adjacent_post() <?php get_adjacent_post( $in_same_cat, $excluded_categories, $previous ) ?> A: In Word.ress 3.9 (and still in 3.9.1) there's a bug concerning the excluded terms in get_adjacent_post(). There's a plugin to fix that bug.
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:442759", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136161" }
[ 0.0814208984375, 0.009979248046875, 0.017181396484375, -0.0311737060546875, 0.04132080078125, -0.04010009765625, 0.0693359375, -0.036041259765625, 0.01161956787109375, 0.0005688667297363281, -0.048583984375, 0.0079193115234375, -0.022064208984375, -0.01384735107421875, 0.0035877227783203125, -0.036834716796875, 0.0111236572265625, -0.0030689239501953125, 0.037628173828125, -0.017608642578125, 0.002105712890625, -0.011260986328125, 0.0406494140625, 0.0350341796875, 0.055206298828125, -0.01398468017578125, 0.0095672607421875, -0.01245880126953125, 0.048675537109375, -0.007232666015625, 0.032501220703125, -0.034698486328125, -0.01474761962890625, 0.052764892578125, -0.005950927734375, -0.037445068359375, -0.003650665283203125, 0.022125244140625, 0.016998291015625, 0.0186004638671875, -0.00033974647521972656, 0.0260467529296875, -0.026336669921875, -0.0274505615234375, -0.034271240234375, -0.038665771484375, -0.0032634735107421875, -0.0257415771484375, 0.001705169677734375, -0.01224517822265625, 0.0257568359375, 0.0012912750244140625, 0.047607421875, -0.0177459716796875, -0.021514892578125, 0.00022149085998535156, -0.0307159423828125, -0.013885498046875, 0.039947509765625, 0.00982666015625, -0.01517486572265625, -0.024658203125, 0.01300811767578125, -0.044403076171875, 0.00792694091796875, -0.01081085205078125, 0.037994384765625, 0.0245819091796875, -0.0599365234375, -0.005741119384765625, 0.0579833984375, -0.017120361328125, 0.00634765625, 0.004589080810546875, -0.033050537109375, -0.02008056640625, 0.0170440673828125, -0.011474609375, 0.0092010498046875, -0.0037593841552734375, -0.04052734375, 0.0382080078125, -0.041351318359375, -0.039825439453125, -0.0076751708984375, -0.0037059783935546875, -0.034942626953125, 0.0007939338684082031, -0.04254150390625, -0.00640869140625, -0.032684326171875, -0.046966552734375, -0.0295257568359375, 0.024749755859375, 0.004550933837890625, -0.00234222412109375, 0.0526123046875, 0.06658935546875, -0.0242462158203125, -0.01061248779296875, 0.006031036376953125, -0.04052734375, 0.003498077392578125, -0.034942626953125, 0.039337158203125, 0.026275634765625, -0.0340576171875, 0.015167236328125, 0.08056640625, 0.035125732421875, 0.0119171142578125, 0.05450439453125, 0.0169677734375, -0.0035686492919921875, -0.03680419921875, -0.0021915435791015625, -0.0004253387451171875, -0.005336761474609375, -0.0006394386291503906, -0.0215911865234375, 0.01222991943359375, 0.0277862548828125, -0.0220794677734375, -0.034149169921875, 0.037628173828125, 0.0179595947265625, -0.030731201171875, 0.005367279052734375, 0.045745849609375, 0.03607177734375, -0.04693603515625, -0.0080718994140625, 0.05450439453125, 0.0014142990112304688, 0.006282806396484375, -0.027496337890625, 0.0198974609375, -0.0210113525390625, 0.01294708251953125, 0.00310516357421875, -0.0018987655639648438, -0.032562255859375, 0.01381683349609375, -0.0012807846069335938, 0.025909423828125, 0.019622802734375, 0.0042572021484375, 0.0063323974609375, -0.0009522438049316406, -0.040252685546875, 0.060546875, -0.0770263671875, 0.03875732421875, -0.01181793212890625, -0.035980224609375, -0.01512908935546875, 0.0097503662109375, -0.029327392578125, -0.0206451416015625, -0.052490234375, 0.051910400390625, 0.013275146484375, 0.018585205078125, -0.03131103515625, -0.06732177734375, -0.011138916015625, -0.08831787109375, -0.03143310546875, 0.0269012451171875, 0.0655517578125, 0.0285797119140625, -0.044219970703125, -0.01922607421875, 0.01885986328125, -0.00542449951171875, 0.01371002197265625, 0.0098114013671875, -0.02734375, -0.0027370452880859375, 0.05755615234375, 0.006561279296875, -0.038726806640625, -0.028350830078125, 0.0066986083984375, -0.05517578125, 0.051849365234375, 0.034027099609375, 0.049835205078125, -0.02288818359375, 0.00856781005859375, 0.0869140625, 0.0418701171875, -0.018280029296875, -0.023895263671875, -0.007419586181640625, -0.01549530029296875, 0.042999267578125, 0.01371002197265625, 0.01453399658203125, 0.00487518310546875, 0.0082855224609375, -0.0017576217651367188, -0.003665924072265625, 0.004375457763671875, -0.0655517578125, 0.005878448486328125, -0.02093505859375, 0.035430908203125, -0.06298828125, 0.0241241455078125, 0.034271240234375, 0.00799560546875, -0.037017822265625, 0.004184722900390625, 0.030609130859375, 0.0125579833984375, -0.00281524658203125, 0.0119171142578125, -0.0175628662109375, 0.011077880859375, -0.01023101806640625, -0.005016326904296875, -0.0161285400390625, 0.01715087890625, 0.05810546875, 0.0010128021240234375, -0.0297698974609375, -0.029998779296875, -0.0026035308837890625, 0.0189971923828125, -0.0897216796875, 0.054779052734375, 0.0276336669921875, 0.017059326171875, -0.0277862548828125, 0.02984619140625, 0.058013916015625, 0.018585205078125, -0.002285003662109375, 0.006683349609375, 0.037689208984375, -0.0009899139404296875, -0.01175689697265625, -0.0036945343017578125, 0.017333984375, -0.07574462890625, -0.003116607666015625, -0.0113677978515625, -0.018402099609375, 0.0210723876953125, 0.05615234375, 0.04010009765625, 0.010345458984375, 0.051971435546875, 0.037384033203125, 0.02349853515625, 0.011566162109375, -0.01270294189453125, 0.0016956329345703125, -0.0149078369140625, 0.020721435546875, -0.031768798828125, -0.0703125, -0.00348663330078125, 0.0287017822265625, -0.03131103515625, 0.022979736328125, 0.01181793212890625, 0.032928466796875, -0.053619384765625, 0.00514984130859375, -0.01119232177734375, 0.018524169921875, 0.015838623046875, -0.019317626953125, -0.0009336471557617188, -0.01092529296875, 0.0011615753173828125, 0.00492095947265625, -0.01422119140625, 0.007274627685546875, 0.051025390625, 0.044281005859375, -0.010223388671875, -0.00917816162109375, -0.0777587890625, 0.01297760009765625, 0.003932952880859375, -0.0168609619140625, -0.033111572265625, 0.0033969879150390625, 0.0181427001953125, -0.017730712890625, 0.0193328857421875, 0.01416015625, -0.01806640625, -0.037841796875, -0.0285491943359375, 0.037200927734375, -0.048736572265625, 0.0152740478515625, 0.04132080078125, -0.0036182403564453125, -0.007049560546875, 0.00644683837890625, 0.0006232261657714844, 0.0082244873046875, 0.0170745849609375, -0.007415771484375, 0.00574493408203125, -0.0830078125, -0.034881591796875, 0.043853759765625, 0.033203125, 0.035919189453125, -0.0178985595703125, 0.022979736328125, 0.05352783203125, -0.0292816162109375, -0.04290771484375, 0.045074462890625, 0.0023899078369140625, -0.016021728515625, 0.03814697265625, -0.0022220611572265625, -0.038482666015625, 0.048828125, -0.0124359130859375, 0.029266357421875, -0.045196533203125, -0.065673828125, -0.055908203125, -0.07513427734375, -0.0029468536376953125, 0.001953125, 0.0031604766845703125, 0.00687408447265625, 0.0828857421875, 0.007099151611328125, -0.05108642578125, 0.01328277587890625, -0.0166778564453125, -0.0260772705078125, 0.031036376953125, 0.004848480224609375, 0.0069122314453125, -0.0209197998046875, 0.0213775634765625, 0.013580322265625, 0.007137298583984375, -0.0226898193359375, -0.01317596435546875, -0.0141754150390625, 0.0272064208984375, 0.022979736328125, 0.0201873779296875, 0.01544189453125, 0.0504150390625, 0.06768798828125, 0.002544403076171875, 0.00647735595703125, -0.038726806640625, -0.041595458984375, -0.023345947265625, 0.006610870361328125, 0.0143280029296875, -0.032989501953125, 0.01203155517578125, -0.0006575584411621094, -0.00876617431640625, -0.0213165283203125, -0.050384521484375, 0.04229736328125, 0.01561737060546875, 0.0280609130859375, 0.0080413818359375, -0.027374267578125, -0.0190582275390625, 0.02923583984375, -0.022216796875, 0.037384033203125, -0.0127716064453125, 0.01201629638671875, -0.049957275390625, -0.015472412109375, 0.0250396728515625, -0.0168914794921875, 0.0018100738525390625, 0.01111602783203125, -0.0145721435546875, 0.020904541015625, 0.06524658203125, -0.073974609375, -0.038970947265625, -0.00933074951171875, 0.01114654541015625, 0.046966552734375, -0.02679443359375, -0.004650115966796875, -0.04364013671875, -0.0711669921875, 0.01043701171875, -0.00823974609375, -0.0229034423828125, -0.0148162841796875, 0.0257720947265625, -0.060882568359375, -0.031646728515625, 0.05450439453125, -0.0128173828125, 0.0166473388671875, 0.003711700439453125, 0.0187225341796875, -0.040496826171875, -0.041961669921875, 0.0174407958984375, -0.049224853515625, 0.0180511474609375, -0.022064208984375, -0.006916046142578125, -0.00836181640625, 0.041839599609375, -0.031982421875, 0.012451171875, 0.038970947265625, -0.01800537109375, 0.01538848876953125, -0.02581787109375, 0.024993896484375, 0.02691650390625, 0.0007357597351074219, -0.00519561767578125, -0.01314544677734375, -0.0008931159973144531, -0.0177764892578125, 0.028411865234375, -0.02178955078125, -0.041229248046875, 0.004108428955078125, -0.030853271484375, -0.0496826171875, -0.03582763671875, 0.007328033447265625, 0.0126495361328125, -0.0065460205078125, -0.0022296905517578125, -0.0343017578125, -0.0360107421875, 0.03851318359375, -0.0020389556884765625, -0.01904296875, 0.014404296875, 0.037994384765625, 0.01076507568359375, -0.028472900390625, -0.024749755859375, 0.01580810546875, 0.03643798828125, 0.01134490966796875, 0.01030731201171875, -0.009124755859375, -0.0499267578125, 0.08984375, 0.0184783935546875, -0.0032520294189453125, -0.0308990478515625, 0.050201416015625, 0.00609588623046875, 0.0017690658569335938, -0.0090179443359375, -0.0276336669921875, 0.032318115234375, 0.027374267578125, -0.006862640380859375, -0.055938720703125, -0.019775390625, 0.05419921875, -0.0010519027709960938, 0.0194244384765625, -0.03729248046875, 0.021453857421875, -0.01407623291015625, 0.0887451171875, 0.049835205078125, 0.046173095703125, 0.006359100341796875, 0.015838623046875, 0.01494598388671875, -0.00833892822265625, -0.0189361572265625, -0.00623321533203125, -0.002216339111328125, 0.015350341796875, -0.000026881694793701172, -0.00514984130859375, -0.0084075927734375, 0.0187530517578125, -0.01055908203125, -0.028961181640625, -0.0210113525390625, -0.054901123046875, 0.002147674560546875, 0.0055999755859375, 0.0312347412109375, -0.0281524658203125, 0.04656982421875, 0.026824951171875, 0.0201416015625, 0.0005011558532714844, -0.048309326171875, 0.0089263916015625, -0.0233612060546875, -0.0293731689453125, 0.004222869873046875, -0.0128021240234375, 0.00376129150390625, 0.07769775390625, 0.0245513916015625, 0.048675537109375, -0.04180908203125, 0.0005383491516113281, -0.0263824462890625, 0.02447509765625, 0.0078125, 0.0120697021484375, -0.01464080810546875, 0.033172607421875, 0.041351318359375, -0.0236358642578125, -0.0163421630859375, -0.01763916015625, 0.024169921875, -0.0130157470703125, -0.00260162353515625, 0.0599365234375, 0.0175933837890625, -0.004978179931640625, 0.045257568359375, 0.034942626953125, -0.039306640625, -0.00264739990234375, 0.0290374755859375, 0.01202392578125, -0.0006585121154785156, -0.03790283203125, 0.0272979736328125, -0.04437255859375, 0.0018358230590820312, 0.040283203125, -0.045989990234375, 0.01044464111328125, 0.0086212158203125, -0.023345947265625, -0.005580902099609375, 0.01068878173828125, 0.012115478515625, -0.00983428955078125, -0.0176239013671875, -0.034088134765625, 0.020294189453125, -0.0229949951171875, 0.049163818359375, -0.034515380859375, -0.0168914794921875, -0.04962158203125, 0.003082275390625, 0.032073974609375, 0.027191162109375, -0.0201873779296875, 0.0210418701171875, -0.037933349609375, -0.01335906982421875, -0.0017404556274414062, -0.0330810546875, -0.0255279541015625, -0.0305328369140625, 0.0230560302734375, 0.006237030029296875, 0.0035991668701171875, -0.048095703125, -0.0164031982421875, 0.01593017578125, 0.0477294921875, 0.0279083251953125, -0.0228424072265625, 0.01461029052734375, 0.031524658203125, 0.049591064453125, -0.0061187744140625, -0.0286712646484375, -0.02691650390625, -0.01043701171875, -0.0230560302734375, -0.0855712890625, 0.005352020263671875, 0.025054931640625, -0.03240966796875, 0.0341796875, 0.034942626953125, 0.01100921630859375, 0.01337432861328125, -0.0008645057678222656, 0.0243988037109375, -0.0188446044921875, -0.037445068359375, -0.004306793212890625, -0.037933349609375, 0.0338134765625, 0.01474761962890625, 0.03143310546875, -0.02838134765625, -0.0518798828125, -0.0104217529296875, 0.0242462158203125, -0.006801605224609375, 0.0311126708984375, -0.004058837890625, -0.00992584228515625, -0.0033855438232421875, 0.032623291015625, 0.0372314453125, -0.00732421875, 0.0484619140625, -0.01678466796875, -0.01251983642578125, 0.018768310546875, -0.0014467239379882812, 0.020660400390625, -0.01454925537109375, 0.0258331298828125, 0.020721435546875, -0.007251739501953125, -0.036224365234375, -0.0269622802734375, -0.012359619140625, 0.01105499267578125, -0.0175323486328125, -0.0169830322265625, -0.004638671875, -0.005825042724609375, 0.00370025634765625, 0.0168304443359375, 0.013427734375, -0.03118896484375, 0.0026092529296875, -0.0195159912109375, -0.0200347900390625, -0.0173797607421875, -0.018768310546875, -0.00963592529296875, 0.018218994140625, 0.01490020751953125, -0.03204345703125, -0.02569580078125, 0.0248870849609375, -0.048309326171875, -0.037017822265625, -0.00809478759765625, -0.0067291259765625, -0.0303955078125, -0.06756591796875, 0.00244903564453125, 0.01715087890625, 0.017547607421875, 0.050994873046875, -0.0200653076171875, 0.0185394287109375, 0.01702880859375, -0.0015859603881835938, 0.01186370849609375, -0.017608642578125, -0.060028076171875, 0.037506103515625, 0.00907135009765625, 0.0223846435546875, 0.0149383544921875, -0.043212890625, 0.0005068778991699219, -0.0303802490234375, 0.0030269622802734375, -0.0240478515625, -0.035430908203125, 0.0997314453125, -0.023406982421875, -0.030029296875, 0.0078277587890625, 0.02703857421875, -0.0153350830078125, 0.005523681640625, 0.022857666015625, -0.00531768798828125, 0.0088958740234375, 0.0011873245239257812, 0.003143310546875, 0.00104522705078125, 0.0038547515869140625, -0.08837890625, 0.0670166015625, -0.0316162109375, 0.086181640625, 0.0399169921875, -0.006938934326171875, -0.006206512451171875, -0.0244293212890625, -0.052581787109375, 0.0560302734375, -0.007843017578125, 0.049041748046875, -0.07049560546875, -0.0128173828125, -0.0010528564453125, 0.042083740234375, 0.052703857421875, 0.004627227783203125, 0.00011116266250610352, -0.0047149658203125, 0.063720703125, 0.03973388671875, -0.01085662841796875, 0.0142059326171875, -0.00299072265625, 0.02471923828125, 0.014495849609375, -0.00011867284774780273, 0.059295654296875, -0.0240478515625, -0.05255126953125, 0.0189666748046875, 0.01187896728515625, 0.0234375, 0.00823211669921875, 0.051300048828125, -0.0206451416015625, 0.00601959228515625, 0.0209808349609375, -0.027008056640625, 0.01523590087890625, 0.032196044921875, 0.0411376953125, -0.0643310546875, 0.0166473388671875, -0.041107177734375, 0.047027587890625, -0.00798797607421875, 0.05072021484375, 0.05316162109375, 0.032470703125, 0.06243896484375, -0.010772705078125, 0.0271759033203125, -0.017913818359375, -0.006862640380859375, 0.07244873046875, 0.0343017578125, 0.04144287109375, -0.047088623046875, -0.01007843017578125, 0.050750732421875, 0.08245849609375, -0.04833984375, -0.04278564453125, 0.004100799560546875, 0.006214141845703125, 0.0054779052734375, 0.00582122802734375, -0.002017974853515625, 0.0101776123046875, 0.054046630859375, -0.07208251953125, -0.0011539459228515625, 0.05010986328125, 0.0438232421875, -0.00926971435546875, -0.0311431884765625, -0.040283203125, -0.0229339599609375, -0.048095703125, -0.01239013671875, 0.05133056640625, 0.04058837890625, 0.0227508544921875, 0.03076171875, 0.04296875, -0.0037517547607421875, 0.024871826171875, 0.0065765380859375, -0.051116943359375, -0.0287017822265625, -0.011322021484375, -0.052398681640625, -0.042266845703125, 0.0186767578125, -0.0251617431640625, 0.01212310791015625, 0.0202789306640625, 0.038360595703125, -0.0214996337890625, -0.0267791748046875, 0.043609619140625, -0.0245208740234375, -0.0556640625, -0.0411376953125, 0.0012598037719726562, 0.03369140625, 0.007434844970703125, 0.033111572265625, -0.015838623046875, 0.038726806640625, 0.002719879150390625, 0.036376953125, 0.003910064697265625, 0.004703521728515625, 0.0235137939453125, 0.0016117095947265625, 0.0163726806640625, 0.0355224609375, -0.1065673828125, -0.0080413818359375, -0.0777587890625, -0.004016876220703125, 0.011627197265625, 0.019989013671875, -0.023468017578125, 0.04034423828125, 0.018218994140625, -0.0198822021484375, 0.01194000244140625, -0.0099334716796875, 0.0408935546875, -0.0015859603881835938, -0.005329132080078125, 0.014801025390625, -0.0031948089599609375, 0.0055999755859375, 0.00011247396469116211, 0.02984619140625, 0.03033447265625, -0.0166473388671875, 0.01641845703125, 0.029541015625, 0.002834320068359375, 0.07470703125, -0.08209228515625, -0.0238037109375, 0.05828857421875, -0.04071044921875, 0.01088714599609375, -0.005401611328125, -0.0362548828125, -0.03399658203125, 0.062042236328125, -0.038848876953125, 0.00615692138671875, -0.02703857421875, 0.024658203125, -0.042572021484375, 0.0253448486328125, -0.020416259765625, -0.01122283935546875, -0.044036865234375, -0.020233154296875, 0.0224151611328125, 0.00762939453125, -0.0209503173828125, 0.00606536865234375, 0.03863525390625, -0.034576416015625, 0.01593017578125, 0.0044403076171875, 0.0257568359375, 0.035552978515625, 0.0012826919555664062, 0.024993896484375, 0.00389862060546875, -0.0147705078125, 0.0273895263671875, 0.0206298828125, 0.00704193115234375, 0.008880615234375, -0.0533447265625, -0.018463134765625, 0.032989501953125, 0.030181884765625, -0.01222991943359375, 0.0306396484375, 0.0142822265625, -0.0235443115234375, 0.009490966796875, -0.024688720703125, -0.019561767578125, -0.021240234375, -0.0224609375, 0.0215606689453125, -0.0223541259765625, -0.0264434814453125, -0.057220458984375, -0.025482177734375, 0.0287933349609375, 0.01885986328125, -0.06829833984375, 0.057281494140625, -0.005863189697265625, -0.004608154296875, -0.0141448974609375, -0.01495361328125, -0.0035400390625, 0.00557708740234375, -0.03961181640625, -0.0145416259765625, -0.0282745361328125, -0.002506256103515625, -0.033966064453125, -0.0073089599609375, 0.0203399658203125, -0.006977081298828125, -0.04315185546875, -0.0127716064453125, -0.0338134765625, 0.02716064453125, -0.00739288330078125, 0.00720977783203125, -0.0025501251220703125, 0.01413726806640625, -0.039215087890625, -0.0051116943359375, 0.044769287109375, -0.0048675537109375, -0.07025146484375, -0.0016851425170898438, -0.036376953125, -0.0213623046875, -0.046478271484375, -0.0841064453125, 0.03369140625, -0.0032138824462890625, -0.052093505859375, -0.0285797119140625, 0.01538848876953125, -0.003093719482421875, 0.005710601806640625, -0.00030612945556640625, -0.04388427734375, -0.0173797607421875, 0.0254669189453125, 0.05615234375, 0.01163482666015625, 0.035400390625, 0.02685546875, -0.049346923828125, 0.0170440673828125, -0.0036983489990234375, 0.04840087890625, -0.042327880859375, 0.0391845703125, -0.0303192138671875, 0.00995635986328125, -0.04901123046875, 0.021881103515625, -0.014892578125, 0.043609619140625, 0.0014190673828125, -0.03570556640625, -0.060333251953125, -0.06463623046875, 0.058563232421875, 0.044403076171875, 0.022247314453125, 0.0038547515869140625, 0.004413604736328125, -0.0290985107421875, -0.0411376953125, -0.012786865234375, 0.030120849609375, -0.0628662109375, -0.01549530029296875, 0.01447296142578125, -0.004230499267578125, -0.0257720947265625, -0.0108795166015625, -0.03509521484375, -0.01399993896484375, -0.021148681640625, 0.0230712890625, -0.05029296875, 0.05828857421875, -0.04608154296875, -0.0098114013671875, -0.043487548828125, -0.02093505859375, -0.01512908935546875, -0.0546875, -0.0255126953125, -0.01558685302734375, -0.00797271728515625, -0.0110015869140625, 0.006862640380859375, 0.00833892822265625, 0.0088958740234375, 0.00140380859375, 0.006816864013671875, -0.009796142578125, 0.003787994384765625, 0.005886077880859375, 0.003143310546875, 0.0147857666015625, 0.00027298927307128906, 0.0177764892578125, 0.006580352783203125, 0.01360321044921875, 0.0286865234375, 0.01282501220703125, 0.03387451171875, -0.0157012939453125, -0.0310821533203125, 0.0101165771484375, -0.039764404296875, -0.005123138427734375, 0.006534576416015625, -0.035797119140625, -0.025054931640625, 0.01436614990234375, 0.056121826171875, -0.002727508544921875, 0.01515960693359375 ]
271e652c48de9d95cdfb9fdde5ea4355bc0e3875
Wordpress Stackexchange Q: Remove meta robots tag from wp_head I am in need to remove just this line <meta name=robots content="noindex,follow"/> from wp_head but can't find the right hook to use it with remove_action(). <meta name=robots content="noindex,follow"/> Basically what I want to achieve is to remove just this line from the header but just for the search page. So in this case I would use something similar to: if ( is_search() ) { remove_action('wp_head', 'whatever-the-action-name-is'); } A: add_filter('wpseo_robots', 'yoast_no_home_noindex', 999); function yoast_no_home_noindex($string= "") { if (is_home() || is_front_page()) { $string= "index,follow"; } return $string; } this should be fine i think.. somewhere in your theme functions.php and should do the trick.
Q: Remove meta robots tag from wp_head I am in need to remove just this line <meta name=robots content="noindex,follow"/> from wp_head but can't find the right hook to use it with remove_action(). <meta name=robots content="noindex,follow"/> Basically what I want to achieve is to remove just this line from the header but just for the search page. So in this case I would use something similar to: if ( is_search() ) { remove_action('wp_head', 'whatever-the-action-name-is'); } A: add_filter('wpseo_robots', 'yoast_no_home_noindex', 999); function yoast_no_home_noindex($string= "") { if (is_home() || is_front_page()) { $string= "index,follow"; } return $string; } this should be fine i think.. somewhere in your theme functions.php and should do the trick. A: Based off of your comments on my other answer implying that you explicitly wish to keep "Discourage search engines from indexing this site" enabled, after a more thorough investigation of WordPress core source (particularly default-filters.php), I think this is probably what you were after all along: add_action( 'posts_selection', 'indexSearchPage' ); function indexSearchPage() { // Be sure to include the priority for the action or it won't be removed if( is_search() ) remove_action( 'wp_head', 'noindex', 1 ); } I use the posts_selection action hook as it's the first hook in WordPress's loading routine that has access to conditional tags. You can use later actions up to and including wp_head, but if you use wp_head itself you need to add the action with a priority less than 1 as noindex is added with a priority of 1: add_action( 'wp_head', 'indexSearchPage', -1 ); Alternately, it is possible to conditionally trick WordPress into thinking that "Discourage search engines from indexing this site" is disabled: add_action( 'posts_selection', 'indexSearchPage' ); function indexSearchPage() { if( is_search() ) { $alloptions = wp_load_alloptions(); $alloptions[ 'blog_public' ] = '1'; wp_cache_set( 'alloptions', $alloptions, 'options' ); wp_cache_set( 'blog_public', '1', 'options' ); } } A: I got it, the output is controlled by the WordPress SEO plugin as this is enabled in the site, so I had to tiny hard code in the plugin file class-frontend.php Obviously, I don't like that much this dirty workaround but it works by now outputting that meta in the search page as I want. In the class-frontend.php plugin file I had to replace the line 552 by this if ( is_search() ) { $robots['follow'] = 'nofollow'; } else { $robots['follow'] = 'follow'; } A: I would recommend simply unchecking the "Discourage search engines from indexing this site" box from Settings > Reading on the dashboard (this should remove the robot-relevant meta-tags from all pages of your site), then manually adding the meta-tag back to your theme's header using conditionals, like so: if( ! is_search() ) echo( '<meta name="robots" content="noindex,nofollow" />' ); You might have to alter the conditions to achieve your desired effect, but I think you get the idea. If you don't care to alter your theme, you could attach it to the wp_head action hook: add_action( 'wp_head', 'noRobots' ); function noRobots() { if( ! is_search() ) echo( '<meta name="robots" content="noindex,nofollow" />' ); } A: Is this what your looking for? if ( is_search() ) { remove_action( 'do_robots', 'do_robots'); }
wordpress
{ "language": "en", "length": 514, "provenance": "stackexchange_00019.jsonl.gz:442775", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136220" }
[ 0.034454345703125, -0.009002685546875, 0.01387786865234375, 0.04168701171875, 0.0139617919921875, -0.05474853515625, 0.10052490234375, -0.039276123046875, 0.006977081298828125, 0.020233154296875, 0.0076751708984375, 0.015228271484375, -0.0140228271484375, -0.01953125, -0.00160980224609375, -0.0164031982421875, 0.03167724609375, -0.0172882080078125, 0.04241943359375, 0.01468658447265625, -0.00007110834121704102, 0.046356201171875, 0.03460693359375, -0.0141448974609375, 0.025299072265625, -0.091796875, 0.06573486328125, 0.0041961669921875, 0.00904083251953125, -0.023040771484375, 0.0217132568359375, 0.0362548828125, 0.0178680419921875, -0.0218505859375, 0.0261993408203125, -0.019866943359375, -0.040863037109375, 0.01617431640625, 0.01373291015625, -0.041015625, 0.0103912353515625, -0.01434326171875, -0.017669677734375, -0.006931304931640625, -0.0293731689453125, -0.00881195068359375, 0.01287078857421875, 0.00010257959365844727, 0.0190887451171875, 0.0053558349609375, -0.002773284912109375, 0.040313720703125, 0.01461029052734375, -0.0765380859375, -0.0016193389892578125, 0.005466461181640625, -0.03521728515625, -0.028656005859375, 0.00628662109375, 0.041168212890625, 0.05279541015625, 0.005794525146484375, -0.015655517578125, 0.00628662109375, -0.020416259765625, -0.00972747802734375, -0.053680419921875, -0.006839752197265625, -0.05645751953125, -0.01088714599609375, 0.0523681640625, -0.044769287109375, -0.006183624267578125, 0.0175323486328125, -0.0150146484375, -0.038238525390625, -0.009368896484375, -0.044769287109375, 0.042694091796875, 0.0183258056640625, 0.020538330078125, -0.053192138671875, -0.0171051025390625, -0.00688934326171875, 0.0438232421875, 0.047119140625, 0.0022735595703125, -0.01522064208984375, -0.047210693359375, -0.0272216796875, -0.043548583984375, -0.031494140625, -0.018035888671875, -0.037384033203125, -0.034912109375, -0.00844573974609375, 0.01151275634765625, 0.038970947265625, -0.0177001953125, -0.012542724609375, 0.026336669921875, -0.0406494140625, -0.003604888916015625, -0.02935791015625, 0.030120849609375, 0.062408447265625, -0.020904541015625, -0.005695343017578125, 0.055908203125, 0.010101318359375, 0.024017333984375, 0.00848388671875, -0.0203094482421875, 0.019775390625, -0.052337646484375, 0.009765625, -0.044464111328125, -0.0182952880859375, -0.0240631103515625, -0.0121612548828125, 0.00714111328125, 0.01149749755859375, 0.021392822265625, -0.013458251953125, 0.036285400390625, 0.029144287109375, -0.02435302734375, -0.02777099609375, 0.037811279296875, -0.0137786865234375, -0.033905029296875, 0.01552581787109375, 0.048370361328125, 0.0233917236328125, 0.00020837783813476562, -0.01421356201171875, 0.029144287109375, 0.003879547119140625, -0.00829315185546875, 0.01544189453125, -0.0008749961853027344, -0.0498046875, -0.0189208984375, -0.0017805099487304688, 0.0116119384765625, -0.01244354248046875, 0.0167694091796875, 0.049957275390625, 0.01523590087890625, 0.01126861572265625, -0.0094757080078125, 0.004791259765625, 0.01071929931640625, 0.0230560302734375, -0.0190887451171875, -0.00913238525390625, 0.057861328125, -0.05023193359375, -0.0269927978515625, -0.06591796875, -0.0172271728515625, 0.011260986328125, 0.05133056640625, -0.036865234375, -0.047088623046875, -0.02197265625, -0.0321044921875, 0.0030536651611328125, 0.0160369873046875, -0.0174407958984375, 0.025299072265625, -0.0006055831909179688, 0.0014715194702148438, 0.0009784698486328125, 0.01200103759765625, -0.0015630722045898438, -0.007137298583984375, 0.038970947265625, -0.00445556640625, 0.014404296875, 0.007114410400390625, -0.038482666015625, 0.03485107421875, 0.0014085769653320312, -0.08160400390625, 0.071044921875, 0.007732391357421875, 0.0865478515625, 0.00949859619140625, 0.0085906982421875, 0.060791015625, 0.00937652587890625, 0.0033702850341796875, -0.01174163818359375, 0.01218414306640625, -0.021636962890625, 0.004062652587890625, -0.018798828125, 0.01280975341796875, 0.0094146728515625, 0.01059722900390625, 0.035186767578125, -0.0097503662109375, 0.0079193115234375, -0.042022705078125, 0.0281219482421875, -0.025360107421875, 0.037017822265625, -0.052032470703125, 0.005100250244140625, 0.028717041015625, -0.0234832763671875, -0.036865234375, 0.032379150390625, 0.0138702392578125, -0.024261474609375, -0.01261138916015625, 0.034515380859375, 0.0244293212890625, 0.0147857666015625, 0.054931640625, -0.03125, 0.050048828125, -0.0038471221923828125, 0.072021484375, 0.005413055419921875, -0.043609619140625, -0.0245513916015625, 0.0413818359375, 0.01058197021484375, -0.0699462890625, 0.05279541015625, 0.019866943359375, 0.04840087890625, 0.005931854248046875, 0.0030651092529296875, 0.034637451171875, -0.07965087890625, 0.00255584716796875, 0.03326416015625, 0.03662109375, 0.00611114501953125, -0.007564544677734375, 0.01206207275390625, 0.05572509765625, -0.01526641845703125, 0.00786590576171875, 0.004047393798828125, 0.0013942718505859375, -0.035125732421875, -0.01116943359375, -0.027130126953125, 0.0623779296875, -0.0016145706176757812, 0.0244598388671875, 0.0361328125, -0.0308074951171875, -0.036407470703125, -0.01076507568359375, -0.0171051025390625, 0.0240020751953125, -0.0343017578125, -0.047119140625, 0.0111541748046875, 0.0185699462890625, -0.029266357421875, 0.015960693359375, 0.0101318359375, -0.0274505615234375, -0.0222015380859375, 0.0462646484375, 0.052886962890625, -0.012786865234375, 0.06451416015625, 0.06298828125, 0.01200103759765625, -0.0236358642578125, -0.0190582275390625, -0.0275115966796875, 0.03997802734375, -0.0037078857421875, 0.03448486328125, 0.0176849365234375, -0.01033782958984375, 0.01059722900390625, -0.028045654296875, 0.0123748779296875, -0.0179595947265625, 0.034210205078125, 0.00383758544921875, 0.00551605224609375, 0.0113372802734375, -0.02398681640625, 0.055450439453125, 0.033935546875, -0.026336669921875, 0.011077880859375, -0.0302276611328125, 0.0218658447265625, -0.0212860107421875, 0.051544189453125, 0.0577392578125, -0.0216217041015625, 0.0214080810546875, -0.01497650146484375, 0.004138946533203125, 0.0087738037109375, -0.0016775131225585938, -0.029266357421875, 0.0108795166015625, -0.08642578125, -0.020263671875, 0.013458251953125, -0.0159149169921875, 0.036407470703125, -0.034210205078125, 0.03533935546875, -0.0018415451049804688, -0.05609130859375, -0.052978515625, 0.040008544921875, 0.005870819091796875, -0.0504150390625, 0.01605224609375, -0.0242767333984375, -0.0094451904296875, 0.02081298828125, -0.01204681396484375, -0.00290679931640625, -0.020965576171875, -0.042755126953125, -0.0157318115234375, -0.020660400390625, 0.0167083740234375, -0.0055999755859375, -0.00797271728515625, 0.003871917724609375, 0.02838134765625, 0.015106201171875, -0.0022945404052734375, 0.03485107421875, -0.00017535686492919922, -0.0066986083984375, -0.0011348724365234375, -0.0213470458984375, -0.0223236083984375, -0.00879669189453125, -0.00659942626953125, -0.04486083984375, -0.00701141357421875, 0.024627685546875, -0.01326751708984375, -0.019317626953125, -0.015289306640625, 0.005634307861328125, 0.002986907958984375, 0.0047454833984375, -0.0222015380859375, -0.00736236572265625, -0.05023193359375, -0.008514404296875, -0.006103515625, -0.023101806640625, 0.028106689453125, 0.0128631591796875, -0.01806640625, -0.00888824462890625, 0.0285186767578125, 0.08148193359375, 0.031707763671875, 0.036773681640625, 0.01715087890625, -0.0021228790283203125, 0.021087646484375, 0.05963134765625, -0.07244873046875, 0.031768798828125, 0.00406646728515625, 0.023956298828125, 0.0084991455078125, 0.024261474609375, -0.024322509765625, 0.04888916015625, -0.0675048828125, 0.0311126708984375, 0.0209808349609375, -0.017913818359375, 0.042083740234375, -0.0211029052734375, -0.0127410888671875, -0.03143310546875, 0.05419921875, -0.04388427734375, -0.036590576171875, -0.0087890625, 0.0193023681640625, 0.021942138671875, -0.0219879150390625, 0.03619384765625, -0.027313232421875, -0.13818359375, 0.012481689453125, -0.02386474609375, -0.038818359375, -0.01448822021484375, -0.02490234375, -0.06243896484375, -0.072021484375, 0.04058837890625, -0.004589080810546875, -0.0126190185546875, 0.00623321533203125, -0.026580810546875, -0.02032470703125, -0.040313720703125, -0.0104827880859375, -0.006488800048828125, -0.01036834716796875, -0.0239715576171875, 0.04736328125, 0.017791748046875, 0.01227569580078125, -0.0257110595703125, 0.0251312255859375, 0.00771331787109375, -0.022491455078125, -0.0079193115234375, -0.022216796875, -0.02813720703125, 0.03460693359375, -0.0144500732421875, -0.01324462890625, -0.0173797607421875, 0.0224151611328125, -0.0333251953125, 0.058349609375, 0.0006122589111328125, 0.00916290283203125, 0.0394287109375, -0.020660400390625, -0.05181884765625, -0.044647216796875, -0.019622802734375, 0.0171051025390625, -0.002288818359375, -0.0003402233123779297, -0.062103271484375, -0.057464599609375, 0.041778564453125, -0.003452301025390625, -0.017333984375, -0.00949859619140625, 0.041748046875, 0.019500732421875, -0.0302581787109375, 0.0198211669921875, 0.0016498565673828125, 0.0202178955078125, 0.005374908447265625, 0.0272216796875, -0.0300445556640625, -0.01143646240234375, 0.05694580078125, -0.034820556640625, -0.0210418701171875, -0.0005245208740234375, 0.005283355712890625, 0.0007281303405761719, -0.05474853515625, 0.031585693359375, -0.021636962890625, 0.0242919921875, -0.0157928466796875, 0.0108795166015625, -0.0264129638671875, 0.021575927734375, 0.01485443115234375, -0.01399993896484375, 0.041168212890625, 0.0228424072265625, -0.01031494140625, 0.0147552490234375, 0.03863525390625, -0.0229034423828125, 0.01258087158203125, -0.00452423095703125, -0.042724609375, -0.050445556640625, 0.0306854248046875, -0.05145263671875, 0.0056915283203125, -0.0877685546875, 0.040985107421875, -0.036895751953125, -0.0277099609375, -0.01325225830078125, -0.005069732666015625, 0.009735107421875, -0.01406097412109375, -0.0450439453125, 0.02447509765625, -0.0022525787353515625, 0.056121826171875, 0.03424072265625, 0.0303802490234375, 0.057037353515625, 0.028045654296875, -0.0169219970703125, -0.0059356689453125, 0.01312255859375, 0.005413055419921875, -0.057647705078125, -0.0198516845703125, 0.00716400146484375, -0.01448822021484375, -0.010650634765625, 0.0390625, 0.0181427001953125, 0.010040283203125, -0.020782470703125, -0.052764892578125, -0.039947509765625, 0.0181884765625, 0.0113067626953125, -0.02606201171875, 0.018096923828125, 0.0109710693359375, 0.062164306640625, -0.044677734375, 0.0009455680847167969, 0.057952880859375, 0.05841064453125, 0.0477294921875, -0.01500701904296875, -0.04254150390625, -0.037078857421875, -0.0107421875, 0.0299224853515625, 0.028533935546875, -0.017059326171875, -0.0189361572265625, -0.0138702392578125, -0.015869140625, 0.0003101825714111328, 0.032379150390625, -0.0447998046875, 0.00768280029296875, -0.01253509521484375, 0.0068359375, -0.028167724609375, -0.01983642578125, -0.005199432373046875, -0.0003542900085449219, 0.01336669921875, 0.0213165283203125, -0.0643310546875, -0.043731689453125, -0.0023059844970703125, -0.0189056396484375, 0.0562744140625, -0.0288543701171875, 0.055206298828125, -0.03826904296875, 0.0019407272338867188, 0.01800537109375, 0.018798828125, 0.0107879638671875, 0.01442718505859375, -0.052734375, -0.00222015380859375, -0.032958984375, -0.006572723388671875, -0.0221710205078125, -0.040863037109375, -0.040191650390625, 0.001728057861328125, -0.023681640625, 0.00247955322265625, 0.0024929046630859375, 0.0416259765625, 0.0134735107421875, 0.06475830078125, -0.007205963134765625, 0.046783447265625, -0.0261077880859375, 0.03350830078125, 0.003284454345703125, -0.044891357421875, 0.005035400390625, 0.040985107421875, 0.044921875, -0.01477813720703125, 0.040069580078125, -0.0164337158203125, -0.0482177734375, -0.0601806640625, -0.015777587890625, 0.0181121826171875, 0.0557861328125, -0.0321044921875, -0.00954437255859375, -0.006587982177734375, 0.0074920654296875, -0.0423583984375, -0.0012998580932617188, -0.0130767822265625, 0.00726318359375, -0.04522705078125, 0.0009288787841796875, 0.033477783203125, -0.03521728515625, 0.01511383056640625, 0.0014543533325195312, -0.031463623046875, 0.0246429443359375, -0.011474609375, -0.0323486328125, 0.041107177734375, 0.1005859375, 0.021881103515625, 0.073974609375, 0.01132965087890625, 0.01480865478515625, 0.0400390625, 0.04052734375, -0.03240966796875, -0.046600341796875, 0.045166015625, 0.0241241455078125, -0.0028057098388671875, 0.044189453125, -0.01213836669921875, 0.0245819091796875, -0.01161956787109375, 0.036468505859375, -0.0295562744140625, 0.0271453857421875, 0.03900146484375, 0.0189361572265625, 0.041595458984375, 0.01161956787109375, -0.01332855224609375, -0.0457763671875, 0.01611328125, 0.039276123046875, -0.0026454925537109375, 0.02606201171875, 0.04248046875, -0.027984619140625, -0.028289794921875, -0.03411865234375, 0.0015134811401367188, 0.0280914306640625, -0.0007171630859375, 0.00414276123046875, -0.00865936279296875, -0.017486572265625, 0.0016164779663085938, 0.044830322265625, -0.0341796875, -0.06671142578125, 0.0280609130859375, 0.025726318359375, -0.034210205078125, 0.027099609375, 0.0279693603515625, -0.0020389556884765625, 0.004619598388671875, 0.018463134765625, -0.01128387451171875, -0.03753662109375, -0.0255279541015625, 0.01088714599609375, -0.0312042236328125, -0.002513885498046875, -0.0194091796875, 0.00801849365234375, 0.0192413330078125, 0.01033782958984375, -0.060516357421875, -0.02020263671875, -0.05615234375, 0.07745361328125, -0.0177764892578125, -0.0213623046875, 0.0014886856079101562, 0.022491455078125, 0.0152130126953125, 0.006595611572265625, 0.05010986328125, -0.046905517578125, -0.035552978515625, 0.01153564453125, -0.0279998779296875, -0.0209197998046875, -0.01534271240234375, -0.07965087890625, 0.06732177734375, 0.01849365234375, 0.044952392578125, -0.0179290771484375, 0.0239715576171875, -0.0086517333984375, 0.00600433349609375, -0.0117645263671875, 0.06201171875, 0.00495147705078125, 0.03125, 0.01409912109375, -0.0014247894287109375, 0.03253173828125, 0.023040771484375, 0.039703369140625, 0.0192718505859375, 0.00598907470703125, -0.017120361328125, 0.00817108154296875, 0.0284271240234375, -0.01457977294921875, 0.007472991943359375, -0.022979736328125, -0.00024259090423583984, 0.0056304931640625, -0.0716552734375, -0.0001958608627319336, -0.0193634033203125, -0.01403045654296875, -0.0092620849609375, 0.018646240234375, 0.0005269050598144531, -0.021148681640625, 0.0019073486328125, -0.0335693359375, -0.01090240478515625, 0.0163421630859375, 0.0247344970703125, 0.0038604736328125, 0.0207061767578125, 0.00787353515625, -0.030181884765625, -0.0246429443359375, -0.013397216796875, 0.04046630859375, 0.004276275634765625, 0.039642333984375, 0.0213623046875, 0.0197906494140625, 0.0743408203125, -0.01561737060546875, 0.0118560791015625, 0.0241546630859375, -0.0111083984375, 0.051910400390625, 0.0249481201171875, 0.0173187255859375, -0.01039886474609375, 0.07427978515625, 0.02728271484375, 0.0428466796875, -0.057281494140625, -0.03302001953125, -0.00922393798828125, -0.014190673828125, 0.0404052734375, -0.0267333984375, 0.031280517578125, -0.0286407470703125, -0.01690673828125, 0.0010013580322265625, 0.0196533203125, -0.01495361328125, -0.001087188720703125, 0.01372528076171875, 0.07366943359375, -0.034759521484375, 0.01690673828125, -0.035064697265625, 0.015655517578125, 0.005126953125, 0.0355224609375, 0.0267791748046875, 0.0298614501953125, -0.00904083251953125, -0.012451171875, -0.0296478271484375, 0.06170654296875, -0.027984619140625, 0.026397705078125, -0.05987548828125, -0.05731201171875, -0.004360198974609375, 0.045928955078125, 0.033477783203125, 0.06402587890625, 0.035400390625, 0.002979278564453125, 0.005176544189453125, 0.0311126708984375, 0.0401611328125, -0.0287017822265625, -0.007843017578125, 0.00279998779296875, 0.0207977294921875, 0.035400390625, 0.0115509033203125, -0.036285400390625, 0.055816650390625, 0.031341552734375, 0.0179290771484375, -0.0206756591796875, 0.0010089874267578125, -0.068115234375, 0.0001761913299560547, -0.005878448486328125, 0.02691650390625, 0.031219482421875, 0.00756072998046875, 0.0081634521484375, -0.01361083984375, -0.007793426513671875, -0.004550933837890625, 0.014617919921875, -0.04571533203125, 0.06231689453125, -0.00690460205078125, 0.0049896240234375, 0.0249786376953125, -0.035675048828125, 0.010162353515625, 0.045013427734375, 0.0144195556640625, 0.021148681640625, 0.006664276123046875, -0.006763458251953125, 0.0374755859375, 0.0160369873046875, 0.0002472400665283203, 0.0096282958984375, 0.0011816024780273438, 0.011016845703125, -0.0264739990234375, 0.0261993408203125, -0.00577545166015625, -0.01175689697265625, 0.032440185546875, 0.053314208984375, 0.01093292236328125, -0.04156494140625, -0.003726959228515625, 0.0204925537109375, 0.060577392578125, -0.036468505859375, 0.047637939453125, 0.00909423828125, 0.0003609657287597656, -0.07916259765625, -0.0125885009765625, -0.02691650390625, -0.05902099609375, -0.08099365234375, -0.0162811279296875, 0.045379638671875, 0.049896240234375, -0.035736083984375, 0.01474761962890625, 0.00942230224609375, 0.0025348663330078125, 0.023223876953125, 0.00936126708984375, 0.0302886962890625, 0.02764892578125, -0.01306915283203125, 0.040252685546875, 0.0048980712890625, -0.0216064453125, 0.0248870849609375, 0.000995635986328125, -0.0194091796875, 0.018707275390625, 0.0157470703125, -0.0293426513671875, -0.01215362548828125, 0.015380859375, -0.002109527587890625, -0.00115203857421875, -0.0186614990234375, -0.004268646240234375, -0.02227783203125, -0.02490234375, -0.0290069580078125, -0.027496337890625, -0.02532958984375, 0.0185699462890625, -0.04974365234375, -0.0439453125, -0.06256103515625, -0.0005340576171875, 0.01788330078125, 0.0166168212890625, -0.037994384765625, 0.02520751953125, -0.0130462646484375, -0.001979827880859375, 0.014373779296875, 0.0238037109375, -0.0205841064453125, 0.04034423828125, -0.020233154296875, -0.016845703125, -0.0323486328125, 0.0227203369140625, -0.041351318359375, -0.0479736328125, -0.019073486328125, 0.039306640625, -0.0045623779296875, -0.061431884765625, -0.04754638671875, -0.0177001953125, -0.006092071533203125, -0.0267791748046875, -0.0183868408203125, 0.008392333984375, -0.00807952880859375, -0.04058837890625, -0.00011873245239257812, -0.0277862548828125, -0.0377197265625, 0.01403045654296875, -0.0247650146484375, -0.01277923583984375, -0.039276123046875, -0.07464599609375, 0.01375579833984375, -0.0035343170166015625, -0.04412841796875, -0.0036182403564453125, -0.0216827392578125, 0.0298004150390625, -0.03173828125, -0.0128021240234375, 7.152557373046875e-7, -0.062103271484375, -0.0002598762512207031, 0.00882720947265625, 0.050537109375, -0.01377105712890625, 0.026275634765625, 0.035400390625, 0.054351806640625, 0.034271240234375, -0.033843994140625, -0.007350921630859375, 0.0236358642578125, 0.0176849365234375, 0.03497314453125, -0.038604736328125, 0.047393798828125, -0.021331787109375, 0.0028934478759765625, -0.0199432373046875, -0.0066070556640625, -0.0184783935546875, 0.027679443359375, 0.062103271484375, 0.06976318359375, 0.01332855224609375, -0.07318115234375, -0.016815185546875, 0.004543304443359375, -0.03033447265625, -0.038055419921875, 0.026885986328125, -0.08050537109375, -0.0380859375, 0.006168365478515625, -0.024993896484375, -0.0117645263671875, -0.017364501953125, -0.04547119140625, 0.000023126602172851562, 0.016143798828125, 0.02203369140625, -0.005893707275390625, 0.0251007080078125, 0.00214385986328125, -0.029632568359375, -0.0056915283203125, -0.006168365478515625, -0.00797271728515625, -0.004299163818359375, -0.00981903076171875, -0.00539398193359375, -0.01177215576171875, 0.005001068115234375, 0.028533935546875, 0.01324462890625, 0.01087188720703125, -0.0211029052734375, -0.02496337890625, -0.006633758544921875, 0.044952392578125, 0.0092315673828125, 0.060211181640625, -0.02618408203125, 0.0210113525390625, 0.0009336471557617188, 0.013214111328125, -0.007335662841796875, 0.01641845703125, -0.02734375, 0.03692626953125, 0.023223876953125, -0.02630615234375, 0.072265625, -0.00513458251953125, 0.00701904296875, -0.040313720703125, 0.043304443359375, -0.05523681640625, 0.03033447265625, -0.0130462646484375, -0.000019550323486328125, 0.035675048828125 ]
2830289896f0376ede5349819391fc207d861649
Wordpress Stackexchange Q: Dash or underscore in theme folder name? I'm confused and I didn't find any answer by Googling. My theme files such as single.php or header.php reside in a folder. Should I use dashes or underscores in the folder name? My web server run on Linux / Apache and I'm not sure what the consequences are regarding folder names. So should I prefer something like my_wordpress_theme_folder over my-wordpress-theme-folder or are both equally valid? A: For directories it's personal preference (you can use spaces, too... not really recommended, though). Wordpress convention seems to be dashes, though. Especially because Wordpress does use dashes for special files. For instance when you are making page templates, you can make a file called "page-special" and the template will load automatically for the page name "special". (e.g website.com/special)
Q: Dash or underscore in theme folder name? I'm confused and I didn't find any answer by Googling. My theme files such as single.php or header.php reside in a folder. Should I use dashes or underscores in the folder name? My web server run on Linux / Apache and I'm not sure what the consequences are regarding folder names. So should I prefer something like my_wordpress_theme_folder over my-wordpress-theme-folder or are both equally valid? A: For directories it's personal preference (you can use spaces, too... not really recommended, though). Wordpress convention seems to be dashes, though. Especially because Wordpress does use dashes for special files. For instance when you are making page templates, you can make a file called "page-special" and the template will load automatically for the page name "special". (e.g website.com/special) A: In short, there is no well defined convention for naming a theme's directory, and all of the following are valid (among others): * *my_wordpress_theme *my-wordpress-theme (empirically the most popular option within the ecosystem) *MyWordPressTheme *mywordpresstheme (what the default themes use) Details The WordPress PHP Coding Standards Handbook states that filenames should be all lowercase and hyphen-separated. As Squish points out, various routines in the WordPress Template Hierarchy rely on this convention in order to auto-load templates for certain situations. All of that said, you will not break Linux or Apache by using underscores instead of hyphens (though you will break conventionally loaded files in the template hierarchy). Directories don't seem to have any well-defined conventions, but as a rule of thumb avoid spaces in all of your names. Dots may or may not have undesired effects in directory names, particularly as *NIX conventions traditionally handle directories beginning with a dot as "hidden." As the WP_Theme class's scandir() function makes direct use of PHP's scandir() followed by is_dir() in order to enumerate the individual themes in a directory rather than testing the naming conventions of entries, it shouldn't actually matter what your directories are named as WordPress itself largely ignores the directory name for this purpose. You can read the comments on the is_dir() page for some specific caveats. More than anything, ensure that your directory names work in URL-format and are navigable by a web-browser. The themes packaged with WordPress use a directory naming convention of all lowercase letters and no punctuation, i.e. twentytwelve, twentythirteen, etc. A: They're both valid for folder names. Most examples you will come across will have dashes, but I've found some generators use underscores because of issues with JavaScript and dashes. That's also a generalization, since https://github.com/yeoman/generator-backbone/issues/2 sticks with dashes. A: Well, You just can not leave space for the theme name but the following usages are correct.... "MyThemesName" "my-theme-name" "my_theme_name" Thanks Sabbir
wordpress
{ "language": "en", "length": 451, "provenance": "stackexchange_00019.jsonl.gz:442778", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136229" }
[ 0.01885986328125, -0.00914764404296875, 0.0031871795654296875, -0.0059051513671875, -0.01226043701171875, -0.0102691650390625, 0.0218505859375, -0.020294189453125, -0.0248870849609375, 0.0380859375, 0.021331787109375, -0.004665374755859375, 0.056732177734375, -0.040802001953125, 0.031280517578125, 0.00931549072265625, 0.00568389892578125, -0.0107574462890625, 0.02703857421875, -0.01294708251953125, 0.024749755859375, -0.00037169456481933594, 0.0018138885498046875, -0.0236663818359375, 0.026092529296875, -0.0211181640625, 0.050048828125, -0.03228759765625, 0.0020732879638671875, -0.0384521484375, 0.018798828125, 0.0433349609375, 0.0216064453125, 0.0303192138671875, 0.01318359375, 0.09173583984375, -0.010223388671875, 0.0281524658203125, 0.0518798828125, -0.0109405517578125, 0.0086669921875, 0.005462646484375, 0.07470703125, 0.041839599609375, 0.0287628173828125, -0.06884765625, 0.036041259765625, -0.06488037109375, 0.035614013671875, -0.055755615234375, 0.0125579833984375, 0.049560546875, 0.036376953125, -0.061798095703125, -0.03436279296875, 0.006046295166015625, -0.0191497802734375, 0.0172271728515625, 0.0467529296875, -0.04248046875, -0.041351318359375, -0.021270751953125, 0.039886474609375, -0.0004906654357910156, -0.00849151611328125, -0.003910064697265625, -0.0137176513671875, 0.031158447265625, -0.047119140625, -0.0296783447265625, 0.017669677734375, -0.0302276611328125, 0.01280975341796875, -0.032684326171875, 0.006381988525390625, 0.00678253173828125, -0.002277374267578125, 0.0002541542053222656, 0.01001739501953125, 0.0017976760864257812, 0.00055694580078125, -0.042694091796875, 0.0032863616943359375, -0.045013427734375, 0.0423583984375, 0.01073455810546875, -0.004817962646484375, 0.002300262451171875, -0.0244293212890625, -0.0012416839599609375, -0.02496337890625, 0.006351470947265625, 0.0093841552734375, 0.019012451171875, -0.016021728515625, -0.000904083251953125, 0.019287109375, 0.03436279296875, -0.01503753662109375, 0.0153961181640625, 0.005069732666015625, -0.0273895263671875, 0.024169921875, -0.04254150390625, 0.003173828125, 0.044769287109375, -0.01055145263671875, 0.0289764404296875, 0.04693603515625, 0.0282440185546875, 0.00405120849609375, 0.0127410888671875, -0.002536773681640625, -0.0628662109375, -0.01076507568359375, 0.05029296875, -0.0185394287109375, 0.02783203125, 0.0316162109375, 0.040252685546875, 0.0252685546875, 0.044891357421875, 0.0220184326171875, -0.037994384765625, -0.020751953125, -0.008697509765625, -0.0202178955078125, -0.058807373046875, -0.01146697998046875, 0.072021484375, 0.0028705596923828125, -0.028106689453125, -0.045745849609375, -0.00894927978515625, -0.029754638671875, -0.039947509765625, 0.013153076171875, 0.005641937255859375, -0.0065765380859375, 0.00594329833984375, 0.00536346435546875, -0.03094482421875, 0.0005064010620117188, -0.018463134765625, -0.00847625732421875, 0.039093017578125, -0.006870269775390625, 0.003810882568359375, 0.004802703857421875, -0.0430908203125, -0.01302337646484375, -0.03216552734375, 0.0565185546875, -0.004901885986328125, -0.059661865234375, -0.044189453125, -0.040618896484375, -0.0175933837890625, -0.0129547119140625, -0.038543701171875, -0.0303497314453125, -0.03277587890625, 0.0308074951171875, -0.044219970703125, -0.0545654296875, 0.056610107421875, -0.02838134765625, -0.0028629302978515625, -0.0029544830322265625, -0.023223876953125, -0.0643310546875, -0.00975799560546875, 0.017852783203125, -0.00675201416015625, 0.00388336181640625, 0.04180908203125, 0.002391815185546875, 0.0267486572265625, 0.00030922889709472656, 0.03826904296875, 0.011138916015625, -0.0308685302734375, 0.007354736328125, -0.007415771484375, -0.04833984375, 0.04229736328125, 0.010467529296875, 0.029815673828125, -0.003131866455078125, -0.00299835205078125, 0.057403564453125, 0.0400390625, -0.031646728515625, -0.006290435791015625, 0.00656890869140625, -0.013458251953125, 0.0177154541015625, -0.0014743804931640625, 0.00836181640625, -0.00460052490234375, -0.0184173583984375, -0.0039520263671875, 0.0078887939453125, 0.019561767578125, 0.01983642578125, 0.0025882720947265625, -0.0013132095336914062, 0.007564544677734375, -0.0217132568359375, -0.00279998779296875, 0.01430511474609375, -0.037322998046875, 0.0250244140625, -0.07000732421875, -0.031707763671875, 0.004669189453125, -0.010406494140625, 0.00798797607421875, 0.00075531005859375, 0.049041748046875, 0.0008420944213867188, 0.02392578125, -0.02197265625, -0.006168365478515625, 0.044525146484375, 0.0114593505859375, -0.0276336669921875, -0.026153564453125, 0.0077056884765625, 0.01061248779296875, -0.052032470703125, 0.048309326171875, -0.003330230712890625, 0.0277252197265625, -0.037261962890625, -0.0217132568359375, -0.033355712890625, -0.00904083251953125, 0.008392333984375, 0.049713134765625, 0.021331787109375, 0.04473876953125, -0.01358795166015625, 0.00763702392578125, 0.0261077880859375, -0.025543212890625, 0.00836181640625, -0.01678466796875, -0.00460052490234375, 0.0026702880859375, 0.0152587890625, -0.023529052734375, 0.0213165283203125, -0.0625, -0.02801513671875, 0.040252685546875, -0.068115234375, -0.0517578125, 0.004741668701171875, 0.03558349609375, -0.0004267692565917969, 0.0252227783203125, 0.0418701171875, -0.01395416259765625, -0.004608154296875, 0.0277862548828125, 0.01290130615234375, 0.00957489013671875, -0.019683837890625, 0.0256805419921875, 0.01513671875, -0.042694091796875, -0.007778167724609375, 0.05548095703125, 0.033782958984375, -0.03857421875, -0.0022430419921875, -0.01052093505859375, -0.0300140380859375, 0.00963592529296875, 0.0001571178436279297, 0.01641845703125, -0.006519317626953125, -0.015045166015625, 0.01108551025390625, -0.06500244140625, -0.01116943359375, -0.00174713134765625, 0.0200653076171875, 0.037933349609375, 0.031951904296875, 0.06622314453125, -0.00555419921875, 0.054840087890625, -0.027191162109375, 0.026763916015625, 0.039581298828125, 0.043365478515625, -0.0260162353515625, 0.01312255859375, -0.0130462646484375, 0.0027599334716796875, 0.01220703125, -0.039825439453125, -0.0000591278076171875, 0.038665771484375, 0.04742431640625, -0.0062713623046875, -0.022491455078125, -0.023590087890625, -0.03533935546875, -0.0352783203125, 0.0288238525390625, 0.03662109375, 0.0082550048828125, -0.03173828125, -0.004276275634765625, 0.0308837890625, -0.08221435546875, -0.10546875, 0.033172607421875, -0.032562255859375, 0.01502227783203125, 0.0033016204833984375, -0.01486968994140625, -0.0291290283203125, 0.01155853271484375, -0.00032210350036621094, 0.0290679931640625, -0.0246124267578125, -0.0394287109375, -0.0134429931640625, -0.04083251953125, -0.007053375244140625, -0.003387451171875, -0.01482391357421875, -0.004955291748046875, -0.0016756057739257812, -0.00017201900482177734, -0.022125244140625, 0.006580352783203125, 0.025665283203125, -0.0035610198974609375, -0.0251007080078125, 0.0164947509765625, -0.055389404296875, -0.01001739501953125, -0.0034732818603515625, 0.014251708984375, -0.0008559226989746094, 0.00409698486328125, -0.0040283203125, 0.01322174072265625, 0.0099029541015625, -0.005916595458984375, 0.01812744140625, 0.019744873046875, -0.024505615234375, -0.0213775634765625, -0.06207275390625, -0.08343505859375, -0.0060272216796875, -0.07196044921875, 0.042022705078125, 0.060577392578125, -0.00015413761138916016, -0.0096893310546875, 0.0247344970703125, -0.004268646240234375, 0.025970458984375, -0.0548095703125, -0.0232696533203125, 0.04876708984375, 0.01389312744140625, 0.046661376953125, 0.0256805419921875, -0.007694244384765625, -0.04022216796875, 0.0195159912109375, -0.00429534912109375, -0.0181884765625, -0.03118896484375, 0.042694091796875, -0.0157623291015625, -0.0233154296875, 0.022186279296875, -0.06268310546875, 0.0147552490234375, -0.034942626953125, -0.0003070831298828125, -0.018310546875, 0.05224609375, -0.049774169921875, -0.0156707763671875, 0.033203125, 0.0261993408203125, -0.048980712890625, -0.03802490234375, -0.057586669921875, -0.01557159423828125, -0.04046630859375, -0.0026035308837890625, -0.006175994873046875, -0.03448486328125, 0.004238128662109375, -0.060882568359375, -0.020294189453125, -0.0292510986328125, 0.0236663818359375, -0.04620361328125, 0.0251007080078125, 0.01287078857421875, 0.025634765625, -0.024261474609375, -0.0116729736328125, -0.049285888671875, -0.053863525390625, -0.0276336669921875, -0.0018625259399414062, 0.062103271484375, 0.028350830078125, -0.054290771484375, 0.00372314453125, 0.04718017578125, -0.0036563873291015625, 0.035247802734375, -0.00289154052734375, -0.0147552490234375, 0.0210723876953125, 0.05108642578125, 0.021209716796875, 0.010986328125, 0.00616455078125, -0.022552490234375, -0.043731689453125, -0.01061248779296875, -0.023284912109375, 0.0010166168212890625, 0.01355743408203125, -0.03369140625, -0.0154571533203125, -0.0227508544921875, -0.00267791748046875, 0.0260009765625, 0.006671905517578125, 0.005970001220703125, -0.0279388427734375, -0.00418853759765625, 0.044586181640625, 0.0301055908203125, 0.0009012222290039062, -0.000002205371856689453, 0.05694580078125, 0.0079345703125, -0.042388916015625, -0.04345703125, 0.03448486328125, 0.052459716796875, -0.0040283203125, 0.049896240234375, 0.01036834716796875, -0.0303497314453125, 0.07586669921875, 0.010894775390625, -0.025299072265625, 0.02325439453125, -0.002475738525390625, -0.00235748291015625, -0.038604736328125, 0.01068115234375, -0.0107574462890625, 0.03369140625, 0.042266845703125, 0.005825042724609375, -0.00678253173828125, -0.03594970703125, 0.0296630859375, 0.0034847259521484375, -0.01032257080078125, -0.054962158203125, -0.076904296875, 0.018890380859375, -0.006877899169921875, 0.0278778076171875, -0.012420654296875, 0.0158843994140625, 0.061065673828125, 0.071533203125, 0.00555419921875, 0.03875732421875, 0.0489501953125, -0.013885498046875, 0.0224761962890625, 0.030670166015625, -0.01418304443359375, -0.01558685302734375, -0.01465606689453125, 0.0491943359375, 0.0177001953125, -0.029510498046875, 0.016357421875, -0.01776123046875, 0.015899658203125, 0.0171051025390625, 0.0211029052734375, 0.00972747802734375, -0.017852783203125, -0.0389404296875, 0.0006361007690429688, 0.0089263916015625, -0.0290069580078125, -0.0298309326171875, -0.043792724609375, 0.0004258155822753906, -0.027008056640625, -0.00994873046875, 0.0165863037109375, 0.01203155517578125, -0.0245361328125, -0.0134735107421875, -0.00452423095703125, -0.0033283233642578125, 0.0292510986328125, 0.00801849365234375, -0.0227508544921875, 0.0211029052734375, -0.00865936279296875, 0.042205810546875, -0.03448486328125, 0.0092315673828125, 0.031829833984375, 0.047271728515625, -0.0247955322265625, -0.046875, 0.007801055908203125, -0.0310211181640625, 0.00942230224609375, 0.0204620361328125, -0.0284423828125, -0.040374755859375, -0.0081329345703125, 0.0027675628662109375, 0.046630859375, -0.0151824951171875, -0.0352783203125, 0.0285797119140625, -0.034912109375, 0.0321044921875, 0.07177734375, -0.026092529296875, 0.01099395751953125, 0.006511688232421875, -0.01396942138671875, 0.0221099853515625, 0.0479736328125, -0.09295654296875, -0.026214599609375, -0.035614013671875, -0.032806396484375, 0.059600830078125, -0.004245758056640625, 0.043243408203125, -0.0265350341796875, -0.021697998046875, 0.0164947509765625, 0.0023097991943359375, 0.03924560546875, 0.0109405517578125, -0.09173583984375, 0.0223541259765625, -0.05657958984375, 0.007171630859375, 0.0109100341796875, -0.051971435546875, -0.049560546875, -0.027008056640625, -0.0193328857421875, 0.0015821456909179688, -0.00742340087890625, -0.00870513916015625, -0.01363372802734375, 0.042022705078125, 0.0081024169921875, 0.042388916015625, -0.033050537109375, -0.00511932373046875, 0.05487060546875, -0.006732940673828125, 0.00791168212890625, 0.006809234619140625, 0.03497314453125, -0.0301666259765625, 0.00986480712890625, -0.0277862548828125, -0.0113983154296875, -0.0237274169921875, 0.015655517578125, 0.0196685791015625, 0.03204345703125, 0.0018053054809570312, 0.036407470703125, -0.0234375, -0.018798828125, -0.007350921630859375, 0.018951416015625, -0.048095703125, 0.0202178955078125, 0.0178375244140625, 0.0017538070678710938, 0.038726806640625, -0.005664825439453125, -0.031280517578125, 0.04754638671875, -0.00957489013671875, 0.03717041015625, 0.02301025390625, -0.06353759765625, 0.0772705078125, 0.0821533203125, 0.0016422271728515625, 0.0264892578125, -0.020294189453125, -0.004016876220703125, -0.00862884521484375, 0.0064849853515625, -0.0156707763671875, -0.00778961181640625, 0.03759765625, 0.01116943359375, -0.00748443603515625, 0.03094482421875, -0.0212249755859375, -0.0013017654418945312, 0.062744140625, 0.0301971435546875, -0.06475830078125, -0.020355224609375, 0.0030918121337890625, -0.00832366943359375, 0.0242919921875, 0.003520965576171875, -0.016815185546875, -0.0401611328125, 0.042205810546875, -0.0294036865234375, -0.0011453628540039062, 0.006343841552734375, -0.0284423828125, -0.006320953369140625, 0.004852294921875, 0.051849365234375, -0.004207611083984375, -0.023590087890625, -0.047149658203125, 0.024139404296875, -0.047119140625, -0.00936126708984375, 0.006351470947265625, -0.013824462890625, -0.024322509765625, -0.031707763671875, -0.005756378173828125, -0.033477783203125, -0.00615692138671875, 0.0308074951171875, 0.018585205078125, 0.034332275390625, 0.041259765625, 0.004375457763671875, -0.00007033348083496094, 0.0155792236328125, 0.01702880859375, 0.037384033203125, 0.00350189208984375, 0.01178741455078125, 0.0032444000244140625, -0.0321044921875, 0.0037136077880859375, -0.0191497802734375, 0.000751495361328125, -0.0148773193359375, -0.049041748046875, 0.0301055908203125, -0.041168212890625, -0.0013561248779296875, 0.00838470458984375, 0.0109710693359375, 0.0186614990234375, 0.0157012939453125, 0.01055908203125, -0.07012939453125, -0.03375244140625, 0.0245361328125, -0.021636962890625, 0.019927978515625, 0.032135009765625, -0.04351806640625, 0.03875732421875, -0.0137939453125, 0.01354217529296875, -0.01468658447265625, 0.021575927734375, 0.0164947509765625, 0.0147552490234375, -0.00432586669921875, 0.01763916015625, -0.028656005859375, 0.04986572265625, -0.041534423828125, 0.004199981689453125, 0.0113983154296875, 0.033111572265625, 0.048797607421875, 0.0017576217651367188, 0.0036678314208984375, 0.0233612060546875, 0.08514404296875, 0.057159423828125, 0.01180267333984375, 0.01198577880859375, -0.01544952392578125, -0.012603759765625, -0.00914764404296875, 0.00942230224609375, 0.017578125, -0.01136016845703125, -0.06072998046875, 0.007843017578125, 0.0209197998046875, 0.0025959014892578125, 0.0005049705505371094, -0.0282745361328125, -0.042449951171875, 0.006389617919921875, 0.01226043701171875, 0.0297698974609375, -0.02984619140625, 0.035858154296875, 0.040802001953125, -0.05523681640625, -0.0224151611328125, -0.032745361328125, 0.058441162109375, 0.02099609375, 0.0236663818359375, -0.0098419189453125, -0.006732940673828125, 0.0141754150390625, 0.00555419921875, -0.00726318359375, 0.036773681640625, -0.00582122802734375, 0.04315185546875, 0.03680419921875, 0.038604736328125, -0.015838623046875, -0.01517486572265625, 0.01483154296875, 0.048980712890625, -0.033477783203125, 0.00121307373046875, 0.005901336669921875, -0.0092010498046875, -0.016387939453125, -0.054107666015625, -0.0360107421875, 0.019287109375, -0.00022864341735839844, -0.0136566162109375, -0.006465911865234375, 0.0283203125, 0.004390716552734375, -0.00189208984375, -0.007678985595703125, -0.001033782958984375, 0.006381988525390625, -0.0097503662109375, 0.059661865234375, 0.0266571044921875, 0.003482818603515625, -0.05450439453125, 0.04266357421875, -0.016387939453125, 0.01181793212890625, 0.024017333984375, 0.0374755859375, 0.00449371337890625, -0.026519775390625, -0.049346923828125, -0.07373046875, 0.03216552734375, 0.038848876953125, 0.0161590576171875, 0.002696990966796875, 0.022308349609375, 0.0161590576171875, -0.01177215576171875, -0.004337310791015625, -0.0253753662109375, -0.03326416015625, 0.0252685546875, -0.05010986328125, 0.039154052734375, 0.00722503662109375, -0.005970001220703125, -0.00731658935546875, 0.004314422607421875, 0.047821044921875, -0.041748046875, -0.0135955810546875, -0.0107269287109375, -0.025787353515625, 0.042022705078125, -0.027801513671875, 0.0030364990234375, -0.0261383056640625, 0.00702667236328125, -0.0234832763671875, 0.05303955078125, -0.01277923583984375, -0.012451171875, 0.0404052734375, 0.03961181640625, -0.0232391357421875, 0.01264190673828125, 0.024932861328125, -0.03436279296875, -0.00571441650390625, 0.011077880859375, 0.0250396728515625, 0.040496826171875, 0.0509033203125, -0.0216827392578125, -0.01132965087890625, -0.01331329345703125, 0.05242919921875, 0.007083892822265625, 0.0772705078125, -0.035064697265625, 0.0160675048828125, 0.0252838134765625, 0.0119476318359375, -0.031036376953125, 0.0021228790283203125, 0.06634521484375, -0.024932861328125, -0.01161956787109375, -0.0169219970703125, -0.03143310546875, 0.01611328125, 0.0308837890625, -0.042816162109375, 0.0011091232299804688, 0.031402587890625, 0.0185699462890625, -0.0061798095703125, 0.019561767578125, -0.01861572265625, -0.0819091796875, -0.036773681640625, 0.040008544921875, -0.005825042724609375, 0.03643798828125, -0.0072174072265625, 0.005611419677734375, -0.0026683807373046875, -0.03265380859375, 0.02313232421875, -0.024658203125, 0.03582763671875, 0.0224761962890625, 0.0134735107421875, -0.052276611328125, -0.0266265869140625, -0.017791748046875, -0.01316070556640625, 0.0004987716674804688, 0.034088134765625, -0.01529693603515625, -0.052825927734375, -0.01739501953125, 0.04571533203125, 0.0419921875, -0.011077880859375, 0.023162841796875, 0.0231170654296875, -0.017364501953125, 0.04742431640625, -0.01910400390625, -0.0163726806640625, -0.0108184814453125, -0.00946044921875, 0.0254669189453125, -0.0243988037109375, -0.02410888671875, -0.0684814453125, -0.0308685302734375, 0.0174407958984375, -0.00592803955078125, 0.015533447265625, -0.0196380615234375, -0.0141448974609375, -0.021728515625, 0.0100860595703125, 0.0382080078125, -0.0219879150390625, -0.0355224609375, -0.07403564453125, -0.0309906005859375, -0.033966064453125, 0.0213775634765625, -0.01042938232421875, 0.0089874267578125, 0.033172607421875, -0.01153564453125, 0.0361328125, 0.016845703125, 0.00017976760864257812, 0.06390380859375, -0.01351165771484375, -0.017364501953125, 0.0284576416015625, -0.03485107421875, -0.0010232925415039062, -0.06463623046875, -0.0145111083984375, -0.0552978515625, -0.0071258544921875, -0.01401519775390625, 0.0097503662109375, 0.0136260986328125, -0.04449462890625, -0.038787841796875, 0.065185546875, 0.00345611572265625, -0.0189666748046875, -0.0028705596923828125, -0.040985107421875, -0.051300048828125, 0.06414794921875, -0.0026149749755859375, -0.037689208984375, 0.00714874267578125, 0.059539794921875, 0.056365966796875, 0.024444580078125, 0.036712646484375, 0.038482666015625, -0.01438140869140625, 0.045166015625, 0.002635955810546875, 0.03314208984375, -0.01023101806640625, 0.011627197265625, 0.01873779296875, 0.061920166015625, -0.013702392578125, -0.003810882568359375, -0.0078277587890625, -0.038238525390625, -0.026947021484375, -0.05059814453125, -0.0325927734375, -0.0094757080078125, 0.06964111328125, 0.06402587890625, 0.0157012939453125, -0.034881591796875, -0.08306884765625, -0.0870361328125, -0.001346588134765625, -0.0046844482421875, 0.0161285400390625, -0.0867919921875, 0.053863525390625, 0.03985595703125, -0.0173187255859375, 0.0141143798828125, -0.0080108642578125, -0.01461029052734375, 0.0140533447265625, 0.0204315185546875, -0.0141448974609375, 0.005947113037109375, -0.05841064453125, 0.029510498046875, -0.005893707275390625, 0.023529052734375, -0.0212860107421875, 0.0576171875, 0.016265869140625, 0.0190887451171875, 0.0264434814453125, 0.06884765625, -0.049072265625, 0.00921630859375, 0.0144500732421875, 0.051971435546875, -0.053497314453125, -0.0171661376953125, 0.023040771484375, 0.0289154052734375, -0.020660400390625, 0.010589599609375, -0.016326904296875, 0.07342529296875, -0.0289154052734375, 0.1055908203125, -0.011474609375, 0.05047607421875, 0.0058746337890625, 0.04168701171875, -0.0030498504638671875, -0.007770538330078125, 0.0266265869140625, -0.0595703125, -0.0009784698486328125, -0.0006046295166015625, -0.0202484130859375, -0.047332763671875, 0.037353515625, -0.0183563232421875, 0.0015993118286132812, 0.0301971435546875 ]
2b1efbf7b078a5d062d2446bf2d1d79afd411d89
Wordpress Stackexchange Q: Exclude sub category posts from category display I have a post category structure like this: * *news *news / conferences *news / newsletter In Appearance > Menu, I have added 3 menu items. One each for the categories News, Conferences, Newsletter. However, the News page also displays posts from Conferences and Newsletter. How do I exclude posts from subcategories from being displayed in the parent category's page? Thanks A: I rewrote the code from a post at WP Engineer: function wpse_filter_child_cats( $query ) { if ( $query->is_category ) { $queried_object = get_queried_object(); $child_cats = (array) get_term_children( $queried_object->term_id, 'category' ); if ( ! $query->is_admin ) //exclude the posts in child categories $query->set( 'category__not_in', array_merge( $child_cats ) ); } return $query; } add_filter( 'pre_get_posts', 'wpse_filter_child_cats' ); Give it a try by pasting the snippet in your functions.php. Please keep in mind that a post can't belong to both parent category and child category, or you won't get it displayed.
Q: Exclude sub category posts from category display I have a post category structure like this: * *news *news / conferences *news / newsletter In Appearance > Menu, I have added 3 menu items. One each for the categories News, Conferences, Newsletter. However, the News page also displays posts from Conferences and Newsletter. How do I exclude posts from subcategories from being displayed in the parent category's page? Thanks A: I rewrote the code from a post at WP Engineer: function wpse_filter_child_cats( $query ) { if ( $query->is_category ) { $queried_object = get_queried_object(); $child_cats = (array) get_term_children( $queried_object->term_id, 'category' ); if ( ! $query->is_admin ) //exclude the posts in child categories $query->set( 'category__not_in', array_merge( $child_cats ) ); } return $query; } add_filter( 'pre_get_posts', 'wpse_filter_child_cats' ); Give it a try by pasting the snippet in your functions.php. Please keep in mind that a post can't belong to both parent category and child category, or you won't get it displayed. A: Use category__in instead of cat in your query. As you know already, cat will query a category and it's sub categories: $category = get_category (get_query_var('cat')); WP_Query( 'cat'=>$category, 'post_type' => 'post' ); However, when using category__in, you'll will not get results from the subcategory. $category = get_category (get_query_var('cat')); WP_Query( 'category__in'=>$category, 'post_type' => 'post' ); The documentation on querying based on categories is here. A: If you want to include any and all posts that have the category that is currently being queried, you can use the following. This could potentially include posts that have sub/child categories of the queried category, but only if they also have the parent category. It will not include posts that only have a child category. In other words, given the following: * *Category 1 *Category 2, which is a child category of category 2 *Post A, which has category 1 only *Post B, which has category 2 only *Post C, which has both category 1 and category 2 this query will return posts A and C, but not B function cat_query_filter($query) { if (!is_admin() && $query->is_main_query() && is_category()) { $queried_cat_obj = get_queried_object(); $queried_cat_id = $queried_cat_obj->term_id; $query->set('category__in', $queried_cat_id); } } add_action('pre_get_posts', 'cat_query_filter'); The answer provided by @createscape is a good one, but would exclude posts like post B, which may or may not be what you want. So, depending on what you want to be included in your list of results, you could either use that solution or this one. Additional info here: https://developer.wordpress.org/reference/classes/wp_query/#category-parameters A: That works well and prevents posts in child categories from showing up in the parent category listing. However, make sure and have a post in that parent category, or you'll get a not found error if someone clicks on the parent category menu item. A: I wrote my own function in order to exclude subcategory posts from the loop, as I found the code above didn't work for me. In my theme archive.php file, above the loop, I list the subcategories: <?php $current_cat = get_queried_object(); $args = array( 'parent'=>$current_cat->term_id, 'child_of' => $current_cat->term_id, ); $categories = get_categories( $args ); foreach($categories as $category) { ?> <h2><?php echo $category->name ;?></h2> <p> etc....</p> <?php } ?> In my functions.php file, I've added the following custom function using pre_get_posts: add_action( 'pre_get_posts', 'main_query_without_subcategory_posts' ); function main_query_without_subcategory_posts( $query ) { if ( ! is_admin() && $query->is_main_query() ) { // Not a query for an admin page. // It's the main query for a front end page of your site. if ( is_category() ) { //Get the current category $current_category = get_queried_object(); //get the id of the current category $current_cat_id = $current_category->term_id; //find the children of current category $cat_args = array( 'parent'=>$current_category->term_id, 'child_of' => $current_category->term_id, ); $subcategories = get_categories( $cat_args ); //Get a list of subcategory ids, stick a minus sign in front $subcat_id = array(); foreach($subcategories as $subcategory) { $subcat_id[] = " -". $subcategory->term_id; } //join them together as a string with a comma seperator $excludesubcatlist = join(',', $subcat_id); //If you have multiple parameters, use $query->set multiple times $query->set( 'posts_per_page', '10' ); $query->set( 'cat', ''.$current_cat_id.','.$excludesubcatlist.'' ); } } } Then in the archive.php, below the subcategories, I've added the regular WordPress loop which is now being modified by the above function: <?php while (have_posts() ) : the_post(); ?> <h2><?php the_title();?></h2> <p> etc....</p> <?php endwhile;?> Though the WordPress codex says that using "category__in" will exclude posts from subcategories, that didn't work for me and subcategory posts were still showing. https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters https://developer.wordpress.org/reference/hooks/pre_get_posts/ A: Okay, as of 2019 I had to use slightly modified code and it works with any taxonomy. Not only with standard category. I used it with my setup of woocommerce and wp, preventing products from nested categories being displayed in parent cat: add_action('parse_tax_query', 'wpse_filter_child_cats'); function wpse_filter_child_cats( $query ) { if ( is_tax( 'product_cat' ) ) { $queried_object = get_queried_object(); $child_cats = (array) get_term_children( $queried_object->term_id, 'product_cat' ); if ( ! $query->is_admin ) //exclude the posts in child categories { $query->tax_query->queries[] = [ 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => array_merge( $child_cats ), 'operator' => 'NOT IN' ]; } } }
wordpress
{ "language": "en", "length": 831, "provenance": "stackexchange_00019.jsonl.gz:442853", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136486" }
[ 0.048187255859375, 0.01253509521484375, -0.016693115234375, -0.0269927978515625, 0.0238494873046875, -0.056121826171875, 0.06317138671875, -0.0191192626953125, -0.01479339599609375, 0.008636474609375, -0.04547119140625, -0.0215301513671875, -0.033447265625, -0.026458740234375, -0.0215911865234375, -0.0614013671875, 0.016326904296875, -0.023284912109375, 0.02044677734375, -0.01212310791015625, -0.0023670196533203125, -0.0066986083984375, 0.057373046875, -0.0157928466796875, 0.0126953125, -0.007232666015625, 0.049896240234375, -0.01593017578125, -0.01165771484375, -0.04119873046875, 0.0218658447265625, 0.0106201171875, 0.0035648345947265625, 0.0250396728515625, 0.005954742431640625, 0.01004791259765625, -0.00507354736328125, 0.0095062255859375, 0.01403045654296875, 0.026031494140625, -0.01204681396484375, 0.004055023193359375, 0.042205810546875, 0.01383209228515625, 0.005512237548828125, -0.007297515869140625, -0.01050567626953125, -0.0384521484375, 0.0108184814453125, -0.04290771484375, 0.0374755859375, 0.000507354736328125, 0.059844970703125, -0.065185546875, -0.0206756591796875, 0.0253143310546875, -0.0307159423828125, 0.039031982421875, 0.040252685546875, 0.0247650146484375, -0.040679931640625, -0.006195068359375, 0.00018894672393798828, -0.056365966796875, -0.0030879974365234375, 0.004634857177734375, 0.036285400390625, 0.005496978759765625, -0.06695556640625, -0.00476837158203125, 0.061737060546875, -0.042724609375, 0.01314544677734375, -0.028778076171875, -0.03173828125, -0.0122222900390625, 0.0214996337890625, -0.00749969482421875, 0.01788330078125, -0.0323486328125, 0.007312774658203125, 0.01363372802734375, -0.05267333984375, -0.01560211181640625, 0.015869140625, -0.0031986236572265625, -0.0147705078125, -0.01016998291015625, -0.0364990234375, -0.0189056396484375, -0.0183868408203125, -0.053070068359375, -0.077392578125, 0.063232421875, 0.03662109375, -0.004749298095703125, 0.041290283203125, 0.0816650390625, -0.054840087890625, -0.032867431640625, -0.027679443359375, -0.0085906982421875, -0.02899169921875, -0.0300750732421875, 0.039031982421875, 0.033660888671875, -0.044281005859375, 0.0021820068359375, 0.0928955078125, 0.050689697265625, 0.0284271240234375, 0.056884765625, -0.01165771484375, -0.02484130859375, -0.0208587646484375, 0.0528564453125, 0.007904052734375, -0.004650115966796875, 0.001041412353515625, 0.00070953369140625, 0.004108428955078125, 0.0261383056640625, -0.025299072265625, -0.0276947021484375, 0.046142578125, 0.0171661376953125, -0.022918701171875, -0.0016298294067382812, 0.00988006591796875, -0.0194854736328125, -0.051513671875, 0.0235443115234375, 0.09649658203125, 0.03692626953125, 0.0208740234375, -0.01210784912109375, 0.0224151611328125, -0.009735107421875, 0.01934814453125, -0.01971435546875, 0.00341033935546875, -0.0004222393035888672, 0.026153564453125, -0.0027618408203125, -0.0013456344604492188, 0.0255889892578125, 0.004795074462890625, 0.004230499267578125, 0.0111236572265625, -0.0496826171875, 0.0196685791015625, -0.056793212890625, 0.06744384765625, -0.0121612548828125, -0.04119873046875, -0.0404052734375, 0.038726806640625, -0.03826904296875, -0.0333251953125, -0.058502197265625, 0.00783538818359375, 0.00948333740234375, 0.0667724609375, -0.0413818359375, -0.04669189453125, -0.0006442070007324219, -0.09783935546875, -0.02099609375, 0.0271453857421875, -0.006313323974609375, 0.0535888671875, -0.0139923095703125, -0.02032470703125, -0.004543304443359375, 0.006565093994140625, 0.00036644935607910156, -0.037506103515625, -0.01425933837890625, 0.0159149169921875, 0.035675048828125, 0.0004470348358154297, -0.03692626953125, -0.01390838623046875, 0.02093505859375, -0.065185546875, 0.0283660888671875, 0.007266998291015625, 0.01538848876953125, -0.0014190673828125, 0.001804351806640625, 0.06231689453125, 0.06005859375, 0.00594329833984375, -0.02593994140625, 0.0106353759765625, -0.05023193359375, 0.0234527587890625, -0.0213165283203125, 0.0156097412109375, 0.017974853515625, 0.006694793701171875, 0.011444091796875, -0.01047515869140625, -0.0081634521484375, -0.045623779296875, 0.001667022705078125, -0.01097869873046875, 0.030120849609375, -0.017974853515625, 0.024749755859375, 0.0239105224609375, -0.00576019287109375, -0.032318115234375, -0.0279541015625, -0.0111541748046875, 0.0010137557983398438, -0.01123809814453125, -0.00215911865234375, -0.007366180419921875, 0.004856109619140625, 0.0173187255859375, -0.0264129638671875, 0.0036716461181640625, 0.02899169921875, 0.0902099609375, -0.007808685302734375, -0.00058746337890625, -0.034881591796875, 0.06756591796875, 0.028594970703125, -0.10302734375, 0.0150909423828125, 0.054290771484375, 0.032928466796875, -0.0697021484375, 0.012542724609375, -0.006412506103515625, 0.050689697265625, -0.044586181640625, 0.0262298583984375, 0.032989501953125, 0.025543212890625, -0.04827880859375, -0.039825439453125, 0.10406494140625, -0.037445068359375, -0.03192138671875, -0.00424957275390625, -0.00009864568710327148, 0.02880859375, 0.040191650390625, 0.0216522216796875, 0.01166534423828125, 0.0072784423828125, 0.032196044921875, 0.0246734619140625, 0.0223846435546875, -0.0261077880859375, 0.0236053466796875, -0.0189056396484375, 0.04510498046875, -0.009521484375, -0.0894775390625, 0.0258026123046875, 0.0270843505859375, -0.0296478271484375, 0.00200653076171875, -0.01204681396484375, -0.009246826171875, -0.0106048583984375, 0.04046630859375, -0.0413818359375, 0.00925445556640625, 0.01629638671875, 0.007350921630859375, 0.00749969482421875, -0.0257415771484375, -0.00215911865234375, 0.0228271484375, 0.0137176513671875, 0.0007886886596679688, 0.06597900390625, 0.05438232421875, -0.011077880859375, -0.0372314453125, -0.0648193359375, 0.0238037109375, -0.00943756103515625, -0.015960693359375, -0.0018939971923828125, 0.0126495361328125, 0.04449462890625, 0.01560211181640625, -0.0049896240234375, 0.0158843994140625, 0.00337982177734375, -0.01354217529296875, -0.0150299072265625, 0.04815673828125, -0.028228759765625, 0.0002244710922241211, 0.058685302734375, -0.00765228271484375, 0.020111083984375, -0.002346038818359375, 0.0008015632629394531, -0.00873565673828125, 0.02130126953125, 0.0002639293670654297, 0.0007581710815429688, -0.055419921875, -0.0003676414489746094, 0.018646240234375, 0.0159454345703125, 0.0241851806640625, -0.01390838623046875, 0.0285491943359375, 0.022796630859375, -0.0094757080078125, -0.017242431640625, -0.00957489013671875, -0.0355224609375, 0.0056610107421875, 0.0135955810546875, -0.01153564453125, -0.0209197998046875, 0.0157623291015625, 0.00350189208984375, 0.010223388671875, -0.032501220703125, -0.0560302734375, -0.019775390625, -0.03564453125, 0.02789306640625, -0.0059814453125, -0.00426483154296875, 0.006847381591796875, 0.11676025390625, 0.0255889892578125, -0.09356689453125, -0.012542724609375, 0.032806396484375, -0.0301361083984375, 0.03558349609375, 0.0094757080078125, 0.0019140243530273438, 0.0108642578125, 0.026092529296875, 0.022430419921875, 0.01139068603515625, -0.02874755859375, -0.0250091552734375, -0.013458251953125, 0.01544952392578125, 0.0333251953125, -0.0290069580078125, 0.00989532470703125, 0.050567626953125, 0.0290679931640625, -0.0073394775390625, -0.03179931640625, -0.041717529296875, -0.0538330078125, -0.0232086181640625, 0.01244354248046875, 0.0246734619140625, -0.04437255859375, 0.0255584716796875, 0.01227569580078125, -0.0006780624389648438, 0.007221221923828125, -0.02313232421875, 0.03741455078125, 0.002780914306640625, 0.0103302001953125, -0.01551055908203125, 0.0162506103515625, -0.027801513671875, 0.036163330078125, -0.003704071044921875, -0.00928497314453125, -0.0309295654296875, 0.02374267578125, -0.02130126953125, -0.050048828125, 0.026580810546875, -0.04248046875, -0.01259613037109375, -0.041748046875, -0.0029163360595703125, -0.00893402099609375, 0.06243896484375, -0.03631591796875, -0.0219879150390625, -0.03546142578125, 0.005008697509765625, 0.004657745361328125, -0.0633544921875, 0.006565093994140625, -0.0035190582275390625, -0.057342529296875, 0.0035839080810546875, -0.02032470703125, 0.0005431175231933594, -0.0192108154296875, 0.0214996337890625, -0.0255279541015625, -0.033447265625, 0.04852294921875, -0.016876220703125, 0.00004404783248901367, -0.0167999267578125, 0.0078125, -0.04046630859375, -0.028045654296875, 0.00927734375, -0.0256500244140625, 0.0018091201782226562, -0.0187225341796875, -0.003047943115234375, 0.00783538818359375, -0.01953125, -0.0138702392578125, 0.00960540771484375, 0.00872039794921875, -0.0274505615234375, 0.006134033203125, 0.003360748291015625, -0.033172607421875, 0.0325927734375, 0.010284423828125, -0.01336669921875, -0.0120086669921875, -0.021087646484375, 0.0094757080078125, 0.0207672119140625, -0.0290985107421875, 0.0167236328125, -0.01316070556640625, 0.0016574859619140625, -0.031036376953125, -0.03961181640625, -0.040130615234375, -0.0146942138671875, -0.0200653076171875, -0.00716400146484375, -0.04315185546875, -0.0275421142578125, 0.01702880859375, 0.053741455078125, -0.0509033203125, 0.00464630126953125, 0.0162811279296875, 0.026397705078125, -0.034881591796875, -0.056854248046875, -0.006885528564453125, 0.0308074951171875, -0.0261383056640625, 0.049407958984375, 0.020111083984375, -0.024200439453125, 0.0589599609375, -0.0011930465698242188, 0.0157470703125, -0.0099945068359375, 0.057403564453125, -0.0017213821411132812, -0.0282135009765625, 0.024993896484375, -0.0044403076171875, -0.01239776611328125, -0.0189361572265625, -0.00408172607421875, -0.056488037109375, -0.0047607421875, 0.067626953125, 0.0294342041015625, 0.0193634033203125, -0.042999267578125, 0.0182342529296875, -0.0175933837890625, 0.0457763671875, 0.0186309814453125, 0.06402587890625, -0.01197052001953125, -0.01776123046875, 0.0002551078796386719, -0.0008630752563476562, -0.031585693359375, 0.01873779296875, -0.0311279296875, 0.03656005859375, -0.039215087890625, -0.015899658203125, -0.023712158203125, 0.0026111602783203125, -0.012603759765625, -0.003261566162109375, -0.02008056640625, 0.005290985107421875, 0.0115203857421875, 0.031219482421875, 0.0182647705078125, -0.0121002197265625, 0.01568603515625, 0.0264739990234375, -0.007610321044921875, 0.01488494873046875, 0.0073394775390625, -0.00930023193359375, -0.033416748046875, -0.01007080078125, -0.0171966552734375, -0.0031890869140625, 0.0286407470703125, 0.0164947509765625, -0.01422882080078125, 0.027679443359375, -0.0071258544921875, 0.0134124755859375, -0.0076904296875, 0.025665283203125, 0.0091705322265625, 0.003753662109375, 0.0133209228515625, 0.0002524852752685547, 0.029937744140625, -0.0382080078125, -0.047454833984375, 0.0203704833984375, 0.049591064453125, 0.0002741813659667969, -0.0017271041870117188, -0.0009679794311523438, 0.01074981689453125, -0.0282135009765625, 0.0007224082946777344, -0.00023651123046875, 0.0046844482421875, -0.016571044921875, -0.006622314453125, 0.0211334228515625, 0.036590576171875, -0.029815673828125, 0.0102691650390625, -0.0447998046875, -0.00173187255859375, 0.042388916015625, -0.038330078125, 0.01410675048828125, 0.0174560546875, -0.0545654296875, -0.00528717041015625, 0.012969970703125, -0.0173492431640625, -0.04522705078125, 0.005451202392578125, -0.016632080078125, 0.023406982421875, -0.01419830322265625, 0.037384033203125, -0.0193023681640625, -0.0157470703125, 0.0010728836059570312, 0.0052490234375, 0.055023193359375, 0.041229248046875, -0.065673828125, -0.004894256591796875, -0.0570068359375, -0.0211639404296875, -0.04754638671875, -0.0428466796875, -0.06072998046875, 0.010345458984375, -0.00823974609375, -0.0084991455078125, -0.0045013427734375, -0.048065185546875, -0.05548095703125, 0.01316070556640625, 0.051422119140625, -0.04296875, -0.023468017578125, 0.09259033203125, -0.0292510986328125, 0.039398193359375, -0.007221221923828125, 0.0163726806640625, -0.01495361328125, 0.003917694091796875, -0.0164947509765625, -0.076416015625, -0.0053253173828125, 0.039520263671875, -0.0513916015625, 0.021209716796875, 0.0234375, 0.0116729736328125, 0.00823974609375, -0.005565643310546875, 0.002193450927734375, -0.0240020751953125, -0.01678466796875, -0.017852783203125, -0.0028438568115234375, 0.003093719482421875, -0.007106781005859375, 0.04302978515625, -0.0221405029296875, -0.027557373046875, 0.017486572265625, -0.020751953125, 0.0205535888671875, 0.037109375, -0.01214599609375, 0.044525146484375, 0.04742431640625, 0.00914764404296875, 0.045135498046875, 0.0204925537109375, 0.0284423828125, -0.007228851318359375, 0.006145477294921875, 0.018646240234375, 0.006275177001953125, 0.0439453125, -0.00036144256591796875, -0.0036106109619140625, 0.0225830078125, -0.03277587890625, -0.06463623046875, 0.01171112060546875, -0.01227569580078125, -0.023468017578125, -0.007640838623046875, -0.002353668212890625, 0.024078369140625, -0.01552581787109375, 0.007366180419921875, -0.01094818115234375, 0.016998291015625, -0.0186614990234375, -0.01110076904296875, -0.0377197265625, -0.005611419677734375, 0.0113372802734375, -0.01348876953125, 0.0117340087890625, 0.03350830078125, 0.0211181640625, -0.01219940185546875, -0.025115966796875, 0.000911712646484375, -0.005275726318359375, -0.026153564453125, 0.00507354736328125, -0.00318145751953125, -0.0228118896484375, -0.06671142578125, -0.0039005279541015625, 0.0141143798828125, -0.007389068603515625, 0.0148162841796875, -0.02593994140625, -0.01220703125, 0.0535888671875, -0.04742431640625, 0.02557373046875, 0.0174407958984375, -0.0665283203125, 0.00968170166015625, 0.01134490966796875, -0.0005502700805664062, 0.0120849609375, -0.049774169921875, -0.0009388923645019531, -0.044189453125, 0.03338623046875, -0.0012950897216796875, -0.01617431640625, 0.05255126953125, -0.035552978515625, -0.01424407958984375, 0.01441192626953125, 0.0163726806640625, 0.005657196044921875, -0.01273345947265625, 0.026031494140625, -0.00820159912109375, 0.0033550262451171875, 0.006786346435546875, 0.0157928466796875, -0.0170440673828125, -0.015716552734375, -0.07171630859375, 0.07061767578125, -0.06341552734375, 0.0849609375, 0.0288848876953125, 0.0059051513671875, 0.007282257080078125, -0.0071868896484375, -0.051910400390625, 0.07879638671875, 0.0692138671875, 0.0548095703125, -0.044952392578125, -0.028564453125, 0.0301666259765625, 0.05718994140625, 0.0360107421875, -0.00591278076171875, -0.01898193359375, -0.01500701904296875, 0.03973388671875, 0.051483154296875, 0.007350921630859375, 0.0215911865234375, -0.004283905029296875, -0.05059814453125, 0.010650634765625, 0.0230865478515625, 0.04217529296875, -0.01528167724609375, -0.0178985595703125, 0.015625, 0.0189971923828125, 0.033477783203125, -0.0063018798828125, 0.0200042724609375, 0.04632568359375, -0.0213775634765625, -0.0234527587890625, -0.034149169921875, 0.015716552734375, 0.034820556640625, 0.0242156982421875, -0.06402587890625, -0.00415802001953125, -0.03619384765625, 0.048797607421875, 0.005863189697265625, 0.066162109375, 0.0181427001953125, 0.02728271484375, 0.052825927734375, 0.01560211181640625, 0.04437255859375, 0.0350341796875, -0.05120849609375, 0.00024771690368652344, 0.03106689453125, 0.0265350341796875, -0.0182952880859375, 0.0170745849609375, 0.061492919921875, 0.01194000244140625, -0.029876708984375, -0.048583984375, 0.01395416259765625, 0.00203704833984375, -0.0112762451171875, 0.01959228515625, 0.002925872802734375, 0.0291748046875, 0.06268310546875, -0.04278564453125, -0.00884246826171875, 0.0302581787109375, 0.042816162109375, 0.00043272972106933594, -0.002170562744140625, -0.0209503173828125, -0.026519775390625, -0.037384033203125, -0.0203704833984375, 0.032196044921875, 0.076416015625, 0.043304443359375, 0.0428466796875, -0.0186920166015625, -0.045684814453125, 0.0177459716796875, -0.0072021484375, -0.009033203125, -0.0169525146484375, 0.0038700103759765625, -0.0196075439453125, 0.01306915283203125, 0.01175689697265625, -0.0015096664428710938, 0.0201873779296875, 0.053436279296875, 0.06280517578125, -0.046478271484375, -0.0238800048828125, 0.036773681640625, -0.0180816650390625, -0.0238189697265625, -0.0208892822265625, -0.0020313262939453125, 0.01256561279296875, -0.01161956787109375, -0.01256561279296875, 0.026397705078125, 0.024993896484375, -0.0032558441162109375, 0.0009341239929199219, -0.0008759498596191406, -0.022857666015625, 0.056671142578125, 0.0035343170166015625, 0.0204925537109375, 0.01119232177734375, -0.1251220703125, -0.03790283203125, -0.004405975341796875, 0.0031223297119140625, 0.0423583984375, 0.029449462890625, -0.042144775390625, 0.04913330078125, 0.046783447265625, -0.0308074951171875, 0.0121307373046875, 0.005550384521484375, 0.00545501708984375, -0.017333984375, -0.0010967254638671875, -0.0020160675048828125, -0.0072479248046875, 0.0110626220703125, 0.003261566162109375, 0.0156097412109375, 0.0188751220703125, 0.060455322265625, -0.01354217529296875, 0.00806427001953125, -0.0281219482421875, 0.060638427734375, -0.08221435546875, -0.044403076171875, 0.046600341796875, -0.0295562744140625, 0.0038204193115234375, 0.01143646240234375, -0.01250457763671875, -0.0189971923828125, 0.06781005859375, -0.045074462890625, 0.010284423828125, -0.031280517578125, 0.019805908203125, -0.07061767578125, 0.041595458984375, -0.0118255615234375, 0.016632080078125, -0.028106689453125, -0.039581298828125, 0.058441162109375, 0.051666259765625, 0.0030059814453125, 0.0144195556640625, -0.00885772705078125, -0.0247650146484375, 0.0302886962890625, -0.0192718505859375, 0.0214996337890625, 0.027496337890625, -0.046600341796875, 0.0076141357421875, 0.0419921875, -0.0015811920166015625, 0.0203704833984375, 0.0210723876953125, 0.0212249755859375, 0.036407470703125, -0.040496826171875, -0.0205841064453125, 0.01163482666015625, 0.0029811859130859375, -0.0474853515625, 0.003429412841796875, 0.03277587890625, -0.0225372314453125, 0.00484466552734375, -0.00972747802734375, -0.0257568359375, -0.029510498046875, -0.01161956787109375, 0.01495361328125, -0.019500732421875, -0.07086181640625, -0.06207275390625, 0.0022525787353515625, 0.05413818359375, 0.0182037353515625, -0.06500244140625, 0.023101806640625, -0.0244293212890625, 0.0660400390625, -0.00211334228515625, 0.011810302734375, -0.0100555419921875, -0.01261138916015625, -0.0216827392578125, 0.03375244140625, -0.037445068359375, -0.01439666748046875, 0.005725860595703125, 0.0027484893798828125, 0.01708984375, -0.01419830322265625, 0.008880615234375, 0.01415252685546875, 0.01183319091796875, 0.053253173828125, 0.04132080078125, -0.021484375, -0.037506103515625, 0.03717041015625, -0.0262451171875, 0.0123291015625, 0.046112060546875, -0.000225067138671875, -0.056610107421875, -0.0171661376953125, 0.02008056640625, 0.03143310546875, -0.016571044921875, -0.02923583984375, 0.08807373046875, -0.0201873779296875, -0.0179443359375, -0.0167236328125, 0.00940704345703125, -0.0290374755859375, 0.01226043701171875, 0.01708984375, -0.033172607421875, 0.010894775390625, 0.031219482421875, 0.0145263671875, 0.02227783203125, 0.0004813671112060547, 0.0017881393432617188, -0.0294342041015625, 0.0251312255859375, 0.017303466796875, 0.0162506103515625, -0.037689208984375, 0.0313720703125, -0.014129638671875, 0.03240966796875, -0.03009033203125, 0.01873779296875, 0.01128387451171875, 0.0269775390625, 0.0304718017578125, -0.0225677490234375, -0.05401611328125, -0.0438232421875, 0.030487060546875, 0.0274810791015625, 0.0209503173828125, 0.00225830078125, -0.01540374755859375, -0.07415771484375, -0.0071258544921875, -0.0078887939453125, -0.0024166107177734375, -0.039794921875, 0.01959228515625, 0.027862548828125, 0.0115203857421875, -0.0107574462890625, -0.01422882080078125, -0.014862060546875, -0.0328369140625, -0.006298065185546875, 0.0035552978515625, -0.04046630859375, 0.043914794921875, -0.04345703125, -0.01104736328125, -0.0577392578125, -0.0124664306640625, -0.01001739501953125, -0.07330322265625, 0.001117706298828125, -0.01316070556640625, 0.0027599334716796875, -0.0184478759765625, 0.006656646728515625, 0.0037479400634765625, 0.0242156982421875, -0.01415252685546875, 0.003398895263671875, -0.0343017578125, 0.01404571533203125, 0.0192413330078125, 0.007038116455078125, -0.0296478271484375, 0.021087646484375, 0.02947998046875, 0.0361328125, 0.0159149169921875, 0.0196685791015625, -0.00756072998046875, 0.04736328125, 0.0185089111328125, -0.0305328369140625, 0.037078857421875, -0.024871826171875, 0.0004949569702148438, -0.0025959014892578125, -0.030059814453125, -0.032623291015625, 0.0081024169921875, -0.0211944580078125, -0.004566192626953125, 0.01056671142578125 ]
643b48551dc3dbafe5b555a7df2c63e7541423d7
Wordpress Stackexchange Q: Invalid Post Type error when attempting to filter and Bulk Edit posts WP 3.8.1 Posts Categories: * *News 1.1 Press Release 1.2 etc. *Blog 2.1 Technology 2.2 Around The World 2.3 Eetc. "Invalid Post Type" example: Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply: wp-admin/edit.php?s=&post_status=all&post_type=Array I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error. A: I've found a solution for me. A function from my functions.php file was in conflict with my filter admin. I had to find where was my error, for that I just cut and paste my function one by one and test again and gain till I found my conflict function. In my case I had to put my function in a conditional tag: if(!is_admin()){ //Your conflict function } So Your function will be executed only on the theme and not in your admin.
Q: Invalid Post Type error when attempting to filter and Bulk Edit posts WP 3.8.1 Posts Categories: * *News 1.1 Press Release 1.2 etc. *Blog 2.1 Technology 2.2 Around The World 2.3 Eetc. "Invalid Post Type" example: Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply: wp-admin/edit.php?s=&post_status=all&post_type=Array I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error. A: I've found a solution for me. A function from my functions.php file was in conflict with my filter admin. I had to find where was my error, for that I just cut and paste my function one by one and test again and gain till I found my conflict function. In my case I had to put my function in a conditional tag: if(!is_admin()){ //Your conflict function } So Your function will be executed only on the theme and not in your admin.
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:442887", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136622" }
[ 0.039398193359375, -0.004764556884765625, -0.0054168701171875, -0.03765869140625, -0.0114593505859375, -0.00994873046875, -0.006900787353515625, -0.032012939453125, 0.0013666152954101562, -0.001220703125, -0.04119873046875, 0.007625579833984375, -0.02850341796875, -0.024749755859375, -0.0015211105346679688, -0.0377197265625, -0.015960693359375, -0.00606536865234375, -0.019683837890625, -0.04046630859375, 0.0004901885986328125, -0.061065673828125, -0.00572967529296875, -0.03826904296875, 0.0198211669921875, 0.01068878173828125, 0.06219482421875, -0.0335693359375, 0.0024471282958984375, -0.015228271484375, 0.006565093994140625, -0.0090484619140625, -0.0027923583984375, 0.03857421875, -0.037506103515625, -0.001132965087890625, 0.0193634033203125, 0.021820068359375, 0.019775390625, 0.00841522216796875, -0.01131439208984375, 0.0166778564453125, 0.00858306884765625, 0.0283203125, -0.034393310546875, -0.0217132568359375, -0.00949859619140625, -0.0199737548828125, 0.0223236083984375, 0.035797119140625, -0.0113983154296875, -0.00827789306640625, 0.00638580322265625, -0.036163330078125, -0.02581787109375, -0.054473876953125, -0.00649261474609375, -0.0160064697265625, 0.0237274169921875, 0.0009570121765136719, -0.0194244384765625, -0.0138092041015625, 0.0123443603515625, -0.0244293212890625, -0.007167816162109375, -0.01268768310546875, 0.04193115234375, 0.0083465576171875, -0.0198516845703125, 0.00972747802734375, 0.04083251953125, 0.00994110107421875, 0.0004036426544189453, 0.0134124755859375, -0.02203369140625, -0.041778564453125, 0.0265655517578125, -0.0416259765625, 0.0113525390625, 0.0257568359375, 0.035247802734375, 0.01153564453125, 0.023712158203125, 0.0224761962890625, -0.038909912109375, 0.00201416015625, -0.002857208251953125, -0.0113372802734375, -0.037322998046875, -0.0239410400390625, -0.0220489501953125, -0.07611083984375, -0.05474853515625, 0.043212890625, 0.0268707275390625, -0.0159454345703125, 0.030303955078125, 0.07257080078125, 0.00414276123046875, 0.0399169921875, -0.02728271484375, -0.035919189453125, 0.037689208984375, -0.0662841796875, 0.0231475830078125, 0.04412841796875, -0.005889892578125, 0.0270843505859375, 0.06298828125, 0.0022068023681640625, 0.004970550537109375, 0.0102691650390625, -0.03216552734375, -0.0186614990234375, -0.0247344970703125, 0.044342041015625, -0.038177490234375, 0.009613037109375, -0.01166534423828125, 0.017364501953125, 0.005344390869140625, 0.0252685546875, -0.0093536376953125, -0.023956298828125, -0.008636474609375, -0.0244598388671875, -0.013153076171875, -0.016815185546875, 0.060638427734375, 0.01552581787109375, -0.0225677490234375, 0.0126800537109375, 0.034637451171875, -0.0214080810546875, -0.0256500244140625, -0.0169677734375, 0.0132904052734375, 0.019378662109375, 0.00107574462890625, -0.0178070068359375, 0.03436279296875, 0.01080322265625, 0.0081024169921875, 0.0248260498046875, 0.0061798095703125, 0.0654296875, 0.04437255859375, -0.0377197265625, -0.03936767578125, -0.05145263671875, -0.040008544921875, -0.004001617431640625, 0.0670166015625, -0.0198516845703125, 0.0218963623046875, -0.07330322265625, 0.0938720703125, -0.082763671875, -0.019622802734375, -0.0897216796875, 0.0155029296875, 0.0033397674560546875, 0.0394287109375, -0.0123748779296875, -0.0294647216796875, 0.004116058349609375, -0.0787353515625, -0.01232147216796875, 0.017364501953125, -0.02764892578125, -0.021453857421875, -0.0107574462890625, -0.002780914306640625, 0.019500732421875, 0.0006518363952636719, 0.0390625, 0.035247802734375, -0.02947998046875, -0.0052947998046875, 0.0579833984375, -0.0010929107666015625, -0.0250396728515625, -0.003673553466796875, -0.0224761962890625, -0.04998779296875, -0.01052093505859375, 0.04010009765625, 0.048126220703125, 0.007381439208984375, 0.0266265869140625, 0.0545654296875, 0.0165557861328125, 0.03271484375, -0.00048279762268066406, -0.0008039474487304688, -0.061065673828125, -0.00556182861328125, -0.012725830078125, -0.0166473388671875, 0.0234222412109375, -0.0021610260009765625, 0.0306396484375, -0.0098724365234375, -0.0016183853149414062, -0.031402587890625, 0.0098419189453125, -0.0184326171875, 0.05328369140625, 0.0230255126953125, 0.009674072265625, 0.019439697265625, 0.020751953125, -0.043121337890625, 0.0255889892578125, -0.0309600830078125, 0.017303466796875, -0.0203704833984375, 0.0059814453125, -0.0244598388671875, 0.024139404296875, -0.03472900390625, -0.0394287109375, -0.040679931640625, 0.007534027099609375, 0.04852294921875, -0.006755828857421875, -0.0033435821533203125, -0.0232696533203125, 0.06109619140625, 0.015838623046875, -0.01430511474609375, 0.007511138916015625, 0.027435302734375, 0.051849365234375, -0.02349853515625, -0.00696563720703125, -0.024169921875, -0.0139312744140625, 0.0011749267578125, 0.045135498046875, 0.034271240234375, -0.0082550048828125, 0.001483917236328125, 0.0255126953125, 0.080078125, -0.008087158203125, 0.0006341934204101562, 0.0185546875, -0.0018720626831054688, 0.0178375244140625, 0.0277862548828125, -0.0021762847900390625, 0.019073486328125, -0.086181640625, 0.022186279296875, 0.035888671875, 0.026763916015625, 0.0256195068359375, -0.02972412109375, 0.00860595703125, 0.0009455680847167969, -0.07867431640625, -0.06787109375, -0.023712158203125, 0.05181884765625, -0.0338134765625, 0.0238037109375, -0.00972747802734375, -0.037200927734375, -0.003582000732421875, 0.03778076171875, -0.0078277587890625, 0.0173187255859375, 0.00998687744140625, -0.0171356201171875, 0.042083740234375, -0.01126861572265625, 0.0008563995361328125, -0.0048828125, 0.0005393028259277344, -0.0243377685546875, -0.00897216796875, -0.0163421630859375, -0.004665374755859375, -0.021575927734375, -0.0242919921875, 0.03240966796875, -0.01337432861328125, -0.0208740234375, -0.0350341796875, -0.01085662841796875, 0.024658203125, -0.0340576171875, 0.0462646484375, 0.01995849609375, -0.02984619140625, 0.0252227783203125, -0.062744140625, 0.0458984375, -0.04644775390625, 0.054931640625, 0.06268310546875, -0.0263824462890625, 0.0196075439453125, -0.0012378692626953125, 0.04620361328125, 0.0019388198852539062, 0.043731689453125, 0.025909423828125, -0.017730712890625, 0.000606536865234375, -0.01003265380859375, 0.044403076171875, 0.0285797119140625, 0.0158233642578125, -0.019134521484375, 0.006702423095703125, 0.046051025390625, -0.06793212890625, -0.06549072265625, -0.01548004150390625, -0.0299835205078125, 0.003025054931640625, -0.0216522216796875, -0.004497528076171875, -0.00630950927734375, -0.012908935546875, 0.0027866363525390625, 0.041046142578125, 0.01006317138671875, -0.03997802734375, 0.0038318634033203125, -0.05645751953125, 0.00640869140625, -0.01213836669921875, 0.00862884521484375, 0.01177215576171875, 0.06658935546875, 0.0269317626953125, -0.08709716796875, 0.00501251220703125, 0.0291595458984375, -0.02618408203125, 0.038482666015625, -0.0250091552734375, 0.01001739501953125, -0.0035495758056640625, 0.0112762451171875, 0.0187530517578125, 0.0091552734375, -0.01128387451171875, -0.0125579833984375, -0.0196075439453125, -0.014678955078125, -0.00429534912109375, 0.0178985595703125, 0.015899658203125, -0.0304412841796875, 0.0171051025390625, -0.058685302734375, -0.0304412841796875, 0.0031280517578125, -0.038116455078125, 0.04742431640625, 0.005893707275390625, -0.02069091796875, -0.0032176971435546875, 0.044403076171875, 0.0185089111328125, 0.031707763671875, 0.0205535888671875, -0.004302978515625, 0.03485107421875, 0.0008554458618164062, -0.004016876220703125, -0.044403076171875, -0.01015472412109375, -0.0120849609375, 0.0301971435546875, -0.0057220458984375, 0.0225677490234375, 0.0127410888671875, 0.0160064697265625, 0.0004355907440185547, -0.059906005859375, 0.00023448467254638672, -0.1011962890625, -0.0213470458984375, -0.033172607421875, 0.01885986328125, -0.00009995698928833008, 0.056732177734375, 0.0216827392578125, -0.01332855224609375, -0.06103515625, -0.005756378173828125, 0.01540374755859375, -0.058929443359375, 0.05426025390625, -0.005718231201171875, -0.0027561187744140625, 0.007213592529296875, -0.032501220703125, 0.014373779296875, -0.04412841796875, 0.05010986328125, 0.01355743408203125, -0.020538330078125, 0.043365478515625, -0.058746337890625, 0.01454925537109375, 0.0031452178955078125, -0.0212860107421875, -0.018829345703125, -0.0574951171875, -0.01145172119140625, -0.0865478515625, -0.01348876953125, -0.0225372314453125, 0.063232421875, 0.0013551712036132812, 0.016082763671875, 0.0022125244140625, 0.051177978515625, 0.029388427734375, 0.02752685546875, -0.0271148681640625, -0.0501708984375, 0.002582550048828125, 0.0013399124145507812, -0.0214691162109375, -0.0019779205322265625, -0.02777099609375, -0.0018472671508789062, -0.0272064208984375, -0.005527496337890625, -0.01415252685546875, -0.0364990234375, 0.007205963134765625, -0.02734375, -0.057586669921875, -0.048980712890625, 0.0006375312805175781, 0.021881103515625, 0.0007085800170898438, 0.00824737548828125, -0.06744384765625, -0.057098388671875, 0.105712890625, 0.032684326171875, -0.007579803466796875, -0.01922607421875, 0.10955810546875, 0.00606536865234375, -0.04705810546875, -0.058807373046875, -0.03765869140625, 0.0279998779296875, -0.0293426513671875, 0.01346588134765625, 0.0002925395965576172, -0.0193634033203125, 0.0186614990234375, -0.0266265869140625, -0.0496826171875, -0.00859832763671875, 0.054290771484375, 0.01464080810546875, 0.00611114501953125, -0.0198822021484375, -0.018157958984375, 0.06268310546875, 0.0214080810546875, 0.002193450927734375, -0.0142822265625, -0.007465362548828125, 0.0458984375, -0.004116058349609375, 0.01238250732421875, -0.03759765625, -0.035400390625, 0.0219268798828125, -0.005374908447265625, -0.024505615234375, 0.006755828857421875, 0.0052642822265625, -0.02911376953125, -0.0347900390625, 0.00655364990234375, -0.054901123046875, 0.03363037109375, -0.048736572265625, 0.04278564453125, -0.0467529296875, -0.01824951171875, -0.048431396484375, -0.0056304931640625, -0.026336669921875, 0.01157379150390625, -0.05572509765625, 0.04095458984375, 0.033416748046875, -0.00817108154296875, 0.012359619140625, 0.01654052734375, 0.0155029296875, 0.02056884765625, 0.011688232421875, 0.0159912109375, 0.035552978515625, 0.0176239013671875, -0.017608642578125, 0.0151519775390625, 0.00395965576171875, 0.004238128662109375, 0.0205535888671875, 0.014739990234375, 0.03204345703125, -0.007965087890625, -0.0340576171875, 0.04180908203125, 0.03564453125, 0.0078582763671875, 0.004093170166015625, 0.054290771484375, -0.0308990478515625, 0.0286712646484375, 0.0028781890869140625, -0.045928955078125, -0.032470703125, 0.0251617431640625, 0.031463623046875, -0.00040078163146972656, 0.00276947021484375, 0.01224517822265625, 0.0258331298828125, -0.0232696533203125, 0.0154571533203125, 0.006725311279296875, -0.0382080078125, -0.0291748046875, -0.00600433349609375, 0.014984130859375, 0.016021728515625, -0.01119232177734375, 0.01488494873046875, 0.0016565322875976562, 0.035186767578125, 0.01425933837890625, -0.0186920166015625, 0.005397796630859375, 0.00913238525390625, 0.0030689239501953125, -0.037567138671875, -0.017913818359375, -0.00385284423828125, 0.00832366943359375, -0.0125274658203125, 0.0013246536254882812, 0.03582763671875, -0.047149658203125, -0.0234527587890625, -0.01128387451171875, 0.035247802734375, -0.018707275390625, 0.0167083740234375, 0.029754638671875, 0.01134490966796875, -0.0215911865234375, -0.01093292236328125, -0.03662109375, -0.053619384765625, -0.040374755859375, -0.006046295166015625, -0.05865478515625, 0.004894256591796875, 0.00542449951171875, 0.019866943359375, -0.0168609619140625, -0.0224609375, -0.029815673828125, 0.025299072265625, 0.03607177734375, 0.061920166015625, -0.032562255859375, 0.0279083251953125, 0.033294677734375, 0.00246429443359375, -0.00891876220703125, 0.007572174072265625, 0.01361846923828125, -0.007503509521484375, -0.0247344970703125, -0.08697509765625, 0.0131378173828125, 0.034576416015625, -0.0408935546875, 0.03778076171875, 0.0350341796875, 0.013458251953125, 0.0303497314453125, -0.01529693603515625, -0.0119171142578125, -0.022186279296875, 0.0379638671875, -0.00555419921875, 0.058013916015625, -0.0056610107421875, -0.039520263671875, -0.0022487640380859375, 0.0017833709716796875, 0.038421630859375, -0.00954437255859375, -0.053009033203125, -0.0241546630859375, 0.051361083984375, -0.0036602020263671875, 0.0118865966796875, 0.005950927734375, 0.0011587142944335938, 0.0182952880859375, -0.0120697021484375, 0.01654052734375, 0.0016956329345703125, -0.00931549072265625, 0.01108551025390625, 0.0270233154296875, 0.0275115966796875, -0.00839996337890625, 0.004550933837890625, -0.0004353523254394531, -0.0228118896484375, -0.0160980224609375, 0.08905029296875, 0.066162109375, -0.09027099609375, -0.0086669921875, 0.0291290283203125, 0.0109100341796875, -0.0021076202392578125, -0.00957489013671875, 0.00801849365234375, -0.006153106689453125, 0.0430908203125, -0.01241302490234375, -0.0211334228515625, 0.031219482421875, -0.002471923828125, -0.005401611328125, 0.011077880859375, 0.06597900390625, 0.01467132568359375, -0.037567138671875, 0.002044677734375, 0.015472412109375, 0.013092041015625, 0.0015420913696289062, 0.043670654296875, -0.04901123046875, -0.01398468017578125, -0.04571533203125, -0.030487060546875, 0.00655364990234375, -0.040802001953125, -0.03436279296875, -0.01450347900390625, 0.013885498046875, 0.0097503662109375, -0.0240325927734375, -0.0047454833984375, -0.00748443603515625, -0.0035381317138671875, 0.0042724609375, -0.037628173828125, -0.005977630615234375, 0.051422119140625, -0.031585693359375, 0.027496337890625, 0.0151214599609375, -0.0184326171875, 0.0014591217041015625, -0.054290771484375, 0.00603485107421875, -0.013702392578125, -0.007266998291015625, 0.0233154296875, -0.017486572265625, -0.0072174072265625, 0.038726806640625, 0.01136016845703125, -0.0418701171875, -0.028564453125, 0.0267181396484375, -0.06048583984375, -0.017730712890625, 0.039886474609375, -0.05145263671875, 0.05902099609375, -0.01605224609375, 0.032318115234375, 0.0241851806640625, 0.0157012939453125, -0.0274200439453125, -0.01261138916015625, -0.051544189453125, 0.03759765625, -0.01445770263671875, 0.029510498046875, -0.0849609375, -0.00405120849609375, -0.0226593017578125, 0.0232696533203125, 0.0294189453125, 0.007152557373046875, -0.0418701171875, 0.006053924560546875, 0.06268310546875, 0.05023193359375, 0.026123046875, 0.03314208984375, 0.00838470458984375, -0.00545501708984375, 0.0168914794921875, 0.0194091796875, 0.06182861328125, -0.03790283203125, -0.02288818359375, 0.00998687744140625, 0.01486968994140625, 0.0111541748046875, -0.006168365478515625, -0.012939453125, -0.0121002197265625, -0.0031909942626953125, 0.016265869140625, -0.001544952392578125, 0.0148162841796875, 0.0312042236328125, 0.05029296875, -0.034423828125, -0.06060791015625, -0.01161956787109375, 0.049468994140625, 0.033111572265625, 0.00537109375, 0.032379150390625, 0.0133209228515625, 0.043731689453125, -0.0250091552734375, 0.014129638671875, -0.007572174072265625, 0.005847930908203125, 0.033966064453125, -0.0035247802734375, 0.020263671875, -0.025787353515625, 0.0301971435546875, 0.0304107666015625, 0.033599853515625, -0.036346435546875, -0.044342041015625, 0.0077972412109375, 0.029205322265625, 0.017242431640625, 0.02569580078125, 0.034637451171875, 0.030914306640625, 0.06134033203125, -0.078369140625, 0.0186309814453125, 0.045684814453125, 0.0268707275390625, -0.01445770263671875, -0.0192108154296875, -0.05364990234375, 0.016876220703125, -0.05078125, -0.022705078125, 0.01605224609375, 0.0894775390625, 0.045989990234375, 0.0259246826171875, -0.03741455078125, -0.045440673828125, -0.0174713134765625, -0.012237548828125, -0.0013589859008789062, 0.0166778564453125, -0.022735595703125, -0.0018033981323242188, 0.040435791015625, 0.018829345703125, -0.038848876953125, 0.0069427490234375, 0.0138092041015625, 0.0207366943359375, -0.036956787109375, -0.0330810546875, 0.004711151123046875, -0.03314208984375, -0.060546875, -0.01233673095703125, -0.0445556640625, -0.014923095703125, -0.00608062744140625, 0.0205535888671875, 0.059234619140625, -0.044342041015625, 0.00835418701171875, -0.006061553955078125, 0.016387939453125, -0.0177459716796875, 0.03289794921875, 0.028961181640625, -0.006893157958984375, 0.039459228515625, -0.09722900390625, -0.0223846435546875, -0.0469970703125, -0.01241302490234375, 0.0202789306640625, 0.0198516845703125, -0.01727294921875, 0.01467132568359375, -0.026763916015625, -0.0072784423828125, 0.005733489990234375, -0.017181396484375, 0.024139404296875, 0.039093017578125, -0.0009860992431640625, 0.017791748046875, 0.0164794921875, -0.0014600753784179688, 0.0243682861328125, 0.04443359375, 0.0157623291015625, 0.082275390625, -0.0389404296875, 0.01158905029296875, -0.01445770263671875, 0.0338134765625, -0.07122802734375, -0.00812530517578125, -0.0083770751953125, -0.0357666015625, 0.00030875205993652344, 0.02593994140625, 0.0150299072265625, 0.0276641845703125, 0.025054931640625, -0.05419921875, 0.0128021240234375, -0.005878448486328125, -0.01123809814453125, -0.032470703125, 0.0380859375, -0.0241546630859375, -0.0258026123046875, -0.006908416748046875, -0.0033473968505859375, 0.014373779296875, 0.036865234375, 0.01441192626953125, -0.0226593017578125, -0.001556396484375, -0.050048828125, 0.008758544921875, 0.0019550323486328125, 0.0014705657958984375, 0.0225677490234375, 0.0004870891571044922, -0.042236328125, -0.01163482666015625, -0.0174102783203125, 0.0239105224609375, 0.0007538795471191406, 0.0584716796875, -0.006481170654296875, 0.0310211181640625, -0.0071563720703125, -0.043548583984375, -0.0125274658203125, -0.0361328125, -0.027618408203125, 0.0027217864990234375, 0.0034847259521484375, -0.0185699462890625, 0.066162109375, -0.006740570068359375, 0.00548553466796875, -0.0126800537109375, -0.004486083984375, 0.0176544189453125, -0.0303955078125, -0.0189361572265625, -0.009063720703125, -0.01343536376953125, -0.027984619140625, -0.0113525390625, 0.022003173828125, -0.0421142578125, 0.00862884521484375, -0.057037353515625, -0.01800537109375, 0.00943756103515625, 0.03656005859375, -0.0130615234375, 0.0029964447021484375, -0.037994384765625, -0.01464080810546875, -0.0296173095703125, 0.0231475830078125, 0.08221435546875, -0.0300750732421875, -0.07635498046875, -0.0186309814453125, 0.018646240234375, 0.01861572265625, -0.0102081298828125, -0.003238677978515625, 0.0374755859375, 0.01158905029296875, -0.037139892578125, -0.09991455078125, 0.0018100738525390625, -0.05523681640625, 0.0030059814453125, 0.020721435546875, 0.0027904510498046875, 0.027191162109375, -0.021087646484375, -0.059539794921875, 0.0302734375, 0.01102447509765625, -0.0350341796875, -0.05889892578125, -0.0076446533203125, -0.0018939971923828125, 0.044647216796875, 0.005950927734375, -0.060455322265625, -0.043212890625, 0.0243988037109375, -0.01849365234375, 0.03802490234375, 0.039306640625, -0.05718994140625, 0.0298919677734375, -0.0233154296875, 0.00691986083984375, -0.005558013916015625, -0.035797119140625, 0.00830841064453125, 0.00853729248046875, 0.0278167724609375, -0.0166473388671875, -0.0160675048828125, 0.018707275390625, -0.005863189697265625, 0.0204925537109375, -0.03546142578125, -0.08062744140625, -0.051055908203125, 0.05804443359375, 0.0684814453125, 0.0323486328125, -0.0127105712890625, 0.0294189453125, -0.00640869140625, -0.0290985107421875, -0.0106658935546875, 0.00833892822265625, -0.0200347900390625, -0.0034084320068359375, -0.00980377197265625, 0.004978179931640625, 0.002666473388671875, -0.03558349609375, -0.0260009765625, -0.01245880126953125, -0.0221710205078125, -0.0110626220703125, 0.0024852752685546875, 0.0033435821533203125, 0.01146697998046875, -0.01195526123046875, -0.004138946533203125, 0.023040771484375, -0.0029621124267578125, 0.0009613037109375, 0.048736572265625, -0.016357421875, -0.01708984375, -0.01445770263671875, 0.004665374755859375, 0.005573272705078125, 0.0225830078125, -0.008575439453125, -0.011932373046875, 0.0274658203125, 0.00421142578125, -0.034393310546875, -0.0229339599609375, 0.0240020751953125, 0.046722412109375, -0.0312042236328125, 0.1007080078125, 0.000339508056640625, 0.037841796875, -0.0015468597412109375, 0.044281005859375, 0.0022220611572265625, -0.0271453857421875, 0.035003662109375, -0.01776123046875, -0.003322601318359375, 0.00792694091796875, -0.004291534423828125, -0.0394287109375, 0.037445068359375, -0.0136871337890625, 0.00894927978515625, 0.0265045166015625 ]
cf575d018b10d62367092448aaea65b1c2284f01
Wordpress Stackexchange Q: User-edit role setting distinct from wp_capabilities? I need find out how $profileuser->roles is set. wp_capabilities can hold multiple roles, whereas user-edit role caters only for a single role. Under certain circumstances it is possible for there to be one or more roles in wp_capabilities but none set in user-edit. That suggests that there must be another setting used to define user-edit role distinct from wp_capabailities. In order to import a large batch of of legacy user data with roles set, I need to understand how/where the user-edit setting is stored distinct from wp_capabilities. The particular circumstance is with syncing between WP users and membership type in CiviCrm. The sync uses mapping between WP user-edit role setting to Civi Membership type. CiviCrm allows multiple membership types per user. I am using: * *WP 3.8.1 *Members plugin 0.2.4 *CiviCrm plugin 4.4
Q: User-edit role setting distinct from wp_capabilities? I need find out how $profileuser->roles is set. wp_capabilities can hold multiple roles, whereas user-edit role caters only for a single role. Under certain circumstances it is possible for there to be one or more roles in wp_capabilities but none set in user-edit. That suggests that there must be another setting used to define user-edit role distinct from wp_capabailities. In order to import a large batch of of legacy user data with roles set, I need to understand how/where the user-edit setting is stored distinct from wp_capabilities. The particular circumstance is with syncing between WP users and membership type in CiviCrm. The sync uses mapping between WP user-edit role setting to Civi Membership type. CiviCrm allows multiple membership types per user. I am using: * *WP 3.8.1 *Members plugin 0.2.4 *CiviCrm plugin 4.4
wordpress
{ "language": "en", "length": 140, "provenance": "stackexchange_00019.jsonl.gz:442926", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/136740" }
[ 0.044769287109375, -0.0289306640625, -0.031707763671875, -0.0222015380859375, 0.006824493408203125, -0.04425048828125, 0.039337158203125, -0.00013947486877441406, -0.00434112548828125, 0.0211029052734375, 0.024139404296875, -0.0010480880737304688, 0.00832366943359375, -0.029754638671875, -0.01160430908203125, -0.0013713836669921875, -0.00791168212890625, 0.013641357421875, -0.03485107421875, -0.036102294921875, 0.005222320556640625, -0.04241943359375, -0.0755615234375, 0.052886962890625, 0.02154541015625, 0.005401611328125, -0.00156402587890625, -0.0095672607421875, 0.017822265625, 0.010589599609375, 0.0171966552734375, -0.0236663818359375, 0.021331787109375, 0.01885986328125, -0.03363037109375, -0.039337158203125, -0.007366180419921875, 0.0031948089599609375, -0.00434112548828125, 0.0037136077880859375, -0.0066986083984375, 0.010650634765625, 0.005191802978515625, 0.0115814208984375, -0.0213165283203125, -0.0677490234375, 0.044219970703125, 0.005645751953125, 0.042510986328125, -0.0217132568359375, -0.007476806640625, 0.0258636474609375, 0.0235595703125, -0.01654052734375, -0.017242431640625, -0.0229949951171875, -0.041717529296875, 0.031707763671875, 0.01015472412109375, 0.04376220703125, 0.01776123046875, -0.0007872581481933594, -0.00919342041015625, -0.03619384765625, -0.01342010498046875, 0.006885528564453125, 0.054046630859375, 0.0221099853515625, -0.0626220703125, -0.057861328125, -0.007678985595703125, -0.00257110595703125, 0.00826263427734375, -0.024505615234375, -0.006465911865234375, 0.025054931640625, -0.0204620361328125, -0.00917816162109375, 0.03228759765625, -0.01076507568359375, -0.00537109375, -0.0142822265625, -0.033111572265625, -0.01593017578125, 0.01401519775390625, 0.00969696044921875, 0.005573272705078125, -0.0045166015625, -0.0279998779296875, 0.039764404296875, -0.021331787109375, -0.0491943359375, -0.00366973876953125, 0.072998046875, 0.0182952880859375, 0.0126953125, 0.060455322265625, 0.05621337890625, 0.006114959716796875, -0.0284271240234375, 0.046234130859375, -0.0718994140625, 0.005245208740234375, -0.022125244140625, 0.0010099411010742188, 0.0295257568359375, 0.0031566619873046875, 0.01421356201171875, 0.018402099609375, 0.0162506103515625, 0.0007386207580566406, -0.01039886474609375, 0.0247802734375, -0.0139617919921875, -0.00534820556640625, -0.04730224609375, -0.031829833984375, 0.039215087890625, 0.0076751708984375, -0.020111083984375, -0.004817962646484375, 0.0193939208984375, 0.01308441162109375, -0.0263214111328125, 0.006885528564453125, 0.00994873046875, -0.006565093994140625, -0.034912109375, -0.0021495819091796875, 0.00873565673828125, -0.03204345703125, 0.0117645263671875, 0.076904296875, 0.0538330078125, 0.0123443603515625, -0.0188446044921875, 0.0248870849609375, -0.0416259765625, -0.041259765625, 0.03118896484375, 0.004848480224609375, -0.02142333984375, -0.01190948486328125, -0.029327392578125, -0.005859375, 0.0335693359375, 0.0143280029296875, -0.0040740966796875, 0.0137481689453125, -0.01534271240234375, -0.060150146484375, -0.0084228515625, -0.020111083984375, 0.007472991943359375, 0.044677734375, -0.0269012451171875, 0.0220947265625, -0.0340576171875, 0.04827880859375, -0.0114898681640625, 0.0236358642578125, -0.007266998291015625, 0.0121002197265625, -0.0230560302734375, -0.06744384765625, 0.0167236328125, -0.04046630859375, -0.0117950439453125, 0.0208587646484375, -0.022979736328125, 0.0609130859375, -0.0072174072265625, -0.0174713134765625, 0.00528717041015625, 0.027557373046875, 0.0096588134765625, -0.0189208984375, 0.0333251953125, 0.0017194747924804688, -0.01067352294921875, -0.0198974609375, -0.044677734375, 0.033172607421875, -0.0034732818603515625, -0.03900146484375, 0.001583099365234375, -0.00923919677734375, 0.0259552001953125, 0.05364990234375, 0.01177215576171875, 0.003208160400390625, -0.00923919677734375, -0.01849365234375, -0.01090240478515625, -0.00870513916015625, -0.06591796875, 0.033599853515625, -0.03338623046875, 0.0010499954223632812, 0.044708251953125, 0.0650634765625, -0.033905029296875, 0.01374053955078125, -0.053192138671875, -0.10565185546875, -0.0182342529296875, -0.0404052734375, 0.0295562744140625, -0.0406494140625, 0.0097198486328125, 0.0187530517578125, 0.02001953125, -0.006580352783203125, -0.07794189453125, -0.002155303955078125, 0.034576416015625, -0.01776123046875, 0.0341796875, 0.00501251220703125, 0.01183319091796875, 0.006443023681640625, -0.023773193359375, -0.0037078857421875, 0.0171966552734375, 0.0276947021484375, -0.0134429931640625, 0.0009093284606933594, -0.0168304443359375, 0.06988525390625, -0.007587432861328125, 0.06036376953125, -0.000385284423828125, 0.0248260498046875, 0.0192108154296875, -0.006420135498046875, 0.011627197265625, 0.0196380615234375, -0.0694580078125, 0.00975799560546875, 0.05523681640625, 0.040191650390625, -0.00597381591796875, -0.0111541748046875, -0.00023496150970458984, 0.028564453125, -0.01364898681640625, 0.028778076171875, -0.026092529296875, 0.003936767578125, 0.03350830078125, 0.0107574462890625, -0.0004456043243408203, 0.016448974609375, 0.016082763671875, -0.0078582763671875, 0.0259552001953125, -0.034637451171875, 0.005908966064453125, 0.004306793212890625, -0.02313232421875, -0.0172271728515625, -0.09381103515625, -0.0023403167724609375, -0.054840087890625, 0.0031490325927734375, -0.00594329833984375, 0.026947021484375, 0.0248565673828125, -0.0123291015625, -0.0209197998046875, 0.035247802734375, 0.040283203125, 0.01280975341796875, -0.01105499267578125, 0.018035888671875, -0.0015993118286132812, 0.006328582763671875, -0.00865936279296875, -0.003124237060546875, -0.0152587890625, -0.015777587890625, 0.00028586387634277344, -0.021728515625, -0.01023101806640625, -0.0008111000061035156, -0.0726318359375, -0.00144195556640625, 0.0202484130859375, -0.007720947265625, -0.0244293212890625, 0.0284271240234375, -0.0413818359375, -0.049468994140625, 0.026092529296875, -0.02581787109375, -0.047943115234375, 0.0130462646484375, -0.051666259765625, 0.03375244140625, -0.03692626953125, 0.0341796875, 0.07171630859375, 0.0056915283203125, -0.018310546875, 0.00974273681640625, -0.041534423828125, -0.017669677734375, 0.0382080078125, 0.0262451171875, -0.0305633544921875, 0.00628662109375, 0.08306884765625, 0.0175628662109375, -0.03985595703125, 0.033477783203125, 0.01080322265625, -0.007259368896484375, 0.0213623046875, 0.0097198486328125, 0.0149688720703125, -0.034820556640625, -0.0560302734375, 0.059722900390625, -0.003231048583984375, -0.00698089599609375, -0.035430908203125, 0.0310821533203125, 0.036712646484375, 0.0016279220581054688, -0.00733184814453125, 0.0183563232421875, 0.006317138671875, -0.024200439453125, -0.01145172119140625, 0.0087738037109375, 0.0005860328674316406, -0.0180511474609375, 0.052764892578125, -0.01073455810546875, 0.01073455810546875, -0.02001953125, -0.0316162109375, -0.0055694580078125, -0.042999267578125, -0.0141448974609375, 0.0057220458984375, 0.00579071044921875, 0.01496124267578125, 0.031097412109375, 0.0018825531005859375, -0.01491546630859375, -0.017852783203125, 0.02203369140625, -0.00527191162109375, 0.040435791015625, 0.00318145751953125, -0.043121337890625, 0.049896240234375, 0.052337646484375, -0.0091705322265625, -0.01499176025390625, -0.02093505859375, -0.055450439453125, 0.0418701171875, 0.0204315185546875, 0.01058197021484375, 0.028656005859375, 0.003116607666015625, 0.009185791015625, 0.021728515625, -0.0171356201171875, -0.00690460205078125, 0.0019702911376953125, 0.0017099380493164062, 0.00241851806640625, 0.015380859375, 0.0162353515625, -0.0222320556640625, 0.015869140625, -0.0005087852478027344, -0.0032405853271484375, -0.018646240234375, 0.005840301513671875, -0.060028076171875, -0.07476806640625, 0.0240020751953125, -0.069091796875, 0.0035877227783203125, -0.057830810546875, -0.0045166015625, -0.0050811767578125, 0.10760498046875, -0.01541900634765625, -0.0179290771484375, 0.0206451416015625, 0.02313232421875, -0.061492919921875, -0.016876220703125, -0.046417236328125, -0.0170745849609375, -0.0305328369140625, -0.0019664764404296875, 0.0190887451171875, -0.0105438232421875, -0.0418701171875, 0.0474853515625, -0.052215576171875, -0.01055908203125, 0.0384521484375, -0.01534271240234375, 0.00914764404296875, 0.0171661376953125, -0.01033782958984375, -0.0194091796875, -0.032501220703125, -0.016204833984375, -0.06982421875, -0.000027418136596679688, 0.0085296630859375, 0.0255584716796875, -0.01293182373046875, 0.01268768310546875, 0.00376129150390625, 0.054718017578125, -0.0004343986511230469, -0.01409149169921875, 0.034912109375, 0.023590087890625, 0.0181121826171875, -0.00632476806640625, 0.0233001708984375, -0.032958984375, -0.036285400390625, -0.047149658203125, -0.00754547119140625, -0.01015472412109375, -0.037261962890625, -0.0192718505859375, -0.0310821533203125, 0.01242828369140625, -0.063720703125, -0.0010499954223632812, -0.019683837890625, -0.0033168792724609375, -0.0134124755859375, -0.00775146484375, -0.0213775634765625, -0.061798095703125, 0.037506103515625, -0.029449462890625, 0.004638671875, 0.007648468017578125, 0.08917236328125, 0.019927978515625, -0.0031585693359375, -0.00911712646484375, 0.0017023086547851562, 0.0416259765625, 0.0277557373046875, 0.039337158203125, 0.040008544921875, -0.0166778564453125, 0.00189208984375, 0.03314208984375, 0.0017728805541992188, -0.004238128662109375, -0.0048065185546875, 0.0241241455078125, -0.02252197265625, 0.003757476806640625, 0.02813720703125, -0.005367279052734375, -0.004154205322265625, 0.00835418701171875, -0.0220794677734375, 0.0467529296875, 0.0374755859375, -0.013763427734375, 0.001735687255859375, -0.0037384033203125, -0.044097900390625, 0.0107574462890625, -0.0819091796875, 0.04791259765625, 0.013458251953125, -0.01230621337890625, 0.0260467529296875, 0.0063934326171875, -0.009765625, -0.01406097412109375, -0.00495147705078125, -0.0112457275390625, 0.039947509765625, -0.022430419921875, 0.0018720626831054688, -0.0238037109375, -0.006740570068359375, 0.0633544921875, -0.0316162109375, -0.06182861328125, 0.0204315185546875, -0.024505615234375, 0.0667724609375, 0.0496826171875, -0.034454345703125, 0.027130126953125, 0.03594970703125, 0.00766754150390625, 0.0083160400390625, 0.008575439453125, -0.006591796875, -0.022918701171875, 0.036529541015625, 0.0035552978515625, -0.004169464111328125, 0.036346435546875, 0.024993896484375, -0.0293426513671875, 0.025482177734375, 0.0051727294921875, 0.050048828125, 0.047149658203125, -0.0276947021484375, 0.006000518798828125, 0.06463623046875, -0.0190277099609375, -0.038726806640625, -0.0084991455078125, -0.0173187255859375, -0.022613525390625, 0.0281982421875, 0.0321044921875, 0.01861572265625, 0.0219268798828125, -0.013275146484375, 0.006847381591796875, 0.00933837890625, 0.006511688232421875, -0.016510009765625, -0.05029296875, -0.00922393798828125, 0.031524658203125, 0.037384033203125, -0.043121337890625, -0.0006909370422363281, -0.0265350341796875, -0.0298309326171875, -0.02593994140625, 0.01477813720703125, -0.048858642578125, -0.0010242462158203125, 0.00756072998046875, -0.054290771484375, 0.00249481201171875, 0.0220184326171875, -0.01238250732421875, 0.0024318695068359375, -0.0173492431640625, -0.05419921875, 0.034576416015625, -0.027313232421875, 0.00754547119140625, -0.045654296875, 0.0341796875, -0.07098388671875, -0.01168060302734375, 0.06878662109375, 0.05511474609375, -0.035888671875, -0.0035343170166015625, -0.040557861328125, -0.01019287109375, -0.06268310546875, -0.04718017578125, -0.0226593017578125, 0.02716064453125, -0.007476806640625, 0.0020160675048828125, -0.0225982666015625, -0.0268707275390625, -0.05767822265625, 0.036285400390625, 0.049774169921875, 0.03466796875, 0.00536346435546875, 0.033538818359375, -0.0204925537109375, 0.03387451171875, 0.00885009765625, 0.01971435546875, -0.00832366943359375, -0.01849365234375, -0.0158233642578125, -0.04193115234375, 0.011505126953125, -0.03399658203125, 0.0174560546875, 0.03411865234375, 0.0426025390625, 0.015228271484375, 0.006927490234375, -0.00923919677734375, 0.0170135498046875, -0.0287933349609375, -0.024078369140625, -0.0297698974609375, -0.01456451416015625, 0.0004630088806152344, -0.021148681640625, 0.0251922607421875, -0.0035305023193359375, -0.006465911865234375, 0.0257110595703125, -0.01325225830078125, 0.01104736328125, -0.00852203369140625, -0.023956298828125, 0.01042938232421875, 0.025146484375, -0.0270233154296875, 0.01177978515625, 0.0167388916015625, 0.0034122467041015625, 0.0275115966796875, 0.00872039794921875, -0.0701904296875, 0.022216796875, -0.0110626220703125, -0.006744384765625, -0.004840850830078125, -0.033111572265625, 0.01363372802734375, 0.0419921875, 0.07843017578125, 0.08990478515625, -0.11419677734375, 0.02349853515625, 0.004192352294921875, -0.01486968994140625, 0.053863525390625, 0.00829315185546875, -0.023223876953125, -0.06256103515625, 0.011962890625, -0.0517578125, -0.024566650390625, -0.006977081298828125, -0.0221710205078125, -0.040252685546875, -0.0191650390625, -0.042236328125, 0.029022216796875, 0.055755615234375, 0.01290130615234375, -0.01168060302734375, 0.01476287841796875, 0.0167388916015625, -0.0208740234375, 0.01373291015625, -0.05975341796875, -0.07623291015625, -0.03558349609375, -0.01476287841796875, -0.0557861328125, 0.03594970703125, -0.02020263671875, 0.021484375, 0.03570556640625, -0.0219879150390625, 0.0268096923828125, 0.0172271728515625, -0.05242919921875, -0.06170654296875, -0.062225341796875, 0.0167694091796875, 0.053802490234375, -0.031036376953125, 0.042388916015625, 0.00791168212890625, -0.0556640625, -0.0166473388671875, 0.0005388259887695312, 0.059539794921875, -0.0129241943359375, -0.0168304443359375, 0.0264892578125, 0.042755126953125, -0.004547119140625, 0.0321044921875, 0.006435394287109375, -0.070068359375, -0.0772705078125, 0.0212554931640625, -0.072265625, 0.0013303756713867188, 0.056884765625, -0.04547119140625, 0.1011962890625, -0.031951904296875, 0.03717041015625, 0.06195068359375, 0.0140380859375, -0.03338623046875, -0.004467010498046875, -0.037841796875, 0.039520263671875, -0.00635528564453125, 0.0123291015625, -0.002597808837890625, 0.0239715576171875, -0.0111846923828125, -0.013671875, 0.087158203125, 0.0479736328125, -0.066162109375, -0.0250396728515625, 0.0149078369140625, -0.004428863525390625, -0.030731201171875, 0.0650634765625, -0.0007948875427246094, 0.0186920166015625, 0.032257080078125, -0.0147857666015625, 0.035491943359375, -0.010650634765625, -0.038604736328125, 0.01788330078125, 0.0096893310546875, 0.032379150390625, -0.0137481689453125, 0.05352783203125, -0.033111572265625, -0.0163726806640625, 0.0267181396484375, -0.0231475830078125, -0.0152587890625, -0.0008282661437988281, 0.01399993896484375, -0.0263824462890625, 0.01406097412109375, -0.025909423828125, 0.040557861328125, 0.01422119140625, 0.0136566162109375, 0.0355224609375, 0.0196533203125, 0.0135498046875, 0.0018930435180664062, 0.012969970703125, 0.0251922607421875, -0.00981903076171875, 0.01274871826171875, 0.01242828369140625, 0.0162506103515625, -0.01010894775390625, 0.062286376953125, 0.0232086181640625, 0.00591278076171875, -0.03289794921875, -0.04205322265625, 0.006221771240234375, 0.034576416015625, 0.0162353515625, 0.0235137939453125, 0.01294708251953125, -0.0305023193359375, 0.0650634765625, -0.03521728515625, 0.01012420654296875, 0.0127716064453125, 0.0011730194091796875, -0.002094268798828125, 0.046539306640625, -0.0183868408203125, 0.0184173583984375, -0.0028076171875, 0.004810333251953125, -0.020172119140625, -0.0245361328125, 0.01177978515625, 0.0010652542114257812, 0.04937744140625, 0.030517578125, -0.00759124755859375, 0.01155853271484375, -0.0057220458984375, -0.017120361328125, -0.03753662109375, -0.05938720703125, 0.02593994140625, 0.04168701171875, 0.00287628173828125, -0.007720947265625, 0.0031871795654296875, 0.053924560546875, 0.0235595703125, -0.0048370361328125, 0.05682373046875, 0.00879669189453125, -0.0183868408203125, -0.0021381378173828125, -0.01404571533203125, 0.027130126953125, -0.0011453628540039062, 0.00400543212890625, 0.03515625, 0.031585693359375, 0.0004982948303222656, 0.02301025390625, 0.0025920867919921875, -0.0178375244140625, 0.00789642333984375, -0.01465606689453125, 0.022003173828125, 0.0214996337890625, -0.060821533203125, 0.0164031982421875, -0.08062744140625, -0.043670654296875, 0.0270843505859375, 0.0372314453125, -0.0139312744140625, 0.0243988037109375, 0.016754150390625, -0.030975341796875, 0.0207366943359375, 0.0323486328125, -0.004878997802734375, -0.03314208984375, 0.00814056396484375, -0.040313720703125, -0.0019989013671875, 0.0158233642578125, 0.01294708251953125, 0.01776123046875, -0.015533447265625, 0.058319091796875, -0.04290771484375, -0.0000017881393432617188, 0.0024700164794921875, 0.04534912109375, -0.0239105224609375, -0.0308837890625, 0.047515869140625, 0.00720977783203125, 0.0125732421875, -0.0163421630859375, -0.0209808349609375, 0.0219573974609375, 0.0292816162109375, -0.003208160400390625, -0.02154541015625, 0.020721435546875, 0.019439697265625, 0.020843505859375, 0.0179443359375, -0.0281524658203125, 0.00028061866760253906, -0.0670166015625, -0.05218505859375, 0.045745849609375, 0.01410675048828125, 0.0198822021484375, 0.0257720947265625, 0.002582550048828125, -0.025787353515625, -0.00943756103515625, -0.006107330322265625, -0.031982421875, 0.01226806640625, 0.002750396728515625, 0.0032863616943359375, 0.025299072265625, -0.01050567626953125, -0.024322509765625, 0.024505615234375, -0.0236663818359375, 0.01959228515625, -0.0498046875, 0.039398193359375, 0.00826263427734375, 0.04559326171875, -0.021392822265625, 0.0022678375244140625, 0.0240478515625, 0.01401519775390625, 0.006595611572265625, -0.033966064453125, -0.0308380126953125, -0.037567138671875, -0.01148223876953125, 0.017486572265625, -0.0046234130859375, -0.06768798828125, -0.046783447265625, -0.023773193359375, 0.036407470703125, 0.01517486572265625, -0.0916748046875, 0.05950927734375, -0.0013227462768554688, -0.00891876220703125, -0.0111236572265625, -0.046142578125, 0.0300140380859375, 0.0219268798828125, -0.01015472412109375, 0.0653076171875, -0.01125335693359375, -0.06854248046875, 0.025634765625, 0.02203369140625, 0.038116455078125, -0.015411376953125, -0.051910400390625, 0.0228424072265625, 0.005489349365234375, 0.059722900390625, -0.041778564453125, -0.0214996337890625, -0.0438232421875, 0.00933074951171875, 0.0214385986328125, 0.003688812255859375, 0.00514984130859375, -0.004974365234375, -0.050537109375, -0.0169677734375, -0.00982666015625, -0.00902557373046875, -0.03912353515625, -0.031280517578125, 0.06707763671875, -0.001636505126953125, -0.01751708984375, -0.0030078887939453125, -0.008026123046875, -0.005889892578125, -0.01026153564453125, 0.0038127899169921875, -0.0216827392578125, -0.016021728515625, 0.0287322998046875, 0.004566192626953125, -0.01526641845703125, 0.0020904541015625, -0.003932952880859375, -0.048614501953125, 0.0445556640625, 0.058380126953125, -0.005584716796875, -0.0052490234375, 0.0236663818359375, -0.00927734375, 0.041412353515625, -0.01100921630859375, -0.0733642578125, -0.0345458984375, -0.0487060546875, -0.0233154296875, -0.01537322998046875, 0.00445556640625, -0.005023956298828125, 0.06964111328125, 0.039764404296875, -0.0030364990234375, -0.0279693603515625, 0.031829833984375, -0.0302581787109375, -0.07135009765625, 0.036529541015625, 0.0243682861328125, -0.01448822021484375, 0.0335693359375, 0.0260467529296875, -0.036712646484375, 0.034637451171875, 0.044677734375, -0.043304443359375, 0.0213623046875, 0.0014858245849609375, -0.04083251953125, -0.07574462890625, 0.0364990234375, -0.008026123046875, -0.0208282470703125, -0.033905029296875, -0.0126495361328125, -0.007659912109375, -0.044677734375, -0.0182037353515625, 0.0213470458984375, 0.009765625, -0.06170654296875, 0.031982421875, -0.0109405517578125, 0.024810791015625, -0.0802001953125, -0.028594970703125, 0.0044097900390625, 0.0084228515625, -0.01861572265625, 0.004474639892578125, 0.0035228729248046875, 0.0223388671875, -0.01324462890625, 0.04644775390625, -0.0009121894836425781, 0.017059326171875, -0.0243072509765625, 0.034027099609375, 0.0161285400390625, -0.01385498046875, 0.032745361328125, 0.0104217529296875, 0.0087432861328125, 0.0094451904296875, 0.0252532958984375, -0.036102294921875, 0.007610321044921875, 0.0240325927734375, 0.006317138671875, -0.0011758804321289062 ]
be0c5e077d8a469dd1805c2cc6857454cbb2453c
Wordpress Stackexchange Q: Contact Form 7 + Configure SMTP: Sender email appearing as my own email I have Contact Form 7 and Configure SMTP installed on my website. When a user submits a message through the form, everything comes through fine but the sender email is never displayed. Instead, it is displayed as my own email so I have no clue who sent the message. It just shows up as "To: my email, From: my email". Below are my settings for both CF7 and Configure SMTP. Are any of them wrong? Contact Form 7 Configure SMTP A: Congratulations, your Contact Form 7 and SMTP Configuration are correct so you are getting emails properly. Now coming back to your question: it is displayed as my own email : it is correct behavior because actually you are sending email to yourself :) the sender email is never displayed. To view the persons name and email address (filled in the form), you will need to include in the message body as displayed in following screenshot:
Q: Contact Form 7 + Configure SMTP: Sender email appearing as my own email I have Contact Form 7 and Configure SMTP installed on my website. When a user submits a message through the form, everything comes through fine but the sender email is never displayed. Instead, it is displayed as my own email so I have no clue who sent the message. It just shows up as "To: my email, From: my email". Below are my settings for both CF7 and Configure SMTP. Are any of them wrong? Contact Form 7 Configure SMTP A: Congratulations, your Contact Form 7 and SMTP Configuration are correct so you are getting emails properly. Now coming back to your question: it is displayed as my own email : it is correct behavior because actually you are sending email to yourself :) the sender email is never displayed. To view the persons name and email address (filled in the form), you will need to include in the message body as displayed in following screenshot:
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:443018", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137062" }
[ 0.0227203369140625, 0.0008692741394042969, -0.026397705078125, -0.007205963134765625, -0.00838470458984375, -0.040252685546875, 0.00963592529296875, -0.019866943359375, 0.00893402099609375, 0.01226043701171875, 0.029388427734375, -0.01641845703125, -0.004154205322265625, -0.052337646484375, 0.0205078125, -0.0093994140625, -0.0210418701171875, 0.070068359375, 0.02813720703125, -0.0128021240234375, 0.01129913330078125, -0.0230255126953125, -0.0269317626953125, 0.0167999267578125, -0.0206756591796875, 0.0281829833984375, 0.0504150390625, -0.01617431640625, -0.0246429443359375, -0.0257720947265625, 0.00008732080459594727, 0.005702972412109375, 0.043914794921875, 0.04034423828125, -0.082275390625, -0.0062255859375, -0.001277923583984375, 0.0017652511596679688, -0.054656982421875, 0.069091796875, 0.0234375, -0.0229339599609375, 0.0623779296875, -0.003360748291015625, 0.01448822021484375, -0.0231475830078125, 0.034881591796875, -0.042236328125, 0.00205230712890625, 0.05621337890625, -0.0020656585693359375, 0.044219970703125, -0.00728607177734375, 0.015655517578125, 0.0173187255859375, 0.0034046173095703125, -0.0302581787109375, 0.03472900390625, -0.0007462501525878906, 0.032318115234375, 0.0157318115234375, 0.056488037109375, -0.0079193115234375, 0.0111236572265625, -0.02227783203125, -0.01605224609375, 0.01068878173828125, -0.008026123046875, -0.006389617919921875, -0.03662109375, 0.0298919677734375, 0.0013980865478515625, 0.036224365234375, -0.016815185546875, -0.02032470703125, -0.0157623291015625, -0.0021953582763671875, 0.004726409912109375, 0.039459228515625, -0.0377197265625, -0.0013980865478515625, -0.08319091796875, -0.024566650390625, 0.0264739990234375, -0.0194549560546875, 0.050628662109375, 0.00696563720703125, -0.01076507568359375, -0.007663726806640625, -0.0165252685546875, -0.01399993896484375, -0.007747650146484375, -0.0026702880859375, -0.007049560546875, -0.03857421875, -0.0159149169921875, 0.015289306640625, 0.0107879638671875, -0.037506103515625, -0.041046142578125, -0.029693603515625, 0.00156402587890625, -0.0645751953125, 0.004283905029296875, -0.002002716064453125, 0.059326171875, -0.01122283935546875, -0.0086517333984375, 0.01352691650390625, 0.0017871856689453125, 0.01299285888671875, -0.00048422813415527344, 0.0032749176025390625, 0.0120697021484375, -0.016510009765625, -0.00716400146484375, -0.024261474609375, 0.0211639404296875, -0.021240234375, 0.0185699462890625, -0.0219573974609375, 0.021942138671875, 0.01322174072265625, -0.030487060546875, -0.0144500732421875, -0.0220184326171875, 0.012451171875, -0.044097900390625, 0.07818603515625, -0.0256195068359375, -0.0343017578125, 0.0130615234375, 0.07781982421875, 0.055145263671875, 0.0582275390625, -0.005001068115234375, 0.01386260986328125, 0.0090484619140625, 0.0122528076171875, -0.0006456375122070312, -0.0010547637939453125, -0.01282501220703125, 0.01410675048828125, 0.011505126953125, -0.0648193359375, 0.050994873046875, 0.006557464599609375, -0.038330078125, -0.00870513916015625, -0.0257110595703125, -0.1053466796875, -0.038421630859375, 0.007442474365234375, 0.01983642578125, 0.013763427734375, 0.0521240234375, 0.00839996337890625, 0.016326904296875, -0.03564453125, 0.02532958984375, 0.051025390625, -0.002719879150390625, 0.005435943603515625, 0.0209808349609375, -0.001605987548828125, 0.0012760162353515625, -0.0540771484375, -0.00038886070251464844, 0.01103973388671875, -0.08050537109375, 0.00612640380859375, 0.036773681640625, 0.0209503173828125, 0.00019347667694091797, 0.031494140625, 0.0135345458984375, 0.0300140380859375, 0.0021953582763671875, 0.01971435546875, 0.0054931640625, -0.03289794921875, -0.0297698974609375, 0.050933837890625, -0.0360107421875, -0.06341552734375, 0.04498291015625, -0.01727294921875, 0.0202484130859375, 0.0286712646484375, -0.0044708251953125, 0.03863525390625, 0.040924072265625, -0.00080108642578125, 0.027374267578125, -0.00653839111328125, -0.050079345703125, -0.03363037109375, -0.000118255615234375, -0.021636962890625, 0.011138916015625, -0.0155181884765625, -0.038970947265625, 0.037384033203125, -0.00917816162109375, 0.0003693103790283203, -0.0228271484375, -0.01279449462890625, 0.01088714599609375, -0.00711822509765625, -0.0043182373046875, 0.015869140625, -0.0190887451171875, 0.00013911724090576172, -0.043914794921875, -0.0254058837890625, 0.004161834716796875, -0.018218994140625, 0.0382080078125, -0.01396942138671875, 0.059539794921875, -0.0244293212890625, -0.04449462890625, -0.0167236328125, 0.0154876708984375, -0.00978851318359375, 0.00991058349609375, -0.038330078125, -0.00690460205078125, -0.0214691162109375, 0.007518768310546875, -0.0257110595703125, 0.05035400390625, -0.0221405029296875, 0.0027561187744140625, -0.052154541015625, -0.0018739700317382812, -0.02459716796875, 0.01259613037109375, 0.002475738525390625, 0.0343017578125, 0.0162353515625, -0.006870269775390625, 0.0163421630859375, 0.035675048828125, 0.0185089111328125, -0.01300811767578125, 0.032928466796875, 0.007724761962890625, 0.037109375, 0.02362060546875, -0.024749755859375, -0.035675048828125, 0.0289154052734375, -0.09088134765625, 0.0244140625, 0.0362548828125, -0.016021728515625, -0.048583984375, -0.00696563720703125, 0.00445556640625, 0.0295257568359375, 0.03375244140625, -0.0269622802734375, 0.0278472900390625, 0.010711669921875, 0.02203369140625, 0.022735595703125, 0.0301513671875, -0.0050506591796875, 0.00695037841796875, -0.00392913818359375, -0.036163330078125, -0.0003147125244140625, 0.033843994140625, 0.043731689453125, 0.033294677734375, -0.0263519287109375, -0.03033447265625, 0.042022705078125, 0.036346435546875, -0.0041046142578125, -0.007740020751953125, -0.00347900390625, 0.0018777847290039062, 0.010223388671875, -0.03826904296875, 0.0082244873046875, 0.019073486328125, 0.03570556640625, 0.033172607421875, 0.0316162109375, 0.0200653076171875, -0.00620269775390625, 0.0545654296875, -0.023590087890625, -0.00952911376953125, -0.0458984375, 0.0038776397705078125, 0.0364990234375, -0.048828125, -0.00484466552734375, 0.05218505859375, -0.04266357421875, 0.043121337890625, 0.00246429443359375, -0.0095672607421875, -0.031402587890625, 0.06304931640625, 0.02362060546875, -0.0278167724609375, -0.021514892578125, 0.0271453857421875, 0.01220703125, -0.0264434814453125, -0.0243682861328125, -0.0283355712890625, -0.042449951171875, -0.041015625, -0.0601806640625, -0.0413818359375, -0.039154052734375, -0.0556640625, -0.048126220703125, -0.0013322830200195312, -0.039947509765625, 0.0391845703125, 0.01177215576171875, 0.0104522705078125, 0.01194000244140625, -0.04791259765625, -0.04248046875, -0.06365966796875, -0.08221435546875, -0.0103302001953125, 0.0138702392578125, 0.0195159912109375, 0.0008149147033691406, 0.00983428955078125, -0.0009317398071289062, -0.0259552001953125, 0.004840850830078125, -0.00966644287109375, -0.0037384033203125, -0.00391387939453125, -0.037506103515625, 0.017181396484375, 0.0026721954345703125, 0.029571533203125, -0.0545654296875, -0.030426025390625, 0.0196380615234375, -0.040740966796875, -0.01068878173828125, -0.02056884765625, 0.034027099609375, -0.002567291259765625, -0.010833740234375, -0.012969970703125, 0.035614013671875, -0.0440673828125, 0.04071044921875, 0.00421905517578125, 0.007274627685546875, -0.01375579833984375, -0.012115478515625, -0.045745849609375, -0.0188446044921875, -0.0016546249389648438, -0.0168609619140625, -0.0002856254577636719, 0.0245208740234375, -0.041015625, 0.0029449462890625, -0.01250457763671875, -0.02496337890625, -0.0198211669921875, 0.027191162109375, -0.02435302734375, 0.05609130859375, 0.0266571044921875, -0.0008511543273925781, -0.0009202957153320312, 0.037078857421875, 0.00839996337890625, -0.0826416015625, 0.05767822265625, -0.029876708984375, -0.050628662109375, -0.01424407958984375, -0.0205230712890625, 0.0189208984375, 0.08868408203125, 0.0151519775390625, -0.028167724609375, 0.046478271484375, 0.0192108154296875, -0.0184783935546875, 0.0003447532653808594, -0.041412353515625, -0.0125732421875, -0.036590576171875, 0.0175933837890625, -0.0224151611328125, 0.00020444393157958984, 0.00609588623046875, -0.06964111328125, 0.005924224853515625, -0.064697265625, -0.0296173095703125, 0.0230255126953125, -0.0170135498046875, -0.04034423828125, -0.034149169921875, -0.030120849609375, 0.04876708984375, -0.036407470703125, -0.05511474609375, -0.01392364501953125, 0.034149169921875, 0.03546142578125, -0.056610107421875, 0.0826416015625, -0.02008056640625, 0.05010986328125, 0.0300750732421875, 0.0226593017578125, 0.00267791748046875, -0.035888671875, 0.0418701171875, 0.03045654296875, 0.01641845703125, 0.0049285888671875, 0.015899658203125, -0.01216888427734375, -0.05206298828125, -0.0271453857421875, -0.0087127685546875, 0.023162841796875, 0.041900634765625, -0.044647216796875, -0.0677490234375, -0.052825927734375, -0.0262451171875, -0.0025882720947265625, -0.003055572509765625, -0.0203857421875, -0.0401611328125, -0.02532958984375, -0.004688262939453125, -0.023651123046875, 0.0111846923828125, 0.029327392578125, 0.03314208984375, 0.00787353515625, 0.004150390625, -0.0197601318359375, -0.0222930908203125, 0.036773681640625, 0.044769287109375, -0.006435394287109375, 0.0276641845703125, -0.019561767578125, -0.029296875, 0.04541015625, 0.01091766357421875, -0.021942138671875, 0.102783203125, -0.005767822265625, -0.01522064208984375, 0.038818359375, -0.004207611083984375, -0.04632568359375, -0.0172576904296875, 0.016448974609375, -0.01428985595703125, 0.031890869140625, 0.004962921142578125, -0.0031642913818359375, 0.0263671875, 0.01678466796875, -0.05377197265625, 0.0267791748046875, -0.036468505859375, 0.007061004638671875, 0.0037899017333984375, 0.0018568038940429688, -0.00893402099609375, -0.006488800048828125, -0.0032253265380859375, -0.01300811767578125, -0.0343017578125, -0.00943756103515625, -0.01314544677734375, 0.048736572265625, -0.0011873245239257812, 0.005573272705078125, -0.01523590087890625, 0.053741455078125, 0.025909423828125, -0.0259552001953125, -0.017364501953125, -0.0161285400390625, -0.00800323486328125, -0.034423828125, 0.003265380859375, 0.0027942657470703125, 0.046905517578125, 0.06500244140625, 0.03466796875, 0.00921630859375, 0.0789794921875, 0.010772705078125, -0.0266876220703125, 0.024444580078125, -0.0313720703125, -0.0284881591796875, 0.05731201171875, -0.0257110595703125, 0.005657196044921875, 0.0147247314453125, 0.010528564453125, 0.0232086181640625, -0.004085540771484375, 0.030364990234375, 0.0180206298828125, 0.0065460205078125, -0.03863525390625, 0.02301025390625, -0.05633544921875, -0.00899505615234375, 0.0109100341796875, 0.0239715576171875, 0.046142578125, 0.0205535888671875, -0.01209259033203125, 0.00687408447265625, -0.012939453125, 0.027435302734375, 0.016448974609375, -0.021697998046875, -0.0135040283203125, -0.00775146484375, -0.0022869110107421875, -0.0031986236572265625, -0.00926971435546875, 0.01558685302734375, -0.044097900390625, 0.000640869140625, 0.0172882080078125, -0.0082855224609375, -0.00508880615234375, -0.01849365234375, 0.08154296875, 0.01284027099609375, -0.030609130859375, -0.037139892578125, -0.039703369140625, -0.00629425048828125, 0.038787841796875, 0.0697021484375, -0.0196380615234375, -0.0245361328125, -0.005214691162109375, 0.02337646484375, -0.0545654296875, 0.0283203125, 0.003978729248046875, -0.004543304443359375, -0.07177734375, 0.022247314453125, -0.041107177734375, -0.005146026611328125, -0.0074920654296875, -0.0255279541015625, -0.04400634765625, -0.0229034423828125, 0.00968170166015625, 0.0114898681640625, -0.027801513671875, -0.06109619140625, -0.0267791748046875, -0.004917144775390625, 0.025146484375, 0.002216339111328125, 0.007106781005859375, 0.0205841064453125, -0.05279541015625, 0.08392333984375, -0.01251983642578125, -0.030548095703125, -0.052642822265625, -0.008209228515625, -0.003093719482421875, -0.0594482421875, 0.009735107421875, -0.004726409912109375, 0.0229339599609375, 0.00970458984375, -0.016204833984375, 0.006633758544921875, -0.0141448974609375, -0.0017147064208984375, 0.0015554428100585938, -0.0103607177734375, 0.06817626953125, 0.0078125, -0.002819061279296875, 0.0149078369140625, 0.01070404052734375, 0.01145172119140625, -0.0087890625, -0.0001901388168334961, -0.01392364501953125, 0.0218963623046875, 0.0032024383544921875, -0.03558349609375, 0.0046234130859375, 0.0477294921875, 0.056915283203125, -0.0199432373046875, 0.0264434814453125, 0.045257568359375, 0.01010894775390625, -0.0011663436889648438, 0.01222991943359375, 0.011962890625, -0.0279083251953125, -0.01386260986328125, -0.01641845703125, 0.0063018798828125, -0.022430419921875, -0.0035381317138671875, 0.036529541015625, 0.0941162109375, 0.11053466796875, -0.121826171875, -0.0044403076171875, 0.02264404296875, -0.007083892822265625, 0.003894805908203125, -0.01175689697265625, -0.0020275115966796875, 0.0113372802734375, 0.02557373046875, 0.01003265380859375, -0.01479339599609375, 0.01407623291015625, 0.00859832763671875, -0.0051116943359375, 0.032562255859375, 0.0304412841796875, 0.0159149169921875, 0.048675537109375, -0.0657958984375, -0.0298309326171875, 0.006481170654296875, -0.0219268798828125, -0.00661468505859375, -0.01053619384765625, -0.034576416015625, -0.03924560546875, -0.01441192626953125, -0.04815673828125, 0.0193328857421875, -0.046234130859375, 0.0192718505859375, 0.020904541015625, 0.0263671875, -0.01358795166015625, -0.036773681640625, 0.00391387939453125, -0.01451873779296875, 0.0753173828125, -0.04193115234375, 0.01654052734375, 0.08465576171875, -0.028076171875, 0.0230865478515625, 0.06695556640625, -0.034088134765625, -0.00943756103515625, 0.026153564453125, 0.06427001953125, 0.019256591796875, -0.059051513671875, 0.026702880859375, 0.041351318359375, -0.0260009765625, -0.004329681396484375, -0.01190948486328125, -0.01459503173828125, 0.00341033935546875, -0.01009368896484375, -0.02606201171875, 0.029876708984375, -0.002368927001953125, -0.05401611328125, 0.07586669921875, 0.0228118896484375, 0.03985595703125, 0.0008153915405273438, 0.0278167724609375, 0.011383056640625, 0.0223846435546875, 0.004337310791015625, -0.0017690658569335938, 0.01486968994140625, 0.04052734375, -0.0231781005859375, -0.037322998046875, 0.0101318359375, 0.09637451171875, 0.04827880859375, 0.0017652511596679688, 0.004825592041015625, 0.02166748046875, 0.07098388671875, 0.02655029296875, -0.0175933837890625, 0.0007219314575195312, -0.00836944580078125, 0.014373779296875, 0.020782470703125, 0.01280975341796875, 0.01824951171875, 0.041229248046875, -0.0679931640625, 0.045196533203125, 0.00057220458984375, -0.0063018798828125, 0.01332855224609375, 0.034942626953125, 0.035980224609375, -0.01654052734375, -0.0119171142578125, -0.0286407470703125, -0.0309600830078125, 0.019378662109375, -0.0009965896606445312, -0.0882568359375, 0.00693511962890625, -0.0535888671875, 0.046478271484375, -0.002391815185546875, 0.0286712646484375, 0.0309906005859375, 0.0199432373046875, 0.0379638671875, -0.025115966796875, 0.00524139404296875, 0.0031909942626953125, -0.00673675537109375, 0.013458251953125, -0.021270751953125, 0.035888671875, -0.034027099609375, -0.0501708984375, -0.0159912109375, 0.0072479248046875, 0.007442474365234375, -0.0225372314453125, 0.0206756591796875, 0.005451202392578125, -0.00969696044921875, -0.0175323486328125, -0.043975830078125, -0.0254669189453125, 0.0150909423828125, -0.05877685546875, -0.0050048828125, 0.0040435791015625, 0.047149658203125, -0.03326416015625, -0.03076171875, -0.00412750244140625, -0.0198516845703125, -0.014251708984375, 0.006977081298828125, 0.007282257080078125, 0.01256561279296875, 0.01056671142578125, 0.00965118408203125, -0.0123748779296875, 0.01303863525390625, -0.022918701171875, -0.005191802978515625, 0.04248046875, -0.004947662353515625, 0.0281219482421875, 0.07159423828125, -0.0030517578125, 0.0034999847412109375, 0.00771331787109375, 0.0340576171875, 0.025848388671875, 0.0129547119140625, 0.0007619857788085938, -0.003711700439453125, -0.004608154296875, -0.031707763671875, 0.045654296875, -0.042388916015625, 0.01031494140625, -0.0015659332275390625, -0.02203369140625, -0.00901031494140625, -0.03173828125, 0.0716552734375, -0.01184844970703125, 0.03594970703125, -0.00489044189453125, -0.0277099609375, -0.00827789306640625, -0.037078857421875, 0.0697021484375, 0.014312744140625, -0.055023193359375, -0.040008544921875, 0.0235748291015625, 0.03387451171875, -0.0157012939453125, 0.0121002197265625, 0.005771636962890625, 0.0274200439453125, 0.0235443115234375, -0.0212554931640625, 0.05950927734375, -0.0007085800170898438, -0.036041259765625, -0.072265625, 0.03839111328125, -0.059844970703125, -0.0289306640625, -0.0211181640625, 0.0131988525390625, 0.035308837890625, -0.0206298828125, 0.040985107421875, -0.00872802734375, -0.004993438720703125, -0.0513916015625, 0.075927734375, -0.07904052734375, -0.0885009765625, 0.1290283203125, -0.0026531219482421875, -0.021728515625, 0.00582122802734375, -0.06292724609375, 0.0107269287109375, 0.02435302734375, -0.00040650367736816406, 0.0216217041015625, 0.017303466796875, 0.0089111328125, -0.0227508544921875, -0.0130157470703125, -0.0035877227783203125, -0.0264434814453125, 0.0180511474609375, 0.0127105712890625, 0.01531982421875, 0.0684814453125, 0.00585174560546875, 0.0152587890625, -0.009735107421875, -0.024993896484375, 0.008575439453125, -0.037017822265625, 0.0286102294921875, 0.028900146484375, -0.0199127197265625, -0.0221099853515625, -0.0244903564453125, -0.0294189453125, -0.00241851806640625, 0.00453948974609375, 0.033203125, -0.011383056640625, -0.01253509521484375, 0.0280303955078125, -0.00799560546875, 0.03521728515625, -0.01197052001953125, -0.003437042236328125, -0.025970458984375, 0.0057220458984375, 0.01372528076171875, -0.032745361328125, -0.0227813720703125, -0.00580596923828125, 0.01019287109375, 0.0167999267578125, 0.0182037353515625, 0.01204681396484375, 0.01242828369140625, -0.010711669921875, 0.0240631103515625, -0.0163116455078125, 0.00876617431640625, -0.0151824951171875, -0.01241302490234375, 0.017181396484375, -0.0115814208984375, -0.004962921142578125, -0.00798797607421875, -0.017120361328125, -0.0281219482421875, -0.0215606689453125, -0.022918701171875, 0.02655029296875, 0.016754150390625, -0.037567138671875, 0.005100250244140625, 0.03326416015625, -0.072021484375, -0.0205230712890625, -0.06219482421875, 0.020782470703125, -0.06097412109375, -0.014678955078125, -0.0188751220703125, 0.0247802734375, 0.0015125274658203125, -0.0225372314453125, -0.01314544677734375, -0.0012922286987304688, -0.00782012939453125, -0.018157958984375, -0.003978729248046875, -0.01073455810546875, -0.028594970703125, 0.008087158203125, 0.027374267578125, 0.025421142578125, 0.0018815994262695312, -0.0086212158203125, 0.00567626953125, -0.0011644363403320312, -0.0026531219482421875, -0.0205078125, -0.00809478759765625, -0.0280609130859375, 0.01100921630859375, -0.0447998046875, 0.07342529296875, -0.0119476318359375, -0.0303497314453125, -0.0047607421875, -0.03753662109375, -0.029388427734375, -0.039031982421875, 0.024200439453125, -0.00502777099609375, 0.033172607421875, 0.043060302734375, -0.0272216796875, -0.0262451171875, -0.0212249755859375, -0.0655517578125, 0.01444244384765625, -0.01424407958984375, -0.0073394775390625, -0.02166748046875, 0.03338623046875, 0.0070037841796875, -0.0008759498596191406, -0.001384735107421875, 0.021087646484375, -0.007007598876953125, 0.006458282470703125, 0.001201629638671875, -0.002429962158203125, -0.020355224609375, 0.000148773193359375, -0.00806427001953125, -0.017547607421875, -0.007724761962890625, -0.00536346435546875, -0.03472900390625, 0.0008401870727539062, -0.0310516357421875, -0.0272674560546875, -0.03399658203125, -0.077392578125, 0.044769287109375, -0.02362060546875, -0.0178985595703125, 0.014251708984375, 0.0484619140625, -0.007587432861328125, 0.06048583984375, -0.00959014892578125, -0.018035888671875, -0.01425933837890625, 0.0004868507385253906, 0.01190948486328125, -0.024993896484375, 0.0003743171691894531, -0.00452423095703125, -0.004894256591796875, 0.0157470703125, -0.0114288330078125, 0.0063934326171875, -0.01094818115234375, 0.041168212890625, -0.0102691650390625, 0.05609130859375, -0.0066375732421875, -0.085693359375, -0.03125, 0.0079803466796875, -0.0289306640625, 0.009613037109375, 0.00891876220703125, -0.0168914794921875, 0.016265869140625, 0.04217529296875, 0.004383087158203125, -0.015594482421875, 0.010833740234375, 0.04095458984375, 0.0254058837890625, -0.0020503997802734375 ]
fc282f7552095a1e20590deacf0929f125cb2678
Wordpress Stackexchange Q: disable wordpress canonical tag meta wordpress core automatically generates canonical tag in HEAD section: <link rel="canonical" href="http://blabla.com" /> how to disable/remove that? A: found solution: before wp_head() command, insert: remove_action('wp_head', 'rel_canonical'); p.s. if generator meta tag is being added from elsewhere (i.e. from theme or plugin, rather than wp-core) and was priority other than 10, then you might need to put the exact priority, as is was given from that theme/plugin: i.e. remove_action('wp_head', 'rel_canonical', 47);
Q: disable wordpress canonical tag meta wordpress core automatically generates canonical tag in HEAD section: <link rel="canonical" href="http://blabla.com" /> how to disable/remove that? A: found solution: before wp_head() command, insert: remove_action('wp_head', 'rel_canonical'); p.s. if generator meta tag is being added from elsewhere (i.e. from theme or plugin, rather than wp-core) and was priority other than 10, then you might need to put the exact priority, as is was given from that theme/plugin: i.e. remove_action('wp_head', 'rel_canonical', 47);
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:443068", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137233" }
[ 0.043792724609375, 0.0228424072265625, -0.006687164306640625, 0.0099945068359375, 0.0279541015625, -0.052825927734375, 0.08203125, -0.04364013671875, -0.0036754608154296875, 0.05230712890625, 0.03753662109375, -0.044189453125, 0.0518798828125, -0.04644775390625, -0.0293121337890625, 0.0020580291748046875, 0.0284881591796875, 0.027923583984375, 0.029205322265625, -0.00182342529296875, 0.0021820068359375, 0.0289154052734375, -0.0062255859375, 0.0615234375, 0.031158447265625, -0.121337890625, 0.0848388671875, -0.031951904296875, 0.022064208984375, -0.034698486328125, 0.0289154052734375, 0.03216552734375, -0.002826690673828125, 0.03924560546875, -0.02874755859375, -0.046905517578125, -0.0007524490356445312, 0.018646240234375, 0.0137481689453125, -0.0022525787353515625, 0.0005979537963867188, -0.0053863525390625, 0.004180908203125, -0.0160675048828125, -0.01959228515625, 0.00750732421875, -0.0074920654296875, -0.018402099609375, 0.03662109375, 0.0302581787109375, 0.006008148193359375, 0.0265350341796875, 0.01395416259765625, -0.0628662109375, -0.0221405029296875, -0.0202789306640625, -0.014617919921875, -0.001529693603515625, 0.0177001953125, 0.01480865478515625, 0.00743865966796875, 0.0012769699096679688, 0.005413055419921875, -0.01264190673828125, 0.0203094482421875, -0.0233306884765625, -0.009368896484375, 0.0273590087890625, -0.0482177734375, 0.0188140869140625, 0.04229736328125, -0.047393798828125, 0.01303863525390625, -0.011993408203125, 0.01139068603515625, -0.0186614990234375, -0.0096893310546875, -0.032806396484375, 0.02459716796875, 0.01023101806640625, 0.0187530517578125, -0.0248260498046875, 0.006755828857421875, -0.0002732276916503906, -0.00016117095947265625, 0.0210418701171875, -0.0045013427734375, -0.00917816162109375, -0.03448486328125, -0.003849029541015625, -0.0296783447265625, -0.0299835205078125, 0.007579803466796875, -0.0189056396484375, -0.021514892578125, -0.00897979736328125, 0.025054931640625, 0.06134033203125, -0.035064697265625, -0.029571533203125, 0.0178985595703125, -0.0307464599609375, -0.00782012939453125, -0.042327880859375, -0.0017976760864257812, 0.058013916015625, -0.02777099609375, -0.004947662353515625, 0.037139892578125, 0.0245361328125, 0.0256195068359375, -0.040771484375, -0.0133056640625, -0.0014162063598632812, -0.0157318115234375, 0.004070281982421875, -0.04437255859375, 0.0255126953125, -0.01190185546875, 0.004169464111328125, 0.00830841064453125, 0.060577392578125, 0.0038166046142578125, -0.048858642578125, 0.01220703125, 0.00482177734375, -0.004009246826171875, -0.05242919921875, -0.0589599609375, -0.0079193115234375, -0.01442718505859375, 0.030059814453125, 0.087158203125, 0.055999755859375, -0.0036029815673828125, 0.007198333740234375, 0.0223388671875, -0.02313232421875, -0.0254058837890625, 0.02490234375, -0.0274658203125, -0.02130126953125, 0.027069091796875, -0.048187255859375, 0.038177490234375, -0.0098724365234375, 0.0289764404296875, 0.03826904296875, -0.0030517578125, 0.007564544677734375, 0.01226806640625, 0.0300750732421875, 0.02984619140625, -0.0020427703857421875, -0.0043792724609375, -0.045745849609375, 0.039947509765625, -0.042205810546875, 0.0013628005981445312, -0.04693603515625, -0.0153045654296875, -0.021514892578125, 0.030120849609375, -0.01020050048828125, -0.0499267578125, 0.0310211181640625, -0.010833740234375, -0.00429534912109375, 0.0211944580078125, 0.0189666748046875, -0.0237579345703125, -0.01544189453125, 0.047760009765625, -0.006877899169921875, -0.00934600830078125, 0.01025390625, 0.0035915374755859375, 0.0225830078125, 0.016143798828125, 0.054046630859375, 0.027313232421875, -0.0172271728515625, 0.0718994140625, -0.015838623046875, -0.07470703125, 0.051300048828125, 0.000629425048828125, 0.095703125, 0.0162353515625, 0.006744384765625, 0.0628662109375, -0.010955810546875, -0.042999267578125, 0.043060302734375, -0.0117340087890625, -0.031524658203125, -0.00992584228515625, 0.0079345703125, -0.0097503662109375, -0.01045989990234375, 0.02386474609375, 0.0185394287109375, -0.036529541015625, -0.029296875, -0.129638671875, -0.0028285980224609375, -0.05133056640625, 0.05877685546875, 0.003704071044921875, 0.0261383056640625, 0.009429931640625, -0.031341552734375, 0.01019287109375, -0.00826263427734375, -0.0187225341796875, -0.0273590087890625, 0.033233642578125, -0.0037212371826171875, 0.0269775390625, -0.041778564453125, 0.042388916015625, 0.034576416015625, 0.00991058349609375, 0.0207977294921875, 0.015350341796875, -0.00499725341796875, -0.01335906982421875, -0.00769805908203125, -0.00435638427734375, 0.020294189453125, -0.03106689453125, 0.021453857421875, -0.0007848739624023438, 0.0231170654296875, -0.038360595703125, -0.01540374755859375, -0.004878997802734375, -0.0180511474609375, -0.0007143020629882812, 0.03692626953125, 0.024749755859375, 0.007137298583984375, -0.0022869110107421875, 0.026947021484375, 0.0218658447265625, -0.03729248046875, 0.00010251998901367188, 0.02301025390625, 0.0177154541015625, -0.0146331787109375, -0.02264404296875, -0.01560211181640625, 0.0640869140625, 0.0260772705078125, 0.0205078125, 0.0290374755859375, -0.026397705078125, -0.04193115234375, 0.03631591796875, -0.03472900390625, 0.0268402099609375, -0.006069183349609375, -0.03802490234375, 0.01296234130859375, 0.0080718994140625, -0.0168609619140625, 0.00792694091796875, -0.00798797607421875, -0.00909423828125, 0.002689361572265625, 0.03643798828125, -0.0163116455078125, -0.013275146484375, -0.006336212158203125, 0.0352783203125, -0.0175933837890625, -0.039306640625, 0.0281219482421875, -0.019439697265625, -0.01329803466796875, -0.02215576171875, 0.0196380615234375, -0.0020294189453125, -0.0187530517578125, -0.032318115234375, -0.0181121826171875, 0.02301025390625, -0.0166473388671875, -0.0034084320068359375, -0.0116424560546875, 0.0038738250732421875, 0.05902099609375, -0.01096343994140625, 0.04266357421875, 0.004337310791015625, -0.0067291259765625, 0.00666046142578125, -0.06658935546875, 0.0285186767578125, -0.04449462890625, 0.0787353515625, 0.06744384765625, -0.018096923828125, 0.0228424072265625, 0.002460479736328125, -0.0201568603515625, 0.024322509765625, 0.0008521080017089844, -0.018280029296875, 0.028411865234375, -0.07720947265625, -0.007282257080078125, 0.0225677490234375, -0.01457977294921875, 0.028228759765625, -0.0233306884765625, 0.012298583984375, 0.0019092559814453125, -0.07476806640625, -0.049652099609375, 0.006870269775390625, 0.0180511474609375, 0.007381439208984375, 0.01873779296875, 0.01038360595703125, -0.026885986328125, 0.033935546875, 0.00771331787109375, -0.030364990234375, -0.01535797119140625, -0.029632568359375, -0.04754638671875, -0.032806396484375, -0.0082855224609375, 0.000023603439331054688, -0.0207366943359375, 0.014373779296875, -0.001316070556640625, 0.0032329559326171875, -0.01107025146484375, 0.03070068359375, -0.049163818359375, -0.0019254684448242188, 0.0012264251708984375, -0.0121612548828125, 0.021759033203125, -0.005466461181640625, 0.0022335052490234375, -0.00412750244140625, 0.031890869140625, -0.01861572265625, -0.019622802734375, 0.004848480224609375, 0.0178680419921875, 0.03106689453125, 0.0005183219909667969, -0.020294189453125, -0.003261566162109375, 0.004825592041015625, -0.033538818359375, -0.028778076171875, -0.0273284912109375, -0.034912109375, 0.0273590087890625, 0.01708984375, -0.0029239654541015625, -0.003185272216796875, 0.0162200927734375, 0.034271240234375, 0.00363922119140625, 0.0540771484375, -0.038360595703125, 0.0697021484375, 0.0002613067626953125, 0.0229644775390625, -0.0819091796875, 0.0447998046875, -0.007564544677734375, 0.0302581787109375, 0.0224151611328125, -0.0009813308715820312, 0.00909423828125, -0.0300750732421875, -0.01513671875, -0.0021572113037109375, 0.04351806640625, -0.0267333984375, 0.0172119140625, 0.004550933837890625, -0.020111083984375, 0.01001739501953125, 0.0758056640625, -0.07666015625, -0.0252532958984375, -0.034515380859375, 0.006160736083984375, 0.01439666748046875, -0.0352783203125, 0.017486572265625, -0.025604248046875, -0.1033935546875, 0.02734375, 0.0013523101806640625, -0.046417236328125, -0.00970458984375, 0.005847930908203125, -0.05804443359375, -0.041534423828125, 0.0247802734375, -0.005435943603515625, -0.019439697265625, 0.019317626953125, -0.0310516357421875, -0.007160186767578125, -0.04486083984375, 0.0107574462890625, -0.0828857421875, -0.0158843994140625, -0.03692626953125, 0.06964111328125, 0.01485443115234375, 0.00359344482421875, -0.0145263671875, 0.045166015625, 0.01169586181640625, -0.0012750625610351562, -0.00955963134765625, -0.0176239013671875, 0.01509857177734375, 0.033416748046875, -0.0132904052734375, -0.0015277862548828125, -0.0008945465087890625, 0.0174407958984375, -0.01134490966796875, 0.0302276611328125, -0.0283966064453125, -0.0271148681640625, 0.036895751953125, -0.058563232421875, -0.06341552734375, -0.025238037109375, -0.0218505859375, 0.027008056640625, -0.0239105224609375, 0.0085601806640625, -0.035491943359375, -0.07415771484375, 0.07391357421875, 0.02099609375, 0.0006937980651855469, -0.0183868408203125, 0.057464599609375, 0.00647735595703125, -0.03790283203125, -0.0236663818359375, 0.06658935546875, 0.01137542724609375, -0.0079345703125, 0.06536865234375, 0.0010824203491210938, 0.0292510986328125, 0.0167999267578125, -0.03057861328125, 0.032012939453125, -0.0242767333984375, 0.043243408203125, -0.027374267578125, -0.03363037109375, 0.0350341796875, -0.020355224609375, -0.0104522705078125, 0.0311431884765625, 0.035308837890625, -0.01003265380859375, 0.0362548828125, -0.007343292236328125, 0.040802001953125, -0.07171630859375, -0.018707275390625, -0.025390625, 0.01702880859375, 0.044769287109375, -0.020965576171875, 0.00545501708984375, 0.0025882720947265625, -0.0121002197265625, -0.013153076171875, 0.01508331298828125, -0.0166778564453125, 0.017578125, -0.07037353515625, 0.016204833984375, 0.00220489501953125, -0.044189453125, -0.01629638671875, -0.012420654296875, 0.042510986328125, -0.00022161006927490234, -0.04034423828125, -0.00887298583984375, -0.00315093994140625, 0.03045654296875, 0.039947509765625, -0.021331787109375, 0.0233917236328125, 0.00800323486328125, -0.0011358261108398438, 0.0294952392578125, -0.0162811279296875, -0.0167999267578125, -0.014678955078125, -0.0211029052734375, -0.02056884765625, -0.0027637481689453125, 0.046112060546875, 0.00833892822265625, -0.0167236328125, 0.039154052734375, -0.0130157470703125, 0.0176849365234375, 0.00931549072265625, 0.035675048828125, 0.0229644775390625, -0.0440673828125, 0.029754638671875, -0.0225830078125, 0.0256805419921875, -0.0248260498046875, 0.01558685302734375, 0.039825439453125, 0.0266571044921875, 0.027008056640625, -0.0187530517578125, -0.00921630859375, -0.036529541015625, -0.0012044906616210938, 0.0261688232421875, -0.052337646484375, -0.049835205078125, -0.0171661376953125, 0.0034503936767578125, 0.0071563720703125, -0.03826904296875, -0.00885772705078125, 0.022857666015625, -0.0083465576171875, 0.0312042236328125, 0.032440185546875, -0.029541015625, 0.006866455078125, 0.01334381103515625, 0.0215911865234375, -0.011077880859375, -0.00688934326171875, -0.072509765625, 0.003986358642578125, -0.0258941650390625, 0.00719451904296875, 0.01493072509765625, -0.01556396484375, 0.032440185546875, -0.030303955078125, -0.0017223358154296875, 0.00255584716796875, -0.0005307197570800781, 0.0533447265625, 0.00951385498046875, -0.03582763671875, -0.029052734375, -0.051116943359375, -0.031463623046875, -0.006488800048828125, -0.016387939453125, -0.005512237548828125, 0.01517486572265625, -0.007518768310546875, 0.03228759765625, -0.024871826171875, -0.0033664703369140625, -0.0096893310546875, 0.04022216796875, 0.01043701171875, 0.07562255859375, -0.034393310546875, 0.0477294921875, 0.0097808837890625, 0.022674560546875, 0.0019235610961914062, 0.0452880859375, 0.038299560546875, -0.025634765625, 0.006195068359375, -0.046356201171875, -0.03424072265625, -0.01047515869140625, -0.004734039306640625, 0.06280517578125, 0.048370361328125, -0.0194549560546875, 0.01336669921875, 0.017242431640625, 0.0200347900390625, -0.023406982421875, -0.045074462890625, -0.0036792755126953125, 0.017181396484375, -0.004364013671875, 0.005855560302734375, 0.034271240234375, -0.03118896484375, -0.01079559326171875, 0.00836944580078125, -0.0144195556640625, 0.00850677490234375, 0.021087646484375, -0.0217132568359375, 0.0177001953125, 0.0679931640625, 0.024169921875, 0.04827880859375, 0.011962890625, 0.01361846923828125, 0.00643157958984375, 0.032470703125, -0.030242919921875, -0.0275421142578125, 0.0364990234375, 0.007328033447265625, 0.003063201904296875, 0.03271484375, -0.00374603271484375, -0.032989501953125, 0.036224365234375, 0.01276397705078125, -0.017669677734375, -0.01445770263671875, -0.012237548828125, 0.00905609130859375, 0.04534912109375, -0.00502777099609375, -0.0068206787109375, -0.0232696533203125, 0.0185546875, 0.0121612548828125, -0.0201568603515625, 0.0054931640625, 0.0270843505859375, -0.0178375244140625, -0.0098114013671875, -0.00035071372985839844, 0.0172882080078125, 0.025238037109375, -0.032073974609375, 0.0015821456909179688, -0.0294647216796875, -0.02545166015625, 0.025482177734375, 0.00792694091796875, -0.009246826171875, -0.03692626953125, 0.052337646484375, -0.0031833648681640625, -0.00971221923828125, 0.034637451171875, -0.017730712890625, 0.02099609375, 0.007228851318359375, -0.0080718994140625, -0.006072998046875, -0.0263824462890625, -0.0302734375, -0.0217437744140625, -0.049041748046875, -0.008392333984375, -0.006519317626953125, 0.015716552734375, 0.0170135498046875, 0.0223388671875, -0.07440185546875, -0.015869140625, -0.0177001953125, 0.06195068359375, 0.0282135009765625, -0.048828125, 0.0167999267578125, -0.01027679443359375, -0.0170440673828125, -0.01372528076171875, 0.04119873046875, -0.0290985107421875, 0.008544921875, -0.001262664794921875, 0.008941650390625, -0.003330230712890625, -0.006290435791015625, -0.05859375, 0.077880859375, 0.01367950439453125, 0.005313873291015625, 0.005115509033203125, 0.035308837890625, -0.0195465087890625, 0.0143585205078125, -0.040008544921875, 0.027923583984375, 0.0048980712890625, 0.0775146484375, -0.046630859375, -0.021331787109375, 0.03961181640625, 0.06219482421875, 0.0400390625, 0.01349639892578125, -0.007381439208984375, -0.020172119140625, 0.033935546875, 0.0208740234375, -0.019744873046875, 0.0279998779296875, -0.054168701171875, 0.0290679931640625, -0.01428985595703125, -0.0733642578125, 0.008544921875, -0.019073486328125, -0.0760498046875, -0.0196990966796875, 0.0249176025390625, 0.038055419921875, -0.01079559326171875, 0.004642486572265625, -0.040924072265625, 0.00908660888671875, 0.0316162109375, -0.004322052001953125, -0.0186614990234375, 0.047576904296875, 0.032440185546875, -0.046051025390625, -0.01541900634765625, -0.0404052734375, 0.04241943359375, 0.01580810546875, 0.00746917724609375, 0.0159759521484375, 0.019927978515625, 0.032257080078125, -0.0187225341796875, -0.0033512115478515625, 0.01279449462890625, -0.004505157470703125, 0.0013017654418945312, -0.0013551712036132812, 0.0262451171875, -0.0179290771484375, 0.025726318359375, 0.012939453125, 0.006076812744140625, -0.030517578125, -0.01184844970703125, 0.004055023193359375, 0.01151275634765625, 0.01242828369140625, -0.027557373046875, 0.0212860107421875, -0.046478271484375, -0.009002685546875, -0.0277862548828125, -0.010711669921875, 0.003833770751953125, 0.01556396484375, 0.005847930908203125, 0.066162109375, -0.0219879150390625, -0.0169219970703125, -0.044158935546875, -0.01078033447265625, 0.01250457763671875, 0.054962158203125, 0.060333251953125, 0.021759033203125, 0.029296875, -0.022674560546875, -0.045928955078125, 0.1082763671875, -0.01064300537109375, 0.035430908203125, -0.0947265625, -0.08465576171875, 0.002338409423828125, 0.049835205078125, 0.023712158203125, 0.021759033203125, 0.045074462890625, 0.0203857421875, -0.057098388671875, 0.01488494873046875, 0.07464599609375, -0.0367431640625, 0.0071868896484375, -0.007965087890625, 0.03143310546875, 0.0035610198974609375, 0.01552581787109375, -0.046356201171875, 0.08135986328125, -0.009765625, -0.020599365234375, 0.0233001708984375, 0.0012063980102539062, 0.012359619140625, 0.01433563232421875, 0.020538330078125, -0.0257568359375, 0.0202178955078125, -0.0347900390625, 0.021759033203125, -0.05511474609375, -0.06109619140625, 0.045379638671875, 0.04815673828125, -0.044342041015625, 0.030426025390625, -0.00586700439453125, -0.007381439208984375, 0.03564453125, -0.0135345458984375, -0.00795745849609375, 0.0643310546875, 0.032470703125, 0.01482391357421875, -0.043060302734375, 0.0020618438720703125, 0.005184173583984375, 0.0026531219482421875, -0.0203399658203125, 0.0745849609375, -0.0149078369140625, 0.005741119384765625, -0.0184783935546875, 0.0249176025390625, -0.037567138671875, -0.0090179443359375, 0.013031005859375, -0.0027103424072265625, 0.017120361328125, -0.006420135498046875, -0.05181884765625, 0.003326416015625, 0.04345703125, -0.0325927734375, 0.03363037109375, 0.003269195556640625, 0.005306243896484375, -0.04266357421875, 0.033050537109375, -0.02142333984375, -0.06585693359375, -0.09088134765625, 0.005840301513671875, 0.018798828125, 0.037445068359375, -0.02740478515625, 0.00849151611328125, 0.00272369384765625, 0.0009493827819824219, 0.0084381103515625, 0.0325927734375, 0.0003447532653808594, 0.024261474609375, 0.0014219284057617188, -0.035491943359375, 0.0279998779296875, -0.01427459716796875, 0.040924072265625, -0.0012884140014648438, 0.05810546875, 0.02813720703125, -0.043304443359375, -0.0217742919921875, -0.03558349609375, -0.0066680908203125, -0.0418701171875, -0.0087890625, -0.018768310546875, 0.0242767333984375, 0.005779266357421875, -0.00774383544921875, -0.0020008087158203125, -0.03436279296875, -0.026611328125, 0.01470947265625, -0.04949951171875, -0.03851318359375, -0.0176544189453125, -0.01540374755859375, 0.0445556640625, 0.0118865966796875, -0.0232391357421875, -0.00958251953125, -0.00909423828125, 0.0254364013671875, 0.020294189453125, 0.037200927734375, -0.048065185546875, -0.0154571533203125, -0.058013916015625, -0.043609619140625, -0.06988525390625, 0.06036376953125, -0.056365966796875, 0.0038127899169921875, 0.043121337890625, -0.005870819091796875, 0.0007224082946777344, -0.018402099609375, 0.00012052059173583984, 0.026123046875, -0.03570556640625, -0.0198211669921875, -0.01021575927734375, -0.0222625732421875, 0.00304412841796875, -0.0362548828125, 0.0013360977172851562, -0.08331298828125, -0.042816162109375, -0.057159423828125, 0.029693603515625, 0.02630615234375, -0.0208282470703125, -0.052764892578125, -0.002239227294921875, -0.0145721435546875, -0.0265655517578125, -0.00274658203125, -0.031402587890625, -0.00891876220703125, 0.0277557373046875, 0.0032176971435546875, -0.0272064208984375, -0.0301513671875, 0.00620269775390625, 0.031768798828125, 0.03143310546875, 0.01499176025390625, 0.040008544921875, 0.03546142578125, 0.057952880859375, 0.03912353515625, -0.0135955810546875, -0.0248260498046875, 0.034423828125, -0.0023365020751953125, -0.0015840530395507812, -0.05572509765625, 0.048492431640625, -0.0032405853271484375, 0.04180908203125, 0.00888824462890625, -0.032806396484375, -0.03033447265625, -0.0235595703125, 0.012298583984375, 0.041534423828125, -0.004604339599609375, -0.00870513916015625, -0.0153350830078125, 0.01371002197265625, -0.0147552490234375, -0.0321044921875, 0.0245361328125, -0.10479736328125, -0.0537109375, 0.01268768310546875, 0.004863739013671875, 0.002651214599609375, -0.0295257568359375, -0.03326416015625, -0.01128387451171875, -0.0008950233459472656, 0.01788330078125, -0.041015625, 0.055023193359375, -0.057037353515625, 0.0064544677734375, 0.008392333984375, -0.040740966796875, -0.0117950439453125, -0.0306549072265625, -0.05023193359375, 0.00708770751953125, 0.03253173828125, -0.0231475830078125, 0.0217742919921875, 0.01666259765625, -0.003856658935546875, -0.033172607421875, 0.00009572505950927734, 0.0014171600341796875, 0.0159149169921875, 0.00390625, 0.0280303955078125, -0.027496337890625, 0.0216827392578125, 0.00702667236328125, -0.0012426376342773438, -0.0121002197265625, -0.05029296875, -0.0345458984375, 0.0294189453125, -0.02581787109375, -0.00908660888671875, -0.0036792755126953125, -0.007793426513671875, 0.0193939208984375, 0.027099609375, 0.0259246826171875, -0.024566650390625, -0.002323150634765625, -0.0267333984375, 0.033050537109375, 0.001438140869140625 ]
9865c9b67a0d7fc5883ac0ab4c3a929f853ea645
Wordpress Stackexchange Q: Creating button next to "add media" that allows you to choose a single post I'm looking to create a button next to "add media" ( much like gravity forms "add form) that allows you to choose a custom post and then inserts that post id into a shortcode. I've bene looking at hooking into tinymce for the longest time, but realized that that wasn't the way to go (as those buttons aren't a part of the tinymce editor). anyone have any thoughts? A: For WP versions before 3.5.0, use the media_buttons_context filter: add_filter( 'media_buttons_context', function($context ) { global $pagenow; if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) { $context .= '<a href="#" class="button">Button</a>'; } return $context; } ); For 3.5.0+, use the media_buttons action: add_action( 'media_buttons', function($editor_id){ echo '<a href="#" class="button">Button</a>'; } ); Both will add a button beside the "Add Media" button above the post editor.
Q: Creating button next to "add media" that allows you to choose a single post I'm looking to create a button next to "add media" ( much like gravity forms "add form) that allows you to choose a custom post and then inserts that post id into a shortcode. I've bene looking at hooking into tinymce for the longest time, but realized that that wasn't the way to go (as those buttons aren't a part of the tinymce editor). anyone have any thoughts? A: For WP versions before 3.5.0, use the media_buttons_context filter: add_filter( 'media_buttons_context', function($context ) { global $pagenow; if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) { $context .= '<a href="#" class="button">Button</a>'; } return $context; } ); For 3.5.0+, use the media_buttons action: add_action( 'media_buttons', function($editor_id){ echo '<a href="#" class="button">Button</a>'; } ); Both will add a button beside the "Add Media" button above the post editor.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:443078", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137251" }
[ 0.0538330078125, -0.00661468505859375, 0.03076171875, 0.0207366943359375, 0.00811767578125, -0.0194549560546875, 0.0958251953125, -0.031829833984375, -0.0084075927734375, 0.0215606689453125, -0.01020050048828125, 0.0234832763671875, -0.01544952392578125, -0.0249176025390625, 0.0032958984375, 0.002567291259765625, 0.0362548828125, -0.027252197265625, 0.0294189453125, -0.007568359375, 0.0228271484375, 0.00821685791015625, 0.028564453125, -0.00577545166015625, -0.005603790283203125, 0.00977325439453125, 0.0628662109375, -0.032012939453125, -0.006702423095703125, -0.019256591796875, 0.0043792724609375, -0.00891876220703125, 0.0321044921875, 0.01172637939453125, -0.032501220703125, 0.0264434814453125, 0.010498046875, 0.008270263671875, 0.0036525726318359375, 0.0164794921875, 0.01275634765625, -0.0023059844970703125, 0.0007596015930175781, 0.02484130859375, -0.00923919677734375, -0.04180908203125, 0.016876220703125, -0.046600341796875, -0.00003713369369506836, -0.0007801055908203125, -0.0038089752197265625, 0.0085296630859375, 0.01396942138671875, -0.0285491943359375, -0.0189208984375, -0.0307159423828125, -0.0230865478515625, -0.00591278076171875, -0.00116729736328125, 0.0428466796875, 0.0057373046875, 0.0293426513671875, -0.00885772705078125, -0.024078369140625, 0.0005621910095214844, 0.004978179931640625, -0.0027523040771484375, -0.0034084320068359375, -0.004512786865234375, 0.0029754638671875, 0.0259857177734375, -0.0243072509765625, 0.0268402099609375, -0.037567138671875, 0.0110015869140625, 0.009185791015625, -0.01123809814453125, -0.01438140869140625, 0.024322509765625, -0.0191192626953125, -0.0118408203125, 0.024688720703125, 0.0208892822265625, -0.051605224609375, 0.0200653076171875, -0.016143798828125, -0.00824737548828125, -0.016876220703125, -0.007808685302734375, -0.0211944580078125, -0.0081787109375, -0.0897216796875, 0.03875732421875, 0.027130126953125, -0.0188140869140625, -0.0154571533203125, 0.042938232421875, 0.027923583984375, 0.030792236328125, 0.0225067138671875, 0.0169525146484375, -0.065185546875, 0.06524658203125, -0.04266357421875, 0.0290069580078125, -0.0023708343505859375, -0.01386260986328125, -0.039215087890625, 0.037139892578125, 0.01153564453125, -0.0291290283203125, 0.053070068359375, -0.017364501953125, -0.00745391845703125, -0.048126220703125, -0.0142364501953125, -0.0523681640625, 0.00249481201171875, 0.0035686492919921875, -0.006359100341796875, -0.0011892318725585938, -0.0036449432373046875, 0.031341552734375, 0.006694793701171875, -0.0171051025390625, -0.0186920166015625, -0.02777099609375, -0.00890350341796875, 0.00531005859375, 0.0287322998046875, -0.023681640625, 0.005527496337890625, 0.054351806640625, 0.026123046875, 0.00431060791015625, -0.018646240234375, -0.0025348663330078125, 0.0022907257080078125, 0.0014705657958984375, -0.0087432861328125, 0.039642333984375, -0.02508544921875, -0.0250244140625, 0.0386962890625, -0.0018863677978515625, 0.0533447265625, 0.0258026123046875, -0.0111236572265625, -0.00868988037109375, -0.08660888671875, 0.0156097412109375, -0.01212310791015625, 0.02734375, 0.0001329183578491211, -0.01422119140625, -0.0322265625, 0.0294647216796875, -0.032684326171875, 0.01383209228515625, -0.06451416015625, 0.0273284912109375, 0.0134429931640625, 0.0343017578125, -0.06329345703125, -0.050628662109375, -0.03411865234375, -0.08807373046875, -0.0090484619140625, 0.0222015380859375, 0.060394287109375, -0.007099151611328125, -0.0162353515625, -0.01165771484375, 0.0262908935546875, -0.0062408447265625, 0.0036773681640625, 0.0249176025390625, 0.02587890625, 0.014892578125, 0.037078857421875, 0.0036449432373046875, -0.028594970703125, 0.08563232421875, -0.04254150390625, -0.059295654296875, 0.08270263671875, 0.00379180908203125, 0.072509765625, -0.01207733154296875, 0.01053619384765625, 0.006488800048828125, 0.06524658203125, 0.028472900390625, -0.01904296875, 0.002651214599609375, -0.044342041015625, -0.026031494140625, -0.0234222412109375, -0.0159912109375, 0.03302001953125, 0.035858154296875, 0.0097808837890625, 0.038238525390625, 0.0165557861328125, -0.0184326171875, 0.055511474609375, -0.0174102783203125, 0.021270751953125, -0.00797271728515625, -0.05987548828125, 0.01453399658203125, -0.03558349609375, 0.030914306640625, -0.0740966796875, -0.051361083984375, 0.05572509765625, -0.0140838623046875, 0.0391845703125, -0.00679779052734375, 0.06207275390625, -0.019073486328125, -0.036285400390625, -0.01177978515625, 0.00665283203125, 0.0538330078125, -0.03857421875, -0.001766204833984375, -0.0305328369140625, 0.0201263427734375, 0.007389068603515625, -0.0479736328125, 0.0206298828125, 0.00807952880859375, -0.0091094970703125, -0.047607421875, -0.0030040740966796875, -0.0225830078125, -0.031646728515625, -0.0011463165283203125, 0.055633544921875, 0.0195465087890625, 0.01016998291015625, 0.020172119140625, 0.08941650390625, 0.034759521484375, 0.0269927978515625, 0.03302001953125, 0.004840850830078125, 0.031463623046875, 0.08648681640625, -0.0280914306640625, 0.0149383544921875, -0.00807952880859375, -0.052825927734375, 0.0307464599609375, 0.021514892578125, -0.035614013671875, 0.0236053466796875, 0.0201263427734375, -0.026763916015625, -0.00780487060546875, -0.038360595703125, 0.0101776123046875, -0.026824951171875, 0.035064697265625, 0.03179931640625, 0.051513671875, 0.04998779296875, -0.02679443359375, 0.01078033447265625, -0.0079498291015625, 0.005138397216796875, -0.00751495361328125, 0.01534271240234375, 0.01021575927734375, -0.0128173828125, -0.03326416015625, 0.007587432861328125, 0.006336212158203125, 0.00905609130859375, -0.031982421875, 0.0089263916015625, -0.052154541015625, -0.0193023681640625, 0.00623321533203125, -0.07763671875, -0.020294189453125, -0.0311279296875, 0.0230712890625, -0.018798828125, 0.01482391357421875, 0.02105712890625, -0.0269622802734375, 0.045654296875, 0.0190582275390625, -0.0275421142578125, 0.03656005859375, -0.0199127197265625, 0.03228759765625, -0.0082244873046875, 0.03387451171875, 0.0667724609375, -0.0021495819091796875, -0.0014352798461914062, -0.000091552734375, -0.020416259765625, -0.0438232421875, 0.03582763671875, 0.0092010498046875, -0.033416748046875, -0.018280029296875, 0.0149688720703125, 0.01163482666015625, -0.0102691650390625, -0.0182952880859375, -0.0295867919921875, -0.0284423828125, -0.005847930908203125, -0.0745849609375, -0.0128021240234375, 0.061279296875, -0.07769775390625, 0.0249786376953125, -0.032318115234375, -0.048431396484375, -0.0428466796875, 0.0203704833984375, -0.0018939971923828125, -0.06341552734375, 0.03009033203125, -0.001071929931640625, 0.0046234130859375, -0.0037174224853515625, 0.0147552490234375, -0.01128387451171875, 0.019134521484375, 0.02276611328125, 0.03436279296875, 0.028656005859375, -0.01073455810546875, 0.07305908203125, -0.026611328125, -0.020660400390625, 0.00954437255859375, 0.05419921875, -0.050537109375, -0.042266845703125, 0.01020050048828125, 0.007099151611328125, 0.016998291015625, -0.01520538330078125, -0.006591796875, -0.046966552734375, -0.021881103515625, -0.0007610321044921875, 0.06842041015625, 0.04296875, 0.00783538818359375, 0.0728759765625, -0.021728515625, -0.0017099380493164062, -0.00763702392578125, -0.032318115234375, 0.0163116455078125, -0.006504058837890625, -0.004116058349609375, 0.015625, 0.01027679443359375, 0.007183074951171875, 0.0275421142578125, 0.010833740234375, 0.00357818603515625, -0.0119781494140625, -0.0003955364227294922, 0.007843017578125, 0.0140533447265625, -0.031768798828125, -0.0380859375, 0.00629425048828125, -0.01995849609375, -0.006923675537109375, 0.01039886474609375, 0.00441741943359375, 0.0272674560546875, -0.01332855224609375, 0.007843017578125, -0.0264129638671875, 0.05322265625, -0.055389404296875, -0.010498046875, -0.037506103515625, 0.0648193359375, -0.07354736328125, -0.00911712646484375, 0.00930023193359375, 0.007354736328125, 0.0400390625, -0.040069580078125, -0.0341796875, -0.0487060546875, -0.02313232421875, -0.0015354156494140625, 0.01074981689453125, 0.001983642578125, -0.03448486328125, 0.0743408203125, -0.020599365234375, -0.0048675537109375, 0.055511474609375, -0.03314208984375, 0.01259613037109375, 0.044586181640625, -0.010772705078125, 0.0211639404296875, -0.056060791015625, -0.0290069580078125, -0.0860595703125, -0.0167083740234375, -0.01666259765625, 0.04888916015625, 0.002895355224609375, 0.00033164024353027344, -0.044189453125, 0.033447265625, -0.016754150390625, 0.0221710205078125, 0.0156402587890625, 0.0350341796875, 0.020172119140625, -0.0135498046875, 0.005657196044921875, -0.0245361328125, -0.002391815185546875, -0.0009984970092773438, 0.013214111328125, 0.0655517578125, -0.0579833984375, -0.0269775390625, -0.038848876953125, -0.0261993408203125, -0.052093505859375, -0.03887939453125, 0.004138946533203125, 0.0265350341796875, -0.0159912109375, 0.0108795166015625, -0.055511474609375, -0.059906005859375, 0.0064849853515625, -0.020599365234375, 0.004611968994140625, 0.01354217529296875, 0.05548095703125, 0.0213775634765625, -0.0096435546875, -0.05230712890625, 0.00045752525329589844, 0.021026611328125, -0.0218048095703125, 0.00995635986328125, 0.0120391845703125, -0.0185546875, -0.01146697998046875, -0.0105743408203125, 0.001102447509765625, -0.04595947265625, 0.0948486328125, -0.01091766357421875, -0.00286102294921875, 0.0299224853515625, -0.033355712890625, 0.0017871856689453125, -0.0276947021484375, -0.054046630859375, 0.0168304443359375, -0.02142333984375, 0.032318115234375, -0.01397705078125, 0.0479736328125, -0.0251922607421875, -0.0465087890625, -0.00640869140625, 0.0156707763671875, 0.038482666015625, 0.013397216796875, 0.00848388671875, 0.015777587890625, 0.024658203125, 0.005733489990234375, 0.0297088623046875, 0.05438232421875, -0.0008344650268554688, 0.0628662109375, 0.01099395751953125, 0.001033782958984375, -0.01458740234375, -0.00930023193359375, -0.00530242919921875, 0.034454345703125, -0.039825439453125, 0.0202178955078125, 0.004909515380859375, 0.01329803466796875, -0.0211029052734375, 0.00449371337890625, 0.0036468505859375, 0.009552001953125, -0.0067291259765625, 0.01511383056640625, -0.0036296844482421875, 0.00931549072265625, -0.0231170654296875, -0.02630615234375, -0.003940582275390625, -0.0159454345703125, 0.03289794921875, 0.012298583984375, -0.0110931396484375, 0.01380157470703125, -0.004825592041015625, 0.060028076171875, 0.0675048828125, 0.007205963134765625, 0.006664276123046875, 0.0251617431640625, -0.01351165771484375, -0.00844573974609375, -0.023101806640625, -0.0263824462890625, -0.0015954971313476562, -0.0040740966796875, 0.031158447265625, 0.00882720947265625, 0.00711822509765625, 0.01041412353515625, -0.034423828125, -0.034210205078125, 0.0229339599609375, 0.0266571044921875, -0.03985595703125, -0.00994110107421875, 0.03375244140625, 0.00673675537109375, 0.00890350341796875, -0.002666473388671875, 0.006023406982421875, -0.0116729736328125, 0.01934814453125, 0.01216888427734375, -0.02276611328125, 0.01219940185546875, 0.00494384765625, 0.0259857177734375, 0.00959014892578125, -0.02093505859375, -0.039093017578125, -0.051483154296875, -0.0019378662109375, 0.006977081298828125, 0.0511474609375, -0.0064239501953125, 0.00562286376953125, -0.0224456787109375, 0.0130767822265625, -0.0634765625, 0.0173492431640625, -0.01033782958984375, -0.0271759033203125, 0.038604736328125, -0.0299835205078125, -0.030181884765625, -0.038787841796875, -0.0171661376953125, -0.030487060546875, -0.01605224609375, 0.0051422119140625, 0.0146942138671875, 0.0257415771484375, -0.0035800933837890625, -0.0261383056640625, -0.004459381103515625, 0.01300048828125, -0.005462646484375, 0.045196533203125, 0.03582763671875, -0.010406494140625, -0.005176544189453125, 0.0322265625, 0.0195159912109375, -0.0185699462890625, -0.034027099609375, -0.0272979736328125, 0.01514434814453125, -0.0555419921875, -0.030059814453125, 0.00823211669921875, -0.0126495361328125, 0.0230712890625, 0.006824493408203125, -0.009674072265625, 0.041778564453125, -0.007587432861328125, -0.01271820068359375, -0.006710052490234375, -0.0291290283203125, -0.0240478515625, -0.00341796875, 0.043212890625, -0.052490234375, -0.0014963150024414062, 0.0020999908447265625, 0.039398193359375, -0.006122589111328125, -0.0535888671875, 0.000675201416015625, 0.040924072265625, -0.032196044921875, 0.048858642578125, 0.06646728515625, 0.016021728515625, 0.043853759765625, 0.026153564453125, 0.0119781494140625, -0.01345062255859375, 0.01399993896484375, -0.0218353271484375, -0.03155517578125, 0.01442718505859375, -0.00846099853515625, -0.00316619873046875, 0.019989013671875, -0.00811004638671875, 0.035552978515625, 0.027587890625, 0.0390625, -0.0557861328125, 0.01114654541015625, -0.01050567626953125, -0.04425048828125, 0.0177764892578125, -0.018341064453125, 0.0142822265625, -0.032073974609375, 0.0684814453125, 0.015289306640625, -0.00785064697265625, 0.02532958984375, -0.0302276611328125, -0.0009627342224121094, -0.004665374755859375, 0.036346435546875, -0.00478363037109375, -0.018218994140625, -0.05047607421875, 0.0088653564453125, -0.03875732421875, 0.00533294677734375, 0.01070404052734375, -0.045074462890625, -0.02154541015625, -0.045379638671875, -0.0301666259765625, -0.0220794677734375, -0.02886962890625, 0.03961181640625, 0.0081024169921875, 0.00737762451171875, 0.0246124267578125, -0.0251617431640625, 0.04290771484375, -0.006626129150390625, -0.00511932373046875, -0.00798797607421875, -0.0132293701171875, 0.01715087890625, -0.01776123046875, -0.0140838623046875, 0.012969970703125, -0.0185089111328125, -0.041534423828125, 0.01114654541015625, 0.01273345947265625, 0.03338623046875, -0.0318603515625, -0.0102691650390625, 0.04376220703125, 0.00875091552734375, -0.0038013458251953125, -0.0185546875, -0.01131439208984375, -0.06829833984375, -0.049407958984375, -0.0263519287109375, -0.06500244140625, 0.0124359130859375, -0.03277587890625, -0.06536865234375, 0.11865234375, -0.016510009765625, 0.04541015625, -0.01157379150390625, 0.048065185546875, -0.019073486328125, 0.02655029296875, -0.022430419921875, 0.037841796875, 0.00506591796875, 0.007770538330078125, -0.05096435546875, -0.007343292236328125, -0.01322174072265625, 0.034576416015625, 0.08392333984375, 0.01434326171875, -0.019012451171875, 0.01277923583984375, 0.07269287109375, 0.038604736328125, 0.0010089874267578125, 0.0255126953125, 0.0127105712890625, -0.05426025390625, 0.039276123046875, 0.0626220703125, 0.06317138671875, -0.00855255126953125, -0.00567626953125, 0.0144195556640625, 0.00397491455078125, -0.0112457275390625, -0.0120086669921875, 0.007659912109375, -0.0163421630859375, -0.002567291259765625, 0.01340484619140625, -0.0458984375, 0.00974273681640625, 0.06005859375, 0.0075225830078125, 0.0181121826171875, 0.010101318359375, -0.041168212890625, 0.0357666015625, -0.0293121337890625, 0.0200653076171875, 0.01148223876953125, 0.016143798828125, 0.007129669189453125, 0.00255584716796875, 0.016510009765625, 0.013427734375, -0.02069091796875, 0.02960205078125, 0.006587982177734375, 0.003086090087890625, -0.07122802734375, 0.0014657974243164062, 0.0521240234375, 0.053558349609375, -0.034698486328125, -0.0098876953125, 0.00662994384765625, 0.001129150390625, -0.01557159423828125, -0.0390625, -0.01549530029296875, -0.024993896484375, 0.00885772705078125, -0.060577392578125, -0.000392913818359375, 0.04803466796875, 0.03509521484375, -0.0047454833984375, -0.00867462158203125, -0.034942626953125, -0.01515960693359375, -0.02630615234375, -0.017974853515625, 0.00791168212890625, 0.04742431640625, 0.03515625, 0.029937744140625, -0.0087432861328125, -0.019500732421875, -0.034881591796875, 0.033477783203125, 0.0228118896484375, 0.0256195068359375, -0.021728515625, -0.002025604248046875, 0.0204620361328125, 0.007587432861328125, 0.0394287109375, 0.08856201171875, 0.0521240234375, 0.01534271240234375, 0.0325927734375, 0.017974853515625, 0.05078125, -0.0214691162109375, 0.0090789794921875, -0.033172607421875, 0.00518035888671875, 0.01233673095703125, -0.01380157470703125, 0.0008006095886230469, -0.0165557861328125, 0.04107666015625, -0.00705718994140625, 0.041412353515625, -0.007106781005859375, -0.01473236083984375, 0.043670654296875, -0.0212249755859375, 0.09197998046875, 0.024139404296875, -0.06878662109375, 0.006969451904296875, -0.0197296142578125, -0.08441162109375, 0.01253509521484375, 0.038238525390625, -0.04132080078125, 0.027740478515625, -0.01555633544921875, -0.0010328292846679688, 0.0177459716796875, -0.03704833984375, 0.035736083984375, 0.027435302734375, 0.0010690689086914062, 0.00928497314453125, -0.051788330078125, -0.006603240966796875, 0.00047850608825683594, 0.00386810302734375, 0.0130615234375, 0.056060791015625, -0.0016565322875976562, 0.003452301025390625, -0.018585205078125, 0.009124755859375, -0.01087188720703125, -0.0208892822265625, 0.0106048583984375, 0.035247802734375, 0.0247955322265625, -0.0176849365234375, 0.051727294921875, 0.0206298828125, 0.032745361328125, -0.0560302734375, -0.01406097412109375, -0.0147247314453125, 0.003787994384765625, -0.01849365234375, 0.05181884765625, -0.00876617431640625, -0.0161895751953125, -0.0223846435546875, 0.0049591064453125, 0.01531219482421875, 0.0003077983856201172, -0.03143310546875, 0.01486968994140625, 0.0029850006103515625, -0.026123046875, 0.013824462890625, 0.00829315185546875, 0.0023250579833984375, 0.01947021484375, 0.0118408203125, -0.01291656494140625, 0.00493621826171875, -0.01000213623046875, 0.00039839744567871094, 0.033355712890625, -0.01430511474609375, 0.03643798828125, -0.06463623046875, 0.019500732421875, 0.0241851806640625, 0.0413818359375, -0.022979736328125, -0.0037841796875, 0.0286102294921875, -0.00342559814453125, -0.020751953125, -0.0035076141357421875, -0.034820556640625, -0.044281005859375, 0.00817108154296875, 0.0186767578125, -0.01215362548828125, -0.0093841552734375, -0.080810546875, -0.0044708251953125, 0.036651611328125, 0.01540374755859375, -0.05621337890625, 0.034088134765625, -0.0095367431640625, 0.0248565673828125, 0.01404571533203125, 0.0374755859375, -0.023712158203125, -0.009765625, -0.05145263671875, -0.0248260498046875, -0.037933349609375, 0.045440673828125, -0.0188140869140625, 0.0218505859375, 0.006656646728515625, -0.01279449462890625, 0.0161895751953125, 0.059234619140625, 0.0182647705078125, 0.0830078125, -0.0175018310546875, -0.0209808349609375, 0.0279388427734375, -0.04669189453125, 0.00321197509765625, -0.03564453125, 0.01265716552734375, -0.11749267578125, -0.0308380126953125, -0.0275421142578125, 0.008880615234375, 0.0081634521484375, -0.048309326171875, -0.09527587890625, -0.01178741455078125, -0.0027103424072265625, -0.047698974609375, -0.0252532958984375, 0.037078857421875, -0.007659912109375, -0.01617431640625, -0.0032634735107421875, -0.004673004150390625, 0.0290679931640625, 0.010894775390625, 0.01088714599609375, 0.0238494873046875, -0.0011892318725585938, 0.010223388671875, -0.08038330078125, -0.00749969482421875, -0.036102294921875, 0.0171356201171875, 0.043548583984375, -0.0298004150390625, 0.03155517578125, 0.0005564689636230469, -0.06689453125, -0.0185699462890625, -0.0277557373046875, 0.0151824951171875, -0.01528167724609375, -0.06280517578125, -0.048065185546875, -0.026824951171875, 0.087158203125, 0.062286376953125, 0.020843505859375, -0.036376953125, 0.040802001953125, -0.0028839111328125, -0.04864501953125, 0.01280975341796875, 0.025482177734375, -0.04132080078125, -0.0133514404296875, 0.023223876953125, -0.003387451171875, -0.017578125, 0.033203125, -0.01324462890625, -0.0016489028930664062, 0.028533935546875, -0.009429931640625, -0.030303955078125, 0.005115509033203125, 0.08184814453125, -0.0457763671875, 0.0032863616943359375, 0.00952911376953125, -0.0009002685546875, 0.04522705078125, 0.01258087158203125, 0.017913818359375, 0.0384521484375, -0.06134033203125, 0.0266876220703125, 0.0008749961853027344, 0.01377105712890625, -0.059295654296875, -0.00238037109375, -0.009429931640625, 0.0183563232421875, 0.004428863525390625, 0.0160369873046875, -0.004871368408203125, 0.035980224609375, -0.0012617111206054688, 0.0380859375, -0.008209228515625, 0.027984619140625, -0.0197906494140625, 0.032989501953125, -0.01134490966796875, 0.00927734375, 0.0252685546875, -0.022064208984375, 0.00975799560546875, 0.0199737548828125, 0.00952911376953125, -0.02032470703125, 0.0183868408203125, 0.049896240234375, -0.01248931884765625, 0.0028057098388671875 ]
c739fe2d2551dde0267975f3afb158440f105cb4
Wordpress Stackexchange Q: Remove duplicate images from media library. I recently used an image importer that has duplicated all the images. They are attached to the right posts and the posts are fine (not duplicated). How do I run through my media library deleting duplicate images? A: I know its too late for this answer, but can help others, you can use Media Deduper plugin to index and find duplicated image , it is also good enough to link the post to existing image.
Q: Remove duplicate images from media library. I recently used an image importer that has duplicated all the images. They are attached to the right posts and the posts are fine (not duplicated). How do I run through my media library deleting duplicate images? A: I know its too late for this answer, but can help others, you can use Media Deduper plugin to index and find duplicated image , it is also good enough to link the post to existing image. A: The best way (if the duplicated images are the ones attached) is to order by date, and bulk delete all the older ones.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:443086", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137298" }
[ 0.05926513671875, 0.039276123046875, 0.011383056640625, 0.024017333984375, 0.040985107421875, -0.031341552734375, 0.09375, -0.06512451171875, 0.0275115966796875, 0.0177459716796875, 0.024322509765625, -0.006259918212890625, -0.0152740478515625, -0.031341552734375, -0.0233001708984375, -0.0008778572082519531, 0.004856109619140625, 0.00324249267578125, 0.0232391357421875, -0.0203857421875, 0.0224456787109375, -0.0244903564453125, 0.0240325927734375, 0.037261962890625, -0.0177001953125, 0.0194244384765625, 0.046356201171875, 0.01374053955078125, -0.034698486328125, -0.0291900634765625, 0.0036029815673828125, 0.0265350341796875, -0.0105438232421875, 0.0221405029296875, 0.01499176025390625, 0.00849151611328125, 0.0205230712890625, 0.00569915771484375, 0.0379638671875, -0.0095977783203125, 0.00699615478515625, 0.01300811767578125, 0.0576171875, -0.006229400634765625, -0.0022125244140625, -0.01421356201171875, -0.0003876686096191406, -0.03271484375, 0.0236663818359375, 0.0255279541015625, 0.015655517578125, -0.041412353515625, 0.0097503662109375, 0.005954742431640625, -0.03619384765625, -0.052947998046875, 0.00382232666015625, 0.0038013458251953125, 0.022705078125, -0.02471923828125, -0.038604736328125, -0.0012350082397460938, 0.029144287109375, -0.004703521728515625, 0.00014257431030273438, -0.00921630859375, -0.0051422119140625, 0.021759033203125, -0.061920166015625, -0.01751708984375, 0.0433349609375, -0.051177978515625, -0.02008056640625, -0.0238800048828125, 0.00699615478515625, 0.039093017578125, -0.01396942138671875, -0.0110626220703125, 0.0084381103515625, 0.003894805908203125, 0.01110076904296875, -0.007232666015625, -0.06494140625, -0.00835418701171875, 0.01546478271484375, 0.01373291015625, 0.00933074951171875, -0.0202789306640625, -0.01861572265625, -0.0029926300048828125, -0.0215606689453125, -0.06756591796875, 0.0117034912109375, 0.035186767578125, -0.018890380859375, 0.01343536376953125, 0.044097900390625, 0.0919189453125, -0.0198822021484375, 0.0105438232421875, -0.03948974609375, -0.01125335693359375, -0.0204925537109375, -0.04949951171875, 0.01192474365234375, -0.05584716796875, -0.0293731689453125, -0.042510986328125, 0.039459228515625, 0.05841064453125, -0.05517578125, 0.05828857421875, 0.0121612548828125, -0.053802490234375, -0.004398345947265625, 0.04840087890625, 0.01453399658203125, 0.011566162109375, 0.0196075439453125, -0.005992889404296875, -0.019500732421875, 0.0099334716796875, -0.038421630859375, -0.0035343170166015625, 0.022247314453125, 0.00225067138671875, -0.01067352294921875, 0.01342010498046875, 0.0093841552734375, 0.0045928955078125, -0.033905029296875, 0.0301055908203125, 0.05450439453125, -0.01421356201171875, -0.02215576171875, -0.0170745849609375, -0.031402587890625, 0.0089263916015625, 0.0205230712890625, -0.0275421142578125, 0.0247955322265625, -0.00823974609375, 0.0186920166015625, 0.032562255859375, 0.01806640625, 0.041473388671875, -0.0123443603515625, -0.01082611083984375, 0.0229034423828125, -0.0256195068359375, -0.0328369140625, -0.03326416015625, 0.00695037841796875, 0.024169921875, 0.0628662109375, -0.04071044921875, 0.06634521484375, -0.04913330078125, 0.04742431640625, -0.052459716796875, 0.0364990234375, 0.033172607421875, 0.033660888671875, 0.017669677734375, 0.0073699951171875, -0.03863525390625, -0.046600341796875, -0.00701141357421875, 0.016815185546875, 0.005504608154296875, -0.0099334716796875, -0.039947509765625, -0.0309295654296875, 0.011505126953125, 0.0092010498046875, 0.0307769775390625, -0.005619049072265625, -0.0095367431640625, 0.0034942626953125, 0.047027587890625, 0.01157379150390625, -0.017120361328125, 0.01027679443359375, 0.002086639404296875, -0.05120849609375, -0.035614013671875, 0.0003998279571533203, 0.037078857421875, 0.053466796875, 0.026824951171875, 0.046539306640625, -0.036041259765625, 0.017547607421875, -0.022247314453125, -0.0036983489990234375, -0.0250091552734375, 0.0019464492797851562, -0.00004744529724121094, -0.0120849609375, 0.0172576904296875, 0.032684326171875, 0.03118896484375, -0.037139892578125, 0.0047454833984375, -0.06329345703125, 0.0029239654541015625, -0.0166473388671875, 0.0226593017578125, -0.07366943359375, 0.0229034423828125, 0.04437255859375, 0.00740814208984375, -0.050079345703125, 0.0298004150390625, 0.01617431640625, -0.01248931884765625, -0.0287933349609375, -0.06231689453125, -0.02313232421875, -0.01873779296875, -0.02484130859375, 0.006389617919921875, -0.048583984375, 0.0089111328125, 0.01508331298828125, 0.018829345703125, -0.0562744140625, -0.008544921875, -0.0533447265625, 0.01403045654296875, -0.0750732421875, 0.07806396484375, 0.00539398193359375, 0.04119873046875, 0.005878448486328125, -0.017730712890625, 0.0150604248046875, -0.071044921875, 0.024444580078125, 0.031402587890625, 0.01445770263671875, 0.0187835693359375, -0.0158233642578125, 0.0303955078125, 0.0643310546875, 0.0173187255859375, 0.00952911376953125, 0.0171051025390625, 0.034698486328125, 0.058502197265625, -0.038726806640625, -0.0251922607421875, 0.0170745849609375, -0.05157470703125, 0.001377105712890625, 0.0290374755859375, 0.01152801513671875, 0.0041046142578125, -0.0307159423828125, 0.048126220703125, -0.006175994873046875, 0.03436279296875, -0.015167236328125, 0.01087188720703125, 0.006069183349609375, 0.0050811767578125, 0.023773193359375, 0.017547607421875, -0.01309967041015625, 0.01555633544921875, 0.0090179443359375, -0.044647216796875, 0.0118408203125, 0.04998779296875, 0.0007948875427246094, 0.044677734375, -0.03173828125, -0.02508544921875, 0.0295867919921875, 0.04583740234375, -0.007350921630859375, -0.0017080307006835938, -0.0274658203125, -0.0164337158203125, 0.0125885009765625, -0.02130126953125, 0.0023326873779296875, -0.0042266845703125, -0.0435791015625, -0.01959228515625, -0.01015472412109375, 0.07122802734375, 0.02081298828125, 0.01702880859375, -0.00733184814453125, 0.0210723876953125, 0.01104736328125, -0.07666015625, 0.062103271484375, -0.052642822265625, 0.05859375, 0.08441162109375, -0.01261138916015625, 0.03314208984375, -0.0094146728515625, 0.0255126953125, 0.0416259765625, -0.037506103515625, -0.034454345703125, 0.01146697998046875, -0.0750732421875, -0.040435791015625, 0.01291656494140625, -0.006259918212890625, 0.000949859619140625, -0.01459503173828125, -0.0107879638671875, -0.01190185546875, -0.076904296875, -0.07403564453125, -0.0723876953125, -0.0020008087158203125, 0.00768280029296875, 0.0251312255859375, 0.00959014892578125, -0.00455474853515625, 0.041534423828125, 0.01403045654296875, 0.03570556640625, -0.00518798828125, -0.0005574226379394531, -0.0115509033203125, -0.04888916015625, -0.03399658203125, 0.00690460205078125, 0.003658294677734375, 0.005870819091796875, 0.03515625, 0.01499176025390625, -0.01953125, 0.056182861328125, 0.0111541748046875, 0.00946044921875, 0.035552978515625, 0.02716064453125, 0.050262451171875, -0.0180206298828125, 0.028900146484375, 0.0247802734375, 0.0716552734375, -0.09423828125, -0.0218658447265625, 0.0114288330078125, -0.03399658203125, -0.004055023193359375, 0.0146026611328125, -0.00029349327087402344, -0.0258331298828125, -0.0038433074951171875, -0.032440185546875, -0.00959014892578125, -0.0299072265625, -0.0310211181640625, 0.02862548828125, -0.00634002685546875, -0.00919342041015625, 0.001491546630859375, 0.026123046875, 0.0119171142578125, 0.0207366943359375, -0.021636962890625, -0.0263671875, 0.0386962890625, 0.006195068359375, 0.023468017578125, 0.003948211669921875, 0.0097503662109375, -0.018463134765625, -0.0034847259521484375, -0.00846099853515625, 0.01462554931640625, -0.014495849609375, 0.0157928466796875, -0.0265350341796875, 0.001201629638671875, 0.032470703125, 0.0283660888671875, 0.06201171875, -0.0222015380859375, -0.042510986328125, -0.009185791015625, 0.08343505859375, -0.036285400390625, -0.0304718017578125, -0.021240234375, -0.00018930435180664062, 0.026580810546875, 0.0038604736328125, -0.0017251968383789062, -0.029571533203125, -0.021759033203125, -0.01200103759765625, 0.0112762451171875, -0.0421142578125, -0.01458740234375, -0.0169525146484375, -0.046356201171875, -0.01215362548828125, 0.0116119384765625, -0.004703521728515625, 0.034820556640625, 0.003570556640625, 0.0208892822265625, 0.0009775161743164062, -0.00582122802734375, -0.046142578125, -0.0675048828125, -0.01296234130859375, -0.037384033203125, 0.08294677734375, 0.002254486083984375, 0.0295867919921875, -0.041046142578125, 0.0308837890625, 0.0008573532104492188, 0.042449951171875, -0.0164337158203125, 0.000904083251953125, 0.023468017578125, -0.033447265625, -0.0182647705078125, -0.0194091796875, -0.029144287109375, -0.06622314453125, -0.0162506103515625, -0.0261688232421875, -0.0240478515625, 0.031524658203125, -0.035247802734375, 0.0220184326171875, -0.00327301025390625, 0.01003265380859375, 0.004344940185546875, -0.0038547515869140625, 0.00013577938079833984, -0.00925445556640625, 0.0152740478515625, 0.0090789794921875, -0.0229339599609375, 0.0181884765625, -0.032379150390625, 0.038055419921875, 0.0171966552734375, 0.0052947998046875, 0.00899505615234375, -0.1158447265625, -0.004467010498046875, 0.02386474609375, -0.010650634765625, 0.031524658203125, 0.040069580078125, 0.0179901123046875, -0.04296875, -0.0087890625, -0.0026073455810546875, -0.019927978515625, 0.033599853515625, -0.02020263671875, -0.039520263671875, 0.031890869140625, -0.04296875, 0.031280517578125, 0.05767822265625, 0.00164031982421875, 0.003879547119140625, -0.028564453125, 0.009124755859375, 0.0030574798583984375, -0.02496337890625, -0.029388427734375, -0.053375244140625, 0.006683349609375, -0.0328369140625, 0.03302001953125, -0.0270233154296875, 0.0116729736328125, 0.01800537109375, 0.04913330078125, 0.023681640625, -0.0020198822021484375, 0.05780029296875, -0.052093505859375, 0.056884765625, -0.0026988983154296875, -0.01071929931640625, -0.0257568359375, -0.0041046142578125, 0.0298309326171875, 0.03131103515625, -0.032806396484375, 0.0115203857421875, -0.023651123046875, -0.0194549560546875, 0.0099639892578125, 0.016357421875, 0.022796630859375, -0.0080108642578125, -0.01129913330078125, 0.0020427703857421875, -0.011749267578125, -0.016143798828125, -0.032470703125, -0.007171630859375, -0.0093231201171875, -0.0162353515625, 0.0672607421875, -0.0294647216796875, -0.06591796875, 0.040557861328125, 0.0155487060546875, 0.031951904296875, 0.04962158203125, 0.02960205078125, 0.00821685791015625, -0.00432586669921875, -0.031768798828125, 0.0284423828125, 0.007320404052734375, -0.04559326171875, 0.0011167526245117188, 0.03204345703125, 0.06427001953125, -0.0150909423828125, -0.0374755859375, -0.0061492919921875, -0.050811767578125, -0.0180816650390625, 0.02392578125, -0.02362060546875, -0.04754638671875, -0.025604248046875, 0.0155792236328125, 0.048675537109375, -0.015960693359375, -0.027435302734375, -0.0196075439453125, -0.0162200927734375, 0.012908935546875, 0.012847900390625, -0.04486083984375, 0.04034423828125, 0.042510986328125, -0.0251617431640625, -0.04168701171875, -0.0272064208984375, 0.0007376670837402344, 0.01373291015625, -0.01378631591796875, -0.0159454345703125, 0.039825439453125, -0.00792694091796875, 0.032012939453125, 0.0007834434509277344, -0.03485107421875, -0.0047454833984375, 0.0216827392578125, 0.007183074951171875, -0.01245880126953125, 0.049713134765625, -0.03558349609375, -0.047637939453125, -0.060577392578125, -0.004039764404296875, -0.0013103485107421875, -0.0047454833984375, 0.0151519775390625, -0.01473236083984375, 0.0262451171875, -0.0230865478515625, 0.0085601806640625, 0.0275726318359375, 0.0142669677734375, -0.0236663818359375, 0.0257110595703125, -0.00726318359375, -0.037384033203125, 0.0166168212890625, -0.0009860992431640625, -0.00823974609375, -0.00788116455078125, 0.041900634765625, -0.03167724609375, -0.040557861328125, -0.05792236328125, 0.0223388671875, 0.029144287109375, 0.0023937225341796875, 0.048858642578125, 0.029144287109375, 0.0374755859375, 0.015655517578125, -0.04034423828125, -0.01227569580078125, -0.026031494140625, 0.05255126953125, -0.04718017578125, 0.024078369140625, -0.007965087890625, -0.0170440673828125, 0.035888671875, -0.032745361328125, -0.0115966796875, 0.0021953582763671875, -0.0275726318359375, -0.00585174560546875, 0.04510498046875, 0.0165557861328125, -0.003513336181640625, 0.046356201171875, -0.0276947021484375, 0.00939178466796875, 0.0496826171875, -0.012847900390625, 0.0153045654296875, 0.0137939453125, 0.054168701171875, -0.0287933349609375, 0.03875732421875, -0.00792694091796875, 0.005283355712890625, 0.0228271484375, -0.035369873046875, -0.0022869110107421875, -0.025421142578125, 0.0308380126953125, 0.02008056640625, -0.0004031658172607422, 0.02679443359375, -0.006500244140625, -0.002910614013671875, -0.01262664794921875, 0.023284912109375, 0.0025310516357421875, 0.02447509765625, 0.012176513671875, -0.03106689453125, -0.0140838623046875, -0.03509521484375, -0.0127716064453125, 0.0120086669921875, 0.035125732421875, 0.01299285888671875, -0.04400634765625, -0.0411376953125, 0.0640869140625, -0.050689697265625, -0.0180816650390625, 0.01363372802734375, -0.02093505859375, -0.015655517578125, -0.05120849609375, -0.004749298095703125, -0.012359619140625, 0.005825042724609375, -0.01507568359375, 0.029815673828125, 0.0014514923095703125, 0.022491455078125, 0.0009813308715820312, -0.0308990478515625, 0.0084991455078125, -0.048431396484375, 0.008758544921875, -0.011199951171875, 0.048858642578125, -0.0139007568359375, -0.046875, 0.012115478515625, -0.041839599609375, -0.0164642333984375, -0.0230560302734375, -0.021820068359375, 0.0980224609375, -0.06854248046875, 0.01419830322265625, 0.01116180419921875, 0.060943603515625, -0.0022907257080078125, -0.01702880859375, 0.0693359375, -0.069091796875, -0.01497650146484375, 0.00806427001953125, 0.00745391845703125, -0.0212249755859375, -0.02032470703125, -0.10687255859375, 0.07232666015625, 0.0094757080078125, 0.07940673828125, -0.00710296630859375, 0.00823974609375, -0.0075836181640625, -0.018798828125, 0.00490570068359375, 0.055755615234375, -0.03173828125, 0.01495361328125, -0.04541015625, 0.00411224365234375, 0.00536346435546875, 0.03509521484375, 0.06280517578125, 0.02178955078125, 0.01372528076171875, -0.0237884521484375, 0.02178955078125, 0.0374755859375, 0.0020771026611328125, 0.0116119384765625, -0.0181732177734375, 0.0118255615234375, 0.0234527587890625, -0.0706787109375, 0.0276336669921875, -0.0209808349609375, -0.002960205078125, 0.00626373291015625, -0.003948211669921875, -0.00801849365234375, 0.043121337890625, 0.047210693359375, -0.007373809814453125, 0.01029205322265625, 0.0267486572265625, -0.0673828125, 0.07757568359375, 0.0019426345825195312, 0.01168060302734375, 0.043304443359375, -0.00379180908203125, 0.020904541015625, 0.0303802490234375, -0.0198822021484375, 0.0653076171875, 0.045928955078125, 0.0169830322265625, 0.04583740234375, 0.0223388671875, 0.036376953125, 0.018341064453125, -0.001651763916015625, -0.0087890625, 0.0032939910888671875, 0.0274505615234375, -0.05548095703125, -0.0237274169921875, 0.0345458984375, 0.018707275390625, -0.0087127685546875, -0.053619384765625, 0.0179901123046875, -0.0157928466796875, -0.01039886474609375, -0.0152130126953125, -0.03729248046875, -0.0885009765625, -0.00882720947265625, -0.00661468505859375, -0.0190582275390625, -0.0008234977722167969, 0.038116455078125, 0.007598876953125, 0.014556884765625, -0.0135955810546875, -0.03875732421875, -0.0313720703125, 0.0406494140625, 0.0180816650390625, 0.0234832763671875, -0.025604248046875, 0.037261962890625, -0.01393890380859375, -0.0008864402770996094, -0.0200958251953125, 0.046661376953125, -0.0038585662841796875, 0.0293426513671875, -0.0546875, -0.06011962890625, 0.0258331298828125, 0.034637451171875, 0.0184326171875, 0.0172576904296875, 0.0328369140625, 0.040771484375, -0.01113128662109375, -0.005336761474609375, 0.009613037109375, -0.0229644775390625, 0.0249176025390625, -0.03448486328125, 0.004688262939453125, -0.0022182464599609375, -0.035430908203125, 0.0067291259765625, -0.0135650634765625, 0.03326416015625, -0.01052093505859375, 0.01947021484375, -0.00551605224609375, -0.033355712890625, 0.0106048583984375, -0.0180816650390625, 0.041107177734375, 0.0002390146255493164, -0.057952880859375, -0.00867462158203125, -0.007472991943359375, -0.043212890625, -0.009368896484375, 0.027587890625, -0.0267181396484375, 0.01441192626953125, 0.01509857177734375, -0.0294342041015625, -0.01184844970703125, -0.0156707763671875, 0.056396484375, -0.029327392578125, -0.0269012451171875, 0.006053924560546875, -0.0070343017578125, 0.01242828369140625, 0.0205841064453125, 0.0130615234375, 0.01126861572265625, 0.0091094970703125, 0.010528564453125, 0.033599853515625, 0.0016946792602539062, 0.0146026611328125, -0.017608642578125, 0.021026611328125, -0.01727294921875, 0.00792694091796875, -0.00044846534729003906, -0.024383544921875, 0.0027790069580078125, 0.02825927734375, 0.01404571533203125, -0.007610321044921875, -0.018890380859375, -0.03466796875, 0.02862548828125, 0.042938232421875, 0.0260009765625, -0.0026226043701171875, 0.0013093948364257812, 0.0267791748046875, 0.02386474609375, 0.021636962890625, 0.043975830078125, -0.00012409687042236328, 0.017913818359375, 0.0237579345703125, -0.0228729248046875, 0.0272216796875, -0.01021575927734375, 0.038543701171875, 0.03692626953125, 0.002002716064453125, -0.024383544921875, -0.0153961181640625, -0.01678466796875, -0.026214599609375, 0.004241943359375, 0.030364990234375, -0.020233154296875, -0.0587158203125, 0.00959014892578125, 0.0037841796875, 0.005340576171875, -0.0229339599609375, -0.023681640625, 0.0242767333984375, -0.01495361328125, -0.0279998779296875, 0.0296478271484375, -0.001789093017578125, -0.01152801513671875, -0.0455322265625, 0.0123748779296875, -0.0254364013671875, -0.0204925537109375, -0.036712646484375, 0.0081939697265625, 0.0297698974609375, 0.011505126953125, -0.05584716796875, 0.037841796875, -0.00890350341796875, 0.0029697418212890625, 0.00980377197265625, 0.0014696121215820312, -0.005764007568359375, 0.031005859375, -0.048004150390625, -0.087646484375, -0.035125732421875, 0.060272216796875, -0.05645751953125, 0.015899658203125, 0.0308990478515625, -0.044708251953125, 0.017486572265625, 0.0200958251953125, 0.056243896484375, 0.06646728515625, 0.0218658447265625, -0.036956787109375, -0.0264739990234375, 0.007419586181640625, 0.0155487060546875, 0.00795745849609375, 0.019134521484375, -0.04046630859375, -0.036529541015625, -0.0151214599609375, 0.01172637939453125, 0.016937255859375, -0.022979736328125, -0.09454345703125, 0.0361328125, -0.020721435546875, -0.03961181640625, -0.022613525390625, 0.017669677734375, 0.00893402099609375, -0.0233612060546875, -0.01177215576171875, 0.0022678375244140625, -0.022186279296875, 0.0009493827819824219, -0.0184478759765625, 0.06500244140625, -0.004528045654296875, -0.003986358642578125, 0.004253387451171875, -0.00036787986755371094, -0.00458526611328125, 0.0036296844482421875, -0.0088348388671875, 0.0011396408081054688, 0.0338134765625, 0.050445556640625, -0.020599365234375, -0.01001739501953125, 0.0003705024719238281, -0.006671905517578125, -0.0222320556640625, -0.004276275634765625, -0.0187835693359375, 0.0306549072265625, 0.083984375, 0.10321044921875, 0.0224609375, -0.0635986328125, 0.03753662109375, 0.009063720703125, 0.0076141357421875, -0.00811004638671875, 0.0015420913696289062, -0.049468994140625, -0.03887939453125, 0.0176849365234375, -0.005229949951171875, -0.03204345703125, -0.05596923828125, -0.051513671875, -0.020416259765625, -0.06561279296875, 0.0276641845703125, -0.00714111328125, 0.07281494140625, 0.0274658203125, -0.032562255859375, 0.025970458984375, -0.034698486328125, -0.023193359375, 0.031707763671875, -0.044769287109375, 0.00521087646484375, -0.033660888671875, 0.01096343994140625, 0.0198822021484375, 0.0181732177734375, 0.0011301040649414062, 0.00838470458984375, -0.01904296875, -0.004093170166015625, 0.0079803466796875, 0.005077362060546875, 0.00027060508728027344, -0.00019943714141845703, 0.0186004638671875, -0.005947113037109375, 0.062225341796875, -0.04638671875, 0.043243408203125, -0.0105438232421875, -0.004360198974609375, -0.032684326171875, 0.035614013671875, 0.03289794921875, -0.030548095703125, -0.0008244514465332031, 0.0242462158203125, -0.037139892578125, -0.0445556640625, 0.0219573974609375, 0.01493072509765625, 0.0008859634399414062, 0.0246124267578125 ]
e8903a5d6b8d7b51a47d5c12f7138ad966f3ebef
Wordpress Stackexchange Q: wpdb update add current timestamp not working So using the $wpdb->update to add some data to a custom table, trying to add the current timestamp but it's not saving the right stuff(0000-00-00 00:00:00 this is saved). overview code $wpdb->update('mytable', array( 'value' => 'hello world', 'edit' => date("Y-m-d h:i:s") //saves 0000-00-00 00:00:00 ), array( 'option_name' => 'the row' ), array('%s, %s') ); A: You seemed to have solved everything but the issue with the time: found the issue %d should be %s. but I see that it saves the server time not the current timezone WordPress has a number of date/time related functions. In this case, it sounds like what you need is current_time(), which... Returns the blog's current local time in one of two formats, either MySQL's timestamp data type format (i.e. YYYY-MM-DD HH:MM:SS) or the Unix timestamp format (i.e. epoch). So what you should need is: $wpdb->update( 'mytable', array( 'value' => 'hello world', 'edit' => current_time( 'mysql' ) ), array( 'option_name' => 'the row' ), array('%s, %s') );
Q: wpdb update add current timestamp not working So using the $wpdb->update to add some data to a custom table, trying to add the current timestamp but it's not saving the right stuff(0000-00-00 00:00:00 this is saved). overview code $wpdb->update('mytable', array( 'value' => 'hello world', 'edit' => date("Y-m-d h:i:s") //saves 0000-00-00 00:00:00 ), array( 'option_name' => 'the row' ), array('%s, %s') ); A: You seemed to have solved everything but the issue with the time: found the issue %d should be %s. but I see that it saves the server time not the current timezone WordPress has a number of date/time related functions. In this case, it sounds like what you need is current_time(), which... Returns the blog's current local time in one of two formats, either MySQL's timestamp data type format (i.e. YYYY-MM-DD HH:MM:SS) or the Unix timestamp format (i.e. epoch). So what you should need is: $wpdb->update( 'mytable', array( 'value' => 'hello world', 'edit' => current_time( 'mysql' ) ), array( 'option_name' => 'the row' ), array('%s, %s') );
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:443103", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137369" }
[ 0.03448486328125, -0.003978729248046875, -0.02484130859375, -0.0180511474609375, 0.016204833984375, -0.034515380859375, 0.058319091796875, 0.0149078369140625, 0.0254974365234375, 0.01023101806640625, -0.032562255859375, -0.015411376953125, -0.00843048095703125, -0.024993896484375, -0.02239990234375, -0.02117919921875, 0.06524658203125, -0.0699462890625, 0.0009069442749023438, 0.00897216796875, -0.022552490234375, 0.041900634765625, 0.028228759765625, 0.06988525390625, 0.043304443359375, -0.0257110595703125, 0.0804443359375, -0.00043010711669921875, 0.0748291015625, 0.0188751220703125, 0.037750244140625, -0.0804443359375, 0.005855560302734375, 0.03863525390625, -0.01263427734375, 0.03948974609375, 0.0611572265625, -0.0005350112915039062, 0.0037631988525390625, 0.06243896484375, 0.0092926025390625, 0.007480621337890625, -0.000040531158447265625, 0.0225982666015625, -0.0239410400390625, -0.07763671875, 0.06365966796875, 0.01123046875, 0.01099395751953125, 0.0093841552734375, 0.004924774169921875, 0.0233154296875, 0.0212860107421875, 0.0220947265625, -0.013092041015625, 0.00026297569274902344, -0.041595458984375, 0.038055419921875, 0.0224609375, -0.0105438232421875, -0.008544921875, -0.0035610198974609375, 0.0191650390625, 0.0272216796875, 0.01139068603515625, 0.0208740234375, 0.12200927734375, 0.005523681640625, -0.03717041015625, -0.004673004150390625, 0.042938232421875, 0.0013885498046875, -0.01021575927734375, -0.01432037353515625, -0.0116424560546875, 0.01088714599609375, 0.0163116455078125, -0.00492095947265625, -0.0147247314453125, 0.022979736328125, 0.0038471221923828125, 0.0142669677734375, -0.008056640625, -0.025543212890625, 0.00034928321838378906, -0.01146697998046875, -0.0110626220703125, -0.0023593902587890625, -0.039154052734375, -0.024505615234375, -0.02276611328125, -0.0347900390625, -0.053466796875, 0.029327392578125, -0.0001976490020751953, -0.003292083740234375, 0.01287078857421875, 0.057159423828125, -0.06121826171875, -0.0208282470703125, -0.0017452239990234375, -0.004566192626953125, -0.0224456787109375, -0.01004791259765625, 0.00901031494140625, 0.0208892822265625, 0.0295562744140625, -0.00826263427734375, 0.0343017578125, 0.0034046173095703125, -0.0074005126953125, 0.04742431640625, -0.01513671875, -0.042633056640625, -0.004375457763671875, 0.0170745849609375, -0.0196075439453125, -0.006595611572265625, 0.023345947265625, -0.024505615234375, 0.0008029937744140625, 0.03179931640625, -0.066162109375, -0.0321044921875, 0.0066375732421875, -0.043060302734375, -0.031829833984375, 0.053619384765625, -0.01032257080078125, 0.032867431640625, -0.04541015625, 0.01190185546875, 0.0819091796875, 0.0258331298828125, 0.004703521728515625, -0.030670166015625, 0.04937744140625, -0.0362548828125, -0.0237579345703125, 0.0213623046875, -0.0170135498046875, -0.0245208740234375, -0.01056671142578125, -0.0390625, 0.01287078857421875, 0.02197265625, 0.00618743896484375, 0.017852783203125, 0.0107421875, -0.0182342529296875, 0.018310546875, -0.032470703125, 0.0169525146484375, 0.0062103271484375, 0.0121917724609375, -0.028106689453125, 0.021209716796875, -0.04608154296875, 0.0134735107421875, -0.0333251953125, -0.009521484375, -0.036590576171875, 0.0188751220703125, -0.038543701171875, -0.05096435546875, 0.03948974609375, -0.052978515625, -0.0108642578125, 0.037841796875, -0.024444580078125, 0.0200347900390625, -0.0277252197265625, 0.06866455078125, 0.0229339599609375, -0.012359619140625, 0.046661376953125, -0.031494140625, -0.0095062255859375, 0.011505126953125, 0.035675048828125, -0.00039076805114746094, -0.030609130859375, 0.0101470947265625, 0.0004093647003173828, -0.01091766357421875, 0.005771636962890625, 0.01617431640625, 0.0447998046875, 0.005817413330078125, 0.0271148681640625, -0.0269012451171875, 0.007537841796875, -0.05926513671875, 0.05078125, -0.029205322265625, -0.004772186279296875, -0.034515380859375, 0.0310516357421875, -0.039276123046875, -0.032135009765625, -0.0219268798828125, 0.0311279296875, -0.018768310546875, 0.007678985595703125, -0.07904052734375, 0.044647216796875, -0.043731689453125, 0.055633544921875, -0.006748199462890625, -0.0202484130859375, 0.005771636962890625, -0.036376953125, -0.004730224609375, -0.034454345703125, -0.0489501953125, 0.006702423095703125, -0.049530029296875, 0.07586669921875, -0.0212860107421875, 0.076416015625, -0.0267791748046875, -0.07421875, -0.0066070556640625, -0.018707275390625, 0.005733489990234375, -0.0321044921875, -0.004669189453125, -0.017974853515625, 0.0177764892578125, 0.0021724700927734375, 0.001949310302734375, 0.0147857666015625, -0.030029296875, -0.0335693359375, -0.0614013671875, -0.0249481201171875, -0.06146240234375, -0.057891845703125, 0.0076904296875, 0.0750732421875, 0.0297088623046875, -0.01739501953125, 0.023834228515625, 0.03582763671875, 0.004520416259765625, -0.02020263671875, 0.03851318359375, -0.01325225830078125, -0.0086822509765625, 0.030548095703125, -0.02862548828125, -0.01340484619140625, 0.015716552734375, -0.08831787109375, -0.0179595947265625, 0.061370849609375, -0.038909912109375, 0.0157623291015625, -0.0171356201171875, 0.0177154541015625, -0.0246124267578125, -0.05316162109375, 0.02252197265625, -0.04559326171875, 0.044769287109375, 0.001552581787109375, 0.047760009765625, 0.028564453125, -0.0151519775390625, 0.0049591064453125, 0.0011348724365234375, -0.035614013671875, 0.01404571533203125, 0.0218505859375, -0.067138671875, 0.025146484375, -0.019317626953125, 0.0280303955078125, -0.005748748779296875, 0.0092315673828125, -0.018646240234375, 0.0016279220581054688, -0.011871337890625, -0.006603240966796875, 0.00849151611328125, -0.060546875, 0.01410675048828125, 0.0122528076171875, 0.002017974853515625, -0.0258331298828125, 0.021087646484375, -0.014984130859375, -0.037017822265625, 0.03076171875, 0.001506805419921875, -0.046630859375, 0.014312744140625, -0.0269927978515625, 0.03082275390625, -0.0144500732421875, 0.0184478759765625, 0.04791259765625, 0.0061798095703125, 0.00994110107421875, -0.0096435546875, -0.032745361328125, -0.01064300537109375, 0.0061798095703125, -0.0068359375, -0.00824737548828125, -0.048919677734375, 0.039581298828125, 0.00951385498046875, 0.0304412841796875, -0.0035400390625, -0.0340576171875, -0.01024627685546875, 0.010284423828125, -0.0841064453125, -0.0972900390625, -0.0018758773803710938, -0.0489501953125, -0.01436614990234375, -0.015167236328125, -0.03656005859375, 0.004734039306640625, -0.0053863525390625, 0.01064300537109375, -0.01024627685546875, -0.032684326171875, 0.001617431640625, -0.047760009765625, -0.068359375, -0.043792724609375, 0.024627685546875, 0.0212249755859375, -0.0177154541015625, 0.05010986328125, -0.004344940185546875, -0.049774169921875, -0.045867919921875, -0.037384033203125, 0.0103759765625, 0.0011663436889648438, 0.00542449951171875, -0.00894927978515625, 0.013458251953125, 0.0021076202392578125, 0.033966064453125, 0.035888671875, -0.04229736328125, -0.0162353515625, -0.0163116455078125, 0.0039520263671875, 0.0372314453125, -0.01364898681640625, -0.008453369140625, 0.039215087890625, 0.035858154296875, -0.01812744140625, -0.00243377685546875, -0.0244598388671875, -0.028564453125, -0.016143798828125, -0.003223419189453125, 0.007781982421875, -0.03460693359375, 0.034698486328125, -0.0281219482421875, 0.0113677978515625, 0.01509857177734375, -0.006076812744140625, 0.016693115234375, -0.0230560302734375, -0.055511474609375, -0.003597259521484375, 0.047271728515625, -0.0191650390625, 0.025421142578125, 0.024566650390625, -0.012451171875, -0.01611328125, -0.007740020751953125, -0.046356201171875, -0.04840087890625, 0.03253173828125, -0.033447265625, 0.01178741455078125, -0.032257080078125, -0.01282501220703125, -0.0020275115966796875, 0.08770751953125, -0.0458984375, -0.029449462890625, 0.023223876953125, 0.0555419921875, -0.051666259765625, -0.051116943359375, -0.01204681396484375, -0.0182952880859375, -0.0252532958984375, -0.0158233642578125, -0.0309906005859375, 0.01314544677734375, -0.0160980224609375, 0.0248870849609375, -0.0161285400390625, -0.035675048828125, 0.0457763671875, 0.00630950927734375, -0.0012187957763671875, 0.029815673828125, -0.0265045166015625, 0.020172119140625, -0.032012939453125, -0.0016078948974609375, -0.07611083984375, -0.0185089111328125, -0.0133209228515625, 0.059295654296875, -0.0026226043701171875, 0.005725860595703125, -0.0209197998046875, 0.046112060546875, 0.0060577392578125, -0.022430419921875, 0.0155487060546875, 0.0007405281066894531, -0.004268646240234375, 0.016754150390625, 0.0237884521484375, -0.026153564453125, -0.0310516357421875, -0.01187896728515625, 0.005580902099609375, 0.00606536865234375, -0.00860595703125, -0.00438690185546875, 0.0168609619140625, -0.004741668701171875, 0.01261138916015625, -0.01727294921875, -0.0125732421875, 0.0693359375, -0.043182373046875, 0.0262603759765625, -0.045745849609375, -0.047119140625, 0.09796142578125, -0.0122833251953125, 0.00504302978515625, -0.01081085205078125, 0.061553955078125, -0.0007824897766113281, -0.0452880859375, -0.020843505859375, -0.00922393798828125, 0.03466796875, 0.004962921142578125, 0.033294677734375, 0.013153076171875, -0.021270751953125, 0.04400634765625, 0.0233306884765625, -0.033935546875, -0.0177459716796875, 0.051849365234375, 0.0128631591796875, 0.002193450927734375, -0.007282257080078125, -0.03369140625, 0.03485107421875, 0.01983642578125, -0.0014944076538085938, -0.00405120849609375, -0.01073455810546875, 0.017059326171875, 0.0009007453918457031, 0.007537841796875, -0.0287017822265625, -0.052520751953125, 0.0273590087890625, -0.058807373046875, 0.027435302734375, -0.01482391357421875, 0.01189422607421875, 0.02398681640625, -0.003787994384765625, -0.0222015380859375, -0.03662109375, -0.0070037841796875, -0.0050201416015625, 0.02838134765625, -0.0243682861328125, -0.007080078125, -0.02655029296875, -0.01367950439453125, 0.06610107421875, 0.010284423828125, -0.0256195068359375, 0.016143798828125, -0.0168609619140625, -0.01425933837890625, 0.0197601318359375, 0.02099609375, 0.0283050537109375, 0.037445068359375, -0.0185394287109375, -0.02734375, 0.020355224609375, 0.039215087890625, -0.04205322265625, 0.061126708984375, 0.0237274169921875, 0.00525665283203125, -0.00276947021484375, 0.0467529296875, 0.05487060546875, -0.0019664764404296875, -0.025360107421875, 0.0596923828125, 0.0300445556640625, 0.048126220703125, 0.0208740234375, -0.0293121337890625, -0.00213623046875, 0.0178680419921875, -0.058349609375, 0.0005478858947753906, 0.00826263427734375, -0.02581787109375, -0.002468109130859375, -0.0204925537109375, 0.0005078315734863281, 0.04156494140625, -0.00798797607421875, 0.0007581710815429688, 0.00238037109375, 0.01093292236328125, -0.02252197265625, 0.0164337158203125, 0.0123138427734375, -0.00417327880859375, -0.0063323974609375, 0.00966644287109375, 0.0018739700317382812, -0.0220947265625, 0.047393798828125, -0.034454345703125, 0.07861328125, -0.07025146484375, -0.10296630859375, 0.0172119140625, -0.031463623046875, -0.035736083984375, 0.008148193359375, 0.0219879150390625, -0.03753662109375, -0.0226898193359375, 0.04541015625, -0.00543975830078125, 0.027984619140625, -0.05523681640625, -0.0009813308715820312, -0.00925445556640625, -0.00995635986328125, 0.03240966796875, 0.01312255859375, 0.01483154296875, -0.043365478515625, -0.033172607421875, -0.033203125, -0.0251312255859375, -0.0310211181640625, -0.0120391845703125, -0.00795745849609375, 0.016326904296875, 0.029449462890625, 0.00830841064453125, -0.0286102294921875, -0.0109405517578125, -0.01470184326171875, 0.0080108642578125, 0.045745849609375, -0.00807952880859375, 0.1038818359375, 0.0014190673828125, 0.081298828125, 0.039215087890625, 0.058074951171875, -0.037811279296875, -0.0225067138671875, 0.034027099609375, 0.01311492919921875, -0.026031494140625, -0.031890869140625, -0.0178680419921875, -0.04718017578125, 0.0104522705078125, -0.0222625732421875, 0.01413726806640625, 0.0008068084716796875, 0.00615692138671875, -0.01373291015625, 0.01021575927734375, -0.0164337158203125, 0.005527496337890625, 0.0301055908203125, -0.0103759765625, 0.03839111328125, -0.018310546875, 0.02142333984375, -0.01514434814453125, -0.036376953125, -0.014862060546875, 0.027191162109375, -0.027191162109375, 0.02911376953125, 0.0650634765625, 0.0008587837219238281, 0.05322265625, 0.01406097412109375, 0.01446533203125, 0.045379638671875, 0.0196685791015625, -0.042999267578125, 0.01236724853515625, 0.0467529296875, 0.01531219482421875, -0.014373779296875, 0.025177001953125, -0.00974273681640625, 0.05584716796875, 0.055816650390625, 0.0794677734375, -0.07574462890625, 0.03155517578125, 0.02716064453125, -0.033843994140625, 0.04705810546875, 0.0031147003173828125, -0.00975799560546875, 0.0195465087890625, 0.00902557373046875, -0.026458740234375, -0.0394287109375, 0.0043182373046875, 0.026580810546875, -0.017852783203125, -0.050750732421875, 0.0160980224609375, 0.005451202392578125, -0.025360107421875, 0.016998291015625, 0.005340576171875, -0.00234222412109375, 0.0022735595703125, 0.015625, -0.0205535888671875, -0.014129638671875, -0.052337646484375, -0.003887176513671875, -0.01201629638671875, -0.01161956787109375, 0.01483917236328125, 0.0204010009765625, 0.059814453125, 0.052703857421875, -0.0050506591796875, 0.0120849609375, 0.0204925537109375, 0.03570556640625, -0.0265045166015625, -0.01177978515625, -0.0089569091796875, 0.043792724609375, -0.022613525390625, 0.0185089111328125, -0.0268707275390625, 0.0168914794921875, 0.027557373046875, -0.0026912689208984375, 0.01654052734375, -0.03936767578125, 0.0023326873779296875, 0.032623291015625, -0.0027675628662109375, -0.00881195068359375, -0.0118865966796875, -0.0266876220703125, -0.068359375, -0.034393310546875, -0.013397216796875, -0.041900634765625, 0.036376953125, 0.00007432699203491211, -0.051239013671875, 0.068115234375, -0.0189971923828125, 0.0094757080078125, 0.007110595703125, 0.0313720703125, -0.0301055908203125, -0.0013704299926757812, -0.0297698974609375, 0.01517486572265625, -0.0084075927734375, 0.00543975830078125, -0.044769287109375, 0.004398345947265625, -0.018280029296875, 0.007328033447265625, 0.03680419921875, 0.0098724365234375, -0.001888275146484375, -0.01174163818359375, 0.0165863037109375, 0.0214691162109375, -0.00856781005859375, 0.01483154296875, -0.0194549560546875, -0.0121002197265625, 0.0195159912109375, 0.00463104248046875, 0.013214111328125, 0.03436279296875, -0.0552978515625, 0.00978851318359375, 0.0017042160034179688, -0.00704193115234375, -0.0002722740173339844, 0.0266571044921875, 0.047760009765625, -0.023162841796875, -0.0240325927734375, -0.0487060546875, -0.0440673828125, 0.03814697265625, 0.0135650634765625, -0.0305938720703125, -0.01236724853515625, -0.028564453125, 0.021636962890625, 0.0176544189453125, -0.0133514404296875, 0.026824951171875, 0.01406097412109375, -0.00010532140731811523, 0.01503753662109375, -0.020782470703125, 0.0146026611328125, 0.033538818359375, 0.07794189453125, 0.054229736328125, 0.037567138671875, -0.0118408203125, 0.00659942626953125, 0.065673828125, 0.08355712890625, -0.0550537109375, 0.01070404052734375, 0.01390838623046875, 0.0090789794921875, 0.004795074462890625, -0.03985595703125, 0.034027099609375, -0.01325225830078125, -0.0029773712158203125, 0.017669677734375, -0.005855560302734375, 0.02191162109375, -0.01187896728515625, 0.017486572265625, 0.062286376953125, -0.0279693603515625, 0.00872802734375, -0.055389404296875, -0.005100250244140625, 0.0018548965454101562, 0.06036376953125, 0.0140533447265625, 0.052032470703125, -0.0036411285400390625, -0.024505615234375, -0.0097808837890625, 0.0167083740234375, -0.00997161865234375, 0.004062652587890625, 0.0020732879638671875, 0.0007953643798828125, -0.021209716796875, 0.013336181640625, 0.006931304931640625, 0.0299530029296875, 0.04534912109375, 0.033782958984375, -0.04718017578125, 0.00814056396484375, 0.0269775390625, -0.03155517578125, -0.08282470703125, -0.04620361328125, 0.00689697265625, 0.044525146484375, 0.03192138671875, 0.044342041015625, 0.045318603515625, 0.0066375732421875, -0.03045654296875, 0.0096282958984375, 0.00007975101470947266, 0.01360321044921875, 0.07708740234375, -0.003231048583984375, -0.003849029541015625, 0.003635406494140625, 0.0203857421875, 0.0141143798828125, -0.038848876953125, -0.01418304443359375, -0.004428863525390625, 0.0216827392578125, 0.035308837890625, -0.01279449462890625, -0.034912109375, 0.0066680908203125, -0.01247406005859375, 0.01421356201171875, -0.004749298095703125, -0.0067901611328125, 0.037200927734375, -0.01451873779296875, -0.02032470703125, -0.00479888916015625, 0.00408935546875, 0.0233154296875, -0.0223236083984375, 0.00555419921875, -0.0036411285400390625, 0.0036220550537109375, 0.003398895263671875, 0.054779052734375, -0.05718994140625, 0.0180816650390625, -0.0091705322265625, -0.011688232421875, 0.0293426513671875, -0.006011962890625, -0.0418701171875, -0.0236968994140625, 0.045257568359375, -0.004489898681640625, -0.006107330322265625, -0.0103759765625, 0.056182861328125, -0.0076751708984375, -0.01194000244140625, -0.0088958740234375, 0.0020313262939453125, 0.07073974609375, 0.0367431640625, 0.0089263916015625, 0.032745361328125, 0.025390625, 0.054168701171875, 0.0193023681640625, 0.00896453857421875, 0.00885009765625, -0.032501220703125, 0.043853759765625, 0.034881591796875, -0.026641845703125, 0.002109527587890625, -0.0252227783203125, -0.030120849609375, -0.0298309326171875, 0.00746917724609375, 0.0019254684448242188, -0.028839111328125, -0.01050567626953125, 0.051788330078125, 0.032073974609375, 0.034881591796875, -0.013763427734375, 0.0216064453125, 0.030120849609375, -0.0111846923828125, 0.01331329345703125, -0.00519561767578125, -0.0233154296875, -0.0241851806640625, -0.017303466796875, 0.02197265625, -0.032958984375, -0.01279449462890625, -0.08624267578125, 0.0051116943359375, -0.0169677734375, -0.02294921875, -0.00762176513671875, 0.00917816162109375, -0.01666259765625, 0.0120697021484375, -0.040618896484375, -0.04376220703125, 0.0002543926239013672, 0.0309600830078125, 0.01291656494140625, -0.04315185546875, -0.040069580078125, 0.04437255859375, -0.03460693359375, -0.0114288330078125, -0.001163482666015625, 0.01409912109375, -0.004405975341796875, -0.027740478515625, -0.00400543212890625, 0.00385284423828125, -0.041046142578125, -0.03741455078125, 0.0234222412109375, -0.0274658203125, 0.005939483642578125, -0.03741455078125, 0.0217437744140625, -0.08984375, -0.0031948089599609375, -0.01314544677734375, -0.0057830810546875, -0.005184173583984375, -0.04046630859375, -0.06243896484375, 0.009002685546875, -0.0008192062377929688, -0.0419921875, -0.0247650146484375, 0.01372528076171875, -0.00868988037109375, 0.045806884765625, -0.0003616809844970703, -0.0252838134765625, -0.00569915771484375, 0.0203094482421875, 0.01142120361328125, 0.0258941650390625, 0.002964019775390625, 0.0161285400390625, -0.07098388671875, -0.007381439208984375, -0.03076171875, 0.012908935546875, 0.00881195068359375, -0.0108642578125, 0.033782958984375, 0.034454345703125, -0.019134521484375, 0.004230499267578125, 0.01203155517578125, -0.0213165283203125, -0.036041259765625, -0.025909423828125, -0.041473388671875, -0.0104217529296875, 0.08245849609375, 0.09124755859375, 0.0177001953125, -0.038299560546875, -0.0265960693359375, -0.020965576171875, -0.03948974609375, 0.0134429931640625, 0.024566650390625, -0.060211181640625, 0.026275634765625, 0.00885009765625, 0.020233154296875, -0.0245513916015625, 0.03460693359375, 0.0155181884765625, -0.01214599609375, 0.061431884765625, -0.0253448486328125, 0.00048065185546875, 0.0233612060546875, 0.0250244140625, -0.018524169921875, 0.002902984619140625, -0.01476287841796875, -0.004367828369140625, 0.0035037994384765625, 0.00786590576171875, -0.0170745849609375, -0.0115814208984375, 0.0233306884765625, -0.006549835205078125, 0.0194244384765625, -0.011871337890625, 0.031829833984375, 0.0013589859008789062, -0.00623321533203125, -0.01611328125, -0.0194549560546875, -0.0294189453125, 0.04144287109375, -0.0011310577392578125, -0.029296875, 0.0643310546875, -0.001781463623046875, -0.0146331787109375, -0.0299835205078125, 0.01953125, 0.0259552001953125, -0.01568603515625, 0.041412353515625, -0.00864410400390625, 0.00803375244140625, -0.029083251953125, 0.01256561279296875, -0.044403076171875, 0.0107269287109375, -0.06915283203125, -0.0157318115234375, 0.022491455078125 ]
a8df738432f98bfe777014fd2ac455b8f530233d
Wordpress Stackexchange Q: 'Trying to get property of non-object' when using WP_Query with 'fields' => 'ids' In an attempt to speed up my query, I'm using the following arguments: $args = array( 'post_type' => 'product', 'fields' => 'ids', ); $query = new WP_Query($args); While this does return an array of IDs as expected, I keep getting multiple Trying to get property of non-object in /wp-includes/query.php notices. This happens even when I have nothing inside my while other than the_post(): if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); endwhile; endif; Is the_post() causing this? Any idea why I'm getting these notices? A: the_post places the next post object from $query->posts in the global $post and calls setup_postdata, which assumes $post is a post object, as it tries to access member vars of that object, which is where the errors come from. In this case $posts is just an array of IDs instead of post objects. If you want to iterate over the results, you can do a foreach on $posts: $args = array( 'post_type' => 'product', 'fields' => 'ids', ); $query = new WP_Query($args); if ($query->have_posts()): foreach( $query->posts as $id ): echo 'ID: ' . $id; endforeach; endif;
Q: 'Trying to get property of non-object' when using WP_Query with 'fields' => 'ids' In an attempt to speed up my query, I'm using the following arguments: $args = array( 'post_type' => 'product', 'fields' => 'ids', ); $query = new WP_Query($args); While this does return an array of IDs as expected, I keep getting multiple Trying to get property of non-object in /wp-includes/query.php notices. This happens even when I have nothing inside my while other than the_post(): if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); endwhile; endif; Is the_post() causing this? Any idea why I'm getting these notices? A: the_post places the next post object from $query->posts in the global $post and calls setup_postdata, which assumes $post is a post object, as it tries to access member vars of that object, which is where the errors come from. In this case $posts is just an array of IDs instead of post objects. If you want to iterate over the results, you can do a foreach on $posts: $args = array( 'post_type' => 'product', 'fields' => 'ids', ); $query = new WP_Query($args); if ($query->have_posts()): foreach( $query->posts as $id ): echo 'ID: ' . $id; endforeach; endif;
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:443131", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137488" }
[ 0.03680419921875, -0.0063629150390625, -0.0123748779296875, -0.01690673828125, 0.02032470703125, -0.0364990234375, 0.039031982421875, -0.0166778564453125, -0.0008263587951660156, 0.013763427734375, -0.07763671875, 0.005565643310546875, -0.0310516357421875, -0.0081329345703125, 0.0011444091796875, -0.061553955078125, 0.0224456787109375, -0.013702392578125, 0.00426483154296875, -0.00270843505859375, -0.00905609130859375, 0.004993438720703125, 0.029571533203125, 0.0134735107421875, 0.0297088623046875, -0.01486968994140625, 0.0225677490234375, -0.013275146484375, 0.02166748046875, -0.0031185150146484375, 0.0196380615234375, -0.0111846923828125, 0.0278167724609375, 0.0102691650390625, -0.011199951171875, 0.01163482666015625, 0.0305023193359375, -0.00980377197265625, 0.01494598388671875, 0.017425537109375, 0.01214599609375, -0.007114410400390625, 0.006748199462890625, 0.02703857421875, -0.01459503173828125, -0.00804901123046875, 0.002685546875, -0.0261383056640625, 0.04296875, 0.005138397216796875, -0.0291290283203125, 0.034271240234375, -0.032684326171875, -0.005268096923828125, -0.0086212158203125, -0.01275634765625, 0.0158538818359375, -0.0310516357421875, 0.05633544921875, -0.032470703125, -0.065673828125, -0.052215576171875, 0.048309326171875, -0.03515625, 0.004749298095703125, 0.0143585205078125, 0.031219482421875, 0.0254974365234375, -0.01139068603515625, -0.0166473388671875, 0.005290985107421875, -0.01739501953125, -0.0094757080078125, -0.004070281982421875, -0.0000064373016357421875, -0.042022705078125, 0.007549285888671875, -0.0435791015625, -0.00543975830078125, 0.054473876953125, -0.0261688232421875, -0.00414276123046875, -0.08416748046875, 0.033782958984375, -0.03106689453125, 0.0306396484375, -0.027099609375, -0.00809478759765625, -0.00801849365234375, -0.0321044921875, -0.009674072265625, -0.027435302734375, -0.01349639892578125, -0.01220703125, -0.01082611083984375, -0.045745849609375, 0.00997161865234375, -0.00568389892578125, 0.0152587890625, 0.0256500244140625, -0.0265350341796875, -0.04327392578125, 0.0159149169921875, 0.0050048828125, 0.02764892578125, 0.054595947265625, -0.0134735107421875, 0.0093841552734375, 0.06109619140625, 0.0293121337890625, 0.028045654296875, 0.053253173828125, 0.0010080337524414062, -0.0003707408905029297, -0.0521240234375, 0.029754638671875, -0.0061187744140625, -0.034454345703125, -0.0014314651489257812, -0.004383087158203125, -0.01232147216796875, -0.00801849365234375, 0.0008440017700195312, 0.005535125732421875, 0.0288238525390625, 0.0169219970703125, -0.0017185211181640625, -0.0032215118408203125, -0.0078887939453125, 0.0224151611328125, -0.03192138671875, 0.008697509765625, 0.0516357421875, 0.01013946533203125, -0.009002685546875, -0.0148162841796875, 0.040985107421875, -0.05780029296875, 0.0068359375, -0.029449462890625, 0.072998046875, -0.003925323486328125, -0.02728271484375, 0.03515625, -0.0075836181640625, 0.0052490234375, 0.03472900390625, 0.00426483154296875, -0.01418304443359375, -0.04217529296875, -0.018157958984375, 0.01404571533203125, 0.023956298828125, 0.0149993896484375, -0.0011682510375976562, 0.0014238357543945312, 0.050872802734375, -0.036224365234375, -0.03955078125, -0.056915283203125, -0.01303863525390625, -0.006717681884765625, 0.021148681640625, -0.03131103515625, -0.043975830078125, 0.0115203857421875, -0.0173492431640625, -0.00270843505859375, 0.0289459228515625, 0.0677490234375, 0.00959014892578125, -0.037445068359375, 0.050140380859375, 0.03350830078125, -0.01450347900390625, 0.0268707275390625, 0.0011653900146484375, -0.022491455078125, 0.028045654296875, -0.0134429931640625, -0.048004150390625, -0.03240966796875, 0.007793426513671875, -0.01435089111328125, -0.05938720703125, 0.0654296875, -0.0006322860717773438, 0.038848876953125, -0.0011568069458007812, -0.0022735595703125, 0.070556640625, 0.043670654296875, -0.06036376953125, 0.08038330078125, 0.007762908935546875, -0.049530029296875, 0.0126953125, -0.0110931396484375, 0.0046539306640625, -0.03558349609375, 0.01393890380859375, -0.01515960693359375, -0.0086212158203125, 0.00852203369140625, -0.06640625, 0.0022907257080078125, -0.00582122802734375, 0.0219573974609375, -0.018280029296875, 0.03277587890625, 0.03265380859375, 0.0214996337890625, -0.060394287109375, 0.046630859375, -0.007236480712890625, -0.008209228515625, 0.0048675537109375, 0.00379180908203125, -0.00551605224609375, -0.0144805908203125, -0.02362060546875, -0.0400390625, -0.0198974609375, 0.040679931640625, 0.0699462890625, -0.001331329345703125, 0.006435394287109375, -0.014678955078125, 0.0933837890625, 0.01493072509765625, 0.01035308837890625, -0.012420654296875, 0.0206146240234375, 0.04876708984375, -0.00618743896484375, 0.006439208984375, 0.029296875, -0.042022705078125, 0.025848388671875, 0.036590576171875, 0.0286407470703125, 0.032012939453125, 0.003627777099609375, -0.01108551025390625, 0.05194091796875, 0.0018215179443359375, 0.031707763671875, -0.043548583984375, 0.0048980712890625, 0.0255126953125, -0.002777099609375, 0.0012922286987304688, 0.0266265869140625, 0.004673004150390625, 0.0072479248046875, 0.0244293212890625, -0.023223876953125, 0.01262664794921875, -0.041351318359375, -0.0016508102416992188, -0.00965118408203125, -0.0771484375, -0.0304412841796875, -0.028289794921875, 0.061553955078125, 0.00681304931640625, 0.046173095703125, 0.021270751953125, -0.016021728515625, 0.0143585205078125, -0.01540374755859375, -0.04913330078125, 0.01189422607421875, -0.0019474029541015625, -0.040069580078125, 0.0117034912109375, -0.04071044921875, 0.0261077880859375, 0.032501220703125, -0.018402099609375, 0.005901336669921875, 0.033538818359375, 0.0160675048828125, -0.0091705322265625, -0.022674560546875, 0.002880096435546875, 0.0244140625, 0.0204925537109375, -0.0009379386901855469, -0.0246124267578125, 0.0190887451171875, 0.01544189453125, -0.034149169921875, 0.043609619140625, -0.0291900634765625, -0.0313720703125, 0.017913818359375, -0.03765869140625, 0.03277587890625, -0.031402587890625, 0.04840087890625, 0.051605224609375, -0.0164642333984375, 0.0189361572265625, 0.012420654296875, 0.00278472900390625, -0.005214691162109375, 0.02606201171875, -0.01165008544921875, 0.0121002197265625, -0.0941162109375, 0.002300262451171875, 0.031463623046875, 0.09429931640625, 0.00846099853515625, -0.06353759765625, 0.016204833984375, 0.05255126953125, -0.12646484375, -0.1580810546875, 0.035858154296875, -0.0335693359375, -0.06488037109375, -0.01557159423828125, -0.04364013671875, 0.024139404296875, -0.01541900634765625, -0.0188140869140625, 0.01506805419921875, 0.00421142578125, -0.09393310546875, -0.031402587890625, -0.08404541015625, 0.00568389892578125, -0.0216827392578125, 0.03131103515625, 0.00970458984375, 0.0528564453125, 0.0220489501953125, -0.004058837890625, 0.0210723876953125, 0.060821533203125, -0.0247344970703125, -0.027374267578125, -0.00978851318359375, 0.01461029052734375, -0.0245819091796875, -0.0025768280029296875, 0.006755828857421875, 0.0160369873046875, -0.0255584716796875, -0.0017032623291015625, 0.00574493408203125, 0.042816162109375, 0.045257568359375, 0.00836181640625, -0.0169677734375, 0.0819091796875, 0.048828125, 0.01181793212890625, -0.037841796875, -0.0093841552734375, -0.048126220703125, 0.0199737548828125, 0.0288238525390625, 0.0014934539794921875, 0.00229644775390625, 0.0011930465698242188, 0.0238189697265625, 0.0017690658569335938, -0.0282135009765625, -0.024383544921875, 0.03607177734375, 0.03167724609375, 0.061248779296875, 0.0079345703125, -0.0028629302978515625, -0.035888671875, -0.0178680419921875, -0.01036834716796875, -0.011871337890625, 0.004608154296875, -0.04486083984375, -0.0338134765625, -0.00972747802734375, 0.0296173095703125, -0.0158233642578125, 0.037322998046875, -0.040252685546875, -0.02716064453125, -0.02880859375, 0.055389404296875, -0.0270843505859375, -0.0294189453125, -0.05975341796875, 0.0176849365234375, -0.054931640625, -0.08270263671875, 0.0008702278137207031, 0.01541900634765625, 0.025787353515625, -0.027618408203125, -0.005558013916015625, -0.024658203125, -0.0023975372314453125, 0.0232391357421875, 0.003971099853515625, 0.007579803466796875, 0.0286712646484375, -0.026458740234375, 0.01374053955078125, 0.0012006759643554688, -0.0005593299865722656, -0.0172882080078125, -0.02239990234375, -0.0195770263671875, -0.10546875, -0.0221710205078125, 0.0305328369140625, 0.07281494140625, -0.037261962890625, 0.0340576171875, -0.041046142578125, 0.041717529296875, -0.0081787109375, -0.0257110595703125, -0.004077911376953125, 0.013916015625, -0.034423828125, -0.0043182373046875, -0.020751953125, -0.01776123046875, 0.010772705078125, -0.00795745849609375, -0.0210723876953125, 0.017913818359375, -0.048431396484375, -0.0087127685546875, -0.02459716796875, -0.02996826171875, -0.02783203125, -0.00045990943908691406, 0.039459228515625, 0.0248260498046875, -0.0264892578125, 0.035064697265625, -0.0011997222900390625, -0.0142364501953125, 0.04742431640625, 0.01904296875, -0.0108795166015625, -0.01068878173828125, 0.0821533203125, 0.0140380859375, -0.0307769775390625, -0.028533935546875, -0.0181427001953125, 0.01580810546875, -0.01806640625, 0.032470703125, 0.00881195068359375, -0.0172882080078125, 0.055450439453125, -0.00897216796875, -0.0289764404296875, 0.00841522216796875, 0.0220947265625, 0.01117706298828125, -0.023712158203125, -0.01088714599609375, -0.031280517578125, 0.0172882080078125, 0.0211944580078125, 0.0052490234375, -0.0380859375, 0.0496826171875, 0.049591064453125, -0.0394287109375, 0.028564453125, -0.0234222412109375, -0.0523681640625, 0.024627685546875, -0.004131317138671875, -0.025054931640625, 0.01488494873046875, -0.006549835205078125, 0.0012760162353515625, -0.0206451416015625, 0.0190277099609375, 0.036468505859375, 0.047210693359375, 0.0084075927734375, 0.0274658203125, 0.057952880859375, 0.006107330322265625, -0.0172119140625, -0.00168609619140625, 0.0249481201171875, -0.0197296142578125, -0.0533447265625, 0.0017747879028320312, 0.0017185211181640625, 0.0302276611328125, 0.029327392578125, 0.00894927978515625, 0.052581787109375, 0.028564453125, 0.01233673095703125, -0.0176849365234375, -0.0323486328125, 0.01305389404296875, -0.031341552734375, 0.01251220703125, -0.0150909423828125, 0.01204681396484375, 0.006336212158203125, 0.05859375, -0.01910400390625, 0.05462646484375, -0.030975341796875, 0.01346588134765625, 0.0104522705078125, 0.038909912109375, 0.0188751220703125, -0.0273895263671875, 0.0139312744140625, 0.0177764892578125, 0.016265869140625, -0.0467529296875, -0.00634765625, -0.01678466796875, 0.058685302734375, 0.025665283203125, -0.009307861328125, 0.02740478515625, -0.0236968994140625, -0.0107421875, 0.0352783203125, 0.0321044921875, -0.007762908935546875, -0.033203125, -0.020294189453125, 0.0297393798828125, 0.00266265869140625, 0.00909423828125, -0.0031948089599609375, 0.005828857421875, 0.0316162109375, -0.03338623046875, 0.00754547119140625, -0.00016438961029052734, 0.00043702125549316406, 0.003925323486328125, -0.042449951171875, -0.00637054443359375, -0.0052642822265625, 0.0099029541015625, -0.019317626953125, -0.00765228271484375, 0.00047135353088378906, -0.01348876953125, 0.050811767578125, -0.05596923828125, -0.004306793212890625, -0.06219482421875, -0.002872467041015625, 0.023895263671875, 0.0240325927734375, -0.005130767822265625, -0.00847625732421875, -0.04302978515625, -0.027587890625, 0.01226043701171875, 0.0076141357421875, -0.025299072265625, -0.003986358642578125, -0.03851318359375, 0.0304718017578125, -0.0287628173828125, -0.00850677490234375, -0.005275726318359375, -0.022613525390625, -0.05145263671875, -0.0014743804931640625, -0.0252532958984375, 0.0235137939453125, -0.0029506683349609375, 0.005428314208984375, -0.01161956787109375, -0.0097198486328125, -0.01039886474609375, 0.005115509033203125, -0.03887939453125, -0.06341552734375, 0.0283050537109375, 0.044677734375, -0.01300048828125, 0.0045166015625, 0.007411956787109375, 0.0108184814453125, 0.0284271240234375, -0.0283966064453125, -0.0172576904296875, -0.0144195556640625, 0.020050048828125, -0.046295166015625, 0.01457977294921875, 0.030242919921875, -0.0269622802734375, -0.065185546875, 0.001338958740234375, 0.021728515625, -0.00440216064453125, -0.0009202957153320312, -0.03399658203125, -0.0125274658203125, -0.0087738037109375, -0.00760650634765625, 0.0343017578125, -0.018310546875, 0.0214385986328125, 0.0012340545654296875, -0.0019521713256835938, 0.043792724609375, -0.0051116943359375, 0.00684356689453125, 0.004505157470703125, 0.0775146484375, -0.003665924072265625, -0.03411865234375, 0.043975830078125, -0.044921875, 0.019500732421875, 0.00782012939453125, 0.053436279296875, -0.0277252197265625, 0.01806640625, -0.005313873291015625, -0.03173828125, 0.04083251953125, 0.0113983154296875, 0.0189666748046875, 0.044952392578125, -0.019744873046875, 0.018707275390625, -0.029632568359375, -0.002216339111328125, 0.0216522216796875, 0.007415771484375, -0.002471923828125, 0.0225982666015625, -0.0011005401611328125, -0.045867919921875, 0.016082763671875, 0.03240966796875, -0.00855255126953125, -0.033233642578125, 0.01091766357421875, 0.000942230224609375, -0.00969696044921875, -0.09161376953125, 0.010772705078125, -0.0005903244018554688, -0.012847900390625, 0.00982666015625, 0.00841522216796875, 0.01020050048828125, 0.05145263671875, 0.00646209716796875, -0.0172271728515625, 0.01273345947265625, -0.0254974365234375, -0.04376220703125, 0.00513458251953125, -0.00794219970703125, 0.048736572265625, -0.0201568603515625, 0.029693603515625, -0.03228759765625, 0.0316162109375, -0.004833221435546875, -0.0126800537109375, 0.0086822509765625, -0.032012939453125, 0.01346588134765625, 0.04534912109375, 0.040924072265625, -0.01434326171875, 0.004730224609375, 0.0027027130126953125, -0.0095977783203125, -0.01309967041015625, -0.0016431808471679688, -0.030914306640625, -0.0223388671875, -0.02508544921875, -0.046112060546875, 0.0384521484375, 0.061126708984375, 0.005023956298828125, 0.020050048828125, 0.007472991943359375, -0.043121337890625, -0.0187835693359375, -0.05206298828125, 0.03564453125, -0.01210784912109375, 0.07110595703125, -0.080322265625, -0.0258026123046875, 0.01593017578125, 0.03900146484375, 0.039306640625, -0.006145477294921875, -0.05438232421875, -0.02215576171875, 0.028350830078125, 0.04638671875, 0.00878143310546875, 0.0419921875, 0.0193023681640625, 0.051483154296875, 0.07403564453125, -0.05548095703125, 0.033355712890625, -0.01165008544921875, 0.01334381103515625, 0.0278472900390625, 0.022705078125, 0.035491943359375, 0.000316619873046875, 0.019378662109375, -0.00010251998901367188, -0.0196533203125, 0.0225830078125, -0.0152435302734375, 0.0220184326171875, 0.0543212890625, 0.053436279296875, -0.0625, -0.00946044921875, -0.043609619140625, 0.05389404296875, -0.01861572265625, 0.0247344970703125, 0.0333251953125, 0.0203399658203125, 0.09149169921875, 0.002655029296875, 0.0018634796142578125, 0.0295562744140625, -0.0007815361022949219, 0.05157470703125, 0.0285491943359375, 0.0194854736328125, -0.05303955078125, -0.0161285400390625, 0.03851318359375, 0.0709228515625, -0.046905517578125, -0.039306640625, 0.0181121826171875, 0.0266265869140625, 0.0118255615234375, -0.005767822265625, 0.019317626953125, 0.02972412109375, 0.07354736328125, -0.043365478515625, 0.0109710693359375, 0.0460205078125, 0.001148223876953125, -0.007297515869140625, -0.0452880859375, -0.0229339599609375, 0.0177154541015625, -0.0254364013671875, 0.01271820068359375, 0.01641845703125, 0.0718994140625, 0.0225067138671875, 0.034820556640625, -0.06494140625, -0.03851318359375, -0.0007410049438476562, -0.0038013458251953125, -0.009002685546875, -0.0087127685546875, 0.0021514892578125, -0.0222930908203125, -0.037261962890625, 0.027740478515625, 0.0228118896484375, 0.003269195556640625, 0.038116455078125, 0.0611572265625, 0.0161895751953125, -0.0027179718017578125, 0.050567626953125, 0.00104522705078125, -0.00853729248046875, -0.005138397216796875, 0.016632080078125, 0.032501220703125, 0.0013523101806640625, 0.00435638427734375, 0.054443359375, 0.0200958251953125, 0.00922393798828125, 0.040435791015625, -0.004375457763671875, -0.01201629638671875, 0.03485107421875, 0.008636474609375, 0.06268310546875, 0.03289794921875, -0.05645751953125, -0.0010633468627929688, -0.005435943603515625, -0.035064697265625, 0.006420135498046875, 0.01514434814453125, -0.0325927734375, 0.037689208984375, 0.0086822509765625, -0.0206298828125, 0.0161895751953125, 0.01558685302734375, 0.0006365776062011719, 0.022247314453125, 0.017852783203125, 0.004116058349609375, -0.019134521484375, 0.0004413127899169922, 0.00923919677734375, -0.00797271728515625, 0.0107574462890625, -0.0126495361328125, 0.03277587890625, 0.00798797607421875, -0.04083251953125, 0.0300445556640625, -0.037872314453125, -0.01396942138671875, 0.0335693359375, 0.0109100341796875, -0.0187530517578125, -0.00852203369140625, 0.036102294921875, 0.0221710205078125, 0.05255126953125, -0.03680419921875, 0.0167388916015625, -0.042449951171875, 0.0199432373046875, -0.050567626953125, 0.003204345703125, -0.029510498046875, -0.00035953521728515625, -0.03289794921875, -0.03466796875, 0.047882080078125, -0.0059967041015625, 0.0008196830749511719, 0.01171875, 0.02288818359375, -0.0562744140625, 0.04510498046875, -0.048614501953125, 0.060028076171875, 0.020050048828125, 0.047607421875, 0.01416778564453125, -0.01226043701171875, -0.01678466796875, 0.0142364501953125, 0.0186767578125, -0.01099395751953125, 0.002803802490234375, 0.0240325927734375, 0.00769805908203125, 0.0194854736328125, 0.04754638671875, -0.003208160400390625, 0.0006804466247558594, 0.01461029052734375, -0.018096923828125, -0.040771484375, -0.0061798095703125, -0.037933349609375, -0.029937744140625, 0.01885986328125, -0.0020198822021484375, 0.01202392578125, -0.026092529296875, -0.016204833984375, -0.022979736328125, -0.0019893646240234375, -0.0141754150390625, -0.00676727294921875, -0.007450103759765625, -0.004817962646484375, -0.003662109375, -0.042694091796875, -0.045562744140625, 0.0178070068359375, 0.0152587890625, -0.00963592529296875, 0.0255889892578125, -0.03900146484375, -0.033721923828125, 0.009246826171875, 0.01230621337890625, 0.00704193115234375, -0.035125732421875, -0.022491455078125, 0.0215911865234375, 0.0286407470703125, 0.0418701171875, 0.0830078125, -0.0102691650390625, 0.037445068359375, 0.006908416748046875, -0.038238525390625, -0.0584716796875, 0.00867462158203125, -0.0504150390625, -0.00308990478515625, 0.023040771484375, 0.00946807861328125, 0.044708251953125, -0.0175323486328125, -0.0662841796875, 0.08441162109375, -0.0217132568359375, -0.0260772705078125, -0.052337646484375, -0.020111083984375, -0.0011005401611328125, 0.004055023193359375, -0.01308441162109375, -0.0292205810546875, -0.05126953125, 0.0280303955078125, 0.013641357421875, -0.031097412109375, 0.0614013671875, 0.018035888671875, -0.085205078125, -0.0244140625, -0.0548095703125, -0.01169586181640625, 0.00618743896484375, 0.0031986236572265625, 0.026611328125, 0.0259552001953125, -0.0207672119140625, 0.005611419677734375, 0.01470947265625, 0.0004343986511230469, -0.00811004638671875, 0.038116455078125, -0.0440673828125, 0.00875091552734375, 0.049163818359375, 0.07049560546875, 0.0236053466796875, -0.040313720703125, 0.0166015625, 0.0172271728515625, -0.024139404296875, -0.032867431640625, 0.01157379150390625, -0.0439453125, -0.048583984375, -0.01543426513671875, 0.0026035308837890625, 0.025421142578125, -0.03387451171875, -0.009796142578125, -0.01490020751953125, 0.0035114288330078125, -0.006805419921875, 0.0111236572265625, -0.0084381103515625, -0.0164337158203125, -0.0094451904296875, -0.01248931884765625, -0.0210723876953125, 0.027313232421875, -0.028350830078125, -0.003757476806640625, -0.0159759521484375, -0.030303955078125, 0.01180267333984375, 0.01593017578125, -0.0001023411750793457, 0.005191802978515625, 0.00601959228515625, -0.00896453857421875, -0.00693511962890625, 0.0114898681640625, -0.0017547607421875, 0.00530242919921875, 0.00876617431640625, 0.030914306640625, -0.004638671875, 0.0870361328125, -0.003620147705078125, 0.026458740234375, 0.004673004150390625, 0.027679443359375, 0.0230560302734375, -0.015106201171875, 0.06353759765625, -0.0347900390625, -0.003787994384765625, 0.0143890380859375, -0.025390625, -0.01416015625, 0.0005745887756347656, 0.08465576171875, -0.0208892822265625, 0.0029773712158203125 ]
c4e5d88db9251a3431a73fda42270415228fdb7f
Wordpress Stackexchange Q: post_content with line breaks I want to be able to get post_content with line breaks. What is the best way to do it? I previously use the_content() which was working fine until I needed to install a plugin that adds share buttons on each post. Since then the output of my the_content includes texts from the share buttons. I tried to use post_contents which contains the correct content I need to output on my template file but the problem is the line breaks were stripped off. Is it possible to get post_content with line breaks preserved? Thanks A: I believe this should work: $getPost = get_the_content(); $postwithbreaks = wpautop( $getPost, true/false ); echo $postwithbreaks; The second argument in wpautop can be up to you whether it's true of false, see the link below. It is described as follows: (bool) (Optional) If set, this will convert all remaining line breaks after paragraphing. Line breaks within <script>, <style>, and <svg> tags are not affected. Default value: true Source: https://developer.wordpress.org/reference/functions/wpautop/
Q: post_content with line breaks I want to be able to get post_content with line breaks. What is the best way to do it? I previously use the_content() which was working fine until I needed to install a plugin that adds share buttons on each post. Since then the output of my the_content includes texts from the share buttons. I tried to use post_contents which contains the correct content I need to output on my template file but the problem is the line breaks were stripped off. Is it possible to get post_content with line breaks preserved? Thanks A: I believe this should work: $getPost = get_the_content(); $postwithbreaks = wpautop( $getPost, true/false ); echo $postwithbreaks; The second argument in wpautop can be up to you whether it's true of false, see the link below. It is described as follows: (bool) (Optional) If set, this will convert all remaining line breaks after paragraphing. Line breaks within <script>, <style>, and <svg> tags are not affected. Default value: true Source: https://developer.wordpress.org/reference/functions/wpautop/
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:443133", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137493" }
[ -0.0316162109375, -0.041534423828125, -0.006256103515625, 0.024139404296875, -0.0401611328125, -0.0220794677734375, 0.0213165283203125, -0.0003132820129394531, 0.022613525390625, -0.00909423828125, -0.004566192626953125, -0.016876220703125, -0.0201263427734375, -0.042694091796875, 0.01555633544921875, -0.0325927734375, 0.0382080078125, -0.037994384765625, 0.00279998779296875, -0.01210784912109375, -0.0075225830078125, 0.0154571533203125, -0.00807952880859375, 0.04010009765625, -0.0108184814453125, 0.0201568603515625, 0.1256103515625, -0.01285552978515625, 0.01148223876953125, -0.028045654296875, 0.022125244140625, -0.041473388671875, 0.0251312255859375, 0.047210693359375, -0.061614990234375, 0.0188140869140625, -0.03399658203125, 0.015625, -0.0050811767578125, 0.0168304443359375, -0.03057861328125, 0.0386962890625, 0.03558349609375, 0.01361846923828125, -0.0189208984375, -0.0105133056640625, -0.0343017578125, -0.034759521484375, -0.01427459716796875, 0.0738525390625, -0.01412200927734375, -0.01544952392578125, -0.0289306640625, -0.0018568038940429688, 0.0241851806640625, 0.0009822845458984375, -0.00595855712890625, -0.0614013671875, 0.04461669921875, -0.0291748046875, -0.01226043701171875, -0.04876708984375, 0.043182373046875, -0.004791259765625, 0.00556182861328125, -0.000008821487426757812, 0.01611328125, 0.0087890625, -0.07470703125, -0.009368896484375, 0.04730224609375, -0.056427001953125, 0.03857421875, -0.03155517578125, 0.01371002197265625, -0.00170135498046875, -0.04547119140625, 0.008087158203125, 0.027435302734375, -0.00899505615234375, 0.004047393798828125, 0.0085296630859375, -0.04669189453125, -0.0304107666015625, 0.017303466796875, -0.00894927978515625, -0.003353118896484375, 0.002391815185546875, -0.05108642578125, -0.03607177734375, -0.016571044921875, -0.0143280029296875, -0.082763671875, -0.0187835693359375, 0.0035991668701171875, -0.062103271484375, -0.0302581787109375, -0.0214996337890625, -0.032958984375, 0.0228118896484375, 0.0251007080078125, -0.057769775390625, 0.08819580078125, -0.035308837890625, 0.0247802734375, -0.0133209228515625, -0.0033092498779296875, -0.007717132568359375, 0.0662841796875, 0.03179931640625, -0.0247650146484375, 0.0418701171875, 0.004749298095703125, -0.013427734375, -0.004703521728515625, 0.0146636962890625, -0.0184326171875, 0.02435302734375, -0.002033233642578125, 0.0171966552734375, -0.008087158203125, -0.009979248046875, -0.0313720703125, 0.037445068359375, -0.007099151611328125, 0.0096435546875, 0.01418304443359375, -0.003543853759765625, 0.0218048095703125, 0.0379638671875, 0.003017425537109375, -0.021209716796875, -0.025634765625, 0.025146484375, -0.0008883476257324219, -0.0281524658203125, -0.0135955810546875, -0.01088714599609375, -0.046783447265625, 0.0203399658203125, -0.07513427734375, -0.0222625732421875, 0.02191162109375, -0.08660888671875, -0.00696563720703125, 0.0262298583984375, 0.037506103515625, 0.00753021240234375, -0.02532958984375, -0.06884765625, 0.009368896484375, 0.003143310546875, 0.051177978515625, -0.0016927719116210938, -0.0182342529296875, -0.07928466796875, 0.04962158203125, -0.06982421875, 0.011810302734375, -0.09173583984375, -0.0146331787109375, -0.00135040283203125, 0.03155517578125, -0.040130615234375, -0.05511474609375, 0.00675201416015625, -0.035980224609375, -0.01250457763671875, 0.0338134765625, -0.0037631988525390625, 0.0218353271484375, -0.00997161865234375, 0.037567138671875, 0.0005679130554199219, -0.01373291015625, 0.00646209716796875, 0.005451202392578125, -0.033233642578125, 0.0301666259765625, 0.02423095703125, -0.0029811859130859375, -0.00897216796875, 0.0290374755859375, -0.01348876953125, -0.05224609375, 0.046173095703125, 0.0140533447265625, 0.0721435546875, 0.02960205078125, 0.00913238525390625, 0.00780487060546875, -0.0091400146484375, -0.051513671875, 0.006214141845703125, -0.00791168212890625, -0.0207061767578125, 0.0088348388671875, -0.0194549560546875, 0.00299835205078125, 0.0190277099609375, 0.0280609130859375, -0.00830078125, -0.0021724700927734375, 0.01456451416015625, -0.026397705078125, -0.030792236328125, 0.0009465217590332031, -0.0124664306640625, -0.0198211669921875, 0.00409698486328125, 0.01276397705078125, 0.004627227783203125, 0.0004773139953613281, -0.046356201171875, -0.0179443359375, 0.02825927734375, -0.0059051513671875, 0.008270263671875, 0.01004791259765625, -0.00023806095123291016, 0.053314208984375, -0.012054443359375, 0.048065185546875, 0.045074462890625, 0.0198974609375, -0.0614013671875, 0.01904296875, -0.0311279296875, 0.016510009765625, -0.01277923583984375, 0.00762176513671875, 0.01471710205078125, 0.046661376953125, 0.04888916015625, -0.004322052001953125, 0.0106201171875, 0.03021240234375, -0.0267333984375, 0.0006475448608398438, 0.03021240234375, 0.047393798828125, 0.08587646484375, -0.012298583984375, -0.05401611328125, 0.054290771484375, -0.047607421875, 0.0109710693359375, -0.049041748046875, -0.0011005401611328125, 0.03619384765625, -0.0110931396484375, -0.0201873779296875, 0.0279541015625, -0.0419921875, -0.0281219482421875, 0.047271728515625, -0.0004024505615234375, 0.019256591796875, -0.0209197998046875, 0.01180267333984375, -0.006488800048828125, -0.0015897750854492188, 0.0208587646484375, -0.03131103515625, -0.026763916015625, 0.03729248046875, 0.02288818359375, 0.037384033203125, -0.02679443359375, 0.004924774169921875, 0.0206146240234375, 0.04290771484375, 0.0053253173828125, 0.0738525390625, -0.033660888671875, -0.001102447509765625, -0.01335906982421875, -0.0161285400390625, -0.01235198974609375, 0.0296173095703125, -0.00653076171875, 0.0164947509765625, 0.038787841796875, -0.0082550048828125, 0.028228759765625, -0.038238525390625, 0.017486572265625, -0.00795745849609375, 0.0238189697265625, -0.00806427001953125, 0.01062774658203125, 0.05413818359375, 0.0017309188842773438, 0.04559326171875, -0.0159454345703125, 0.0123138427734375, 0.028472900390625, -0.046142578125, 0.052490234375, -0.0367431640625, 0.041290283203125, 0.0621337890625, -0.005859375, -0.0035495758056640625, 0.02191162109375, -0.01161956787109375, 0.037200927734375, 0.01445770263671875, -0.0030422210693359375, -0.01038360595703125, -0.06805419921875, -0.04010009765625, 0.0271453857421875, 0.057220458984375, -0.0002453327178955078, -0.035797119140625, -0.01543426513671875, 0.04058837890625, -0.07904052734375, -0.0400390625, 0.01097869873046875, -0.1048583984375, -0.035125732421875, 0.01201629638671875, -0.07098388671875, 0.0171661376953125, 0.061370849609375, -0.0159759521484375, -0.054046630859375, -0.0169830322265625, -0.07891845703125, -0.0504150390625, -0.078857421875, 0.07305908203125, -0.011810302734375, 0.052703857421875, 0.00008821487426757812, 0.07574462890625, 0.016326904296875, -0.04937744140625, 0.0008101463317871094, 0.03594970703125, -0.0254364013671875, 0.019683837890625, -0.0218048095703125, 0.0078887939453125, -0.00963592529296875, 0.01094818115234375, -0.0171661376953125, 0.0087432861328125, -0.0017423629760742188, -0.0231475830078125, -0.0157318115234375, 0.0033779144287109375, 0.0361328125, -0.004688262939453125, -0.005168914794921875, 0.02044677734375, 0.02520751953125, -0.03790283203125, -0.046356201171875, -0.000946044921875, -0.04779052734375, 0.061370849609375, -0.000003159046173095703, 0.00989532470703125, -0.01666259765625, 0.072998046875, -0.01806640625, 0.0052642822265625, 0.039703369140625, -0.0291900634765625, 0.041168212890625, -0.007598876953125, -0.0268096923828125, -0.0222930908203125, -0.014373779296875, -0.01558685302734375, 0.0108795166015625, -0.0225830078125, 0.0245361328125, -0.0283050537109375, 0.034149169921875, -0.0533447265625, 0.010711669921875, 0.0180511474609375, 0.000995635986328125, 0.0311279296875, -0.016632080078125, -0.0266265869140625, -0.026885986328125, 0.04644775390625, -0.0018644332885742188, -0.01300048828125, -0.0189208984375, 0.0225067138671875, -0.035552978515625, -0.0611572265625, -0.01031494140625, -0.00214385986328125, -0.0180816650390625, 0.0013370513916015625, -0.053192138671875, 0.0105438232421875, -0.0090789794921875, -0.00986480712890625, 0.03424072265625, -0.032989501953125, 0.034576416015625, -0.01690673828125, 0.0163116455078125, 0.032745361328125, 0.0021495819091796875, 0.00386810302734375, -0.00923919677734375, -0.0172576904296875, -0.032623291015625, -0.01171875, -0.0145721435546875, 0.02471923828125, 0.0192413330078125, -0.04461669921875, 0.0023822784423828125, 0.04486083984375, 0.01013946533203125, -0.008453369140625, 0.0213623046875, 0.021697998046875, -0.026092529296875, -0.021759033203125, 0.0221710205078125, -0.05657958984375, -0.02105712890625, 0.0016765594482421875, 0.0079498291015625, 0.055328369140625, -0.0152435302734375, 0.01062774658203125, 0.0180816650390625, -0.0082244873046875, -0.04522705078125, -0.0189056396484375, -0.017578125, 0.03009033203125, -0.04107666015625, 0.0260009765625, -0.045379638671875, -0.057342529296875, 0.047698974609375, 0.020416259765625, -0.0284423828125, 0.015960693359375, 0.0506591796875, 0.01059722900390625, -0.018341064453125, -0.054107666015625, 0.01007080078125, 0.0263671875, -0.00994110107421875, 0.0654296875, 0.0306396484375, -0.0207672119140625, 0.06671142578125, 0.01812744140625, 0.0142822265625, -0.006671905517578125, 0.0246734619140625, 0.017730712890625, 0.010955810546875, -0.0004591941833496094, 0.01041412353515625, 0.00396728515625, 0.024932861328125, 0.0011739730834960938, -0.00518035888671875, 0.03253173828125, 0.0025634765625, -0.0170135498046875, 0.0003247261047363281, 0.00884246826171875, -0.040191650390625, 0.0157928466796875, -0.00283050537109375, 0.006683349609375, 0.0222015380859375, 0.0021533966064453125, 0.0187835693359375, 0.0057830810546875, -0.0186920166015625, -0.00878143310546875, 0.0189208984375, -0.0075531005859375, 0.024017333984375, -0.0221405029296875, -0.042633056640625, -0.0169219970703125, 0.00528717041015625, 0.00572967529296875, -0.056640625, -0.08306884765625, -0.0104522705078125, -0.00004363059997558594, 0.06268310546875, 0.08367919921875, 0.0279998779296875, 0.028167724609375, 0.031280517578125, -0.01364898681640625, -0.017547607421875, 0.03118896484375, 0.0229034423828125, -0.04833984375, 0.01434326171875, 0.0076751708984375, -0.01192474365234375, 0.03558349609375, 0.035003662109375, -0.04827880859375, 0.042633056640625, -0.00492095947265625, 0.005039215087890625, 0.0169677734375, 0.0196685791015625, 0.0423583984375, -0.036407470703125, -0.0239410400390625, 0.01003265380859375, -0.017822265625, -0.0182952880859375, 0.040557861328125, 0.019195556640625, 0.0279388427734375, -0.00850677490234375, -0.044281005859375, 0.0288543701171875, -0.053314208984375, 0.0164642333984375, -0.022674560546875, 0.00673675537109375, 0.018096923828125, -0.00377655029296875, -0.0146026611328125, 0.0038013458251953125, 0.0085601806640625, 0.0021953582763671875, -0.0183868408203125, -0.00807952880859375, -0.0189056396484375, 0.01100921630859375, -0.066162109375, -0.00205230712890625, 0.0183258056640625, -0.00811004638671875, -0.03546142578125, -0.0214691162109375, -0.0059356689453125, 0.01508331298828125, -0.02020263671875, -0.0171966552734375, 0.0518798828125, -0.022735595703125, 0.007488250732421875, -0.04547119140625, 0.029632568359375, -0.06439208984375, 0.013580322265625, 0.041259765625, 0.0299530029296875, -0.034759521484375, -0.005336761474609375, -0.0299224853515625, -0.00135040283203125, 0.00997161865234375, -0.040069580078125, -0.028472900390625, -0.030487060546875, 0.0270233154296875, 0.0086669921875, -0.0016994476318359375, -0.036865234375, -0.0025177001953125, 0.04461669921875, 0.035491943359375, 0.08740234375, -0.01389312744140625, 0.07305908203125, 0.004398345947265625, 0.050445556640625, 0.00408935546875, 0.02850341796875, -0.032318115234375, -0.01045989990234375, 0.0265350341796875, -0.020904541015625, -0.027557373046875, -0.036346435546875, 0.03558349609375, -0.0173492431640625, -0.020660400390625, -0.004024505615234375, -0.027496337890625, 0.0195465087890625, 0.005130767822265625, -0.01186370849609375, -0.01128387451171875, 0.0604248046875, -0.0198822021484375, 0.01238250732421875, 0.014892578125, 0.0034008026123046875, -0.033203125, -0.04803466796875, 0.023895263671875, 0.036468505859375, 0.0196685791015625, -0.0150299072265625, -0.01168060302734375, 0.0178375244140625, 0.0270233154296875, 0.0236053466796875, 0.03533935546875, 0.02166748046875, 0.0306243896484375, -0.0169830322265625, 0.025299072265625, 0.02996826171875, -0.01209259033203125, 0.01425933837890625, -0.00563812255859375, 0.0029239654541015625, -0.0220947265625, -0.0278778076171875, 0.0634765625, 0.03253173828125, 0.09478759765625, -0.061676025390625, 0.043609619140625, 0.053924560546875, -0.01319122314453125, 0.03863525390625, -0.0124053955078125, -0.0142669677734375, -0.0302886962890625, 0.07427978515625, -0.047515869140625, -0.01055145263671875, 0.025909423828125, -0.0188751220703125, -0.019500732421875, -0.027984619140625, 0.0198974609375, 0.0181732177734375, -0.050689697265625, 0.038543701171875, 0.0369873046875, 0.01096343994140625, -0.037689208984375, -0.0101318359375, -0.00475311279296875, -0.027008056640625, -0.05487060546875, 0.0151519775390625, 0.00015497207641601562, 0.0161590576171875, -0.009521484375, -0.0012350082397460938, -0.0259857177734375, 0.07672119140625, -0.0467529296875, 0.031829833984375, 0.053741455078125, -0.04254150390625, -0.00589752197265625, 0.004314422607421875, 0.022705078125, 0.05963134765625, -0.0229644775390625, 0.0182037353515625, -0.00623321533203125, -0.0142364501953125, -0.011505126953125, -0.00276947021484375, 0.0953369140625, -0.03887939453125, -0.021484375, 0.006801605224609375, -0.0006718635559082031, 0.01308441162109375, -0.018707275390625, 0.021697998046875, -0.028411865234375, 0.02691650390625, -0.0193634033203125, 0.00287628173828125, -0.03094482421875, -0.05731201171875, -0.06378173828125, 0.0670166015625, 0.020477294921875, 0.0254364013671875, 0.00243377685546875, 0.005573272705078125, -0.0202178955078125, -0.008697509765625, -0.04925537109375, 0.05999755859375, 0.0036869049072265625, 0.015655517578125, -0.08050537109375, -0.01378631591796875, -0.0115966796875, 0.0338134765625, 0.035858154296875, 0.00820159912109375, -0.03070068359375, -0.054840087890625, 0.00612640380859375, 0.057830810546875, 0.0250091552734375, 0.007190704345703125, 0.0252532958984375, 0.0262451171875, 0.018310546875, -0.061004638671875, 0.03765869140625, -0.064208984375, 0.0202484130859375, 0.0189208984375, 0.0266265869140625, 0.006103515625, 0.004367828369140625, -0.052215576171875, -0.027313232421875, -0.0005121231079101562, 0.007442474365234375, -0.024444580078125, -0.0026721954345703125, 0.053253173828125, 0.0283203125, -0.0091400146484375, -0.04888916015625, -0.0343017578125, 0.0252685546875, 0.0104827880859375, 0.036102294921875, 0.01271820068359375, 0.0204620361328125, 0.0162811279296875, -0.01019287109375, 0.0182952880859375, 0.01094818115234375, -0.0211334228515625, -0.0129241943359375, 0.0017633438110351562, -0.00093841552734375, -0.034698486328125, 0.022003173828125, 0.0224761962890625, -0.01387786865234375, -0.01537322998046875, -0.0009646415710449219, 0.019439697265625, 0.0026760101318359375, -0.00725555419921875, -0.036712646484375, 0.0009069442749023438, -0.0458984375, -0.020660400390625, -0.01134490966796875, -0.0269012451171875, 0.01294708251953125, 0.007205963134765625, 0.0262603759765625, 0.0357666015625, -0.022918701171875, -0.044281005859375, -0.052581787109375, 0.007503509521484375, 0.0131378173828125, 0.051727294921875, 0.046783447265625, 0.027374267578125, -0.0275115966796875, -0.0309906005859375, 0.0205535888671875, -0.0015010833740234375, 0.00717926025390625, -0.043731689453125, 0.028594970703125, -0.011932373046875, 0.00400543212890625, 0.0027599334716796875, 0.035064697265625, -0.0093841552734375, 0.050537109375, 0.036590576171875, -0.04534912109375, -0.00543212890625, 0.01166534423828125, -0.01485443115234375, -0.044708251953125, -0.033050537109375, -0.055633544921875, 0.0114288330078125, -0.006870269775390625, 0.040374755859375, -0.029541015625, 0.017608642578125, 0.005733489990234375, 0.048858642578125, 0.01056671142578125, 0.020660400390625, -0.01198577880859375, -0.007579803466796875, -0.036224365234375, 0.0213623046875, -0.0648193359375, -0.02569580078125, 0.0136260986328125, -0.0211639404296875, -0.0000852346420288086, 0.0341796875, -0.013824462890625, 0.0178680419921875, -0.00627899169921875, 0.0017023086547851562, 0.03790283203125, -0.032867431640625, -0.0005278587341308594, 0.014404296875, 0.025146484375, 0.005771636962890625, -0.04376220703125, -0.03564453125, -0.026611328125, 0.039642333984375, 0.041839599609375, 0.018890380859375, 0.0138397216796875, 0.04998779296875, -0.049530029296875, 0.0131988525390625, -0.035980224609375, -0.021087646484375, -0.0220947265625, 0.045989990234375, 0.0252227783203125, -0.01555633544921875, -0.006771087646484375, 0.01239776611328125, 0.0523681640625, -0.016082763671875, 0.006805419921875, -0.005100250244140625, 0.0013246536254882812, -0.046905517578125, 0.0012617111206054688, -0.022979736328125, -0.0307769775390625, -0.0302734375, -0.0160369873046875, 0.03558349609375, 0.0305633544921875, 0.0262298583984375, 0.0477294921875, -0.00102996826171875, -0.036773681640625, 0.034454345703125, -0.0770263671875, 0.046295166015625, 0.042877197265625, -0.01531982421875, -0.0212554931640625, -0.027557373046875, -0.01763916015625, -0.00807952880859375, -0.006328582763671875, 0.0109710693359375, 0.0117950439453125, 0.00783538818359375, -0.00548553466796875, 0.01323699951171875, 0.06231689453125, 0.00611114501953125, 0.0212249755859375, 0.0048828125, 0.01503753662109375, 0.005191802978515625, 0.01432037353515625, -0.0008935928344726562, -0.01238250732421875, -0.01096343994140625, -0.0004477500915527344, -0.0027027130126953125, -0.007404327392578125, -0.0399169921875, -0.0220184326171875, 0.0134735107421875, -0.01242828369140625, -0.0072784423828125, -0.01038360595703125, -0.00696563720703125, -0.0008945465087890625, -0.035064697265625, 0.0163421630859375, -0.005023956298828125, 0.0126800537109375, -0.004985809326171875, -0.047454833984375, -0.060333251953125, 0.04736328125, -0.037078857421875, 0.01027679443359375, 0.033843994140625, 0.002658843994140625, -0.0137939453125, 0.0132293701171875, -0.00647735595703125, 0.04345703125, -0.015228271484375, -0.0226898193359375, -0.002960205078125, 0.01568603515625, 0.000009298324584960938, -0.028961181640625, 0.00954437255859375, -0.011932373046875, -0.0030879974365234375, -0.0059356689453125, 0.01203155517578125, 0.0167999267578125, -0.046875, -0.080810546875, -0.00832366943359375, -0.00025200843811035156, -0.0277862548828125, 0.00868988037109375, -0.027069091796875, -0.010223388671875, -0.0261993408203125, 0.00136566162109375, -0.01250457763671875, -0.0252838134765625, 0.01287841796875, -0.0237274169921875, 0.09039306640625, 0.003551483154296875, -0.052947998046875, 0.01136016845703125, -0.0041961669921875, 0.00600433349609375, 0.0016622543334960938, -0.0178070068359375, -0.00980377197265625, 0.0205078125, 0.03564453125, -0.026580810546875, -0.0211029052734375, 0.0230560302734375, -0.007328033447265625, -0.006053924560546875, -0.0200653076171875, -0.00208282470703125, 0.00234222412109375, 0.0174102783203125, 0.041412353515625, -0.00555419921875, -0.049163818359375, 0.039642333984375, 0.01287078857421875, -0.044525146484375, 0.01371002197265625, 0.006134033203125, -0.034423828125, -0.0171966552734375, -0.005886077880859375, -0.0232391357421875, 0.035247802734375, -0.03680419921875, -0.026458740234375, -0.006801605224609375, -0.035125732421875, 0.01446533203125, -0.046417236328125, -0.0660400390625, 0.05108642578125, -0.025054931640625, 0.0184326171875, -0.0033111572265625, 0.045379638671875, 0.029083251953125, 0.051055908203125, 0.0072174072265625, 0.035125732421875, -0.0810546875, -0.027923583984375, 0.01073455810546875, 0.0299072265625, -0.02032470703125, -0.0098114013671875, 0.029937744140625, -0.006725311279296875, -0.0300445556640625, -0.00656890869140625, 0.0247039794921875, -0.01116180419921875, -0.0511474609375, 0.02850341796875, -0.011016845703125, 0.0166778564453125, -0.0268402099609375, 0.044342041015625, -0.026092529296875, -0.005222320556640625, -0.00913238525390625, -0.03680419921875, 0.00033974647521972656, 0.0216064453125, 0.0134124755859375, -0.05682373046875, 0.043670654296875, 0.01336669921875, 0.032989501953125, 0.0194854736328125 ]
ad2b65f09a50e38d7017c90d64a8bf4dc2daf7f7
Wordpress Stackexchange Q: Move excerpt meta box to above content editor I found a WordPress hook called "edit_form_after_title" to add a text box after the title. How can I use this hook to display the excerpt after the title while creating a new post? A: It's simple, just unregister postexcerpt box first then add another one on the top. Here is my code add_action( 'admin_menu', function () { remove_meta_box('postexcerpt', 'post', 'normal'); }, 999 ); add_action('edit_form_after_title', 'post_excerpt_meta_box');
Q: Move excerpt meta box to above content editor I found a WordPress hook called "edit_form_after_title" to add a text box after the title. How can I use this hook to display the excerpt after the title while creating a new post? A: It's simple, just unregister postexcerpt box first then add another one on the top. Here is my code add_action( 'admin_menu', function () { remove_meta_box('postexcerpt', 'post', 'normal'); }, 999 ); add_action('edit_form_after_title', 'post_excerpt_meta_box'); A: I adapted from here: https://wordpress.stackexchange.com/a/158485/373 /* ----------------------------------------- * Put excerpt meta-box before editor * ----------------------------------------- */ function my_add_excerpt_meta_box( $post_type ) { if ( in_array( $post_type, array( 'post', 'page' ) ) ) { add_meta_box( 'postexcerpt', __( 'Excerpt' ), 'post_excerpt_meta_box', $post_type, 'test', // change to something other then normal, advanced or side 'high' ); } } add_action( 'add_meta_boxes', 'my_add_excerpt_meta_box' ); function my_run_excerpt_meta_box() { # Get the globals: global $post, $wp_meta_boxes; # Output the "advanced" meta boxes: do_meta_boxes( get_current_screen(), 'test', $post ); } add_action( 'edit_form_after_title', 'my_run_excerpt_meta_box' ); function my_remove_normal_excerpt() { /*this added on my own*/ remove_meta_box( 'postexcerpt' , 'post' , 'normal' ); } add_action( 'admin_menu' , 'my_remove_normal_excerpt' ); A: function jb_post_excerpt_meta_box($post) { remove_meta_box( 'postexcerpt' , $post->post_type , 'normal' ); ?> <div class="postbox" style="margin-bottom: 0;"> <h3 class="hndle"><span>Excerpt</span></h3> <div class="inside"> <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label> <textarea rows="1" cols="40" name="excerpt" id="excerpt"> <?php echo $post->post_excerpt; ?> </textarea> </div> </div> <?php } add_action('edit_form_after_title', 'my_post_excerpt_meta_box'); In this way, you are able to add exactly an excerpt box as you like. But it is important to eliminate the original box. If not, you will not be able to save the excerpt in the new box. A: This answer is similar to the one @OzzyCzech posted, but it's more universal and it adds a header to the excerpt box. One downside to this method is that you can't hide the excerpt box via Screen Options... in that case you'd need to use the answer by @lea-cohen. add_action( 'edit_form_after_title', 'move_excerpt_meta_box' ); function move_excerpt_meta_box( $post ) { if ( post_type_supports( $post->post_type, 'excerpt' ) ) { remove_meta_box( 'postexcerpt', $post->post_type, 'normal' ); ?> <h2 style="padding: 20px 0 0;">Excerpt</h2> <?php post_excerpt_meta_box( $post ); } } A: If you want to move the postexcerpt for a WooCommerce PRODUCT (short description), you have to use a different hook to get rid of the original postexcerpt. (If you don't, you can't really edit it from your new box at the top because it still exists at the bottom.) I spent hours on this to remove the WooCommerce short description metabox (and then add it up above the main content editor). I could ONLY get rid of the postexcerpt by using the add_meta_boxes hook. admin_menu and adminhead ran too early. So I removed everything else at the same time. The rest worked like a charm to put the new short description up above the long description. Thank you! function WH_remove_meta_boxes() { remove_meta_box( 'postexcerpt', 'product', 'normal' ); remove_meta_box( 'tagsdiv-product_tag', 'product', 'side' ); remove_meta_box( 'tagsdiv-yith_shop_vendor', 'product', 'side' ); remove_meta_box( 'tagsdiv-product_tag', 'product', 'side' ); remove_meta_box( 'wpseo_meta', 'product', 'normal'); } add_action( 'add_meta_boxes', 'WH_remove_meta_boxes', 99 );
wordpress
{ "language": "en", "length": 496, "provenance": "stackexchange_00019.jsonl.gz:443155", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137571" }
[ 0.042755126953125, -0.0201263427734375, 0.01157379150390625, 0.0182037353515625, -0.0205841064453125, -0.038543701171875, 0.045684814453125, -0.043212890625, 0.004512786865234375, 0.05426025390625, 0.01465606689453125, -0.004489898681640625, 0.023101806640625, -0.0206451416015625, -0.03216552734375, 0.0039215087890625, 0.005626678466796875, -0.0038852691650390625, 0.00948333740234375, -0.0218505859375, 0.00043272972106933594, -0.0136566162109375, 0.01837158203125, -0.008819580078125, -0.01220703125, -0.037200927734375, 0.08355712890625, -0.01885986328125, -0.022247314453125, -0.031280517578125, 0.0024566650390625, 0.0151824951171875, 0.0256195068359375, 0.022064208984375, -0.049591064453125, 0.033782958984375, 0.0007748603820800781, 0.00907135009765625, -0.003986358642578125, 0.0196990966796875, 0.0302581787109375, -0.0007691383361816406, -0.0196380615234375, 0.0221710205078125, -0.01438140869140625, -0.0305633544921875, 0.00844573974609375, -0.040313720703125, 0.0552978515625, -0.0311737060546875, 0.023193359375, 0.01715087890625, 0.038330078125, -0.0182037353515625, -0.024139404296875, 0.01021575927734375, -0.013397216796875, -0.00965118408203125, 0.0178070068359375, 0.0411376953125, 0.01467132568359375, 0.015167236328125, -0.0137786865234375, -0.031829833984375, 0.007232666015625, -0.006931304931640625, 0.005970001220703125, 0.01898193359375, -0.051422119140625, 0.007205963134765625, 0.038970947265625, -0.054840087890625, -0.0130157470703125, -0.0440673828125, 0.01031494140625, 0.04498291015625, -0.0222625732421875, -0.0080718994140625, 0.0175323486328125, 0.004375457763671875, 0.00638580322265625, -0.007282257080078125, 0.04168701171875, -0.041595458984375, 0.023529052734375, -0.01412200927734375, -0.0154571533203125, -0.00945281982421875, -0.029205322265625, -0.038116455078125, -0.02410888671875, -0.067138671875, -0.02923583984375, 0.0023632049560546875, 0.0097808837890625, -0.04022216796875, 0.00505828857421875, -0.004177093505859375, -0.025726318359375, -0.02252197265625, -0.00505828857421875, -0.0225067138671875, 0.005706787109375, -0.0120697021484375, 0.00922393798828125, 0.0214385986328125, -0.0230560302734375, -0.07196044921875, 0.0006437301635742188, 0.0367431640625, -0.0204925537109375, -0.032745361328125, -0.023468017578125, -0.0399169921875, -0.031280517578125, 0.051666259765625, -0.01160430908203125, -0.02728271484375, 0.0183258056640625, 0.00025153160095214844, -0.0106353759765625, 0.006793975830078125, 0.00359344482421875, -0.07354736328125, 0.03656005859375, -0.01386260986328125, -0.03497314453125, 0.003383636474609375, 0.00042438507080078125, 0.0003809928894042969, -0.0130462646484375, 0.006824493408203125, 0.043792724609375, 0.0498046875, 0.0167999267578125, -0.01232147216796875, -0.003139495849609375, -0.0125732421875, -0.01221466064453125, -0.004425048828125, -0.0236968994140625, -0.016143798828125, 0.0222320556640625, -0.007572174072265625, -0.02099609375, 0.045989990234375, 0.004558563232421875, -0.0243072509765625, 0.00130462646484375, -0.0709228515625, -0.020233154296875, -0.06781005859375, 0.0341796875, 0.01934814453125, -0.01446533203125, -0.0277862548828125, 0.03448486328125, -0.033355712890625, 0.0005006790161132812, -0.0516357421875, 0.0150146484375, 0.004924774169921875, 0.0245513916015625, -0.034210205078125, -0.0487060546875, -0.0181427001953125, -0.060699462890625, -0.0122833251953125, 0.024810791015625, 0.02471923828125, 0.05328369140625, -0.005168914794921875, 0.0222320556640625, -0.0236053466796875, -0.029022216796875, -0.0188446044921875, 0.00652313232421875, 0.01389312744140625, 0.00502777099609375, 0.0266265869140625, 0.0014896392822265625, -0.0289154052734375, 0.03863525390625, -0.0196075439453125, -0.049530029296875, 0.063232421875, 0.0166168212890625, 0.06829833984375, -0.01094818115234375, 0.0206756591796875, 0.0229949951171875, 0.0229034423828125, -0.00951385498046875, -0.019378662109375, -0.005649566650390625, -0.015625, 0.035003662109375, 0.0003409385681152344, -0.0023441314697265625, 0.005344390869140625, -0.0215301513671875, 0.005931854248046875, 0.00726318359375, 0.0186767578125, -0.004497528076171875, 0.005001068115234375, -0.0164337158203125, 0.033233642578125, 0.00119781494140625, 0.0204315185546875, 0.010040283203125, -0.011962890625, 0.00431060791015625, -0.03753662109375, -0.029144287109375, 0.01404571533203125, -0.0097808837890625, 0.032073974609375, 0.01708984375, 0.0360107421875, 0.0160675048828125, -0.009552001953125, 0.006473541259765625, -0.0264434814453125, 0.0794677734375, -0.04010009765625, -0.00843048095703125, -0.057708740234375, 0.04193115234375, -0.022125244140625, -0.04534912109375, 0.07171630859375, 0.030670166015625, 0.019500732421875, -0.052093505859375, -0.00017833709716796875, -0.01500701904296875, -0.019775390625, -0.0168914794921875, 0.058258056640625, 0.014984130859375, 0.08367919921875, 0.000008881092071533203, 0.0120849609375, 0.0596923828125, -0.039764404296875, 0.0050048828125, 0.00545501708984375, -0.00008124113082885742, 0.0237274169921875, -0.0196685791015625, 0.01105499267578125, 0.027008056640625, -0.04473876953125, 0.0160675048828125, 0.036590576171875, -0.026885986328125, -0.0092620849609375, 0.0308837890625, -0.045684814453125, 0.018402099609375, -0.06610107421875, -0.03521728515625, -0.0254669189453125, 0.06158447265625, 0.0171661376953125, 0.079345703125, 0.06597900390625, -0.039337158203125, -0.01190948486328125, 0.013275146484375, 0.09039306640625, -0.0022106170654296875, -0.0262298583984375, -0.00067901611328125, 0.0127410888671875, -0.043121337890625, 0.0204925537109375, 0.0209808349609375, -0.0158233642578125, -0.0201263427734375, 0.0024127960205078125, -0.0188446044921875, -0.0088958740234375, 0.012359619140625, -0.07708740234375, -0.011993408203125, -0.0224456787109375, 0.007633209228515625, -0.04595947265625, 0.01303863525390625, -0.027313232421875, -0.056549072265625, 0.047698974609375, -0.0281982421875, -0.0634765625, 0.0276336669921875, -0.0416259765625, 0.039215087890625, -0.035430908203125, 0.08770751953125, 0.055267333984375, -0.04498291015625, 0.028472900390625, -0.01071929931640625, -0.005756378173828125, -0.0306854248046875, 0.01282501220703125, -0.0160369873046875, -0.0166168212890625, -0.057708740234375, 0.01016998291015625, 0.0291290283203125, 0.031524658203125, 0.01212310791015625, -0.0267486572265625, 0.0123443603515625, 0.0242156982421875, -0.054107666015625, -0.05084228515625, 0.005504608154296875, -0.04095458984375, -0.0065460205078125, 0.0213623046875, -0.0294036865234375, -0.0148468017578125, 0.056610107421875, -0.00031757354736328125, -0.0262298583984375, -0.00896453857421875, -0.003276824951171875, -0.0200347900390625, -0.0479736328125, -0.03228759765625, 0.01291656494140625, 0.02099609375, 0.00978851318359375, 0.0255584716796875, 0.0088348388671875, -0.0712890625, 0.0188140869140625, 0.027496337890625, -0.01275634765625, 0.044525146484375, 0.0452880859375, -0.03857421875, 0.002338409423828125, 0.016265869140625, 0.0159759521484375, 0.0246429443359375, -0.023193359375, -0.018218994140625, -0.03857421875, 0.0031070709228515625, 0.0036945343017578125, -0.0035724639892578125, 0.038787841796875, 0.0115814208984375, 0.01509857177734375, -0.0186004638671875, -0.006717681884765625, -0.012664794921875, -0.052154541015625, -0.046722412109375, 0.0252532958984375, 0.01029205322265625, -0.0226593017578125, -0.0016956329345703125, -0.0229339599609375, 0.011688232421875, 0.0643310546875, -0.00623321533203125, -0.01000213623046875, -0.042022705078125, -0.060791015625, -0.03759765625, 0.00937652587890625, 0.005718231201171875, 0.02386474609375, 0.00008255243301391602, 0.06927490234375, 0.008270263671875, 0.063720703125, -0.032257080078125, -0.0543212890625, 0.047027587890625, -0.034942626953125, 0.01432037353515625, -0.034423828125, -0.032623291015625, 0.01068878173828125, 0.08990478515625, -0.0889892578125, -0.0223846435546875, 0.037109375, 0.01522064208984375, 0.021026611328125, 0.0287933349609375, -0.054595947265625, -0.0220947265625, -0.07672119140625, 0.01904296875, 0.005035400390625, -0.0207977294921875, -0.039215087890625, 0.09991455078125, -0.06427001953125, -0.01491546630859375, 0.051055908203125, -0.038818359375, -0.01314544677734375, 0.03790283203125, -0.0245361328125, 0.00036787986755371094, -0.053070068359375, -0.00010389089584350586, -0.1171875, -0.010772705078125, -0.0207366943359375, 0.08001708984375, -0.0030651092529296875, -0.00168609619140625, -0.0345458984375, 0.043121337890625, 0.0061798095703125, 0.0011682510375976562, 0.016204833984375, 0.019500732421875, 0.00945281982421875, -0.03619384765625, -0.006336212158203125, -0.04205322265625, -0.0023708343505859375, -0.01351165771484375, -0.01386260986328125, 0.0005731582641601562, -0.0240020751953125, -0.00397491455078125, 0.0194091796875, -0.0169219970703125, -0.0224456787109375, -0.036865234375, -0.0271453857421875, 0.015716552734375, -0.0164642333984375, 0.0093994140625, -0.043212890625, -0.051422119140625, -0.00567626953125, 0.01003265380859375, -0.039276123046875, 0.01297760009765625, 0.039825439453125, 0.03509521484375, 0.0006303787231445312, -0.00597381591796875, -0.03070068359375, 0.040313720703125, -0.0003159046173095703, 0.00013136863708496094, -0.0033855438232421875, -0.044921875, 0.060699462890625, 0.01175689697265625, 0.00165557861328125, -0.0187835693359375, 0.03436279296875, -0.0036106109619140625, -0.02764892578125, 0.0247344970703125, -0.030609130859375, 0.037689208984375, -0.02337646484375, -0.00707244873046875, 0.0018939971923828125, -0.0013074874877929688, 0.0091705322265625, -0.002674102783203125, 0.045654296875, 0.01297760009765625, 0.0171356201171875, -0.0220794677734375, 0.06982421875, 0.005344390869140625, 0.0352783203125, 0.0011587142944335938, -0.031829833984375, 0.01253509521484375, -0.003757476806640625, -0.0168304443359375, -0.055816650390625, 0.0009222030639648438, 0.017913818359375, -0.0232391357421875, -0.004241943359375, 0.01245880126953125, 0.000023305416107177734, 0.029998779296875, 0.004909515380859375, -0.03643798828125, -0.04534912109375, 0.0048980712890625, 0.06109619140625, 0.0034313201904296875, 0.01540374755859375, -0.0089111328125, 0.01401519775390625, 0.0129852294921875, 0.00241851806640625, 0.026641845703125, 0.01410675048828125, -0.0131378173828125, 0.00628662109375, 0.01142120361328125, -0.00868988037109375, 0.0215911865234375, 0.048797607421875, 0.00684356689453125, 0.028228759765625, -0.0255279541015625, 0.0281524658203125, -0.0092926025390625, 0.03802490234375, 0.0252838134765625, -0.017578125, -0.006259918212890625, 0.017578125, -0.024078369140625, -0.036407470703125, -0.005443572998046875, 0.033355712890625, 0.031768798828125, 0.018310546875, -0.004505157470703125, -0.0089569091796875, -0.010009765625, -0.037750244140625, 0.04608154296875, 0.05120849609375, -0.0635986328125, 0.00782012939453125, 0.00579833984375, -0.017547607421875, -0.00717926025390625, 0.00954437255859375, 0.01378631591796875, -0.0099639892578125, 0.0286712646484375, -0.027740478515625, -0.00321197509765625, -0.0229034423828125, -0.02197265625, 0.009307861328125, 0.0072174072265625, -0.01322174072265625, 0.02362060546875, -0.049041748046875, 0.003833770751953125, -0.0015935897827148438, 0.058258056640625, -0.0257110595703125, 0.022705078125, -0.053192138671875, 0.0479736328125, -0.07977294921875, 0.007144927978515625, 0.01287078857421875, 0.0005407333374023438, -0.03759765625, 0.0167694091796875, -0.03778076171875, -0.01236724853515625, -0.0178375244140625, -0.049407958984375, -0.033538818359375, -0.0311431884765625, 0.005878448486328125, 0.0298309326171875, -0.00861358642578125, -0.037200927734375, 0.010498046875, -0.01038360595703125, -0.01064300537109375, 0.0203704833984375, 0.002712249755859375, 0.040557861328125, -0.01617431640625, 0.076904296875, 0.0079193115234375, 0.0051422119140625, -0.021453857421875, -0.031951904296875, -0.0006699562072753906, -0.0305328369140625, -0.0220489501953125, -0.005405426025390625, 0.007266998291015625, 0.0237884521484375, 0.0296173095703125, -0.00965118408203125, 0.01363372802734375, -0.0008268356323242188, 0.00524139404296875, -0.0016736984252929688, -0.0121612548828125, 0.005664825439453125, -0.020355224609375, 0.051513671875, -0.015350341796875, 0.0265045166015625, -0.015625, 0.001636505126953125, 0.02630615234375, -0.02655029296875, 0.01392364501953125, 0.03997802734375, -0.053070068359375, 0.0302886962890625, 0.052398681640625, 0.0076904296875, 0.043701171875, 0.02789306640625, 0.01287078857421875, 0.034423828125, -0.0283355712890625, -0.009002685546875, 0.046722412109375, 0.058319091796875, -0.01012420654296875, 0.00821685791015625, 0.059844970703125, -0.0171966552734375, 0.003139495849609375, 0.031219482421875, 0.03912353515625, -0.06256103515625, 0.0045318603515625, -0.00899505615234375, 0.0028247833251953125, 0.06182861328125, -0.0426025390625, 0.01364898681640625, -0.0227203369140625, 0.07757568359375, 0.018524169921875, -0.00699615478515625, 0.032012939453125, -0.01235198974609375, -0.0225830078125, -0.033416748046875, 0.01837158203125, 0.0155029296875, -0.04449462890625, 0.052886962890625, 0.0062103271484375, 0.01221466064453125, -0.038116455078125, -0.013336181640625, 0.0207977294921875, -0.04034423828125, -0.06744384765625, 0.0154571533203125, -0.0099945068359375, 0.007755279541015625, 0.0177154541015625, 0.026214599609375, 0.0148468017578125, 0.033416748046875, -0.006145477294921875, -0.002452850341796875, 0.0020389556884765625, -0.0203704833984375, -0.038970947265625, -0.03314208984375, -0.0173187255859375, 0.0158233642578125, 0.0147552490234375, 0.017578125, -0.0019550323486328125, -0.03265380859375, -0.01357269287109375, 0.0208740234375, 0.048065185546875, 0.038177490234375, -0.061614990234375, 0.0301513671875, 0.0200653076171875, -0.0236053466796875, 0.01322174072265625, 0.032745361328125, -0.047760009765625, -0.0021724700927734375, 0.003902435302734375, -0.0212554931640625, -0.032073974609375, -0.00994110107421875, -0.07672119140625, 0.1085205078125, 0.0002701282501220703, 0.019683837890625, -0.0105743408203125, 0.045623779296875, -0.0350341796875, 0.01546478271484375, -0.006366729736328125, 0.030029296875, -0.025360107421875, 0.035797119140625, -0.04473876953125, -0.012542724609375, 0.005207061767578125, 0.06463623046875, 0.065185546875, 0.0088043212890625, -0.0066375732421875, -0.026275634765625, 0.03717041015625, 0.049713134765625, -0.01666259765625, 0.0074462890625, 0.01525115966796875, 0.03338623046875, 0.0028133392333984375, -0.0004887580871582031, 0.041748046875, -0.056121826171875, -0.051025390625, 0.0333251953125, 0.03167724609375, 0.0262603759765625, 0.0151519775390625, 0.046844482421875, -0.0282135009765625, 0.00637054443359375, 0.04144287109375, -0.0254058837890625, 0.00145721435546875, 0.02923583984375, 0.022003173828125, -0.026336669921875, -0.0087890625, -0.028106689453125, 0.037872314453125, 0.0237579345703125, 0.064697265625, 0.035797119140625, 0.03369140625, 0.031280517578125, 0.0121002197265625, 0.04608154296875, 0.039642333984375, -0.0362548828125, 0.0168609619140625, -0.005405426025390625, 0.0004584789276123047, -0.027130126953125, 0.0223541259765625, 0.0382080078125, 0.0112457275390625, -0.03314208984375, 0.00791168212890625, 0.00782012939453125, -0.019134521484375, -0.032928466796875, -0.0169525146484375, -0.018310546875, 0.0279083251953125, 0.0096435546875, -0.01158905029296875, -0.029449462890625, -0.0018968582153320312, 0.043060302734375, -0.0070037841796875, -0.013916015625, 0.0095977783203125, -0.0418701171875, -0.0526123046875, 0.013916015625, 0.030120849609375, 0.0418701171875, 0.0183258056640625, 0.0469970703125, 0.0517578125, -0.0108795166015625, -0.021453857421875, 0.0246734619140625, 0.01166534423828125, 0.02203369140625, -0.04486083984375, -0.009368896484375, 0.004085540771484375, 0.03314208984375, 0.031951904296875, 0.0504150390625, 0.0552978515625, 0.0257110595703125, 0.0027561187744140625, 0.00913238525390625, 0.01468658447265625, -0.0188751220703125, 0.0283355712890625, -0.0401611328125, 0.058258056640625, 0.029266357421875, 0.000888824462890625, -0.040374755859375, 0.006366729736328125, 0.060638427734375, -0.018890380859375, 0.03021240234375, 0.0006766319274902344, 0.0023479461669921875, 0.00508880615234375, -0.0183868408203125, 0.00893402099609375, 0.01367950439453125, -0.07147216796875, -0.012481689453125, -0.0180511474609375, -0.0667724609375, 0.04052734375, 0.056396484375, -0.023590087890625, -0.0038604736328125, -0.0123138427734375, 0.01494598388671875, 0.0180206298828125, -0.04571533203125, 0.0202484130859375, 0.0413818359375, 0.0089569091796875, 0.02532958984375, -0.032470703125, -0.012542724609375, 0.01666259765625, 0.04351806640625, 0.004749298095703125, 0.005615234375, 0.0029048919677734375, 0.0296630859375, -0.038848876953125, 0.00797271728515625, -0.0218963623046875, -0.05584716796875, 0.035552978515625, 0.025054931640625, 0.0054779052734375, -0.0143890380859375, -0.03558349609375, 0.030792236328125, 0.0152435302734375, 0.0112457275390625, 0.033416748046875, -0.0178680419921875, 0.01837158203125, -0.0222320556640625, 0.0046539306640625, -0.01074981689453125, 0.0115814208984375, 0.01483154296875, -0.00012803077697753906, 0.0292510986328125, 0.0202789306640625, -0.006561279296875, -0.00007063150405883789, 0.02880859375, 0.004833221435546875, 0.0236968994140625, 0.032745361328125, 0.036285400390625, 0.041534423828125, -0.0477294921875, 0.0189056396484375, 0.04132080078125, -0.004581451416015625, 0.05450439453125, 0.017120361328125, -0.0038166046142578125, 0.046417236328125, -0.061798095703125, -0.017974853515625, -0.011505126953125, 0.0286712646484375, -0.0113372802734375, 0.0060882568359375, -0.020416259765625, -0.012298583984375, -0.0144500732421875, 0.0115814208984375, -0.035919189453125, -0.029876708984375, 0.007358551025390625, 0.03314208984375, -0.0086212158203125, -0.0204620361328125, -0.11126708984375, -0.0148468017578125, 0.0063018798828125, 0.011749267578125, -0.054962158203125, 0.010009765625, 0.00412750244140625, 0.0279083251953125, -0.0226898193359375, -0.03179931640625, -0.00020515918731689453, 0.05718994140625, -0.019073486328125, -0.032684326171875, -0.045928955078125, 0.023162841796875, -0.067138671875, 0.00685882568359375, 0.043792724609375, -0.0184478759765625, -0.02386474609375, 0.004451751708984375, 0.0205078125, 0.03729248046875, 0.00047016143798828125, -0.0205230712890625, -0.0215911865234375, 0.038238525390625, 0.01125335693359375, -0.060760498046875, -0.01119232177734375, -0.0046234130859375, -0.0022182464599609375, -0.00027632713317871094, -0.01123809814453125, 0.0094757080078125, -0.033355712890625, -0.043487548828125, 0.01043701171875, 0.01059722900390625, -0.039520263671875, -0.0162353515625, -0.00531768798828125, -0.00835418701171875, 0.053802490234375, 0.006404876708984375, -0.005535125732421875, -0.02239990234375, -0.00644683837890625, 0.01126861572265625, 0.0251312255859375, 0.044097900390625, -0.017669677734375, -0.0224609375, -0.01398468017578125, -0.0157623291015625, -0.0013818740844726562, -0.0015840530395507812, -0.0092620849609375, 0.01123809814453125, 0.0098876953125, -0.047119140625, -0.006725311279296875, 0.0017843246459960938, 0.00415802001953125, -0.00989532470703125, -0.04010009765625, -0.020355224609375, 0.0006012916564941406, 0.0440673828125, 0.0423583984375, 0.0126953125, -0.04534912109375, 0.037109375, -0.0260009765625, -0.03070068359375, -0.0192413330078125, 0.007747650146484375, -0.044281005859375, -0.0267181396484375, 0.0243377685546875, -0.0201873779296875, 0.00839996337890625, -0.009033203125, -0.042938232421875, -0.01016998291015625, -0.0196380615234375, 0.01502227783203125, -0.108642578125, -0.0335693359375, 0.10382080078125, -0.0648193359375, -0.0416259765625, 0.0611572265625, 0.0023708343505859375, 0.00390625, 0.025604248046875, -0.0037078857421875, -0.0246429443359375, -0.01202392578125, 0.031524658203125, -0.0123748779296875, 0.0692138671875, -0.039764404296875, -0.030242919921875, -0.045928955078125, 0.02703857421875, 0.0224151611328125, 0.0127410888671875, -0.0269927978515625, 0.0355224609375, 0.025604248046875, 0.059967041015625, -0.044952392578125, 0.049407958984375, -0.01412200927734375, -0.000888824462890625, -0.0147857666015625, 0.048126220703125, 0.05096435546875, 0.00897216796875, 0.0171966552734375, -0.0142059326171875, 0.0174560546875, -0.0047149658203125, -0.0018367767333984375, -0.00301361083984375, -0.01345062255859375, 0.006988525390625 ]
4042cbe832cf3a6772e9a9972e11e43b101a0b15
Wordpress Stackexchange Q: Remove a plugin meta box from the dashboard I'm trying to remove the meta box that the Download Manager plugin creates, as it uses a hardcoded http iframe, caused a mixed content error in ssl. Here is the code that generates the meta box: wp_add_dashboard_widget('wpdm_dashboard_widget', 'WordPress Download Manager', 'wpdm_dashboard_widget_function'); and here is the code I'm using in my theme's functions.php file: function remove_dashboard_widgets(){ remove_meta_box('wpdm_dashboard_widget', 'dashboard', 'normal'); } add_action('wp_dashboard_setup', 'remove_dashboard_widgets'); I also tried 'dashboard-network' as the 2nd parameter, as I'm running a multisite setup. Neither worked for me. Where am I going wrong? A: I found that this works: add_action('admin_init', 'rw_remove_dashboard_widgets'); function rw_remove_dashboard_widgets() { remove_meta_box('wpdm_dashboard_widget', 'dashboard', 'normal'); } I guess 'admin_init' is the key, so that it runs before the dashboard is loaded.
Q: Remove a plugin meta box from the dashboard I'm trying to remove the meta box that the Download Manager plugin creates, as it uses a hardcoded http iframe, caused a mixed content error in ssl. Here is the code that generates the meta box: wp_add_dashboard_widget('wpdm_dashboard_widget', 'WordPress Download Manager', 'wpdm_dashboard_widget_function'); and here is the code I'm using in my theme's functions.php file: function remove_dashboard_widgets(){ remove_meta_box('wpdm_dashboard_widget', 'dashboard', 'normal'); } add_action('wp_dashboard_setup', 'remove_dashboard_widgets'); I also tried 'dashboard-network' as the 2nd parameter, as I'm running a multisite setup. Neither worked for me. Where am I going wrong? A: I found that this works: add_action('admin_init', 'rw_remove_dashboard_widgets'); function rw_remove_dashboard_widgets() { remove_meta_box('wpdm_dashboard_widget', 'dashboard', 'normal'); } I guess 'admin_init' is the key, so that it runs before the dashboard is loaded.
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:443159", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137582" }
[ 0.04522705078125, -0.0087432861328125, 0.0067901611328125, -0.01219940185546875, 0.01078033447265625, -0.032440185546875, 0.034515380859375, -0.046539306640625, -0.0221099853515625, 0.06317138671875, 0.0831298828125, -0.0016050338745117188, -0.00008672475814819336, -0.032135009765625, -0.037017822265625, 0.00870513916015625, 0.0244293212890625, 0.016082763671875, 0.04351806640625, -0.004947662353515625, 0.00363922119140625, 0.0183563232421875, 0.0210418701171875, 0.0260009765625, -0.003643035888671875, -0.01236724853515625, 0.021209716796875, -0.0003361701965332031, -0.0264892578125, -0.03411865234375, -0.004383087158203125, 0.0416259765625, 0.006298065185546875, 0.036895751953125, -0.037689208984375, 0.01285552978515625, -0.04583740234375, 0.045623779296875, 0.002208709716796875, 0.0090789794921875, 0.00872802734375, 0.0085601806640625, -0.01166534423828125, 0.013824462890625, -0.0309906005859375, -0.0033931732177734375, -0.0164794921875, -0.03204345703125, 0.04351806640625, -0.0024929046630859375, 0.01654052734375, 0.0145416259765625, 0.0289764404296875, -0.025421142578125, -0.034393310546875, -0.03717041015625, -0.0281982421875, 0.0268402099609375, 0.0284881591796875, 0.054840087890625, 0.004425048828125, 0.015228271484375, -0.031219482421875, -0.04986572265625, -0.0191802978515625, -0.01335906982421875, -0.031494140625, -0.004638671875, -0.01953125, 0.01175689697265625, 0.031951904296875, -0.0271148681640625, -0.006092071533203125, -0.033416748046875, -0.01332855224609375, 0.0020732879638671875, 0.0234527587890625, -0.02020263671875, -0.017303466796875, -0.002597808837890625, 0.07257080078125, 0.042449951171875, 0.0006256103515625, 0.023834228515625, 0.040130615234375, 0.059478759765625, -0.006626129150390625, -0.0634765625, -0.036163330078125, -0.00780487060546875, -0.02520751953125, -0.0782470703125, 0.0330810546875, -0.0157623291015625, -0.030029296875, -0.020050048828125, -0.0001590251922607422, 0.038604736328125, -0.015289306640625, -0.004913330078125, -0.03460693359375, 0.0093841552734375, -0.04931640625, -0.0175933837890625, 0.0194091796875, 0.039764404296875, -0.051483154296875, -0.06201171875, 0.06304931640625, 0.035308837890625, 0.0195159912109375, 0.02923583984375, -0.0174102783203125, -0.01617431640625, -0.04473876953125, 0.03363037109375, -0.0192413330078125, -0.0202484130859375, -0.0013170242309570312, 0.0157928466796875, -0.0310516357421875, -0.0189208984375, -0.0231170654296875, -0.0201263427734375, 0.03466796875, -0.005802154541015625, -0.028839111328125, 0.043975830078125, -0.0303802490234375, -0.0084075927734375, -0.05548095703125, 0.0081787109375, 0.0911865234375, 0.06549072265625, 0.049346923828125, -0.01751708984375, 0.04010009765625, -0.01335906982421875, 0.0214996337890625, 0.0219573974609375, 0.0171966552734375, -0.063720703125, -0.03497314453125, 0.0310821533203125, -0.00609588623046875, 0.01401519775390625, 0.006069183349609375, -0.00034928321838378906, -0.006366729736328125, -0.046295166015625, -0.005584716796875, -0.006317138671875, 0.0506591796875, 0.01861572265625, 0.00213623046875, 0.005092620849609375, 0.09564208984375, -0.037994384765625, -0.073486328125, -0.07000732421875, -0.01007843017578125, -0.01654052734375, 0.0020275115966796875, -0.027069091796875, -0.0307464599609375, 0.01158905029296875, -0.0015211105346679688, 0.01087188720703125, 0.0255279541015625, 0.048187255859375, -0.01654052734375, -0.05682373046875, 0.002902984619140625, 0.0252532958984375, -0.014068603515625, 0.059356689453125, 0.018218994140625, 0.00920867919921875, 0.0188751220703125, -0.0036220550537109375, -0.041046142578125, -0.042205810546875, 0.0570068359375, -0.037078857421875, -0.0897216796875, 0.050628662109375, 0.0204925537109375, 0.0843505859375, 0.01168060302734375, 0.00260162353515625, 0.08319091796875, 0.0038299560546875, -0.01380157470703125, -0.01329803466796875, -0.0028533935546875, -0.014495849609375, 0.0015087127685546875, 0.00394439697265625, -0.00514984130859375, 0.01065826416015625, 0.04583740234375, 0.0233306884765625, -0.00901031494140625, 0.00555419921875, -0.06256103515625, 0.0295867919921875, -0.02862548828125, 0.0274810791015625, -0.0131378173828125, 0.0006232261657714844, 0.0268096923828125, -0.01313018798828125, -0.0295562744140625, 0.0245208740234375, -0.01146697998046875, -0.0022907257080078125, -0.03558349609375, 0.029388427734375, -0.0227813720703125, 0.02734375, -0.016357421875, -0.02587890625, -0.00811004638671875, 0.01306915283203125, 0.052032470703125, 0.019927978515625, -0.022552490234375, 0.0016641616821289062, 0.104248046875, -0.0026378631591796875, 0.033599853515625, 0.0226898193359375, -0.0001392364501953125, 0.0255126953125, -0.0289459228515625, -0.0235595703125, -0.01025390625, -0.07275390625, 0.0178375244140625, 0.054168701171875, 0.0166473388671875, 0.0294647216796875, -0.022125244140625, 0.026885986328125, -0.005985260009765625, -0.106689453125, -0.017791748046875, 0.03326416015625, 0.0100250244140625, 0.01467132568359375, -0.0170135498046875, 0.00836944580078125, 0.0256500244140625, 0.011688232421875, 0.04669189453125, 0.02484130859375, -0.03302001953125, -0.035614013671875, 0.021270751953125, -0.0034160614013671875, 0.009368896484375, 0.00044274330139160156, -0.0128021240234375, -0.0113525390625, 0.028656005859375, -0.017242431640625, 0.038330078125, 0.0247039794921875, -0.0123291015625, -0.042022705078125, 0.023773193359375, 0.05810546875, -0.0291290283203125, 0.051544189453125, 0.0614013671875, -0.0154571533203125, -0.07257080078125, 0.0078125, -0.0099639892578125, 0.03533935546875, 0.00879669189453125, 0.01543426513671875, 0.007213592529296875, -0.0006194114685058594, 0.01308441162109375, -0.0252838134765625, 0.0113525390625, 0.0095367431640625, 0.02850341796875, 0.00868988037109375, 0.0234832763671875, -0.01053619384765625, -0.02056884765625, 0.042205810546875, 0.006755828857421875, -0.039459228515625, 0.032440185546875, -0.01348114013671875, 0.0223846435546875, -0.00022137165069580078, 0.10406494140625, 0.0673828125, -0.0081634521484375, 0.0198211669921875, -0.0164337158203125, 0.006439208984375, -0.0002925395965576172, -0.0187225341796875, -0.0301666259765625, -0.009979248046875, -0.04705810546875, 0.01910400390625, 0.0272674560546875, -0.0253753662109375, 0.02978515625, -0.008758544921875, -0.00937652587890625, 0.003986358642578125, -0.0823974609375, -0.072265625, -0.006275177001953125, -0.005001068115234375, -0.005901336669921875, -0.004314422607421875, 0.002315521240234375, -0.001873016357421875, 0.004550933837890625, 0.00405120849609375, 0.011383056640625, -0.038116455078125, -0.0144805908203125, -0.03485107421875, -0.03369140625, 0.0005350112915039062, 0.006435394287109375, -0.00870513916015625, 0.00446319580078125, 0.042877197265625, -0.00887298583984375, -0.0748291015625, 0.00423431396484375, -0.00836944580078125, 0.01045989990234375, 0.044952392578125, 0.034423828125, -0.039825439453125, 0.0195465087890625, 0.002017974853515625, 0.017425537109375, 0.0283660888671875, -0.0271453857421875, -0.0211181640625, -0.0164794921875, -0.004974365234375, -0.00824737548828125, 0.0116119384765625, 0.021514892578125, -0.034698486328125, -0.0209808349609375, -0.058807373046875, 0.0186309814453125, 0.00644683837890625, 0.001979827880859375, 0.005657196044921875, -0.029083251953125, -0.0250244140625, 0.054229736328125, -0.01727294921875, 0.0290069580078125, 0.011932373046875, 0.0269012451171875, 0.0090179443359375, 0.002349853515625, -0.00453948974609375, 0.01052093505859375, -0.04327392578125, 0.0140380859375, -0.035369873046875, -0.006938934326171875, -0.0077972412109375, -0.005702972412109375, 0.00749969482421875, -0.03021240234375, 0.01090240478515625, -0.0001894235610961914, 0.039337158203125, -0.01386260986328125, 0.0033855438232421875, -0.00916290283203125, -0.00489044189453125, -0.01387786865234375, 0.039581298828125, -0.06414794921875, 0.0198211669921875, 0.003620147705078125, -0.0072174072265625, -0.010772705078125, -0.024627685546875, -0.092529296875, -0.006542205810546875, -0.114990234375, -0.007091522216796875, 0.00897979736328125, -0.0643310546875, 0.0065765380859375, -0.0216217041015625, -0.0655517578125, -0.049896240234375, 0.042694091796875, 0.015350341796875, -0.007350921630859375, -0.00882720947265625, 0.01251983642578125, -0.051422119140625, -0.0249481201171875, 0.01512908935546875, -0.0731201171875, -0.0024585723876953125, -0.07867431640625, 0.055694580078125, 0.020965576171875, 0.0298919677734375, -0.025360107421875, 0.0171051025390625, -0.00394439697265625, -0.0234832763671875, 0.0009169578552246094, 0.01073455810546875, -0.01007843017578125, 0.0094451904296875, -0.00168609619140625, -0.00927734375, -0.03057861328125, 0.008056640625, -0.006561279296875, 0.070556640625, -0.003021240234375, 0.007808685302734375, 0.01027679443359375, -0.009368896484375, -0.032501220703125, -0.055145263671875, -0.06793212890625, 0.0010366439819335938, -0.049163818359375, 0.030487060546875, -0.054351806640625, -0.05950927734375, -0.01629638671875, 0.0216217041015625, -0.01568603515625, 0.0212860107421875, 0.01531219482421875, 0.0293121337890625, -0.015380859375, -0.032745361328125, -0.035247802734375, 0.01251220703125, 0.004730224609375, 0.01532745361328125, 0.0193634033203125, -0.007328033447265625, -0.0004208087921142578, -0.00757598876953125, 0.01235198974609375, -0.041900634765625, 0.05963134765625, 0.00566864013671875, -0.0179595947265625, 0.037353515625, -0.0147857666015625, -0.0016765594482421875, 0.0003345012664794922, 0.0190887451171875, 0.0008339881896972656, 0.0014858245849609375, 0.0024433135986328125, 0.036285400390625, -0.05792236328125, -0.0228729248046875, -0.01126861572265625, 0.0106048583984375, -0.0380859375, 0.0213165283203125, 0.0130767822265625, 0.00439453125, -0.01309967041015625, -0.01139068603515625, -0.00295257568359375, 0.007511138916015625, 0.01146697998046875, -0.06365966796875, 0.0158233642578125, 0.01181793212890625, -0.04931640625, 0.020172119140625, -0.002735137939453125, -0.004680633544921875, 0.0235443115234375, -0.017181396484375, -0.04168701171875, 0.0101318359375, 0.04376220703125, -0.01519775390625, 0.0016641616821289062, 0.0357666015625, 0.02020263671875, -0.04132080078125, -0.03338623046875, 0.0230255126953125, -0.0200653076171875, -0.0634765625, -0.0125579833984375, 0.00995635986328125, -0.015380859375, -0.01203155517578125, 0.041961669921875, 0.0009860992431640625, 0.0036029815673828125, 0.0015993118286132812, 0.0716552734375, 0.00823211669921875, 0.028106689453125, 0.0103759765625, -0.0144805908203125, 0.0289154052734375, -0.024688720703125, -0.03216552734375, -0.0249481201171875, 0.006366729736328125, 0.0169525146484375, 0.019927978515625, 0.01214599609375, -0.01306915283203125, 0.01276397705078125, -0.025482177734375, -0.0367431640625, 0.0792236328125, 0.0276031494140625, -0.056671142578125, -0.041015625, -0.0246124267578125, 0.0135498046875, -0.00989532470703125, 0.00495147705078125, 0.037109375, -0.0032520294189453125, 0.0457763671875, -0.0046234130859375, 0.0015153884887695312, -0.0006723403930664062, 0.0014514923095703125, -0.00238037109375, -0.0027942657470703125, -0.0242919921875, -0.0180511474609375, -0.042877197265625, 0.00040149688720703125, 0.0077667236328125, 0.062744140625, -0.024200439453125, 0.00482177734375, -0.02716064453125, 0.0308837890625, -0.072509765625, 0.01103973388671875, 0.0220947265625, 0.01000213623046875, 0.003253936767578125, -0.0230255126953125, -0.017791748046875, -0.0316162109375, -0.0184326171875, -0.02777099609375, -0.0362548828125, 0.0028839111328125, 0.00007736682891845703, 0.034515380859375, -0.00460052490234375, 0.0238800048828125, 0.028289794921875, -0.0249786376953125, -0.033905029296875, 0.0428466796875, -0.007358551025390625, 0.043121337890625, 0.014984130859375, 0.0296478271484375, 0.0179595947265625, 0.01898193359375, -0.01873779296875, -0.01910400390625, 0.01111602783203125, -0.0012845993041992188, -0.0211181640625, 0.007564544677734375, -0.0103302001953125, -0.0361328125, 0.005100250244140625, -0.029541015625, 0.004512786865234375, 0.003414154052734375, 0.01114654541015625, -0.00982666015625, 0.00687408447265625, 0.01214599609375, 0.0066986083984375, 0.01322174072265625, -0.044189453125, -0.036651611328125, 0.006557464599609375, 0.018157958984375, 0.0273590087890625, -0.030853271484375, -0.0027370452880859375, 0.0186004638671875, -0.064208984375, 0.0858154296875, 0.08172607421875, 0.0224609375, 0.052093505859375, 0.0106048583984375, 0.01218414306640625, -0.005126953125, -0.008819580078125, -0.007808685302734375, -0.00766754150390625, 0.00888824462890625, -0.004608154296875, 0.013427734375, 0.0258331298828125, -0.006137847900390625, 0.0238800048828125, 0.0341796875, 0.04583740234375, -0.07501220703125, 0.02569580078125, 0.004604339599609375, 0.031982421875, 0.06353759765625, -0.007099151611328125, -0.0201873779296875, -0.046844482421875, 0.03704833984375, 0.002277374267578125, -0.0233306884765625, 0.01459503173828125, 0.01227569580078125, -0.01678466796875, -0.017791748046875, -0.019744873046875, -0.00024330615997314453, -0.033233642578125, 0.001384735107421875, 0.0198822021484375, -0.0199432373046875, 0.0117034912109375, 0.009521484375, 0.0298309326171875, -0.04901123046875, -0.0823974609375, -0.01311492919921875, 0.0005950927734375, -0.0667724609375, 0.024627685546875, 0.02557373046875, 0.05029296875, 0.058502197265625, 0.005657196044921875, 0.0013790130615234375, 0.01097869873046875, 0.037811279296875, -0.021575927734375, -0.0216522216796875, 0.01316070556640625, 0.0024051666259765625, -0.00429534912109375, 0.01678466796875, -0.0122528076171875, -0.058135986328125, -0.01171112060546875, -0.0104827880859375, 0.078369140625, -0.0207977294921875, -0.0242462158203125, 0.006465911865234375, -0.0016489028930664062, -0.0076446533203125, 0.0113525390625, 0.05438232421875, -0.048675537109375, -0.0112457275390625, 0.0251007080078125, -0.01715087890625, -0.035186767578125, 0.01654052734375, -0.087890625, 0.0677490234375, 0.0192108154296875, 0.036163330078125, -0.0228118896484375, 0.0087890625, -0.027923583984375, -0.02349853515625, -0.01157379150390625, 0.048126220703125, 0.06195068359375, -0.0115966796875, 0.0023212432861328125, 0.00041556358337402344, -0.0145721435546875, 0.014923095703125, 0.01401519775390625, 0.005283355712890625, 0.0182647705078125, -0.036529541015625, -0.0253448486328125, 0.0214691162109375, -0.01285552978515625, 0.00803375244140625, 0.001613616943359375, 0.033477783203125, -0.0008664131164550781, -0.0275421142578125, 0.03485107421875, -0.044036865234375, -0.04052734375, 0.0309295654296875, 0.009246826171875, -0.003055572509765625, -0.016357421875, 0.06744384765625, -0.004302978515625, -0.01233673095703125, 0.006755828857421875, 0.0104522705078125, 0.01226043701171875, 0.0139312744140625, -0.005435943603515625, 0.039215087890625, 0.011962890625, -0.00628662109375, 0.024444580078125, 0.0027561187744140625, 0.00098419189453125, 0.0258941650390625, 0.0310516357421875, -0.03143310546875, -0.0044097900390625, 0.007450103759765625, 0.0200958251953125, -0.0285797119140625, 0.00901031494140625, -0.01096343994140625, -0.00110626220703125, -0.0210418701171875, 0.03326416015625, 0.03253173828125, 0.01103973388671875, -0.0261383056640625, -0.05963134765625, -0.007419586181640625, -0.011077880859375, 0.024261474609375, 0.0280303955078125, 0.04034423828125, -0.031646728515625, 0.0054168701171875, 0.0060577392578125, -0.010406494140625, -0.055389404296875, 0.0227203369140625, -0.023712158203125, -0.00750732421875, 0.0136566162109375, -0.004299163818359375, 0.006969451904296875, -0.0289154052734375, 0.01078033447265625, 0.033172607421875, 0.00907135009765625, 0.00768280029296875, -0.049713134765625, -0.01068878173828125, -0.02642822265625, 0.022613525390625, -0.0232391357421875, 0.03985595703125, -0.0693359375, -0.037811279296875, 0.025604248046875, 0.05908203125, 0.059967041015625, 0.01493072509765625, 0.04217529296875, 0.046600341796875, 0.041015625, 0.0181427001953125, 0.02667236328125, 0.0204315185546875, -0.0013456344604492188, -0.030426025390625, 0.00217437744140625, -0.01328277587890625, -0.00017881393432617188, -0.01319122314453125, 0.0382080078125, -0.0176544189453125, -0.042083740234375, 0.007427215576171875, -0.01084136962890625, -0.01537322998046875, 0.061920166015625, 0.0014505386352539062, 0.0199127197265625, -0.0127105712890625, -0.051025390625, -0.01256561279296875, 0.0033969879150390625, -0.03399658203125, 0.0205078125, 0.031890869140625, -0.05523681640625, 0.06646728515625, 0.0095062255859375, 0.013336181640625, -0.02093505859375, -0.0247650146484375, 0.03790283203125, -0.01529693603515625, -0.0010528564453125, 0.0306396484375, -0.018524169921875, -0.01384735107421875, -0.001918792724609375, 0.042205810546875, 0.00969696044921875, 0.0634765625, -0.0245361328125, 0.0191802978515625, -0.0165252685546875, -0.0301971435546875, 0.013427734375, 0.0005593299865722656, -0.032196044921875, -0.0047454833984375, -0.01551055908203125, -0.00960540771484375, -0.0198822021484375, -0.00899505615234375, 0.027679443359375, -0.0296478271484375, -0.0212554931640625, -0.01227569580078125, 0.032073974609375, 0.00606536865234375, 0.01366424560546875, -0.01959228515625, -0.00859832763671875, -0.01641845703125, -0.01331329345703125, 0.037017822265625, 0.0152587890625, -0.005397796630859375, -0.00013315677642822266, 0.0089111328125, 0.013641357421875, 0.006786346435546875, 0.048004150390625, -0.0159149169921875, 0.01419830322265625, -0.031036376953125, -0.04742431640625, 0.019561767578125, -0.01364898681640625, 0.0281982421875, 0.00131988525390625, 0.055328369140625, 0.020751953125, -0.0182037353515625, -0.007251739501953125, 0.0207366943359375, -0.0184326171875, -0.0596923828125, -0.00698089599609375, 0.06097412109375, -0.0262298583984375, -0.0022411346435546875, 0.030487060546875, -0.00907135009765625, -0.008575439453125, -0.043853759765625, -0.0006728172302246094, -0.032684326171875, -0.08642578125, -0.08563232421875, 0.0284576416015625, 0.039581298828125, 0.0271453857421875, -0.1083984375, 0.05224609375, -0.018585205078125, 0.06634521484375, 0.0014820098876953125, 0.029510498046875, -0.0247039794921875, 0.0167694091796875, -0.007518768310546875, -0.035400390625, -0.046722412109375, 0.05487060546875, -0.036041259765625, -0.00826263427734375, 0.0083160400390625, -0.01233673095703125, 0.01372528076171875, -0.035919189453125, -0.01203155517578125, 0.01507568359375, -0.0013570785522460938, -0.021331787109375, 0.016265869140625, 0.004489898681640625, 0.0367431640625, -0.05938720703125, -0.04052734375, -0.021331787109375, 0.0185546875, 0.035125732421875, -0.03369140625, -0.01239776611328125, -0.03271484375, -0.0283355712890625, 0.049041748046875, 0.026275634765625, -0.01288604736328125, -0.0150604248046875, 0.03704833984375, -0.005107879638671875, 0.05352783203125, 0.0185089111328125, 0.00023317337036132812, 0.006561279296875, -0.0188140869140625, 0.033355712890625, -0.04949951171875, 0.0562744140625, -0.01690673828125, -0.032501220703125, 0.013824462890625, 0.0237579345703125, 0.0157012939453125, -0.05584716796875, 0.0230255126953125, 0.0153350830078125, 0.03448486328125, -0.00909423828125, 0.04693603515625, 0.0297393798828125, 0.019134521484375, -0.0198516845703125, -0.04266357421875, 0.02099609375, 0.0240020751953125, 0.0341796875, 0.0477294921875, 0.00115966796875, -0.0560302734375, -0.0169677734375, -0.05816650390625, -0.007160186767578125, -0.040283203125, 0.0187835693359375, -0.091796875, -0.0204315185546875, 0.031951904296875, -0.007171630859375, 0.0184783935546875, -0.01201629638671875, -0.0156097412109375, 0.007083892822265625, 0.0340576171875, 0.014862060546875, -0.028564453125, -0.0086212158203125, 0.057373046875, -0.044952392578125, 0.0049285888671875, 0.002567291259765625, 0.0135955810546875, 0.035400390625, -0.00812530517578125, -0.031585693359375, 0.01172637939453125, -0.0540771484375, 0.034698486328125, -0.029571533203125, 0.006557464599609375, -0.07196044921875, 0.014739990234375, -0.01096343994140625, 0.0031452178955078125, -0.002658843994140625, 0.01219940185546875, -0.00273895263671875, 0.005222320556640625, 0.0027923583984375, -0.00031447410583496094, -0.019744873046875, -0.022003173828125, -0.02349853515625, 0.0018491744995117188, 0.0164337158203125, 0.01019287109375, 0.068603515625, -0.0132598876953125, 0.0003814697265625, 0.003665924072265625, 0.0201263427734375, -0.06536865234375, 0.0367431640625, -0.0625, 0.0328369140625, 0.0340576171875 ]
f494d66c7febc8990231368a44fc74968ec594a2
Wordpress Stackexchange Q: How to safely sanitize a textarea which takes full HTML input I'm developing a plugin which enables the user to send HTML emails from within the WordPress admin. How should I sanitize the textarea input? It has to be able to contain the whole range of HTML tags that might appear in an HTML email. If I use wp_kses() then I would have to use a huge list of allowed tags. The textarea saves its content to the db via custom options. A: There is already a huge list built for you, which can be returned by wp_kses_allowed_html() based on context, and filtered via the wp_kses_allowed_html filter, also contextually. Creating that list should not be hard. However, "the whole range of HTML tags that might appear in an HTML email" should be pretty close to the range allowed for an ordinary post so wp_kses_post() ought to get you a long way with little effort.
Q: How to safely sanitize a textarea which takes full HTML input I'm developing a plugin which enables the user to send HTML emails from within the WordPress admin. How should I sanitize the textarea input? It has to be able to contain the whole range of HTML tags that might appear in an HTML email. If I use wp_kses() then I would have to use a huge list of allowed tags. The textarea saves its content to the db via custom options. A: There is already a huge list built for you, which can be returned by wp_kses_allowed_html() based on context, and filtered via the wp_kses_allowed_html filter, also contextually. Creating that list should not be hard. However, "the whole range of HTML tags that might appear in an HTML email" should be pretty close to the range allowed for an ordinary post so wp_kses_post() ought to get you a long way with little effort.
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:443160", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137583" }
[ 0.055999755859375, 0.0013780593872070312, -0.0258026123046875, -0.035125732421875, 0.01861572265625, -0.0345458984375, 0.0258331298828125, -0.00856781005859375, 0.0033321380615234375, 0.04034423828125, 0.01141357421875, 0.011993408203125, 0.00695037841796875, -0.017181396484375, -0.024383544921875, -0.0073394775390625, -0.0034275054931640625, -0.0277099609375, -0.0162506103515625, -0.018218994140625, -0.0027637481689453125, -0.0287628173828125, 0.01105499267578125, -0.0738525390625, -0.005519866943359375, -0.0037479400634765625, 0.0810546875, -0.0024356842041015625, -0.00986480712890625, -0.014373779296875, 0.0022678375244140625, -0.005130767822265625, 0.0276031494140625, 0.057220458984375, -0.10333251953125, 0.0015506744384765625, -0.00707244873046875, 0.0233612060546875, -0.0168304443359375, 0.0281219482421875, 0.045654296875, -0.030670166015625, 0.02587890625, 0.0164642333984375, 0.007717132568359375, -0.0430908203125, 0.07843017578125, -0.0230865478515625, -0.010986328125, -0.00521087646484375, 0.00804901123046875, 0.003749847412109375, 0.035430908203125, -0.08721923828125, -0.006572723388671875, -0.01053619384765625, -0.044525146484375, -0.03924560546875, -0.004390716552734375, 0.08209228515625, 0.042755126953125, 0.01085662841796875, -0.024169921875, -0.008148193359375, -0.0028667449951171875, -0.018646240234375, -0.039703369140625, 0.018280029296875, -0.0411376953125, -0.0012922286987304688, 0.04052734375, -0.03240966796875, 0.034820556640625, -0.06304931640625, 0.03460693359375, 0.018524169921875, -0.07086181640625, -0.027679443359375, 0.037628173828125, -0.01363372802734375, -0.021514892578125, -0.027252197265625, -0.037872314453125, -0.04315185546875, 0.01323699951171875, -0.008636474609375, -0.01232147216796875, 0.0158538818359375, -0.00958251953125, -0.00699615478515625, -0.01081085205078125, 0.01006317138671875, -0.0134429931640625, 0.005664825439453125, -0.0021839141845703125, -0.0321044921875, -0.00659942626953125, -0.0266876220703125, 0.001354217529296875, 0.003734588623046875, 0.05450439453125, -0.060699462890625, 0.044586181640625, -0.0125885009765625, 0.0163726806640625, 0.06121826171875, -0.01181793212890625, -0.0253753662109375, 0.04046630859375, 0.00946044921875, 0.023345947265625, 0.00856781005859375, 0.0195465087890625, -0.035430908203125, -0.003353118896484375, 0.029937744140625, 0.0222320556640625, 0.0283050537109375, 0.01114654541015625, 0.0090789794921875, -0.00684356689453125, -0.00653839111328125, 0.01102447509765625, -0.0200653076171875, -0.031280517578125, -0.060150146484375, -0.01183319091796875, 0.01116943359375, 0.0193328857421875, -0.0059967041015625, -0.0243377685546875, 0.04022216796875, -0.0009198188781738281, -0.00284576416015625, -0.0189056396484375, -0.00550079345703125, -0.00896453857421875, -0.006740570068359375, 0.0026073455810546875, 0.0182342529296875, -0.0355224609375, -0.0220184326171875, 0.040252685546875, -0.033294677734375, 0.005157470703125, 0.0305023193359375, 0.0325927734375, -0.00157928466796875, -0.033477783203125, -0.0643310546875, 0.048004150390625, -0.049163818359375, 0.0499267578125, 0.0090484619140625, -0.054779052734375, -0.036407470703125, -0.00687408447265625, -0.03240966796875, -0.004428863525390625, -0.05938720703125, 0.0218048095703125, 0.005290985107421875, 0.02081298828125, 0.0102996826171875, -0.003940582275390625, -0.02557373046875, -0.042816162109375, 0.0014629364013671875, 0.02777099609375, -0.02978515625, 0.0028324127197265625, 0.0169525146484375, 0.0226898193359375, 0.006305694580078125, 0.0110015869140625, 0.0131683349609375, -0.00275421142578125, 0.0188446044921875, 0.01288604736328125, 0.049560546875, 0.01517486572265625, -0.03515625, 0.05267333984375, -0.020263671875, -0.0263671875, -0.00787353515625, -0.01593017578125, 0.0186309814453125, 0.0570068359375, 0.004940032958984375, 0.000804901123046875, -0.043243408203125, 0.051483154296875, -0.035400390625, 0.0290679931640625, -0.0458984375, -0.0173492431640625, -0.022186279296875, -0.00826263427734375, 0.0017328262329101562, 0.01904296875, -0.0452880859375, 0.0721435546875, -0.035491943359375, 0.0008282661437988281, -0.0005431175231933594, -0.0211639404296875, 0.0305023193359375, 0.0029850006103515625, 0.04083251953125, 0.0201416015625, 0.018310546875, -0.027099609375, 0.004238128662109375, 0.00711822509765625, 0.004932403564453125, -0.0005307197570800781, 0.029632568359375, 0.0006132125854492188, 0.033843994140625, 0.006549835205078125, -0.030731201171875, 0.005828857421875, 0.001953125, 0.0005741119384765625, -0.008758544921875, -0.023712158203125, -0.004856109619140625, 0.001556396484375, -0.0018854141235351562, 0.041534423828125, 0.0309600830078125, 0.058074951171875, 0.07305908203125, -0.0042877197265625, -0.015869140625, -0.01153564453125, -0.05853271484375, 0.004192352294921875, 0.037322998046875, 0.0260467529296875, 0.057373046875, -0.03570556640625, -0.0318603515625, 0.037750244140625, -0.0789794921875, -0.00777435302734375, -0.0007414817810058594, -0.004016876220703125, 0.0234832763671875, -0.01153564453125, -0.016082763671875, 0.00732421875, -0.0662841796875, 0.0163116455078125, 0.01288604736328125, -0.0062713623046875, -0.0265045166015625, -0.0215606689453125, 0.00951385498046875, 0.02880859375, -0.00992584228515625, -0.035675048828125, 0.003963470458984375, 0.026580810546875, -0.004039764404296875, 0.01299285888671875, 0.003047943115234375, 0.01395416259765625, -0.004665374755859375, -0.00363922119140625, -0.07037353515625, -0.0009288787841796875, 0.0250091552734375, 0.035614013671875, 0.0171661376953125, -0.0335693359375, -0.023895263671875, 0.033416748046875, 0.032623291015625, -0.014862060546875, 0.0157318115234375, 0.025146484375, -0.0088653564453125, -0.0199432373046875, -0.0208740234375, 0.04095458984375, -0.0021991729736328125, -0.003910064697265625, 0.015472412109375, 0.0394287109375, 0.014404296875, -0.00951385498046875, 0.0205841064453125, 0.00501251220703125, -0.01345062255859375, 0.0113372802734375, -0.01169586181640625, 0.01349639892578125, 0.007568359375, 0.0478515625, 0.059356689453125, 0.0203094482421875, -0.01495361328125, 0.005077362060546875, -0.035186767578125, -0.00540924072265625, 0.0263214111328125, 0.0006542205810546875, -0.0208587646484375, -0.08062744140625, -0.027008056640625, 0.0082244873046875, 0.03411865234375, -0.019927978515625, -0.03375244140625, -0.026702880859375, 0.0180206298828125, -0.057708740234375, -0.0136566162109375, 0.0297698974609375, -0.016265869140625, -0.05999755859375, -0.0213775634765625, -0.010589599609375, 0.0220184326171875, -0.0286102294921875, -0.02972412109375, -0.021728515625, -0.01288604736328125, -0.061370849609375, -0.029541015625, -0.031158447265625, 0.06134033203125, -0.0054779052734375, -0.0013418197631835938, 0.0031490325927734375, 0.051971435546875, 0.005950927734375, -0.05804443359375, 0.00182342529296875, -0.0003311634063720703, -0.0229034423828125, 0.025115966796875, -0.011138916015625, -0.01497650146484375, 0.005817413330078125, 0.0108795166015625, -0.037353515625, -0.01068115234375, 0.033538818359375, -0.020263671875, 0.0312042236328125, -0.0263214111328125, 0.022247314453125, 0.00890350341796875, -0.045623779296875, -0.0252532958984375, 0.00936126708984375, -0.052825927734375, 0.0222015380859375, 0.041046142578125, 0.02020263671875, -0.07159423828125, -0.068603515625, -0.02947998046875, -0.0027256011962890625, 0.0169830322265625, 0.0239715576171875, 0.0218505859375, 0.050994873046875, 0.017822265625, -0.051483154296875, -0.0216217041015625, -0.0280303955078125, -0.03448486328125, -0.029754638671875, -0.0345458984375, -0.00377655029296875, -0.045684814453125, 0.0010852813720703125, -0.01605224609375, 0.0176239013671875, -0.01727294921875, -0.0140533447265625, 0.061279296875, 0.0201263427734375, 0.0312347412109375, -0.039398193359375, -0.0295257568359375, -0.034912109375, 0.0673828125, 0.02239990234375, -0.0030364990234375, -0.0269775390625, -0.019195556640625, -0.0216064453125, -0.0201568603515625, -0.04730224609375, 0.0085601806640625, -0.041412353515625, 0.023773193359375, 0.0004382133483886719, -0.0222625732421875, -0.004268646240234375, -0.06292724609375, -0.0225067138671875, -0.03558349609375, 0.01788330078125, -0.02197265625, 0.01220703125, -0.00223541259765625, 0.010040283203125, -0.0298919677734375, -0.003147125244140625, -0.037078857421875, -0.045013427734375, -0.017425537109375, -0.037353515625, 0.06781005859375, 0.0281829833984375, -0.02587890625, -0.0285491943359375, 0.026947021484375, -0.030029296875, 0.0169677734375, 0.0364990234375, 0.05462646484375, -0.017578125, 0.0012264251708984375, 0.0445556640625, -0.0540771484375, 0.001373291015625, 0.008270263671875, -0.01568603515625, -0.0266571044921875, -0.01561737060546875, -0.085693359375, 0.0347900390625, -0.04058837890625, -0.01107025146484375, -0.0236358642578125, -0.059326171875, -0.011932373046875, -0.01515960693359375, -0.0355224609375, -0.01294708251953125, -0.0186004638671875, 0.07025146484375, 0.010772705078125, 0.001556396484375, -0.015625, 0.040008544921875, -0.0002187490463256836, -0.041229248046875, -0.01318359375, -0.039306640625, 0.0367431640625, 0.0186004638671875, 0.01226043701171875, 0.002834320068359375, -0.03997802734375, 0.050537109375, 0.0195770263671875, 0.01042938232421875, 0.0001392364501953125, 0.05877685546875, 0.01190948486328125, 0.032318115234375, -0.019378662109375, 0.01128387451171875, -0.013336181640625, 0.01544189453125, 0.0003802776336669922, 0.016510009765625, -0.0115203857421875, -0.01959228515625, -0.01148223876953125, 0.0149383544921875, 0.0120849609375, -0.02099609375, 0.0027675628662109375, 0.01092529296875, 0.03045654296875, 0.0225372314453125, -0.00266265869140625, 0.00719451904296875, 0.009521484375, 0.0072479248046875, -0.034820556640625, -0.046051025390625, 0.00170135498046875, 0.037109375, -0.033660888671875, 0.01470184326171875, 0.0034618377685546875, -0.00850677490234375, 0.005817413330078125, -0.01461029052734375, -0.040802001953125, -0.028350830078125, 0.0144195556640625, 0.03741455078125, 0.019012451171875, -0.02374267578125, -0.00778961181640625, 0.0276947021484375, -0.0081787109375, 0.033843994140625, -0.0111541748046875, 0.0004467964172363281, -0.01294708251953125, -0.07794189453125, -0.004566192626953125, -0.038055419921875, 0.005680084228515625, 0.0176544189453125, -0.0189361572265625, -0.00002849102020263672, -0.00908660888671875, 0.0279998779296875, 0.03265380859375, 0.0023097991943359375, 0.030029296875, 0.0171661376953125, -0.03131103515625, -0.0205230712890625, -0.0223541259765625, -0.0188751220703125, -0.0256805419921875, 0.05035400390625, 0.0166473388671875, -0.00969696044921875, 0.00269317626953125, -0.0094146728515625, -0.0014209747314453125, -0.0244140625, 0.00922393798828125, -0.0523681640625, -0.03662109375, -0.034515380859375, -0.005092620849609375, 0.0208587646484375, 0.0008897781372070312, -0.003997802734375, 0.00787353515625, -0.03131103515625, -0.0009012222290039062, 0.050994873046875, -0.030059814453125, -0.0195159912109375, -0.0175323486328125, 0.038330078125, -0.0156402587890625, -0.020965576171875, -0.0589599609375, -0.0165557861328125, -0.02587890625, 0.018951416015625, 0.045745849609375, -0.007415771484375, 0.03900146484375, -0.04541015625, 0.014373779296875, -0.03515625, 0.00995635986328125, 0.0151214599609375, -0.005901336669921875, -0.050628662109375, -0.0164337158203125, -0.0290069580078125, -0.01300048828125, -0.0159454345703125, -0.01088714599609375, -0.03289794921875, -0.0018253326416015625, 0.0160064697265625, 0.049560546875, -0.01094818115234375, -0.02813720703125, 0.01715087890625, -0.007053375244140625, -0.00839996337890625, 0.054473876953125, -0.066650390625, 0.0296630859375, 0.011688232421875, 0.0131988525390625, -0.062255859375, -0.04010009765625, 0.033935546875, 0.02362060546875, -0.00441741943359375, -0.062042236328125, -0.006381988525390625, -0.005397796630859375, 0.016357421875, 0.0240020751953125, 0.00305938720703125, 0.0074310302734375, 0.0308990478515625, -0.027008056640625, 0.00556182861328125, -0.01995849609375, 0.040191650390625, -0.04388427734375, -0.0013580322265625, 0.0172119140625, -0.0311737060546875, -0.0075225830078125, 0.01580810546875, 0.019287109375, -0.005634307861328125, 0.0072021484375, -0.0182647705078125, 0.0003845691680908203, -0.0004954338073730469, 0.0248260498046875, 0.0352783203125, 0.00502777099609375, 0.0296630859375, 0.024169921875, 0.023284912109375, -0.0126495361328125, 0.0062255859375, -0.0107421875, -0.03448486328125, 0.03778076171875, 0.0028514862060546875, 0.01123809814453125, 0.045013427734375, -0.006473541259765625, 0.0180206298828125, 0.0728759765625, 0.11029052734375, -0.09857177734375, 0.00855255126953125, 0.038330078125, -0.031890869140625, -0.006839752197265625, -0.0163116455078125, 0.026641845703125, -0.0302581787109375, 0.049407958984375, -0.006114959716796875, 0.004550933837890625, 0.02935791015625, -0.03155517578125, -0.0015325546264648438, -0.0243072509765625, 0.114013671875, 0.0147247314453125, -0.0462646484375, -0.045989990234375, 0.029266357421875, -0.05950927734375, -0.00988006591796875, 0.0360107421875, 0.005889892578125, -0.007720947265625, -0.0355224609375, 0.0057373046875, 0.0037841796875, -0.03570556640625, -0.0162200927734375, 0.00677490234375, 0.023773193359375, 0.042816162109375, -0.0110931396484375, -0.0178985595703125, 0.02606201171875, -0.006378173828125, 0.0311431884765625, -0.03656005859375, -0.046112060546875, 0.05206298828125, -0.00004857778549194336, 0.002605438232421875, 0.0255279541015625, 0.00955963134765625, -0.01136016845703125, 0.035491943359375, 0.054931640625, 0.04949951171875, -0.04986572265625, 0.039337158203125, 0.0218048095703125, -0.0225830078125, -0.06646728515625, -0.033935546875, -0.03326416015625, 0.054351806640625, -0.06927490234375, 0.0007796287536621094, 0.038970947265625, -0.0601806640625, -0.09954833984375, 0.07122802734375, 0.06854248046875, 0.035919189453125, -0.0183868408203125, 0.02691650390625, -0.05322265625, -0.016845703125, 0.0268707275390625, -0.0164794921875, -0.020660400390625, -0.006439208984375, 0.005077362060546875, -0.007137298583984375, -0.00859832763671875, 0.062225341796875, -0.02325439453125, -0.01849365234375, 0.0230865478515625, -0.0031108856201171875, 0.0281524658203125, 0.0279388427734375, -0.0120391845703125, -0.0023899078369140625, 0.0140228271484375, 0.040252685546875, 0.024169921875, -0.0396728515625, 0.0212249755859375, -0.0272216796875, -0.0053863525390625, 0.040130615234375, -0.0115203857421875, -0.0156402587890625, 0.0135955810546875, -0.0008397102355957031, -0.002227783203125, -0.0033550262451171875, -0.01216888427734375, -0.06414794921875, -0.00482940673828125, 0.045318603515625, 0.05218505859375, -0.06744384765625, 0.0008330345153808594, -0.042266845703125, 0.045623779296875, 0.01406097412109375, 0.04559326171875, 0.0426025390625, 0.0205230712890625, 0.056365966796875, 0.027679443359375, 0.04364013671875, 0.0139312744140625, -0.00592041015625, -0.0279541015625, -0.0277862548828125, -0.00443267822265625, -0.07470703125, -0.046356201171875, 0.0693359375, 0.009918212890625, 0.00785064697265625, -0.0108795166015625, -0.003940582275390625, 0.0063323974609375, 0.00677490234375, -0.031951904296875, 0.017120361328125, -0.00341033935546875, 0.010498046875, 0.011138916015625, 0.00804901123046875, 0.0130615234375, 0.00786590576171875, 0.0156402587890625, 0.04669189453125, -0.0218963623046875, 0.003070831298828125, -0.05401611328125, -0.0187530517578125, 0.0024890899658203125, 0.036376953125, 0.0516357421875, 0.013397216796875, 0.04962158203125, -0.0261688232421875, -0.0310516357421875, 0.060028076171875, 0.00601959228515625, 0.015289306640625, 0.0204925537109375, 0.0215301513671875, -0.007480621337890625, -0.017822265625, 0.0264434814453125, -0.00667572021484375, 0.043670654296875, 0.01495361328125, -0.039093017578125, -0.0129241943359375, 0.0197296142578125, -0.0201568603515625, 0.01100921630859375, -0.003452301025390625, -0.0078277587890625, 0.0216827392578125, -0.0205841064453125, -0.002239227294921875, 0.00730133056640625, 0.04754638671875, 0.01401519775390625, 0.019500732421875, 0.00989532470703125, -0.018707275390625, 0.007061004638671875, -0.00592803955078125, 0.02532958984375, 0.036163330078125, -0.0272979736328125, -0.00995635986328125, 0.0003495216369628906, -0.021148681640625, 0.022491455078125, 0.03192138671875, -0.0177764892578125, 0.0228729248046875, 0.06591796875, -0.06719970703125, 0.046112060546875, 0.04547119140625, -0.0038299560546875, -0.01366424560546875, 0.01131439208984375, -0.0192108154296875, -0.035003662109375, -0.00684356689453125, 0.0164337158203125, 0.0264892578125, -0.0211029052734375, 0.0277557373046875, -0.006103515625, 0.01444244384765625, -0.026153564453125, 0.03338623046875, -0.04376220703125, -0.01337432861328125, 0.03631591796875, 0.01216888427734375, -0.00644683837890625, -0.0162200927734375, -0.04620361328125, 0.039520263671875, 0.004459381103515625, -0.0157928466796875, 0.01248931884765625, 0.007732391357421875, -0.002124786376953125, 0.0092620849609375, 0.06121826171875, -0.00893402099609375, -0.047882080078125, -0.06939697265625, -0.013427734375, 0.043212890625, 0.05474853515625, -0.0092620849609375, 0.04547119140625, -0.01335906982421875, -0.02252197265625, 0.024658203125, -0.06292724609375, 0.0263214111328125, 0.031707763671875, -0.02276611328125, 0.005451202392578125, 0.0261383056640625, -0.0180206298828125, 0.0099334716796875, 0.013275146484375, -0.00124359130859375, 0.0092620849609375, -0.0221405029296875, -0.0235595703125, 0.025634765625, 0.05352783203125, 0.0198516845703125, 0.0284881591796875, -0.0297088623046875, -0.0055084228515625, 0.0232086181640625, -0.022308349609375, -0.02435302734375, -0.016143798828125, -0.004894256591796875, 0.019622802734375, -0.0034618377685546875, -0.03948974609375, -0.0404052734375, 0.0008087158203125, 0.022369384765625, -0.01666259765625, -0.01371002197265625, -0.020782470703125, -0.015380859375, 0.0709228515625, -0.01125335693359375, 0.005580902099609375, -0.0224151611328125, -0.01244354248046875, -0.048431396484375, -0.07147216796875, -0.055511474609375, 0.07305908203125, -0.06365966796875, 0.01515960693359375, 0.01016998291015625, 0.0012121200561523438, -0.0276947021484375, 0.0300445556640625, -0.002460479736328125, 0.07373046875, -0.0091400146484375, -0.0073394775390625, 0.009490966796875, 0.01611328125, -0.0168914794921875, -0.0999755859375, -0.0160064697265625, -0.068115234375, 0.044921875, 0.02838134765625, -0.017303466796875, -0.0036182403564453125, -0.04339599609375, -0.09051513671875, 0.038330078125, 0.00189971923828125, -0.03826904296875, 0.0290679931640625, 0.0166015625, 0.0233917236328125, -0.039398193359375, -0.00775909423828125, 0.016082763671875, -0.01247406005859375, -0.024993896484375, 0.004703521728515625, -0.004764556884765625, 0.042236328125, -0.0114898681640625, -0.027496337890625, 0.00856781005859375, 0.00101470947265625, -0.010467529296875, -0.0531005859375, 0.0192108154296875, 0.0222320556640625, 0.040740966796875, 0.0111846923828125, 0.017364501953125, 0.054351806640625, -0.01025390625, 0.0019893646240234375, 0.003631591796875, -0.054840087890625, -0.011077880859375, 0.05279541015625, 0.061676025390625, 0.0210418701171875, -0.0291900634765625, 0.00875091552734375, -0.0206298828125, 0.044830322265625, 0.004085540771484375, -0.038848876953125, 0.01084136962890625, 0.0161895751953125, -0.016357421875, 0.012664794921875, 0.0235748291015625, 0.007701873779296875, 0.024658203125, -0.022857666015625, 0.03033447265625, -0.024169921875, 0.0230712890625, -0.0291900634765625, 0.06134033203125, -0.0386962890625, -0.043304443359375, 0.033447265625, 0.01441192626953125, -0.002655029296875, 0.020294189453125, 0.032684326171875, -0.00627899169921875, -0.03411865234375, -0.01093292236328125, 0.019622802734375, 0.030181884765625, -0.0204620361328125, -0.06048583984375, -0.01393890380859375, 0.022918701171875, 0.004955291748046875, 0.047271728515625, 0.00994110107421875, 0.0105133056640625, 0.0218505859375, -0.00914764404296875, -0.045135498046875, -0.051910400390625, -0.01947021484375, 0.0010461807250976562, 0.048431396484375, -0.00934600830078125, 0.1151123046875, -0.0287628173828125, 0.0167388916015625, 0.032196044921875, 0.051239013671875, -0.0249481201171875, 0.039794921875, 0.02166748046875, 0.0386962890625, 0.00872039794921875 ]
01d4fa31ec8d0c0816e8f47ec4f355c56fd063ef
Wordpress Stackexchange Q: How can I whitelist only specific shortcodes for processing in text widgets? I know that I can use the following filters to enable processing of shortcodes in Text Widgets: add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); How can I only whitelist a few specific shortcodes for processing, but not just process every shortcode? A: add_filter( 'widget_text', 'wpse_137725_shortcode_whitelist' ); /** * Apply only whitelisted shortcode to content. * * @link http://wordpress.stackexchange.com/q/137725/1685 * * @param string $text * @return string */ function wpse_137725_shortcode_whitelist( $text ) { static $whitelist = array( 'gallery', 'form', ); global $shortcode_tags; // Store original copy of registered tags. $_shortcode_tags = $shortcode_tags; // Remove any tags not in whitelist. foreach ( $shortcode_tags as $tag => $function ) { if ( ! in_array( $tag, $whitelist ) ) unset( $shortcode_tags[ $tag ] ); } // Apply shortcode. $text = shortcode_unautop( $text ); $text = do_shortcode( $text ); // Restore tags. $shortcode_tags = $_shortcode_tags; return $text; }
Q: How can I whitelist only specific shortcodes for processing in text widgets? I know that I can use the following filters to enable processing of shortcodes in Text Widgets: add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); How can I only whitelist a few specific shortcodes for processing, but not just process every shortcode? A: add_filter( 'widget_text', 'wpse_137725_shortcode_whitelist' ); /** * Apply only whitelisted shortcode to content. * * @link http://wordpress.stackexchange.com/q/137725/1685 * * @param string $text * @return string */ function wpse_137725_shortcode_whitelist( $text ) { static $whitelist = array( 'gallery', 'form', ); global $shortcode_tags; // Store original copy of registered tags. $_shortcode_tags = $shortcode_tags; // Remove any tags not in whitelist. foreach ( $shortcode_tags as $tag => $function ) { if ( ! in_array( $tag, $whitelist ) ) unset( $shortcode_tags[ $tag ] ); } // Apply shortcode. $text = shortcode_unautop( $text ); $text = do_shortcode( $text ); // Restore tags. $shortcode_tags = $_shortcode_tags; return $text; } A: Or little bit simplier. function do_shortcode_only_for($content, $tagnames) { $pattern = get_shortcode_regex($tagnames); $content = preg_replace_callback("/$pattern/", 'do_shortcode_tag', $content); return $content; } Taken from original do_shortcode function.
wordpress
{ "language": "en", "length": 180, "provenance": "stackexchange_00019.jsonl.gz:443201", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137725" }
[ 0.04888916015625, 0.01493072509765625, 0.0182037353515625, -0.0024127960205078125, 0.0225372314453125, -0.028533935546875, 0.0697021484375, -0.0325927734375, 0.01541900634765625, 0.02960205078125, -0.0225982666015625, -0.0013904571533203125, -0.0044708251953125, -0.00550079345703125, -0.035247802734375, -0.0311279296875, -0.0037250518798828125, 0.022857666015625, 0.01641845703125, -0.015167236328125, -0.004489898681640625, -0.0191650390625, -0.0251617431640625, -0.002685546875, -0.0026073455810546875, -0.06036376953125, 0.06365966796875, -0.0037689208984375, -0.01385498046875, -0.033935546875, -0.0014743804931640625, 0.034637451171875, 0.055572509765625, 0.00457763671875, -0.06512451171875, 0.043212890625, -0.045501708984375, 0.00901031494140625, -0.0233306884765625, 0.02197265625, 0.03326416015625, -0.0263671875, 0.0248870849609375, 0.0033054351806640625, 0.004322052001953125, -0.0242462158203125, 0.036773681640625, -0.046844482421875, -0.0116119384765625, -0.004428863525390625, 0.04302978515625, -0.00765228271484375, 0.060943603515625, -0.0679931640625, -0.0252685546875, 0.0163726806640625, -0.0213165283203125, -0.048675537109375, 0.0264434814453125, 0.0277862548828125, -0.0240631103515625, -0.0262908935546875, 0.0142669677734375, -0.030517578125, 0.004444122314453125, -0.015472412109375, 0.022430419921875, 0.0102386474609375, -0.0116729736328125, 0.0275726318359375, 0.061767578125, -0.0135345458984375, -0.0016946792602539062, -0.01971435546875, -0.011260986328125, 0.036285400390625, -0.007518768310546875, 0.01232147216796875, 0.021087646484375, -0.0021457672119140625, 0.044097900390625, -0.0287322998046875, -0.031097412109375, 0.034881591796875, -0.00356292724609375, 0.039031982421875, 0.005390167236328125, -0.014862060546875, -0.0233612060546875, -0.004085540771484375, -0.0178680419921875, 0.0029010772705078125, -0.0115966796875, -0.0112762451171875, -0.009552001953125, -0.024749755859375, 0.01213836669921875, 0.033233642578125, -0.00243377685546875, 0.028961181640625, 0.0157623291015625, -0.042816162109375, 0.052337646484375, -0.054962158203125, 0.03533935546875, 0.037322998046875, -0.018798828125, 0.0110015869140625, 0.064453125, 0.0160369873046875, 0.00913238525390625, 0.0296630859375, -0.0267181396484375, 0.02099609375, -0.055816650390625, -0.01317596435546875, -0.06658935546875, -0.0294036865234375, -0.034149169921875, -0.03289794921875, 0.00516510009765625, 0.00463104248046875, 0.043487548828125, -0.01456451416015625, -0.0283660888671875, -0.025421142578125, -0.0169677734375, -0.043060302734375, 0.03656005859375, -0.02349853515625, -0.005886077880859375, 0.0175018310546875, -0.01264190673828125, 0.00295257568359375, 0.0009737014770507812, 0.01324462890625, 0.033111572265625, -0.017608642578125, -0.00753021240234375, 0.03717041015625, 0.018157958984375, -0.027923583984375, -0.0239715576171875, 0.0157318115234375, 0.040374755859375, 0.0264434814453125, 0.027801513671875, -0.01025390625, -0.0052032470703125, -0.028717041015625, 0.00209808349609375, 0.01537322998046875, 0.048736572265625, 0.0114898681640625, -0.0172882080078125, -0.019989013671875, 0.079345703125, -0.050994873046875, -0.044219970703125, -0.09161376953125, 0.0207977294921875, -0.02777099609375, -0.0216827392578125, -0.036163330078125, -0.035858154296875, 0.004741668701171875, -0.032440185546875, 0.005279541015625, 0.00769805908203125, 0.0199737548828125, -0.031097412109375, 0.023681640625, -0.003021240234375, 0.01129913330078125, 0.005374908447265625, 0.01216888427734375, -0.0260467529296875, 0.03997802734375, 0.028289794921875, -0.022186279296875, -0.0190277099609375, -0.043243408203125, 0.05303955078125, 0.006000518798828125, -0.08294677734375, 0.0188140869140625, 0.030670166015625, 0.12249755859375, 0.0182037353515625, 0.03167724609375, 0.05450439453125, -0.026947021484375, 0.024169921875, -0.0260009765625, -0.0035228729248046875, -0.0290069580078125, -0.06219482421875, -0.0211029052734375, -0.0263519287109375, 0.0321044921875, 0.0472412109375, -0.023406982421875, 0.0496826171875, -0.038848876953125, -0.0186004638671875, 0.001140594482421875, -0.025970458984375, 0.02484130859375, -0.0220489501953125, -0.038543701171875, 0.028106689453125, -0.032928466796875, -0.0340576171875, 0.06329345703125, -0.00934600830078125, 0.01354217529296875, 0.003612518310546875, 0.056304931640625, 0.0164337158203125, 0.00739288330078125, 0.045196533203125, -0.045501708984375, 0.0458984375, 0.0533447265625, 0.0272979736328125, 0.00560760498046875, -0.01474761962890625, -0.00754547119140625, 0.0149078369140625, 0.009490966796875, -0.037139892578125, 0.021087646484375, 0.0024738311767578125, 0.00916290283203125, -0.041473388671875, -0.00385284423828125, -0.01227569580078125, -0.006801605224609375, -0.00426483154296875, 0.0438232421875, 0.06658935546875, 0.02691650390625, -0.0037975311279296875, -0.03265380859375, 0.1014404296875, -0.033905029296875, 0.0106201171875, -0.031341552734375, 0.0220794677734375, 0.038330078125, -0.0283966064453125, -0.01812744140625, 0.028045654296875, -0.060302734375, 0.00319671630859375, 0.037567138671875, -0.028656005859375, 0.0227813720703125, -0.016387939453125, -0.0224151611328125, 0.003612518310546875, -0.018402099609375, 0.003932952880859375, -0.0188751220703125, 0.06671142578125, 0.0250396728515625, 0.057281494140625, 0.040435791015625, -0.039093017578125, 0.023223876953125, 0.0012454986572265625, -0.0271759033203125, -0.01079559326171875, 0.01424407958984375, 0.0233917236328125, -0.01113128662109375, -0.0421142578125, 0.0201416015625, -0.0009279251098632812, -0.0036830902099609375, -0.00455474853515625, 0.04327392578125, -0.020843505859375, -0.01537322998046875, -0.0382080078125, -0.029937744140625, 0.0037250518798828125, 0.023193359375, -0.01483917236328125, -0.044647216796875, -0.0361328125, 0.06494140625, -0.012451171875, 0.03253173828125, 0.06976318359375, -0.01253509521484375, 0.0281524658203125, 0.01271820068359375, 0.00634765625, -0.015533447265625, 0.0178985595703125, 0.05560302734375, -0.00998687744140625, 0.00730133056640625, 0.004253387451171875, -0.004261016845703125, -0.01934814453125, 0.00801849365234375, -0.0064544677734375, -0.004352569580078125, -0.057647705078125, 0.0127716064453125, 0.0117034912109375, 0.08026123046875, -0.0293121337890625, -0.060516357421875, -0.00244140625, 0.03448486328125, -0.03216552734375, -0.0220794677734375, 0.049346923828125, -0.035614013671875, -0.01396942138671875, -0.018707275390625, -0.02752685546875, -0.01519012451171875, 0.004486083984375, -0.0149383544921875, -0.040740966796875, 0.02764892578125, -0.0193634033203125, -0.004192352294921875, -0.02484130859375, 0.037872314453125, -0.01409912109375, 0.018798828125, 0.0036449432373046875, 0.0521240234375, 0.0242462158203125, -0.0203704833984375, 0.027252197265625, 0.035614013671875, -0.0148162841796875, 0.0005283355712890625, 0.0079345703125, -0.04693603515625, -0.0136566162109375, 0.00447845458984375, -0.0300750732421875, 0.00725555419921875, 0.0028705596923828125, -0.00917816162109375, 0.03253173828125, 0.037139892578125, 0.056396484375, 0.0299530029296875, -0.045745849609375, 0.00042819976806640625, 0.036407470703125, -0.03302001953125, 0.004825592041015625, -0.00659942626953125, -0.030517578125, -0.0204620361328125, 0.0006237030029296875, -0.002887725830078125, -0.004329681396484375, -0.0019311904907226562, 0.034942626953125, 0.048828125, 0.017333984375, 0.0162811279296875, -0.0006422996520996094, 0.0039825439453125, 0.003856658935546875, -0.0294342041015625, 0.0201416015625, -0.050018310546875, 0.024139404296875, 0.01033782958984375, -0.02032470703125, -0.0099639892578125, 0.0027637481689453125, 0.006591796875, -0.02691650390625, 0.0287933349609375, -0.035858154296875, 0.033233642578125, -0.04638671875, -0.0157470703125, -0.0233917236328125, 0.0736083984375, -0.051483154296875, -0.0133056640625, -0.007720947265625, 0.017242431640625, 0.0185699462890625, -0.04083251953125, -0.004970550537109375, -0.0560302734375, -0.12139892578125, 0.0193328857421875, -0.0164337158203125, -0.01242828369140625, 0.0005049705505371094, -0.0482177734375, -0.0428466796875, -0.06304931640625, 0.03948974609375, -0.0199737548828125, 0.0511474609375, -0.02020263671875, 0.04779052734375, -0.043243408203125, -0.018218994140625, -0.0204315185546875, -0.032989501953125, -0.00232696533203125, -0.0051727294921875, 0.0286407470703125, 0.03466796875, -0.052093505859375, -0.003597259521484375, 0.022979736328125, -0.01221466064453125, 0.0011425018310546875, -0.0224151611328125, 0.0142669677734375, -0.01739501953125, 0.0367431640625, -0.005779266357421875, 0.003154754638671875, -0.0180816650390625, 0.0280914306640625, 0.0034942626953125, 0.06402587890625, -0.01483917236328125, -0.0243072509765625, 0.027252197265625, -0.0389404296875, -0.03607177734375, -0.01526641845703125, -0.0310211181640625, -0.00139617919921875, -0.043609619140625, 0.0019245147705078125, -0.0169830322265625, -0.0428466796875, 0.03350830078125, 0.0164337158203125, -0.025543212890625, 0.0112152099609375, 0.03240966796875, 0.0201263427734375, -0.034454345703125, -0.048858642578125, -0.007747650146484375, 0.055633544921875, -0.014007568359375, 0.01145172119140625, 0.04022216796875, -0.050079345703125, 0.045867919921875, 0.02777099609375, -0.0330810546875, -0.0023136138916015625, 0.0821533203125, 0.0010328292846679688, 0.0006136894226074219, -0.01512908935546875, -0.0203094482421875, -0.003948211669921875, 0.04803466796875, -0.00006854534149169922, -0.0198974609375, 0.01264190673828125, 0.034881591796875, -0.0001480579376220703, -0.0236968994140625, -0.03143310546875, -0.027923583984375, 0.0026035308837890625, 0.0540771484375, 0.00334930419921875, 0.005641937255859375, 0.01007843017578125, -0.04132080078125, 0.004535675048828125, 0.001125335693359375, -0.0009026527404785156, 0.009857177734375, -0.01094818115234375, 0.025909423828125, 0.006290435791015625, -0.0209503173828125, -0.003238677978515625, 0.0030879974365234375, 0.02593994140625, 0.000438690185546875, -0.01258087158203125, -0.02764892578125, -0.0139007568359375, -0.03857421875, 0.0017242431640625, -0.0173187255859375, 0.03863525390625, 0.01419830322265625, -0.03955078125, 0.0113677978515625, -0.01898193359375, -0.0244903564453125, -0.05584716796875, -0.0548095703125, -0.03717041015625, -0.0292205810546875, -0.01444244384765625, -0.0255279541015625, -0.086669921875, 0.002780914306640625, 0.0264434814453125, 0.030364990234375, 0.0467529296875, -0.0189208984375, 0.0027065277099609375, 0.034576416015625, 0.006320953369140625, -0.02490234375, 0.033050537109375, -0.0187225341796875, -0.01517486572265625, 0.03594970703125, 0.0207672119140625, -0.02294921875, -0.003170013427734375, 0.00807952880859375, -0.00669097900390625, -0.01561737060546875, 0.0221405029296875, 0.031494140625, 0.015045166015625, -0.038482666015625, -0.0215301513671875, 0.044036865234375, 0.029571533203125, -0.006206512451171875, 0.0139923095703125, -0.0343017578125, -0.00934600830078125, 0.051666259765625, -0.029571533203125, -0.0257415771484375, -0.0163726806640625, 0.03326416015625, -0.005313873291015625, -0.0309295654296875, -0.041839599609375, -0.0280914306640625, -0.01313018798828125, 0.0082550048828125, 0.048553466796875, -0.028656005859375, 0.051483154296875, -0.005008697509765625, -0.042877197265625, -0.005237579345703125, 0.01104736328125, 0.03857421875, 0.027099609375, -0.0345458984375, 0.00879669189453125, -0.04949951171875, 0.0033435821533203125, -0.020599365234375, -0.052093505859375, -0.0248565673828125, -0.0203857421875, -0.0003287792205810547, 0.034210205078125, -0.00679779052734375, -0.0184783935546875, 0.018890380859375, -0.0234222412109375, -0.0244293212890625, 0.03497314453125, -0.0374755859375, 0.0399169921875, -0.0134429931640625, 0.0396728515625, -0.0279998779296875, -0.01039886474609375, 0.0218658447265625, -0.012176513671875, -0.00012743473052978516, -0.03759765625, -0.039886474609375, 0.00467681884765625, -0.01551055908203125, 0.04046630859375, 0.04058837890625, -0.0004019737243652344, 0.057525634765625, -0.02252197265625, -0.00222015380859375, -0.00833892822265625, 0.02197265625, -0.05078125, 0.040618896484375, 0.02008056640625, -0.01459503173828125, -0.0125885009765625, -0.0531005859375, -0.0211944580078125, 0.03466796875, -0.0137786865234375, 0.011016845703125, 0.0188140869140625, 0.01294708251953125, 0.046875, 0.0430908203125, -0.033233642578125, 0.01678466796875, 0.039764404296875, 0.003307342529296875, 0.01105499267578125, 0.0174407958984375, 0.01082611083984375, -0.007686614990234375, 0.05303955078125, 0.002719879150390625, -0.0124969482421875, 0.036865234375, -0.01508331298828125, 0.0014524459838867188, 0.0626220703125, 0.06317138671875, -0.05792236328125, -0.005825042724609375, 0.05462646484375, -0.0187530517578125, -0.06719970703125, -0.00829315185546875, -0.005222320556640625, -0.0279541015625, 0.048828125, 0.0304412841796875, -0.004314422607421875, 0.02508544921875, 0.0271759033203125, -0.0203094482421875, -0.0004930496215820312, 0.03887939453125, 0.0162200927734375, 0.0071258544921875, -0.030242919921875, -0.000888824462890625, -0.016510009765625, -0.007442474365234375, 0.0139007568359375, -0.0167236328125, -0.0369873046875, -0.0753173828125, -0.033935546875, 0.01061248779296875, -0.03179931640625, -0.01393890380859375, -0.043121337890625, 0.016632080078125, 0.033599853515625, -0.051971435546875, 0.032196044921875, 0.00411224365234375, -0.00597381591796875, -0.022552490234375, -0.033447265625, -0.0167999267578125, 0.045135498046875, -0.027008056640625, 0.021484375, -0.0070953369140625, 0.006481170654296875, -0.01369476318359375, -0.042938232421875, 0.0455322265625, -0.042449951171875, 0.0044403076171875, -0.005039215087890625, 0.0232696533203125, 0.0191192626953125, -0.0147247314453125, -0.0065460205078125, -0.048553466796875, -0.0372314453125, -0.02532958984375, -0.07489013671875, -0.016815185546875, -0.052490234375, -0.08154296875, 0.0799560546875, 0.0197296142578125, 0.04437255859375, 0.0167694091796875, 0.0161285400390625, -0.0279693603515625, -0.003444671630859375, -0.044036865234375, 0.05743408203125, 0.005645751953125, 0.051910400390625, -0.028778076171875, 0.005649566650390625, 0.04327392578125, 0.00147247314453125, 0.01280975341796875, 0.01342010498046875, 0.0011081695556640625, -0.00901031494140625, -0.0173187255859375, 0.0167694091796875, -0.032806396484375, 0.0190277099609375, -0.032562255859375, -0.012298583984375, -0.00440216064453125, -0.01424407958984375, 0.039215087890625, -0.0665283203125, -0.047027587890625, -0.0118560791015625, 0.0065460205078125, -0.00266265869140625, -0.01320648193359375, 0.014892578125, 0.0254974365234375, -0.030059814453125, -0.01235198974609375, -0.032196044921875, -0.031951904296875, 0.032379150390625, -0.00954437255859375, -0.059539794921875, -0.0198516845703125, -0.0269927978515625, 0.0215606689453125, -0.01398468017578125, 0.06671142578125, 0.053436279296875, 0.03045654296875, 0.096435546875, -0.0008401870727539062, 0.03155517578125, 0.0154571533203125, -0.0221710205078125, 0.0091705322265625, -0.00775146484375, 0.00958251953125, -0.0220947265625, 0.070068359375, 0.00174713134765625, 0.00489044189453125, -0.045501708984375, -0.02337646484375, 0.020050048828125, 0.01139068603515625, -0.01763916015625, 0.017913818359375, 0.040435791015625, -0.0423583984375, -0.0106353759765625, -0.049285888671875, 0.00424957275390625, 0.029266357421875, 0.05908203125, -0.007122039794921875, 0.0123291015625, -0.062042236328125, -0.0513916015625, -0.037200927734375, 0.01181793212890625, 0.022613525390625, 0.039703369140625, -0.0019025802612304688, 0.023651123046875, -0.00460052490234375, -0.0219879150390625, -0.0074310302734375, 0.019866943359375, -0.0017442703247070312, 0.01953125, -0.054229736328125, -0.049407958984375, 0.0216064453125, 0.057525634765625, 0.01294708251953125, 0.00847625732421875, 0.051971435546875, 0.037933349609375, -0.038177490234375, -0.0071868896484375, 0.05535888671875, -0.02069091796875, -0.0433349609375, -0.0146331787109375, -0.0244598388671875, 0.0167388916015625, 0.00566864013671875, 0.018280029296875, 0.042083740234375, -0.0014476776123046875, -0.024169921875, 0.0287017822265625, -0.010772705078125, -0.0184783935546875, 0.0208587646484375, 0.0080413818359375, 0.0322265625, -0.00740814208984375, -0.0521240234375, -0.003383636474609375, -0.0219573974609375, -0.0258331298828125, 0.0198211669921875, 0.036376953125, -0.04583740234375, 0.0538330078125, 0.0264892578125, -0.04461669921875, 0.0077056884765625, 0.045562744140625, 0.00785064697265625, 0.01959228515625, 0.007259368896484375, -0.007808685302734375, -0.03302001953125, -0.01262664794921875, -0.0023784637451171875, 0.04278564453125, 0.0264434814453125, 0.0065765380859375, 0.0009870529174804688, 0.04486083984375, 0.015228271484375, 0.0028839111328125, 0.0161590576171875, -0.01541900634765625, 0.058837890625, 0.00881195068359375, -0.00015854835510253906, -0.0259552001953125, -0.0040435791015625, 0.0205230712890625, 0.0401611328125, -0.0194854736328125, 0.018218994140625, -0.009185791015625, 0.00472259521484375, -0.0219879150390625, 0.04150390625, -0.025177001953125, -0.051177978515625, -0.064697265625, -0.009490966796875, 0.0226287841796875, 0.03277587890625, 0.004268646240234375, 0.0242767333984375, 0.01904296875, -0.00251007080078125, 0.01513671875, 0.0012569427490234375, -0.0129241943359375, 0.020721435546875, 0.003170013427734375, 0.01387786865234375, 0.017852783203125, -0.0171051025390625, -0.0054779052734375, 0.0179901123046875, -0.014862060546875, 0.00722503662109375, -0.038482666015625, -0.0010280609130859375, 0.041595458984375, 0.04193115234375, 0.0030651092529296875, 0.03076171875, 0.01319122314453125, -0.0182037353515625, -0.01282501220703125, 0.00003504753112792969, -0.0040283203125, -0.0180816650390625, -0.0210418701171875, 0.00904083251953125, -0.0031185150146484375, -0.0321044921875, -0.018310546875, -0.004848480224609375, 0.0231170654296875, 0.0208740234375, -0.0418701171875, 0.0443115234375, -0.0242919921875, -0.01432037353515625, 0.00838470458984375, 0.0755615234375, -0.0287933349609375, -0.05328369140625, -0.085205078125, -0.05645751953125, -0.058074951171875, 0.0733642578125, -0.04254150390625, 0.00676727294921875, 0.0251922607421875, -0.023101806640625, -0.033233642578125, 0.031402587890625, 0.01141357421875, 0.06170654296875, 0.007617950439453125, 0.0029277801513671875, 0.057037353515625, -0.01021575927734375, -0.030609130859375, -0.0885009765625, -0.01251983642578125, -0.0560302734375, 0.049285888671875, 0.01116943359375, -0.030029296875, -0.0188446044921875, -0.051727294921875, -0.1002197265625, 0.03155517578125, -0.00449371337890625, -0.04296875, -0.047271728515625, 0.0116119384765625, 0.0128631591796875, -0.039215087890625, -0.01340484619140625, -0.0299835205078125, -0.0260772705078125, 0.0138397216796875, 0.005123138427734375, 0.0826416015625, -0.01580810546875, 0.01995849609375, 0.002834320068359375, 0.01739501953125, -0.0172271728515625, 0.00890350341796875, 0.03271484375, -0.02685546875, 0.047393798828125, 0.028411865234375, -0.038299560546875, -0.00727081298828125, -0.0177459716796875, -0.0374755859375, 0.034759521484375, -0.0241851806640625, -0.07000732421875, -0.037567138671875, 0.045562744140625, 0.038055419921875, 0.026885986328125, -0.002307891845703125, -0.029510498046875, 0.026702880859375, -0.0021190643310546875, 0.004161834716796875, 0.0115203857421875, -0.0367431640625, -0.01849365234375, -0.03106689453125, 0.00452423095703125, 0.040802001953125, -0.0243377685546875, -0.018951416015625, 0.007251739501953125, 0.0020694732666015625, 0.00878143310546875, -0.06622314453125, -0.0289154052734375, 0.0164794921875, -0.00861358642578125, 0.007381439208984375, -0.00823211669921875, 0.0294952392578125, 0.01230621337890625, 0.01309967041015625, -0.01387786865234375, -0.0028591156005859375, 0.017120361328125, 0.0181732177734375, 0.025177001953125, 0.006191253662109375, 0.003292083740234375, 0.0093841552734375, -0.025360107421875, -0.0017976760864257812, 0.034576416015625, -0.0202789306640625, -0.032958984375, -0.01364898681640625, -0.0015687942504882812, 0.0030536651611328125, -0.0386962890625, 0.049163818359375, -0.018951416015625, 0.0262451171875, 0.01739501953125, 0.0119781494140625, 0.04656982421875, -0.0034046173095703125, 0.0208587646484375, 0.01314544677734375, 0.028167724609375, -0.02557373046875, 0.02813720703125, -0.038421630859375, 0.037689208984375, 0.0036258697509765625 ]
9c230eead4f0ce627ca1c946c7da8727eb2c3096
Wordpress Stackexchange Q: Wordpress removing tags? I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes <p> tags. <p>[anyshortcode]Hello World[/anyshortcode]</p> Becomes: Hello World Adding dir="ltr" to <p> tags seems to fix the issue, maybe there is a way to add it programatically to all <p> tags? Any ideas on how to fix this? A: This is pretty much what Foxsk8 mentioned in a comment, so credit should go to him, but these additional instructions will be useful. The WordPress plugin called TinyMCE Advanced will solve your problem. This plugin comes with an option inside Settings > TinyMCE Advanced that will fix your disappearing <p> tags. Mark the checkbox labeled Stop removing the <p> and <br /> tags when saving and show them in the Text editor and your <p> tags will be preserved.
Q: Wordpress removing tags? I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes <p> tags. <p>[anyshortcode]Hello World[/anyshortcode]</p> Becomes: Hello World Adding dir="ltr" to <p> tags seems to fix the issue, maybe there is a way to add it programatically to all <p> tags? Any ideas on how to fix this? A: This is pretty much what Foxsk8 mentioned in a comment, so credit should go to him, but these additional instructions will be useful. The WordPress plugin called TinyMCE Advanced will solve your problem. This plugin comes with an option inside Settings > TinyMCE Advanced that will fix your disappearing <p> tags. Mark the checkbox labeled Stop removing the <p> and <br /> tags when saving and show them in the Text editor and your <p> tags will be preserved. A: TinyMCE is programmed to make editing easy (which for us HTML savvy is often not the case). By default is should not accept <p> tagging around [BLOCKS]. That is because "[]" are used for shortcode not only in WP but a ton of PHP based CMSs. The shortcodes should have the appropriate content wrapper. Meaning the solution is to add the <p> tags in your shortcode code so that your content is wrapped the way you want. A: As an additional to Foxsk8 and E. Serrano. If post contains <p> around shortcodes, WP will still remove it. It does it in shortcode_unautop filter that is added in '\wp-includes\default-filters.php'. It ensures that shortcodes are not wrapped in <p>...</p>. So, we need to remove them: remove_filter( 'the_content', 'shortcode_unautop' ); A: You can add this below code in your function.php file function content_formatter($content){ $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } $array = array( '<p>[' => '[', ']</p>' => ']', ']<br />' => ']' ); $new_content = strtr($new_content, $array); return $new_content; } Now call this function whereever required like; <?php echo content_formatter( get_field('field_name') ); ?> A: Append this to your functions.php file within your theme's folder. remove_filter( 'the_content', 'wpautop' );
wordpress
{ "language": "en", "length": 377, "provenance": "stackexchange_00019.jsonl.gz:443262", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/137968" }
[ 0.04241943359375, 0.02252197265625, 0.0035686492919921875, 0.04254150390625, 0.0062103271484375, -0.051116943359375, 0.0751953125, -0.07220458984375, -0.0229644775390625, 0.036529541015625, -0.032745361328125, 0.0101165771484375, -0.004970550537109375, -0.014190673828125, 0.0027484893798828125, -0.027496337890625, 0.00469970703125, 0.0165863037109375, 0.0188446044921875, -0.005756378173828125, -0.019287109375, 0.004314422607421875, 0.0141754150390625, -0.005786895751953125, 0.0155792236328125, -0.004703521728515625, 0.0872802734375, -0.041473388671875, -0.0024089813232421875, -0.041748046875, 0.01092529296875, 0.0188140869140625, 0.0246124267578125, 0.06646728515625, -0.07843017578125, 0.0137786865234375, -0.059814453125, 0.041656494140625, -0.00853729248046875, 0.01166534423828125, 0.0081329345703125, -0.001857757568359375, 0.042633056640625, -0.00991058349609375, 0.00313568115234375, -0.005401611328125, -0.0021839141845703125, -0.05975341796875, -0.007694244384765625, -0.0740966796875, 0.043212890625, 0.0201416015625, 0.07794189453125, -0.07855224609375, -0.03070068359375, -0.00441741943359375, -0.014739990234375, -0.01526641845703125, 0.0281219482421875, 0.0213165283203125, -0.0015554428100585938, -0.0132293701171875, 0.007568359375, -0.017578125, 0.006168365478515625, -0.004329681396484375, 0.0087432861328125, 0.00014460086822509766, -0.03167724609375, 0.0264129638671875, 0.048431396484375, -0.03570556640625, -0.0014142990112304688, -0.01922607421875, 0.004520416259765625, 0.029022216796875, 0.01068878173828125, 0.01324462890625, -0.00554656982421875, 0.01175689697265625, 0.0419921875, 0.0184173583984375, 0.01202392578125, -0.0169677734375, 0.01158905029296875, 0.0104217529296875, 0.0056304931640625, -0.0244903564453125, -0.044158935546875, -0.0227813720703125, -0.0323486328125, -0.0222930908203125, -0.033355712890625, -0.010009765625, -0.0177154541015625, -0.0003788471221923828, 0.0103302001953125, 0.0089874267578125, 0.0121612548828125, 0.0269622802734375, -0.01453399658203125, -0.035430908203125, 0.032989501953125, -0.03424072265625, 0.0087127685546875, 0.0013637542724609375, -0.02764892578125, 0.0269775390625, 0.06695556640625, 0.049713134765625, 0.000030875205993652344, 0.017578125, -0.03118896484375, -0.005718231201171875, -0.0178680419921875, 0.0246124267578125, -0.0467529296875, 0.0153656005859375, -0.0273895263671875, 0.01502227783203125, -0.0035800933837890625, 0.011810302734375, -0.03204345703125, -0.0167388916015625, 0.01415252685546875, -0.0116424560546875, -0.017242431640625, 0.0227203369140625, -0.0284423828125, 0.029937744140625, -0.02001953125, 0.01873779296875, 0.0212249755859375, 0.0367431640625, -0.00572967529296875, -0.01158905029296875, 0.0186309814453125, -0.0406494140625, -0.01708984375, 0.0278167724609375, 0.00405120849609375, -0.043853759765625, -0.0340576171875, -0.01824951171875, 0.0294189453125, 0.025726318359375, 0.0200347900390625, 0.01241302490234375, 0.00933074951171875, -0.0180511474609375, 0.0300750732421875, -0.035064697265625, 0.0665283203125, -0.005970001220703125, -0.0230712890625, -0.06451416015625, 0.054290771484375, -0.061767578125, -0.005596160888671875, -0.0826416015625, 0.03424072265625, -0.0214996337890625, -0.005279541015625, -0.00844573974609375, -0.03863525390625, 0.006160736083984375, -0.04248046875, -0.001277923583984375, 0.03662109375, 0.034942626953125, 0.01410675048828125, -0.0447998046875, -0.00307464599609375, 0.01395416259765625, -0.00750732421875, 0.0220794677734375, 0.00556182861328125, 0.0211944580078125, 0.038299560546875, 0.0219879150390625, 0.0010118484497070312, -0.02587890625, 0.0931396484375, -0.0272216796875, -0.093505859375, 0.03314208984375, 0.0282745361328125, 0.1015625, 0.008392333984375, 0.026702880859375, 0.05816650390625, 0.00019752979278564453, -0.0167999267578125, 0.003971099853515625, 0.039703369140625, -0.01153564453125, -0.03375244140625, -0.009979248046875, 0.0156707763671875, -0.047607421875, -0.008636474609375, -0.00026726722717285156, 0.00960540771484375, 0.0199127197265625, -0.032012939453125, 0.01788330078125, -0.0225677490234375, 0.03668212890625, -0.006992340087890625, -0.00982666015625, 0.00901031494140625, -0.03839111328125, -0.01239776611328125, -0.00678253173828125, -0.0188140869140625, 0.0185546875, 0.0082855224609375, 0.0487060546875, 0.0252685546875, -0.0012636184692382812, 0.044525146484375, -0.0160675048828125, 0.0400390625, 0.004932403564453125, 0.034576416015625, -0.027496337890625, -0.0213775634765625, -0.04132080078125, -0.0282135009765625, -0.010650634765625, -0.044342041015625, 0.059326171875, -0.02813720703125, 0.03631591796875, -0.032745361328125, -0.046844482421875, -0.049774169921875, -0.0367431640625, 0.0307769775390625, 0.040557861328125, 0.0408935546875, 0.03094482421875, -0.00849151611328125, -0.0220184326171875, 0.07611083984375, -0.0163726806640625, 0.0097198486328125, -0.0235595703125, 0.006099700927734375, 0.025177001953125, 0.042755126953125, -0.0015439987182617188, 0.00044536590576171875, -0.039337158203125, 0.012237548828125, 0.0224456787109375, -0.0161285400390625, 0.00945281982421875, -0.0078582763671875, -0.0152130126953125, 0.00543212890625, -0.0208587646484375, -0.00820159912109375, -0.0169677734375, 0.040679931640625, 0.0170440673828125, 0.049560546875, 0.042083740234375, -0.0279693603515625, 0.004207611083984375, 0.0012969970703125, 0.0174713134765625, -0.01462554931640625, 0.04638671875, 0.0128631591796875, 0.00826263427734375, -0.035400390625, -0.0004851818084716797, -0.0137481689453125, 0.0294342041015625, 0.0042724609375, 0.0287322998046875, 0.00751495361328125, -0.004001617431640625, -0.0006237030029296875, -0.03369140625, 0.006320953369140625, 0.033660888671875, -0.012237548828125, -0.0288543701171875, -0.0095367431640625, 0.0236968994140625, -0.02703857421875, 0.040924072265625, 0.0296783447265625, -0.01198577880859375, 0.048919677734375, -0.05291748046875, 0.040130615234375, -0.0183258056640625, 0.07421875, 0.07421875, -0.00255584716796875, 0.005313873291015625, 0.0157470703125, 0.0211029052734375, 0.030487060546875, -0.0010538101196289062, 0.0018711090087890625, 0.03076171875, -0.06512451171875, -0.0034465789794921875, 0.0166778564453125, -0.017822265625, -0.00939178466796875, -0.046142578125, -0.0171356201171875, 0.01323699951171875, -0.07342529296875, 0.0022335052490234375, 0.051605224609375, -0.03326416015625, -0.024932861328125, 0.02197265625, -0.040618896484375, -0.012298583984375, 0.045379638671875, -0.01849365234375, -0.0297393798828125, -0.03582763671875, -0.053131103515625, -0.04620361328125, -0.04852294921875, 0.06646728515625, -0.01239013671875, 0.01425933837890625, 0.0164794921875, 0.06573486328125, 0.01372528076171875, -0.06829833984375, 0.0211181640625, -0.04302978515625, -0.032379150390625, 0.05218505859375, 0.006320953369140625, -0.055084228515625, -0.001377105712890625, -0.008514404296875, -0.0247344970703125, 0.0109710693359375, 0.01959228515625, 0.0080413818359375, -0.015625, -0.0160980224609375, 0.016815185546875, -0.01204681396484375, 0.000881195068359375, -0.0181427001953125, 0.02264404296875, -0.047210693359375, -0.0231781005859375, 0.0193023681640625, -0.018157958984375, -0.00005990266799926758, -0.0215606689453125, -0.02142333984375, -0.0106353759765625, 0.042877197265625, 0.01617431640625, 0.035797119140625, 0.032623291015625, 0.0125885009765625, 0.01910400390625, -0.032562255859375, -0.03466796875, -0.0648193359375, 0.0265045166015625, -0.015869140625, 0.022430419921875, -0.0002567768096923828, 0.005828857421875, -0.01324462890625, 0.0183563232421875, -0.0239105224609375, 0.01442718505859375, 0.02642822265625, -0.017242431640625, 0.045501708984375, -0.03466796875, -0.0173187255859375, -0.036865234375, 0.054962158203125, -0.04901123046875, -0.007450103759765625, 0.00664520263671875, 0.0175323486328125, 0.0017642974853515625, -0.040740966796875, -0.033538818359375, -0.0303802490234375, -0.038604736328125, 0.01049041748046875, -0.0174560546875, -0.0008115768432617188, -0.045623779296875, 0.03900146484375, -0.046356201171875, -0.017425537109375, 0.04644775390625, -0.05194091796875, 0.0250701904296875, -0.03179931640625, 0.00434112548828125, -0.0654296875, -0.0338134765625, -0.0224609375, -0.04962158203125, 0.0029125213623046875, -0.0287017822265625, 0.04327392578125, 0.001804351806640625, -0.0010051727294921875, -0.0294647216796875, 0.0273590087890625, -0.0200653076171875, 0.006847381591796875, -0.0135040283203125, 0.02978515625, -0.0284271240234375, 0.00632476806640625, -0.0150604248046875, -0.02032470703125, 0.004154205322265625, 0.00534820556640625, -0.0214996337890625, 0.018157958984375, -0.0303955078125, -0.01412200927734375, 0.02301025390625, -0.0428466796875, -0.024658203125, -0.032989501953125, -0.047271728515625, 0.012115478515625, -0.0205078125, -0.0048675537109375, -0.041351318359375, -0.0369873046875, 0.0186920166015625, -0.002590179443359375, -0.00951385498046875, 0.0025539398193359375, 0.03851318359375, 0.0290985107421875, -0.0212554931640625, -0.0166778564453125, 0.043670654296875, 0.050628662109375, 0.03656005859375, 0.0545654296875, 0.0118865966796875, -0.032440185546875, 0.048583984375, 0.0301055908203125, 0.0094451904296875, -0.07098388671875, 0.11871337890625, -0.004642486572265625, 0.01467132568359375, 0.01311492919921875, -0.010894775390625, 0.006214141845703125, 0.023101806640625, -0.0015516281127929688, -0.0099639892578125, 0.0228729248046875, 0.00970458984375, 0.0029277801513671875, -0.01885986328125, -0.0111541748046875, -0.057647705078125, 0.0205230712890625, 0.054962158203125, -0.033721923828125, -0.01142120361328125, -0.0006384849548339844, -0.0218658447265625, -0.021514892578125, 0.005279541015625, -0.0418701171875, -0.01617431640625, -0.0421142578125, 0.03558349609375, -0.05157470703125, -0.01727294921875, -0.0008521080017089844, -0.00850677490234375, 0.03497314453125, 0.016082763671875, -0.03778076171875, -0.0085296630859375, -0.0177764892578125, 0.01390838623046875, -0.0068511962890625, 0.0012407302856445312, 0.0134429931640625, -0.000032961368560791016, -0.01904296875, 0.004413604736328125, -0.0168609619140625, -0.0195465087890625, -0.042999267578125, -0.025726318359375, -0.01824951171875, -0.0163421630859375, 0.00213623046875, -0.004886627197265625, -0.0168304443359375, -0.004329681396484375, -0.0014696121215820312, -0.0126953125, -0.021484375, 0.04791259765625, 0.0236358642578125, -0.0279541015625, 0.01153564453125, 0.007511138916015625, 0.0255126953125, -0.0523681640625, -0.0246734619140625, 0.043731689453125, 0.044281005859375, 0.0108642578125, -0.022735595703125, -0.003078460693359375, 0.0035228729248046875, -0.018585205078125, 0.016448974609375, -0.01453399658203125, -0.032745361328125, -0.024871826171875, 0.0164031982421875, 0.034881591796875, 0.00962066650390625, 0.0009131431579589844, -0.022003173828125, 0.0031490325927734375, 0.0155487060546875, 0.0056304931640625, -0.0295867919921875, 0.00601959228515625, 0.0025081634521484375, 0.0296630859375, 0.0026569366455078125, -0.03619384765625, -0.059417724609375, -0.0254974365234375, -0.0156097412109375, 0.007427215576171875, 0.03271484375, -0.03765869140625, 0.01233673095703125, 0.00390625, -0.0190887451171875, 0.0010843276977539062, 0.01611328125, 0.0384521484375, 0.0245361328125, -0.041900634765625, -0.011688232421875, -0.041107177734375, -0.01611328125, -0.01849365234375, -0.0177001953125, -0.03558349609375, 0.0016727447509765625, 0.034912109375, 0.041717529296875, -0.01143646240234375, -0.021453857421875, 0.0020885467529296875, -0.0010290145874023438, 0.00445556640625, 0.06866455078125, -0.0091705322265625, 0.00843048095703125, -0.010467529296875, 0.058624267578125, -0.004688262939453125, 0.01288604736328125, 0.030120849609375, -0.0660400390625, 0.044464111328125, -0.06488037109375, -0.06805419921875, -0.0227813720703125, -0.0345458984375, 0.0206298828125, 0.0003447532653808594, -0.010284423828125, 0.01410675048828125, 0.003795623779296875, 0.018524169921875, -0.0220489501953125, 0.0192108154296875, 0.00066375732421875, 0.00121307373046875, 0.0262908935546875, -0.0202789306640625, -0.026611328125, 0.00589752197265625, 0.006885528564453125, 0.01380157470703125, 0.0004906654357910156, 0.0060577392578125, -0.00739288330078125, 0.0228729248046875, -0.005176544189453125, -0.000797271728515625, -0.024444580078125, 0.0304107666015625, 0.0127716064453125, 0.01560211181640625, 0.03155517578125, -0.0227203369140625, -0.0036468505859375, 0.038116455078125, 0.032745361328125, -0.01433563232421875, -0.004619598388671875, 0.019073486328125, -0.0186920166015625, -0.0146942138671875, 0.054779052734375, 0.0264892578125, -0.065185546875, -0.0178680419921875, -0.01065826416015625, -0.019561767578125, 0.004276275634765625, 0.00835418701171875, -0.00920867919921875, -0.0290679931640625, 0.0145416259765625, 0.0160064697265625, -0.0025501251220703125, 0.004039764404296875, 0.01259613037109375, -0.00969696044921875, -0.033905029296875, 0.0350341796875, 0.0159149169921875, -0.04156494140625, 0.0252838134765625, 0.03070068359375, -0.005863189697265625, 0.0030975341796875, 0.00678253173828125, 0.03265380859375, -0.057159423828125, -0.07684326171875, -0.01308441162109375, 0.0052490234375, -0.06072998046875, 0.0065765380859375, -0.0218505859375, 0.002391815185546875, 0.035491943359375, -0.04852294921875, 0.035125732421875, 0.008148193359375, -0.042022705078125, -0.006198883056640625, -0.0082855224609375, 0.006107330322265625, -0.0190582275390625, -0.0157623291015625, 0.0010900497436523438, -0.032012939453125, -0.015625, -0.00560760498046875, -7.748603820800781e-7, 0.044097900390625, -0.02008056640625, -0.02197265625, 0.0032939910888671875, 0.045013427734375, 0.0290374755859375, -0.04998779296875, -0.0364990234375, -0.055877685546875, -0.0149383544921875, -0.04534912109375, -0.0253448486328125, 0.038421630859375, -0.052764892578125, -0.09051513671875, 0.1356201171875, 0.050506591796875, 0.0264129638671875, -0.004974365234375, 0.058837890625, -0.06878662109375, 0.016632080078125, -0.0053863525390625, 0.0305633544921875, 0.00899505615234375, 0.0015592575073242188, -0.034515380859375, -0.007343292236328125, 0.0007758140563964844, 0.044830322265625, -0.006420135498046875, -0.01113128662109375, 0.02191162109375, 0.00934600830078125, 0.055999755859375, 0.0181427001953125, -0.0005602836608886719, -0.00656890869140625, -0.01971435546875, -0.048614501953125, -0.0112762451171875, -0.0020503997802734375, 0.034210205078125, -0.041748046875, -0.029144287109375, 0.00435638427734375, 0.01239013671875, -0.008819580078125, 0.005687713623046875, -0.0245819091796875, 0.0028743743896484375, 0.0027904510498046875, -0.016845703125, 0.006656646728515625, 0.0022296905517578125, 0.0379638671875, 0.036285400390625, -0.0496826171875, -0.11065673828125, -0.01143646240234375, 0.0238800048828125, 0.0174560546875, 0.0899658203125, 0.045806884765625, 0.0357666015625, 0.09521484375, -0.023834228515625, 0.05902099609375, 0.015350341796875, -0.04095458984375, 0.04010009765625, -0.004306793212890625, -0.00016367435455322266, -0.062042236328125, 0.0102386474609375, 0.0714111328125, 0.06414794921875, -0.04248046875, -0.024322509765625, 0.004558563232421875, -0.0218505859375, -0.01068115234375, -0.037139892578125, -0.037200927734375, -0.027191162109375, -0.0021991729736328125, 0.0060577392578125, -0.003734588623046875, -0.01540374755859375, 0.054962158203125, 0.00844573974609375, 0.029693603515625, -0.037200927734375, -0.0252532958984375, -0.0394287109375, 0.002574920654296875, -0.0021457672119140625, 0.023712158203125, 0.03704833984375, 0.0191802978515625, 0.03448486328125, -0.015838623046875, 0.01517486572265625, 0.01131439208984375, -0.0092315673828125, -0.01995849609375, -0.02374267578125, -0.045318603515625, 0.038665771484375, 0.01073455810546875, 0.0039520263671875, 0.01580810546875, 0.0298004150390625, 0.0260467529296875, -0.019866943359375, -0.014739990234375, 0.00421905517578125, -0.0214080810546875, -0.0309906005859375, -0.0224761962890625, -0.0161590576171875, 0.039093017578125, 0.0006923675537109375, 0.019805908203125, -0.00220489501953125, 0.05133056640625, -0.0251922607421875, -0.01308441162109375, 0.01169586181640625, -0.02960205078125, 0.047332763671875, 0.00093841552734375, -0.0059661865234375, -0.0015411376953125, -0.018341064453125, -0.0032806396484375, -0.0638427734375, -0.0173492431640625, 0.027313232421875, 0.034149169921875, 0.0197601318359375, 0.001911163330078125, 0.041290283203125, -0.01335906982421875, -0.004299163818359375, 0.025634765625, 0.017730712890625, -0.0008769035339355469, 0.02606201171875, 0.0094146728515625, -0.04638671875, -0.0187225341796875, -0.0187835693359375, 0.03314208984375, 0.040863037109375, 0.07464599609375, -0.0178070068359375, 0.020843505859375, -0.0150299072265625, 0.0288543701171875, -0.04595947265625, -0.0209197998046875, 0.0479736328125, 0.00994873046875, 0.01151275634765625, -0.01507568359375, -0.0261688232421875, 0.051177978515625, 0.0250701904296875, 0.004306793212890625, 0.035400390625, -0.005222320556640625, -0.00213623046875, -0.007080078125, 0.03533935546875, -0.01035308837890625, -0.02215576171875, -0.050140380859375, -0.0220489501953125, 0.0269012451171875, 0.030670166015625, 0.0050811767578125, 0.018280029296875, 0.025665283203125, -0.0127105712890625, 0.03485107421875, -0.01038360595703125, 0.0450439453125, 0.029083251953125, 0.038421630859375, -0.0277862548828125, 0.00553131103515625, -0.0237274169921875, -0.00856781005859375, 0.016693115234375, 0.00597381591796875, 0.0092010498046875, -0.0804443359375, -0.0063934326171875, 0.0280303955078125, 0.0450439453125, 0.0031890869140625, 0.0262908935546875, -0.01503753662109375, -0.005466461181640625, 0.01971435546875, 0.033050537109375, -0.035430908203125, -0.01439666748046875, -0.0187225341796875, 0.02032470703125, -0.0300445556640625, -0.04180908203125, -0.122314453125, -0.033050537109375, 0.032806396484375, 0.01470184326171875, -0.03759765625, 0.0013408660888671875, 0.00832366943359375, -0.00115966796875, 0.00699615478515625, -0.0213470458984375, -0.0272216796875, -0.010650634765625, -0.01241302490234375, -0.05548095703125, -0.08245849609375, 0.055999755859375, -0.05596923828125, 0.03704833984375, 0.03424072265625, -0.02960205078125, 0.0128936767578125, 0.00824737548828125, 0.0249481201171875, 0.062225341796875, -0.0010051727294921875, -0.00860595703125, 0.02423095703125, 0.0088043212890625, -0.0162506103515625, -0.07684326171875, -0.005489349365234375, -0.047332763671875, 0.00257110595703125, -0.01983642578125, 0.01200103759765625, 0.0108489990234375, -0.043914794921875, -0.125, 0.06439208984375, -0.042510986328125, -0.045684814453125, 0.00566864013671875, -0.01032257080078125, -0.040313720703125, 0.036102294921875, -0.00016605854034423828, 0.01323699951171875, 0.035369873046875, 0.047760009765625, 0.009979248046875, 0.07421875, -0.01126861572265625, 0.0281982421875, 0.006168365478515625, 0.0233001708984375, -0.01216888427734375, 0.0108642578125, 0.02655029296875, -0.0251007080078125, 0.041656494140625, 0.0206146240234375, -0.042510986328125, -0.00586700439453125, -0.0018205642700195312, -0.027252197265625, 0.0222320556640625, -0.055938720703125, -0.0302734375, -0.05023193359375, 0.0276641845703125, -0.005878448486328125, 0.005512237548828125, 0.0093994140625, -0.0105743408203125, 0.01132965087890625, -0.00632476806640625, -0.0193634033203125, -0.005542755126953125, -0.0201263427734375, -0.008941650390625, -0.0411376953125, -0.01140594482421875, -0.01264190673828125, -0.039520263671875, -0.04681396484375, 0.003543853759765625, -0.02734375, 0.0166473388671875, -0.01102447509765625, 0.0104827880859375, 0.03631591796875, -0.0325927734375, -0.0239105224609375, -0.0015583038330078125, 0.00007152557373046875, 0.006622314453125, -0.005023956298828125, 0.0188446044921875, 0.054107666015625, -0.019805908203125, 0.00768280029296875, 0.0286102294921875, -0.0297088623046875, -0.00959014892578125, 0.0175628662109375, -0.010162353515625, -0.00846099853515625, 0.007541656494140625, -0.011505126953125, 0.00510406494140625, 0.003620147705078125, -0.006023406982421875, 0.0189666748046875, -0.0192718505859375, -0.0024662017822265625, -0.040313720703125, 0.046905517578125, -0.0034809112548828125, -0.01534271240234375, 0.0203704833984375, -0.00624847412109375, -0.00296783447265625, 0.03045654296875, 0.007678985595703125, -0.058807373046875, 0.052520751953125, 0.056976318359375, 0.032989501953125, 0.0306854248046875 ]
3ed34eb9e8ae0e63f909972c4e26ccd64e2370b7
Wordpress Stackexchange Q: Including all terms in wordpress tax_query I'm a little bit confused, why I can't include all the terms in tax_query automatically? My code: 'tax_query' => array( array( 'taxonomy' => 'city', 'field' => 'slug', 'terms' => array( nyc, boston, london ), ) ) What If I've dozens of cities? Isn't it uncool to add them all manually? A: In addition to the marked 'best answer', there is another way which might be even faster because we don't have to pull the terms and extract the names first. This is achieved with a trick by using a non-existing operator (none of 'IN', 'NOT IN', 'AND', 'EXISTS' and 'NOT EXISTS'). For example, the string 'XXX' does the job and causes WP to not enter the cases during the query generation and therefore also the 0=1 concatenation is skipped. (The cases are located in the function get_sql_for_clause() of the file class-wp-tax-query.php, where the allowed operators are checked via conditions and there is no 'else'.) . $args = array ('tax_query' => array( array( 'taxonomy' => 'city', //'field' => 'term_id', // <-- not needed, default //'terms' => $term_ids, // <-- not needed 'operator' => 'XXX' // Use a non-existing operator ) ) );
Q: Including all terms in wordpress tax_query I'm a little bit confused, why I can't include all the terms in tax_query automatically? My code: 'tax_query' => array( array( 'taxonomy' => 'city', 'field' => 'slug', 'terms' => array( nyc, boston, london ), ) ) What If I've dozens of cities? Isn't it uncool to add them all manually? A: In addition to the marked 'best answer', there is another way which might be even faster because we don't have to pull the terms and extract the names first. This is achieved with a trick by using a non-existing operator (none of 'IN', 'NOT IN', 'AND', 'EXISTS' and 'NOT EXISTS'). For example, the string 'XXX' does the job and causes WP to not enter the cases during the query generation and therefore also the 0=1 concatenation is skipped. (The cases are located in the function get_sql_for_clause() of the file class-wp-tax-query.php, where the allowed operators are checked via conditions and there is no 'else'.) . $args = array ('tax_query' => array( array( 'taxonomy' => 'city', //'field' => 'term_id', // <-- not needed, default //'terms' => $term_ids, // <-- not needed 'operator' => 'XXX' // Use a non-existing operator ) ) ); A: Unless you have posts that don't have a city aren't you essentially querying all your posts? Anyway, Eric Holmes is correct that you should be using WP_Query in lieu of query_posts(). That said, you can get a list of all the terms in a taxonomy and then use those values in your tax query. // get all terms in the taxonomy $terms = get_terms( 'city' ); // convert array of term objects to array of term IDs $term_ids = wp_list_pluck( $terms, 'term_id' ); // proceed with tax query $args = array ('tax_query' => array( array( 'taxonomy' => 'city', 'field' => 'term_id', 'terms' => $term_ids, ) ) ); $city_posts = new WP_Query( $args ); A: Firstly, don't use query_posts. Create a new WP_Query object instead. Secondly, why would you need to add all the categories, if you are literally adding ALL categories? Would this not be the same as getting all posts? You can also specify which to NOT include. ie. "Everything but Chicago".
wordpress
{ "language": "en", "length": 362, "provenance": "stackexchange_00019.jsonl.gz:443350", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138264" }
[ 0.06976318359375, 0.0063323974609375, 0.00774383544921875, -0.054779052734375, 0.0194244384765625, -0.023681640625, 0.0178070068359375, -0.007537841796875, 0.026763916015625, 0.0108642578125, -0.06475830078125, -0.02728271484375, -0.0097808837890625, -0.005046844482421875, -0.034759521484375, -0.055419921875, 0.02734375, -0.0706787109375, -0.0516357421875, -0.024169921875, 0.0170745849609375, -0.007122039794921875, -0.0101470947265625, 0.047027587890625, 0.029144287109375, -0.0283966064453125, 0.04046630859375, -0.035186767578125, 0.01528167724609375, -0.0250091552734375, 0.020355224609375, 0.008880615234375, 0.004467010498046875, 0.0205230712890625, -0.002765655517578125, 0.0093231201171875, 0.02423095703125, 0.00040531158447265625, 0.0226593017578125, 0.01348114013671875, 0.037841796875, -0.01265716552734375, -0.032623291015625, 0.0274505615234375, -0.03900146484375, -0.02728271484375, 0.0093536376953125, -0.00734710693359375, 0.01061248779296875, 0.006195068359375, 0.00846099853515625, 0.031341552734375, 0.005359649658203125, 0.040313720703125, 0.0037364959716796875, 0.0235595703125, 0.033843994140625, -0.0305938720703125, 0.0277099609375, -0.03924560546875, -0.041290283203125, 0.0062408447265625, 0.032440185546875, -0.00778961181640625, -0.028900146484375, 0.0267333984375, 0.0189208984375, 0.00800323486328125, -0.0577392578125, -0.043121337890625, 0.0199432373046875, -0.042510986328125, -0.0117950439453125, 0.034271240234375, -0.022125244140625, -0.07415771484375, 0.0169525146484375, -0.049560546875, 0.0079803466796875, 0.051239013671875, 0.0190277099609375, 0.01462554931640625, -0.044525146484375, 0.01025390625, 0.00939178466796875, 0.036468505859375, -0.01409912109375, -0.036376953125, -0.039459228515625, -0.0469970703125, -0.0164031982421875, -0.048583984375, -0.06378173828125, -0.0164337158203125, 0.017822265625, -0.06475830078125, -0.0187835693359375, 0.04376220703125, -0.005863189697265625, 0.039825439453125, -0.0279083251953125, -0.014373779296875, 0.0136566162109375, -0.040069580078125, 0.01099395751953125, 0.06207275390625, -0.03131103515625, 0.007495880126953125, 0.042938232421875, 0.0195465087890625, 0.03460693359375, 0.00037097930908203125, -0.0156402587890625, -0.032989501953125, -0.0282745361328125, 0.00766754150390625, -0.031524658203125, -0.02288818359375, -0.0021076202392578125, -0.038360595703125, 0.011749267578125, 0.0130767822265625, -0.0279541015625, -0.0207061767578125, -0.01117706298828125, -0.039215087890625, -0.014984130859375, 0.004787445068359375, -0.01200103759765625, 0.0171966552734375, -0.0275726318359375, 0.034820556640625, 0.031341552734375, -0.01136016845703125, -0.0318603515625, -0.0135040283203125, 0.0255279541015625, -0.0010652542114257812, -0.00791168212890625, 0.0162506103515625, 0.0245513916015625, -0.03778076171875, -0.0183868408203125, 0.0260467529296875, 0.0218353271484375, 0.00984954833984375, 0.0301513671875, 0.0090179443359375, 0.0032958984375, -0.00958251953125, -0.01509857177734375, 0.0037708282470703125, 0.055938720703125, -0.0025691986083984375, -0.104248046875, 0.00978851318359375, -0.0247650146484375, -0.0157623291015625, -0.068115234375, -0.052947998046875, 0.01053619384765625, -0.00811767578125, -0.01352691650390625, -0.0262603759765625, -0.025390625, -0.0112762451171875, -0.0355224609375, -0.006984710693359375, 0.0251312255859375, 0.03228759765625, 0.0260162353515625, -0.041717529296875, 0.04327392578125, 0.024078369140625, -0.00811767578125, 0.0272369384765625, -0.006900787353515625, 0.0281982421875, 0.0116729736328125, -0.00102996826171875, -0.02178955078125, -0.04791259765625, 0.040740966796875, -0.0175628662109375, -0.07696533203125, 0.0570068359375, -0.0080718994140625, 0.047271728515625, 0.02227783203125, -0.010589599609375, 0.060150146484375, 0.0222930908203125, -0.0382080078125, 0.0145416259765625, 0.003513336181640625, -0.023223876953125, -0.00452423095703125, -0.00641632080078125, 0.0011043548583984375, -0.006786346435546875, 0.0301971435546875, -0.025146484375, 0.0037517547607421875, -0.0260009765625, -0.058074951171875, -0.041534423828125, 0.000308990478515625, 0.0200347900390625, -0.040252685546875, 0.0308380126953125, 0.036468505859375, -0.006954193115234375, -0.05303955078125, 0.0416259765625, 0.0136871337890625, -0.0016193389892578125, -0.01251220703125, 0.051116943359375, 0.0122222900390625, 0.0128326416015625, 0.0207366943359375, -0.049041748046875, 0.04132080078125, 0.019012451171875, 0.0110626220703125, -0.01461029052734375, -0.01739501953125, -0.01287841796875, 0.0029735565185546875, 0.0023097991943359375, 0.003269195556640625, 0.03045654296875, 0.018310546875, 0.034942626953125, -0.007144927978515625, 0.00015592575073242188, 0.00540924072265625, -0.058502197265625, 0.00925445556640625, 0.0298309326171875, 0.0288848876953125, 0.00896453857421875, -0.0204010009765625, -0.0123748779296875, 0.04888916015625, -0.0123138427734375, 0.01111602783203125, -0.01187896728515625, 0.0048370361328125, 0.042877197265625, 0.0111541748046875, 0.005401611328125, 0.01776123046875, -0.027191162109375, -0.02197265625, 0.04437255859375, -0.049652099609375, -0.0081939697265625, -0.004421234130859375, -0.0227203369140625, 0.0004723072052001953, -0.072509765625, 0.00943756103515625, -0.041778564453125, -0.01273345947265625, 0.0224151611328125, 0.0194549560546875, 0.020111083984375, 0.0024471282958984375, 0.010711669921875, -0.007686614990234375, -0.03802490234375, 0.00830078125, 0.026611328125, -0.014862060546875, 0.01763916015625, -0.004085540771484375, -0.01004791259765625, 0.01148223876953125, 0.0166473388671875, -0.0033855438232421875, 0.042266845703125, 0.0243682861328125, -0.0067291259765625, -0.0133056640625, 0.00917816162109375, 0.0198516845703125, -0.007354736328125, -0.021392822265625, -0.0648193359375, -0.019287109375, 0.0211334228515625, -0.046783447265625, 0.047271728515625, -0.007106781005859375, -0.0343017578125, -0.0142974853515625, 0.008331298828125, -0.0028171539306640625, -0.00614166259765625, 0.0006341934204101562, 0.033050537109375, 0.03167724609375, -0.041290283203125, -0.0016450881958007812, -0.023529052734375, -0.0176849365234375, 0.0153045654296875, -0.024383544921875, -0.0038604736328125, -0.039825439453125, 0.03204345703125, 0.011871337890625, 0.040283203125, -0.0306396484375, -0.05731201171875, -0.0259857177734375, -0.0132293701171875, -0.0875244140625, -0.0704345703125, 0.01422119140625, 0.0229644775390625, -0.07916259765625, -0.01435089111328125, -0.0011749267578125, 0.03167724609375, -0.06488037109375, -0.03021240234375, 0.015899658203125, -0.04119873046875, -0.0738525390625, -0.07098388671875, -0.0577392578125, 0.0123138427734375, -0.01389312744140625, -0.005523681640625, 0.0161895751953125, 0.06878662109375, 0.009033203125, -0.039154052734375, 0.0087127685546875, 0.030670166015625, -0.0243988037109375, 0.0223236083984375, 0.0015048980712890625, -0.00836944580078125, 0.0219268798828125, -0.00628662109375, 0.0079498291015625, 0.034271240234375, -0.0130157470703125, -0.0091552734375, 0.030609130859375, -0.007122039794921875, 0.029876708984375, 0.009857177734375, -0.0260162353515625, 0.01390838623046875, 0.0338134765625, -0.01493072509765625, 0.0118408203125, 0.01317596435546875, 0.0035343170166015625, 0.0023403167724609375, -0.0240631103515625, -0.01324462890625, 0.012359619140625, -0.0007348060607910156, -0.004695892333984375, 0.00015425682067871094, -0.03253173828125, -0.016754150390625, -0.005435943603515625, -0.0019989013671875, -0.012115478515625, 0.0262908935546875, 0.043670654296875, -0.017486572265625, -0.009796142578125, 0.00678253173828125, 0.00585174560546875, 0.01334381103515625, -0.0222320556640625, -0.027496337890625, -0.042266845703125, 0.033538818359375, -0.0297393798828125, 0.015838623046875, -0.041229248046875, -0.00998687744140625, -0.020263671875, 0.061279296875, -0.0168609619140625, -0.032623291015625, -0.00954437255859375, -0.00032782554626464844, 0.0244293212890625, -0.0117340087890625, 0.01274871826171875, -0.037322998046875, -0.01708984375, 0.004566192626953125, 0.0019893646240234375, -0.01001739501953125, -0.030914306640625, -0.00661468505859375, -0.020660400390625, -0.0172576904296875, 0.032379150390625, -0.0521240234375, 0.040679931640625, 0.005954742431640625, 0.0114288330078125, -0.02008056640625, -0.00232696533203125, -0.039794921875, -0.044921875, 0.0091552734375, -0.028045654296875, 0.00012552738189697266, -0.011322021484375, 0.0261383056640625, -0.0101470947265625, 0.01904296875, -0.010772705078125, -0.006603240966796875, 0.005451202392578125, 0.01357269287109375, -0.0428466796875, 0.04925537109375, 0.0031108856201171875, 0.0016307830810546875, -0.0049896240234375, 0.007274627685546875, -0.007080078125, 0.0701904296875, -0.031341552734375, 0.00981903076171875, -0.014312744140625, -0.01751708984375, -0.00850677490234375, -0.01052093505859375, -0.036865234375, -0.024322509765625, -0.04827880859375, -0.01505279541015625, 0.0096435546875, -0.01155853271484375, 0.038421630859375, 0.0296478271484375, -0.0209197998046875, 0.0277557373046875, 0.049530029296875, 0.003513336181640625, -0.035980224609375, -0.11639404296875, -0.014892578125, 0.01092529296875, -0.00856781005859375, 0.0159912109375, 0.00334930419921875, 0.00771331787109375, 0.002071380615234375, -0.01078033447265625, 0.01434326171875, 0.0171356201171875, 0.021484375, -0.00792694091796875, -0.0330810546875, 0.027557373046875, -0.016265869140625, -0.01129913330078125, 0.0070037841796875, 0.00826263427734375, -0.05255126953125, -0.0203857421875, 0.039520263671875, 0.005489349365234375, 0.06103515625, -0.027435302734375, -0.0140380859375, -0.0027980804443359375, 0.04180908203125, 0.011566162109375, 0.023162841796875, -0.006229400634765625, -0.00612640380859375, 0.0028209686279296875, 0.0181884765625, 0.0518798828125, 0.0692138671875, -0.012237548828125, 0.039764404296875, 0.0372314453125, -0.02105712890625, -0.0154266357421875, 0.005825042724609375, 0.0288848876953125, -0.0282440185546875, -0.06494140625, -0.0240478515625, 0.0018644332885742188, 0.0157470703125, 0.04461669921875, 0.027435302734375, 0.035400390625, 0.03057861328125, 0.028564453125, -0.01192474365234375, -0.010467529296875, 0.0517578125, -0.01325225830078125, 0.00841522216796875, 0.0249176025390625, -0.020965576171875, 0.01531219482421875, 0.01812744140625, 0.0015926361083984375, 0.01482391357421875, -0.024017333984375, -0.01157379150390625, -0.039031982421875, 0.0509033203125, 0.0243377685546875, -0.02142333984375, 0.00821685791015625, 0.024383544921875, 0.0094757080078125, -0.041534423828125, -0.007152557373046875, -0.0021152496337890625, 0.0308837890625, -0.0168304443359375, -0.021026611328125, 0.0260467529296875, -0.017913818359375, -0.0083465576171875, 0.00616455078125, 0.0020961761474609375, -0.004558563232421875, -0.0367431640625, -0.01544189453125, 0.019866943359375, 0.0127105712890625, -0.0162506103515625, 0.05419921875, -0.029296875, 0.048126220703125, 0.002895355224609375, 0.01541900634765625, -0.01495361328125, -0.0214996337890625, 0.0078887939453125, -0.0181732177734375, -0.040283203125, 0.0194244384765625, -0.018829345703125, -0.0212860107421875, -0.005260467529296875, 0.057952880859375, -0.0220947265625, 0.00812530517578125, -0.0229339599609375, -0.006023406982421875, 0.0209808349609375, 0.004547119140625, 0.03741455078125, 0.01218414306640625, 0.00012552738189697266, -0.01091766357421875, -0.0445556640625, -0.01120758056640625, 0.0179595947265625, -0.007022857666015625, 0.00817108154296875, -0.005214691162109375, 0.02301025390625, 0.0295867919921875, -0.022491455078125, -0.06304931640625, -0.0228729248046875, -0.002685546875, 0.0380859375, 0.04327392578125, -0.017181396484375, 0.0171966552734375, -0.00835418701171875, 0.0278472900390625, -0.0082244873046875, -0.04400634765625, -0.033111572265625, 0.0014295578002929688, -0.0335693359375, -0.1134033203125, -0.0198516845703125, 0.048553466796875, -0.047882080078125, 0.09979248046875, 0.04974365234375, 0.0196533203125, 0.049407958984375, -0.0065765380859375, -0.00638580322265625, 0.005290985107421875, -0.014190673828125, -0.0011157989501953125, 0.03167724609375, 0.06317138671875, 0.01203155517578125, 0.06005859375, -0.017486572265625, -0.0020847320556640625, -0.0015020370483398438, -0.0206298828125, 0.035552978515625, -0.01190948486328125, -0.0101776123046875, 0.0269012451171875, 0.041900634765625, -0.0220947265625, 0.0234527587890625, 0.005031585693359375, -0.00687408447265625, 0.0191802978515625, -0.0015268325805664062, -0.0005102157592773438, 0.00139617919921875, 0.029388427734375, -0.01323699951171875, -0.0202484130859375, 0.0197906494140625, -0.022369384765625, 0.00750732421875, 0.044097900390625, 0.032440185546875, -0.06610107421875, -0.0005707740783691406, 0.0157012939453125, -0.0174102783203125, -0.00006937980651855469, 0.0268402099609375, -0.006214141845703125, 0.0034351348876953125, -0.057769775390625, 0.0289154052734375, -0.03399658203125, -0.016265869140625, 0.044342041015625, -0.00582122802734375, -0.005878448486328125, -0.004207611083984375, 0.009521484375, -0.0411376953125, 0.045196533203125, 0.031005859375, 0.005039215087890625, 0.007232666015625, 0.01488494873046875, -0.02606201171875, -0.00592041015625, -0.037994384765625, -0.01507568359375, -0.04278564453125, -0.02618408203125, 0.0011196136474609375, -0.00765228271484375, 0.0221405029296875, 0.022064208984375, -0.0026493072509765625, -0.022430419921875, -0.011199951171875, -0.0252227783203125, -0.040618896484375, -0.0299835205078125, -0.0012922286987304688, 0.025177001953125, -0.042816162109375, 0.04156494140625, -0.0182952880859375, 0.0013427734375, -0.017364501953125, -0.041778564453125, 0.013397216796875, -0.0233917236328125, 0.015106201171875, 0.028594970703125, 0.07537841796875, 0.01065826416015625, -0.0107269287109375, 0.004177093505859375, -0.05718994140625, -0.037017822265625, -0.004787445068359375, -0.040252685546875, -0.011138916015625, -0.035400390625, -0.05322265625, 0.1324462890625, 0.00913238525390625, 0.009765625, 0.010711669921875, 0.0633544921875, -0.03912353515625, 0.055419921875, -0.029083251953125, 0.0278472900390625, 0.01013946533203125, 0.006011962890625, -0.029022216796875, -0.0031414031982421875, -0.01849365234375, 0.0090179443359375, 0.04290771484375, 0.01000213623046875, -0.0310516357421875, 0.0026950836181640625, 0.04718017578125, 0.025543212890625, -0.01493072509765625, 0.033050537109375, 0.0380859375, 0.060089111328125, 0.09552001953125, 0.00543212890625, 0.06805419921875, -0.0007643699645996094, 0.0015535354614257812, 0.051666259765625, 0.02752685546875, 0.0540771484375, 0.0015964508056640625, 0.01416778564453125, 0.043243408203125, -0.02569580078125, -0.01126861572265625, -0.05340576171875, 0.04412841796875, -0.00542449951171875, 0.03985595703125, -0.10198974609375, -0.03466796875, -0.0192718505859375, 0.046661376953125, 0.00824737548828125, 0.020416259765625, 0.0271453857421875, 0.0036525726318359375, 0.095703125, -0.0189971923828125, 0.01065826416015625, 0.0035152435302734375, 0.007232666015625, 0.0236968994140625, 0.0035152435302734375, 0.020782470703125, -0.047943115234375, 0.0150604248046875, 0.033905029296875, 0.0335693359375, -0.040557861328125, -0.0430908203125, 0.003170013427734375, 0.004383087158203125, -0.0032901763916015625, 0.0211029052734375, 0.026580810546875, 0.05743408203125, 0.0723876953125, -0.07470703125, 0.0072174072265625, 0.025787353515625, 0.01322174072265625, -0.028228759765625, -0.01837158203125, -0.0176849365234375, -0.017425537109375, -0.04296875, 0.0227203369140625, 0.02203369140625, 0.058868408203125, -0.0011987686157226562, 0.0550537109375, -0.03314208984375, -0.0228424072265625, -0.01451873779296875, 0.0081939697265625, 0.032806396484375, 0.0017337799072265625, -0.001621246337890625, 0.02392578125, -0.0029315948486328125, 0.014251708984375, 0.0021419525146484375, 0.02777099609375, 0.038421630859375, 0.041412353515625, 0.0003609657287597656, -0.0068817138671875, 0.06298828125, -0.02593994140625, -0.006008148193359375, -0.021575927734375, 0.02349853515625, 0.0703125, 0.01386260986328125, -0.005107879638671875, 0.0010509490966796875, 0.08642578125, -0.0157318115234375, 0.040252685546875, -0.000606536865234375, -0.02197265625, -0.007640838623046875, 0.01348876953125, 0.05145263671875, 0.044525146484375, -0.0168609619140625, -0.013519287109375, -0.01541900634765625, -0.020294189453125, 0.0111846923828125, 0.0302276611328125, 0.03509521484375, -0.018524169921875, 0.0144195556640625, -0.039642333984375, -0.016571044921875, 0.044708251953125, -0.0017566680908203125, -0.037689208984375, 0.0106048583984375, -0.030364990234375, 0.03070068359375, 0.021209716796875, 0.043365478515625, -0.007511138916015625, 0.014495849609375, 0.033599853515625, -0.00955963134765625, -0.0035190582275390625, -0.01436614990234375, -0.00029587745666503906, -0.0178680419921875, 0.006526947021484375, -0.0209808349609375, -0.0008215904235839844, 0.005237579345703125, -0.0102691650390625, 0.036376953125, -0.0085296630859375, 0.04132080078125, -0.06103515625, -0.005889892578125, -0.029541015625, 0.01338958740234375, -0.0345458984375, 0.0784912109375, 0.006763458251953125, -0.0219268798828125, -0.05828857421875, -0.01155853271484375, 0.0621337890625, 0.06915283203125, -0.0275115966796875, 0.02349853515625, 0.0285797119140625, -0.00421905517578125, 0.0264739990234375, -0.0211944580078125, 0.028350830078125, 0.032379150390625, 0.016326904296875, 0.02154541015625, 0.00439453125, -0.021636962890625, -0.004711151123046875, 0.0232086181640625, -0.031585693359375, 0.000644683837890625, -0.006969451904296875, -0.01500701904296875, 0.019989013671875, 0.03631591796875, -0.022857666015625, 0.02264404296875, -0.0026950836181640625, -0.015380859375, 0.00786590576171875, -0.0099639892578125, -0.029144287109375, -0.0297393798828125, -0.0230255126953125, -0.010589599609375, -0.022125244140625, -0.0640869140625, -0.031463623046875, 0.021270751953125, 0.021331787109375, -0.01503753662109375, -0.018218994140625, -0.008941650390625, -0.020904541015625, 0.09136962890625, -0.0246734619140625, -0.00890350341796875, -0.007442474365234375, -0.018524169921875, -0.0070648193359375, 0.0296478271484375, -0.022003173828125, 0.01132965087890625, 0.0289459228515625, 0.027130126953125, 0.02313232421875, -0.053558349609375, -0.0157623291015625, 0.032073974609375, 0.06817626953125, 0.06640625, 0.08026123046875, -0.033447265625, 0.01194000244140625, -0.0188751220703125, -0.00553131103515625, -0.04803466796875, 0.01137542724609375, -0.0718994140625, -0.0172119140625, 0.04217529296875, -0.010467529296875, 0.0322265625, -0.0298614501953125, -0.11175537109375, 0.07220458984375, -0.00897216796875, -0.042572021484375, -0.033935546875, -0.02227783203125, 0.01332855224609375, -0.031890869140625, -0.036224365234375, 0.0140838623046875, -0.048065185546875, 0.027984619140625, -0.0022106170654296875, -0.004550933837890625, 0.01885986328125, -0.027984619140625, -0.0762939453125, -0.0070037841796875, -0.0110015869140625, 0.00965118408203125, 0.048980712890625, -0.0290679931640625, 0.029693603515625, 0.0305938720703125, -0.048187255859375, -0.0692138671875, -0.04296875, -0.040771484375, -0.01087188720703125, -0.0020465850830078125, -0.05657958984375, -0.008331298828125, 0.10333251953125, 0.04925537109375, 0.0311279296875, -0.040863037109375, 0.0240325927734375, -0.0006566047668457031, 0.0276641845703125, 0.0197601318359375, -0.0081024169921875, -0.006412506103515625, 0.00540924072265625, 0.0025806427001953125, -0.0144805908203125, 0.0243072509765625, -0.03973388671875, -0.040679931640625, -0.00482177734375, -0.040557861328125, 0.0007171630859375, -0.043060302734375, 0.050201416015625, -0.038604736328125, -0.01030731201171875, -0.060577392578125, -0.0188140869140625, -0.01322174072265625, -0.06842041015625, -0.0203399658203125, -0.0296173095703125, -0.0159454345703125, 0.0129852294921875, 0.0162811279296875, 0.003543853759765625, -0.00347900390625, 0.0141754150390625, 0.00980377197265625, -0.019683837890625, 0.025177001953125, 0.019927978515625, 0.02154541015625, -0.047027587890625, 0.052093505859375, 0.01641845703125, 0.06414794921875, 0.001697540283203125, 0.0643310546875, -0.00042366981506347656, 0.045684814453125, -0.0017118453979492188, -0.02325439453125, 0.01470947265625, -0.029937744140625, 0.00518035888671875, 0.00046539306640625, -0.01293182373046875, 0.014678955078125, -0.024932861328125, -0.0357666015625, -0.0311737060546875, -0.0075225830078125 ]
2cd173e7d951c636f868247cdc87577a955c5889
Wordpress Stackexchange Q: How can I trust switch_to_blog()? When I call switch_to_blog() with a blog id, I don’t know whether that blog actually exists. The function returns always true. Test case: switch_to_blog(PHP_INT_MAX); $post = get_post(1); restore_current_blog(); This will result in database errors that are exposed to the user. How can I prevent that? Real-world use case I was the lead developer of MultilingualPress. When a user translates a post, she gets a screen like this: Now the following can happen: * *She saves the post successfully and continues translating the post. *Another user, a network admin, deletes the German blog while she is writing. *She hits save again and gets database errors. I want to avoid that scenario. How can I check quickly if the target blog exists? I call switch_to_blog() very often in multiple different classes, so it has to be fast. A: if( get_blog_details( [ 'blog_id' => $blogIdToTest ] ) ) { // Exists } else { // Dont exists }
Q: How can I trust switch_to_blog()? When I call switch_to_blog() with a blog id, I don’t know whether that blog actually exists. The function returns always true. Test case: switch_to_blog(PHP_INT_MAX); $post = get_post(1); restore_current_blog(); This will result in database errors that are exposed to the user. How can I prevent that? Real-world use case I was the lead developer of MultilingualPress. When a user translates a post, she gets a screen like this: Now the following can happen: * *She saves the post successfully and continues translating the post. *Another user, a network admin, deletes the German blog while she is writing. *She hits save again and gets database errors. I want to avoid that scenario. How can I check quickly if the target blog exists? I call switch_to_blog() very often in multiple different classes, so it has to be fast. A: if( get_blog_details( [ 'blog_id' => $blogIdToTest ] ) ) { // Exists } else { // Dont exists } A: @G.M.’s idea to cache the check has lead me to the following helper function. I’ve put it into the global namespace to have it available everywhere. The function doesn’t say anything about the blog status, just if it exists and is not marked as deleted. The database query is very fast (0.0001 seconds) and runs just one query per site id, no matter how often the function is called. if ( ! function_exists( 'blog_exists' ) ) { /** * Checks if a blog exists and is not marked as deleted. * * @link http://wordpress.stackexchange.com/q/138300/73 * @param int $blog_id * @param int $site_id * @return bool */ function blog_exists( $blog_id, $site_id = 0 ) { global $wpdb; static $cache = array (); $site_id = (int) $site_id; if ( 0 === $site_id ) $site_id = get_current_site()->id; if ( empty ( $cache ) or empty ( $cache[ $site_id ] ) ) { if ( wp_is_large_network() ) // we do not test large sites. return TRUE; $query = "SELECT `blog_id` FROM $wpdb->blogs WHERE site_id = $site_id AND deleted = 0"; $result = $wpdb->get_col( $query ); // Make sure the array is always filled with something. if ( empty ( $result ) ) $cache[ $site_id ] = array ( 'do not check again' ); else $cache[ $site_id ] = $result; } return in_array( $blog_id, $cache[ $site_id ] ); } } Usage if ( ! blog_exists( $blog_id ) ) return new WP_Error( '410', "The blog with the id $blog_id has vanished." ); A: You could use get_site with the id of the blog to archieve this. From the docs (https://developer.wordpress.org/reference/functions/get_site/): returns (WP_Site|null) The site object or null if not found. So all you have to do is something like this: // Replace PHP_INT_MAX with the var which holds the site id you want to check against if(!is_null(get_site(PHP_INT_MAX)){ //do stuff if site exists } else{ // do stuff if the site doesn't exists (anymore) }
wordpress
{ "language": "en", "length": 480, "provenance": "stackexchange_00019.jsonl.gz:443363", "question_score": "19", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138300" }
[ 0.04522705078125, -0.0029544830322265625, 0.032928466796875, 0.06365966796875, 0.00446319580078125, -0.0311737060546875, 0.0751953125, -0.0765380859375, 0.004810333251953125, -0.01148223876953125, -0.044189453125, -0.005870819091796875, -0.01079559326171875, -0.044708251953125, 0.032745361328125, -0.0552978515625, 0.0360107421875, -0.0273284912109375, 0.01432037353515625, -0.007232666015625, 0.007572174072265625, 0.017425537109375, 0.02398681640625, -0.0084686279296875, 0.050323486328125, -0.061370849609375, 0.05694580078125, -0.01291656494140625, 0.022735595703125, -0.0157928466796875, 0.0345458984375, 0.002849578857421875, 0.01386260986328125, 0.03424072265625, -0.04437255859375, -0.0279388427734375, 0.02935791015625, 0.0029277801513671875, -0.0101470947265625, 0.06219482421875, -0.0007395744323730469, 0.000055670738220214844, 0.0172882080078125, -0.004634857177734375, -0.01422882080078125, -0.02825927734375, 0.004589080810546875, -0.0244140625, 0.0018224716186523438, 0.039093017578125, 0.0264129638671875, 0.023590087890625, 0.0265045166015625, 0.0384521484375, -0.01358795166015625, -0.021820068359375, -0.007610321044921875, 0.00823974609375, 0.005096435546875, 0.0382080078125, -0.0166473388671875, 0.036895751953125, -0.0089569091796875, -0.02471923828125, -0.0103912353515625, 0.00592041015625, -0.018402099609375, 0.01148223876953125, -0.010284423828125, -0.006191253662109375, 0.0143280029296875, -0.0374755859375, 0.0017251968383789062, -0.010223388671875, -0.03228759765625, 0.01439666748046875, -0.001674652099609375, -0.016357421875, 0.01171112060546875, 0.0007381439208984375, 0.0176849365234375, -0.010833740234375, 0.00241851806640625, -0.0148162841796875, -0.0305938720703125, -0.025970458984375, -0.004302978515625, -0.01104736328125, -0.047515869140625, -0.03350830078125, -0.0239410400390625, -0.05712890625, -0.054656982421875, -0.0042266845703125, -0.0026531219482421875, -0.030426025390625, 0.049896240234375, 0.1053466796875, -0.04638671875, -0.024749755859375, -0.04193115234375, -0.0035247802734375, -0.0496826171875, -0.0287017822265625, -0.00460052490234375, 0.051239013671875, 0.01503753662109375, -0.043426513671875, 0.01024627685546875, 0.0017032623291015625, 0.0017423629760742188, 0.028900146484375, -0.0293426513671875, -0.06512451171875, -0.004657745361328125, 0.043670654296875, -0.0338134765625, -0.01090240478515625, 0.0229034423828125, -0.04803466796875, 0.0022125244140625, 0.022064208984375, -0.055755615234375, 0.009521484375, -0.0037479400634765625, -0.036956787109375, -0.00896453857421875, 0.03680419921875, -0.014495849609375, 0.042572021484375, -0.0439453125, 0.023101806640625, 0.07501220703125, -0.028411865234375, -0.02777099609375, -0.04290771484375, 0.0165557861328125, 0.0244598388671875, 0.0072784423828125, -0.0313720703125, 0.08984375, -0.04290771484375, -0.061279296875, 0.075439453125, 0.01392364501953125, 0.046142578125, 0.0307464599609375, -0.0010347366333007812, -0.020660400390625, -0.04425048828125, -0.0033111572265625, -0.023712158203125, 0.0246734619140625, -0.0282745361328125, 0.0308074951171875, -0.058837890625, 0.032989501953125, -0.05194091796875, 0.0200653076171875, -0.026336669921875, -0.0014581680297851562, -0.0122222900390625, 0.00568389892578125, -0.0230560302734375, -0.042388916015625, 0.021575927734375, -0.0216827392578125, -0.0094146728515625, 0.01358795166015625, 0.005290985107421875, -0.0258636474609375, -0.007518768310546875, -0.0034198760986328125, -0.006381988525390625, 0.010528564453125, 0.0089111328125, -0.03424072265625, 0.003925323486328125, 0.0552978515625, -0.01361083984375, -0.0212860107421875, -0.0181884765625, 0.06390380859375, -0.0037899017333984375, -0.046173095703125, 0.034942626953125, 0.0207061767578125, 0.06854248046875, -0.0028476715087890625, 0.0213775634765625, 0.0182647705078125, 0.0277252197265625, -0.0159149169921875, 0.038818359375, -0.0008616447448730469, -0.01076507568359375, -0.023651123046875, 0.019866943359375, -0.0068511962890625, -0.052947998046875, 0.0322265625, 0.00777435302734375, -0.031494140625, -0.025848388671875, -0.082763671875, -0.0189056396484375, -0.001895904541015625, 0.040924072265625, -0.0095062255859375, 0.027679443359375, 0.0177764892578125, 0.013336181640625, -0.028045654296875, 0.0245208740234375, 0.01415252685546875, -0.005565643310546875, -0.0271759033203125, -0.0272064208984375, -0.00620269775390625, 0.01074981689453125, -0.025360107421875, 0.0228729248046875, -0.0496826171875, -0.0246124267578125, 0.0200042724609375, -0.04583740234375, 0.004638671875, -0.0286102294921875, -0.0007815361022949219, 0.0126190185546875, -0.06121826171875, 0.01474761962890625, 0.039398193359375, 0.004169464111328125, -0.021087646484375, 0.00296783447265625, 0.0193023681640625, -0.0809326171875, 0.011077880859375, 0.055419921875, 0.0310211181640625, 0.01995849609375, 0.0028591156005859375, 0.003704071044921875, -0.014404296875, -0.06640625, 0.008148193359375, -0.002689361572265625, -0.0174407958984375, 0.040313720703125, -0.0008535385131835938, 0.01806640625, -0.004871368408203125, 0.00807952880859375, 0.002254486083984375, 0.01418304443359375, 0.005748748779296875, -0.0034465789794921875, 0.03424072265625, -0.0205230712890625, 0.006488800048828125, -0.001476287841796875, -0.0187225341796875, -0.0007801055908203125, 0.045684814453125, 0.0081939697265625, 0.0207366943359375, 0.01091766357421875, -0.01708984375, 0.03265380859375, -0.012664794921875, -0.051513671875, -0.0016908645629882812, 0.0465087890625, 0.006496429443359375, 0.0572509765625, -0.025726318359375, -0.016357421875, 0.00940704345703125, 0.039886474609375, -0.02191162109375, 0.049835205078125, -0.0205230712890625, -0.041229248046875, -0.0009593963623046875, -0.001819610595703125, -0.0265655517578125, -0.05419921875, 0.0054473876953125, -0.02301025390625, -0.0019321441650390625, 0.023162841796875, -0.031402587890625, 0.031585693359375, 0.025115966796875, -0.0311279296875, 0.0035610198974609375, -0.052642822265625, 0.050750732421875, -0.040771484375, 0.0831298828125, 0.0751953125, -0.046417236328125, 0.059326171875, 0.017669677734375, 0.035186767578125, 0.01009368896484375, 0.01529693603515625, 0.005100250244140625, 0.03558349609375, -0.07110595703125, -0.003856658935546875, 0.0282135009765625, 0.04644775390625, -0.031036376953125, -0.03387451171875, -0.0288848876953125, 0.0229644775390625, -0.06939697265625, -0.033233642578125, -0.006916046142578125, -0.047271728515625, 0.00972747802734375, 0.0022487640380859375, -0.00551605224609375, -0.03363037109375, 0.0313720703125, -0.0003676414489746094, -0.0276336669921875, 0.001163482666015625, -0.052093505859375, -0.058502197265625, -0.06671142578125, -0.025360107421875, -0.016021728515625, 0.0178680419921875, 0.0174102783203125, 0.023284912109375, 0.01056671142578125, -0.048583984375, 0.041534423828125, 0.0265655517578125, -0.002964019775390625, 0.04083251953125, 0.00011867284774780273, -0.01197052001953125, 0.003902435302734375, 0.00005161762237548828, 0.0194244384765625, 0.0110015869140625, -0.01270294189453125, -0.013580322265625, 0.00960540771484375, 0.008514404296875, 0.048736572265625, -0.059783935546875, -0.04144287109375, 0.0401611328125, 0.0098724365234375, -0.0224609375, -0.0033092498779296875, -0.02410888671875, -0.0482177734375, 0.0236968994140625, 0.0235748291015625, 0.0030689239501953125, 0.004566192626953125, 0.0019741058349609375, -0.0027828216552734375, 0.01422882080078125, -0.005008697509765625, -0.01497650146484375, 0.00652313232421875, -0.0032787322998046875, -0.0029392242431640625, -0.0123291015625, 0.036407470703125, -0.0262451171875, -0.040802001953125, -0.007843017578125, -0.0246124267578125, -0.04376220703125, 0.03350830078125, -0.0223846435546875, -0.01125335693359375, 0.02569580078125, -0.01580810546875, 0.0017871856689453125, -0.0030002593994140625, -0.00948333740234375, -0.0104217529296875, 0.0458984375, -0.0223388671875, -0.0105743408203125, -0.0197906494140625, 0.004917144775390625, -0.0416259765625, 0.004474639892578125, -0.0265960693359375, 0.0144195556640625, -0.045745849609375, -0.00574493408203125, -0.01006317138671875, -0.0281524658203125, -0.00942230224609375, -0.0290985107421875, -0.0166015625, -0.023956298828125, 0.0279541015625, -0.0090484619140625, 0.05206298828125, -0.01096343994140625, 0.049774169921875, -0.031890869140625, 0.007144927978515625, -0.035888671875, -0.05438232421875, -0.0167999267578125, 0.00396728515625, 0.02093505859375, -0.0156097412109375, 0.0014734268188476562, -0.0258636474609375, 0.032928466796875, 0.034820556640625, 0.02423095703125, -0.0283203125, -0.03277587890625, 0.04034423828125, -0.00862884521484375, -0.03924560546875, -0.0144500732421875, 0.000041484832763671875, 0.004360198974609375, -0.03497314453125, 0.00710296630859375, -0.0233001708984375, -0.018768310546875, 0.02642822265625, -0.05438232421875, -0.048004150390625, -0.040924072265625, -0.035003662109375, 0.0130462646484375, -0.036102294921875, 0.006221771240234375, -0.038330078125, -0.037200927734375, 0.0233001708984375, -0.041656494140625, -0.02764892578125, 0.01068878173828125, 0.07269287109375, 0.036651611328125, 0.00319671630859375, 0.014984130859375, 0.00952911376953125, 0.0258026123046875, 0.02423095703125, 0.05780029296875, 0.05328369140625, -0.00844573974609375, 0.0191650390625, 0.03082275390625, -0.026641845703125, 0.0164031982421875, 0.0307464599609375, 0.0143585205078125, 0.0002378225326538086, -0.0145721435546875, -0.0080413818359375, 0.01261138916015625, 0.05084228515625, 0.00946807861328125, -0.0340576171875, 0.032623291015625, 0.0265350341796875, -0.036041259765625, -0.0008435249328613281, -0.0291595458984375, -0.006145477294921875, 0.0092010498046875, -0.050018310546875, 0.026397705078125, 0.0242767333984375, -0.006923675537109375, -0.01953125, 0.00429534912109375, 0.00341033935546875, 0.0364990234375, 0.02978515625, -0.0108184814453125, 0.0548095703125, -0.00707244873046875, -0.02911376953125, 0.005290985107421875, -0.0005812644958496094, 0.03656005859375, -0.01345062255859375, -0.07940673828125, 0.01508331298828125, 0.026214599609375, 0.021026611328125, 0.055511474609375, -0.0191192626953125, 0.05810546875, -0.01537322998046875, -0.034271240234375, -0.01476287841796875, -0.0692138671875, -0.04681396484375, -0.0687255859375, -0.0215911865234375, 0.0052490234375, -0.0133056640625, 0.0283966064453125, 0.0275115966796875, -0.018035888671875, 0.03985595703125, -0.025360107421875, 0.058807373046875, 0.057769775390625, -0.003612518310546875, 0.026580810546875, 0.01313018798828125, -0.0083465576171875, -0.0181121826171875, -0.036895751953125, -0.045928955078125, -0.0215606689453125, 0.013275146484375, 0.0244598388671875, 0.006099700927734375, 0.00029850006103515625, 0.0198211669921875, 0.021881103515625, -0.038970947265625, 0.03900146484375, 0.0262298583984375, -0.0232696533203125, -0.053314208984375, -0.01323699951171875, 0.0251312255859375, 0.026092529296875, 0.0017843246459960938, 0.003986358642578125, -0.032684326171875, -0.007305145263671875, 0.01043701171875, -0.0137481689453125, -0.014892578125, 0.0037174224853515625, -0.0067901611328125, -0.03948974609375, -0.00905609130859375, 0.06298828125, 0.02691650390625, -0.029815673828125, -0.03826904296875, 0.034149169921875, -0.035675048828125, -0.004207611083984375, -0.0247650146484375, 0.020965576171875, -0.0413818359375, 0.00931549072265625, 0.046875, 0.0211029052734375, -0.05645751953125, 0.02923583984375, -0.035919189453125, 0.01416778564453125, -0.015655517578125, -0.07073974609375, -0.042388916015625, -0.0305633544921875, 0.007419586181640625, -0.0144500732421875, -0.006717681884765625, -0.0017757415771484375, 0.007572174072265625, 0.044281005859375, 0.0079803466796875, 0.01000213623046875, -0.0007843971252441406, 0.004886627197265625, 0.0169677734375, 0.019012451171875, 0.02972412109375, 0.0203094482421875, -0.0111236572265625, -0.032745361328125, -0.0224609375, 0.0264434814453125, 0.019866943359375, 0.018218994140625, 0.023101806640625, -0.024322509765625, 0.06573486328125, -0.005939483642578125, -0.005710601806640625, 0.0169219970703125, 0.01165771484375, -0.005321502685546875, -0.037994384765625, 0.046661376953125, -0.0030002593994140625, 0.006114959716796875, -0.028106689453125, 0.006832122802734375, -0.0022716522216796875, 0.043304443359375, -0.0225677490234375, -0.0286865234375, -0.022216796875, 0.035552978515625, -0.0271759033203125, 0.055816650390625, 0.055023193359375, 0.024017333984375, 0.050628662109375, 0.0028553009033203125, 0.012481689453125, -0.0052490234375, 0.0073394775390625, -0.00994873046875, -0.0078125, -0.0040740966796875, -0.01517486572265625, 0.01096343994140625, -0.0169677734375, -0.007114410400390625, 0.01485443115234375, 0.06207275390625, 0.083251953125, -0.0654296875, -0.0094146728515625, 0.031097412109375, -0.042633056640625, -0.0001506805419921875, -0.0006084442138671875, -0.0035419464111328125, -0.041015625, 0.02001953125, -0.054412841796875, -0.0333251953125, -0.021087646484375, -0.04681396484375, -0.007228851318359375, -0.016998291015625, 0.0201416015625, 0.022430419921875, -0.0290069580078125, 0.044403076171875, 0.00965118408203125, 0.036773681640625, 0.00717926025390625, 0.004642486572265625, -0.00786590576171875, -0.024688720703125, -0.0203399658203125, 0.01016998291015625, -0.031402587890625, -0.01323699951171875, -0.0216827392578125, 0.0051422119140625, 0.039703369140625, 0.06414794921875, -0.02008056640625, -0.01329803466796875, 0.0469970703125, 0.004520416259765625, -0.0361328125, 0.0011682510375976562, 0.028533935546875, 0.024444580078125, -0.0202789306640625, 0.0330810546875, -0.01453399658203125, -0.027008056640625, -0.0096893310546875, 0.0019330978393554688, 0.07623291015625, -0.00864410400390625, -0.031890869140625, 0.03314208984375, 0.000415802001953125, -0.0264434814453125, -0.01030731201171875, -0.000010132789611816406, -0.05120849609375, -0.044921875, -0.037567138671875, -0.0806884765625, 0.00531768798828125, -0.05841064453125, -0.036590576171875, 0.05694580078125, -0.033660888671875, 0.036224365234375, 0.02239990234375, 0.00977325439453125, 0.0131988525390625, 0.0009822845458984375, -0.03973388671875, 0.03448486328125, -0.022857666015625, 0.0352783203125, -0.062408447265625, 0.00921630859375, -0.01454925537109375, 0.006603240966796875, 0.025909423828125, 0.004596710205078125, -0.0019779205322265625, -0.010528564453125, -0.0022373199462890625, 0.002460479736328125, -0.0286712646484375, 0.0244140625, -0.0162506103515625, 0.059417724609375, 0.013031005859375, -0.056121826171875, 0.0197601318359375, -0.005146026611328125, -0.044952392578125, 0.0200958251953125, 0.00850677490234375, -0.006610870361328125, 0.0012035369873046875, 0.021942138671875, -0.0189056396484375, -0.0075836181640625, 0.00737762451171875, -0.045654296875, 0.05010986328125, -0.015655517578125, 0.047760009765625, -0.0482177734375, 0.035003662109375, -0.017059326171875, 0.05889892578125, 0.00726318359375, 0.0271148681640625, 0.006847381591796875, 0.0175018310546875, 0.03656005859375, -0.037872314453125, -0.0042572021484375, -0.00551605224609375, -0.0218353271484375, 0.06915283203125, 0.05926513671875, 0.0249481201171875, 0.00913238525390625, 0.00782012939453125, 0.0264892578125, 0.0731201171875, -0.05230712890625, -0.014739990234375, 0.01263427734375, 0.003971099853515625, -0.005279541015625, -0.024017333984375, -0.004734039306640625, 0.0091094970703125, 0.035797119140625, -0.01013946533203125, 0.0110015869140625, 0.00292205810546875, -0.0015649795532226562, 0.01071929931640625, 0.020904541015625, -0.0269927978515625, 0.0306396484375, -0.056549072265625, 0.0158843994140625, 0.004779815673828125, 0.0830078125, 0.03582763671875, 0.0762939453125, -0.03302001953125, -0.054351806640625, -0.0181427001953125, 0.02923583984375, -0.017974853515625, 0.0162506103515625, -0.04119873046875, -0.0406494140625, 0.00717926025390625, 0.04840087890625, -0.000035703182220458984, 0.0186309814453125, 0.03533935546875, 0.03619384765625, 0.005733489990234375, -0.0186767578125, 0.050811767578125, -0.013275146484375, 0.03887939453125, -0.038787841796875, -0.01116943359375, -0.02850341796875, -0.024688720703125, -0.01357269287109375, -0.016326904296875, 0.03485107421875, -0.013275146484375, 0.070556640625, 0.0015277862548828125, 0.0286407470703125, 0.0301971435546875, 0.0229949951171875, 0.0321044921875, 0.035430908203125, -0.051849365234375, -0.0229949951171875, 0.01209259033203125, -0.04180908203125, -0.0222625732421875, 0.02801513671875, 0.004482269287109375, 0.0009241104125976562, 0.019378662109375, 0.0304107666015625, 0.031280517578125, -0.020172119140625, -0.027496337890625, 0.01026153564453125, 0.07208251953125, 0.0125885009765625, -0.0458984375, -0.0290985107421875, -0.00984954833984375, 0.0309295654296875, -0.02490234375, 0.0268096923828125, 0.0130462646484375, 0.01090240478515625, -0.0279541015625, 0.03363037109375, -0.046722412109375, -0.00763702392578125, 0.0130615234375, -0.018463134765625, -0.0015087127685546875, 0.0003941059112548828, -0.0010585784912109375, 0.0178070068359375, 0.051666259765625, -0.0203399658203125, 0.0304412841796875, -0.0268096923828125, 0.00971221923828125, -0.0268402099609375, -0.0428466796875, -0.051300048828125, -0.08685302734375, -0.055206298828125, 0.0382080078125, -0.00004935264587402344, 0.0159454345703125, -0.04034423828125, 0.040740966796875, -0.00841522216796875, -0.04296875, 0.0195770263671875, -0.05474853515625, -0.01093292236328125, 0.0169830322265625, 0.05499267578125, -0.03765869140625, -0.040740966796875, -0.0182952880859375, -0.0265655517578125, 0.0081787109375, 0.011962890625, -0.01000213623046875, 0.0133056640625, 0.00994873046875, 0.004917144775390625, 0.02294921875, -0.02899169921875, -0.0042877197265625, 0.04254150390625, -0.01296234130859375, 0.003162384033203125, 0.0254364013671875, 0.00960540771484375, 0.0268096923828125, -0.045684814453125, -0.004520416259765625, 0.0090484619140625, -0.020172119140625, 0.005126953125, -0.00424957275390625, -0.001941680908203125, -0.03668212890625, 0.0212249755859375, -0.0236968994140625, -0.03607177734375, 0.041900634765625, -0.05865478515625, -0.010589599609375, 0.0185546875, 0.051971435546875, -0.040435791015625, 0.0166778564453125, -0.0141754150390625, -0.03582763671875, -0.006206512451171875, 0.0218658447265625, 0.0394287109375, -0.0181732177734375, -0.046051025390625, 0.01502227783203125, -0.0014371871948242188, 0.042388916015625, -0.0252685546875, -0.03680419921875, -0.003910064697265625, -0.01139068603515625, 0.007259368896484375, -0.06072998046875, 0.034149169921875, -0.12890625, -0.0214996337890625, -0.01204681396484375, 0.0025177001953125, 0.019073486328125, -0.0101165771484375, -0.00872039794921875, 0.084228515625, -0.0017633438110351562, -0.004970550537109375, -0.051605224609375, -0.01288604736328125, -0.0259552001953125, 0.051422119140625, -0.00775146484375, -0.01654052734375, -0.00148773193359375, 0.05023193359375, -0.0232086181640625, 0.03802490234375, 0.034027099609375, -0.047271728515625, -0.005313873291015625, -0.03619384765625, -0.0244293212890625, -0.01064300537109375, 0.004474639892578125, -0.0206298828125, 0.047882080078125, 0.058837890625, -0.004055023193359375, 0.00000852346420288086, 0.009063720703125, -0.031219482421875, -0.01041412353515625, -0.035247802734375, -0.01702880859375, -0.006671905517578125, 0.053619384765625, 0.039794921875, 0.0204315185546875, -0.047119140625, -0.02239990234375, -0.038665771484375, -0.05853271484375, -0.006855010986328125, 0.03521728515625, -0.05633544921875, 0.0272674560546875, -0.006107330322265625, -0.0167694091796875, -0.014251708984375, -0.022125244140625, -0.043670654296875, -0.0008916854858398438, 0.00788116455078125, 0.0439453125, -0.05694580078125, -0.018402099609375, 0.037506103515625, -0.02557373046875, 0.01261138916015625, 0.0035152435302734375, 0.00293731689453125, 0.0196380615234375, 0.044647216796875, -0.007183074951171875, 0.00409698486328125, -0.016815185546875, -0.001453399658203125, 0.016632080078125, -0.0010919570922851562, 0.0166015625, -0.016357421875, -0.01491546630859375, 0.004947662353515625, 0.0029888153076171875, 0.00478363037109375, 0.030487060546875, -0.0233917236328125, -0.009124755859375, 0.00039267539978027344, 0.0211944580078125, 0.08477783203125, 0.03240966796875, 0.01238250732421875, -0.006290435791015625, -0.0277862548828125, -0.0049285888671875, -0.064208984375, -0.0221099853515625, -0.034759521484375, -0.024261474609375, -0.07379150390625, 0.033172607421875, -0.040283203125, 0.0014629364013671875, 0.046417236328125 ]
c8dff1f26f2838f59c4b29de998dd42598694df6
Wordpress Stackexchange Q: set_post_thumbnail_size not cropping featured images, but reducing proportionally In my function file, I set the following: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 50, true ); } And in the loop: <?php the_post_thumbnail(); ?> But the images are resized proportionally, using the smallest value. The crop is not working. UPDATE I change the function: function resize_thumb () { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 280, 80, true ); } add_action ( 'after_setup_theme', 'resize_thumb' ); But the desire crop not happens. SOLVED In functions.php, I add just this line: add_image_size( 'thumbnail-news', '190', '40', true ); And in the loop I add this line <?php the_post_thumbnail( 'thumbnail-news' ); ?> To resize old images, I use Regenerate Thumbnails plugin. A: Contrary to Pieter, I'd say your if statement is correct (although, unnecessary). If it's a WordPress theme, then add_theme_support will likely exist! Have you per chance added the images before setting the post thumbnail size? If so, you need to regenerate your images: http://wordpress.org/plugins/regenerate-thumbnails/
Q: set_post_thumbnail_size not cropping featured images, but reducing proportionally In my function file, I set the following: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 50, true ); } And in the loop: <?php the_post_thumbnail(); ?> But the images are resized proportionally, using the smallest value. The crop is not working. UPDATE I change the function: function resize_thumb () { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 280, 80, true ); } add_action ( 'after_setup_theme', 'resize_thumb' ); But the desire crop not happens. SOLVED In functions.php, I add just this line: add_image_size( 'thumbnail-news', '190', '40', true ); And in the loop I add this line <?php the_post_thumbnail( 'thumbnail-news' ); ?> To resize old images, I use Regenerate Thumbnails plugin. A: Contrary to Pieter, I'd say your if statement is correct (although, unnecessary). If it's a WordPress theme, then add_theme_support will likely exist! Have you per chance added the images before setting the post thumbnail size? If so, you need to regenerate your images: http://wordpress.org/plugins/regenerate-thumbnails/
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:443380", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138363" }
[ 0.035614013671875, -0.0244903564453125, 0.0523681640625, 0.0195465087890625, -0.005596160888671875, -0.01497650146484375, 0.07464599609375, -0.054962158203125, 0.0307464599609375, -0.01218414306640625, -0.047271728515625, 0.005924224853515625, -0.0235748291015625, -0.016937255859375, -0.0259857177734375, -0.02313232421875, 0.06756591796875, -0.0648193359375, 0.0173492431640625, -0.0133056640625, 0.0182952880859375, 0.04730224609375, 0.03057861328125, 0.0975341796875, -0.0168914794921875, -0.004375457763671875, 0.08050537109375, -0.04022216796875, -0.0253753662109375, -0.0430908203125, 0.00624847412109375, 0.0275115966796875, 0.004238128662109375, 0.006137847900390625, -0.00011676549911499023, 0.00983428955078125, 0.04058837890625, -0.023406982421875, -0.0006227493286132812, 0.022552490234375, 0.01288604736328125, -0.00011789798736572266, 0.0119476318359375, -0.007648468017578125, -0.00830078125, -0.037322998046875, 0.013397216796875, -0.0360107421875, -0.0163421630859375, -0.00302886962890625, 0.0123138427734375, -0.0157623291015625, 0.046142578125, -0.055450439453125, -0.015899658203125, -0.033721923828125, -0.05859375, 0.06524658203125, 0.032440185546875, -0.016204833984375, -0.02081298828125, 0.00015044212341308594, 0.0062103271484375, 0.0101776123046875, -0.00510406494140625, 0.0138397216796875, -0.007404327392578125, -0.009521484375, -0.0249786376953125, 0.003116607666015625, 0.02978515625, -0.041961669921875, -0.01177978515625, -0.0179290771484375, -0.008941650390625, 0.02716064453125, -0.018341064453125, -0.017364501953125, 0.0091094970703125, 0.0033092498779296875, 0.021636962890625, -0.02264404296875, -0.00150299072265625, 0.01010894775390625, 0.0090179443359375, 0.029144287109375, -0.0043487548828125, -0.0247344970703125, -0.047393798828125, -0.005084991455078125, -0.018218994140625, -0.0450439453125, -0.07568359375, 0.03057861328125, 0.03033447265625, -0.021209716796875, 0.058929443359375, 0.04693603515625, -0.0194244384765625, -0.0190887451171875, 0.018768310546875, -0.04913330078125, 0.035400390625, -0.036712646484375, 0.03131103515625, 0.034576416015625, -0.0237274169921875, -0.037628173828125, 0.033843994140625, 0.0330810546875, -0.0007066726684570312, 0.044525146484375, 0.01284027099609375, -0.0102691650390625, -0.034820556640625, 0.0011358261108398438, -0.01849365234375, 0.01218414306640625, 0.00809478759765625, 0.00505828857421875, 0.0201263427734375, 0.038726806640625, -0.005817413330078125, -0.03924560546875, 0.019317626953125, 0.007358551025390625, -0.035797119140625, -0.0243072509765625, 0.0180206298828125, 0.059417724609375, -0.037200927734375, -0.0022945404052734375, 0.0264434814453125, -0.01189422607421875, -0.00975799560546875, -0.0262603759765625, 0.003101348876953125, -0.061614990234375, -0.035919189453125, 0.03131103515625, -0.0244903564453125, 0.00018846988677978516, 0.0404052734375, -0.047393798828125, 0.038909912109375, -0.0158538818359375, -0.005260467529296875, 0.040557861328125, 0.034515380859375, -0.031982421875, 0.055084228515625, -0.037353515625, 0.028411865234375, 0.0208282470703125, -0.0032100677490234375, -0.031494140625, 0.055999755859375, -0.041168212890625, 0.00015687942504882812, -0.05718994140625, 0.0506591796875, -0.0223846435546875, -0.0300445556640625, -0.0296630859375, -0.06329345703125, 0.034515380859375, -0.0745849609375, 0.000392913818359375, 0.0308990478515625, 0.03302001953125, 0.011077880859375, 0.004467010498046875, 0.047210693359375, 0.02117919921875, -0.007411956787109375, 0.01020050048828125, 0.019256591796875, -0.002002716064453125, 0.01560211181640625, 0.0577392578125, -0.0005254745483398438, -0.01358795166015625, 0.047576904296875, -0.01910400390625, 0.0185546875, -0.037200927734375, 0.005573272705078125, -0.0195770263671875, 0.0137481689453125, 0.02374267578125, -0.0272979736328125, 0.0036144256591796875, -0.03271484375, 0.036529541015625, 0.004428863525390625, -0.0210418701171875, -0.034210205078125, -0.018646240234375, -0.00528717041015625, -0.006195068359375, 0.047943115234375, -0.000008046627044677734, 0.0224456787109375, -0.014801025390625, -0.044097900390625, 0.029144287109375, -0.038604736328125, 0.04107666015625, -0.00949859619140625, 0.0025787353515625, 0.0112152099609375, -0.006359100341796875, -0.0289154052734375, 0.001129150390625, -0.033599853515625, 0.002330780029296875, -0.0022792816162109375, -0.00691986083984375, -0.00807952880859375, 0.057586669921875, -0.02850341796875, -0.0194854736328125, -0.046661376953125, 0.02337646484375, 0.04351806640625, -0.006988525390625, -0.0243377685546875, -0.0211181640625, -0.0225982666015625, 0.0017070770263671875, -0.053955078125, 0.0753173828125, -0.0355224609375, 0.0046844482421875, -0.007595062255859375, -0.0168609619140625, -0.0028057098388671875, -0.05487060546875, 0.031646728515625, 0.0386962890625, 0.029937744140625, 0.04815673828125, -0.0125732421875, -0.02545166015625, 0.110107421875, 0.040740966796875, 0.023284912109375, -0.032806396484375, 0.0009627342224121094, 0.0144195556640625, 0.037017822265625, -0.0240020751953125, 0.0038356781005859375, -0.0625, 0.0225067138671875, 0.0098876953125, -0.029815673828125, 0.0265350341796875, -0.0302276611328125, 0.021820068359375, -0.006465911865234375, 0.016082763671875, 0.01427459716796875, -0.01451873779296875, 0.004436492919921875, 0.016204833984375, 0.01345062255859375, 0.004337310791015625, -0.0224761962890625, 0.025146484375, 0.0127410888671875, -0.039154052734375, 0.00859832763671875, 0.030853271484375, -0.046112060546875, 0.0122222900390625, -0.041748046875, 0.0179290771484375, 0.0208740234375, 0.00484466552734375, -0.0034503936767578125, 0.033905029296875, -0.047027587890625, -0.006229400634765625, -0.0186309814453125, -0.043792724609375, -0.00446319580078125, 0.039825439453125, 0.041351318359375, 0.0037631988525390625, 0.0026264190673828125, 0.037139892578125, -0.01184844970703125, 0.07489013671875, -0.00786590576171875, -0.0097808837890625, -0.00844573974609375, -0.0623779296875, 0.068603515625, -0.035003662109375, 0.06829833984375, 0.09271240234375, -0.00616455078125, 0.037872314453125, 0.0033473968505859375, -0.018218994140625, -0.0132904052734375, 0.03399658203125, 0.004787445068359375, -0.044769287109375, 0.00038909912109375, 0.01242828369140625, 0.020477294921875, 0.046875, -0.0286407470703125, -0.03326416015625, 0.00814056396484375, 0.0305938720703125, -0.015869140625, 0.0002887248992919922, 0.006679534912109375, -0.09796142578125, -0.02789306640625, -0.0228118896484375, -0.0623779296875, 0.01113128662109375, 0.005359649658203125, -0.0003800392150878906, -0.03765869140625, -0.0171051025390625, -0.0214691162109375, -0.065185546875, -0.06060791015625, -0.034454345703125, 0.003673553466796875, 0.022369384765625, 0.018341064453125, 0.019134521484375, 0.0046844482421875, -0.0426025390625, 0.0120086669921875, 0.031951904296875, -0.0033931732177734375, 0.0093994140625, 0.0149383544921875, 0.0119171142578125, -0.0188140869140625, -0.0023288726806640625, 0.04034423828125, 0.0626220703125, -0.06787109375, 0.006153106689453125, -0.048309326171875, -0.0242462158203125, -0.05291748046875, 0.07257080078125, 0.09185791015625, -0.045806884765625, 0.008758544921875, -0.053314208984375, -0.04150390625, -0.042205810546875, -0.078125, 0.0419921875, 0.06317138671875, 0.01267242431640625, -0.01212310791015625, 0.01357269287109375, 0.021636962890625, 0.037261962890625, 0.021697998046875, 0.01259613037109375, 0.03515625, -0.00656890869140625, -0.0091705322265625, -0.04644775390625, -0.0303802490234375, -0.0369873046875, 0.0791015625, -0.0083770751953125, 0.02032470703125, -0.0010976791381835938, 0.03948974609375, -0.0264892578125, -0.0311431884765625, 0.02789306640625, 0.0046539306640625, 0.01114654541015625, 0.0027866363525390625, -0.020263671875, 0.016021728515625, 0.057037353515625, -0.07525634765625, -0.03240966796875, -0.01375579833984375, 0.039337158203125, 0.0139923095703125, -0.05291748046875, 0.0146636962890625, -0.034149169921875, -0.0880126953125, -0.01560211181640625, 0.01983642578125, -0.06500244140625, -0.001377105712890625, 0.0232696533203125, -0.06268310546875, -0.0135498046875, 0.0104217529296875, 0.007007598876953125, 0.002323150634765625, 0.0360107421875, -0.0153656005859375, 0.047637939453125, -0.0021877288818359375, -0.02874755859375, -0.11334228515625, -0.0194091796875, -0.00174713134765625, 0.07745361328125, -0.0341796875, 0.0333251953125, -0.05682373046875, 0.040771484375, -0.00946044921875, -0.0069122314453125, 0.024658203125, 0.0161590576171875, 0.018035888671875, 0.0260009765625, 0.01953125, -0.01219940185546875, -0.0206756591796875, -0.04962158203125, -0.0218505859375, -0.0240936279296875, -0.0294647216796875, 0.01190948486328125, -0.021087646484375, 0.00897216796875, -0.036041259765625, 0.0001418590545654297, 0.010223388671875, 0.0204010009765625, 0.0003941059112548828, -0.006626129150390625, -0.032012939453125, -0.02679443359375, 0.06353759765625, -0.01493072509765625, 0.0034694671630859375, -0.0015649795532226562, 0.09747314453125, 0.0013971328735351562, -0.015716552734375, -0.058502197265625, 0.00701141357421875, 0.034423828125, 0.0202178955078125, 0.031707763671875, 0.007427215576171875, -0.0141143798828125, 0.0004992485046386719, 0.0208282470703125, -0.0345458984375, -0.0167694091796875, 0.04193115234375, -0.00894927978515625, -0.0181427001953125, -0.0084686279296875, -0.034515380859375, 0.06536865234375, 0.02728271484375, -0.0017747879028320312, -0.002498626708984375, 0.00608062744140625, 0.01439666748046875, -0.00281524658203125, -0.021392822265625, -0.030487060546875, -0.0154571533203125, -0.00024700164794921875, -0.00725555419921875, 0.04644775390625, 0.0277862548828125, -0.01287078857421875, 0.01763916015625, 0.020782470703125, 0.01287078857421875, -0.0029544830322265625, -0.006565093994140625, 0.0012989044189453125, 0.041290283203125, 0.01340484619140625, 0.0202178955078125, -0.00473785400390625, 0.01239013671875, -0.0039825439453125, 0.00968170166015625, -0.00589752197265625, -0.08209228515625, 0.02398681640625, 0.0240020751953125, -0.03570556640625, -0.018646240234375, 0.058868408203125, 0.04351806640625, -0.02410888671875, -0.01416778564453125, -0.040740966796875, 0.0005435943603515625, -0.0687255859375, -0.0152740478515625, 0.0194549560546875, -0.02838134765625, 0.07275390625, -0.0268096923828125, 0.013092041015625, 0.0185394287109375, -0.0150909423828125, 0.032501220703125, 0.045257568359375, 0.003932952880859375, 0.02001953125, 0.0199737548828125, -0.037811279296875, 0.01163482666015625, -0.01111602783203125, -0.0157623291015625, -0.016845703125, 0.01739501953125, 0.02081298828125, -0.054840087890625, -0.01300811767578125, 0.032135009765625, 0.0202789306640625, 0.006839752197265625, -0.01739501953125, -0.0204315185546875, -0.04736328125, 0.0265960693359375, 0.054901123046875, 0.0200653076171875, -0.0249786376953125, -0.045928955078125, 0.0210418701171875, -0.031890869140625, 0.006710052490234375, 0.003566741943359375, -0.045745849609375, 0.032196044921875, 0.037139892578125, -0.016754150390625, -0.020294189453125, -0.039581298828125, 0.06329345703125, 0.0036334991455078125, -0.013458251953125, -0.0161895751953125, 0.046661376953125, -0.045440673828125, -0.011383056640625, -0.00435638427734375, 0.021331787109375, -0.0127716064453125, 0.0239410400390625, 0.018035888671875, 0.0079193115234375, -0.02850341796875, -0.010284423828125, -0.041259765625, -0.018402099609375, 0.034698486328125, 0.01953125, -0.0316162109375, -0.021331787109375, 0.032379150390625, 0.02874755859375, -0.01337432861328125, -0.0423583984375, 0.0005335807800292969, 0.003047943115234375, 0.033843994140625, 0.038055419921875, 0.0015468597412109375, -0.014373779296875, 0.007122039794921875, 0.04296875, 0.005962371826171875, -0.01036834716796875, -0.005100250244140625, -0.037384033203125, -0.0248870849609375, -0.034576416015625, 0.0101318359375, 0.0323486328125, -0.01947021484375, 0.0076904296875, 0.049407958984375, 0.00936126708984375, -0.0164794921875, -0.029296875, -0.0157470703125, -0.042236328125, 0.054107666015625, -0.0237274169921875, -0.0236358642578125, -0.0008349418640136719, -0.04241943359375, 0.0172271728515625, 0.010345458984375, 0.0133209228515625, -0.0034923553466796875, -0.0509033203125, -0.00537109375, 0.07147216796875, 0.0031452178955078125, 0.0274505615234375, 0.07476806640625, -0.0176239013671875, 0.023162841796875, 0.019805908203125, -0.01294708251953125, 0.008941650390625, 0.00873565673828125, 0.01273345947265625, 0.020233154296875, 0.040679931640625, -0.0023651123046875, 0.010223388671875, -0.002498626708984375, -0.02117919921875, 0.00885772705078125, 0.006561279296875, 0.0294189453125, -0.0193634033203125, 0.01483917236328125, 0.00799560546875, -0.012451171875, 0.034210205078125, -0.0188446044921875, 0.01287078857421875, 0.0112762451171875, 0.07177734375, -0.0318603515625, -0.0201873779296875, 0.01546478271484375, -0.0187835693359375, -0.0267181396484375, -0.0015249252319335938, -0.044586181640625, 0.0117340087890625, -0.04583740234375, 0.0153961181640625, 0.03643798828125, -0.020050048828125, 0.0111846923828125, 0.0233306884765625, -0.05712890625, -0.00754547119140625, -0.023162841796875, -0.023040771484375, -0.03448486328125, -0.005584716796875, 0.00991058349609375, 0.01184844970703125, 0.0065155029296875, 0.035308837890625, -0.01319122314453125, 0.0216064453125, 0.01227569580078125, -0.045166015625, 0.008392333984375, -0.00583648681640625, 0.045166015625, 0.0020809173583984375, -0.0287322998046875, 0.0194549560546875, -0.02325439453125, -0.0207672119140625, -0.0079803466796875, -0.00783538818359375, 0.038421630859375, -0.0201263427734375, -0.017974853515625, 0.011627197265625, 0.053955078125, 0.01084136962890625, -0.02630615234375, 0.036041259765625, -0.085205078125, -0.0275421142578125, -0.0060577392578125, -0.0021419525146484375, 0.0195465087890625, -0.0182952880859375, -0.038330078125, 0.064208984375, -0.0233612060546875, 0.0095672607421875, -0.0008292198181152344, 0.029937744140625, 0.006053924560546875, 0.0286102294921875, -0.0094757080078125, -0.0037136077880859375, -0.056976318359375, -0.007488250732421875, -0.0037174224853515625, 0.054046630859375, -0.0126800537109375, -0.040924072265625, 0.03466796875, 0.01050567626953125, -0.064697265625, -0.010589599609375, 0.07501220703125, 0.0697021484375, 0.04150390625, 0.0277862548828125, -0.04034423828125, -0.024505615234375, 0.0086822509765625, -0.0208282470703125, 0.016876220703125, 0.0012159347534179688, -0.047210693359375, -0.006809234619140625, 0.0002722740173339844, 0.01727294921875, -0.00815582275390625, 0.02667236328125, -0.05535888671875, -0.01142120361328125, 0.047882080078125, -0.060333251953125, 0.04290771484375, 0.01153564453125, 0.0277099609375, 0.03118896484375, -0.036956787109375, 0.006450653076171875, 0.029327392578125, 0.012847900390625, 0.0478515625, -0.004486083984375, 0.01617431640625, 0.050506591796875, -0.019287109375, 0.0246124267578125, 0.0450439453125, -0.039825439453125, -0.00724029541015625, 0.0242462158203125, 0.00604248046875, -0.007389068603515625, 0.0224609375, 0.023284912109375, -0.01088714599609375, -0.032501220703125, -0.0138397216796875, 0.0028743743896484375, 0.01364898681640625, 0.0037784576416015625, -0.011016845703125, -0.01433563232421875, -0.030426025390625, 0.011016845703125, -0.0484619140625, 0.00170135498046875, 0.0498046875, 0.035858154296875, -0.00182342529296875, -0.00885009765625, -0.04852294921875, -0.00823211669921875, -0.019287109375, 0.003997802734375, 0.031768798828125, 0.02337646484375, -0.007152557373046875, 0.027069091796875, 0.018402099609375, 0.01163482666015625, -0.0049285888671875, 0.0193939208984375, -0.0169830322265625, 0.00907135009765625, 0.0020847320556640625, -0.012603759765625, -0.017669677734375, 0.028900146484375, -0.0008482933044433594, -0.0147857666015625, 0.0257415771484375, 0.0033740997314453125, -0.08221435546875, -0.0131988525390625, 0.023101806640625, -0.048553466796875, -0.007732391357421875, -0.037750244140625, 0.038238525390625, 0.0196075439453125, 0.007785797119140625, -0.00994110107421875, 0.01224517822265625, 0.02471923828125, -0.020233154296875, 0.0201568603515625, 0.0045623779296875, -0.02960205078125, 0.0219879150390625, -0.00978851318359375, 0.0843505859375, 0.010955810546875, -0.049591064453125, -0.005489349365234375, -0.03448486328125, -0.0447998046875, 0.040313720703125, 0.030548095703125, -0.039642333984375, 0.03369140625, 0.032623291015625, -0.007843017578125, 0.0205078125, -0.0142822265625, 0.01319122314453125, 0.0018739700317382812, 0.0295562744140625, 0.018035888671875, -0.05023193359375, -0.0277099609375, -0.02056884765625, 0.038299560546875, -0.013275146484375, 0.08990478515625, -0.02825927734375, 0.01192474365234375, 0.01174163818359375, 0.006000518798828125, 0.006988525390625, 0.004055023193359375, 0.0304107666015625, 0.01068878173828125, 0.005252838134765625, -0.0261383056640625, 0.004955291748046875, -0.019927978515625, 0.037567138671875, -0.045806884765625, -0.030517578125, -0.0204315185546875, 0.0176239013671875, 0.007472991943359375, -0.01274871826171875, -0.033477783203125, -0.0458984375, -0.03631591796875, -0.003719329833984375, 0.00923919677734375, 0.0165557861328125, 0.00630950927734375, 0.0100860595703125, 0.035980224609375, 0.03558349609375, 0.019378662109375, 0.030426025390625, 0.040496826171875, 0.0465087890625, -0.0535888671875, -0.055328369140625, 0.01009368896484375, 0.005420684814453125, -0.022247314453125, 0.0277252197265625, 0.033599853515625, 0.0219573974609375, 0.0106964111328125, 0.0283355712890625, -0.001293182373046875, 0.018341064453125, -0.045928955078125, -0.0258636474609375, 0.0307464599609375, -0.0014772415161132812, -0.02056884765625, 0.0092926025390625, -0.024688720703125, -0.026275634765625, -0.008819580078125, 0.0158843994140625, 0.0009851455688476562, -0.005084991455078125, -0.0291748046875, 0.016357421875, 0.038116455078125, 0.026824951171875, -0.06451416015625, 0.06951904296875, -0.0001742839813232422, -0.0030231475830078125, 0.0157928466796875, -0.047637939453125, 0.016815185546875, 0.0546875, -0.0020923614501953125, -0.03533935546875, -0.0187835693359375, 0.00662994384765625, -0.0195465087890625, 0.043365478515625, 0.06756591796875, -0.047149658203125, -0.02276611328125, 0.029083251953125, 0.0305328369140625, 0.07244873046875, 0.0020809173583984375, -0.039306640625, 0.004611968994140625, -0.005031585693359375, 0.01361083984375, -0.04376220703125, -0.004192352294921875, -0.07989501953125, 0.0102081298828125, -0.032196044921875, -0.00045680999755859375, -0.004772186279296875, -0.033416748046875, -0.0421142578125, 0.0182952880859375, -0.0084075927734375, -0.0203857421875, -0.0293121337890625, -0.0202178955078125, -0.01153564453125, 0.044281005859375, 0.01303863525390625, -0.018890380859375, -0.0302886962890625, 0.034912109375, -0.01561737060546875, 0.0024127960205078125, 0.0274505615234375, -0.022247314453125, 0.00989532470703125, 0.015777587890625, 0.037139892578125, -0.03875732421875, 0.0269317626953125, -0.02227783203125, 0.057373046875, 0.06964111328125, -0.0037250518798828125, -0.040557861328125, -0.01904296875, -0.07183837890625, -0.01537322998046875, -0.0201873779296875, -0.033905029296875, -0.0198211669921875, 0.036712646484375, 0.04095458984375, 0.007396697998046875, -0.0174560546875, -0.0236053466796875, -0.04620361328125, -0.02239990234375, -0.0173187255859375, 0.016265869140625, -0.06890869140625, -0.005573272705078125, 0.0118560791015625, 0.0019407272338867188, -0.0014619827270507812, -0.024383544921875, -0.0288848876953125, -0.015533447265625, -0.034332275390625, 0.00678253173828125, -0.0526123046875, 0.041229248046875, 0.043701171875, -0.043243408203125, -0.00673675537109375, -0.0004658699035644531, -0.004566192626953125, 0.0211029052734375, -0.0143890380859375, 0.0010042190551757812, 0.044921875, -0.01258087158203125, 0.004001617431640625, 0.015380859375, -0.0031337738037109375, -0.0017900466918945312, 0.0189971923828125, 0.0010890960693359375, 0.000286102294921875, 0.007358551025390625, 0.0107269287109375, 0.01363372802734375, -0.020751953125, -0.01158905029296875, -0.0121612548828125, -0.01279449462890625, -0.03704833984375, -0.0294036865234375, 0.02862548828125, 0.00044345855712890625, -0.00628662109375, 0.02471923828125, -0.006504058837890625, 0.0080413818359375, 0.004993438720703125, -0.016510009765625, -0.011260986328125, 0.004852294921875, -0.0080413818359375, -0.014434814453125, 0.00814056396484375 ]
d9f34a8e9a53ab451254b57f6ae1fc5ce1bf1ac4
Wordpress Stackexchange Q: Default value for add_settings_field I'm creating a simple settings page by following these instructions. Since this is a custom plugin, I'd like one of my settings to start with a predefined value (that can later be changed). What is the recommended way to set a default value for a setting added with add_settings_field? A: if ( get_option( 'my_setting' ) === false ) // Nothing yet saved update_option( 'my_setting', 'default_stuff' );
Q: Default value for add_settings_field I'm creating a simple settings page by following these instructions. Since this is a custom plugin, I'd like one of my settings to start with a predefined value (that can later be changed). What is the recommended way to set a default value for a setting added with add_settings_field? A: if ( get_option( 'my_setting' ) === false ) // Nothing yet saved update_option( 'my_setting', 'default_stuff' );
wordpress
{ "language": "en", "length": 71, "provenance": "stackexchange_00019.jsonl.gz:443382", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138383" }
[ 0.0190582275390625, -0.00372314453125, 0.0256805419921875, -0.0111236572265625, -0.0169677734375, 0.005702972412109375, 0.0170440673828125, -0.04266357421875, 0.004146575927734375, -0.037506103515625, -0.0275726318359375, 0.0198974609375, -0.0794677734375, -0.026885986328125, 0.002216339111328125, -0.060302734375, 0.031646728515625, 0.0017108917236328125, 0.033416748046875, -0.01427459716796875, 0.01216888427734375, 0.00948333740234375, 0.01511383056640625, 0.0643310546875, 0.05206298828125, -0.044769287109375, -0.01385498046875, 0.0006489753723144531, 0.025634765625, -0.0001310110092163086, 0.03314208984375, -0.0124664306640625, 0.01202392578125, -0.002208709716796875, 0.02374267578125, 0.01470947265625, 0.03424072265625, -0.00911712646484375, 0.007030487060546875, 0.036956787109375, 0.049346923828125, -0.022186279296875, -0.0177001953125, 0.050689697265625, -0.0276336669921875, -0.060150146484375, 0.0736083984375, -0.0013217926025390625, 0.0096893310546875, -0.05548095703125, 0.020050048828125, 0.01849365234375, 0.03204345703125, -0.06280517578125, -0.0182647705078125, -0.006732940673828125, 0.016632080078125, -0.00902557373046875, 0.05340576171875, -0.0030879974365234375, -0.039825439453125, -0.032806396484375, 0.0251922607421875, -0.0452880859375, 0.049957275390625, -0.0279388427734375, -0.03326416015625, 0.04510498046875, -0.029754638671875, 0.05413818359375, 0.051910400390625, -0.050018310546875, 0.014312744140625, -0.023651123046875, -0.03814697265625, -0.0187225341796875, 0.01511383056640625, -0.02294921875, 0.031402587890625, -0.0265045166015625, 0.032562255859375, -0.0191802978515625, 0.039581298828125, -0.034637451171875, 0.021514892578125, -0.0218505859375, 0.0016374588012695312, -0.007419586181640625, -0.0029888153076171875, -0.03759765625, 0.0017061233520507812, -0.0212554931640625, 0.0050201416015625, -0.0173187255859375, -0.0290069580078125, -0.032318115234375, 0.00612640380859375, 0.04437255859375, -0.0107574462890625, 0.006290435791015625, -0.005970001220703125, -0.01068878173828125, -0.01044464111328125, -0.01451873779296875, -0.0011730194091796875, 0.007602691650390625, -0.00823974609375, -0.06378173828125, -0.0115966796875, 0.0295562744140625, -0.040771484375, -0.0158843994140625, 0.0160980224609375, -0.002590179443359375, -0.0245361328125, -0.02703857421875, -0.0216827392578125, 0.0146484375, -0.01262664794921875, -0.006862640380859375, 0.0255126953125, 0.0189056396484375, -0.001194000244140625, -0.0215301513671875, 0.0102691650390625, -0.02020263671875, -0.046722412109375, -0.005374908447265625, -0.044586181640625, 0.017333984375, -0.03314208984375, 0.01012420654296875, 0.08624267578125, 0.047882080078125, 0.01056671142578125, -0.02349853515625, 0.00960540771484375, -0.055755615234375, 0.0001518726348876953, 0.034332275390625, -0.0123291015625, -0.03875732421875, 0.0144195556640625, -0.00495147705078125, -0.010223388671875, 0.0092926025390625, 0.009124755859375, 0.034576416015625, -0.025360107421875, -0.04644775390625, 0.03997802734375, -0.0279083251953125, 0.0203094482421875, -0.0107879638671875, -0.01485443115234375, 0.01457977294921875, -0.022674560546875, 0.005706787109375, -0.024261474609375, 0.005496978759765625, -0.0295257568359375, -0.018218994140625, 0.00746917724609375, -0.0249481201171875, -0.033172607421875, 0.0260009765625, -0.01032257080078125, 0.0028095245361328125, 0.01305389404296875, -0.01187896728515625, 0.0193328857421875, 0.03558349609375, -0.0307769775390625, -0.00363922119140625, 0.01788330078125, -0.0179901123046875, 0.0006260871887207031, -0.00489044189453125, 0.01849365234375, 0.0093231201171875, -0.022796630859375, -0.0316162109375, -0.018890380859375, 0.002044677734375, -0.042999267578125, 0.029876708984375, -0.032073974609375, 0.0253753662109375, 0.05596923828125, -0.0088348388671875, -0.0081634521484375, -0.014801025390625, -0.0498046875, -0.0295257568359375, 0.01155853271484375, 0.0308837890625, -0.03533935546875, 0.0002808570861816406, -0.0005736351013183594, -0.0036640167236328125, -0.0128021240234375, -0.0237579345703125, 0.017486572265625, 0.029083251953125, 0.0012369155883789062, -0.0214080810546875, 0.007801055908203125, -0.003787994384765625, 0.0050811767578125, -0.019775390625, -0.005828857421875, -0.0458984375, 0.037872314453125, -0.079833984375, -0.058929443359375, 0.025421142578125, -0.0198822021484375, 0.03375244140625, 0.0029239654541015625, 0.0323486328125, 0.0025196075439453125, -0.0301513671875, 0.00586700439453125, 0.0107574462890625, 0.0138397216796875, 0.00043392181396484375, -0.02362060546875, -0.0172271728515625, 0.04339599609375, -0.0287322998046875, 0.045166015625, 0.048309326171875, -0.01309967041015625, -0.0219268798828125, -0.02197265625, 0.00630950927734375, -0.0057220458984375, -0.06524658203125, 0.010223388671875, 0.05438232421875, 0.01554107666015625, 0.01325225830078125, -0.0223388671875, -0.009918212890625, 0.0352783203125, -0.005523681640625, 0.0232086181640625, -0.01186370849609375, 0.039398193359375, 0.0682373046875, -0.0091705322265625, -0.035980224609375, 0.0035610198974609375, -0.0628662109375, 0.0213775634765625, 0.0122528076171875, -0.058013916015625, -0.041229248046875, 0.037872314453125, -0.01971435546875, 0.0020122528076171875, -0.036102294921875, 0.0023345947265625, -0.01495361328125, 0.04486083984375, 0.01007080078125, 0.01473236083984375, 0.01464080810546875, -0.0175628662109375, 0.047271728515625, 0.012237548828125, -0.09869384765625, -0.005619049072265625, -0.00910186767578125, 0.0072479248046875, -0.034088134765625, -0.042877197265625, 0.0164642333984375, -0.005130767822265625, -0.03546142578125, -0.007843017578125, 0.01293182373046875, -0.046356201171875, -0.0184783935546875, 0.00408935546875, -0.0518798828125, -0.00885772705078125, 0.011993408203125, 0.00890350341796875, -0.0284423828125, 0.0203399658203125, -0.0158843994140625, -0.0487060546875, 0.02838134765625, -0.01549530029296875, -0.06158447265625, -0.003948211669921875, -0.04156494140625, 0.031646728515625, -0.06024169921875, 0.01506805419921875, 0.050079345703125, -0.019989013671875, 0.01302337646484375, -0.0030517578125, 0.0180816650390625, -0.0002646446228027344, 0.00043702125549316406, -0.026123046875, 0.00702667236328125, -0.0853271484375, -0.0202178955078125, 0.01071929931640625, 0.038543701171875, -0.00661468505859375, -0.034759521484375, -0.00559234619140625, 0.0255889892578125, -0.02410888671875, -0.020050048828125, 0.005443572998046875, -0.04241943359375, -0.01436614990234375, 0.0004439353942871094, -0.01947021484375, 0.0010929107666015625, 0.0028171539306640625, 0.0042877197265625, -0.00489044189453125, -0.052215576171875, -0.0170745849609375, -0.06793212890625, -0.05718994140625, -0.0288238525390625, 0.0023441314697265625, 0.00939178466796875, 0.002643585205078125, 0.07354736328125, -0.00484466552734375, -0.04296875, -0.007099151611328125, -0.087890625, -0.00494384765625, 0.02716064453125, 0.009429931640625, -0.01605224609375, 0.0222015380859375, 0.006084442138671875, -0.01033782958984375, 0.041168212890625, -0.032958984375, -0.02783203125, -0.0382080078125, -0.0188446044921875, -0.02020263671875, 0.0168304443359375, 0.035491943359375, -0.0168609619140625, -0.007293701171875, -0.04833984375, -0.005466461181640625, 0.0129241943359375, -0.004604339599609375, 0.040435791015625, -0.0153656005859375, -0.0107421875, 0.00916290283203125, 0.04058837890625, -0.054595947265625, -0.0095367431640625, 0.051483154296875, -0.039581298828125, -0.0203399658203125, -0.043365478515625, -0.086669921875, -0.00894927978515625, 0.013763427734375, -0.038360595703125, -0.003108978271484375, 0.00424957275390625, -0.00963592529296875, 0.00405120849609375, -0.01357269287109375, -0.0010118484497070312, -0.042022705078125, 0.03729248046875, -0.021240234375, 0.0233306884765625, -0.045562744140625, -0.0201568603515625, -0.03179931640625, 0.08819580078125, -0.05633544921875, -0.019195556640625, 0.0194854736328125, 0.041229248046875, -0.03912353515625, -0.0638427734375, -0.030975341796875, -0.032470703125, -0.043975830078125, 0.017822265625, 0.0025653839111328125, -0.0197601318359375, -0.040863037109375, 0.01331329345703125, -0.04559326171875, -0.01971435546875, 0.034271240234375, -0.04888916015625, 0.0139312744140625, 0.0169830322265625, 0.01434326171875, -0.0025177001953125, -0.007701873779296875, -0.043914794921875, -0.07830810546875, -0.0187530517578125, 0.0278167724609375, 0.0452880859375, -0.0016851425170898438, -0.03326416015625, -0.0010089874267578125, 0.05279541015625, -0.004314422607421875, -0.0155181884765625, 0.0161895751953125, 0.0198822021484375, -0.0207061767578125, -0.03497314453125, -0.0094757080078125, -0.052642822265625, -0.00206756591796875, -0.0188446044921875, -0.04022216796875, 0.0171356201171875, -0.0126495361328125, 0.0313720703125, 0.00445556640625, -0.032012939453125, -0.0311279296875, -0.025787353515625, -0.03302001953125, 0.0045318603515625, -0.0276947021484375, 0.0076141357421875, -0.0261993408203125, -0.04913330078125, 0.031951904296875, -0.02783203125, 0.005069732666015625, 0.012237548828125, 0.0804443359375, 0.00662994384765625, -0.0025501251220703125, -0.01454925537109375, -0.0323486328125, 0.01483154296875, 0.0149993896484375, 0.01739501953125, -0.0146331787109375, -0.0147552490234375, 0.0743408203125, -0.02093505859375, 0.0188140869140625, -0.07061767578125, 0.0924072265625, -0.028045654296875, -0.0220947265625, 0.03582763671875, -0.047088623046875, 0.024261474609375, 0.02154541015625, -0.0074310302734375, 0.00594329833984375, 0.00951385498046875, -0.0005426406860351562, -0.0287933349609375, 0.0045318603515625, -0.01141357421875, -0.029144287109375, 0.00865936279296875, 0.0288848876953125, 0.005218505859375, 0.0386962890625, -0.0124664306640625, 0.00995635986328125, -0.01285552978515625, -0.01373291015625, -0.025299072265625, 0.022857666015625, 0.01532745361328125, 0.01493072509765625, 0.02020263671875, -0.0052032470703125, -0.0616455078125, -0.019439697265625, 0.0853271484375, -0.0166168212890625, -0.0677490234375, 0.0281524658203125, -0.033721923828125, 0.0200958251953125, 0.0273590087890625, 0.0224456787109375, 0.0360107421875, 0.03338623046875, -0.022186279296875, 0.002803802490234375, 0.003238677978515625, 0.0173797607421875, -0.0438232421875, 0.00984954833984375, 0.033538818359375, -0.01488494873046875, 0.0167083740234375, 0.044677734375, -0.0016613006591796875, 0.0173187255859375, -0.0125274658203125, 0.0225982666015625, 0.037567138671875, -0.0249176025390625, 0.020172119140625, 0.054779052734375, -0.01512908935546875, -0.039154052734375, 0.01105499267578125, -0.00653076171875, -0.021331787109375, -0.0166168212890625, -0.003963470458984375, -0.034423828125, 0.0024871826171875, 0.071533203125, -0.00251007080078125, 0.020843505859375, 0.0020542144775390625, -0.053131103515625, -0.05267333984375, 0.01526641845703125, 0.0301361083984375, 0.016510009765625, -0.05523681640625, 0.0106048583984375, 0.0179901123046875, -0.02398681640625, 0.023834228515625, -0.032318115234375, 0.01386260986328125, -0.036468505859375, -0.032806396484375, -0.0045318603515625, -0.00385284423828125, -0.0185546875, -0.07177734375, -0.045379638671875, -0.00016927719116210938, 0.0066986083984375, 0.0293121337890625, -0.0092010498046875, 0.04901123046875, -0.02496337890625, -0.0160369873046875, -0.00597381591796875, 0.01105499267578125, 0.003429412841796875, -0.0147857666015625, -0.024017333984375, -0.0245513916015625, -0.032440185546875, -0.03594970703125, -0.03009033203125, -0.0215606689453125, -0.035125732421875, 0.004741668701171875, 0.027587890625, 0.0216217041015625, -0.01522064208984375, -0.06146240234375, -0.0001550912857055664, 0.0180816650390625, 0.044952392578125, 0.03851318359375, 0.029266357421875, 0.022247314453125, -0.007175445556640625, 0.06378173828125, 0.018890380859375, -0.0127716064453125, -0.060211181640625, -0.0258026123046875, 0.0175628662109375, 0.0214691162109375, -0.032135009765625, -0.0299072265625, -0.0146331787109375, -0.0254364013671875, 0.053619384765625, -0.0221710205078125, 0.0231475830078125, -0.0095062255859375, -0.0026988983154296875, -0.01459503173828125, 0.0242156982421875, -0.004024505615234375, 0.00366973876953125, 0.035552978515625, -0.01032257080078125, 0.0212860107421875, -0.0146942138671875, -0.00656890869140625, 0.011383056640625, -0.0138092041015625, 0.004833221435546875, 0.0008339881896972656, -0.0570068359375, 0.06817626953125, 0.038055419921875, -0.002948760986328125, 0.0276641845703125, -0.00011587142944335938, 0.0178375244140625, 0.008209228515625, 0.026123046875, -0.03253173828125, -0.0308837890625, 0.0482177734375, 0.032989501953125, -0.0264739990234375, 0.0408935546875, -0.01953125, 0.0364990234375, 0.06439208984375, 0.07720947265625, -0.1182861328125, 0.031951904296875, 0.0176239013671875, -0.0070343017578125, 0.050872802734375, 0.024383544921875, -0.00266265869140625, -0.01041412353515625, 0.0225677490234375, -0.07275390625, -0.01448822021484375, 0.00848388671875, -0.0184478759765625, -0.018768310546875, -0.018524169921875, 0.0013360977172851562, 0.0031452178955078125, -0.0042724609375, 0.0070953369140625, 0.002117156982421875, -0.0157928466796875, 0.01081085205078125, 0.0318603515625, -0.0145111083984375, -0.03277587890625, -0.0855712890625, -0.0301971435546875, -0.0175323486328125, -0.056304931640625, 0.035400390625, -0.0012464523315429688, 0.027679443359375, 0.04400634765625, 0.0160064697265625, -0.0011796951293945312, -0.00966644287109375, 0.006099700927734375, -0.013916015625, -0.038116455078125, 0.0198822021484375, 0.02203369140625, -0.041534423828125, 0.0170440673828125, -0.004108428955078125, -0.0321044921875, -0.00351715087890625, 0.0191497802734375, 0.0703125, -0.043853759765625, -0.01446533203125, 0.00031280517578125, 0.031280517578125, 0.025115966796875, -0.0159759521484375, -0.00943756103515625, -0.025390625, 0.0140380859375, -0.044097900390625, -0.017333984375, 0.035919189453125, -0.04473876953125, -0.0411376953125, 0.0684814453125, -0.018646240234375, -0.0181427001953125, -0.024932861328125, 0.05035400390625, 0.00463104248046875, 0.038818359375, -0.034454345703125, 0.0498046875, 0.038909912109375, 0.0271148681640625, -0.05987548828125, -0.03326416015625, -0.01074981689453125, 0.06134033203125, 0.06793212890625, 0.01235198974609375, 0.0014324188232421875, 0.01465606689453125, 0.053436279296875, -0.0086517333984375, -0.037261962890625, 0.042266845703125, 0.001491546630859375, -0.01459503173828125, 0.05133056640625, -0.00366973876953125, 0.032623291015625, -0.00665283203125, 0.007045745849609375, 0.01190185546875, -0.006938934326171875, 0.004547119140625, -0.0123748779296875, 0.041961669921875, -0.0022449493408203125, -0.02008056640625, 0.01177978515625, -0.06488037109375, 0.0016107559204101562, 0.02935791015625, 0.019256591796875, 0.0452880859375, 0.032562255859375, -0.01023101806640625, 0.0396728515625, 0.01251983642578125, -0.0136566162109375, 0.044281005859375, 0.005321502685546875, 0.0081939697265625, -0.01200103759765625, -0.01476287841796875, -0.01702880859375, 0.0306396484375, 0.0177764892578125, 0.00605010986328125, 0.0068206787109375, -0.0309295654296875, 0.018585205078125, -0.0010747909545898438, 0.01910400390625, -0.040252685546875, -0.031494140625, 0.015594482421875, 0.0002453327178955078, -0.006206512451171875, -0.03515625, -0.027374267578125, -0.057037353515625, -0.0014677047729492188, -0.06658935546875, 0.0186614990234375, 0.035614013671875, 0.0281829833984375, 0.0022182464599609375, 0.0156707763671875, -0.07464599609375, -0.0213775634765625, -0.0316162109375, -0.002361297607421875, -0.01410675048828125, 0.0272064208984375, 0.0274505615234375, 0.039581298828125, 0.031219482421875, -0.0187530517578125, -0.01331329345703125, 0.03558349609375, 0.0286407470703125, 0.0168609619140625, 0.014068603515625, 0.02325439453125, -0.028656005859375, 0.0021839141845703125, 0.0186767578125, 0.03076171875, 0.041595458984375, 0.0013675689697265625, -0.049835205078125, 0.0105438232421875, 0.02264404296875, -0.040771484375, -0.0201873779296875, -0.045440673828125, 0.03729248046875, 0.0362548828125, 0.00638580322265625, 0.0100555419921875, -0.021575927734375, 0.051971435546875, -0.0018787384033203125, -0.003482818603515625, 0.00624847412109375, -0.02569580078125, 0.04425048828125, 0.00968170166015625, 0.048065185546875, 0.024627685546875, -0.00955963134765625, 0.027191162109375, -0.0220489501953125, -0.06097412109375, 0.0029010772705078125, 0.0219879150390625, -0.01560211181640625, 0.02288818359375, -0.0289764404296875, 0.0130157470703125, 0.01497650146484375, -0.03216552734375, 0.001922607421875, -0.01218414306640625, 0.006744384765625, -0.0187225341796875, 0.0026340484619140625, -0.01885986328125, -0.006107330322265625, 0.0394287109375, 0.038726806640625, -0.018463134765625, 0.009979248046875, 0.038726806640625, 0.0193634033203125, -0.015411376953125, 0.041229248046875, 0.0177459716796875, 0.036041259765625, 0.031005859375, -0.00836944580078125, -0.041717529296875, -0.01497650146484375, 0.060699462890625, 0.0015058517456054688, 0.0012083053588867188, 0.01812744140625, 0.0048675537109375, 0.005802154541015625, -0.00252532958984375, 0.030029296875, -0.022430419921875, -0.06475830078125, -0.05242919921875, 0.00995635986328125, 0.005138397216796875, 0.01763916015625, -0.00902557373046875, 0.016876220703125, -0.004436492919921875, 0.00667572021484375, -0.01149749755859375, 0.00812530517578125, -0.024993896484375, 0.031982421875, -0.00507354736328125, -0.0239715576171875, -0.03045654296875, -0.0243072509765625, 0.01214599609375, -0.005069732666015625, 0.0210723876953125, -0.0014562606811523438, -0.0078582763671875, -0.0008206367492675781, -0.006847381591796875, 0.0297698974609375, -0.042266845703125, 0.00560760498046875, -0.0148773193359375, 0.0231170654296875, 0.0295257568359375, -0.02020263671875, -0.01525115966796875, -0.02093505859375, -0.0229949951171875, -0.0019702911376953125, -0.0239715576171875, -0.06744384765625, -0.03314208984375, 0.0294189453125, 0.00988006591796875, -0.04693603515625, 0.0020694732666015625, -0.00382232666015625, -0.040618896484375, 0.05731201171875, -0.043487548828125, -0.057373046875, 0.0172119140625, 0.02130126953125, -0.00682830810546875, -0.01117706298828125, -0.0428466796875, -0.0113372802734375, -0.0179901123046875, 0.03057861328125, 0.055511474609375, -0.01251983642578125, -0.00396728515625, 0.056396484375, 0.007297515869140625, 0.11358642578125, -0.0546875, -0.035888671875, 0.061767578125, -0.038482666015625, -0.0079193115234375, -0.07720947265625, -0.0083160400390625, -0.10418701171875, 0.00887298583984375, -0.060394287109375, 0.009124755859375, 0.02001953125, -0.05169677734375, -0.08099365234375, 0.0643310546875, -0.030670166015625, -0.0235443115234375, -0.00998687744140625, -0.0114898681640625, -0.021270751953125, 0.0298309326171875, 0.019866943359375, -0.0207977294921875, -0.0126953125, 0.02191162109375, 0.021514892578125, -0.003177642822265625, 0.05010986328125, -0.003948211669921875, -0.0904541015625, -0.04888916015625, -0.06402587890625, 0.0231170654296875, 0.04913330078125, -0.050811767578125, 0.0296783447265625, 0.0211029052734375, -0.060882568359375, -0.06744384765625, -0.026580810546875, 0.0023059844970703125, -0.01152801513671875, -0.007793426513671875, -0.030731201171875, 0.003292083740234375, 0.0633544921875, 0.04681396484375, 0.016571044921875, -0.036651611328125, -0.012542724609375, -0.045623779296875, -0.0214996337890625, -0.039642333984375, -0.0020885467529296875, -0.045257568359375, 0.01317596435546875, -0.0216064453125, -0.012298583984375, -0.01367950439453125, -0.0140380859375, -0.01331329345703125, 0.0097503662109375, 0.055389404296875, 0.00424957275390625, -0.028350830078125, 0.00792694091796875, 0.0231475830078125, -0.00789642333984375, 0.03228759765625, 0.002513885498046875, -0.0023365020751953125, 0.0202789306640625, 0.0631103515625, 0.0234222412109375, 0.0035381317138671875, -0.032440185546875, -0.0012178421020507812, 0.0247039794921875, 0.020599365234375, -0.01366424560546875, -0.037200927734375, 0.0014867782592773438, 0.0251617431640625, -0.015625, 0.03448486328125, 0.005847930908203125, 0.04803466796875, 0.012359619140625, 0.0164794921875, -0.007518768310546875, -0.004207611083984375, -0.028228759765625, 0.0452880859375, -0.030853271484375, 0.00450897216796875, -0.026763916015625, 0.0017185211181640625, 0.004619598388671875, 0.01049041748046875, 0.0126953125, -0.04620361328125, 0.057952880859375, -0.0268096923828125, 0.001708984375, 0.025482177734375 ]
2fd3a42d557d1622882677207bd5b88da5eeef12
Wordpress Stackexchange Q: if (is_page(**PAGE ID**)) not working I'm following this tutorial on adding Google Content Experiments code to header.php. I added the following code to header.php: <?php if (is_page('346') ):?> <!-- Google Analytics Content Experiment code --> ... <!-- End of Google Analytics Content Experiment code --> <?php endif; ?> This didn't produce the content experiment code on the front end. I tried: <?php if (is_page(346) ):?> <!-- Google Analytics Content Experiment code --> ... <!-- End of Google Analytics Content Experiment code --> <?php endif; ?> This didn't work either. Can you see why this code is not working? Thanks. A: A simpler solution will be to pass the title or the slug as argument in is_page(). You won't have issues if you duplicate that page on another server. <?php if (is_page( 'Page Title' ) ): # Do your stuff endif; ?>
Q: if (is_page(**PAGE ID**)) not working I'm following this tutorial on adding Google Content Experiments code to header.php. I added the following code to header.php: <?php if (is_page('346') ):?> <!-- Google Analytics Content Experiment code --> ... <!-- End of Google Analytics Content Experiment code --> <?php endif; ?> This didn't produce the content experiment code on the front end. I tried: <?php if (is_page(346) ):?> <!-- Google Analytics Content Experiment code --> ... <!-- End of Google Analytics Content Experiment code --> <?php endif; ?> This didn't work either. Can you see why this code is not working? Thanks. A: A simpler solution will be to pass the title or the slug as argument in is_page(). You won't have issues if you duplicate that page on another server. <?php if (is_page( 'Page Title' ) ): # Do your stuff endif; ?> A: Hooks such as init will not work at all. You have to hook at least on parse_query. Everything bellow will work: is_page(198); # ID (int) is_page('198'); # ID (string) is_page('Some Title'); # Title, case-sensitive is_page('some-title'); # Slug But it must be hooked at least in parse_query or any other hook after it. You can see WordPress hook order here: https://codex.wordpress.org/Plugin_API/Action_Reference A: First you have to know the difference between a page and post. Once you have done that then you can choose whether to use is_page or is_single. If you are dealing with WordPress pages, then write in this way below. Note, this example is using array just in case if you want to implement it in many pages: <?php if (is_page( array( 1, 529, 'or post title' ) ) ) : ?> <!-- Do nothing --> <?php else : ?> <!-- Insert your code here --> <?php endif; ?> But if you need it to take effect also on your posts, then add this lines too: <?php if (is_single( array( 1, 529, 'or post title' ) ) ) : ?> <!-- Do nothing --> <?php else : ?> <!-- Insert your code here --> <?php endif; ?> A: try to use is_single($post) in your case is_single(346) or is_single('346') both should work more here A: For single posts use if ( is_single( '1346' ) ) For single pages use if ( is_page( '1346' ) ) Where '1346' is your post or page ID. is_page will NOT work with single posts and is_single will not work with single pages. A: you can use this for <?php global $post; if( $post->ID == 346) { ?> <!-- do your stuff here --> <?php } ?> you can use this anywhere either in header or anywhere else. A: Please try to remove '' (single quotes) from ID number & it will work: is_page(34) A: function test_run(){ if (is_page( 'Page Title' ) ): //you can use is_page(int post id/slug/title) # Do your stuff endif; } add_action('parse_query', 'test_run'); completing @Lucas Bustamante 's answer
wordpress
{ "language": "en", "length": 480, "provenance": "stackexchange_00019.jsonl.gz:443409", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138473" }
[ 0.02459716796875, -0.007564544677734375, -0.0005373954772949219, 0.0200042724609375, -0.00864410400390625, -0.025634765625, 0.050384521484375, -0.0257415771484375, 0.001556396484375, -0.0019588470458984375, -0.035400390625, 0.005157470703125, -0.03216552734375, -0.0236053466796875, 0.01396942138671875, -0.024993896484375, 0.0272064208984375, -0.0029239654541015625, 0.032379150390625, -0.00936126708984375, 0.0244293212890625, 0.00977325439453125, 0.0015392303466796875, -0.017425537109375, 0.0521240234375, -0.0675048828125, 0.0278167724609375, -0.008575439453125, 0.0295867919921875, -0.025482177734375, 0.038482666015625, 0.0247344970703125, 0.0160064697265625, 0.037872314453125, -0.0310211181640625, 0.031463623046875, 0.0021457672119140625, 0.0106048583984375, 0.00421905517578125, 0.02850341796875, 0.01528167724609375, 0.005062103271484375, 0.041778564453125, 0.037353515625, 0.02630615234375, -0.031036376953125, -0.01050567626953125, -0.09039306640625, -0.025115966796875, 0.0079803466796875, 0.00833892822265625, 0.01666259765625, 0.0018377304077148438, 0.06317138671875, -0.0081329345703125, 0.017974853515625, 0.00360870361328125, -0.0031986236572265625, 0.03594970703125, -0.05804443359375, -0.035003662109375, -0.02105712890625, 0.033294677734375, 0.0037994384765625, 0.0155181884765625, -0.032196044921875, -0.05126953125, 0.04437255859375, -0.0270233154296875, -0.00888824462890625, 0.016693115234375, -0.0272369384765625, 0.00370025634765625, 0.01242828369140625, -0.036102294921875, -0.049652099609375, 0.053497314453125, -0.028656005859375, -0.0282440185546875, 0.0236663818359375, -0.0117034912109375, 0.0426025390625, -0.040252685546875, 0.0005054473876953125, 0.0143280029296875, 0.036834716796875, -0.0281829833984375, -0.037933349609375, 0.00916290283203125, -0.021148681640625, -0.006214141845703125, 0.0310211181640625, 0.041168212890625, -0.024566650390625, -0.063232421875, -0.025909423828125, 0.02423095703125, 0.06488037109375, -0.023162841796875, -0.01026153564453125, 0.0162811279296875, -0.040435791015625, 0.04827880859375, -0.06292724609375, 0.0163726806640625, 0.047271728515625, 0.02874755859375, 0.01299285888671875, 0.02752685546875, -0.015838623046875, -0.00447845458984375, 0.0029010772705078125, -0.04180908203125, 0.0091094970703125, -0.031768798828125, 0.0292510986328125, -0.06500244140625, -0.01898193359375, -0.0266571044921875, 0.01410675048828125, 0.035247802734375, 0.03265380859375, 0.019561767578125, -0.045379638671875, 0.025115966796875, 0.0269317626953125, -0.040435791015625, -0.055145263671875, 0.04229736328125, 0.027496337890625, -0.0447998046875, -0.006450653076171875, 0.041046142578125, 0.03253173828125, 0.01265716552734375, -0.0252838134765625, -0.0218353271484375, -0.0225372314453125, -0.01424407958984375, 0.0140533447265625, -0.04290771484375, -0.05517578125, 0.0311431884765625, -0.037811279296875, 0.0129547119140625, 0.0309600830078125, 0.0306854248046875, 0.0295867919921875, -0.00925445556640625, -0.0765380859375, 0.06732177734375, -0.03509521484375, 0.023223876953125, -0.0025501251220703125, -0.042938232421875, -0.050537109375, -0.026275634765625, -0.0088653564453125, 0.0391845703125, -0.0396728515625, 0.0283050537109375, -0.0170745849609375, 0.01145172119140625, -0.0120697021484375, -0.033966064453125, 0.0142974853515625, -0.08056640625, -0.0156402587890625, 0.00444793701171875, 0.0181732177734375, -0.02471923828125, 0.03973388671875, -0.0195770263671875, 0.01003265380859375, 0.0033245086669921875, -0.01189422607421875, 0.0202789306640625, -0.0135650634765625, 0.0198974609375, 0.0191192626953125, -0.039093017578125, -0.038970947265625, 0.0282440185546875, -0.03912353515625, -0.030426025390625, 0.056640625, 0.0007491111755371094, 0.01151275634765625, -0.0175018310546875, -0.004123687744140625, 0.0428466796875, 0.0601806640625, -0.048004150390625, -0.0018186569213867188, 0.0178375244140625, -0.01629638671875, 0.0302886962890625, 0.011322021484375, 0.00208282470703125, -0.020477294921875, 0.01119232177734375, 0.01654052734375, -0.013275146484375, 0.0178985595703125, -0.0355224609375, -0.0011968612670898438, -0.0110321044921875, 0.01323699951171875, 0.0006189346313476562, 0.027801513671875, 0.01456451416015625, -0.00579071044921875, -0.026397705078125, 0.021392822265625, -0.0172882080078125, -0.009033203125, -0.015228271484375, -0.0019254684448242188, -0.0246429443359375, 0.00942230224609375, -0.036651611328125, 0.01361846923828125, -0.03656005859375, 0.005428314208984375, 0.049530029296875, -0.002361297607421875, -0.021270751953125, -0.0179595947265625, 0.007755279541015625, 0.00408172607421875, -0.04339599609375, 0.041473388671875, 0.070556640625, 0.05035400390625, -0.03533935546875, -0.01285552978515625, 0.0013055801391601562, -0.0257110595703125, 0.005229949951171875, 0.04107666015625, 0.0538330078125, 0.02313232421875, 0.013092041015625, -0.029327392578125, 0.03997802734375, -0.038360595703125, 0.015838623046875, -0.048828125, -0.001239776611328125, 0.0265350341796875, 0.00013768672943115234, 0.040771484375, 0.01338958740234375, -0.004497528076171875, 0.00972747802734375, 0.0335693359375, -0.0187530517578125, 0.0019283294677734375, -0.01129150390625, 0.0279693603515625, -0.024810791015625, 0.042266845703125, 0.049957275390625, -0.0194091796875, 0.047515869140625, -0.0159759521484375, 0.03179931640625, 0.0224456787109375, -0.0020160675048828125, -0.00039267539978027344, -0.0054473876953125, -0.00867462158203125, 0.0218658447265625, 0.058380126953125, 0.01611328125, 0.04376220703125, -0.004047393798828125, -0.0248870849609375, 0.007171630859375, 0.03155517578125, -0.0029888153076171875, 0.028533935546875, -0.014190673828125, -0.02496337890625, 0.0197296142578125, -0.0210113525390625, -0.027374267578125, -0.036865234375, 0.02166748046875, 0.0012607574462890625, 0.027740478515625, 0.0190582275390625, -0.033966064453125, 0.07855224609375, -0.049530029296875, -0.01100921630859375, 0.052520751953125, -0.0220947265625, 0.0139007568359375, -0.0180816650390625, 0.054168701171875, 0.053375244140625, -0.01239776611328125, -0.01058197021484375, -0.00313568115234375, -0.02764892578125, -0.02471923828125, 0.00974273681640625, 0.002719879150390625, 0.0115814208984375, -0.0308837890625, 0.06280517578125, 0.017852783203125, 0.04840087890625, 0.035125732421875, -0.03704833984375, 0.03106689453125, 0.00984954833984375, -0.08087158203125, -0.1419677734375, 0.0188751220703125, -0.03717041015625, -0.0013484954833984375, -0.0089874267578125, -0.02227783203125, 0.0007157325744628906, -0.0024509429931640625, -0.0164642333984375, -0.0250244140625, -0.0250091552734375, -0.032501220703125, -0.057861328125, -0.06622314453125, -0.012939453125, 0.0063018798828125, 0.01922607421875, -0.00589752197265625, -0.0016298294067382812, -0.0196990966796875, -0.038818359375, -0.0011053085327148438, 0.0185394287109375, -0.0053863525390625, -0.0143585205078125, -0.06903076171875, 0.004604339599609375, -0.013885498046875, 0.007068634033203125, 0.006656646728515625, -0.039581298828125, 0.043212890625, -0.0194244384765625, -0.0340576171875, 0.0010309219360351562, 0.0027923583984375, -0.0259552001953125, 0.040863037109375, 0.004730224609375, -0.010345458984375, -0.031951904296875, -0.02764892578125, 0.00244903564453125, -0.06488037109375, -0.0121612548828125, 0.03265380859375, 0.005466461181640625, 0.01345062255859375, -0.0306243896484375, 0.0169525146484375, -0.0070343017578125, 0.0244903564453125, -0.0056915283203125, -0.029937744140625, -0.01544952392578125, -0.007602691650390625, 0.0024566650390625, -0.0052947998046875, -0.0199432373046875, 0.021240234375, -0.006313323974609375, 0.02294921875, -0.005107879638671875, 0.01641845703125, -0.03155517578125, -0.0192718505859375, 0.0133514404296875, -0.01210784912109375, 0.03228759765625, -0.007808685302734375, -0.0199127197265625, 0.0106353759765625, 0.0545654296875, -0.060546875, -0.037445068359375, -0.0164794921875, -0.00102996826171875, 0.0201568603515625, 0.007732391357421875, 0.0209808349609375, -0.0117645263671875, -0.01326751708984375, 0.004581451416015625, 0.01169586181640625, -0.026885986328125, -0.032684326171875, 0.011199951171875, -0.0173492431640625, -0.007232666015625, 0.0164031982421875, 0.04339599609375, -0.0233306884765625, 0.05908203125, -0.0333251953125, 0.05218505859375, -0.030487060546875, -0.002582550048828125, -0.07080078125, -0.00736236572265625, 0.004116058349609375, 0.0198822021484375, 0.02130126953125, -0.052032470703125, -0.0286407470703125, 0.00620269775390625, 0.0245513916015625, 0.01128387451171875, 0.026947021484375, -0.0108795166015625, 0.012542724609375, 0.019195556640625, 0.01116180419921875, -0.033599853515625, -0.0193328857421875, 0.0251617431640625, -0.00069427490234375, 0.060302734375, -0.00714111328125, -0.017730712890625, 0.0233917236328125, -0.03509521484375, -0.045654296875, -0.033355712890625, 0.01038360595703125, -0.0027179718017578125, -0.015869140625, 0.01065826416015625, -0.0251617431640625, -0.05523681640625, 0.03887939453125, -0.0194549560546875, -0.044769287109375, 0.0050811767578125, 0.01132965087890625, 0.01934814453125, -0.030609130859375, -0.0136871337890625, 0.03363037109375, 0.027191162109375, -0.05767822265625, 0.07208251953125, 0.003910064697265625, -0.032684326171875, 0.1185302734375, -0.0187225341796875, 0.0216064453125, -0.030975341796875, 0.089599609375, -0.03118896484375, -0.0225677490234375, 0.0311737060546875, -0.0290679931640625, -0.0187225341796875, -0.01434326171875, -0.033782958984375, -0.015777587890625, 0.0018558502197265625, 0.065185546875, -0.0247802734375, 0.06707763671875, -0.03607177734375, 0.006771087646484375, -0.0104522705078125, 0.019775390625, 0.0270538330078125, 0.01389312744140625, 0.00939178466796875, -0.0221405029296875, -0.0015850067138671875, 0.00962066650390625, 0.03179931640625, 0.0706787109375, -0.02703857421875, 0.017181396484375, 0.0218505859375, -0.02032470703125, -0.027679443359375, 0.00737762451171875, 0.047882080078125, 0.00968170166015625, -0.0198516845703125, -0.0528564453125, 0.003620147705078125, -0.044586181640625, -0.01473236083984375, 0.032867431640625, 0.025970458984375, -0.0237579345703125, -0.004245758056640625, 0.01097869873046875, -0.0073394775390625, -0.00942230224609375, -0.01245880126953125, -0.018707275390625, -0.032257080078125, -0.0203094482421875, 0.00045943260192871094, 0.0273590087890625, -0.026611328125, 0.0261688232421875, -0.0084686279296875, 0.0312347412109375, 0.0386962890625, 0.045928955078125, 0.0121917724609375, -0.018646240234375, -0.021697998046875, 0.041656494140625, -0.004909515380859375, -0.0318603515625, -0.01593017578125, 0.017059326171875, 0.04119873046875, 0.0169525146484375, -0.00832366943359375, -0.00815582275390625, -0.0197906494140625, -0.033782958984375, 0.03656005859375, 0.011810302734375, -0.0693359375, -0.0174560546875, -0.005279541015625, -0.0094451904296875, -0.00742340087890625, -0.00528717041015625, 0.0167083740234375, -0.045166015625, 0.023590087890625, 0.0107269287109375, 0.00667572021484375, -0.007297515869140625, -0.039947509765625, -0.0012216567993164062, -0.0285491943359375, -0.0021076202392578125, 0.006427764892578125, 0.0235595703125, -0.028564453125, -0.0172271728515625, 0.0012187957763671875, 0.00658416748046875, -0.00024318695068359375, -0.0009713172912597656, -0.034027099609375, 0.01080322265625, -0.0201263427734375, 0.0634765625, 0.02056884765625, -0.01385498046875, 0.007442474365234375, -0.053466796875, -0.0219573974609375, -0.00038552284240722656, -0.0216827392578125, -0.0209503173828125, -0.0191802978515625, 0.0115509033203125, 0.038177490234375, -0.0228424072265625, -0.0286407470703125, 0.0054473876953125, 0.033294677734375, 0.02569580078125, 0.07672119140625, -0.03399658203125, 0.075439453125, 0.037689208984375, 0.0211944580078125, 0.01629638671875, 0.0345458984375, 0.00586700439453125, -0.0162353515625, 0.00946044921875, -0.0218048095703125, -0.0113677978515625, -0.0107269287109375, 0.0183258056640625, 0.001544952392578125, 0.034423828125, 0.00750732421875, 0.0207061767578125, -0.00768280029296875, -0.0053863525390625, -0.006526947021484375, -0.0111541748046875, -0.011260986328125, -0.0265960693359375, 0.038177490234375, 0.00970458984375, -0.0251617431640625, -0.002384185791015625, 0.00072479248046875, -0.032958984375, 0.0433349609375, -0.0167388916015625, -0.042022705078125, -0.081298828125, 0.054473876953125, 0.0914306640625, 0.0306854248046875, 0.07794189453125, -0.012908935546875, 0.037353515625, 0.06341552734375, -0.0162506103515625, -0.00690460205078125, -0.0224151611328125, 0.0111541748046875, -0.0248870849609375, 0.01085662841796875, 0.00313568115234375, -0.0183258056640625, -0.00479888916015625, 0.07623291015625, 0.02972412109375, -0.0948486328125, -0.024261474609375, -0.027862548828125, 0.00020182132720947266, 0.0215606689453125, -0.04608154296875, 0.0218505859375, 0.00624847412109375, 0.04931640625, 0.01477813720703125, -0.02325439453125, 0.0256805419921875, -0.01352691650390625, -0.02734375, -0.0142974853515625, 0.041656494140625, 0.0303955078125, -0.0494384765625, 0.033172607421875, 0.01557159423828125, 0.00879669189453125, -0.0270538330078125, 0.0182342529296875, -0.0017805099487304688, -0.0181732177734375, -0.039459228515625, 0.01019287109375, -0.0266265869140625, -0.0167999267578125, -0.00433349609375, 0.03167724609375, 0.0185699462890625, 0.020050048828125, -0.008544921875, -0.023834228515625, -0.0029087066650390625, 0.01593017578125, -0.0228729248046875, -0.002613067626953125, 0.0504150390625, -0.0008230209350585938, -0.041778564453125, 0.025604248046875, -0.0411376953125, -0.026824951171875, -0.01219940185546875, -0.0091400146484375, 0.05731201171875, -0.016815185546875, -0.0233917236328125, 0.021484375, 0.01107025146484375, -0.0211334228515625, 0.0093231201171875, 0.0450439453125, -0.0216064453125, 0.0021610260009765625, 0.05084228515625, 0.0178070068359375, -0.05072021484375, 0.0199737548828125, -0.06475830078125, 0.09808349609375, -0.006317138671875, 0.0279083251953125, -0.010589599609375, 0.05511474609375, -0.0231475830078125, 0.0231781005859375, -0.047454833984375, 0.01320648193359375, 0.00693511962890625, 0.07916259765625, -0.05059814453125, -0.0079345703125, 0.03192138671875, 0.04278564453125, 0.0153045654296875, 0.01270294189453125, -0.030059814453125, -0.0190582275390625, -0.00780487060546875, 0.03594970703125, 0.001079559326171875, 0.0304412841796875, -0.03326416015625, -0.0209503173828125, -0.01308441162109375, -0.0574951171875, 0.0160675048828125, -0.06451416015625, -0.002788543701171875, -0.0159149169921875, -0.0004887580871582031, -0.0159759521484375, -0.00852203369140625, -0.01009368896484375, 0.00183868408203125, -0.00579833984375, -0.0037441253662109375, 0.021240234375, -0.01959228515625, 0.05224609375, 0.0305328369140625, 0.0037384033203125, -0.0269622802734375, -0.031951904296875, 0.050018310546875, 0.007305145263671875, 0.039794921875, -0.0330810546875, -0.005889892578125, 0.033233642578125, 0.006847381591796875, 0.0021610260009765625, 0.0477294921875, -0.01189422607421875, 0.038299560546875, 0.057373046875, 0.00719451904296875, -0.011627197265625, 0.00027561187744140625, 0.03692626953125, 0.060791015625, -0.042877197265625, -0.0238037109375, -0.0019817352294921875, 0.01103973388671875, 0.01995849609375, -0.00826263427734375, 0.0209197998046875, 0.006610870361328125, 0.0231781005859375, -0.0256500244140625, -0.0004150867462158203, -0.006565093994140625, 0.0283660888671875, -0.0004930496215820312, 0.0016918182373046875, -0.0465087890625, -0.00891876220703125, -0.0540771484375, 0.00811767578125, 0.0092620849609375, 0.0809326171875, 0.02301025390625, 0.076904296875, -0.0295867919921875, -0.04010009765625, -0.04693603515625, 0.0007429122924804688, -0.051025390625, 0.07659912109375, -0.09051513671875, -0.0218658447265625, 0.006687164306640625, 0.054656982421875, -0.0100250244140625, 0.0026531219482421875, -0.0197601318359375, -0.0147247314453125, -0.007076263427734375, 0.003444671630859375, 0.057159423828125, -0.0284881591796875, -0.019561767578125, -0.02215576171875, -0.01383209228515625, 0.0306396484375, -0.016876220703125, 0.00382232666015625, -0.01560211181640625, 0.060089111328125, -0.0296630859375, 0.00830078125, 0.00909423828125, -0.034637451171875, 0.028045654296875, 0.042938232421875, 0.067138671875, 0.032684326171875, -0.0592041015625, -0.0037860870361328125, 0.0014371871948242188, -0.052337646484375, 0.0144805908203125, 0.031280517578125, -0.0113983154296875, 0.01001739501953125, 0.054931640625, 0.04840087890625, -0.009063720703125, -0.028778076171875, 0.006488800048828125, 0.00891876220703125, 0.057891845703125, 0.03692626953125, 0.005062103271484375, -0.0029354095458984375, 0.02789306640625, 0.023406982421875, -0.00363922119140625, 0.01009368896484375, 0.0005259513854980469, 0.00653839111328125, 0.048248291015625, -0.00617218017578125, 0.0293121337890625, 0.007175445556640625, 0.04083251953125, -0.0233154296875, 0.02423095703125, -0.033905029296875, -0.03741455078125, 0.06671142578125, 0.005283355712890625, 0.0214996337890625, 0.039520263671875, -0.0114898681640625, -0.004322052001953125, 0.008758544921875, -0.0142364501953125, -0.02801513671875, -0.050750732421875, -0.0300140380859375, 0.040130615234375, 0.004848480224609375, 0.0029506683349609375, -0.061065673828125, 0.068115234375, -0.006359100341796875, -0.00690460205078125, 0.0037708282470703125, -0.0526123046875, 0.0088958740234375, 0.0216827392578125, 0.0225372314453125, -0.04193115234375, 0.038360595703125, 0.00608062744140625, 0.0027599334716796875, 0.0394287109375, 0.00923919677734375, 0.044281005859375, -0.053070068359375, 0.007770538330078125, 0.016815185546875, 0.02435302734375, -0.0469970703125, -0.010711669921875, 0.046142578125, -0.0166168212890625, -0.00995635986328125, -0.002193450927734375, -0.0220489501953125, -0.005634307861328125, 0.0166778564453125, 0.018524169921875, 0.026947021484375, 0.01007080078125, 0.003711700439453125, 0.00714874267578125, 0.0066070556640625, -0.0288848876953125, -0.000789642333984375, -0.0111846923828125, -0.04327392578125, 0.0266265869140625, -0.01378631591796875, 0.0433349609375, -0.0098114013671875, 0.00209808349609375, -0.049407958984375, 0.00959014892578125, -0.0117034912109375, 0.006603240966796875, 0.022003173828125, 0.01397705078125, 0.05120849609375, -0.010711669921875, -0.04498291015625, -0.0108642578125, -0.01177978515625, 0.0308380126953125, -0.004451751708984375, -0.0139617919921875, 0.029266357421875, 0.003940582275390625, -0.022979736328125, -0.058013916015625, 0.00611114501953125, -0.032684326171875, 0.003261566162109375, -0.0287322998046875, 0.03350830078125, 0.0299224853515625, -0.031524658203125, -0.06854248046875, -0.0018625259399414062, -0.000553131103515625, -0.041717529296875, -0.0227813720703125, 0.0362548828125, 0.0206298828125, -0.054901123046875, -0.0270538330078125, -0.0115509033203125, -0.01161956787109375, 0.030731201171875, 0.00927734375, 0.0302886962890625, 0.0278778076171875, 0.03125, -0.01139068603515625, 0.0016279220581054688, -0.034454345703125, -0.0160980224609375, 0.0247344970703125, -0.022979736328125, 0.009063720703125, -0.000039637088775634766, -0.06640625, -0.05145263671875, -0.020599365234375, 0.028778076171875, 0.00026154518127441406, -0.0227813720703125, -0.046875, -0.0028076171875, 0.08465576171875, 0.043243408203125, 0.0247802734375, -0.038970947265625, -0.0360107421875, -0.0071563720703125, 0.01070404052734375, 0.006931304931640625, 0.02398681640625, -0.0628662109375, -0.00359344482421875, 0.013946533203125, -0.024627685546875, 0.02056884765625, 0.0079803466796875, -0.042999267578125, 0.01143646240234375, -0.01308441162109375, -0.02838134765625, -0.032958984375, -0.04840087890625, 0.03759765625, -0.0290069580078125, -0.053436279296875, 0.005767822265625, 0.04669189453125, -0.03717041015625, -0.01285552978515625, 0.02496337890625, 0.041473388671875, -0.06378173828125, -0.01357269287109375, 0.0209197998046875, 0.056884765625, -0.0171356201171875, -0.03741455078125, 0.01690673828125, 0.01322174072265625, -0.02117919921875, 0.002109527587890625, 0.023712158203125, -0.0019407272338867188, -0.039306640625, 0.031890869140625, -0.00799560546875, 0.01788330078125, -0.004695892333984375, 0.04351806640625, 0.0167388916015625, -0.0220184326171875, 0.03094482421875, -0.01486968994140625, -0.016448974609375, 0.005092620849609375, -0.0013360977172851562, -0.07672119140625, 0.045135498046875, -0.071044921875, 0.0162506103515625, 0.02911376953125 ]
4a643e93ef2b4b7f14219616eaad99c008a134b6
Wordpress Stackexchange Q: How do I change the login logo URL and hover title? I am trying to change the login logo URL and hover title. I am using the code below but return bloginfo('url'); and return bloginfo('name'); aren't outputting the desired href and title. I'm also using a child theme if that matters at all. What do I need to use instead of return bloginfo('url'); and return bloginfo('name');? /* == Change Logo URL ==============================*/ function my_url_login(){ return bloginfo('url'); } add_filter('login_headerurl', 'my_url_login'); /* == Change Logo URL Hover Text ==============================*/ function my_url_login_hover(){ return bloginfo('name'); } add_filter('login_headertitle', 'my_url_login_hover'); A: Try these filters instead // changing the logo link from wordpress.org to your site function mb_login_url() { return home_url(); } add_filter( 'login_headerurl', 'mb_login_url' ); // changing the alt text on the logo to show your site name function mb_login_title() { return get_option( 'blogname' ); } add_filter( 'login_headertitle', 'mb_login_title' ); Though if you're on a Network/MultiSite you might need network_home_url() instead
Q: How do I change the login logo URL and hover title? I am trying to change the login logo URL and hover title. I am using the code below but return bloginfo('url'); and return bloginfo('name'); aren't outputting the desired href and title. I'm also using a child theme if that matters at all. What do I need to use instead of return bloginfo('url'); and return bloginfo('name');? /* == Change Logo URL ==============================*/ function my_url_login(){ return bloginfo('url'); } add_filter('login_headerurl', 'my_url_login'); /* == Change Logo URL Hover Text ==============================*/ function my_url_login_hover(){ return bloginfo('name'); } add_filter('login_headertitle', 'my_url_login_hover'); A: Try these filters instead // changing the logo link from wordpress.org to your site function mb_login_url() { return home_url(); } add_filter( 'login_headerurl', 'mb_login_url' ); // changing the alt text on the logo to show your site name function mb_login_title() { return get_option( 'blogname' ); } add_filter( 'login_headertitle', 'mb_login_title' ); Though if you're on a Network/MultiSite you might need network_home_url() instead A: You have to do is simply paste the codes below in your theme’s functions.php file: * *Custom Login URL : add_filter( 'login_headerurl', 'codecanal_loginlogo_url' ); function codecanal_loginlogo_url($url) { return 'http://www.codecanal.com'; /* Put your desired custom URL here */ } *Site URL : add_filter( 'login_headerurl', 'codecanal_loginlogo_url' ); function codecanal_loginlogo_url($url) { return home_url(); /* User will be redirected to the site home page */ } For more detail visit following blog : http://www.codecanal.com/change-login-logo-url-wordpress/
wordpress
{ "language": "en", "length": 227, "provenance": "stackexchange_00019.jsonl.gz:443477", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138695" }
[ 0.0284423828125, 0.0014495849609375, 0.0242919921875, 0.01346588134765625, 0.00653076171875, -0.0245361328125, 0.0638427734375, -0.031158447265625, -0.0183258056640625, 0.03216552734375, 0.00011140108108520508, -0.00965118408203125, -0.014678955078125, -0.0225830078125, -0.0173492431640625, -0.04132080078125, 0.0171356201171875, 0.0021610260009765625, 0.0479736328125, -0.0185546875, 0.0227813720703125, -0.0009918212890625, 0.03289794921875, 0.002532958984375, 0.03704833984375, -0.041412353515625, 0.11444091796875, -0.02923583984375, 0.052337646484375, -0.00968170166015625, 0.032257080078125, -0.0703125, 0.01087188720703125, 0.03985595703125, -0.0232696533203125, -0.0043182373046875, 0.04345703125, -0.0001379251480102539, 0.011260986328125, 0.0423583984375, 0.0474853515625, -0.024993896484375, -0.058319091796875, 0.011566162109375, -0.032440185546875, -0.0301361083984375, 0.027191162109375, -0.0182342529296875, 0.00562286376953125, -0.01087188720703125, 0.0157012939453125, 0.04022216796875, 0.0261993408203125, 0.0012235641479492188, -0.0136871337890625, -0.0029621124267578125, -0.048370361328125, 0.033447265625, 0.01544952392578125, 0.015869140625, 0.00502777099609375, 0.0058135986328125, -0.007602691650390625, -0.0130462646484375, -0.0208740234375, 0.012054443359375, 0.00644683837890625, 0.0032901763916015625, -0.02716064453125, -0.035003662109375, 0.014862060546875, -0.01441192626953125, -0.0032329559326171875, -0.0057373046875, -0.048553466796875, -0.01088714599609375, -0.004405975341796875, -0.0307769775390625, 0.037841796875, -0.0228271484375, 0.03668212890625, -0.0289306640625, -0.039642333984375, 0.01496124267578125, 0.0202178955078125, 0.038421630859375, -0.0025844573974609375, -0.027801513671875, 0.00647735595703125, 0.03118896484375, 0.0021152496337890625, -0.0212860107421875, -0.0046844482421875, 0.052398681640625, 0.01284027099609375, -0.0136566162109375, 0.0001888275146484375, 0.0239715576171875, -0.007099151611328125, -0.0005593299865722656, -0.0301513671875, -0.03277587890625, -0.0007753372192382812, -0.0208587646484375, -0.01629638671875, 0.034881591796875, 0.0205841064453125, 0.05657958984375, 0.018646240234375, 0.01641845703125, 0.00389862060546875, -0.004489898681640625, -0.05072021484375, -0.0209808349609375, -0.021942138671875, 0.039276123046875, -0.024261474609375, -0.024566650390625, -0.00664520263671875, 0.02154541015625, -0.01428985595703125, -0.0014104843139648438, 0.05889892578125, -0.0177459716796875, -0.00888824462890625, -0.01381683349609375, -0.01532745361328125, -0.056671142578125, 0.01161956787109375, 0.0175323486328125, -0.0333251953125, -0.004405975341796875, 0.0654296875, 0.018341064453125, 0.02252197265625, -0.0283050537109375, 0.04132080078125, -0.00331878662109375, -0.024261474609375, 0.00800323486328125, 0.039947509765625, -0.01381683349609375, -0.0268707275390625, -0.01042938232421875, 0.0270843505859375, 0.01248931884765625, 0.0177459716796875, 0.0194244384765625, 0.004604339599609375, -0.027374267578125, 0.01495361328125, -0.0029888153076171875, -0.0010700225830078125, 0.00682830810546875, 0.0081329345703125, -0.004238128662109375, 0.0107421875, -0.017730712890625, 0.023712158203125, 0.0063629150390625, 0.03448486328125, 0.006317138671875, -0.00936126708984375, 0.01519775390625, -0.01457977294921875, -0.01416015625, -0.015869140625, 0.0018215179443359375, 0.0220794677734375, -0.01605224609375, 0.0165252685546875, 0.0034122467041015625, -0.0087127685546875, 0.01214599609375, 0.01654052734375, 0.00824737548828125, -0.032470703125, 0.08038330078125, 0.008087158203125, 0.0015201568603515625, 0.01357269287109375, -0.0377197265625, 0.0579833984375, -0.0014886856079101562, -0.035491943359375, -0.0027313232421875, 0.01049041748046875, 0.0091705322265625, 0.004302978515625, 0.0193023681640625, 0.0288848876953125, 0.01519012451171875, -0.056182861328125, 0.0104217529296875, -0.01078033447265625, -0.02581787109375, 0.024932861328125, -0.00969696044921875, 0.0124664306640625, 0.0273284912109375, 0.0293121337890625, 0.01165771484375, 0.00408935546875, -0.006565093994140625, -0.0011529922485351562, -0.006870269775390625, -0.00525665283203125, 0.025482177734375, 0.0205535888671875, 0.046051025390625, -0.0065765380859375, 0.03228759765625, -0.0169830322265625, -0.0297088623046875, -0.007293701171875, 0.01016998291015625, -0.00484466552734375, 0.00618743896484375, -0.01342010498046875, 0.0039825439453125, -0.0176239013671875, -0.0126953125, -0.0282135009765625, 0.01666259765625, 0.03173828125, -0.0157928466796875, -0.0038776397705078125, -0.022064208984375, 0.012908935546875, 0.01380157470703125, -0.051300048828125, 0.0243682861328125, 0.02423095703125, 0.044219970703125, -0.01251983642578125, -0.0131378173828125, -0.0021800994873046875, -0.051055908203125, 0.0083465576171875, 0.03717041015625, 0.04254150390625, 0.02655029296875, 0.004825592041015625, 0.007251739501953125, 0.0157470703125, -0.0343017578125, 0.035400390625, -0.01262664794921875, 0.0215301513671875, 0.0205535888671875, -0.02569580078125, -0.020416259765625, 0.031463623046875, -0.0041046142578125, 0.032257080078125, 0.016632080078125, -0.0103759765625, -0.053802490234375, 0.004703521728515625, 0.004436492919921875, 0.00890350341796875, -0.0307769775390625, -0.034210205078125, 0.0091705322265625, -0.028594970703125, 0.0242919921875, -0.022369384765625, -0.0170745849609375, -0.067626953125, 0.028472900390625, 0.05126953125, 0.01308441162109375, -0.01418304443359375, 0.004695892333984375, 0.04345703125, -0.055908203125, -0.01641845703125, 0.005558013916015625, -0.0187835693359375, -0.03302001953125, -0.02783203125, -0.005756378173828125, -0.0304107666015625, -0.0102386474609375, 0.0104522705078125, -0.0188446044921875, -0.002674102783203125, -0.02099609375, 0.041534423828125, -0.01311492919921875, 0.03021240234375, -0.0273284912109375, -0.017333984375, 0.040618896484375, -0.0302581787109375, -0.060699462890625, 0.0265655517578125, -0.046478271484375, 0.0291290283203125, -0.03466796875, 0.0882568359375, 0.0533447265625, -0.0164337158203125, 0.0257720947265625, 0.0002372264862060547, 0.01763916015625, -0.0111846923828125, -0.004238128662109375, -0.005489349365234375, 0.00279998779296875, -0.0217132568359375, 0.05621337890625, 0.006496429443359375, -0.0171356201171875, -0.0193023681640625, -0.03802490234375, -0.02777099609375, -0.0245819091796875, -0.08636474609375, -0.04266357421875, -0.10052490234375, -0.032012939453125, -0.0033168792724609375, 0.02777099609375, -0.0007872581481933594, 0.039093017578125, 0.0143280029296875, 0.0277557373046875, 0.039398193359375, -0.042022705078125, -0.07537841796875, -0.04205322265625, -0.0633544921875, -0.00893402099609375, -0.017242431640625, -0.0224761962890625, 0.0192718505859375, -0.002353668212890625, 0.0013322830200195312, -0.03643798828125, 0.021392822265625, 0.07440185546875, 0.0017299652099609375, -0.005466461181640625, -0.01666259765625, -0.0201416015625, -0.01148223876953125, -0.0082550048828125, 0.032135009765625, 0.00359344482421875, -0.0031833648681640625, 0.0176849365234375, -0.01082611083984375, -0.0323486328125, 0.01392364501953125, -0.038726806640625, -0.00689697265625, -0.00017309188842773438, 0.0111236572265625, -0.045501708984375, 0.0115203857421875, -0.034515380859375, -0.02447509765625, 0.09063720703125, 0.033935546875, -0.034393310546875, 0.0136566162109375, 0.00855255126953125, 0.0194244384765625, -0.00768280029296875, 0.007965087890625, -0.0166015625, 0.018951416015625, -0.007415771484375, 0.0130767822265625, -0.0135955810546875, 0.04791259765625, -0.0126495361328125, -0.0528564453125, -0.0098724365234375, 0.01045989990234375, 0.00391387939453125, -0.0206298828125, -0.01003265380859375, -0.024658203125, 0.02618408203125, -0.037506103515625, 0.02197265625, -0.0426025390625, -0.01837158203125, -0.034759521484375, 0.0718994140625, -0.023040771484375, -0.00542449951171875, 0.0099639892578125, 0.0118865966796875, -0.018707275390625, -0.04217529296875, -0.049957275390625, -0.00830841064453125, -0.15869140625, 0.0140380859375, -0.0128326416015625, -0.040130615234375, 0.00867462158203125, -0.034576416015625, -0.06524658203125, -0.0650634765625, -0.00159454345703125, 0.1055908203125, -0.02947998046875, 0.013092041015625, -0.03570556640625, 0.0257720947265625, 0.001094818115234375, 0.030853271484375, -0.038055419921875, -0.020263671875, -0.0237884521484375, 0.048675537109375, 0.02947998046875, -0.020050048828125, 0.00722503662109375, 0.0570068359375, 0.002262115478515625, 0.0285797119140625, 0.00521087646484375, -0.00548553466796875, 0.0323486328125, 0.01337432861328125, -0.0113983154296875, -0.0015773773193359375, 0.00023543834686279297, -0.0095977783203125, -0.08282470703125, 0.005718231201171875, 0.019134521484375, 0.054656982421875, 0.06256103515625, -0.035888671875, -0.0665283203125, -0.0207672119140625, 0.042327880859375, -0.006771087646484375, 0.024749755859375, -0.0202484130859375, 0.0005984306335449219, -0.018646240234375, 0.031951904296875, 0.032989501953125, -0.02032470703125, -0.01549530029296875, 0.038787841796875, 0.02667236328125, -0.041351318359375, 0.048126220703125, 0.039764404296875, 0.0132293701171875, -0.0374755859375, 0.086669921875, 0.01129150390625, -0.006732940673828125, 0.07257080078125, -0.0419921875, 0.045074462890625, 0.006076812744140625, 0.006099700927734375, -0.007389068603515625, -0.03460693359375, 0.045166015625, 0.0279693603515625, -0.05938720703125, 0.0018224716186523438, 0.01016998291015625, -0.030364990234375, -0.030975341796875, 0.0185546875, 0.031341552734375, 0.0025577545166015625, -0.016510009765625, -0.0207672119140625, 0.0194549560546875, -0.01422119140625, 0.002445220947265625, 0.03216552734375, -0.00954437255859375, -0.0185394287109375, -0.0309600830078125, -0.02020263671875, -0.015625, -0.0192108154296875, -0.017303466796875, 0.01947021484375, -0.0221710205078125, -0.02130126953125, -0.00580596923828125, -0.0272979736328125, 0.1326904296875, 0.0211639404296875, -0.0311279296875, 0.035003662109375, -0.03521728515625, 0.0207672119140625, 0.01114654541015625, 0.0158843994140625, 0.03765869140625, -0.04327392578125, -0.0242156982421875, -0.0182647705078125, -0.00823211669921875, -0.0389404296875, -0.05029296875, 0.03338623046875, -0.00901031494140625, 0.007335662841796875, 0.0156402587890625, 0.034393310546875, 0.004852294921875, 0.028228759765625, -0.0179901123046875, -0.0259552001953125, 0.01015472412109375, 0.0003609657287597656, 0.02984619140625, -0.01232147216796875, 0.007541656494140625, -0.01549530029296875, 0.053680419921875, -0.01413726806640625, -0.016143798828125, -0.004062652587890625, 0.046539306640625, -0.0161895751953125, 0.0007815361022949219, 0.0113067626953125, -0.035797119140625, 0.00534820556640625, 0.05517578125, -0.0328369140625, -0.09210205078125, -0.0301055908203125, 0.0187225341796875, 0.03955078125, -0.06298828125, -0.0234527587890625, -0.049468994140625, -0.026824951171875, -0.0009069442749023438, 0.007419586181640625, -0.03997802734375, 0.025665283203125, 0.017913818359375, -0.031463623046875, -0.038970947265625, -0.0282135009765625, -0.034759521484375, -0.00662994384765625, 0.002658843994140625, -0.0047454833984375, 0.007526397705078125, -0.033538818359375, 0.038116455078125, -0.0010805130004882812, -0.02301025390625, 0.018035888671875, 0.0078887939453125, 0.06787109375, 0.0325927734375, -0.040557861328125, 0.0041046142578125, 0.0038909912109375, 0.0196685791015625, -0.0124664306640625, -0.041839599609375, -0.0128021240234375, -0.0309295654296875, -0.0084991455078125, 0.004138946533203125, -0.0108795166015625, 0.0191650390625, -0.00025272369384765625, 0.00452423095703125, 0.0008544921875, 0.034576416015625, -0.01512908935546875, 0.037200927734375, 0.01378631591796875, -0.007053375244140625, 0.0085296630859375, 0.021453857421875, 0.002696990966796875, -0.007843017578125, -0.003749847412109375, -0.031585693359375, -0.0141448974609375, -0.0191802978515625, 0.01374053955078125, 0.05401611328125, 0.069580078125, -0.003833770751953125, -0.007110595703125, 0.0059661865234375, -0.0095672607421875, -0.0234375, 0.00865936279296875, 0.015777587890625, 0.0018520355224609375, -0.0024585723876953125, 0.0182037353515625, 0.04217529296875, -0.02099609375, -0.0275115966796875, 0.01090240478515625, 0.00421905517578125, 0.0255584716796875, 0.01384735107421875, -0.0625, 0.059356689453125, 0.089599609375, 0.0096282958984375, 0.0340576171875, 0.0171661376953125, -0.00016295909881591797, -0.0019321441650390625, -0.029754638671875, 0.01617431640625, 0.0006628036499023438, 0.034942626953125, -0.0142364501953125, -0.007144927978515625, 0.03326416015625, -0.032867431640625, 0.0156402587890625, 0.0144500732421875, 0.03204345703125, -0.05975341796875, 0.017791748046875, 0.00034046173095703125, 0.034759521484375, 0.07781982421875, 0.055328369140625, -0.03607177734375, 0.00557708740234375, 0.0016260147094726562, -0.07666015625, -0.0026226043701171875, 0.02154541015625, 0.036468505859375, -0.001033782958984375, 0.002834320068359375, 0.021881103515625, -0.0108795166015625, -0.07684326171875, -0.02166748046875, 0.03656005859375, -0.0265960693359375, -0.0382080078125, 0.00943756103515625, 0.0399169921875, -0.006587982177734375, -0.0892333984375, 0.016693115234375, -0.003932952880859375, -0.0269317626953125, 0.003047943115234375, 0.00963592529296875, 0.04168701171875, 0.04119873046875, -0.001804351806640625, -0.00424957275390625, 0.0018491744995117188, -0.003265380859375, 0.049713134765625, -0.00615692138671875, -0.0016021728515625, 0.019256591796875, -0.04278564453125, 0.0037021636962890625, -0.02374267578125, 0.018646240234375, -0.015228271484375, -0.049285888671875, 0.0257415771484375, 0.057891845703125, -0.0416259765625, 0.0284576416015625, -0.0186614990234375, -0.0246734619140625, -0.019073486328125, 0.024932861328125, -0.06951904296875, -0.0697021484375, 0.0013742446899414062, -0.094482421875, -0.0222015380859375, -0.04736328125, -0.07861328125, 0.08245849609375, -0.0148162841796875, 0.0811767578125, -0.0016469955444335938, 0.006572723388671875, -0.002933502197265625, -0.0034275054931640625, -0.01495361328125, 0.0482177734375, 0.01361846923828125, 0.00534820556640625, 0.006847381591796875, 0.0087890625, 0.0169677734375, 0.00384521484375, 0.0081939697265625, -0.0017290115356445312, -0.026947021484375, -0.04644775390625, 0.004619598388671875, 0.039031982421875, 0.0240936279296875, 0.019317626953125, 0.001087188720703125, 0.03533935546875, 0.043212890625, -0.04449462890625, 0.01739501953125, -0.0006461143493652344, -0.005046844482421875, 0.031982421875, -0.00988006591796875, -0.033843994140625, -0.019256591796875, -0.024078369140625, -0.07037353515625, 0.0083770751953125, 0.0158538818359375, 0.024749755859375, 0.010589599609375, 0.01580810546875, 0.0128326416015625, 0.0007138252258300781, 0.0116729736328125, -0.0142059326171875, 0.034454345703125, 0.0104827880859375, 0.0081329345703125, 0.04937744140625, 0.0246734619140625, -0.0025043487548828125, -0.0306854248046875, 0.008880615234375, -0.01087188720703125, -0.007205963134765625, 0.059173583984375, 0.017852783203125, 0.019500732421875, -0.026336669921875, 0.048492431640625, 0.0302886962890625, 0.048736572265625, -0.06048583984375, -0.038604736328125, -0.0081329345703125, 0.011444091796875, 0.05364990234375, 0.0020694732666015625, 0.07421875, -0.08294677734375, -0.038330078125, -0.025115966796875, 0.0208282470703125, 0.07196044921875, -0.02099609375, 0.0177154541015625, 0.0290069580078125, -0.060028076171875, 0.050872802734375, -0.018402099609375, 0.0273590087890625, -0.0002199411392211914, 0.0224609375, -0.002834320068359375, 0.048095703125, -0.021575927734375, 0.002201080322265625, -0.023284912109375, 0.028411865234375, -0.00829315185546875, 0.01044464111328125, -0.021209716796875, -0.02178955078125, -0.01290130615234375, 0.0210418701171875, 0.038543701171875, 0.017913818359375, 0.050048828125, 0.01837158203125, -0.0277252197265625, 0.0086517333984375, 0.0223236083984375, -0.0256500244140625, 0.043121337890625, -0.01209259033203125, 0.044586181640625, 0.00933074951171875, -0.00664520263671875, -0.02349853515625, 0.032684326171875, 0.0172271728515625, -0.052825927734375, 0.06268310546875, -0.00838470458984375, -0.0207061767578125, -0.0178680419921875, 0.005126953125, 0.05230712890625, -0.006946563720703125, -0.0596923828125, -0.021331787109375, -0.028717041015625, -0.053955078125, 0.04913330078125, 0.055938720703125, 0.003879547119140625, -0.0154876708984375, -0.0163726806640625, 0.01605224609375, -0.0020275115966796875, -0.0252685546875, -0.00644683837890625, 0.018157958984375, 0.0223846435546875, 0.0050506591796875, -0.03814697265625, -0.016571044921875, -0.049835205078125, 0.04791259765625, 0.0286102294921875, 0.068115234375, -0.0170135498046875, 0.0435791015625, -0.01181793212890625, -0.01294708251953125, -0.0102691650390625, -0.00951385498046875, -0.013397216796875, -0.0149688720703125, -0.004756927490234375, 0.0043792724609375, -0.0445556640625, 0.0653076171875, -0.0035762786865234375, 0.01195526123046875, 0.094970703125, -0.033782958984375, -0.0262298583984375, -0.05657958984375, 0.0165252685546875, -0.0166015625, -0.041290283203125, -0.02734375, 0.00550079345703125, 0.0189666748046875, 0.0252838134765625, -0.020263671875, 0.0499267578125, -0.04150390625, 0.0012607574462890625, 0.017608642578125, -0.035247802734375, -0.00551605224609375, 0.0173797607421875, -0.0400390625, 0.0114288330078125, 0.01361846923828125, -0.00982666015625, 0.0015916824340820312, 0.0135040283203125, -0.0004825592041015625, -0.0030269622802734375, -0.026824951171875, 0.046112060546875, 0.02099609375, 0.0192413330078125, -0.029998779296875, 0.002849578857421875, 0.060760498046875, -0.00429534912109375, 0.0033168792724609375, -0.003520965576171875, -0.0411376953125, -0.032318115234375, -0.01181793212890625, -0.0169830322265625, 0.01065826416015625, -0.09332275390625, -0.014068603515625, 0.01538848876953125, -0.00045228004455566406, -0.007328033447265625, -0.038909912109375, 0.0226898193359375, -0.0283355712890625, 0.01641845703125, -0.030181884765625, -0.01200103759765625, -0.009490966796875, -0.005893707275390625, -0.001682281494140625, -0.01462554931640625, -0.05352783203125, 0.01299285888671875, -0.02783203125, -0.024749755859375, 0.036376953125, 0.0015096664428710938, -0.043975830078125, -0.06658935546875, -0.03961181640625, -0.0149993896484375, -0.0733642578125, -0.0235748291015625, -0.01861572265625, 0.00376129150390625, 0.0030155181884765625, -0.0290985107421875, 0.023956298828125, -0.04473876953125, -0.0433349609375, 0.034576416015625, -0.07867431640625, -0.064697265625, -0.0570068359375, -0.006572723388671875, 0.0401611328125, 0.045318603515625, -0.0297088623046875, -0.07171630859375, 0.0259552001953125, 0.013336181640625, 0.033355712890625, -0.0012989044189453125, -0.02777099609375, -0.04638671875, 0.00482940673828125, 0.00870513916015625, 0.0194244384765625, 0.00336456298828125, 0.014312744140625, -0.012451171875, 0.03936767578125, 0.05194091796875, -0.01284027099609375, 0.00836181640625, -0.0074005126953125, 0.0223388671875, 0.0236663818359375, -0.042510986328125, 0.00386810302734375, -0.007587432861328125, -0.0135650634765625, -0.0182037353515625, -0.0341796875, 0.031646728515625, 0.008087158203125, 0.032257080078125, -0.004241943359375, -0.006744384765625, -0.0254669189453125, -0.04705810546875, 0.003406524658203125, 0.0068511962890625, -0.00699615478515625, 0.0218963623046875, -0.07940673828125, -0.018524169921875, 0.006732940673828125, -0.0160675048828125, -0.0176849365234375, 0.0042266845703125, -0.03082275390625, -0.006298065185546875, 0.017303466796875, 0.0170745849609375, -0.01456451416015625, 0.00897216796875, 0.0738525390625, -0.04632568359375, 0.0026111602783203125, -0.00489044189453125, 0.01806640625, 0.029449462890625, -0.02923583984375, -0.007297515869140625, -0.0083465576171875, 0.00782012939453125, 0.0030193328857421875, 0.01849365234375, 0.00722503662109375, 0.02044677734375, -0.0249786376953125, -0.029693603515625, 0.0043182373046875, -0.01210784912109375, 0.01036834716796875, 0.01146697998046875, 0.0041656494140625, 0.00786590576171875, 0.058868408203125, -0.00018155574798583984, 0.004184722900390625, -0.0161285400390625, 0.0355224609375, 0.01080322265625, -0.0280303955078125, 0.01605224609375, 0.00890350341796875, 0.006664276123046875, -0.0216064453125, 0.0159149169921875, -0.0267791748046875, 0.00254058837890625, -0.039459228515625, -0.00234222412109375, 0.0163421630859375 ]
87bc59cd8086cccf9b09ce02378d524bfe046a51
Wordpress Stackexchange Q: Success message in comment form I am using wordpress 3.8. I am using comment_form(); I need to display a success message on successfully posted comment on blog. How to do this? A: Without Ajax or plugins. Add to function.php: add_action( 'set_comment_cookies', function( $comment, $user ) { setcookie( 'ta_comment_wait_approval', '1' ); }, 10, 2 ); add_action( 'init', function() { if( $_COOKIE['ta_comment_wait_approval'] === '1' ) { setcookie( 'ta_comment_wait_approval', null, time() - 3600, '/' ); add_action( 'comment_form_before', function() { echo "<p id='wait_approval' style='padding-top: 40px;'><strong>Your comment has been sent successfully.</strong></p>"; }); } }); add_filter( 'comment_post_redirect', function( $location, $comment ) { $location = get_permalink( $comment->comment_post_ID ) . '#wait_approval'; return $location; }, 10, 2 );
Q: Success message in comment form I am using wordpress 3.8. I am using comment_form(); I need to display a success message on successfully posted comment on blog. How to do this? A: Without Ajax or plugins. Add to function.php: add_action( 'set_comment_cookies', function( $comment, $user ) { setcookie( 'ta_comment_wait_approval', '1' ); }, 10, 2 ); add_action( 'init', function() { if( $_COOKIE['ta_comment_wait_approval'] === '1' ) { setcookie( 'ta_comment_wait_approval', null, time() - 3600, '/' ); add_action( 'comment_form_before', function() { echo "<p id='wait_approval' style='padding-top: 40px;'><strong>Your comment has been sent successfully.</strong></p>"; }); } }); add_filter( 'comment_post_redirect', function( $location, $comment ) { $location = get_permalink( $comment->comment_post_ID ) . '#wait_approval'; return $location; }, 10, 2 ); A: Try this: http://wordpress.org/plugins/wp-ajaxify-comments/ or (manually) Add the following lines of code to your theme’s functions.php file add_action('init', 'wdp_ajaxcomments_load_js', 10); function wdp_ajaxcomments_load_js(){ wp_enqueue_script('ajaxValidate', get_stylesheet_directory_uri().'/wdp-ajaxed-comments/js/jquery.validate.min.js', array('jquery'), '1.5.5'); wp_enqueue_script('ajaxcomments', get_stylesheet_directory_uri().'/wdp-ajaxed-comments/js/ajax-comments.js', array('jquery', 'ajaxValidate'), '1.1'); } add_action('comment_post', 'wdp_ajaxcomments_stop_for_ajax',20, 2); function wdp_ajaxcomments_stop_for_ajax($comment_ID, $comment_status){ if(!emptyempty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'){ //If AJAX Request Then switch($comment_status){ case '0': //notify moderator of unapproved comment wp_notify_moderator($comment_ID); case '1': //Approved comment echo "success"; $commentdata=&get_comment($comment_ID, ARRAY_A); $post=&get_post($commentdata['comment_post_ID']); //Notify post author of comment if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_ID'] ) wp_notify_postauthor($comment_ID, $commentdata['comment_type']); break; default: echo "error"; } exit; } } You will need to add two JavaScript files jquery.validate.min.js and ajax-comments.js in the js directory of your theme. http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and the ajax-comments.js is: jQuery('document').ready(function($){ var commentform=$('form[action$=wp-comments-post.php]'); commentform.prepend('<div id="wdpajax-info" ></div>'); var infodiv=$('#wdpajax-info'); commentform.validate({ submitHandler: function(form){ //serialize and store form data in a variable var formdata=commentform.serialize(); //Add a status message infodiv.html('<p>Processing...</p>'); //Extract action URL from commentform var formurl=commentform.attr('action'); //Post Form with data $.ajax({ type: 'post', url: formurl, data: formdata, error: function(XMLHttpRequest, textStatus, errorThrown){ infodiv.html('<p class="wdpajax-error" >You might have left one of the fields blank.</p>'); }, success: function(data, textStatus){ if(data=="success") infodiv.html('<p class="wdpajax-success" >Thanks for your comment. We appreciate your response.</p>'); else infodiv.html('<p class="wdpajax-error" >Error in processing your form.</p>'); commentform.find('textarea[name=comment]').val(''); } }); } }); }); Customize the style of messages .wdpajax-error{ border:1px solid #f9d9c9; padding:5px; color:#ff3311; } .wdpajax-success{ border:1px solid #339933; padding:5px; color:#339933; } label.error{ float:none !important; padding-left:5px; color:#ff3311; } Open your theme’s comments.php and add some CSS classes to comment form input fields as described: To comment author name input, add class="required" To comment author email input, add class="required email" To comment author URL input, add class="url" To the comment textarea, add class="required" A: if you do not want to use AJAX or any plugins, you can use $_GET to understand if comment form has been submitted or not. <?= $_GET['unapproved'] ? '<p>success message</p>' : ''; ?> In the above case, we have $_GET['unapproved'] if you have to approve the comments. You can consider a statement for avoiding any errors: if (count($_GET) > 0) { if ($_GET['unapproved']) { echo '<p>success message</p>'; } }
wordpress
{ "language": "en", "length": 450, "provenance": "stackexchange_00019.jsonl.gz:443518", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138839" }
[ 0.0755615234375, -0.0016307830810546875, -0.01287078857421875, -0.047210693359375, 0.0305328369140625, -0.0372314453125, 0.046783447265625, -0.0258026123046875, 0.0264129638671875, 0.041351318359375, -0.0279541015625, -0.01361846923828125, 0.021697998046875, -0.009796142578125, -0.039276123046875, -0.006198883056640625, 0.04168701171875, 0.01276397705078125, 0.057464599609375, 0.003871917724609375, 0.0257110595703125, 0.0204925537109375, -0.000762939453125, 0.03082275390625, 0.0182342529296875, -0.04229736328125, 0.1083984375, 0.01303863525390625, -0.0027923583984375, -0.0169219970703125, 0.0164947509765625, -0.0169525146484375, 0.03680419921875, -0.00310516357421875, -0.04595947265625, -0.040496826171875, 0.03607177734375, -0.021881103515625, -0.046356201171875, 0.0753173828125, 0.026702880859375, -0.01335906982421875, 0.033294677734375, -0.0235443115234375, -0.00247955322265625, -0.00738525390625, 0.03173828125, -0.028228759765625, 0.0272979736328125, 0.02862548828125, 0.0047149658203125, 0.04498291015625, 0.006954193115234375, 0.0043182373046875, -0.0160980224609375, 0.005401611328125, -0.056060791015625, 0.043914794921875, 0.02880859375, 0.0242767333984375, 0.0140838623046875, 0.01053619384765625, -0.01194000244140625, -0.0187835693359375, 0.0014371871948242188, -0.00970458984375, 0.0056915283203125, 0.032958984375, -0.015777587890625, -0.0176849365234375, 0.0031280517578125, -0.0183868408203125, -0.0130157470703125, -0.0188751220703125, 0.0012788772583007812, -0.02301025390625, -0.0026569366455078125, -0.02642822265625, 0.01070404052734375, 0.01995849609375, 0.01082611083984375, -0.0006198883056640625, 0.00870513916015625, -0.0478515625, 0.035858154296875, -0.006694793701171875, -0.00792694091796875, -0.01027679443359375, -0.034454345703125, -0.042266845703125, -0.028076171875, -0.0592041015625, -0.0017728805541992188, -0.00814056396484375, -0.0308074951171875, -0.018890380859375, 0.003978729248046875, 0.0228271484375, -0.0141143798828125, 0.013916015625, -0.0226898193359375, -0.01213836669921875, -0.002628326416015625, -0.0256500244140625, -0.0055084228515625, 0.039154052734375, -0.01113128662109375, -0.0282440185546875, 0.0078582763671875, 0.0249481201171875, 0.0005550384521484375, -0.03582763671875, -0.052215576171875, -0.03387451171875, -0.013824462890625, 0.034759521484375, -0.065673828125, 0.00891876220703125, -0.00011420249938964844, 0.01294708251953125, -0.00936126708984375, 0.0160064697265625, -0.02728271484375, 0.00528717041015625, 0.03277587890625, 0.02301025390625, 0.0234375, -0.0245513916015625, 0.0090179443359375, 0.056365966796875, -0.00609588623046875, 0.00711822509765625, 0.004016876220703125, -0.0301513671875, -0.0303955078125, -0.0280914306640625, 0.01413726806640625, -0.032257080078125, -0.01552581787109375, 0.021759033203125, 0.0151214599609375, -0.03399658203125, -0.025146484375, -0.009368896484375, -0.0260009765625, 0.032257080078125, 0.00653076171875, -0.0025196075439453125, -0.00836944580078125, -0.05987548828125, -0.0274658203125, -0.0261077880859375, 0.036773681640625, -0.00438690185546875, -0.05267333984375, -0.02484130859375, -0.028839111328125, -0.031463623046875, 0.01129150390625, -0.057708740234375, 0.05999755859375, 0.0209197998046875, -0.0014371871948242188, -0.032745361328125, -0.03924560546875, -0.060882568359375, -0.050262451171875, -0.004230499267578125, 0.0181427001953125, 0.04412841796875, -0.0577392578125, -0.0193939208984375, -0.0274658203125, -0.007114410400390625, -0.0167999267578125, 0.0253448486328125, 0.003932952880859375, 0.036224365234375, 0.004444122314453125, -0.023773193359375, -0.0153350830078125, -0.05133056640625, 0.04791259765625, 0.0025653839111328125, -0.0112457275390625, 0.051971435546875, 0.0364990234375, 0.05975341796875, -0.0654296875, 0.0279388427734375, -0.008636474609375, 0.08441162109375, -0.0034961700439453125, 0.055755615234375, -0.0347900390625, -0.07196044921875, -0.005672454833984375, 0.00441741943359375, -0.0382080078125, 0.02734375, 0.0311279296875, 0.0367431640625, -0.006366729736328125, 0.005382537841796875, -0.01395416259765625, 0.0279083251953125, -0.014678955078125, 0.033782958984375, -0.0041656494140625, 0.01262664794921875, 0.01104736328125, -0.01088714599609375, -0.004131317138671875, -0.03521728515625, -0.0003921985626220703, 0.018524169921875, -0.0494384765625, 0.043548583984375, -0.0215606689453125, 0.07574462890625, -0.04229736328125, -0.04681396484375, -0.043548583984375, -0.0648193359375, 0.01546478271484375, -0.03472900390625, -0.0167388916015625, -0.02838134765625, -0.0069122314453125, -0.0083770751953125, -0.039459228515625, 0.041778564453125, -0.0147857666015625, -0.0102386474609375, -0.005207061767578125, -0.01329803466796875, 0.0089263916015625, -0.09381103515625, 0.0203704833984375, 0.05084228515625, 0.022308349609375, 0.010955810546875, -0.0003223419189453125, 0.0214080810546875, 0.037139892578125, -0.0198822021484375, 0.0186309814453125, 0.00043892860412597656, 0.04034423828125, 0.0197906494140625, -0.033660888671875, -0.0618896484375, 0.036529541015625, -0.0867919921875, 0.014404296875, 0.0234832763671875, -0.0238189697265625, -0.01271820068359375, 0.0036029815673828125, 0.02099609375, 0.00830078125, 0.007598876953125, 0.0002307891845703125, -0.003459930419921875, -0.0157318115234375, -0.0117034912109375, -0.0097503662109375, -0.0138702392578125, -0.0350341796875, 0.00020003318786621094, 0.0457763671875, 0.0014715194702148438, 0.0023784637451171875, 0.05242919921875, -0.01267242431640625, 0.04052734375, -0.0182647705078125, -0.016845703125, -0.020904541015625, 0.033782958984375, -0.006702423095703125, 0.047607421875, 0.0136566162109375, -0.01953125, -0.0201263427734375, -0.0130615234375, 0.00701904296875, -0.02044677734375, 0.043609619140625, -0.0003809928894042969, 0.0159149169921875, 0.0138092041015625, -0.0255126953125, 0.039154052734375, 0.024078369140625, -0.044830322265625, 0.0305938720703125, -0.07672119140625, 0.0477294921875, -0.043243408203125, 0.05255126953125, 0.0687255859375, 0.00662994384765625, -0.00579071044921875, -0.01477813720703125, 0.016265869140625, 0.0004341602325439453, 0.0281829833984375, 0.0018157958984375, -0.061431884765625, 0.03680419921875, 0.0135650634765625, 0.0299835205078125, 0.035400390625, 0.015838623046875, -0.0253753662109375, 0.0163116455078125, 0.03509521484375, -0.019073486328125, -0.040283203125, -0.0191650390625, -0.066162109375, -0.00010609626770019531, -0.0214996337890625, -0.026702880859375, -0.00399017333984375, -0.00617218017578125, 0.0131683349609375, -0.0176849365234375, 0.016357421875, -0.0175628662109375, 0.00035953521728515625, -0.030853271484375, 0.023284912109375, -0.0141754150390625, 0.01413726806640625, 0.002857208251953125, 0.06414794921875, -0.006076812744140625, -0.056365966796875, -0.0239410400390625, 0.0229949951171875, -0.01181793212890625, -0.004573822021484375, -0.027618408203125, -0.01340484619140625, 0.0175628662109375, -0.00811004638671875, 0.00856781005859375, 0.0251312255859375, -0.0122833251953125, -0.00974273681640625, -0.0009832382202148438, 0.0250701904296875, 0.0232696533203125, -0.052032470703125, -0.00321197509765625, 0.0286407470703125, -0.009857177734375, -0.0299835205078125, -0.0236358642578125, 0.01496124267578125, -0.05596923828125, -0.10235595703125, 0.058380126953125, -0.0213775634765625, -0.043243408203125, -0.027801513671875, 0.0038127899169921875, -0.00616455078125, 0.04449462890625, -0.041046142578125, 0.03912353515625, 0.00504302978515625, -0.0102996826171875, -0.0537109375, 0.04205322265625, 0.0011539459228515625, 0.00004780292510986328, 0.01091766357421875, 0.020538330078125, -0.0222930908203125, 0.0447998046875, -0.0645751953125, -0.06402587890625, 0.048736572265625, -0.07122802734375, -0.0216522216796875, -0.077880859375, -0.01271820068359375, -0.0220184326171875, 0.07861328125, -0.0197296142578125, -0.004764556884765625, -0.01529693603515625, -0.016632080078125, -0.002044677734375, -0.0024929046630859375, -0.034027099609375, -0.0029087066650390625, -0.07403564453125, 0.04010009765625, -0.005908966064453125, -0.0091705322265625, -0.0360107421875, 0.0298004150390625, -0.0472412109375, -0.045074462890625, 0.0235595703125, -0.020355224609375, -0.00937652587890625, 0.02001953125, -0.03106689453125, 0.01739501953125, 0.00426483154296875, -0.047454833984375, 0.006977081298828125, 0.0016260147094726562, -0.032623291015625, -0.0144805908203125, 0.01171112060546875, 0.0281524658203125, 0.007167816162109375, 0.0211181640625, 0.00977325439453125, -0.002307891845703125, -0.00789642333984375, -0.00882720947265625, -0.0213470458984375, -0.00270843505859375, -0.0243682861328125, -0.01548004150390625, 0.00951385498046875, 0.0380859375, 0.0027790069580078125, 0.046539306640625, -0.029144287109375, -0.044342041015625, 0.009490966796875, -0.042816162109375, -0.005008697509765625, -0.044952392578125, -0.010986328125, 0.0082244873046875, -0.031402587890625, 0.0042724609375, -0.041168212890625, -0.007411956787109375, -0.01837158203125, -0.041046142578125, 0.0009589195251464844, 0.0083465576171875, 0.01248931884765625, 0.0214996337890625, 0.004993438720703125, 0.023590087890625, -0.03350830078125, 0.042022705078125, 0.0164947509765625, 0.0048675537109375, 0.00917816162109375, -0.0399169921875, 0.0426025390625, 0.0283050537109375, 0.024993896484375, -0.006801605224609375, 0.00893402099609375, 0.005828857421875, -0.004547119140625, 0.014617919921875, 0.01654052734375, -0.00727081298828125, -0.00449371337890625, -0.006397247314453125, 0.0015993118286132812, -0.050567626953125, 0.033782958984375, 0.040863037109375, -0.00736236572265625, -0.0364990234375, -0.03900146484375, 0.01226806640625, -0.04345703125, 0.037506103515625, 0.017333984375, 0.0141143798828125, 0.0279693603515625, 0.0281982421875, 0.005451202392578125, -0.0006909370422363281, -0.01128387451171875, 0.0184326171875, 0.0255126953125, 0.029296875, 0.01128387451171875, -0.00555419921875, 0.0004210472106933594, 0.042022705078125, 0.055511474609375, 0.0148468017578125, -0.036712646484375, 0.02801513671875, 0.00930023193359375, -0.058258056640625, 0.0123138427734375, 0.03466796875, 0.01555633544921875, -0.0124359130859375, -0.00799560546875, 0.0027980804443359375, -0.019439697265625, -0.045257568359375, 0.0146026611328125, 0.0082855224609375, 0.0158538818359375, 0.0164337158203125, 0.0748291015625, -0.00605010986328125, 0.0496826171875, -0.0204315185546875, 0.03765869140625, 0.04022216796875, 0.004581451416015625, 0.0267791748046875, 0.016754150390625, -0.0081329345703125, -0.0048065185546875, -0.0011434555053710938, -0.023193359375, -0.027435302734375, -0.0007748603820800781, 0.002529144287109375, 0.0208587646484375, 0.024627685546875, 0.0180206298828125, 0.01215362548828125, -0.0030059814453125, 0.040679931640625, 0.06451416015625, -0.0069580078125, -0.006961822509765625, 0.016021728515625, 0.0218658447265625, 0.003971099853515625, -0.01145172119140625, 0.0215301513671875, -0.04150390625, 0.0158233642578125, 0.0223236083984375, 0.0029468536376953125, -0.0234832763671875, -0.03350830078125, -0.0030670166015625, -0.01959228515625, -0.0062713623046875, -0.043914794921875, -0.0269317626953125, 0.010009765625, 0.01325225830078125, 0.0219879150390625, -0.02813720703125, -0.0219879150390625, -0.0328369140625, 0.03509521484375, -0.04510498046875, 0.0030536651611328125, 0.0306396484375, 0.0227203369140625, 0.040435791015625, -0.01708984375, -0.034393310546875, -0.043792724609375, -0.05987548828125, -0.038238525390625, -0.01416015625, 0.022918701171875, 0.006832122802734375, 0.025909423828125, -0.01265716552734375, -0.024688720703125, -0.022705078125, 0.004573822021484375, 0.0146942138671875, 0.037750244140625, 0.00917816162109375, 0.0584716796875, 0.0021839141845703125, 0.043975830078125, 0.037933349609375, 0.046844482421875, -0.0254669189453125, -0.04010009765625, 0.0003871917724609375, 0.0135040283203125, 0.00351715087890625, -0.002895355224609375, -0.00560760498046875, -0.01503753662109375, 0.08575439453125, -0.0180816650390625, 0.007381439208984375, -0.006221771240234375, 0.002262115478515625, -0.0171356201171875, 0.020782470703125, -0.0110015869140625, -0.0149993896484375, 0.032745361328125, -0.037506103515625, 0.0053253173828125, -0.0024700164794921875, 0.03314208984375, 0.004863739013671875, -0.050048828125, -0.0026073455810546875, 0.021759033203125, -0.0039825439453125, 0.0243682861328125, 0.1036376953125, 0.0252532958984375, 0.06829833984375, 0.0386962890625, 0.027191162109375, 0.047393798828125, 0.042572021484375, -0.0166015625, -0.06341552734375, 0.057342529296875, 0.01348876953125, -0.03570556640625, 0.0249786376953125, -0.0308074951171875, 0.0203399658203125, 0.04364013671875, 0.06304931640625, -0.07061767578125, 0.021728515625, -0.01055908203125, -0.0282440185546875, 0.0689697265625, -0.036285400390625, 0.04327392578125, -0.0377197265625, 0.0721435546875, 0.06475830078125, 0.00859832763671875, 0.017608642578125, -0.0311431884765625, 0.003414154052734375, -0.01715087890625, 0.0228271484375, -0.01210784912109375, -0.052215576171875, -0.01549530029296875, 0.043853759765625, -0.03814697265625, -0.0269012451171875, 0.00693511962890625, 0.0169677734375, -0.000995635986328125, -0.052337646484375, 0.035125732421875, -0.0504150390625, 0.0121307373046875, 0.0056610107421875, -0.01611328125, -0.00891876220703125, 0.05633544921875, -0.040924072265625, 0.018890380859375, 0.039520263671875, -0.05169677734375, -0.05126953125, -0.0164642333984375, 0.034088134765625, 0.0118255615234375, -0.01514434814453125, 0.044403076171875, -0.007015228271484375, -0.039398193359375, -0.0157470703125, -0.018035888671875, 0.060028076171875, -0.036102294921875, -0.007656097412109375, 0.0281982421875, 0.0014324188232421875, -0.01113128662109375, -0.007137298583984375, 0.0255279541015625, -0.02471923828125, 0.003025054931640625, -0.004894256591796875, -0.005786895751953125, -0.00922393798828125, -0.024627685546875, -0.0904541015625, 0.07537841796875, 0.04986572265625, -0.0002624988555908203, -0.035888671875, 0.033843994140625, -0.032257080078125, 0.0035266876220703125, -0.03277587890625, 0.060760498046875, -0.042816162109375, 0.0458984375, -0.080810546875, -0.006267547607421875, 0.004779815673828125, 0.034942626953125, 0.042510986328125, 0.0090484619140625, -0.0218505859375, -0.007717132568359375, 0.0175018310546875, 0.03436279296875, 0.0036678314208984375, 0.0129547119140625, -0.002414703369140625, 0.043121337890625, 0.032806396484375, -0.05291748046875, 0.0302886962890625, -0.0335693359375, -0.031341552734375, 0.0098114013671875, 0.0102996826171875, 0.0017442703247070312, -0.00397491455078125, 0.07733154296875, -0.04852294921875, -0.013458251953125, 0.046905517578125, -0.030975341796875, 0.007442474365234375, 0.041473388671875, 0.052520751953125, -0.0288238525390625, 0.015716552734375, -0.02386474609375, 0.056640625, 0.026275634765625, 0.0292205810546875, 0.0268096923828125, 0.0252227783203125, 0.0246124267578125, -0.004962921142578125, 0.0133209228515625, 0.0275421142578125, -0.039703369140625, 0.0255584716796875, 0.0101165771484375, 0.0298309326171875, -0.0150146484375, -0.01557159423828125, 0.0309906005859375, 0.036773681640625, -0.0226593017578125, 0.019744873046875, -0.0096893310546875, 0.0272674560546875, 0.04583740234375, -0.050933837890625, 0.0655517578125, 0.038848876953125, 0.013671875, -0.055633544921875, -0.00832366943359375, -0.00788116455078125, 0.0238189697265625, -0.00917816162109375, 0.01151275634765625, -0.002208709716796875, -0.016937255859375, -0.0015964508056640625, 0.0114593505859375, 0.0161285400390625, -0.0122833251953125, -0.0438232421875, 0.05096435546875, -0.02142333984375, 0.030181884765625, 0.006153106689453125, -0.0035762786865234375, 0.024322509765625, -0.03570556640625, 0.005718231201171875, 0.0164337158203125, 0.01450347900390625, 0.0139007568359375, -0.00047779083251953125, 0.0455322265625, 0.0379638671875, 0.0304107666015625, 0.0260772705078125, -0.006549835205078125, 0.0131072998046875, -0.0266876220703125, -0.0071258544921875, -0.056121826171875, -0.0175933837890625, 0.00714111328125, -0.009765625, 0.01593017578125, -0.041473388671875, 0.0455322265625, -0.041046142578125, 0.0145263671875, -0.0138397216796875, -0.036590576171875, 0.0162353515625, -0.0012636184692382812, 0.0386962890625, -0.0032176971435546875, -0.05426025390625, -0.041351318359375, 0.037078857421875, -0.0214385986328125, 0.0173187255859375, 0.04937744140625, 0.0062255859375, -0.01062774658203125, -0.00222015380859375, -0.0018167495727539062, 0.0136566162109375, -0.027313232421875, 0.0243682861328125, 0.01013946533203125, -0.00020444393157958984, -0.006412506103515625, -0.0833740234375, -0.0161590576171875, -0.01453399658203125, -0.033905029296875, 0.0038738250732421875, 0.049224853515625, 0.04010009765625, -0.0012388229370117188, -0.043548583984375, 0.00791168212890625, -0.00344085693359375, -0.04034423828125, 0.035003662109375, 0.019073486328125, -0.004863739013671875, -0.01015472412109375, -0.00914764404296875, 0.0721435546875, 0.0009927749633789062, 0.0055084228515625, 0.06829833984375, -0.0140838623046875, -0.01142120361328125, -0.0162200927734375, -0.0039043426513671875, -0.031494140625, -0.05059814453125, -0.018280029296875, 0.0206756591796875, 0.00001150369644165039, 0.0115509033203125, -0.0260467529296875, 0.0809326171875, -0.0275726318359375, 0.0419921875, 0.0044403076171875, -0.03704833984375, 0.0025539398193359375, 0.01904296875, -0.069091796875, 0.0246124267578125, 0.0058746337890625, -0.01183319091796875, 0.035980224609375, -0.007415771484375, 0.017730712890625, 0.01100921630859375, 0.06414794921875, -0.004856109619140625, -0.0038967132568359375, 0.0166778564453125, -0.03094482421875, -0.000370025634765625, 0.01375579833984375, -0.01178741455078125, -0.01531219482421875, -0.0076141357421875, -0.0126800537109375, -0.04168701171875, 0.00786590576171875, 0.00115966796875, -0.0020694732666015625, -0.03619384765625, -0.0164947509765625, -0.010894775390625, -0.016143798828125, -0.0220489501953125, 0.0095977783203125, -0.0438232421875, 0.0217132568359375, 0.03302001953125, -0.042144775390625, 0.041748046875, -0.0031719207763671875, 0.0095062255859375, -0.051605224609375, -0.0019464492797851562, -0.034149169921875, 0.02215576171875, -0.01336669921875, 0.0260009765625, 0.076416015625, -0.044891357421875, -0.0521240234375, -0.014495849609375, 0.03900146484375, 0.0284881591796875, 0.0206756591796875, -0.023773193359375, 0.02593994140625, -0.025390625, -0.00783538818359375, -0.049102783203125, 0.00859832763671875, -0.070556640625, -0.0222320556640625, -0.0221405029296875, 0.01020050048828125, 0.0173187255859375, -0.03271484375, -0.06427001953125, 0.03826904296875, -0.02056884765625, -0.0247802734375, -0.0250091552734375, -0.02569580078125, 0.0171051025390625, 0.039642333984375, 0.007434844970703125, -0.029815673828125, -0.06494140625, -0.00592803955078125, -0.00707244873046875, 0.0258636474609375, 0.005359649658203125, 0.01334381103515625, -0.016265869140625, 0.01715087890625, 0.0242156982421875, -0.0253143310546875, 0.007259368896484375, -0.01390838623046875, 0.020233154296875, 0.044708251953125, -0.052581787109375, -0.06048583984375, -0.0160675048828125, -0.0021820068359375, -0.00634002685546875, -0.020355224609375, 0.01416015625, 0.0121307373046875, 0.0364990234375, 0.004512786865234375, 0.0009088516235351562, -0.027313232421875, 0.00336456298828125, -0.00803375244140625, -0.0216827392578125, -0.01551055908203125, 0.0297088623046875, -0.06842041015625, -0.0180511474609375, 0.0184478759765625, 0.017333984375, -0.021575927734375, -0.02581787109375, -0.0139923095703125, -0.0246734619140625, 0.0223541259765625, 0.0271148681640625, -0.0129547119140625, -0.0687255859375, 0.0828857421875, -0.0294952392578125, 0.00147247314453125, 0.0301361083984375, 0.0256500244140625, 0.0264739990234375, 0.06353759765625, 0.01303863525390625, 0.04412841796875, -0.031280517578125, -0.0246124267578125, 0.038330078125, 0.0023860931396484375, 0.01052093505859375, 0.0007557868957519531, -0.0017299652099609375, 0.00406646728515625, -0.014312744140625, -0.007099151611328125, 0.028289794921875, -0.00701141357421875, -0.025115966796875, 0.043701171875, -0.02923583984375, 0.00331878662109375, -0.0264892578125, 0.0205078125, -0.0025691986083984375, 0.002773284912109375, 0.0516357421875, -0.030731201171875, 0.003326416015625, 0.0201263427734375, 0.04791259765625, -0.0439453125, 0.06878662109375, 0.060791015625, 0.038970947265625, 0.032257080078125 ]
ff7db89326b368e4c0324fa99827d6e16665c16a
Wordpress Stackexchange Q: FTP Username and password wrong while installing theme I followed Failed to connect to FTP Server 127.0.0.1/:21 And was able to solve that problem. But now when I try to upload the theme then I get username and password failure. I have added following lines in wp-config.php define( 'FS_METHOD', 'ftpext' ); define( 'FTP_BASE', '/var/www/wordpress/' ); define( 'FTP_CONTENT_DIR', '/var/www/wordpress/wp-content/' ); define( 'FTP_PLUGIN_DIR ', '/var/www/wordpress/wp-content/plugins/' ); define( 'FTP_USER', 'username' ); define( 'FTP_PASS', 'password' ); define( 'FTP_HOST', 'localhost' ); define( 'FTP_SSL', false ); How I can resolve this problem? UPDATE: I tried this link and removed all values for ftp which are in wp-config.php But still same error. A: if you do not want to (or you cannot) change permissions on wp-content so your web server has write permissions, then add this to your wp-config.php file: define('FS_METHOD', 'direct');
Q: FTP Username and password wrong while installing theme I followed Failed to connect to FTP Server 127.0.0.1/:21 And was able to solve that problem. But now when I try to upload the theme then I get username and password failure. I have added following lines in wp-config.php define( 'FS_METHOD', 'ftpext' ); define( 'FTP_BASE', '/var/www/wordpress/' ); define( 'FTP_CONTENT_DIR', '/var/www/wordpress/wp-content/' ); define( 'FTP_PLUGIN_DIR ', '/var/www/wordpress/wp-content/plugins/' ); define( 'FTP_USER', 'username' ); define( 'FTP_PASS', 'password' ); define( 'FTP_HOST', 'localhost' ); define( 'FTP_SSL', false ); How I can resolve this problem? UPDATE: I tried this link and removed all values for ftp which are in wp-config.php But still same error. A: if you do not want to (or you cannot) change permissions on wp-content so your web server has write permissions, then add this to your wp-config.php file: define('FS_METHOD', 'direct'); A: Back up the config file before making a change; sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.back and then edit vsftpd.conf (with vi or nano) nano /etc/vsftpd.conf Then make the following change pam_service_name=ftp Save your change and restart the ftp server (if you use nano hit CTRL+O & enter to save then CTRL+X to exit) sudo service vsftpd restart A: NO, this is only because of the owner/permission of your folder where wordpress files are present. Please check the folder permission, if that is 0755 then replace it with 0777 by using chmod 777 -R FOLDERNAME and try to upload, After this if will get again same issue change the folder owner by using chown www-data FOLDERNAME For example in your case the folder name is wordpress then use the following commands for changing permisssion/owner chown -R www-data:www-data /var/www find /var/www/ -type d -exec chmod 755 {} \; find /var/www/ -type f -exec chmod 644 {} \; I believe this will work for you. Also you can define FS_METHOD as direct in wp-config.php so you will not get FTP detials at the time of installation of Theme/Plugin. define('FS_METHOD', 'direct); Thanks
wordpress
{ "language": "en", "length": 323, "provenance": "stackexchange_00019.jsonl.gz:443559", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/138996" }
[ 0.02392578125, -0.01122283935546875, -0.00621795654296875, -0.0026531219482421875, -0.0118255615234375, -0.034027099609375, 0.03424072265625, -0.0162811279296875, -0.001277923583984375, 0.0214080810546875, -0.0195770263671875, -0.0096588134765625, 0.0141448974609375, -0.025146484375, -0.01071929931640625, -0.0243682861328125, -0.0022182464599609375, 0.002803802490234375, 0.0030879974365234375, -0.023040771484375, 0.01763916015625, -0.0015115737915039062, 0.001514434814453125, -0.0051727294921875, 0.0008544921875, 0.032958984375, 0.09381103515625, -0.00913238525390625, 0.00382232666015625, -0.0223541259765625, 0.01024627685546875, -0.033111572265625, 0.044403076171875, 0.03277587890625, -0.08758544921875, -0.015350341796875, -0.0479736328125, 0.017974853515625, -0.037872314453125, 0.04058837890625, 0.00039577484130859375, -0.004642486572265625, 0.03594970703125, 0.06524658203125, -0.006076812744140625, -0.05975341796875, 0.032623291015625, -0.0400390625, 0.006015777587890625, 0.051849365234375, -0.00380706787109375, 0.00730133056640625, 0.005218505859375, -0.0214385986328125, 0.002330780029296875, -0.0218353271484375, -0.0130767822265625, 0.0196990966796875, 0.0151519775390625, -0.017608642578125, -0.0272674560546875, -0.0162200927734375, 0.022705078125, 0.005611419677734375, -0.008514404296875, -0.00960540771484375, 0.04205322265625, 0.0213775634765625, -0.0178070068359375, -0.0174407958984375, 0.004253387451171875, 0.0037631988525390625, -0.0008015632629394531, -0.01226043701171875, -0.01267242431640625, -0.0206756591796875, 0.0004906654357910156, -0.0252227783203125, 0.02154541015625, 0.003368377685546875, 0.03045654296875, -0.00876617431640625, -0.034759521484375, 0.0009584426879882812, 0.006683349609375, 0.01305389404296875, 0.0035266876220703125, -0.0178680419921875, 0.007091522216796875, 0.0030536651611328125, -0.005207061767578125, 0.052978515625, 0.01007080078125, -0.008056640625, -0.0289459228515625, -0.0099639892578125, 0.024749755859375, 0.048004150390625, -0.0030384063720703125, 0.0186614990234375, -0.01031494140625, -0.03466796875, 0.0190582275390625, -0.0323486328125, -0.0167083740234375, 0.042724609375, 0.004299163818359375, 0.01904296875, 0.01488494873046875, 0.031402587890625, 0.0028171539306640625, -0.0160980224609375, -0.009246826171875, -0.044464111328125, -0.011016845703125, 0.032379150390625, -0.0261688232421875, -0.0022525787353515625, 0.0176239013671875, 0.0171051025390625, -0.00174713134765625, 0.0154266357421875, -0.08404541015625, 0.03125, 0.005237579345703125, -0.0158538818359375, 0.013519287109375, 0.043121337890625, 0.0024871826171875, 0.0428466796875, -0.02362060546875, -0.002346038818359375, 0.0364990234375, 0.013214111328125, -0.0044097900390625, -0.02362060546875, 0.046905517578125, 0.057098388671875, -0.00408172607421875, 0.0394287109375, -0.0343017578125, -0.0379638671875, 0.0160675048828125, -0.03021240234375, -0.03125, 0.005611419677734375, 0.0219879150390625, 0.0296630859375, 0.0023555755615234375, -0.07342529296875, 0.00911712646484375, -0.003444671630859375, -0.0164031982421875, 0.028228759765625, 0.0250701904296875, 0.0196990966796875, 0.03564453125, -0.01922607421875, -0.005645751953125, -0.012725830078125, 0.0187835693359375, -0.01311492919921875, -0.017120361328125, 0.0017185211181640625, -0.015228271484375, -0.0023326873779296875, 0.003017425537109375, 0.01001739501953125, 0.01387786865234375, -0.026824951171875, -0.0030879974365234375, -0.014373779296875, 0.013824462890625, -0.0033512115478515625, -0.006160736083984375, 0.0267791748046875, 0.0209808349609375, 0.030487060546875, 0.01511383056640625, 0.056549072265625, 0.0120697021484375, -0.0249786376953125, 0.09130859375, -0.0292510986328125, -0.03082275390625, -0.0187530517578125, 0.0255279541015625, 0.029937744140625, 0.03497314453125, 0.0220947265625, 0.038665771484375, -0.021881103515625, -0.03076171875, 0.0330810546875, -0.01715087890625, -0.0462646484375, 0.037078857421875, 0.01081085205078125, -0.001190185546875, -0.0143585205078125, 0.03179931640625, -0.0290374755859375, 0.017974853515625, -0.0158538818359375, -0.0333251953125, -0.0220794677734375, 0.0023288726806640625, -0.006587982177734375, 0.02667236328125, 0.0128021240234375, -0.017852783203125, -0.03143310546875, 0.0216827392578125, -0.05792236328125, -0.02813720703125, 0.0191497802734375, -0.060821533203125, 0.0452880859375, 0.003620147705078125, 0.076171875, -0.01332855224609375, -0.030242919921875, 0.0084228515625, -0.0662841796875, -0.030853271484375, -0.01471710205078125, -0.01556396484375, 0.0062408447265625, -0.023529052734375, -0.002407073974609375, 0.04498291015625, 0.0113677978515625, -0.034423828125, -0.0156707763671875, -0.0435791015625, -0.0117034912109375, -0.0163726806640625, -0.014678955078125, 0.028106689453125, 0.037506103515625, 0.058319091796875, -0.0025691986083984375, -0.0013132095336914062, -0.027923583984375, 0.038787841796875, -0.054656982421875, 0.01824951171875, -0.032318115234375, 0.036163330078125, 0.05230712890625, 0.013214111328125, -0.0100555419921875, 0.0102691650390625, -0.0232696533203125, 0.016357421875, 0.01410675048828125, -0.037933349609375, -0.01898193359375, 0.0228271484375, -0.042633056640625, 0.02459716796875, -0.047393798828125, -0.0296783447265625, -0.0008988380432128906, -0.0013799667358398438, 0.014984130859375, -0.0025157928466796875, 0.0064697265625, -0.0226898193359375, 0.00847625732421875, 0.01849365234375, -0.03900146484375, -0.023681640625, 0.025909423828125, 0.031646728515625, -0.022186279296875, -0.0343017578125, 0.009063720703125, -0.0080108642578125, 0.01568603515625, -0.0236053466796875, 0.00885772705078125, 0.0309906005859375, 0.0098724365234375, -0.04156494140625, -0.0550537109375, 0.06036376953125, 0.0291748046875, 0.017974853515625, -0.0260009765625, 0.0166168212890625, -0.0002837181091308594, -0.033233642578125, 0.053741455078125, -0.0130157470703125, -0.03875732421875, -0.0081024169921875, -0.0030994415283203125, 0.0091705322265625, -0.0173187255859375, 0.03179931640625, 0.0462646484375, -0.004611968994140625, -0.001789093017578125, 0.0213775634765625, 0.01110076904296875, 0.01508331298828125, 0.01158905029296875, -0.00070953369140625, 0.018524169921875, -0.07965087890625, -0.0017957687377929688, 0.0086822509765625, -0.005462646484375, 0.0009608268737792969, -0.0322265625, -0.018524169921875, -0.006221771240234375, -0.0584716796875, -0.042266845703125, -0.04425048828125, -0.0595703125, 0.02117919921875, -0.0225830078125, -0.018218994140625, 0.0070343017578125, 0.0028476715087890625, 0.01004791259765625, -0.002208709716796875, -0.05584716796875, -0.0535888671875, -0.08135986328125, -0.0673828125, -0.005962371826171875, 0.00670623779296875, 0.0235443115234375, -0.002780914306640625, 0.09814453125, -0.00832366943359375, -0.052642822265625, -0.04376220703125, -0.014068603515625, -0.0201568603515625, -0.0174407958984375, -0.0379638671875, 0.005138397216796875, 0.0189666748046875, -0.018768310546875, 0.0186614990234375, 0.005939483642578125, 0.0023174285888671875, -0.00885009765625, 0.01111602783203125, -0.036407470703125, -0.012451171875, 0.04840087890625, 0.0010385513305664062, -0.067138671875, -0.0157623291015625, -0.09210205078125, -0.001117706298828125, 0.004161834716796875, -0.036376953125, 0.056396484375, 0.013275146484375, -0.028961181640625, 0.016357421875, 0.00434112548828125, 0.0110321044921875, 0.036468505859375, 0.016998291015625, -0.00556182861328125, 0.028167724609375, -0.015045166015625, 0.006282806396484375, -0.0209503173828125, 0.01380157470703125, -0.03106689453125, -0.0117340087890625, -0.00385284423828125, 0.0014438629150390625, -0.0068817138671875, -0.0276336669921875, -0.030914306640625, -0.10430908203125, 0.0732421875, -0.02545166015625, -0.0211181640625, -0.0631103515625, -0.040252685546875, -0.008514404296875, 0.12371826171875, -0.0364990234375, -0.024627685546875, 0.0009636878967285156, 0.034942626953125, -0.048858642578125, -0.043701171875, -0.0031280517578125, -0.00818634033203125, -0.01149749755859375, -0.03265380859375, -0.035186767578125, -0.0231170654296875, 0.049041748046875, -0.134033203125, 0.029083251953125, -0.050445556640625, 0.02294921875, -0.0181121826171875, 0.0052642822265625, 0.0011377334594726562, -0.0195159912109375, -0.026031494140625, 0.0086517333984375, -0.018280029296875, -0.0755615234375, -0.016387939453125, -0.0197906494140625, 0.0648193359375, 0.01300811767578125, 0.0228118896484375, -0.031463623046875, 0.046600341796875, 0.0323486328125, -0.0099334716796875, 0.01219940185546875, -0.0198516845703125, 0.005764007568359375, 0.0036029815673828125, -0.002582550048828125, -0.0030002593994140625, -0.004833221435546875, -0.00798797607421875, -0.05657958984375, -0.0067291259765625, -0.0247955322265625, 0.0119781494140625, 0.021209716796875, -0.031524658203125, -0.00775909423828125, -0.018035888671875, -0.0002319812774658203, -0.0029811859130859375, 0.006984710693359375, -0.007213592529296875, -0.021728515625, 0.0010223388671875, 0.0723876953125, -0.02618408203125, 0.0247650146484375, 0.007404327392578125, 0.095947265625, -0.005397796630859375, -0.0166473388671875, -0.037811279296875, 0.0275421142578125, 0.0552978515625, 0.0066070556640625, 0.018798828125, 0.0396728515625, -0.025909423828125, 0.0166473388671875, 0.035736083984375, -0.00522613525390625, -0.00518798828125, 0.0200042724609375, 0.011474609375, -0.028076171875, 0.0214996337890625, 0.00499725341796875, 0.0203857421875, -0.049713134765625, -0.004550933837890625, 0.011688232421875, 0.037841796875, 0.0009245872497558594, 0.0101470947265625, -0.001270294189453125, -0.0012969970703125, -0.0863037109375, 0.036468505859375, -0.04315185546875, -0.0340576171875, -0.0245208740234375, 0.02197265625, -0.010772705078125, -0.0308380126953125, -0.041778564453125, 0.0081024169921875, -0.0194091796875, 0.027984619140625, -0.0088653564453125, 0.024810791015625, -0.03192138671875, -0.00795745849609375, -0.0228271484375, 0.092041015625, 0.013916015625, -0.054840087890625, 0.0107269287109375, 0.007167816162109375, 0.0218048095703125, 0.012908935546875, 0.018218994140625, 0.0303955078125, -0.036041259765625, -0.008636474609375, 0.01082611083984375, -0.0026531219482421875, -0.052764892578125, -0.0124664306640625, 0.0277099609375, 0.0101470947265625, -0.0239105224609375, 0.0062255859375, 0.0260009765625, 0.01038360595703125, 0.0080413818359375, -0.01248931884765625, -0.0153350830078125, 0.01038360595703125, 0.011077880859375, 0.027191162109375, 0.00780487060546875, 0.004360198974609375, -0.006359100341796875, 0.04925537109375, -0.04498291015625, -0.003025054931640625, 0.004058837890625, 0.052276611328125, -0.020782470703125, -0.0214080810546875, 0.0300750732421875, -0.034027099609375, 0.006908416748046875, -0.0007238388061523438, -0.037628173828125, -0.048431396484375, -0.00955963134765625, 0.0229339599609375, 0.02020263671875, -0.026031494140625, -0.01001739501953125, -0.0033931732177734375, -0.0272674560546875, 0.0059051513671875, 0.006206512451171875, -0.01355743408203125, -0.01372528076171875, -0.0225982666015625, 0.014007568359375, -0.0141448974609375, -0.016265869140625, -0.00799560546875, 0.0019197463989257812, -0.0207366943359375, -0.0056915283203125, 0.0374755859375, -0.00334930419921875, 0.0101470947265625, -0.0308685302734375, -0.00193023681640625, -0.004123687744140625, 0.0027065277099609375, 0.0288848876953125, 0.001735687255859375, -0.06500244140625, 0.0205230712890625, -0.040985107421875, 0.005313873291015625, 0.048858642578125, -0.014068603515625, -0.03802490234375, -0.0511474609375, -0.0010938644409179688, -0.00412750244140625, -0.03985595703125, -0.0173187255859375, -0.01558685302734375, 0.052093505859375, 0.035919189453125, 0.059356689453125, -0.0306396484375, -0.00017952919006347656, 0.02459716796875, -0.01239776611328125, -0.0146636962890625, -0.004791259765625, 0.0357666015625, -0.015350341796875, 0.029083251953125, -0.024169921875, -0.0313720703125, -0.02911376953125, 0.02239990234375, -0.0250091552734375, -0.00841522216796875, -0.0215911865234375, -0.0281219482421875, -0.0102691650390625, -0.0013017654418945312, -0.02154541015625, 0.0516357421875, 0.00742340087890625, -0.04595947265625, 0.0145721435546875, -0.0201416015625, 0.033172607421875, -0.03515625, -0.01971435546875, 0.038970947265625, -0.0287017822265625, 0.0224151611328125, 0.05609130859375, -0.03558349609375, 0.0474853515625, 0.0716552734375, -0.011077880859375, 0.044891357421875, 0.024139404296875, 0.01067352294921875, 0.0164642333984375, 0.031402587890625, -0.0679931640625, -0.0338134765625, 0.006824493408203125, 0.023773193359375, -0.0003247261047363281, 0.01427459716796875, -0.01190185546875, 0.0239105224609375, 0.035064697265625, 0.08270263671875, -0.040802001953125, 0.018157958984375, 0.037353515625, -0.0280914306640625, 0.005306243896484375, -0.01020050048828125, 0.022064208984375, -0.0011491775512695312, 0.034942626953125, -0.01247406005859375, -0.01322174072265625, 0.0063323974609375, -0.028472900390625, 0.0174407958984375, 0.02349853515625, 0.0161895751953125, -0.002880096435546875, -0.0020580291748046875, -0.0379638671875, 0.00421142578125, 0.021636962890625, 0.00943756103515625, 0.0023097991943359375, -0.033721923828125, -0.033203125, -0.051788330078125, -0.054229736328125, -0.03497314453125, -0.034576416015625, 0.019744873046875, -0.0157470703125, 0.0396728515625, 0.0183258056640625, 0.0071868896484375, -0.00978851318359375, -0.00861358642578125, 0.0243682861328125, 0.0274200439453125, -0.0158538818359375, 0.01471710205078125, 0.013763427734375, -0.046295166015625, 0.00945281982421875, -0.022796630859375, -0.0130615234375, -0.01053619384765625, -0.0016002655029296875, 0.07672119140625, -0.03009033203125, -0.00177764892578125, 0.060516357421875, 0.0251312255859375, -0.04315185546875, 0.01096343994140625, 0.057830810546875, -0.06146240234375, -0.052734375, 0.031494140625, -0.035003662109375, -0.0220794677734375, 0.0158538818359375, -0.01538848876953125, 0.11163330078125, -0.006755828857421875, -0.028778076171875, 0.0196380615234375, 0.05712890625, -0.0166168212890625, 0.051239013671875, -0.03814697265625, 0.07354736328125, 0.026580810546875, 0.02508544921875, -0.031097412109375, -0.012542724609375, 0.0186920166015625, 0.0274810791015625, 0.0521240234375, 0.0257110595703125, -0.0303192138671875, -0.00843048095703125, 0.036865234375, 0.03277587890625, 0.0010967254638671875, 0.0318603515625, -0.0081634521484375, 0.01311492919921875, 0.0001226663589477539, -0.03338623046875, 0.042388916015625, -0.046417236328125, -0.0309600830078125, 0.00254058837890625, 0.006366729736328125, -0.005764007568359375, 0.0179595947265625, 0.0322265625, -0.06396484375, 0.033660888671875, 0.024200439453125, 0.03411865234375, 0.00534820556640625, 0.0055389404296875, 0.004077911376953125, -0.0256195068359375, -0.00936126708984375, -0.018463134765625, 0.032958984375, -0.0048980712890625, -0.01404571533203125, 0.0037689208984375, 0.0051116943359375, -0.00690460205078125, 0.0091094970703125, -0.01361846923828125, 0.032470703125, 0.02203369140625, 0.039520263671875, 0.02838134765625, 0.0142822265625, -0.035430908203125, 0.039886474609375, 0.0504150390625, 0.051422119140625, -0.06475830078125, -0.05706787109375, 0.006320953369140625, 0.0016984939575195312, 0.0037517547607421875, 0.00945281982421875, -0.001750946044921875, -0.007320404052734375, 0.023040771484375, -0.035980224609375, 0.0255279541015625, 0.018096923828125, 0.0014801025390625, -0.0036907196044921875, 0.01036834716796875, -0.026275634765625, 0.04486083984375, 0.0204315185546875, -0.033966064453125, 0.004497528076171875, 0.00485992431640625, -0.007007598876953125, 0.01146697998046875, -0.03314208984375, 0.012420654296875, 0.0220184326171875, 0.0195770263671875, -0.0121917724609375, -0.0223846435546875, -0.0249481201171875, -0.09393310546875, 0.007450103759765625, 0.032928466796875, -0.055267333984375, 0.0283966064453125, 0.0013151168823242188, 0.037811279296875, -0.005702972412109375, -0.03143310546875, 0.0269927978515625, -0.034576416015625, -0.03912353515625, -0.012939453125, -0.036773681640625, 0.018402099609375, -0.0139923095703125, 0.0094451904296875, 0.0026988983154296875, 0.03302001953125, 0.0160675048828125, 0.040802001953125, -0.0022144317626953125, -0.005687713623046875, -0.009613037109375, -0.0284423828125, 0.0273895263671875, 0.025115966796875, -0.0970458984375, -0.0115509033203125, 0.014129638671875, -0.04278564453125, 0.0166473388671875, 0.0276947021484375, -0.0191497802734375, 0.0028324127197265625, -0.018707275390625, -0.0760498046875, 0.03228759765625, 0.041656494140625, 0.005306243896484375, -0.00356292724609375, -0.0287322998046875, -0.05670166015625, -0.002124786376953125, -0.0253448486328125, -0.029266357421875, 0.0780029296875, 0.0006875991821289062, 0.10693359375, -0.057403564453125, 0.022705078125, -0.029754638671875, -0.0203704833984375, -0.00757598876953125, -0.0219268798828125, 0.011962890625, 0.01525115966796875, -0.01050567626953125, -0.002437591552734375, -0.032989501953125, 0.0273590087890625, 0.00342559814453125, 0.0183258056640625, 0.0081024169921875, -0.0352783203125, 0.0297698974609375, 0.0167694091796875, 0.0243377685546875, -0.024688720703125, -0.0328369140625, -0.055511474609375, 0.0147705078125, 0.02777099609375, 0.022705078125, -0.035552978515625, 0.00957489013671875, -0.0092315673828125, -0.0238494873046875, -0.0024433135986328125, -0.006870269775390625, -0.00420379638671875, 0.0170135498046875, -0.0239715576171875, -0.0745849609375, -0.019378662109375, -0.00018835067749023438, -0.035125732421875, 0.00336456298828125, 0.060638427734375, -0.011749267578125, -0.03363037109375, 0.0185699462890625, 0.035552978515625, 0.04638671875, 0.0028705596923828125, 0.00722503662109375, 0.0248260498046875, -0.0147705078125, 0.0164031982421875, -0.012603759765625, -0.017852783203125, -0.005512237548828125, -0.004528045654296875, 0.01348876953125, 0.0089263916015625, -0.02667236328125, -0.0665283203125, 0.0185089111328125, 0.034088134765625, -0.024627685546875, -0.039703369140625, -0.02117919921875, -0.041748046875, 0.11370849609375, -0.038787841796875, -0.029693603515625, 0.0101776123046875, 0.0270233154296875, -0.0172576904296875, -0.00823211669921875, -0.0181884765625, 0.0142669677734375, -0.017730712890625, 0.00524139404296875, 0.004680633544921875, 0.006542205810546875, 0.01238250732421875, 0.0438232421875, -0.0180206298828125, 0.08978271484375, -0.032073974609375, -0.01678466796875, 0.00312042236328125, -0.0107421875, -0.0014190673828125, -0.03875732421875, 0.0025272369384765625, -0.0660400390625, -0.0390625, -0.02685546875, -0.0008039474487304688, -0.0157318115234375, -0.06024169921875, -0.0750732421875, 0.07293701171875, -0.0174560546875, -0.0267333984375, -0.06756591796875, -0.0367431640625, -0.02032470703125, 0.055999755859375, -0.01241302490234375, -0.012054443359375, -0.04022216796875, 0.07281494140625, 0.0163726806640625, -0.0010356903076171875, 0.017791748046875, 0.052154541015625, -0.006488800048828125, 0.033782958984375, 0.0179901123046875, -0.034698486328125, 0.016845703125, -0.00437164306640625, 0.004673004150390625, 0.0347900390625, -0.032318115234375, -0.032470703125, -0.031494140625, -0.034332275390625, -0.017913818359375, -0.01611328125, -0.00720977783203125, -0.00907135009765625, 0.0124969482421875, 0.036834716796875, -0.00267791748046875, -0.009979248046875, -0.0557861328125, -0.07794189453125, 0.019866943359375, -0.03240966796875, 0.004886627197265625, -0.0679931640625, -0.0040740966796875, 0.0025501251220703125, 0.0113983154296875, 0.03753662109375, -0.056243896484375, -0.01422119140625, -0.01947021484375, -0.022186279296875, 0.01137542724609375, -0.00704193115234375, -0.0199127197265625, 0.08477783203125, -0.049896240234375, -0.003017425537109375, 0.03009033203125, 0.02423095703125, 0.0227813720703125, 0.005878448486328125, 0.0037136077880859375, 0.01104736328125, -0.05194091796875, 0.0190887451171875, -0.01038360595703125, 0.0545654296875, -0.05615234375, -0.016082763671875, 0.0171966552734375, 0.0005326271057128906, -0.033447265625, -0.0006542205810546875, 0.0216217041015625, 0.02691650390625, -0.030303955078125, 0.050506591796875, -0.0306396484375, -0.054046630859375, -0.036468505859375, 0.0033321380615234375, -0.031829833984375, 0.01555633544921875, 0.0019273757934570312, 0.017364501953125, 0.003376007080078125, 0.02996826171875, 0.0306243896484375, -0.0270233154296875, 0.040496826171875, -0.00154876708984375, 0.02337646484375, 0.00778961181640625 ]
819515e7f7c4289671305345561895eca56a0619
Wordpress Stackexchange Q: Enable revisions for custom post type I have created a custom Post Type, and Registered it. Can someone help me how to enable revisions to Custom Post type? A: When you register your CPT, you need to manually add support for revisions. Only title and editor are set as defaults. Check out the codex. So if you need to enable revisions, you need to add it like this 'supports' => array( 'title', 'editor', 'revisions' ), in your $args = array() when registering your CPT. Just for info, here are the other arguments you can pass to 'supports' 'title' 'editor' (content) 'author' 'thumbnail' (featured image, current theme must also support post-thumbnails) 'excerpt' 'trackbacks' 'custom-fields' 'comments' (also will see comment count balloon on edit screen) 'revisions' (will store revisions) 'page-attributes' (menu order, hierarchical must be true to show Parent option) 'post-formats' add post formats, see Post Formats EDIT Thanks to @jammypeach, it is important to know, the revision metabox will not show up until there are actually revisions for the post. If there are no revisions, the revision meta box will not show
Q: Enable revisions for custom post type I have created a custom Post Type, and Registered it. Can someone help me how to enable revisions to Custom Post type? A: When you register your CPT, you need to manually add support for revisions. Only title and editor are set as defaults. Check out the codex. So if you need to enable revisions, you need to add it like this 'supports' => array( 'title', 'editor', 'revisions' ), in your $args = array() when registering your CPT. Just for info, here are the other arguments you can pass to 'supports' 'title' 'editor' (content) 'author' 'thumbnail' (featured image, current theme must also support post-thumbnails) 'excerpt' 'trackbacks' 'custom-fields' 'comments' (also will see comment count balloon on edit screen) 'revisions' (will store revisions) 'page-attributes' (menu order, hierarchical must be true to show Parent option) 'post-formats' add post formats, see Post Formats EDIT Thanks to @jammypeach, it is important to know, the revision metabox will not show up until there are actually revisions for the post. If there are no revisions, the revision meta box will not show
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:443568", "question_score": "49", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139031" }
[ 0.044769287109375, -0.01500701904296875, -0.0089569091796875, -0.06768798828125, 0.004833221435546875, -0.00336456298828125, 0.0007052421569824219, 0.00859832763671875, -0.006801605224609375, 0.0304718017578125, -0.0238494873046875, -0.0057373046875, 0.01453399658203125, -0.0174407958984375, -0.018768310546875, -0.0281524658203125, 0.035400390625, -0.005847930908203125, 0.0308380126953125, -0.025054931640625, 0.00951385498046875, 0.0020236968994140625, 0.036285400390625, 0.0745849609375, 0.0176239013671875, 0.01247406005859375, 0.023681640625, -0.0323486328125, 0.0099639892578125, -0.005950927734375, 0.0284423828125, -0.017303466796875, 0.01068878173828125, 0.0165252685546875, 0.002964019775390625, 0.0162353515625, 0.0096282958984375, 0.0191650390625, 0.01422119140625, 0.0130615234375, 0.006381988525390625, 0.001941680908203125, -0.007007598876953125, -0.00583648681640625, -0.0303802490234375, -0.0181884765625, -0.0018310546875, -0.01284027099609375, 0.036376953125, 0.0208587646484375, -0.019683837890625, 0.0005512237548828125, 0.004482269287109375, -0.021820068359375, -0.0137939453125, -0.046173095703125, -0.01532745361328125, 0.00209808349609375, 0.02154541015625, 0.0022945404052734375, -0.00855255126953125, 0.005035400390625, 0.0044403076171875, 0.0011453628540039062, -0.02325439453125, 0.016326904296875, 0.051239013671875, -0.002422332763671875, -0.087890625, -0.05517578125, 0.0535888671875, -0.03790283203125, 0.0462646484375, -0.01145172119140625, 0.0235748291015625, -0.028656005859375, -0.0183868408203125, -0.0029144287109375, 0.040985107421875, -0.0183868408203125, 0.054168701171875, 0.0103759765625, 0.02490234375, -0.0014400482177734375, 0.0153045654296875, 0.01812744140625, -0.00493621826171875, -0.036285400390625, -0.01200103759765625, -0.039093017578125, -0.016204833984375, -0.0516357421875, -0.0419921875, 0.0301361083984375, 0.01129913330078125, -0.044342041015625, 0.06427001953125, 0.048095703125, -0.01922607421875, -0.033782958984375, 0.0307464599609375, -0.060791015625, 0.035552978515625, -0.03662109375, 0.0171356201171875, -0.005657196044921875, -0.049713134765625, -0.03900146484375, 0.03680419921875, 0.05645751953125, -0.007476806640625, -0.01678466796875, -0.014923095703125, -0.049163818359375, -0.0014925003051757812, 0.0382080078125, -0.013275146484375, 0.0018510818481445312, 0.00441741943359375, 0.0008978843688964844, 0.0215301513671875, 0.055572509765625, 0.004055023193359375, -0.0633544921875, 0.00811004638671875, -0.0138092041015625, -0.01788330078125, -0.0411376953125, 0.0082855224609375, 0.01087188720703125, -0.043212890625, 0.007335662841796875, 0.095458984375, 0.041229248046875, 0.0242462158203125, -0.0229949951171875, 0.037994384765625, -0.0053558349609375, -0.031097412109375, 0.03485107421875, -0.03216552734375, 0.0133209228515625, 0.04815673828125, -0.054443359375, -0.01502227783203125, 0.034820556640625, 0.0173492431640625, -0.0015840530395507812, -0.0163421630859375, -0.049591064453125, -0.003475189208984375, -0.033966064453125, 0.05718994140625, -0.01275634765625, -0.03228759765625, -0.07025146484375, -0.007274627685546875, -0.039276123046875, 0.0145111083984375, -0.047637939453125, -0.00010251998901367188, -0.0056915283203125, 0.0103607177734375, -0.0240325927734375, -0.0638427734375, 0.03253173828125, -0.0212860107421875, -0.01175689697265625, 0.034393310546875, -0.007732391357421875, 0.0369873046875, -0.0304107666015625, 0.01056671142578125, -0.01055145263671875, -0.0144500732421875, 0.0008149147033691406, 0.00795745849609375, 0.0279998779296875, -0.0037670135498046875, 0.0460205078125, 0.0207977294921875, -0.0304412841796875, 0.0423583984375, -0.018829345703125, -0.046600341796875, 0.045440673828125, -0.00615692138671875, 0.055755615234375, 0.0257720947265625, 0.0237274169921875, -0.019805908203125, 0.0167999267578125, 0.00012791156768798828, -0.007686614990234375, 0.024658203125, -0.0257415771484375, -0.00905609130859375, -0.0229949951171875, -0.0004024505615234375, 0.00991058349609375, -0.050140380859375, -0.050018310546875, 0.00658416748046875, -0.01314544677734375, -0.08148193359375, -0.00518798828125, -0.0419921875, 0.043792724609375, 0.0213470458984375, 0.0242919921875, 0.01042938232421875, 0.002147674560546875, -0.024017333984375, -0.01397705078125, -0.034698486328125, 0.01214599609375, -0.0093536376953125, 0.0301361083984375, -0.005298614501953125, -0.0014247894287109375, 0.00481414794921875, -0.03009033203125, 0.015106201171875, 0.0220489501953125, 0.0548095703125, 0.0084381103515625, -0.01546478271484375, -0.0131683349609375, 0.05413818359375, 0.034881591796875, -0.03326416015625, 0.00013959407806396484, -0.013519287109375, -0.0283355712890625, -0.0272979736328125, -0.01303863525390625, -0.014434814453125, -0.062347412109375, 0.00701904296875, 0.065185546875, 0.01406097412109375, 0.0294036865234375, -0.01386260986328125, 0.033966064453125, 0.012725830078125, 0.0067291259765625, 0.01311492919921875, 0.00925445556640625, -0.0051116943359375, 0.00390625, 0.006317138671875, -0.0160369873046875, 0.030975341796875, 0.00807952880859375, 0.020050048828125, 0.0104217529296875, -0.01507568359375, 0.03369140625, 0.027008056640625, -0.051483154296875, -0.003448486328125, -0.057708740234375, -0.0126190185546875, -0.033233642578125, 0.0278167724609375, 0.056060791015625, 0.061309814453125, 0.059478759765625, -0.04498291015625, 0.037994384765625, 0.0115509033203125, 0.0242462158203125, 0.01345062255859375, 0.01111602783203125, 0.054168701171875, 0.0269927978515625, -0.04345703125, -0.015777587890625, 0.0673828125, 0.027984619140625, -0.03192138671875, -0.04296875, -0.027252197265625, 0.007152557373046875, 0.01045989990234375, -0.07904052734375, 0.045989990234375, 0.032012939453125, -0.022796630859375, -0.0264434814453125, 0.0258331298828125, -0.036773681640625, -0.0214691162109375, -0.023162841796875, -0.0026149749755859375, -0.04058837890625, 0.0189056396484375, -0.06829833984375, 0.065673828125, -0.056976318359375, 0.08502197265625, 0.0736083984375, -0.042327880859375, 0.039337158203125, 0.00701141357421875, -0.0079345703125, -0.0081024169921875, 0.06646728515625, 0.0146942138671875, -0.06103515625, 0.00007396936416625977, -0.01482391357421875, 0.0229339599609375, -0.0257415771484375, 0.0260772705078125, 0.007190704345703125, -0.01329803466796875, 0.02178955078125, -0.0294036865234375, -0.001861572265625, -0.034515380859375, -0.04547119140625, -0.0075836181640625, 0.0014810562133789062, -0.01611328125, -0.0006213188171386719, 0.0117340087890625, 0.0239715576171875, 0.014312744140625, -0.0268402099609375, -0.0250396728515625, -0.04437255859375, -0.059783935546875, -0.0745849609375, 0.010986328125, 0.00547027587890625, 0.004283905029296875, 0.0750732421875, 0.024627685546875, -0.03741455078125, 0.022796630859375, -0.030731201171875, -0.02459716796875, 0.01241302490234375, 0.03387451171875, -0.019134521484375, 0.038726806640625, 0.012481689453125, 0.01165771484375, 0.0308990478515625, -0.0307159423828125, -0.038909912109375, -0.01166534423828125, -0.00753021240234375, 0.001003265380859375, 0.049713134765625, 0.00949859619140625, 0.0243377685546875, 0.0406494140625, -0.02508544921875, -0.03582763671875, -0.0034770965576171875, -0.027099609375, -0.022308349609375, -0.0168304443359375, 0.0239410400390625, -0.04779052734375, 0.06719970703125, 0.01027679443359375, 0.0253753662109375, 0.06536865234375, 0.00376129150390625, -0.006122589111328125, -0.0136566162109375, -0.01262664794921875, -0.061920166015625, 0.0202789306640625, -0.0036773681640625, 0.03289794921875, 0.006168365478515625, 0.0258331298828125, -0.035552978515625, 0.02972412109375, -0.09661865234375, -0.074951171875, 0.03704833984375, -0.046661376953125, 0.007717132568359375, -0.036041259765625, -0.00933837890625, 0.00432586669921875, 0.0872802734375, -0.0164642333984375, -0.021514892578125, -0.0153656005859375, 0.015777587890625, 0.0009450912475585938, -0.0498046875, 0.009735107421875, -0.0176544189453125, -0.05609130859375, 0.027557373046875, 0.018280029296875, -0.0328369140625, -0.0235137939453125, -0.0159454345703125, -0.050994873046875, -0.02349853515625, 0.036468505859375, -0.017333984375, -0.0104217529296875, 0.053192138671875, 0.0020198822021484375, -0.0009484291076660156, -0.020416259765625, -0.004428863525390625, -0.09698486328125, -0.01318359375, -0.03704833984375, 0.072509765625, 0.0207977294921875, -0.031707763671875, -0.03631591796875, 0.0222625732421875, 0.04791259765625, -0.0010900497436523438, 0.0291595458984375, -0.0165557861328125, 0.0156402587890625, -0.0279541015625, 0.002960205078125, -0.030731201171875, -0.00720977783203125, 0.01739501953125, -0.0183563232421875, 0.04266357421875, -0.017120361328125, -0.0219573974609375, 0.0189361572265625, -0.043975830078125, -0.01934814453125, -0.0308685302734375, -0.059051513671875, 0.01416778564453125, 0.0068206787109375, -0.039703369140625, -0.042877197265625, -0.06353759765625, 0.0081939697265625, -0.0136871337890625, 0.0012636184692382812, 0.01256561279296875, 0.057586669921875, 0.0183563232421875, -0.0029296875, -0.03521728515625, -0.0100250244140625, 0.035400390625, -0.0104827880859375, 0.03399658203125, 0.023712158203125, -0.006870269775390625, 0.025909423828125, 0.0010080337524414062, -0.01540374755859375, 0.004383087158203125, 0.01203155517578125, 0.0309600830078125, -0.004283905029296875, -0.01480865478515625, -0.0099334716796875, 0.040802001953125, -0.007293701171875, 0.0164947509765625, -0.0238494873046875, 0.049041748046875, 0.036376953125, -0.03570556640625, 0.02313232421875, -0.00928497314453125, 0.01465606689453125, -0.0041961669921875, -0.04132080078125, 0.07354736328125, 0.04779052734375, -0.0037174224853515625, 0.01361083984375, -0.00677490234375, 0.007068634033203125, -0.004970550537109375, -0.00543212890625, 0.004001617431640625, 0.01445770263671875, 0.03936767578125, 0.014739990234375, -0.006214141845703125, -0.00537872314453125, 0.01529693603515625, -0.030548095703125, -0.0614013671875, -0.0026531219482421875, -0.009979248046875, 0.039794921875, 0.04595947265625, 0.0227813720703125, 0.029022216796875, 0.047576904296875, 0.005096435546875, -0.0028018951416015625, 0.019683837890625, 0.036102294921875, -0.0308837890625, 0.02593994140625, 0.044921875, -0.021942138671875, -0.01065826416015625, 0.048553466796875, 0.040802001953125, -0.009521484375, -0.01482391357421875, 0.075439453125, 0.058990478515625, 0.0130615234375, 0.007659912109375, 0.00598907470703125, -0.01197052001953125, -0.01385498046875, -0.04632568359375, -0.0245361328125, -0.03887939453125, 0.00014984607696533203, 0.03082275390625, -0.031982421875, 0.00023853778839111328, 0.046173095703125, 0.0033473968505859375, -0.0144805908203125, -0.01529693603515625, -0.01739501953125, -0.03759765625, 0.0187835693359375, -0.00829315185546875, -0.0242462158203125, -0.012969970703125, -0.029541015625, 0.0233001708984375, -0.05450439453125, 0.022064208984375, -0.04461669921875, -0.003604888916015625, 0.0108795166015625, 0.0136260986328125, -0.03924560546875, -0.038421630859375, -0.005344390869140625, 0.031219482421875, -0.00646209716796875, 0.01042938232421875, -0.01531982421875, -0.02239990234375, -0.02069091796875, -0.016387939453125, -0.019805908203125, 0.03057861328125, 0.0022716522216796875, 0.0128631591796875, 0.031890869140625, -0.00829315185546875, -0.0261383056640625, 0.002353668212890625, -0.03594970703125, -0.006366729736328125, -0.007293701171875, -0.053070068359375, -0.020782470703125, -0.02618408203125, 0.0153961181640625, 0.00905609130859375, -0.0035343170166015625, -0.041229248046875, -0.0235595703125, 0.02532958984375, 0.034698486328125, 0.04205322265625, 0.0028076171875, 0.04217529296875, -0.0041656494140625, 0.059478759765625, 0.004688262939453125, 0.006542205810546875, -0.02899169921875, -0.022430419921875, -0.007030487060546875, -0.024993896484375, -0.0166473388671875, -0.0131378173828125, -0.0139007568359375, 0.05816650390625, 0.08294677734375, 0.0034809112548828125, -0.02716064453125, -0.0157470703125, -0.0012731552124023438, -0.035675048828125, 0.06634521484375, -0.01270294189453125, -0.00677490234375, -0.01387786865234375, -0.0164794921875, 0.0034618377685546875, -0.0030574798583984375, -0.024383544921875, 0.0445556640625, -0.01284027099609375, 0.0287628173828125, 0.0072021484375, -0.038543701171875, 0.0167694091796875, 0.053985595703125, 0.0248260498046875, 0.05169677734375, 0.0100250244140625, 0.02899169921875, 0.0224151611328125, 0.014404296875, -0.056182861328125, -0.01317596435546875, 0.0189208984375, 0.007534027099609375, -0.026153564453125, -0.002567291259765625, -0.00919342041015625, 0.0223236083984375, 0.0438232421875, 0.061431884765625, -0.08868408203125, 0.02587890625, 0.0226593017578125, 0.010833740234375, 0.0484619140625, 0.007335662841796875, -0.020477294921875, -0.01934814453125, -0.006641387939453125, -0.076904296875, -0.04412841796875, -0.0272216796875, -0.0210723876953125, -0.019561767578125, -0.0024738311767578125, -0.0069427490234375, 0.01561737060546875, 0.0222015380859375, 0.012786865234375, -0.0208892822265625, 0.0228118896484375, -0.0018177032470703125, 0.01398468017578125, 0.002315521240234375, -0.0325927734375, -0.054779052734375, 0.0020618438720703125, -0.033233642578125, -0.01300811767578125, 0.06512451171875, 0.0003180503845214844, -0.0113372802734375, 0.046844482421875, -0.033050537109375, 0.050811767578125, -0.004100799560546875, -0.037750244140625, -0.03973388671875, -0.036346435546875, -0.010650634765625, 0.04095458984375, 0.00792694091796875, 0.03057861328125, 0.007534027099609375, -0.02935791015625, -0.0095062255859375, 0.005130767822265625, 0.0791015625, 0.017913818359375, -0.042877197265625, 0.01483917236328125, 0.019317626953125, -0.01425933837890625, 0.00312042236328125, -0.0268707275390625, -0.037567138671875, -0.03057861328125, -0.0309906005859375, -0.072021484375, 0.0020313262939453125, -0.018829345703125, -0.01141357421875, 0.1263427734375, -0.0211181640625, -0.005855560302734375, 0.03375244140625, 0.05645751953125, -0.037933349609375, 0.05023193359375, -0.0079498291015625, 0.05291748046875, -0.03533935546875, 0.0227203369140625, -0.07196044921875, -0.021240234375, -0.01419830322265625, 0.0621337890625, 0.04638671875, 0.0257415771484375, -0.056365966796875, 0.0113983154296875, 0.040252685546875, 0.0271759033203125, -0.004039764404296875, 0.06903076171875, -0.01509857177734375, 0.0171051025390625, 0.03399658203125, -0.01629638671875, 0.031585693359375, -0.004779815673828125, -0.04595947265625, 0.0012378692626953125, 0.014129638671875, 0.00325775146484375, -0.013397216796875, -0.02294921875, -0.01544189453125, -0.010589599609375, 0.0007662773132324219, 0.0199737548828125, 0.0029430389404296875, 0.016571044921875, 0.050811767578125, -0.012237548828125, -0.004100799560546875, -0.017242431640625, 0.055755615234375, 0.037506103515625, 0.0175933837890625, 0.031768798828125, 0.01531219482421875, -0.0069427490234375, -0.0026950836181640625, 0.01727294921875, -0.0005888938903808594, 0.0003597736358642578, -0.0167388916015625, 0.005084991455078125, 0.0087432861328125, -0.01230621337890625, 0.05352783203125, 0.035736083984375, -0.0182342529296875, -0.030426025390625, -0.05670166015625, 0.00766754150390625, 0.01342010498046875, 0.00748443603515625, -0.00013005733489990234, 0.00157928466796875, -0.0286102294921875, 0.0274200439453125, -0.028167724609375, -0.00896453857421875, 0.008575439453125, -0.0006127357482910156, -0.0102386474609375, -0.021820068359375, 0.0265655517578125, 0.0146636962890625, -0.0465087890625, -0.0036163330078125, 0.0146942138671875, 0.030792236328125, 0.0357666015625, 0.04083251953125, 0.049896240234375, -0.0142669677734375, 0.0084075927734375, 0.015869140625, 0.02362060546875, -0.0256500244140625, -0.002010345458984375, -0.035186767578125, 0.0239715576171875, 0.0131988525390625, 0.0673828125, -0.0168609619140625, 0.07513427734375, 0.0251007080078125, -0.0614013671875, 0.0017747879028320312, -0.01305389404296875, -0.0162506103515625, -0.004680633544921875, -0.031707763671875, 0.0257110595703125, 0.028167724609375, 0.008056640625, -0.0020618438720703125, 0.0128631591796875, 0.0443115234375, 0.0157470703125, 0.0218048095703125, 0.0105133056640625, -0.01198577880859375, 0.037872314453125, 0.01354217529296875, 0.04547119140625, 0.049072265625, -0.055999755859375, -0.0092315673828125, -0.0148773193359375, -0.05914306640625, 0.0207366943359375, 0.0310516357421875, -0.0222625732421875, 0.00962066650390625, 0.000934600830078125, 0.0013971328735351562, 0.0022983551025390625, -0.01184844970703125, 0.004573822021484375, -0.01209259033203125, 0.0180206298828125, 0.0016527175903320312, -0.0272064208984375, -0.0160369873046875, -0.0107574462890625, 0.0279541015625, -0.0092926025390625, 0.08734130859375, -0.0226898193359375, 0.0183868408203125, 0.006427764892578125, 0.0460205078125, -0.05047607421875, -0.0161590576171875, 0.0276336669921875, -0.01409912109375, 0.01096343994140625, 0.0082244873046875, -0.0130767822265625, 0.050384521484375, 0.0256805419921875, -0.0033016204833984375, 0.039276123046875, -0.0079193115234375, 0.0077362060546875, -0.02325439453125, -0.01419830322265625, -0.040069580078125, -0.025634765625, -0.01456451416015625, -0.0095977783203125, -0.0109100341796875, -0.0204315185546875, 0.017547607421875, -0.0004839897155761719, -0.0033397674560546875, -0.03985595703125, 0.010986328125, -0.0180816650390625, 0.0027713775634765625, 0.024871826171875, 0.01282501220703125, -0.02935791015625, 0.01303863525390625, -0.005199432373046875, 0.0180511474609375, 0.01268768310546875, 0.0435791015625, 0.0180816650390625, -0.048553466796875, 0.00791168212890625, 0.0019817352294921875, 0.013519287109375, -0.0276031494140625, -0.01189422607421875, 0.0288543701171875, -0.01189422607421875, 0.00518035888671875, -0.01224517822265625, -0.023590087890625, -0.024993896484375, -0.01239013671875, 0.019927978515625, -0.01495361328125, -0.046966552734375, -0.0697021484375, 0.017791748046875, 0.04852294921875, 0.0078582763671875, -0.06597900390625, 0.051422119140625, -0.05828857421875, 0.046051025390625, 0.0008778572082519531, -0.048736572265625, 0.0101165771484375, 0.033355712890625, 0.00032830238342285156, 0.01416015625, -0.01739501953125, -0.0183258056640625, -0.0018024444580078125, 0.032318115234375, 0.06890869140625, -0.030548095703125, -0.031005859375, 0.029510498046875, 0.00754547119140625, 0.0625, 0.0048980712890625, -0.0205078125, -0.0005640983581542969, 0.0176849365234375, -0.010589599609375, -0.059173583984375, 0.00548553466796875, -0.042510986328125, 0.01384735107421875, -0.04693603515625, 0.02215576171875, 0.0276336669921875, -0.0251312255859375, -0.046051025390625, 0.033355712890625, -0.01103973388671875, -0.0142974853515625, -0.0513916015625, -0.006710052490234375, -0.0209197998046875, 0.07843017578125, 0.00007891654968261719, -0.0214691162109375, -0.0222625732421875, 0.035797119140625, -0.019378662109375, 0.0287322998046875, 0.00879669189453125, 0.0028076171875, -0.0201568603515625, -0.004695892333984375, -0.0024013519287109375, -0.04595947265625, 0.017242431640625, 0.0035686492919921875, -0.0172576904296875, 0.025238037109375, -0.061309814453125, -0.08050537109375, -0.042755126953125, 0.023284912109375, 0.004436492919921875, -0.053802490234375, -0.034088134765625, -0.04559326171875, 0.058868408203125, 0.0283966064453125, 0.01378631591796875, -0.0120849609375, 0.06427001953125, -0.049713134765625, -0.07952880859375, -0.02349853515625, 0.00807952880859375, -0.04132080078125, -0.01117706298828125, 0.04254150390625, -0.000850677490234375, 0.014923095703125, -0.0305328369140625, -0.0036220550537109375, -0.00498199462890625, 0.0081939697265625, 0.0006194114685058594, -0.032684326171875, 0.0791015625, -0.0139617919921875, -0.019256591796875, -0.007663726806640625, -0.01389312744140625, -0.031951904296875, -0.01197052001953125, -0.0125732421875, -0.02398681640625, -0.0186614990234375, 0.0098419189453125, 0.03436279296875, -0.018310546875, 0.0211029052734375, -0.0276947021484375, 0.0012378692626953125, -0.0121002197265625, 0.005031585693359375, -0.00737762451171875, -0.0123291015625, -0.00787353515625, 0.00870513916015625, -0.00968170166015625, 0.0621337890625, -0.01172637939453125, 0.005687713623046875, -0.00829315185546875, 0.00852203369140625, -0.039306640625, 0.02154541015625, -0.01116180419921875, -0.00852203369140625, 0.0237579345703125, -0.035919189453125, 0.0200653076171875, -0.01305389404296875, 0.01525115966796875, -0.0016126632690429688, -0.0210418701171875, 0.0177764892578125 ]
5527e03be723c94ae7536410f75d777cd4105f4b
Wordpress Stackexchange Q: Force wp_enqueue_scripts to the HEADER? A plugin I'm working on requires jquery to be loaded before the content is processed. Some stock themes, like 2010, 2011 and 2012 (I believe) put the JS in the footer. How can I force the scripts to be loaded in the header (I will notify users of the plugin that the plugin requires this)? A: The normal behavior of wp_enqueue_script is to put the script output into the head section, the parameter $in_footer is optional and defaults to false. So, you can load jQuery with your plugin into the head and, assumed your dealing with well programmed themes/plugins, it won't load again, because wp_enqueue_script prevents this by default - additional information about that here.
Q: Force wp_enqueue_scripts to the HEADER? A plugin I'm working on requires jquery to be loaded before the content is processed. Some stock themes, like 2010, 2011 and 2012 (I believe) put the JS in the footer. How can I force the scripts to be loaded in the header (I will notify users of the plugin that the plugin requires this)? A: The normal behavior of wp_enqueue_script is to put the script output into the head section, the parameter $in_footer is optional and defaults to false. So, you can load jQuery with your plugin into the head and, assumed your dealing with well programmed themes/plugins, it won't load again, because wp_enqueue_script prevents this by default - additional information about that here. A: The third parameter of wp_enqueue_script() allows you declare dependencies for the script you're enqueueing, i.e. what other scripts are required for them to run. add_action( 'wp_enqueue_scripts', 'include_script_that_depends_on_jquery' ); function include_script_that_depends_on_jquery() { wp_enqueue_script( 'my_script.js', '/path/to/my_scripts.js', array( 'jquery' ) ); } That way, no matter where any theme, plugin, whatever loads jquery, your script will always load later, assuming they follow best practices as well and don't deregister it. A: For example, if I wanted a simple jQuery("body").css("background-color","red"); executed from within a shortcode in the body, I can't do it. Let's say my shortcode is [body color=red] but jquery isn't loaded till the footer, then my code won't work. In your shortcode handler You could return an HTML placeholder element or JavaScript variable, and then hook onto wp_footer with another function that "runs" jQuery. function wpse_139154_shortcode( $atts ) { // Awesome code wp_enqueue_script( 'jquery' ); // Will output in the footer if not already in the head add_action( 'wp_footer', 'wpse_139154_shortcode_script', 100 ); // Ensure we run after wp_print_footer_scripts return <<<html <script> var arguments = arguments || {}; arguments.backgroundColor = "{$atts['color']}"; </script> html; } function wpse_139154_shortcode_script() { echo <<<html <script>jQuery( "body" ).css( arguments );</script> html; } A: Accoriding to the WP Reference for wp_enqueue_scripts wp_enqueue_script( string $handle, string $src = false, array $deps = array(), string|bool|null $ver = false, bool $in_footer = false ) The last parameter is responsible for where the script will be loaded. There are some snags which can change his behaviour ! Try to find and comment/remove this lines from your function.php file remove_action('wp_head', 'wp_print_scripts'); remove_action('wp_head', 'wp_print_head_scripts', 9); remove_action('wp_head', 'wp_enqueue_scripts', 1); add_action('wp_footer', 'wp_print_scripts', 5); add_action('wp_footer', 'wp_enqueue_scripts', 5); add_action('wp_footer', 'wp_print_head_scripts', 5); The purpose of this six actions is to automatically move JavaScript code to page footer making the last parameter from wp_enqueue_scripts unuseful! If this actions can not be removed, then you can change the priorities of them. From 5 to 9999 per example. Play with the priorities to find the right one for you. You also need to check if the are some dependencies specified in the $deps array.Witch gone force the script to be loaded after resolving them. Don't try any dirty hacks, it is a bad practice Happy coding A: First, dequeue the jQuery enqueued by the theme. Then enqueue it again. function jquery_at_header() { // De-Queue current jQuery wp_dequeue_script( 'jquery' ); // Re Enqueue jQuery wp_enqueue_script( 'jquery' ); //Then your script wp_enqueue_script( 'script-name', plugins_url( 'js/scrip-name.js' , __FILE__ ), array( 'jquery' ), '1.0' ); } add_action( 'wp_enqueue_scripts', 'jquery_at_header', 5 ); You might need to play with the priority to get what you need.
wordpress
{ "language": "en", "length": 548, "provenance": "stackexchange_00019.jsonl.gz:443605", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139154" }
[ 0.05401611328125, 0.01556396484375, -0.042510986328125, -0.0330810546875, 0.03485107421875, -0.04595947265625, 0.03680419921875, -0.0009665489196777344, -0.01409912109375, 0.0011034011840820312, -0.041717529296875, 0.0200653076171875, -0.039642333984375, 0.00325775146484375, -0.00814056396484375, -0.07379150390625, 0.04510498046875, -0.04962158203125, -0.017974853515625, -0.0023746490478515625, 0.012725830078125, 0.02459716796875, -0.015106201171875, 0.07763671875, 0.0009107589721679688, -0.025604248046875, 0.11578369140625, 0.007213592529296875, 0.0011548995971679688, -0.0276031494140625, 0.01360321044921875, 0.004589080810546875, 0.01141357421875, 0.0247039794921875, -0.0125885009765625, 0.0109405517578125, -0.0009670257568359375, 0.0218048095703125, 0.031402587890625, 0.01401519775390625, 0.0103607177734375, -0.00206756591796875, 0.009033203125, 0.05657958984375, -0.0178375244140625, -0.034454345703125, 0.005535125732421875, -0.042388916015625, -0.003154754638671875, -0.0124969482421875, -0.00739288330078125, -0.0114593505859375, 0.01435089111328125, -0.0194244384765625, -0.0080718994140625, 0.0001310110092163086, -0.024627685546875, -0.01221466064453125, 0.007633209228515625, 0.06744384765625, 0.029815673828125, 0.009765625, -0.01291656494140625, -0.045013427734375, -0.01342010498046875, -0.0174713134765625, -0.04278564453125, 0.007659912109375, -0.054534912109375, 0.0023956298828125, 0.0517578125, -0.03656005859375, -0.0199127197265625, 0.0082550048828125, -0.0201568603515625, -0.0240631103515625, 0.017669677734375, -0.00688934326171875, 0.01210784912109375, 0.0228424072265625, 0.01361083984375, -0.006771087646484375, -0.0261383056640625, -0.019866943359375, 0.0220794677734375, 0.0179443359375, -0.00789642333984375, -0.015106201171875, -0.0262298583984375, 0.0000712275505065918, -0.0304718017578125, 0.01161956787109375, -0.0231475830078125, -0.006397247314453125, -0.023101806640625, 0.01425933837890625, 0.0223846435546875, 0.044891357421875, 0.002086639404296875, 0.038787841796875, -0.01171875, -0.037689208984375, 0.05755615234375, -0.049835205078125, -0.033172607421875, 0.0233001708984375, 0.004131317138671875, -0.014801025390625, 0.00521087646484375, 0.035858154296875, -0.00626373291015625, -0.0169525146484375, 0.034698486328125, 0.01116180419921875, -0.0182342529296875, -0.0184326171875, -0.01184844970703125, 0.01495361328125, -0.012237548828125, 0.0182952880859375, 0.023773193359375, 0.0478515625, -0.0347900390625, -0.0290374755859375, -0.004665374755859375, -0.01654052734375, 0.00579833984375, -0.03466796875, -0.0058746337890625, 0.0031681060791015625, 0.0011196136474609375, -0.009765625, 0.032318115234375, 0.055694580078125, 0.0093536376953125, -0.0135498046875, 0.01568603515625, 0.0002894401550292969, -0.01390838623046875, 0.00850677490234375, -0.0303802490234375, -0.0186767578125, 0.00952911376953125, -0.054473876953125, -0.01093292236328125, -0.0209808349609375, -0.00044536590576171875, 0.047271728515625, 0.0005621910095214844, -0.0238037109375, 0.032684326171875, -0.019927978515625, 0.04388427734375, -0.005283355712890625, -0.006519317626953125, -0.042449951171875, 0.023681640625, -0.02740478515625, -0.0138397216796875, -0.0469970703125, -0.05816650390625, 0.0222930908203125, 0.0237579345703125, -0.068115234375, -0.034088134765625, -0.048919677734375, 0.0144500732421875, 0.007167816162109375, 0.0235595703125, 0.04571533203125, -0.048828125, -0.010162353515625, 0.028839111328125, 0.0034198760986328125, -0.0235595703125, 0.01407623291015625, 0.026763916015625, 0.00762939453125, 0.02978515625, 0.01428985595703125, -0.0223388671875, -0.02569580078125, 0.07470703125, -0.050567626953125, -0.048492431640625, 0.0229644775390625, 0.0223236083984375, 0.054046630859375, -0.00335693359375, 0.0228118896484375, 0.060943603515625, 0.0217437744140625, -0.03985595703125, -0.004302978515625, -0.005031585693359375, -0.0131378173828125, 0.0139007568359375, 0.002437591552734375, 0.0018978118896484375, 0.011444091796875, -0.01471710205078125, 0.01038360595703125, 0.00441741943359375, 0.0004711151123046875, 0.0062408447265625, -0.0150146484375, 0.002033233642578125, 0.03826904296875, 0.0430908203125, 0.037353515625, -0.01067352294921875, 0.04180908203125, -0.00921630859375, -0.06500244140625, -0.056610107421875, 0.0095672607421875, -0.051544189453125, 0.08673095703125, 0.00787353515625, 0.041259765625, 0.00516510009765625, -0.055694580078125, 0.02716064453125, -0.03521728515625, -0.006744384765625, -0.011322021484375, -0.021514892578125, -0.0194854736328125, 0.0025424957275390625, -0.01073455810546875, 0.023406982421875, 0.039337158203125, 0.01995849609375, 0.074462890625, -0.01297760009765625, -0.0229034423828125, -0.004993438720703125, -0.0204010009765625, 0.0201416015625, 0.021636962890625, 0.02490234375, 0.025115966796875, -0.01131439208984375, 0.0243682861328125, 0.0164031982421875, -0.055938720703125, -0.0089263916015625, 0.01629638671875, 0.03131103515625, 0.002765655517578125, 0.00778961181640625, -0.04437255859375, 0.05279541015625, -0.04656982421875, 0.0276336669921875, 0.039031982421875, 0.00344085693359375, -0.01267242431640625, 0.01137542724609375, -0.0172271728515625, 0.017974853515625, 0.01360321044921875, -0.0330810546875, 0.01450347900390625, 0.05706787109375, -0.03033447265625, 0.0185394287109375, -0.00148773193359375, -0.015899658203125, -0.01009368896484375, 0.020782470703125, -0.053314208984375, 0.00382232666015625, 0.06878662109375, 0.031280517578125, -0.025146484375, -0.03033447265625, -0.0225372314453125, 0.019927978515625, 0.03765869140625, 0.0006871223449707031, -0.01556396484375, -0.0121002197265625, -0.0017004013061523438, 0.0095672607421875, -0.005435943603515625, 0.03839111328125, 0.049041748046875, 0.038299560546875, 0.027984619140625, 0.0386962890625, 0.033660888671875, -0.005252838134765625, 0.0526123046875, 0.003997802734375, -0.015899658203125, 0.037872314453125, -0.01371002197265625, 0.032012939453125, -0.018096923828125, 0.0219573974609375, 0.047637939453125, -0.00775146484375, 0.01552581787109375, 0.0020503997802734375, 0.01751708984375, 0.026153564453125, -0.0169219970703125, -0.016510009765625, 0.0014257431030273438, -0.0643310546875, 0.008453369140625, 0.0244140625, 0.0673828125, 0.01202392578125, -0.051422119140625, 0.00890350341796875, 0.0396728515625, -0.0921630859375, -0.11895751953125, -0.005893707275390625, -0.05108642578125, 0.077392578125, -0.0204925537109375, 0.00833892822265625, -0.036285400390625, 0.01568603515625, 0.033538818359375, -0.01074981689453125, -0.0294952392578125, -0.04693603515625, -0.0648193359375, -0.048980712890625, -0.0030460357666015625, -0.00724029541015625, -0.0218353271484375, -0.005756378173828125, 0.0161285400390625, -0.007076263427734375, -0.0596923828125, -0.016357421875, 0.017181396484375, 0.0014734268188476562, -0.0037841796875, 0.0294647216796875, -0.0491943359375, -0.0287933349609375, 0.004276275634765625, -0.049285888671875, 0.013153076171875, 0.00933837890625, -0.00672149658203125, -0.043121337890625, -0.0430908203125, -0.034515380859375, 0.041778564453125, 0.04437255859375, -0.061614990234375, -0.011077880859375, -0.07098388671875, -0.030731201171875, 0.0182342529296875, -0.05279541015625, -0.0301666259765625, 0.02203369140625, -0.01568603515625, -0.006927490234375, -0.00955963134765625, 0.034088134765625, 0.0181427001953125, -0.0206756591796875, -0.00482940673828125, 0.0633544921875, 0.0092315673828125, 0.04669189453125, -0.0233306884765625, 0.04833984375, -0.026336669921875, 0.00339508056640625, 0.00467681884765625, -0.01233673095703125, -0.0249786376953125, -0.00928497314453125, -0.05328369140625, -0.02020263671875, 0.012786865234375, -0.0273590087890625, 0.01456451416015625, -0.00811767578125, -0.00482940673828125, 0.0198516845703125, 0.07696533203125, -0.054931640625, -0.010894775390625, 0.018951416015625, 0.022674560546875, -0.047882080078125, -0.02850341796875, -0.0478515625, -0.01476287841796875, -0.068603515625, 0.01158905029296875, -0.0244903564453125, -0.0034427642822265625, -0.0158538818359375, 0.0240936279296875, -0.0236358642578125, -0.052337646484375, 0.0147247314453125, -0.0160675048828125, -0.0268096923828125, 0.0222320556640625, -0.0197906494140625, -0.020294189453125, -0.00738525390625, -0.01690673828125, -0.0875244140625, -0.0185089111328125, -0.034942626953125, 0.08636474609375, 0.03173828125, -0.051544189453125, -0.023193359375, 0.039794921875, -0.0007543563842773438, 0.049285888671875, 0.0233306884765625, 0.020416259765625, 0.0206298828125, -0.0128021240234375, 0.02880859375, -0.0377197265625, -0.00041675567626953125, 0.01090240478515625, -0.050079345703125, 0.0142822265625, -0.0046844482421875, 0.002635955810546875, 0.0338134765625, -0.0306396484375, -0.030670166015625, -0.0241241455078125, -0.0234832763671875, -0.024169921875, 0.00966644287109375, -0.0267181396484375, -0.0231170654296875, -0.029083251953125, 0.02191162109375, 0.00043892860412597656, 0.00286102294921875, -0.0063629150390625, 0.039093017578125, 0.0302886962890625, -0.010711669921875, 0.022735595703125, 0.042816162109375, 0.03350830078125, 0.00878143310546875, 0.07470703125, -0.0018682479858398438, -0.01413726806640625, 0.09869384765625, -0.0034046173095703125, 0.0220489501953125, 0.016998291015625, 0.05267333984375, 0.0196075439453125, -0.0167083740234375, 0.0283355712890625, 0.0472412109375, -0.0889892578125, -0.01302337646484375, -0.0166778564453125, 0.03515625, -0.01157379150390625, -0.02435302734375, 0.005359649658203125, -0.0105438232421875, -0.01654052734375, -0.0004127025604248047, -0.0012903213500976562, 0.007701873779296875, 0.0660400390625, 0.042449951171875, -0.00537872314453125, 0.02667236328125, 0.0362548828125, 0.0098724365234375, 0.0016088485717773438, -0.017578125, -0.027618408203125, 0.028839111328125, 0.003631591796875, -0.0032520294189453125, 0.0048065185546875, -0.0105133056640625, 0.03485107421875, 0.0198211669921875, -0.01708984375, -0.041107177734375, -0.000022232532501220703, 0.076416015625, -0.02398681640625, 0.0224761962890625, 0.023895263671875, 0.00865936279296875, -0.0158538818359375, -0.0213470458984375, -0.01226043701171875, 0.0078887939453125, -0.03265380859375, 0.0277862548828125, 0.0244903564453125, -0.01403045654296875, -0.00879669189453125, 0.032257080078125, 0.02685546875, -0.005481719970703125, -0.00856781005859375, 0.035614013671875, 0.002910614013671875, 0.0272216796875, 0.03729248046875, -0.030242919921875, 0.007801055908203125, -0.00836181640625, -0.0176849365234375, -0.041748046875, 0.0236358642578125, -0.0058135986328125, 0.02203369140625, -0.020843505859375, -0.0244140625, 0.0667724609375, -0.0188446044921875, -0.0163726806640625, 0.031829833984375, -0.0013217926025390625, -0.035736083984375, -0.02874755859375, -0.0255889892578125, 0.03668212890625, 0.00925445556640625, 0.007419586181640625, 0.0036106109619140625, -0.0079345703125, 0.003955841064453125, 0.003055572509765625, -0.03424072265625, -0.006961822509765625, -0.01175689697265625, 0.007480621337890625, 0.029266357421875, 0.02264404296875, -0.051788330078125, -0.044189453125, 0.0011777877807617188, -0.0016050338745117188, 0.01515960693359375, -0.0406494140625, 0.033416748046875, -0.034820556640625, 0.01299285888671875, -0.00292205810546875, 0.028961181640625, 0.029296875, 0.022125244140625, -0.0545654296875, -0.0269012451171875, -0.05169677734375, -0.01678466796875, -0.0592041015625, -0.06329345703125, -0.02764892578125, 0.0167236328125, 0.01413726806640625, 0.041839599609375, -0.06689453125, -0.0904541015625, 0.0081329345703125, -0.01297760009765625, 0.0247955322265625, 0.054351806640625, -0.04937744140625, 0.0823974609375, 0.0273284912109375, -0.006206512451171875, 0.0107574462890625, 0.0634765625, 0.0285186767578125, -0.01012420654296875, -0.004245758056640625, -0.0634765625, 0.0182037353515625, -0.0145111083984375, 0.0035152435302734375, 0.007354736328125, 0.01348114013671875, 0.015594482421875, 0.0325927734375, 0.01293182373046875, 0.0036182403564453125, -0.0034770965576171875, -0.00817108154296875, 0.020050048828125, 0.0102386474609375, 0.045745849609375, 0.00955963134765625, 0.004627227783203125, -0.01389312744140625, -0.0146942138671875, 0.04473876953125, -0.016143798828125, 0.0218658447265625, -0.031585693359375, -0.0706787109375, 0.06744384765625, 0.04888916015625, 0.03179931640625, 0.04022216796875, -0.004924774169921875, 0.02386474609375, -0.0047454833984375, 0.036285400390625, -0.017547607421875, -0.06304931640625, 0.02099609375, -0.00838470458984375, -0.0243988037109375, 0.0015096664428710938, -0.024261474609375, -0.00774383544921875, 0.0149993896484375, 0.044189453125, -0.04425048828125, 0.023345947265625, -0.0081329345703125, 0.0023822784423828125, 0.0005736351013183594, -0.034698486328125, 0.0100555419921875, -0.0095977783203125, 0.0489501953125, 0.038665771484375, -0.0205535888671875, 0.033477783203125, 0.0069122314453125, -0.039886474609375, -0.032135009765625, -0.044830322265625, 0.004756927490234375, -0.03717041015625, 0.03814697265625, 0.0206451416015625, -0.019622802734375, -0.018951416015625, 0.0160369873046875, 0.0084686279296875, -0.01788330078125, -0.0160369873046875, 0.036712646484375, -0.0230712890625, -0.0024623870849609375, 0.023101806640625, -0.0115203857421875, 0.030242919921875, 0.0301055908203125, 0.0025730133056640625, 0.01556396484375, -0.006427764892578125, 0.0085601806640625, -0.0034847259521484375, -0.032745361328125, 0.044830322265625, 0.0325927734375, -0.04412841796875, 0.029449462890625, 0.016387939453125, -0.05340576171875, -0.0286865234375, -0.078125, 0.038970947265625, -0.028594970703125, 0.004558563232421875, -0.0096282958984375, 0.036376953125, 0.00592041015625, -0.0308380126953125, 0.07427978515625, -0.036590576171875, 0.00829315185546875, 0.01116943359375, -0.006927490234375, -0.0599365234375, -0.048797607421875, -0.03192138671875, 0.08636474609375, -0.0054779052734375, -0.00655364990234375, -0.006072998046875, 0.04339599609375, 0.016265869140625, 0.03717041015625, -0.003871917724609375, 0.0194244384765625, -0.03582763671875, 0.0413818359375, -0.050567626953125, -0.015869140625, 0.004474639892578125, 0.055694580078125, 0.0011997222900390625, -0.007198333740234375, 0.036407470703125, 0.00772857666015625, 0.060302734375, 0.07330322265625, 0.027496337890625, -0.050018310546875, -0.0022373199462890625, 0.00872039794921875, -0.01468658447265625, -0.009979248046875, 0.02630615234375, -0.052154541015625, -0.035980224609375, 0.004535675048828125, 0.00373077392578125, -0.0031032562255859375, 0.0010576248168945312, -0.03643798828125, -0.04425048828125, 0.0211029052734375, 0.00726318359375, 0.051849365234375, -0.03631591796875, 0.037353515625, 0.00762939453125, -0.0019483566284179688, -0.054443359375, -0.0098114013671875, 0.0251922607421875, 0.01947021484375, 0.00769805908203125, -0.00530242919921875, 0.001552581787109375, 0.0008378028869628906, -0.0228424072265625, -0.00243377685546875, 0.025146484375, -0.039276123046875, 0.0223846435546875, 0.040252685546875, 0.021514892578125, -0.009796142578125, -0.010955810546875, 0.030029296875, 0.0302886962890625, -0.03021240234375, -0.00914764404296875, -0.004787445068359375, 0.0124053955078125, 0.0194244384765625, -0.04351806640625, 0.01197052001953125, -0.0279083251953125, 0.01313018798828125, 0.0214996337890625, 0.0003941059112548828, -0.003124237060546875, -0.0135345458984375, 0.00115203857421875, 0.01140594482421875, 0.022705078125, 0.037353515625, -0.054473876953125, 0.064697265625, -0.00006729364395141602, 0.0482177734375, 0.0104522705078125, 0.03289794921875, -0.03643798828125, -0.0167694091796875, -0.016845703125, 0.06121826171875, -0.01690673828125, 0.038177490234375, -0.05572509765625, -0.041351318359375, -0.0126953125, 0.047882080078125, 0.003917694091796875, -0.00750732421875, 0.03057861328125, 0.038604736328125, -0.0300445556640625, -0.0181427001953125, 0.0154876708984375, -0.00931549072265625, 0.01454925537109375, 0.0266265869140625, 0.0179901123046875, 0.01898193359375, -0.01471710205078125, -0.0340576171875, 0.077880859375, 0.01132965087890625, -0.0213775634765625, 0.0011034011840820312, 0.00345611572265625, -0.03466796875, 0.03289794921875, 0.0025463104248046875, 0.06573486328125, 0.0108184814453125, -0.01026153564453125, -0.0181121826171875, -0.0179290771484375, -0.01232147216796875, 0.032928466796875, 0.04852294921875, -0.006114959716796875, 0.022430419921875, 0.04962158203125, -0.020172119140625, -0.014373779296875, 0.0135650634765625, 0.03631591796875, 0.0084228515625, 0.0147705078125, 0.03839111328125, -0.0248870849609375, 0.00516510009765625, 0.0011625289916992188, 0.00940704345703125, 0.020111083984375, -0.006618499755859375, 0.01326751708984375, 0.0175323486328125, 0.04132080078125, -0.03399658203125, 0.048583984375, 0.0350341796875, -0.0210113525390625, -0.0154876708984375, 0.005100250244140625, -0.0139617919921875, -0.07025146484375, 0.03338623046875, -0.0068817138671875, 0.013916015625, 0.0168914794921875, -0.01337432861328125, 0.0222015380859375, 0.0205230712890625, 0.036224365234375, -0.0369873046875, -0.04400634765625, -0.051361083984375, 0.0022869110107421875, 0.0182647705078125, 0.001537322998046875, -0.003963470458984375, -0.0215606689453125, 0.021942138671875, -0.043182373046875, 0.0089569091796875, 0.003082275390625, 0.0032176971435546875, 0.01617431640625, 0.05596923828125, 0.024322509765625, 0.03192138671875, -0.0180206298828125, 0.0347900390625, 0.00565338134765625, 0.0035858154296875, 0.010650634765625, -0.05340576171875, 0.0038242340087890625, 0.0288848876953125, 0.04730224609375, 0.01454925537109375, 0.0226593017578125, -0.002788543701171875, -0.02215576171875, -0.01947021484375, -0.044464111328125, -0.0290069580078125, -0.0254058837890625, 0.0082550048828125, 0.0193634033203125, -0.018341064453125, -0.03070068359375, -0.03509521484375, 0.0017385482788085938, 0.0255889892578125, -0.004398345947265625, -0.06915283203125, 0.0207977294921875, -0.029510498046875, 0.046356201171875, -0.016021728515625, 0.046600341796875, -0.0226287841796875, -0.0046234130859375, -0.04949951171875, -0.0247344970703125, -0.034637451171875, 0.04058837890625, -0.015716552734375, 0.012969970703125, 0.05767822265625, -0.0190887451171875, 0.0216064453125, -0.00614166259765625, 0.00457763671875, 0.055572509765625, -0.0259857177734375, 0.005794525146484375, 0.0187225341796875, 0.03704833984375, -0.0247955322265625, -0.08001708984375, -0.01372528076171875, -0.00946807861328125, 0.02557373046875, -0.0259857177734375, -0.00994873046875, -0.00074005126953125, -0.05108642578125, -0.059234619140625, 0.06072998046875, -0.0044708251953125, -0.02569580078125, -0.0672607421875, 0.00299835205078125, 0.012908935546875, -0.01073455810546875, -0.026092529296875, -0.0296630859375, -0.050079345703125, 0.03570556640625, -0.001071929931640625, -0.001895904541015625, 0.0279083251953125, -0.039794921875, -0.0491943359375, 0.00551605224609375, 0.0184783935546875, 0.01146697998046875, -0.04364013671875, 0.037841796875, 0.0105133056640625, 0.043060302734375, 0.00445556640625, 0.050506591796875, 0.0186767578125, -0.011749267578125, -0.0239105224609375, -0.020233154296875, 0.0112762451171875, 0.01910400390625, 0.06060791015625, -0.00960540771484375, 0.0019702911376953125, -0.0248565673828125, -0.00852203369140625, -0.0210113525390625, 0.0184783935546875, 0.004978179931640625, -0.00092315673828125, -0.033538818359375, 0.00732421875, 0.0203094482421875, -0.01033782958984375, -0.00980377197265625, -0.0259552001953125, -0.040802001953125, -0.0218963623046875, -0.0269775390625, 0.00789642333984375, -0.006015777587890625, -0.03607177734375, 0.055419921875, -0.01499176025390625, 0.010772705078125, 0.0123138427734375, 0.0321044921875, 0.021697998046875, 0.00936126708984375, 0.01171875, 0.059417724609375, -0.0726318359375, 0.00496673583984375, -0.01134490966796875, 0.020721435546875, -0.06561279296875, 0.0037937164306640625, 0.008819580078125, 0.02886962890625, -0.0175933837890625, 0.042144775390625, -0.0020771026611328125, 0.01025390625, -0.0206146240234375, 0.033721923828125, -0.05682373046875, -0.05621337890625, -0.037933349609375, 0.001399993896484375, 0.016143798828125, 0.035888671875, 0.08477783203125, -0.01983642578125, -0.005641937255859375, 0.0101165771484375, -0.0266876220703125, -0.004673004150390625, -0.01232147216796875, -0.07177734375, -0.006305694580078125, -0.016876220703125 ]