Allows cover_page_id of collection to be either string or integer.

This commit is contained in:
Mateus Machado Luna 2019-10-08 15:29:17 -03:00
parent 243a98d4c3
commit 0d695c0dca
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class Collections extends Repository {
'cover_page_id' => [
'map' => 'meta',
'title' => __( 'Cover Page ID', 'tainacan' ),
'type' => 'string',
'type' => 'integer/string',
'description' => __( 'If enabled, this custom page will be used as cover for this collection, instead of default items list.', 'tainacan' ),
'on_error' => __( 'Invalid page', 'tainacan' ),
//'validation' => v::numeric(),