Review plugin with rating of post [closed]

While there are a lot of plugins that adds rating type of stars, I would suggest that you code your own. Mainly because most of these are very feature rich with things you will not need. This is a relatively simple process: Add a custom user metadata using update_user_meta(), name it posts_voted. Add a custom … Read more

Get Plugin Information from Multiple Sites Externally

Before anything else: Be really sure that your endpoint to retrieve this information is reasonably secure. (e.g. using SSL and some authentication like a password) Leaking the information which plugins are installed on a site might offer a point of attack for hackers. I am not going to offer you a ready-made solution but outline … Read more

Multi-Environment Set up

I’m also using a Deployment process including 3 environments. This is an issue we can’t really address automatically unless you check the difference between 2 sql dumps I guess. The way to go would be to create a bit of PHP to populate your settings on deployment (or on plugin activation). It’ll obviously involve to … Read more

Can I run multiple queries with $wpdb->prepare?

Outside of subqueries, MySQL will only process 1 query at a time. When running sql statements through phpmyadmin, it just executes 1 query after the other. To do the same thing in WordPress, it appears you just use 1 query per $wpdb object (those can have subqueries if desired, but not what’s needed here).

Allow Facebook to preview posts before published

Create a new plugin with the following code: class Facebook_Peeker { private static $facebook_bots = [ ‘facebookexternalhit/1.1 (+https://www.facebook.com/externalhit_uatext.php)’, ‘facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)’ ]; private $original_posts; public function make_scheduled_post_public() { add_filter( ‘posts_results’, [ &$this, ‘peek_into_private’ ], null, 2 ); } public function peek_into_private( $posts, &$query ) { if ( sizeof( $posts ) != 1 ) { return $posts; … Read more

Invalid shipping method, WooCommerce [closed]

May be you have just enabled the ‘Enable shipping’ from shipping options page(Woocommerce -> Settings -> Shipping ). You need to enable the Shipping Methods also. For enabling shipping methods click on shipping method name from shipping methods table displayed on shipping options page. Check the checkbox ‘ Enable this shipping method ‘ and save … Read more