Merge pull request #31 from plescheff/master

Added plugin error messages filter
This commit is contained in:
Peter Molnar 2015-01-13 11:47:55 +00:00
commit a3a032df8c

View file

@ -251,10 +251,13 @@ class WP_FFPC extends PluginAbstract {
} }
} }
$filtered_errors = apply_filters('wp_ffpc_post_init_errors_array', $this->errors);
if ($filtered_errors) {
foreach ( $this->errors as $e => $msg ) { foreach ( $this->errors as $e => $msg ) {
$this->utils->alert ( $msg, LOG_WARNING, $this->network ); $this->utils->alert ( $msg, LOG_WARNING, $this->network );
} }
} }
}
/** /**
* activation hook function, to be extended * activation hook function, to be extended