diff --git a/README.md b/README.md index d04955c..ce6c113 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # taro-series + A WordPress plugin for creating series. + diff --git a/src/Tarosky/Series/Controller/Setting.php b/src/Tarosky/Series/Controller/Setting.php index 4b86823..816785d 100644 --- a/src/Tarosky/Series/Controller/Setting.php +++ b/src/Tarosky/Series/Controller/Setting.php @@ -35,7 +35,7 @@ public function admin_setting() { // Register fields. add_settings_field( 'taro_series_post_types', __( 'Post Type', 'taro-series' ), function() { $post_types = get_post_types( [ 'public' => true ], OBJECT ); - $post_types = apply_filters( 'taro_series_post_types_choices', array_values( array_filter( $post_types, function( WP_Post_Type $post_type ) { + $post_types = apply_filters( 'taro_series_post_types_choices', array_values( array_filter( $post_types, function( \WP_Post_Type $post_type ) { return ! in_array( $post_type->name, [ 'attachment', taro_series_parent_post_type() ], true ); } ) ) ); $value = (array) get_option( 'taro_series_post_types', [] ); diff --git a/taro-series.php b/taro-series.php index 35a7d81..3e55cd3 100644 --- a/taro-series.php +++ b/taro-series.php @@ -1,8 +1,8 @@