How to trace SUBMIT button

Still using jQuery, you can do this: $(‘form’).submit(function() { // Use this to echo in JS console. console.log( $(this).attr(‘action’) ); // Use this to display a popup. alert( $(this).attr(‘action’) ); }); This will track every form being submitted. Place this between <script> tags or in a JS file. Like @dev said, this for debug purpose, … Read more

Delay JavaScript files from loading

I think you should use setTimeout to pause the execution of the script without blocking the UI. setTimeout(function(){ //your code to be executed after 2 seconds }, 2000); So your code will become. setTimeout(function(){ document.addEventListener(“DOMContentLoaded”, function(event) { document.getElementsByTagName(“body”)[0].setAttribute(“ng-app”, “app”); }); }, 2000); This will delay script execution for 2 seconds. You can change this value … Read more

Use wordpress plugin in codeigniter

It is possible but probably not worth it. what you will need to do is bootstrap wordpress by including the wp-load.php file located at the root of the wordpress directory structure. The problem is that wordpress is still far from having a clean organized code which is globals free so while it is possible in … Read more

Strange ASCII characters overlapping content

It seems that error is in your theme.min.css. The Font Awesome Icon which should appear in the browser is added via CSS using content. But the CSS does not contain the icon information but these weird looking characters. For Example: .fa-music:before{content:”&iuml;&iuml;&iquest;&frac12;&iuml;&iquest;&frac12;”} I cannot tell why your minified CSS has these characters. This could be: a … Read more

How to check if a taxonomy not exists in a plugin

You will either need to do two things Check for an empty array AND a WP_Error object Check if the taxonomy exists (which get_categories() and get_terms() already does) before your execute your code and still check for an empty array FEW NOTES TO CONSIDER get_categories() uses get_terms(), you you could use get_terms() You do not … Read more

Does a blank plugin come with any overhead?

No, outside of purely technical aspects of PHP includes (as you correctly pointed out), there is no additional overhead to plugin quantity on general WordPress core load.. The list of active plugins is calculated in advance and stored persistently. The load process just runs over it and performs PHP includes on each. The edge cases … Read more