Reputation
2,570
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
4 28 59
Impact
~281k people reached

Apr
30
awarded  Nice Question
Apr
18
awarded  Self-Learner
Mar
4
awarded  Yearling
Mar
2
awarded  Popular Question
Feb
24
awarded  Popular Question
Jan
29
awarded  Famous Question
Jan
14
awarded  Popular Question
Dec
20
awarded  Good Question
Dec
15
awarded  Notable Question
Oct
13
awarded  Popular Question
Sep
21
awarded  Nice Question
Jul
17
comment How To Retrieve An Image Attachment's Alt Text?
@Larzan I wouldn't worry about performance - unless you're getting hundreds of images data at the same time...
Jul
7
awarded  Popular Question
Jun
30
comment What action should I hook into when adding roles and capabilities?
@krembo99 if your plugin is adding roles dynamically (ie: as a result of user action), then there's no reason you couldn't just use the basic add_role(), since it wouldn't be called every time WordPress loads (assuming that true == $use_db). It's more of an issue if a plugin adds base functionality that requires new roles/caps to be created, in which case register_activation_hook is a great solution. Where it is still a problem is for mu-plugins or bespoke theme-dependent functionality. In that case, commenting out the code after you run it the first time works, though inelegantly.
Jun
25
awarded  Famous Question
May
22
awarded  Good Answer
Apr
30
awarded  Popular Question
Apr
26
revised How do I enqueue styles/scripts on certain /wp-admin pages?
Got rid of explicitly enqueueing jquery-ui-core and jquery-ui-tabs since they're going to be auto-enqueued as a result of being listed as dependencies of `my-script`
Apr
26
comment How do I enqueue styles/scripts on certain /wp-admin pages?
Looking at my answer now, I believe that explicitly enqueueing jquery-ui-core and jquery-ui-tabs is entirely superfulous, since those scripts are already registered. You just need to call them in the dependency. I'll update my answer accordingly.
Apr
23
answered How To Retrieve An Image Attachment's Alt Text?