How to reset a custom theme

If you look into the file includes/admin/theme-admin.php you’ll see that the theme’s options are stored in ‘themezee_options’. You can either delete these options per database manager or per a plugin. If you aren’t familiar with database operations, copy the following code into a PHP file, install it as plugin and activate it once. Then deactivate … 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