298 reputation
217
bio website about.me/henrywright
location London, England
age
visits member for 1 year, 10 months
seen 5 hours ago

I'm a huge WordPress fan and general geek interested in PHP, HTML and CSS. You can usually find me on Twitter @henrywright


6h
comment Are WordPress Heartbeat API 'beats' staggered or do they occur simultaneously for all users?
Thanks for such a detailed answer. My understanding is there are two beats to a cycle. The initial beat which is determined by the browser and then a return beat. It's clear from your answer that the initial beat is staggered. Is the return beat (which sends data from the server back to the browser) staggered also?
2d
asked Should I change the default file and folder permissions?
2d
awarded  Promoter
2d
accepted How to create custom 401, 403 and 500 error pages?
2d
comment How to create custom 401, 403 and 500 error pages?
thanks for these ideas. I think the manual modification to the .htaccess file is my favourite approach in the absence of a native way of doing it in WordPress.
Aug
29
accepted How to redirect unattached image attachments
Aug
29
asked How to redirect unattached image attachments
Aug
29
revised Are WordPress Heartbeat API 'beats' staggered or do they occur simultaneously for all users?
deleted 1 character in body
Aug
28
asked Are WordPress Heartbeat API 'beats' staggered or do they occur simultaneously for all users?
Aug
15
comment Delete post with all files attached to it
Just to note, following your basic logic, I had success when using before_delete_post rather than delete_post. Perhaps by the time delete_post is run, the post's metadata has been removed (which is needed for wp_delete_attachment to function properly).
Aug
1
comment Delete Post From front Page ( With Wp-admin restriction )
@shanebp done! Thanks to sven for the feedback.
Aug
1
revised Delete Post From front Page ( With Wp-admin restriction )
Made change suggested in answer's comments
Jul
14
comment How to get the custom header image's alt text?
One slight modification I'd make to your function is the use of get_custom_header()->attachment_id to get the static header attachment ID instead of $data = get_theme_mod( 'header_image_data' ). Your function then works perfectly.
Jul
2
awarded  Curious
Jun
28
accepted How to get the slug of the homepage when editing it in WP admin?
Jun
28
comment How to get the slug of the homepage when editing it in WP admin?
@vancoder on 3rd thoughts, I think it does actually apply to the edit screen as well.
Jun
27
comment How to get the slug of the homepage when editing it in WP admin?
@vancoder on 2nd thoughts, I think you might be right
Jun
27
comment How to get the slug of the homepage when editing it in WP admin?
I think it applies to the edit screen as well.
Jun
27
asked How to get the slug of the homepage when editing it in WP admin?
Jun
27
awarded  Nice Question