I currently have add_action('admin_notices','my_notice_function'); updating correctly whenever a page is refreshed (it's checking if a certain page has a certain parent) but when using the "Quick Edit" my admin_notices is not fired.
When trying to hook the same function into add_action('save_post','my_notice_function')); it breaks the formatted table and doesn't display the error message in the normal admin_notices section at the top of the page.
Any help would be greatly appreciated.
Code, as it stands:
public function init() {
add_action('admin_notices','page_check');
add_action('save_post','page_check');
}
public function page_check(){
if(PluginCommon::verifyPages('error')){
?>
<div class='alert-message alert-danger' id='page_errors'>
<h2>A problem has been detected.</h2>
<ul><?php echo PluginCommon::verifyPages('error'); ?></ul>
</div>
<?php
}
}