Automattic\WooCommerce\Blocks\Templates

ComingSoonSocialLinksTemplate{}WC 1.0

ComingSoonSocialLinksTemplate class.

No Hooks.

Usage

$ComingSoonSocialLinksTemplate = new ComingSoonSocialLinksTemplate();
// use class methods

Methods

  1. protected get_placeholder_page()
  2. public get_template_description()
  3. public get_template_title()
  4. public init()

ComingSoonSocialLinksTemplate{} code WC 9.6.1

class ComingSoonSocialLinksTemplate extends AbstractTemplatePart {

	/**
	 * The slug of the template.
	 *
	 * @var string
	 */
	const SLUG = 'coming-soon-social-links';

	/**
	 * The template part area where the template part belongs.
	 *
	 * @var string
	 */
	public $template_area = 'uncategorized';

	/**
	 * Initialization method.
	 */
	public function init() {}

	/**
	 * Returns the title of the template.
	 *
	 * @return string
	 */
	public function get_template_title() {
		return _x( 'Coming soon social links', 'Template name', 'woocommerce' );
	}

	/**
	 * Returns the description of the template.
	 *
	 * @return string
	 */
	public function get_template_description() {
		return __( 'Reusable template part for displaying social links on the coming soon page.', 'woocommerce' );
	}

	/**
	 * Returns the page object assigned to this template/page.
	 *
	 * @return \WP_Post|null Post object or null.
	 */
	protected function get_placeholder_page() {
		return null;
	}
}