Why did a WordPress plugin vanish from the WordPress repository?

The common case of plugins seemingly going poof is lack of updates for >2 years, which makes them de-listed from search. In this case however plugin is clearly missing. This is either technical glitch of some kind (not too likely) or it had been removed from repository. The usual reasons are security vulnerabilities and license … Read more

Possible jquery / library conflict in plugin usage

The gallery plugin is loading it’s scripts before the jQuery migrate script which is being loaded by the jquery updater plugin <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/jquery-updater/js/jquery-2.1.0.min.js?ver=2.1.0″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/gallery-plugin/fancybox/jquery.mousewheel-3.0.4.pack.js?ver=3.5″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/gallery-plugin/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.5″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/jquery-updater/js/jquery-migrate-1.2.1.min.js?ver=1.2.1″></script> This is causing a JavaScript error which is preventing other scripts from running. Try disabling the jQuery updater plugin and let WordPress … Read more

Custom User Role

Okay, so I have done it. Reading about roles and capabilities: http://codex.wordpress.org/Roles_and_Capabilities A default set of capabilities is pre-assigned to each role, but other capabilites can be assigned or removed using the add_cap() and remove_cap() functions. New roles can be introduced or removed using the add_role() and remove_role() functions. Add a capability: http://codex.wordpress.org/Function_Reference/add_cap If you … Read more

jquery-issue: cannot load the basic jquery

A plugin or your theme is probably calling wp_enqueue_media() and instead of adding a check for admin page and early return they are allowing the scripts to load on every admin page. You need to deactivate all the plugins and switch to the default theme. If this solves your issue then activate your plugins one … Read more

How can I pass value to function in add_menu_page?

Don’t use a function for the callback, use a class. Something like this: class Competition_Manager_Page { private $extra; public function set_extra( $value ) { $this->extra = $value; } public function render() { // show you page content, then: print $this->extra; } } You can extend the class’ functionality later. Now, when you register the menu, … Read more