How to override the settings array on the plugin?
-
I am working on a plugin function that has the configuration array in this format:
protected function get_configuration() { $configuration = array( .... .... 'dimensions' => (object) array( 'width' => 780, 'height' => 500 ) ); return apply_filters('pluginname_configuration', $configuration); }
I would like to override the default values of width and height in functions.php. I tried using add_filter() function and defining my own function but it doesn’t look this this is the right way to do it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to override the settings array on the plugin?’ is closed to new replies.