Adding direct link to post editor in admin menu

When you are adding the menu slug as edit.php?post=706&action=edit, it is adding in the url after admin.php considering it as a new page in admin dashboard (general behaviour of add_menu_page()) So, you should give a fully qualified url instead. I think, admin_url() should help. Try adding admin_url(‘post.php?post=706&action=edit’) Or admin_url(‘edit.php?post=706&action=edit’) instead of edit.php?post=706&action=edit as menu slug.

Plugin option for input box validation

You want to set the input’s type to number for numeric validation. And use the input’s value to set a default value. <input type=”number” id=”title” name=”my_option_namePlugin option for input box validation” value=123 /> If you just want a hint displayed to the user inside the input, use placeholder. <input type=”number” id=”title” name=”my_option_namePlugin option for input … Read more

Developing a plugin where users can edit entries saved in database

I’ve managed to do it, but probably there is a much cleaner WP way of doing these things. So, I have a menu page that I’ve added using add_menu_page. On it, I display all the records. The url is: /wp-admin/admin.php?page=plugin-settings (or whatever you call it) I use: <a href=”https://wordpress.stackexchange.com/questions/218076/<?php echo bloginfo(“url’);?>/wp-admin/admin.php?page=utm-user-plugin-settings&id=<?php echo $row->id; ?>”>Edit</a> So … Read more

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