|

Uncaught (in promise) TypeError: Illegal invocation

Uncaught (in promise) TypeError: Illegal invocation error using jQuery ajax code. I don’t understand how this ajax JS parameters works but digging a deep research about the error shows me some correct solution. Here’s the code of mine that has `Uncaught (in promise) TypeError: Illegal invocation` error. JS code that has `Uncaught (in promise) TypeError:…

|

Dequeue or deregister a style or script in WordPress

Dequeue or deregister a style or script in WordPress is now easy and no need more time to find solutions online. Example 1: I want to remove styles using `dequeue` function. If you can see, I want to remove the `anton-accordion-style-css` styles. Please see codes below. Code to be paste in functions.php Example 2: I…

|

WordPress page options resetting after pressing the enter keys

WordPress page options resetting after pressing the enter keys and all of your settings go back to zero. This is usually this is happening when you create a custom page option in WordPress dashboard. The main reason is the reset button is declared ahead or coded before submit button. If you can see the `id=”reset”`…

|

Redirect selected pages or single page into specific page.

Redirect selected pages or single page into specific page. Example, redirect a selected pages or a single page after login into your dashboard page, membership page, or any page you desired. You can use https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect this but this is only access once. Once you’ve login, you cannot repeat the redirection. Unlike `template_redirect` hook, this will…