Astra_Update_Single_Post::get_input_schema()

Get input schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/posttypes/blog/class-astra-update-single-post.php

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'container_layout'      => array(
					'type'        => 'string',
					'description' => __( 'Container layout for single posts. Options: "default" (Default), "normal-width-container" (Normal), "narrow-width-container" (Narrow), "full-width-container" (Full Width).', 'astra' ),
					'enum'        => array( 'default', 'normal-width-container', 'narrow-width-container', 'full-width-container' ),
				),
				'container_style'       => array(
					'type'        => 'string',
					'description' => __( 'Container style. Options: "boxed" (Boxed), "unboxed" (Unboxed).', 'astra' ),
					'enum'        => array( 'boxed', 'unboxed' ),
				),
				'sidebar_layout'        => array(
					'type'        => 'string',
					'description' => __( 'Sidebar layout for single posts. Options: "default" (Default), "no-sidebar" (No Sidebar), "left-sidebar" (Left Sidebar), "right-sidebar" (Right Sidebar).', 'astra' ),
					'enum'        => array( 'default', 'no-sidebar', 'left-sidebar', 'right-sidebar' ),
				),
				'sidebar_style'         => array(
					'type'        => 'string',
					'description' => __( 'Sidebar style for single posts. Options: "default" (Default), "unboxed" (Unboxed), "boxed" (Boxed).', 'astra' ),
					'enum'        => array( 'default', 'unboxed', 'boxed' ),
				),
				'content_width'         => array(
					'type'        => 'string',
					'description' => __( 'Content width setting. Options: "default" (Default), "custom" (Custom).', 'astra' ),
					'enum'        => array( 'default', 'custom' ),
				),
				'content_max_width'     => array(
					'type'        => 'integer',
					'description' => __( 'Custom content max width in pixels (0-1920). Only applies when content_width is set to "custom".', 'astra' ),
				),
				'related_posts_enabled' => array(
					'type'        => 'boolean',
					'description' => __( 'Enable or disable related posts display on single posts.', 'astra' ),
				),
				'related_posts_count'   => array(
					'type'        => 'integer',
					'description' => __( 'Number of related posts to display (1-20).', 'astra' ),
				),
			),
		);
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.