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