Skip to content

Commit

Permalink
Merge pull request #32 from thenewinquiry/1.2.7
Browse files Browse the repository at this point in the history
Added `audio_url` custom field
  • Loading branch information
frnsys authored Jun 22, 2017
2 parents 9c46d51 + c30bb7a commit 7a8a3bb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
16 changes: 16 additions & 0 deletions includes/class-tni-core-custom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,22 @@ public function register_field_groups() {
'toolbar' => 'full',
'media_upload' => 'yes',
),
array (
'key' => 'field_audio_url',
'label' => __( 'Audio URL', 'tni-core' ),
'name' => 'audio_url',
'type' => 'url',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
),
),
'location' => array (
array (
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: misfist
Tags: custom
Requires at least: 4.7
Tested up to: 4.7.5
Version: 1.2.6
Tested up to: 4.8
Version: 1.2.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -22,6 +22,10 @@ This section describes how to install the plugin and get it working.

== Changelog ==

= 1.2.7 June 22, 2017 =
* #29 Added `audio_url` custom field.
* To access value: `get_post_meta( post->ID, 'audio_url', true );`

= 1.2.6 June 21, 2017 =
* Show scheduled (future) single posts to authenticated users

Expand Down
4 changes: 2 additions & 2 deletions tni-core-functionality.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Text Domain: tni-core
* Domain Path: /languages
*
* Version: 1.2.6
* Version: 1.2.7
*
* @package Tni_Core_Functionality
*/
Expand Down Expand Up @@ -52,7 +52,7 @@
* @return object Tni_Core
*/
function Tni_Core() {
$instance = Tni_Core::instance( __FILE__, 'l.2.6' );
$instance = Tni_Core::instance( __FILE__, 'l.2.7' );

return $instance;
}
Expand Down

0 comments on commit 7a8a3bb

Please sign in to comment.