Every time i click a button or navigate away from a page that has tinymce running on it, i get a warning error that asks "are you sure you want to...". Nothing on the page is being saved, so there is no real point of this since there is no alternative. How do i make…
I am developing a custom plugin in wordpress and i am trying to get a new post type added. I have followed some guides to get this done and I dont see any problem with what I have done. The syntax is good and there is no php error being thrown. Still I get the…
I am using JsPDF and I want to add an image to a pdf document. I have followed the examples from the code and it seems fairly simple to make it work. For some reason I am getting a console error when I try to perform this. The error reads "addImage is not a function".…
I am writing some custom code and I want to add a loading icon to the page so that the user can see that the code is doing something and has not frozen. Rather than generate a new one, it would be useful to just reuse the default one that wordpress uses. What is the…
When it comes to code readability, the initialiser syntax makes declaring C# objects very easy and clean to read. It also makes writing the code much faster since you do not need to be adding new constructors and lets you see what properties you have left to assign. But what about performance? Is one method…
I am trying to add an options page to my plugin and I am using a hook that calls a method of a class. How do I also make this callback reference the method inside this class. Here is the code that I have for it so far. class Wordpress_Admin_Config_Class { public function load_options_page() {…