How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?

I’m building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I don’t mean pages as in a WordPress page that you create yourself but rather existing admin section pages like ‘Your Profile’, ‘Users’, etc. Is there a wp function specifically for this task? … Read more

How to reset a form using jQuery with .reset() method

I’ve finally solve the problem!! @RobG was right about the form tag and table tag. the form tag should be placed outside the table. with that, <td><input type=”reset” id=”configreset” value=”Reset”></td> works without the need of jquery or anything else. simple click on the button and tadaa~ the whole form is reset 😉 brilliant!

Syntax Error: Import Declarations May Only Appear at Top Level of a Module

I am trying to use a plugin called “Simplebar” found on GitHub, GitHub SimpleBar but after downloading the scripts and looking at the simple.js script, it looks like it has an error “SyntaxError: import declarations may only appear at top level of a module” At the top of the simplebar.js file there are some import … Read more