135 reputation
110
bio website richardsweeney.com
location Sweden
age 36
visits member for 2 years, 10 months
seen May 18 at 11:44

I'm a web designer and developer based in Malmö, Sweden.

I love HTML5, CSS3, JavaScript, jQuery, WordPress and PHP.


Aug
4
awarded  Student
Jul
6
comment Using attachment_fields_to_edit filter inside plugin class
Good to know @goto10 - cheers!
Jul
5
comment Using attachment_fields_to_edit filter inside plugin class
I can't answer my own question, so I'll put this here. I solved the problem by removing the filter priority, so: add_filter('attachment_fields_to_edit', array($this, 'attachment_fields')); works, though I'm not sure why. Incidentally, I always learnt to use a reference to $thisin WordPress too, but it doesn't seem to make a difference.
Jul
5
comment Using attachment_fields_to_edit filter inside plugin class
Hi @goto10! Thanks, but that shouldn't (and unfortunately doesn't) make a difference :( Does your code look basically the same as mine?
Jul
5
asked Using attachment_fields_to_edit filter inside plugin class
May
16
awarded  Popular Question
Feb
15
awarded  Autobiographer
Sep
30
comment Stop wordpress from hardcoding img width and height attributes
thanks for this solution. Nice and robust! I'll use this in a future project.
Sep
30
awarded  Scholar
Sep
30
comment Stop wordpress from hardcoding img width and height attributes
Hi Vilius - of course, I think I've even done this before! Nice solution, works great. Many thanks.
Sep
30
accepted Stop wordpress from hardcoding img width and height attributes
Sep
30
asked Stop wordpress from hardcoding img width and height attributes