Plugin page having notices at defined position

I was trying to create a plugin admin page with no admin notices at the top. I want that admin notices inside the table structure i am going to add. How can i do that. I used css to hide notices. But that’s not the right way.

add_action(‘admin_menu’, ‘test_plugin_setup_menu’);

function test_plugin_setup_menu(){
add_menu_page( ‘Test Plugin Page’, ‘Test Plugin’, ‘manage_options’, ‘test-plugin’, ‘test_init’ );
}

function test_init(){
?>
<table width=”100%”>
<tr>
<td class=”admin-notice-section”>
<!– Notices Here –>
</td>
</tr>
<tr></tr>
<tr>
<td>
<!– Plugin Contents Here –>
</td>
</tr>
</table>
<?php
}

Read more here:: Plugin page having notices at defined position

Leave a Reply

Your email address will not be published. Required fields are marked *