Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date
[3.6] OBW: Display FB recommendation until removed
This commit is contained in:
commit
06bec2e845
|
@ -141,11 +141,7 @@ class WC_Admin_Setup_Wizard {
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
protected function should_show_facebook() {
|
protected function should_show_facebook() {
|
||||||
$end_date_facebook_recommendation = new DateTime( '8 October 2019' );
|
return current_user_can( 'install_plugins' );
|
||||||
$current_user_date = new DateTime( current_time( 'Y-m-d' ) );
|
|
||||||
|
|
||||||
return current_user_can( 'install_plugins' ) &&
|
|
||||||
$end_date_facebook_recommendation >= $current_user_date;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue