Skip to content

Commit

Permalink
Update Settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alimuzzaman committed Nov 28, 2023
1 parent 5ba771e commit 3f2d27c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/API/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function meta_rest_api() {
[
'show_in_rest' => true,
'single' => true,
'type' => 'boolean',
'type' => ['boolean', 'string'],
'auth_callback' => function() {
return current_user_can( 'edit_posts' );
}
Expand All @@ -72,7 +72,7 @@ public function meta_rest_api() {
]
);
}

}


Expand Down Expand Up @@ -104,7 +104,7 @@ public function wpsp_instant_social_share( $data )
do_action('wpsp_instant_social_single_profile_share', $data->get_params());
}

// Fetch option table data
// Fetch option table data
public function wpsp_get_options_data( $request ) {
$option_value = get_option('wpsp_settings_v5');
if ($option_value !== false) {
Expand Down Expand Up @@ -132,7 +132,7 @@ public static function get_instance()
return self::$instance;
}


/**
* Register the routes for the objects of the controller.
*/
Expand Down Expand Up @@ -188,7 +188,7 @@ public function register_routes()

}



/**
* Fetch pinterest section
Expand Down

0 comments on commit 3f2d27c

Please sign in to comment.