diff --git a/includes/Classifai/Features/ContentResizing.php b/includes/Classifai/Features/ContentResizing.php index e7b42ec90..2b999ecb6 100644 --- a/includes/Classifai/Features/ContentResizing.php +++ b/includes/Classifai/Features/ContentResizing.php @@ -32,7 +32,7 @@ public function get_label() { * * @return array */ - public function get_providers() { + protected function get_providers() { return apply_filters( 'classifai_' . static::ID . '_providers', [ @@ -171,7 +171,7 @@ public function is_feature_enabled() { * * @return array */ - public function get_default_settings() { + protected function get_default_settings() { return [ 'status' => '0', 'roles' => $this->roles, @@ -205,7 +205,7 @@ public function get_default_settings() { * * @return array */ - public function sanitize_settings( $new_settings ) { + protected function sanitize_settings( $new_settings ) { $settings = $this->get_settings(); $new_settings['status'] = $new_settings['status'] ?? $settings['status']; diff --git a/includes/Classifai/Features/ExcerptGeneration.php b/includes/Classifai/Features/ExcerptGeneration.php index fbf47e17f..e30cbd055 100644 --- a/includes/Classifai/Features/ExcerptGeneration.php +++ b/includes/Classifai/Features/ExcerptGeneration.php @@ -171,7 +171,7 @@ public function is_feature_enabled() { * * @return array */ - public function get_default_settings() { + protected function get_default_settings() { return [ 'status' => '0', 'roles' => $this->roles, @@ -198,7 +198,7 @@ public function get_default_settings() { * * @return array */ - public function sanitize_settings( $new_settings ) { + protected function sanitize_settings( $new_settings ) { $settings = $this->get_settings(); $new_settings['status'] = $new_settings['status'] ?? $settings['status']; diff --git a/includes/Classifai/Features/Feature.php b/includes/Classifai/Features/Feature.php index f0189c658..8e972cf23 100644 --- a/includes/Classifai/Features/Feature.php +++ b/includes/Classifai/Features/Feature.php @@ -71,12 +71,15 @@ abstract public function get_label(); /** * Set up the fields for each section. + * + * @internal */ - abstract public function setup_fields_sections(); + abstract protected function setup_fields_sections(); /** * Returns the default settings for the feature. * + * @internal * @return array */ abstract protected function get_default_settings(); @@ -84,6 +87,7 @@ abstract protected function get_default_settings(); /** * Returns the providers supported by the feature. * + * @internal * @return array */ abstract protected function get_providers(); @@ -93,6 +97,7 @@ abstract protected function get_providers(); * * @param array $settings The settings to be sanitized on save. * + * @internal * @return array */ abstract protected function sanitize_settings( $settings ); diff --git a/includes/Classifai/Features/TextToSpeech.php b/includes/Classifai/Features/TextToSpeech.php index f541fb397..cc556d1c5 100644 --- a/includes/Classifai/Features/TextToSpeech.php +++ b/includes/Classifai/Features/TextToSpeech.php @@ -35,7 +35,7 @@ public function get_label() { * * @return array */ - public function get_providers() { + protected function get_providers() { return apply_filters( 'classifai_' . static::ID . '_providers', [ @@ -184,7 +184,7 @@ protected function get_post_types_select_options() { * * @return array */ - public function get_default_settings() { + protected function get_default_settings() { return [ 'status' => '0', 'roles' => $this->roles, @@ -225,7 +225,7 @@ public function get_tts_supported_post_types() { * * @return array */ - public function sanitize_settings( $new_settings ) { + protected function sanitize_settings( $new_settings ) { $settings = $this->get_settings(); $new_settings['status'] = $new_settings['status'] ?? $settings['status']; diff --git a/includes/Classifai/Features/TitleGeneration.php b/includes/Classifai/Features/TitleGeneration.php index a6b4dbd66..34c19aaf2 100644 --- a/includes/Classifai/Features/TitleGeneration.php +++ b/includes/Classifai/Features/TitleGeneration.php @@ -32,7 +32,7 @@ public function get_label() { * * @return array */ - public function get_providers() { + protected function get_providers() { return apply_filters( 'classifai_' . static::ID . '_providers', [ @@ -162,7 +162,7 @@ public function is_feature_enabled() { * * @return array */ - public function get_default_settings() { + protected function get_default_settings() { return apply_filters( 'classifai_' . static::ID . '_get_default_settings', @@ -194,7 +194,7 @@ public function get_default_settings() { * * @return array */ - public function sanitize_settings( $new_settings ) { + protected function sanitize_settings( $new_settings ) { $settings = $this->get_settings(); $new_settings['status'] = $new_settings['status'] ?? $settings['status'];