Initial Commit - Plugin v1.0.0

This commit is contained in:
2018-05-22 23:40:58 +02:00
parent 0ef7665850
commit 09b279d447
119 changed files with 12872 additions and 0 deletions

22
includes/deactivate.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
function fbr_deactivate_plugin(){
if( version_compare( get_bloginfo( 'version' ), '4.5', '<' ) ){
wp_die( __( 'You must update Wordpress to use this plugin', 'fbsr' ) );
}
// Setup Option Page fields
$fbr_opts = get_option( 'fbr_opts' );
if( $fbr_opts ){
$opts = [
'fbr_app_id' => null,
'fbr_app_secret' => null,
'fbr_page_id' => null,
'fbr_page_access_token' => null,
'fbr_ratings' => array(),
];
update_option( 'fbr_opts', $fbr_opts );
}
}