For those of us who do not like the new admin bar in WordPress 3.1, here is a quick 1 line (2 with a comment) fix for removing it: // Remove the admin bar from displaying…everywhere add_filter(‘show_admin_bar’, ‘__return_false’);
Tag archives for WordPress
-
-
Recently I was having an issue with the WordPress autosave running on my posts in a custom post type. I am running a lot of scripts in the “save_post” action and couldn’t find a good way to exclude autosaves from running this code. Note that I looked at the info being passed to the functions…
-
After some discussions with coworkers and a plugin user, I realized the plugin needed a little more documentation on the template directory. I have added some absolute paths to the plugin settings screen for easier reference. I also added a button to test and make sure that the directory is usable for the plugin. It…
-
I’m very happy to announce the release of the Code To Widget WordPress plugin. The plugin reads files in a directory and automatically creates widgets to be placed in sidebars. It gives developers/designers the ability to create widgets without having to write the widget code every time. This plugin was initially written out of frustration.…
-
When using functions like add_submenu_page etc, make sure that you add them at the admin_menu action. If you try to add them any place other than that you will get “Insufficient Privileges” errors when trying to go to the page. NOTE: If you are in WP 2.8 WordPress allows you to run those functions at…
-
For the WordPress Media Gallery to work properly on a server, PHP Safe Mode must be turned off. From what I am told when PHP Safe mode is on, PHP runs as a different user than apache and this causes folder creation/modification problems. So for the uploader to work it must be turned off. Also…
-
WordPress has a very distinct way of doing things when it comes to file uploads. There is the restriction that PHP puts into place with file uploads (ie upload_max_filesize and post_max_size), and restrictions that WP puts in via values in the database. With the PHP values, if you need to upload large files you will…