3
votes
2answers
953 views

Using attachment_fields_to_edit filter inside plugin class

I'm writing a plugin using OOP. I realise that filters and action hooks need to be placed inside the constructor method in WordPress like so: add_action('wp_enqueue_scripts', array($this, ...