array key: notices
no return value
Standard admin notices are available through a Saturn Tables callable and are hooked to the admin_notices
hook. In general, you need to make use of form or query string variables to manipulate admin notices. Since admin notices in Saturn Tables are called via a hook they are echoed out and not returned programmatically.
For more on admin notices go to https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices
function saturn_tables_cars_admin_notices() { if (isset($_GET['delete']) && ($model = $_GET['delete']) ) { echo '<div class="notice notice-success is-dismissible"><p>' . __( "Model $model has been deleted.", "saturn-tables" ) . '</p></div>'; } elseif (isset($_GET['trash']) && ($model = $_GET['trash'])) { echo '<div class="notice notice-success is-dismissible"><p>' . __( "Model $model has been placed in the trash.", "saturn-tables" ) . '</p></div>'; } elseif (isset($_GET['bulk']) && ($bulk = $_GET['bulk']) == 'trash') { $count = $_GET['count']; echo '<div class="notice notice-success is-dismissible"><p>' . __( "$count item(s) have been placed in the trash.", "saturn-tables" ) . '</p></div>'; } elseif (isset($_GET['bulk']) && ($bulk = $_GET['bulk']) == 'delete') { $count = $_GET['count']; echo '<div class="notice notice-success is-dismissible"><p>' . __( "$count item(s) have been deleted.", "saturn-tables" ) . '</p></div>'; } }