This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
cookthebooks-legacy/inc/core/Options.php

28 lines
646 B
PHP

<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* Options base class.
*
* @package PressBook
*/
namespace PressBook;
/**
* Base class for theme options service classes.
*/
abstract class Options implements Serviceable {
/**
* Allows to define customizer sections, settings, and controls.
*/
public function register() {
add_action( 'customize_register', array( $this, 'customize_register' ) );
}
/**
* Define customizer sections, settings, and controls.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
abstract public function customize_register( $wp_customize );
}