21,272 reputation
32869
bio website stephenharris.info
location Edinburgh, United Kingdom
age 27
visits member for 3 years, 8 months
seen 43 mins ago

I develop WordPress plugins, including the event management plugin, Event Organiser. I also write for Wptuts+

I've recently submitted a PhD thesis in Mathematics at the University of Edinburgh and I am currently working for the Digital Directorate, specifically as developer with the Glow blogs team.

Github | Twitter


1d
reviewed Reviewed How to move short description under featured image in woocommerce single product page
1d
reviewed Reviewed How to edit attachment images title from front-end in a custom post?
1d
comment How to edit attachment images title from front-end in a custom post?
Sounds like you're using a plug-in to edit from the front-end, in which case I'd recommend asking the author of that plug-in.
1d
reviewed Approve Errors when activating any theme
2d
reviewed Reviewed How to use wp-cli with php?
2d
comment How to use wp-cli with php?
This is a generic PHP question, not specific to WordPress. Please see php.net/manual/en/phar.using.intro.php for how to use .phar libraries.
2d
reviewed Reviewed link category listing to single product directly skippping the product listing page
2d
comment Wordpress sending emails continuously. How to stop it?
I suspect the php process is long dead but that while it was alive it filled up your e-mail server with a very long queue. You could try to kill the e-mail server. If you don't know how do that, I'd recommended contacting your host. Though I suspect (hope) the e-mails would dry up before you would get a response...
2d
comment Wordpress sending emails continuously. How to stop it?
@AmirMousavi I can't believe it's still running, but you can kill it with: stackoverflow.com/questions/7526701/…
2d
reviewed No Action Needed Wordfence detects change in wp-admin/includes/upgrade.php
2d
reviewed Reviewed Wordpress / Woocommerce custom registration fields
Jun
25
comment How do I mock get_adjacent_post for testing
Although interesting, this isn't a question specific to WordPress. (But see: marcelog.github.io/articles/…)
Jun
25
answered Is there a way to know the name of all variables passed by wp_localize_script?
Jun
25
comment Is there a way to know the name of all variables passed by wp_localize_script?
Why might you need to call wp_localize_script() more than once for a script? Is this because you might have multiple instances of a JavaScript 'widget' (for want of a better word), or because you have one instance, but not all data is available at once?
Jun
25
awarded  Nice Answer
Jun
11
awarded  Custodian
Jun
11
reviewed No Action Needed Show Parent category and Subcategory
Jun
11
reviewed Reopen How to highlight recent page updates
Jun
11
revised Serialize data for wp options
WordPress handles serialisation with get_option() when passed an array.
Jun
3
comment Hide certain post types from editors
OK, your snippet appears to be attempting to remove a nonexistent admin submenu, In WordPress if a user can only edit a subset of posts they can still see the others. If that's sufficient I'd recommend looking into meta capability mapping: codex.wordpress.org/Function_Reference/map_meta_cap or a hook in current_user_can. Will try to furnish you with details unless you/someone posts an answer in the mean time.