Ignore “empty” fields when saving

First you need to catch the input then you can save it from $_POST So i assume your input fields names are myplugin_id , myplugin_api_key and myplugin_checkbox what you are currently doing is just going to replace the option with myplugin_checkbox You can try function register_myplugin_settings() { if ( isset( $_POST[‘myplugin_id’] ) && ! empty( … Read more

Import bootstrap 5 and bootstrap icons in wp-admin backend

Basically, to add admin-style.css to admin: function wpdocs_enqueue_custom_admin_style() { wp_register_style( ‘custom_wp_admin_css’, get_template_directory_uri() . ‘/admin-style.css’, false, ‘1.0.0’ ); wp_enqueue_style( ‘custom_wp_admin_css’ ); } add_action( ‘admin_enqueue_scripts’, ‘wpdocs_enqueue_custom_admin_style’ ); Do approximately the same for Javascript. See https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/ And see https://wordpress.stackexchange.com/search?q=custom+css+admin

Create dynamic wordpress blank page

Try something like this: in the load hook, you can ouput your xml code. u function my_menu_pages() { $hook = add_submenu_page( null, ‘Page Title’, ‘Page Title’, ‘administrator’, ‘sub-menu-slug’, function() { } ); add_action(‘load-‘ . $hook, function() { // add your xml code here, // you will get a blank page to start with exit; }); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)