if (! class_exists('Redux')) {
return;
}
require_once 'vendor/ReduxFramework/loader.php';
/**
* Load Redux and setup option pages and fields.
*
* @return void
*/
function opThemeLoadOptions()
{
$opt_name = "op_options";
$theme = wp_get_theme();
$args = array(
'opt_name' => $opt_name,
'display_name' => $theme->get('Name'),
'display_version' => $theme->get('Version'),
'menu_type' => 'submenu',
'allow_sub_menu' => true,
'menu_title' => _x('Theme Options', 'optimizepress_smart'),
'page_title' => _x('Theme Options', 'optimizepress_smart'),
'google_api_key' => '',
'google_update_weekly' => false,
'async_typography' => true,
'admin_bar' => true,
'admin_bar_icon' => 'dashicons-portfolio',
'admin_bar_priority' => 50,
'global_variable' => '',
'dev_mode' => false,
'update_notice' => false,
'customizer' => true,
//'open_expanded' => true, // Allow you to start the panel in an expanded way initially.
'disable_save_warn' => true, // Disable the save warning when a user changes a field
'page_priority' => null,
'page_parent' => 'themes.php',
'page_permissions' => 'manage_options',
'menu_icon' => '',
'last_tab' => '',
'page_icon' => 'icon-themes',
'page_slug' => '_options',
'save_defaults' => true,
'default_show' => false,
'default_mark' => '',
'show_import_export' => true,
'transient_time' => 60 * MINUTE_IN_SECONDS,
'output' => true,
'output_tag' => true,
'footer_credit' => ' ',
'database' => '',
'use_cdn' => true,
'compiler' => true,
'hints' => array(
'icon' => 'el el-question-sign',
'icon_position' => 'right',
'icon_color' => 'lightgray',
'icon_size' => 'normal',
'tip_style' => array(
'color' => 'light',
'shadow' => true,
'rounded' => false,
'style' => '',
),
'tip_position' => array(
'my' => 'top left',
'at' => 'bottom right',
),
'tip_effect' => array(
'show' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'mouseover',
),
'hide' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'click mouseleave',
),
),
)
);
Redux::setArgs($opt_name, $args);
// If theme folder changes (after manual update for example)
// we want to update the options relian on it to new folder
$op_options = get_option('op_options');
if (strpos($op_options['header_style'], get_template_directory_uri() . '/') === false) {
$pattern = '/.*\//i';
$op_options['header_style'] = preg_replace($pattern, get_template_directory_uri() . '/images/', $op_options['header_style']);
update_option('op_options', $op_options);
}
require_once 'inc/redux-sections/header.php';
require_once 'inc/redux-sections/footer.php';
require_once 'inc/redux-sections/styling.php';
require_once 'inc/redux-sections/blog.php';
require_once 'inc/redux-sections/pages.php';
require_once 'inc/redux-sections/optin-forms.php';
require_once 'inc/redux-sections/social.php';
require_once 'inc/redux-sections/woocommerce.php';
require_once 'inc/redux-sections/miscellaneous.php';
require_once 'inc/redux-sections/custom-scripts.php';
}
opThemeLoadOptions();
/**
* Load JS for redux options page - advanced field handleing
* @return void
*/
function opLoadReduxExtraJs()
{
wp_enqueue_script('opst-redux', get_template_directory_uri() . '/js/redux.js', array('jquery'), OP_SMART_THEME_VERSION, true);
}
add_action('redux/page/op_options/enqueue', 'opLoadReduxExtraJs');
/**
* Custom style for Redux Admin
* @return void
*/
function opLoadReduxExtraCss() {
wp_register_style( 'redux-custom-css', get_template_directory_uri() . '/css/redux-custom' . OP_SMART_DEBUG . '.css', array('redux-admin-css'), OP_SMART_THEME_VERSION, 'all');
wp_enqueue_style('redux-custom-css');
}
add_action( 'redux/page/op_options/enqueue', 'opLoadReduxExtraCss' );
/**
* Save logo as site icon.
*
* @param array $options
* @param string $css
* @param array $changedValues
* @return void
*/
function opSaveSiteIcon($options, $css, $changedValues)
{
// Site icon is changed or removed
if (isset($changedValues['site_icon'])) {
if (empty($options['site_icon']['url'])) {
// Site Icon removec
update_option('site_icon', 0);
} else {
// Changed site icon
$attachmentId = $options['site_icon']['id'];
// We resize the image to 512 max
$image_url = get_attached_file( $attachmentId );
$image = wp_get_image_editor( $image_url );
if ( ! is_wp_error( $image ) ) {
$image->resize( 512, 512, false );
$image->save();
$image_size = $image->get_size();
}
// We make sure that the image is cropped based on the largest dimension
// (for the case when the user doesn't upload 512 x 512 favicon)
$image_dimension = $image_size['width'] > $image_size['height'] ? $image_size['width'] : $image_size['height'];
$cropped = wp_crop_image($attachmentId, 0, 0, $image_dimension, $image_dimension, 512, 512);
if ( ! is_wp_error( $cropped ) ) {
// global $wp_site_icon;
// $object = $wp_site_icon->create_attachment_object($cropped, $attachmentId);
$object = WP_Site_Icon::create_attachment_object($cropped, $attachmentId);
unset($object['ID']);
// $attachmentId = $wp_site_icon->insert_attachment($object, $cropped);
WP_Site_Icon::insert_attachment($object, $cropped);
update_option('site_icon', $attachmentId);
} else {
update_option('site_icon', 0);
}
}
}
}
add_filter('redux/options/op_options/compiler', 'opSaveSiteIcon', 10, 3);
/**
* Convert redux extra field to OP acceptable.
*
* @param array $data
* @return array
*/
function opConvertReduxExtraFields($data)
{
unset($data['redux_repeater_data']);
for ($a = 0; $a < count($data['field_name']); $a += 1) {
$data['required'][$a] = $data['required'][$a] ? 'Y' : 'N';
$data['hidden'][$a] = $data['hidden'][$a] ? 'Y' : 'N';
}
return $data;
}
/**
* Clears advanced/basic generated CSS outputs from fields depending on "typography_advanced" setting.
*
* @param array $field
* @return array
*/
function opTypographyCssOutput($field)
{
global $op_options;
$basicTypographyFields = array(
'typography_basic_body_font_family',
'typography_basic_body_font_size',
'typography_basic_headline_font_family',
'typography_basic_h1_font_size',
'typography_basic_h2_font_size',
'typography_basic_h3_font_size',
'typography_basic_h4_font_size',
'typography_basic_h5_font_size',
'typography_basic_h6_font_size',
);
$advancedTypographyFields = array(
'typography_title',
'typography_tagline',
'typography_post_title',
'typography_p',
'typography_menu',
'typography_h1',
'typography_h2',
'typography_h3',
'typography_h4',
'typography_h5',
'typography_h6',
);
if ((int) $op_options['typography_advanced'] === 1 && true === in_array($field['id'], $basicTypographyFields)) {
// We clean the basic settings css generated outputs
$field['output'] = '';
} else if ((int) $op_options['typography_advanced'] === 0 && true === in_array($field['id'], $advancedTypographyFields)) {
// We clean the advanced settings css generated outputs
$field['output'] = '';
}
return $field;
}
add_filter('redux/field/op_options/output_css', 'opTypographyCssOutput');
/**
* Return OPM levels.
*
* @return array
*/
function opGetOpmLevels()
{
$levels = array();
if (defined("WS_PLUGIN__OPTIMIZEMEMBER_VERSION")) {
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["levels"]; $n++) {
$levels[$n] = ws_plugin__optimizemember_getMembershipLabel($n);
}
}
return $levels;
}
/**
* Return OPM packages.
*
* @return array
*/
function opGetOpmPackages()
{
$packages = array();
if (defined("WS_PLUGIN__OPTIMIZEMEMBER_VERSION") && count($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["ccp"])) {
foreach($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["ccp"] as $key => $value) {
$packages[$value] = $value;
}
}
return $packages;
}
/**
* Register Redux metaboxes for pages and posts.
*
* @return array
*/
function opRegisterMetaboxes()
{
$op_options = get_option('op_options');
$metabox_sections = array();
// Header styling
//
// NOTE: Category color and background color header fields are hidden
// on edit/add page screens using css, by hooking into exact order
// of the fields. If you're changing this, please update the
// CSS (redux-custom.css) accordingly.
//
// This is because metaboxes extension don't support hidding
// fields in sections based on the post type (page/post)
$metabox_sections[] = array(
'id' => 'post_header',
'title' => _x('Header', 'Metabox Header', 'optimizepress_smart'),
'icon' => 'el-icon-arrow-up',
'class' => 'op-single-header-fields',
'fields' => array(
array(
'id' => 'post_header_text_color',
'type' => 'color',
'title' => _x('Header Text Colour', 'Metabox Header', 'optimizepress_smart'),
'transparent' => false,
),
array(
'id' => 'post_header_category_text_color',
'type' => 'color',
'title' => _x('Header Category Text Colour', 'Metabox Header', 'optimizepress_smart'),
'transparent' => false,
'class' => 'op-hide-on-post-type-page',
),
array(
'id' => 'post_header_category_background_color',
'type' => 'color',
'title' => _x('Header Category Background Colour', 'Metabox Header', 'optimizepress_smart'),
'transparent' => false,
'class' => 'op-hide-on-post-type-page',
),
),
);
// Sidebar
$metabox_sections[] = array(
'id' => 'single_layout',
'title' => _x('Sidebar', 'Metabox Sidebar', 'optimizepress_smart'),
'icon' => 'el el-th-list',
'fields' => array(
array(
'id' => 'single_layout_override',
'type' => 'switch',
'title' => _x('Sidebar Behaviour', 'Metabox Sidebar', 'optimizepress_smart'),
'subtitle' => _x('Default will use settings set in Theme Options, and custom will set options only for this post.', 'Metabox Sidebar', 'optimizepress_smart'),
'on' => _x('Default', 'optimizepress_smart'),
'off' => _x('Custom', 'optimizepress_smart'),
'default' => true,
),
array(
'id' => 'single_layout_sidebar',
'type' => 'image_select',
'title' => _x('Sidebar', 'Metabox Sidebar', 'optimizepress_smart'),
'subtitle' => _x('Choose position of a sidebar', 'Metabox Sidebar', 'optimizepress_smart'),
'default' => 'no_sidebar',
'options' => array(
'no_sidebar' => array(
'alt' => _x('No Sidebar', 'Metabox Sidebar', 'optimizepress_smart'),
'img' => ReduxFramework::$_url . 'assets/img/1c.png'
),
'sidebar_left' => array(
'alt' => _x('Sidebar Left', 'Metabox Sidebar', 'optimizepress_smart'),
'img' => ReduxFramework::$_url . 'assets/img/2cl.png'
),
'sidebar_right' => array(
'alt' => _x('Sidebar Right', 'Metabox Sidebar', 'optimizepress_smart'),
'img' => ReduxFramework::$_url . 'assets/img/2cr.png'
),
),
'required' => array('single_layout_override', 'equals', false),
),
),
);
// Featured image
$metabox_sections[] = array(
'id' => 'featured_image_format',
'title' => _x('Featured Image', 'Metabox Featured Image', 'optimizepress_smart'),
'icon' => 'el el-picture',
'fields' => array(
array(
'id' => 'single_featured_image_override',
'type' => 'switch',
'title' => _x('Featured Image Behaviour', 'Metabox Featured Image', 'optimizepress_smart'),
'subtitle' => _x('Default will use settings set in Theme Options, and custom will set options only for this post.', 'Metabox Featured Image', 'optimizepress_smart'),
'on' => _x('Default', 'optimizepress_smart'),
'off' => _x('Custom', 'optimizepress_smart'),
'default' => true,
),
array(
'id' => 'single_featured_image_as_hero',
'type' => 'switch',
'title' => _x('Use Featured Image as Hero Image', 'Metabox Featured Image', 'optimizepress_smart'),
'subtitle' => _x('This setting will override general settings set in Theme Options for this post.', 'Metabox Featured Image', 'optimizepress_smart'),
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'default' => $op_options['sitewide_post_featured_image_as_hero'],
'required' => array('single_featured_image_override', 'equals', false),
),
array(
'id' => 'single_featured_image_in_content',
'type' => 'switch',
'title' => _x('Show Featured Image in Post Content', 'Metabox Featured Image', 'optimizepress_smart'),
'subtitle' => _x('This setting will override general settings set in Theme Options for this post.', 'Metabox Featured Image', 'optimizepress_smart'),
'on' => _x('Show', 'optimizepress_smart'),
'off' => _x('Hide', 'optimizepress_smart'),
'default' => $op_options['sitewide_post_featured_image_in_content'],
'required' => array(
array('single_featured_image_override', 'equals', false),
array('single_featured_image_as_hero', 'equals', false),
)
),
array(
'id' => 'post_header_background_color',
'title' => _x('Hero Background Colour', 'Metabox Featured Image', 'optimizepress_smart'),
'type' => 'color_gradient',
'transparent' => false,
'default' => $op_options['sitewide_post_header_background_color'],
'required' => array('single_featured_image_override', 'equals', false),
),
array(
'id' => 'post_header_background_image',
'title' => _x('Hero Background Image', 'Metabox Featured Image', 'optimizepress_smart'),
'type' => 'background',
'url' => true,
'background-color' => false,
'preview_media' => true,
'default' => array(
'background-size' => 'cover',
'background-position' => 'center center',
),
'required' => array(
array('single_featured_image_override', 'equals', false),
array('single_featured_image_as_hero', 'equals', false),
)
),
array(
'id' => 'post_header_background_image_positioning',
'title' => _x('Hero Background Image Positioning', 'Metabox Featured Image', 'optimizepress_smart'),
'type' => 'background',
'url' => true,
'background-color' => false,
'preview_media' => false,
'preview' => false,
'background-image' => false,
'default' => array(
'background-size' => 'cover',
'background-position' => 'center center',
),
'required' => array(
array('single_featured_image_override', 'equals', false),
array('single_featured_image_as_hero', 'equals', true),
)
),
array(
'id' => 'post_header_background_overlay',
'title' => _x('Hero Background Image Overlay Colour', 'Metabox Featured Image', 'optimizepress_smart'),
'type' => 'color_rgba',
'options' => array(
'clickout_fires_change' => true,
'allow_empty' => true,
),
'default' => array(
'color' => '#323232',
'alpha' => 0.75,
'rgba' => 'rgba(50, 50, 50, 0.75)'
),
'required' => array('single_featured_image_override', 'equals', false),
),
array(
'id' => 'single_hero_size',
'type' => 'switch',
'title' => _x('Hero Size', 'Metabox Featured Image', 'optimizepress_smart'),
'on' => _x('Small', 'Metabox Featured Image', 'optimizepress_smart'),
'off' => _x('Large', 'Metabox Featured Image', 'optimizepress_smart'),
'default' => false,
'required' => array('single_featured_image_override', 'equals', false),
),
)
);
/**
* Optin Box section is only available
* if optimziepress plugin is enabled
*/
if (defined('OP_PLUGIN_DIR')) {
$metabox_sections[] = array(
'title' => _x('Optin Forms', 'Metabox Optin Forms', 'optimizepress_smart'),
'class' => 'metabox-optin-forms',
'icon' => 'el el-address-book',
'fields' => array_merge(
opOptinSection(
'specific_after_header',
_x('After Header', 'Metabox Optin Forms', 'optimizepress_smart'),
array('privacy_text' => true, 'image' => true)
),
opOptinSection(
'specific_after_hero',
_x('After Hero', 'Metabox Optin Forms', 'optimizepress_smart')
),
opOptinSection(
'specific_before_footer',
_x('Before Footer', 'Metabox Optin Forms', 'optimizepress_smart'),
array('image' => true)
)
),
);
}
$metaboxes[] = array(
'id' => 'custom_options',
'title' => _x('Custom Theme Options', 'Metabox', 'optimizepress_smart'),
'post_types' => array('post', 'page'),
'position' => 'normal',
'priority' => 'high',
'sections' => $metabox_sections,
);
// Audio post format
$audioFormatSections[] = array(
'id' => 'audio_format',
'fields' => array(
array(
'id' => 'audio_type',
'type' => 'select',
'title' => _x('Type', 'Metabox Audio', 'optimizepress_smart'),
'options' => array(
'embed' => _x('Embed', 'Metabox Audio', 'optimizepress_smart'),
'self' => _x('Self Hosted', 'Metabox Audio', 'optimizepress_smart')
),
'default' => 'embed',
),
array(
'id' => 'audio_embed',
'type' => 'textarea',
'title' => _x('Embed code', 'Metabox Audio', 'optimizepress_smart'),
'required' => array('audio_type', 'equals', 'embed'),
),
array(
'id' => 'audio_mp3',
'type' => 'media',
'title' => _x('Audio File', 'Metabox Audio', 'optimizepress_smart'),
'required' => array('audio_type', 'equals', 'self'),
'url' => true,
'placeholder' => false,
'mode' => 'audio',
'library_filter' => array('mp3', 'm4a', 'm4b', 'ra', 'ram', 'wav', 'ogg', 'oga', 'mid', 'midi', 'wma', 'wax', 'mka'),
),
array(
'id' => 'audio_ogg',
'type' => 'media',
'title' => _x('HTML5 Fallback Audio File (.ogg)', 'Metabox Audio', 'optimizepress_smart'),
'required' => array('audio_type', 'equals', 'self'),
'url' => true,
'placeholder' => false,
'mode' => 'audio',
'library_filter' => array('ogg', 'oga'),
),
),
);
$metaboxes[] = array(
'id' => 'audio_format',
'title' => _x('Audio', 'Metabox Audio', 'optimizepress_smart'),
'post_types' => array('post'),
'post_format' => array('audio'),
'position' => 'normal',
'priority' => 'high',
'sections' => $audioFormatSections,
);
// Video post format
$videoFormatSections[] = array(
'id' => 'video_format',
'fields' => array(
array(
'id' => 'video_type',
'type' => 'select',
'title' => _x('Type', 'Metabox Video', 'optimizepress_smart'),
'options' => array(
'embed' => _x('Embed', 'Metabox Video', 'optimizepress_smart'),
'self' => _x('Self Hosted', 'Metabox Video', 'optimizepress_smart')
),
'default' => 'embed',
),
array(
'id' => 'video_embed',
'type' => 'textarea',
'title' => _x('Embed code', 'Metabox Video', 'optimizepress_smart'),
'required' => array('video_type', 'equals', 'embed'),
),
array(
'id' => 'video_mp4',
'type' => 'media',
'title' => _x('Video File', 'Metabox Video', 'optimizepress_smart'),
'required' => array('video_type', 'equals', 'self'),
'url' => true,
'placeholder' => false,
'mode' => 'video',
'library_filter' => array('mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv'),
),
array(
'id' => 'video_ogg',
'type' => 'media',
'title' => _x('HTML5 Fallback Video File (.ogg)', 'Metabox Video', 'optimizepress_smart'),
'required' => array('video_type', 'equals', 'self'),
'url' => true,
'placeholder' => false,
'mode' => 'video',
'library_filter' => array('ogv'),
),
array(
'id' => 'video_webm',
'type' => 'media',
'title' => _x('HTML5 Fallback Video File (.webm)', 'Metabox Video', 'optimizepress_smart'),
'required' => array('video_type', 'equals', 'self'),
'url' => true,
'placeholder' => false,
'mode' => 'video',
'library_filter' => array('webm'),
),
),
);
$metaboxes[] = array(
'id' => 'video_format',
'title' => _x('Video', 'Metabox Video', 'optimizepress_smart'),
'post_types' => array('post'),
'post_format' => array('video'),
'position' => 'normal',
'priority' => 'high',
'sections' => $videoFormatSections,
);
// Gallery post format
$galleryFormatSections[] = array(
'id' => 'gallery_format',
// 'title' => _x('Gallery Details', 'Metabox Gallery', 'optimizepress_smart'),
'fields' => array(
array(
'id' => 'post_gallery',
'type' => 'gallery',
// 'title' => _x('Gallery', 'Metabox Gallery', 'optimizepress_smart'),
),
),
);
$metaboxes[] = array(
'id' => 'gallery_format',
'title' => _x('Gallery', 'Metabox Gallery', 'optimizepress_smart'),
'post_types' => array('post'),
'post_format' => array('gallery'),
'position' => 'normal',
'priority' => 'high',
'sections' => $galleryFormatSections,
);
// Additional fields for WooCommerce
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
$woocommerceProductSections = array();
if (isset($op_options['show_custom_short_description'])
&& (int) $op_options['show_custom_short_description'] === 1) {
$woocommerceProductSections[] = array(
'id' => 'woocommerce_product_section',
'fields' => array(
array(
'id' => 'woocommerce_custom_short_description',
'type' => 'textarea',
'title' => _x('Short product description that will be shown on the shop page', 'Metabox WooCommerce', 'optimizepress_smart'),
'subtitle' => _x('HTML is not supported in this field.', 'Metabox WooCommerce', 'optimizepress_smart'),
'allowed_html' => false,
'rows' => 2,
),
),
);
}
$metaboxes[] = array(
'id' => 'woocommerce_product_section_metabox',
'title' => _x('Custom Short Description', 'Metabox WooCommerce', 'optimizepress_smart'),
'post_types' => array('product'),
'position' => 'normal',
'priority' => 'high',
'sections' => $woocommerceProductSections,
);
}
return $metaboxes;
}
add_action('redux/metaboxes/op_options/boxes', 'opRegisterMetaboxes', 10, 3);
/**
* Return Redux fields for optin forms.
*
* @param boolean $defaults
* @param string $prefix
* @return array
*/
function opOptinFormSettingsFields($defaults = true, $prefix = '', $nr = 1)
{
$op_options = get_option('op_options');
$section_id = isset($op_options[$prefix . '_integration_name_' . $nr]) ? $op_options[$prefix . '_integration_name_' . $nr] : $nr;
$section_title = isset($section_id) ? $section_id : 'Integration #' . $nr;
$fields = array(
array(
'id' => $prefix . '_accordion_start_' . $nr,
'type' => 'accordion',
'title' => $section_title,
'class' => 'op-optin-accordion op-optin-accordion-' . $nr,
'position' => 'start',
),
array(
'id' => $prefix . '_integration_name_' . $nr,
'type' => 'text',
'title' => _x('Integration Name', 'Optin Forms', 'optimizepress_smart'),
'class' => 'op-integration-name op-integration-name-' . $nr,
// 'options' => array('email' => _x('Email data', 'Optin Forms', 'optimizepress_smart'), 'custom' => _x('Custom form', 'Optin Forms', 'optimizepress_smart')),
'default' => 'Integration #' . $nr,
// 'required' => array(
// array('integration_current', 'equals', $nr),
// )
),
array(
'id' => $prefix . '_integration_id_' . $nr,
'type' => 'text',
'title' => _x('Integration ID', 'Optin Forms', 'optimizepress_smart'),
'subtitle' => _x('This field is for internal theme usage, and should not be changed.', 'Optin Forms', 'optimizepress_smart'),
// 'type' => 'hidden',
'class' => 'op-optin-integration-id',
'default' => $nr,
'readonly' => true,
),
array(
'id' => $prefix . '_integration_type_' . $nr,
'type' => 'select',
'title' => _x('Integration Type', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'email' => _x('Email data', 'Optin Forms', 'optimizepress_smart'),
'custom' => _x('Custom form', 'Optin Forms', 'optimizepress_smart')
),
'class' => 'op-integration-type-options',
'default' => 'email',
// 'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
// )
),
array(
'id' => $prefix . '_list_' . $nr,
'type' => 'select',
'title' => _x('Integration List', 'Optin Forms', 'optimizepress_smart'),
'options' => array('' => _x('Select Integration Type first', 'Optin Forms', 'optimizepress_smart')),
'default' => '',
'class' => 'op-integration-type-list',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
array($prefix . '_integration_type_' . $nr, 'not', 'oneshoppingcart'),
array($prefix . '_integration_type_' . $nr, 'not', 'arpreach'),
),
),
array(
'id' => $prefix . '_autoresponder_name_' . $nr,
'type' => 'text',
'title' => _x('Autoresponder Name', 'Optin Forms', 'optimizepress_smart'),
'default' => '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', 'arpreach'),
)
),
array(
'id' => $prefix . '_double_optin_' . $nr,
'type' => 'switch',
'title' => _x('Double Optin', 'Optin Forms', 'optimizepress_smart'),
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'default' => true,
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', array('egoi', 'mailchimp')),
),
),
array(
'id' => $prefix . '_welcome_email_' . $nr,
'type' => 'switch',
'title' => _x('Welcome Email', 'Optin Forms', 'optimizepress_smart'),
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'default' => false,
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
// array($prefix . '_integration_type_' . $nr, 'equals', 'mailchimp'),
// this option is not used in OP, so I'm not sure it does anything here,
// disabling it for now (Zoran)
array($prefix . '_integration_type_' . $nr, 'equals', 'DISABLE'),
)
),
array(
'id' => $prefix . '_signup_form_id_' . $nr,
'type' => 'text',
'title' => _x('Signup Form ID', 'Optin Forms', 'optimizepress_smart'),
'desc' => _x('Enter the form ID if you wish to use the Opt-in confirmation email settings you have created inside the settings for this form.', 'Optin Forms', 'optimizepress_smart'),
'default' => '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', array('activecampaign', 'emma')),
),
),
array(
'id' => $prefix . '_thank_you_page_' . $nr,
'type' => 'text',
'title' => _x('Thank You Page URL', 'Optin Forms', 'optimizepress_smart'),
'validate' => 'url',
'default' => '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'infusionsoft'),
array($prefix . '_integration_type_' . $nr, 'not', 'oneshoppingcart'),
),
),
array(
'id' => $prefix . '_already_subscribed_url_' . $nr,
'type' => 'text',
'title' => _x('Already Subscribed URL', 'Optin Forms', 'optimizepress_smart'),
'validate' => 'url',
'default' => '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'infusionsoft'),
array($prefix . '_integration_type_' . $nr, 'not', 'oneshoppingcart'),
array($prefix . '_integration_type_' . $nr, 'not', 'maropost'),
array($prefix . '_integration_type_' . $nr, 'not', 'officeautopilot'),
array($prefix . '_integration_type_' . $nr, 'not', 'ontraport'),
),
),
array(
'id' => $prefix . '_action_page_' . $nr,
'type' => 'text',
'title' => _x('Action Page', 'Optin Forms', 'optimizepress_smart'),
'hidden' => true,
),
// New window option is not currently
// implemented into OptimizePress,
// so I'm commenting it out here
// array(
// 'id' => $prefix . '_new_window_' . $nr,
// 'type' => 'switch',
// 'title' => _x('New Window', 'Optin Forms', 'optimizepress_smart'),
// 'default' => false,
// 'on' => _x('Yes', 'optimizepress_smart'),
// 'off' => _x('No', 'optimizepress_smart'),
// 'required' => array(
// // array($prefix . '_form_enabled', 'equals', true),
// // array('integration_current', 'equals', $nr),
// array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
// ),
// ),
array(
'id' => $prefix . '_email_address_' . $nr,
'type' => 'text',
'title' => _x('Email Address', 'Optin Forms', 'optimizepress_smart'),
'validate' => 'email',
'class' => 'op-integration-email-address',
'default' => $defaults === true ? get_option('admin_email') : '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', 'email'),
)
),
array(
'id' => $prefix . '_redirect_url_' . $nr,
'type' => 'text',
'title' => _x('Redirect URL', 'Optin Forms', 'optimizepress_smart'),
'validate' => 'url',
'default' => '',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', 'email'),
)
),
array(
'id' => $prefix . '_html_' . $nr,
'type' => 'textarea',
'title' => _x('Form HTML', 'Optin Forms', 'optimizepress_smart'),
'default' => '',
'class' => 'op-integration-form-html',
'required' => array(
// array($prefix . '_form_enabled', 'equals', true),
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
),
),
array(
'id' => $prefix . '_hidden_' . $nr,
'type' => 'text',
'title' => _x('Hidden fields markup', 'Optin Forms', 'optimizepress_smart'),
'hidden' => true,
),
array(
'id' => $prefix . '_disable_name_' . $nr,
'type' => 'switch',
'title' => _x('Disable Name', 'Optin Forms', 'optimizepress_smart'),
'default' => false,
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'required' => array(
// array('integration_current', 'equals', $nr),
)
),
array(
'id' => $prefix . '_name_' . $nr,
'type' => 'select',
'title' => _x('Name', 'Optin Forms', 'optimizepress_smart'),
'options' => array('' => _x('Select list first or paste in the from HTML', 'Optin Forms', 'optimizepress_smart')),
'default' => '',
'class' => 'op-form-field-selector op-form-regular-field-selector',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_disable_name_' . $nr, 'not', true),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
),
),
array(
'id' => $prefix . '_name_default_' . $nr,
'type' => 'text',
'title' => _x('Name Field Label', 'Optin Forms', 'optimizepress_smart'),
'default' => _x('Enter your name', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_disable_name_' . $nr, 'not', true)
),
),
array(
'id' => $prefix . '_name_order_' . $nr,
'type' => 'text',
'title' => _x('Name Order', 'Optin Forms', 'optimizepress_smart'),
'default' => 1,
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_disable_name_' . $nr, 'not', true)
),
),
array(
'id' => $prefix . '_name_required_' . $nr,
'type' => 'switch',
'title' => _x('Name Required', 'Optin Forms', 'optimizepress_smart'),
'default' => false,
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_disable_name_' . $nr, 'not', true)
),
),
array(
'id' => $prefix . '_email_' . $nr,
'type' => 'select',
'title' => _x('Email', 'Optin Forms', 'optimizepress_smart'),
'options' => array('' => _x('Select list first or paste in the from HTML', 'Optin Forms', 'optimizepress_smart')),
'default' => '',
'class' => 'op-form-field-selector op-form-regular-field-selector',
'required' => array(
// array('integration_current', 'equals', $nr),
// array($prefix . '_integration_type_' . $nr, 'not', 'email'),
// array($prefix . '_integration_type_' . $nr, 'equals', 'custom'),
array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
)
),
array(
'id' => $prefix . '_email_default_' . $nr,
'type' => 'text',
'title' => _x('Email Field Label', 'Optin Forms', 'optimizepress_smart'),
'default' => _x('Enter your email', 'Optin Forms', 'optimizepress_smart'),
// 'required' => array(
// array('integration_current', 'equals', $nr),
// array($prefix . '_integration_type_' . $nr, 'not', 'email'),
// array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
// )
),
array(
'id' => $prefix . '_email_order_' . $nr,
'type' => 'text',
'title' => _x('Email Order', 'Optin Forms', 'optimizepress_smart'),
'default' => 2,
// 'required' => array(
// array('integration_current', 'equals', $nr),
// )
),
array(
'id' => $prefix . '_method_' . $nr,
'type' => 'select',
'title' => _x('Method', 'Optin Forms', 'optimizepress_smart'),
'options' => array('post' => 'POST', 'get' => 'GET'),
'default' => 'post',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
),
),
array(
'id' => $prefix . '_action_' . $nr,
'type' => 'text',
'title' => _x('Form URL', 'Optin Forms', 'optimizepress_smart'),
'default' => '',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_integration_type_' . $nr, 'equals', array('custom', 'oneshoppingcart')),
),
),
array(
'id' => $prefix . '_gotowebinar_' . $nr,
'type' => 'switch',
'title' => _x('Integrate with GoToWebinar', 'Optin Forms', 'optimizepress_smart'),
'default' => false,
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
// 'required' => array(
// array('integration_current', 'equals', $nr),
// )
),
array(
'id' => $prefix . '_gotowebinar_list_' . $nr,
'type' => 'select',
'title' => _x('GoToWebinar List', 'Optin Forms', 'optimizepress_smart'),
'options' => array('' => _x('Enable GoToWebinar integration first', 'Optin Forms', 'optimizepress_smart')),
'default' => '',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_gotowebinar_' . $nr, 'equals', true),
)
),
// GDPR
array(
'id' => $prefix . '_gdpr_enabled_' . $nr,
'type' => 'select',
'title' => _x('Enable GDPR Checkboxes', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'disabled' => _x('Do not show GDPR Fields', 'Optin Forms', 'optimizepress_smart'),
'eu_only' => _x('Show to EU Only', 'Optin Forms', 'optimizepress_smart'),
'all_visitors' => _x('Show to all Visitors', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'disabled',
'required' => array(
array($prefix . '_integration_type_' . $nr, 'equals', array(
'activecampaign', 'arpreach', 'aweber', 'campaignmonitor', 'convertkit', 'egoi', 'emma', 'icontact', 'infusionsoft', 'mailpoet', 'mailchimp', 'officeautopilot', 'ontraport', 'sendlane', 'getresponsev3'
)),
),
),
array(
'id' => $prefix . '_gdpr_notice_' . $nr,
'type' => 'raw',
'title' => '',
'content' => _x('You can configure the GDPR privacy checkboxes for your opt-in form below. Please watch our training on how to integrate your provider on our training hub here.', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_gdpr_enabled_' . $nr, 'not', 'disabled'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'activecampaign', 'arpreach', 'aweber', 'campaignmonitor', 'convertkit', 'egoi', 'emma', 'icontact', 'infusionsoft', 'mailpoet', 'mailchimp', 'officeautopilot', 'ontraport', 'sendlane', 'getresponsev3'
)),
),
),
array(
'id' => $prefix . '_gdpr_warning_' . $nr,
'type' => 'raw',
'title' => '',
'content' => _x('
Important Notice
Your selected integration does not currently have GDPR options available. Please see this article for more information.
', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_integration_type_' . $nr, 'equals', array(
'email', 'custom', 'oneshoppingcart',
)),
),
),
array(
'id' => $prefix . '_consent_1_enabled_' . $nr,
'type' => 'select',
'title' => _x('Enable Consent 1 Checkbox', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'no' => _x('No', 'Optin Forms', 'optimizepress_smart'),
'yes' => _x('Yes', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'no',
'required' => array(
array($prefix . '_gdpr_enabled_' . $nr, 'not', 'disabled'),
),
),
array(
'id' => $prefix . '_consent_1_label_' . $nr,
'type' => 'text',
'title' => _x('Consent 1 Label/Message', 'Optin Forms', 'optimizepress_smart'),
'placeholder' => _x('Enter privacy notice (including any HTML links)', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
),
),
array(
'id' => $prefix . '_consent_1_tag_accepted_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 1 Accept Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_1_tag_accepted_' . $nr,
'type' => 'select',
'title' => _x('Consent 1 Accept Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_1_tag_declined_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 1 Decline Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_1_tag_declined_' . $nr,
'type' => 'select',
'title' => _x('Consent 1 Decline Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_1_tag_not_shown_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 1 Not Shown/Non-EU Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_1_tag_not_shown_' . $nr,
'type' => 'select',
'title' => _x('Consent 1 Not Shown/Non-EU Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_1_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_2_enabled_' . $nr,
'type' => 'select',
'title' => _x('Enable Consent 2 Checkbox', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'no' => _x('No', 'Optin Forms', 'optimizepress_smart'),
'yes' => _x('Yes', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'no',
'required' => array(
array($prefix . '_gdpr_enabled_' . $nr, 'not', 'disabled'),
),
),
array(
'id' => $prefix . '_consent_2_label_' . $nr,
'type' => 'text',
'title' => _x('Consent 2 Label/Message', 'Optin Forms', 'optimizepress_smart'),
'placeholder' => _x('Enter privacy notice (including any HTML links)', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
),
),
array(
'id' => $prefix . '_consent_2_tag_accepted_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 2 Accept Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_2_tag_accepted_' . $nr,
'type' => 'select',
'title' => _x('Consent 2 Accept Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_2_tag_declined_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 2 Decline Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_2_tag_declined_' . $nr,
'type' => 'select',
'title' => _x('Consent 2 Decline Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_2_tag_not_shown_text_' . $nr,
'type' => 'text',
'title' => _x('Consent 2 Not Shown/Non-EU Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'equals', array(
'aweber', 'email', 'custom',
)),
),
),
array(
'id' => $prefix . '_consent_2_tag_not_shown_' . $nr,
'type' => 'select',
'title' => _x('Consent 2 Not Shown/Non-EU Custom Field/Tag', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_consent_2_enabled_' . $nr, 'equals', 'yes'),
array($prefix . '_integration_type_' . $nr, 'not', 'aweber'),
array($prefix . '_integration_type_' . $nr, 'not', 'email'),
array($prefix . '_integration_type_' . $nr, 'not', 'custom'),
),
'class' => 'op-gdpr-provider-tags-dropdown-' . $nr
),
array(
'id' => $prefix . '_consent_notes_field_' . $nr,
'type' => 'select',
'title' => _x('Consent Notes Custom Field', 'Optin Forms', 'optimizepress_smart'),
'options' => array(
'missing_integration_type' => _x('Select integration type/list first', 'Optin Forms', 'optimizepress_smart'),
),
'default' => 'missing_integration_type',
'required' => array(
array($prefix . '_gdpr_enabled_' . $nr, 'not', 'disabled'),
array($prefix . '_integration_type_' . $nr, 'equals', array('campaignmonitor', 'egoi', 'emma', 'icontact', 'infusionsoft', 'mailpoet', 'getresponsev3')),
),
'class' => 'op-gdpr-provider-consent-notes-dropdown-' . $nr
),
);
// OPM integration fields
if (defined("WS_PLUGIN__OPTIMIZEMEMBER_VERSION")) {
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_opm_integration_' . $nr,
'type' => 'switch',
'title' => _x('Integrate with OptimizeMember', 'Optin Forms', 'optimizepress_smart'),
'default' => false,
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
// 'required' => array(
// array('integration_current', 'equals', $nr),
// )
),
array(
'id' => $prefix . '_opm_level_' . $nr,
'type' => 'select',
'title' => _x('Membership Level', 'Optin Forms', 'optimizepress_smart'),
'options' => opGetOpmLevels(),
'default' => '',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_opm_integration_' . $nr, 'equals', true),
)
),
array(
'id' => $prefix . '_opm_packages_' . $nr,
'type' => 'checkbox',
'title' => _x('Packages', 'Optin Forms', 'optimizepress_smart'),
'options' => opGetOpmPackages(),
'default' => '',
'required' => array(
// array('integration_current', 'equals', $nr),
array($prefix . '_opm_integration_' . $nr, 'equals', true),
)
),
));
}
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_accordion_end_' . $nr,
'type' => 'accordion',
'position' => 'end'
),
));
// if ($defaults === false) {
// foreach ($fields as &$item) {
// unset($item['default']);
// }
// }
return $fields;
}
/**
* Generate optin section with all required fields
* @param string $prefix
* @param string $name
* @param array $disabled_fields - fields that shouldn't be shown for current form
* @return array
*/
function opOptinSection($prefix, $name, $disabled_fields = array(), $defaults = false)
{
$fields = array(
array(
'id' => $prefix . '_accordion_start',
'type' => 'accordion',
'title' => $name,
'position' => 'start',
)
);
$form_behaviour = array();
// This will allow us to override deafult optin behaviour on posts and pages
if (strpos($prefix, 'specific_') !== false) {
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_form_behaviour',
'type' => 'switch',
'title' => $name . ' ' . _x('Optin Behaviour', 'Optin Forms', 'optimizepress_smart'),
'desc' => _x('Default will use settings set in Theme Options, and custom will set options only for this post.', 'Optin Forms', 'optimizepress_smart'),
'on' => _x('Default', 'optimizepress_smart'),
'off' => _x('Custom', 'optimizepress_smart'),
'default' => true,
)
));
$form_behaviour = array($prefix . '_form_behaviour', 'equals', false);
}
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_form_enabled',
'type' => 'switch',
'title' => sprintf(_x('Enable %s Optin', 'Optin Forms', 'optimizepress_smart'), $name),
'on' => _x('Enable', 'optimizepress_smart'),
'off' => _x('Disable', 'optimizepress_smart'),
'default' => $defaults === true ? true : false,
'required' => $form_behaviour
)
));
/**
* Integration settings
*/
// $integration_settings = opOptinFormSettingsFields(true, $prefix);
// foreach ($integration_settings as $key => $value) {
// array_push($fields, $value);
// }
/**
* Inline (NOT in poppup)
*/
$op_options = get_option('op_options');
$integrations_nr = isset($op_options['integrations_number']) ? $op_options['integrations_number'] : 0;
$integrations_array = array();
for ($j = 1; $j <= $integrations_nr; $j++) {
$id = (isset($op_options['integration_settings_integration_id_' . $j])) ? $op_options['integration_settings_integration_id_' . $j] : $j;
$name = (isset($op_options['integration_settings_integration_name_' . $j])) ? $op_options['integration_settings_integration_name_' . $j] : 'Integration #' . $j;
$integrations_array[$id] = $name;
}
// This description is initially hidden and shown via JS
// when there are not properly configured integrations
$integrations_desc = _x('Please configure at least one Integration in "Integration Settings" submenu to use Optin Forms.', 'Optin Forms', 'optimizepress_smart');
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_integration',
'type' => 'select',
'title' => _x('Integration', 'Optin Forms', 'optimizepress_smart'),
'subtitle' => _x('Select the integration defined in Integration Settings submenu.', 'Optin Forms', 'optimizepress_smart'),
// 'desc' => _x('Please note that you will have to refresh the page if you added new integrations, or changed integration\'s name.', 'Optin Forms', 'optimizepress_smart'),
'desc' => $integrations_desc,
'class' => 'op-integration-select',
'options' => $integrations_array,
'default' => $defaults === true ? 1 : '',
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
),
),
array(
'id' => $prefix . '_style',
'type' => 'select',
'title' => _x('Optin Style', 'Optin Forms', 'optimizepress_smart'),
'options' => array('light' => 'Light', 'dark' => 'Dark'),
'default' => 'light',
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
),
),
array(
'id' => $prefix . '_headline',
'type' => 'text',
'title' => _x('Form Headline', 'Optin Forms', 'optimizepress_smart'),
'default' => "Launch your first blog with our new OptimizePress SmartTheme",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
// array(false, 'equals', true)
// array($prefix . '_form_in_popup', 'equals', false),
)
)
));
if (!isset($disabled_fields['subheadline'])) {
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_subheadline',
'type' => 'text',
'title' => _x('Form SubHeadline', 'Optin Forms', 'optimizepress_smart'),
'default' => "Beautiful theme for marketers, powered by OptimizePress.",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
// array($prefix . '_form_in_popup', 'equals', false),
)
)
));
}
if (!isset($disabled_fields['image'])) {
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_image',
'type' => 'media',
'title' => _x('Image', 'Optin Forms', 'optimizepress_smart'),
// 'default' => "Beautiful theme for marketers, powered by OptimizePress.",
// 'default' => $defaults === true ? 1 : '',
'default' => array(
'url' => get_template_directory_uri() . '/images/social-media-cover.png',
),
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
)
)
));
}
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_submit_button_text',
'type' => 'text',
'title' => _x('Form Submit Button Text', 'Optin Forms', 'optimizepress_smart'),
'default' => "Let's Start",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', false),
)
),
array(
'id' => $prefix . '_submit_button_text_color',
'type' => 'color',
'title' => _x('Form Submit Button Text Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#FFFFFF',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', false),
// array('homepage_' . $slug . '_form_in_popup', 'equals', false),
)
),
array(
'id' => $prefix . '_submit_button_background_color',
'type' => 'color',
'title' => _x('Form Submit Button Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#276CF2',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', false),
// array($prefix . '_form_in_popup', 'equals', false),
)
),
array(
'id' => $prefix . '_submit_button_hover_background_color',
'type' => 'color',
'title' => _x('Form Submit Button Hover Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#0054cc',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', false),
// array($prefix . '_form_in_popup', 'equals', false),
)
)
));
if (!isset($disabled_fields['privacy_text'])) {
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_privacy_text',
'type' => 'text',
'title' => _x('Form Privacy Text', 'Optin Forms', 'optimizepress_smart'),
'default' => "100% Privacy Guaranteed. We will never share your information.",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', false),
)
)
));
}
/**
* In Poppup Fields
*/
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_form_in_popup',
'type' => 'switch',
'title' => _x('Show Form in Lightbox / Popup Optin', 'Optin Forms', 'optimizepress_smart'),
'on' => _x('Yes', 'optimizepress_smart'),
'off' => _x('No', 'optimizepress_smart'),
'default' => $prefix === 'homepage_before_footer' ? true : false,
'required' => array($prefix . '_form_enabled', 'equals', true),
),
array(
'id' => $prefix . '_trigger_button_text',
'type' => 'text',
'title' => _x('Trigger Button Text', 'Optin Forms', 'optimizepress_smart'),
'default' => "Let's Start",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_trigger_button_text_color',
'type' => 'color',
'title' => _x('Trigger Button Text Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#FFFFFF',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_trigger_button_background_color',
'type' => 'color',
'title' => _x('Trigger Button Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#276CF2',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_trigger_button_hover_background_color',
'type' => 'color',
'title' => _x('Trigger Button Hover Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#0054cc',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
// array($prefix . '_form_in_popup', 'equals', false),
)
),
array(
'id' => $prefix . '_lightbox_headline',
'type' => 'text',
'title' => _x('Lightbox Form Headline', 'Optin Forms', 'optimizepress_smart'),
'default' => "Launch your first blog with our new OptimizePress SmartTheme",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_lightbox_subheadline',
'type' => 'text',
'title' => _x('Lightbox Form SubHeadline', 'Optin Forms', 'optimizepress_smart'),
'default' => "Beautiful theme for marketers, powered by OptimizePress. Working with SmartTheme is a pleasure. Creating converting landing pages, sales pages and membership portals with OptimizePress is a breeze.",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_lightbox_submit_button_text',
'type' => 'text',
'title' => _x('Lightbox Form Submit Button Text', 'Optin Forms', 'optimizepress_smart'),
'default' => "Let's Start",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_lightbox_submit_button_text_color',
'type' => 'color',
'title' => _x('Lightbox Form Submit Button Text Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#FFFFFF',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_lightbox_submit_button_background_color',
'type' => 'color',
'title' => _x('Lightbox Form Submit Button Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#276CF2',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
array(
'id' => $prefix . '_lightbox_submit_button_hover_background_color',
'type' => 'color',
'title' => _x('Lightbox Form Submit Button Hover Background Colour', 'Optin Forms', 'optimizepress_smart'),
'default' => '#0054cc',
'transparent' => false,
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
// array($prefix . '_form_in_popup', 'equals', false),
)
),
array(
'id' => $prefix . '_lightbox_privacy_text',
'type' => 'text',
'title' => _x('Lightbox Form Privacy Text', 'Optin Forms', 'optimizepress_smart'),
'default' => "100% Privacy Guaranteed. We will never share your information.",
'required' => array(
array($prefix . '_form_enabled', 'equals', true),
array($prefix . '_form_in_popup', 'equals', true),
)
),
));
$fields = array_merge($fields, array(
array(
'id' => $prefix . '_accordion_end',
'type' => 'accordion',
'position' => 'end',
)
));
return $fields;
}
/**
* Overriding Reudux backend templates
*
* @param $value
* @return string
*/
function op_redux_override_panels($value)
{
$value = OP_SMART_THEME_DIR . 'template-parts/redux_panels/';
return $value;
}
add_filter('redux/op_options/panel/templates_path', 'op_redux_override_panels', 100);
/**
* smart Theme Customizer.
*
* @package smart
*/
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function op_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
}
add_action( 'customize_register', 'op_customize_register' );
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/
function op_customize_preview_js() {
wp_enqueue_script( 'op_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true );
}
add_action( 'customize_preview_init', 'op_customize_preview_js' );
/**
* Custom functions, filters and hooks used to modify WooCommerce plugin behaviour or apperance.
*
* @package smart
*/
/**
* Append cart icon to the main menu (primary location) if WooCommerce is active and if "cart_icon_in_header" is enabled.
*
* @param array $items
* @param stdClass $args
* @return array
*/
function op_header_menu_woocommerce_cart($items, $args)
{
global $woocommerce;
global $op_options;
if ($args->theme_location === 'primary' && in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))
&& (int) $op_options['cart_icon_in_header'] === 1) {
$count = ($woocommerce->cart->cart_contents_count > 0) ? ' (' . $woocommerce->cart->cart_contents_count . ') ' : '';
$items .= '
';
}
return $items;
}
add_filter('wp_nav_menu_items','op_header_menu_woocommerce_cart', 9, 2);
/**
* Enqueue WooCommerce CSS compat styles.
*/
function op_change_woo_styles()
{
// wp_enqueue_style('woocommerce_layout', get_template_directory_uri() . '/css/woocommerce-layout.css');
wp_enqueue_style('woocommerce_responsive_frontend_styles', get_template_directory_uri() . '/css/woocommerce' . OP_SMART_DEBUG . '.css', array('opst-css-style'), OP_SMART_THEME_VERSION);
}
add_action('wp_enqueue_scripts', 'op_change_woo_styles', 99);
// add_filter('woocommerce_enqueue_styles', '__return_false');
// Remove WooCommerce content wrapper
// remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper');
// remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end');
// Move WooCommerce breadcrumbs
remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20);
add_action('woocommerce_before_shop_loop', 'woocommerce_breadcrumb', 15);
add_action('woocommerce_single_product_summary', 'woocommerce_breadcrumb', 1);
// Remove WooCommerce product single product hooks
// remove_action('woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20);
// remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title', 5);
// Move WooCommerce cross sells section
remove_action('woocommerce_cart_collaterals', 'woocommerce_cross_sell_display');
add_action('woocommerce_cross_sell_show', 'woocommerce_cross_sell_display', 5);
/**
* Hook to woocommerce_after_shop_loop_item_title to
* display a custom short description on every post
*/
function woocommerce_show_custom_short_description()
{
global $product;
global $op_options;
if (!isset($op_options['show_custom_short_description']) || (int) $op_options['show_custom_short_description'] === 0) {
return;
}
$product_id = $product->get_id();
$post_options = redux_post_meta('op_options', $product_id);
$desc = $post_options['woocommerce_custom_short_description'];
if (!isset($desc) || empty($desc)) {
return;
}
echo '' . $desc . '
';
}
add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_show_custom_short_description', 4);
/**
* Number of items in shop row is related
* to the sidebar. If sidebar is
* present, 3 items are shown,
* if not 4 are shown.
*/
function loop_columns() {
if (false === apply_filters('op_template_has_sidebar', false)) {
return 4;
}
return 3;
}
add_filter('loop_shop_columns', 'loop_columns', 999);
/**
* Get HTML for ratings.
*
* @param float $rating Rating being shown.
* @return string
*/
function op_wc_get_rating_html( $rating ) {
$rating_html = '';
$rating_html .= '' . $rating . ' ' . esc_html_x('out of 5', 'WooCommerce', 'optimizepress_smart') . '';
$rating_html .= '
';
return apply_filters( 'woocommerce_product_get_rating_html', $rating_html, $rating );
}
{"name":"Excellentology","description":"Do it Excellently","url":"http:\/\/xcellentology.us","home":"http:\/\/xcellentology.us","gmt_offset":-6,"timezone_string":"America\/Denver","namespaces":["oembed\/1.0","akismet\/v1","wp\/v2"],"authentication":[],"routes":{"\/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/"}]}},"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"oembed\/1.0"},"context":{"required":false,"default":"view"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/oembed\/1.0"}]}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"required":true},"format":{"required":false,"default":"json"},"maxwidth":{"required":false,"default":600}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/oembed\/1.0\/embed"}]}},"\/oembed\/1.0\/proxy":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"required":true,"description":"The URL of the resource for which to fetch oEmbed data.","type":"string"},"format":{"required":false,"default":"json","enum":["json","xml"],"description":"The oEmbed format to use.","type":"string"},"maxwidth":{"required":false,"default":600,"description":"The maximum width of the embed frame in pixels.","type":"integer"},"maxheight":{"required":false,"description":"The maximum height of the embed frame in pixels.","type":"integer"},"discover":{"required":false,"default":true,"description":"Whether to perform an oEmbed discovery request for non-whitelisted providers.","type":"boolean"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/oembed\/1.0\/proxy"}]}},"\/akismet\/v1":{"namespace":"akismet\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"akismet\/v1"},"context":{"required":false,"default":"view"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/akismet\/v1"}]}},"\/akismet\/v1\/key":{"namespace":"akismet\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"key":{"required":true,"description":"A 12-character Akismet API key. Available at akismet.com\/get\/","type":"string"}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/akismet\/v1\/key"}]}},"\/akismet\/v1\/settings":{"namespace":"akismet\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"akismet_strictness":{"required":false,"description":"If true, Akismet will automatically discard the worst spam automatically rather than putting it in the spam folder.","type":"boolean"},"akismet_show_user_comments_approved":{"required":false,"description":"If true, show the number of approved comments beside each comment author in the comments list page.","type":"boolean"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/akismet\/v1\/settings"}]}},"\/akismet\/v1\/stats":{"namespace":"akismet\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"interval":{"required":false,"default":"all","description":"The time period for which to retrieve stats. Options: 60-days, 6-months, all","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/akismet\/v1\/stats"}]}},"\/akismet\/v1\/stats\/(?P[\\w+])":{"namespace":"akismet\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"interval":{"required":false,"description":"The time period for which to retrieve stats. Options: 60-days, 6-months, all","type":"string"}}}]},"\/akismet\/v1\/alert":{"namespace":"akismet\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"key":{"required":false,"description":"A 12-character Akismet API key. Available at akismet.com\/get\/","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"key":{"required":false,"description":"A 12-character Akismet API key. Available at akismet.com\/get\/","type":"string"}}},{"methods":["DELETE"],"args":{"key":{"required":false,"description":"A 12-character Akismet API key. Available at akismet.com\/get\/","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/akismet\/v1\/alert"}]}},"\/wp\/v2":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"wp\/v2"},"context":{"required":false,"default":"view"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2"}]}},"\/wp\/v2\/posts":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","op_preview","any"],"type":"string"}},"tax_relation":{"required":false,"enum":["AND","OR"],"description":"Limit result set based on relationship between multiple taxonomies.","type":"string"},"categories":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"categories_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"tags_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"sticky":{"required":false,"description":"Limit result set to items that are sticky.","type":"boolean"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/posts"}]}},"\/wp\/v2\/posts\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass Trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"description":"Sort collection by object attribute.","type":"string"}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"The ID for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/pages":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"menu_order":{"required":false,"description":"Limit result set to posts with a specific menu_order value.","type":"integer"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title","menu_order"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to items with particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","op_preview","any"],"type":"string"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/pages"}]}},"\/wp\/v2\/pages\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass Trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"description":"Sort collection by object attribute.","type":"string"}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"The ID for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/media":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to items with particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"inherit","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["inherit","private","trash"],"type":"string"}},"media_type":{"required":false,"enum":["image","video","text","application","audio"],"description":"Limit result set to attachments of a particular media type.","type":"string"},"mime_type":{"required":false,"description":"Limit result set to attachments of a particular MIME type.","type":"string"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/media"}]}},"\/wp\/v2\/media\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass Trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/media\/(?P[\\d]+)\/post-process":{"namespace":"wp\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"action":{"required":true,"enum":["create-image-subsizes"],"type":"string"}}}]},"\/wp\/v2\/blocks":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","op_preview","any"],"type":"string"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/blocks"}]}},"\/wp\/v2\/blocks\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass Trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":["string","null"]},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":["string","null"]},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private","op_preview"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"template":{"required":false,"description":"The theme file to use to display the object.","type":"string"}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"The ID for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/types"}]}},"\/wp\/v2\/types\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"type":{"required":false,"description":"An alphanumeric identifier for the post type.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/statuses":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/statuses"}]}},"\/wp\/v2\/statuses\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"status":{"required":false,"description":"An alphanumeric identifier for the status.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/taxonomies":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"type":{"required":false,"description":"Limit results to taxonomies associated with a specific post type.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/taxonomies"}]}},"\/wp\/v2\/taxonomies\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"taxonomy":{"required":false,"description":"An alphanumeric identifier for the taxonomy.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/categories":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"parent":{"required":false,"description":"Limit result set to terms assigned to a specific parent.","type":"integer"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"}}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/categories"}]}},"\/wp\/v2\/categories\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/tags":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"}}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/tags"}]}},"\/wp\/v2\/tags\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/users":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","registered_date","slug","include_slugs","email","url"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to users with one or more specific slugs.","type":"array","items":{"type":"string"}},"roles":{"required":false,"description":"Limit result set to users matching at least one specific role provided. Accepts csv list or single role.","type":"array","items":{"type":"string"}},"who":{"required":false,"enum":["authors"],"description":"Limit result set to users who are considered authors.","type":"string"}}},{"methods":["POST"],"args":{"username":{"required":true,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":true,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","en_GB"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":true,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/users"}]}},"\/wp\/v2\/users\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","en_GB"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}]},"\/wp\/v2\/users\/me":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","en_GB"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/users\/me"}]}},"\/wp\/v2\/comments":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to comments published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"description":"Limit result set to comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"description":"Ensure result set excludes comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_email":{"required":false,"description":"Limit result set to that from a specific author email. Requires authorization.","type":"string"},"before":{"required":false,"description":"Limit response to comments published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date_gmt","enum":["date","date_gmt","id","include","post","parent","type"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to comments of specific parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific parent IDs.","type":"array","items":{"type":"integer"}},"post":{"required":false,"default":[],"description":"Limit result set to comments assigned to specific post IDs.","type":"array","items":{"type":"integer"}},"status":{"required":false,"default":"approve","description":"Limit result set to comments assigned a specific status. Requires authorization.","type":"string"},"type":{"required":false,"default":"comment","description":"Limit result set to comments assigned a specific type. Requires authorization.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST"],"args":{"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"default":0,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"default":0,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/comments"}]}},"\/wp\/v2\/comments\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the parent post of the comment (if the post is password protected).","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass Trash and force deletion.","type":"boolean"},"password":{"required":false,"description":"The password for the parent post of the comment (if the post is password protected).","type":"string"}}}]},"\/wp\/v2\/search":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"type":{"required":false,"default":"post","enum":["post"],"description":"Limit results to items of an object type.","type":"string"},"subtype":{"required":false,"default":"any","description":"Limit results to items of one or more object subtypes.","type":"array","items":{"enum":["post","page","any"],"type":"string"}}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/search"}]}},"\/wp\/v2\/block-renderer\/(?Pcore\/archives)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/archives block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/block)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/block block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/calendar)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/calendar block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/categories)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/categories block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/latest-comments)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/latest-comments block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/latest-posts)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/latest-posts block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/rss)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/rss block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/search)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/search block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/shortcode)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/shortcode block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/social-link)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/social-link block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/block-renderer\/(?Pcore\/tag-cloud)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"required":false,"description":"Unique registered name for the block.","type":"string"},"context":{"required":false,"default":"view","enum":["edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"attributes":{"required":false,"default":[],"description":"Attributes for core\/tag-cloud block","type":"object"},"post_id":{"required":false,"description":"ID of the post context.","type":"integer"}}}]},"\/wp\/v2\/settings":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"title":{"required":false,"description":"Site title.","type":"string"},"description":{"required":false,"description":"Site tagline.","type":"string"},"url":{"required":false,"description":"Site URL.","type":"string"},"email":{"required":false,"description":"This address is used for admin purposes, like new user notification.","type":"string"},"timezone":{"required":false,"description":"A city in the same timezone as you.","type":"string"},"date_format":{"required":false,"description":"A date format for all date strings.","type":"string"},"time_format":{"required":false,"description":"A time format for all time strings.","type":"string"},"start_of_week":{"required":false,"description":"A day number of the week that the week should start on.","type":"integer"},"language":{"required":false,"description":"WordPress locale code.","type":"string"},"use_smilies":{"required":false,"description":"Convert emoticons like :-) and :-P to graphics on display.","type":"boolean"},"default_category":{"required":false,"description":"Default post category.","type":"integer"},"default_post_format":{"required":false,"description":"Default post format.","type":"string"},"posts_per_page":{"required":false,"description":"Blog pages show at most.","type":"integer"},"default_ping_status":{"required":false,"enum":["open","closed"],"description":"Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.","type":"string"},"default_comment_status":{"required":false,"enum":["open","closed"],"description":"Allow people to submit comments on new posts.","type":"string"}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/settings"}]}},"\/wp\/v2\/themes":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"status":{"required":true,"description":"Limit result set to themes assigned one or more statuses.","type":"array","items":{"enum":["active"],"type":"string"}}}}],"_links":{"self":[{"href":"http:\/\/xcellentology.us\/wp-json\/wp\/v2\/themes"}]}}},"_links":{"help":[{"href":"http:\/\/v2.wp-api.org\/"}]}}