Skip to content

Commit

Permalink
feat: add hidden favorites field
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Mar 27, 2020
1 parent c0761c6 commit 80e7f4d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions includes/functions/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,26 @@ function register_fields() {
'default_value' => '',
'placeholder' => '',
),
array(
'key' => 'field_5e7e38287d0b5',
'label' => __( 'Favorites', 'coop-library-framework' ),
'name' => 'lc_resource_favorites',
'type' => 'hidden',
'instructions' => __( 'The number of times this resource has been favorited.', 'coop-library-framework' ),
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '0',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 1,
),
array(
'key' => 'field_5e62c939ddcb6',
'label' => __( 'Resource language', 'coop-library-framework' ),
Expand Down

0 comments on commit 80e7f4d

Please sign in to comment.