Installing plug ins on a wordpress hosted site

You won’t be able to install any plugins on WordPress.com. In order to do that you’ll need to move to the self-hosted version of WordPress that you can download for free at WordPress.org. You will need to purchase hosting and domain. Some hosts can have WordPress setup for you as part of their hosting package. … Read more

Restore with Duplicator, URL is concatenated twice

Magnus solved the issue by resetting the wp_home and wp_site_url options via the following code in wp-config.php: define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); Thanks to denis.stoyanov’s tip about the Moving WordPress Codex entry.

Webservice credential storage [duplicate]

Try looking at this: How to store username and password to API in wordpress option DB? tl;dr: use OAuth, if the web service supports it, or if the web server is run by yoursefl Store the data encrypted in the database, using as encryption wordpress installation-wide unique keys, ad you can see in the link.

Add wordpress user database on android app

It’s possible to write your own endpoing using add_rewrite_rule(). In this case, we’ll register the endpoint http://example.com/api/user_data/{id}. Then check to make sure the ID is numeric. If it is, lookup the user by id and output the JSON response. URL http://example.com/api/user_data/1 JSON { “success”: true, “data”: { “id”: 1, “display_name”: “your_username”, “user_registered”: “2015-11-12 05:00:00”, “first”: … Read more

Readme.txt not getting updated

Change the Stable tag value to your current plugin version 1.0 Make a folder in tags with name 1.0. Copy your plugin files for version 1.0 in that folder with readme.txt and push it on SVN. Do the same whenever you release a new version. Please note: What you keep in your trunk is development … Read more

Disable variations on woo commerce if out of stock

Managed to solve my own issue. Simply paste the following into functions.php function custom_wc_ajax_variation_threshold( $qty, $product ) { return 10; } add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 10, 2 ); Then change the ‘return 10;’ to however many variations you have. Please note this may slow down page loading time depending on your hosting.