<?php
/**
 * RSS Users.
 *
 * @package Nisje
 */

defined( 'ABSPATH' ) || die( 'Shame on you' );

$args = [
	'key'                   => 'nisje_rss_users',
	'title'                 => esc_html__( 'Security Key options', 'nisje-grieg' ),
	'fields'                => [
		[
			'key'          => 'nisje_rss_users_security_key',
			'label'        => esc_html__( 'Security Key', 'nisje-grieg' ),
			'name'         => 'nisje_rss_users_security_key',
			'type'         => 'text',
			'placeholder'  => 'this_is_a_key',
			'instructions' => esc_html__( 'The key in this field needs to match the key in the URL to allow fetching content from this user to the RSS feed. http://135.grieg.com/?key=grieg_allowed&user=1&skey=this_is_a_key', 'nisje-grieg' ),
		],
	],
	'location'              => [
		[
			[
				'param'    => 'user_form',
				'operator' => '==',
				'value'    => 'edit',
			],
		],
	],
	'menu_order'            => 0,
	'position'              => 'normal',
	'style'                 => 'default',
	'label_placement'       => 'top',
	'instruction_placement' => 'label',
	'hide_on_screen'        => '',
	'active'                => 1,
	'description'           => '',
];

acf_add_local_field_group( $args );
