first commit

This commit is contained in:
2023-09-08 01:45:46 -07:00
commit 8cbf53172b
108 changed files with 29005 additions and 0 deletions

27
inc/core/Options.php Normal file
View File

@ -0,0 +1,27 @@
<?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 );
}