Skip to content

Commit

Permalink
closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Sep 14, 2021
1 parent ed5d37d commit 3d2736d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# taro-series

A WordPress plugin for creating series.

2 changes: 1 addition & 1 deletion src/Tarosky/Series/Controller/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', [] );
Expand Down
4 changes: 2 additions & 2 deletions taro-series.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
Plugin Name: Real Time Validation for Contact Form 7
Plugin Name: Taro Series
Plugin URI: https://wordpress.org/plugins/taro-series/
Description: Add realtime validation for Contact Form 7.
Description: Add serries feature to your WordPress site.
Author: Tarosky INC.
Version: nightly
Author URI: https://tarosky.co.jp/
Expand Down

0 comments on commit 3d2736d

Please sign in to comment.