I'm currently developing a Wordpress plugin. For my plugin to work I need some info te be filled in on the settings page.
I would recommend using the admin_notices action. This lets you display warnings and errors and direct your users to a page:
add_action('admin_notices','my_custom_warning');
function my_custom_warning() {
if( true == true ) {
echo '<div id="my-custom-warning" class="error fade"><p>This is a test</p></div>';
}
}
This method makes sure your users can still use WordPress but will let them know where they can get information on and fix a potential problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With