diff --git a/src/Pods/Service_Provider.php b/src/Pods/Service_Provider.php index 295c41c9f2..75367bdd5b 100644 --- a/src/Pods/Service_Provider.php +++ b/src/Pods/Service_Provider.php @@ -50,6 +50,7 @@ protected function hooks() { add_action( 'init', $this->container->callback( Theme\WP_Query_Integration::class, 'hook' ), 20 ); add_action( 'init', $this->container->callback( WP\Bindings::class, 'hook' ), 20 ); + add_action( 'init', $this->container->callback( WP\Meta::class, 'hook' ), 20 ); add_action( 'init', $this->container->callback( WP\Revisions::class, 'hook' ), 20 ); add_action( 'init', $this->container->callback( WP\UI\Taxonomy_Filter::class, 'hook' ), 20 ); diff --git a/src/Pods/WP/Meta.php b/src/Pods/WP/Meta.php index 8711ad954a..93251df26a 100644 --- a/src/Pods/WP/Meta.php +++ b/src/Pods/WP/Meta.php @@ -149,8 +149,8 @@ public function register_meta() { 'object_subtype' => $pod_name, 'type' => 'string', 'description' => $field['label'], - 'default' => $field->get_arg( 'default' ), - 'single' => $field_is_repeatable, + 'default' => $field->get_arg( 'default', '' ), + 'single' => ! $field_is_repeatable, 'show_in_rest' => $field_has_rest, 'revisions_enabled' => $field_has_revisions, ]