avoiding the display of certain categories to certain user roles at content entry time

It uses get_terms and wp_get_object_terms internally to get the categories. You can achieve what you want using a filter associated with these functions. <?php //$args = apply_filters( ‘get_terms_args’, $args, $taxonomies ); add_filter(‘get_terms_args’, ‘wpse53900_filter_cat’); function wpse53900_filter_cat($args, $taxonomies){ //this is where you can check the taxonomies and roles to filter out the ones you want //additionally, make … Read more

/wp-admin/install.php redirecting to 123-reg

I’m Nerys, I work here at 123-reg. It does indeed sound as if your domain name has not been pointed to your hosting package. Your hosting provider will be able to provide you with the details on the records you need to set up. This will usually be changing the nameservers, or setting an A … Read more

WordPress custom admin functions security

Read about “Nonces”. Create one and append it to your URL: $url=”example.php?filename=whatever&nonce=” . wp_create_nonce(‘my_sensitive_action’); When your request is fulfilled check for it: // here verify if the nonce was used before if(wp_verify_nonce($_GET[‘nonce’], ‘my_sensitive_action’)){ // it’s ok, it wasn’t used before } Also the validity of these nonces has a time limit, like one day or … Read more

Filter WooCommerce Orders

WooCommerce does not support this specific scenario. The primary issue in this case being that WooCommerce processes orders at the order level NOT the line item level. So if a customer were to order items from multiple sellers you create a situation that will cause serious problems and headaches. When the first seller marks the … Read more

Changing admin user id for database

You can change the original user to a non-admin, but I would not modify the admin users ID in the database to another ID, as this ID is referenced in numerous places, such as in the posts table to indicate the author, custom meta, user meta, etc Instead, consider marking the admin as a subscriber, … Read more

How To Make Iris Color Picker Showed Up Over Form and Text?

I found the answer. SO, there is no need to use wordpress api to make the color picker box showed up over another elemnn/s when the ‘Select color’ button is clicked. Just add this css code to your plugin/ theme administration css file: .wp-picker-clear, div.wp-picker-holder { z-index: 999 !important; position: absolute !important; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)