Articles of admin

Filter WooCommerce Orders

I am using woocommerce for a “multi-seller” system. Meaning one site (no multi-site), but many sellers with different products. To let each owner only manage it’s own orders, it would like to filter all orders before they are shown in the admin area. The criteria for filtering could be a tag or the creator of […]

What's causing this error? “Warning: Invalid argument”

I noticed today that my error logs are littered with this information. I’m not quite sure what’s causing it. Has anyone seen this before? [Mon Mar 25 17:24:23 2013] [error] [client] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/mysite/wp-admin/includes/plugin.php on line 1290, referer: http://mysite/contact/ Line 1290 is the foreach in the following code. I […]

Plugin getting Cannot modify header information errors

I am trying to build my first plugin but am receiving the following error: Warning: Cannot modify header information – headers already sent by (output started at /wp-admin/includes/template.php:1642) in /wp-includes/pluggable.php on line 876 But here’s the thing: template.php isn’t 1600 lines long and pluggable doesn’t have any whitespace at that point. My plugin code is […]

WordPress Media Uploader custom Javascript not working

I encountered a strange problem with my JavaScript (jQuery) when trying to modify the behavior of my Media Uploader in WordPress 3.5 This was my JQuery: $(‘.attachment-filters’).change(function(){ if($(this).val() === ‘uploaded’){ alert(“Uploaded images selected”); } else { alert(“Other option selected”); } }); And this was the part of the media uploader i wanted to react to: […]

Downloading entire site locally with httrack

I had a bit of a scare with a malformed database last night which got me to getting onto making sure I have so many redundant backups of my site that I am covered in the event of the server dying, my home backup server dying, etc. 🙂 That said, I am trying to use […]

Access for adding subpages but not for pages

For every website project, i make the wordpress admin custom for the client. Right now, i want that the client only has access to add subpages. I have a main navigation on the website. I want that the main navigation is fixed, so the client can not add pages to the navigation. But the client […]

Changing admin user id for database

Is it correct or ok to change default admin user id from 1 to any other number as done by better-wp-security plugin for wordpress for better security? what is best way for admin security. Thanks

How to change color of registered widget areas in admin?

Right now they are all gray. How to change the color? I mean, how to add a class or id to the registered widget area that are shown in the admin area? This is how you register the admin areas in my functions.php right now: register_sidebar( array( ‘name’ => __( ‘Main Sidebar’, ‘twentyeleven’ ), ‘id’ […]

Passing dynamic options from backend to frontend

I have created an admin options page (using the Redux Theme Framework), in which the admin can customize the website’s appearance (text color, background color, background repeat options, etc.. ). Let’s suppose i want to give my user the possibility of setting a custom background for a section. Admin-side, i have a media uploader form […]

Problems to disable the comments for my statics pages

I am pretty new in WordPress world (I came from Joomla). I am developing a mainly static website using WP (because maybe in the future I will have some dynamic behavior and because WP is pretty light) So I have some statics pages that make up my site. The problem is that I can not […]