Changeset 3461809
- Timestamp:
- 02/15/2026 12:59:58 PM (6 weeks ago)
- Location:
- readova-core/trunk
- Files:
-
- 3 added
- 3 edited
-
inc/activation.php (added)
-
inc/admin (added)
-
inc/admin/admin-dashboard-cleanup.php (added)
-
inc/demo-chapters.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
readova-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
readova-core/trunk/inc/demo-chapters.php
r3455373 r3461809 146 146 update_option('readova_demo_chapters_added', true); 147 147 } 148 149 /**150 * Run after plugin activation.151 */152 function readova_core_activate_plugin() {153 // Register the CPT before running demo importer154 if (function_exists('readova_core_register_chapter_cpt')) {155 readova_core_register_chapter_cpt();156 }157 158 // Flush after CPT registration159 flush_rewrite_rules();160 161 // Add demo content162 readova_core_add_demo_chapters();163 }164 165 function readova_core_deactivate_plugin() {166 flush_rewrite_rules();167 } -
readova-core/trunk/readme.txt
r3455373 r3461809 1 1 === Readova Core === 2 Contributors: bytejutsu3 Tags: readova, ebook, chapters, author2 Contributors: ByteJutsu 3 Tags: readova, chapters, ebook, author, demo-content 4 4 Requires at least: 5.2 5 5 Tested up to: 6.9 6 Requires PHP: 7.47 Stable tag: 1.0. 16 Requires PHP: 5.6 7 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Readova Core provides the required functionality for the Readova theme, including chapters management and setup tools. 12 11 Companion plugin for the Readova theme. Adds Chapters, demo import, and setup tools. 13 12 14 13 == Description == 15 14 Readova Core is the companion plugin for the Readova WordPress theme. 16 It provides core functionality including custom post types and demo content. 15 It provides core functionality including: 16 - Chapters custom post type (Readova Chapters) 17 - Demo chapters import tools 18 - Optional admin simplification when Readova is the active theme 17 19 18 20 == Image Credits == -
readova-core/trunk/readova-core.php
r3455373 r3461809 3 3 * Plugin Name: Readova Core 4 4 * Description: Core functionality plugin for the Readova theme. Registers the 'Readova Chapters' custom post type and enables demo content import. 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: ByteJutsu 7 7 * License: GPL-2.0+ … … 14 14 } 15 15 16 // Define constants 17 define('READOVA_CORE_VERSION', '1.0.1'); 16 define('READOVA_CORE_VERSION', '1.0.2'); 18 17 define('READOVA_CORE_PATH', plugin_dir_path(__FILE__)); 19 18 define('READOVA_CORE_URL', plugin_dir_url(__FILE__)); 20 19 define('READOVA_CORE_CPT_CHAPTER', 'readova_chapter'); 21 20 22 // Include core functionality 23 require_once plugin_dir_path(__FILE__) . 'inc/cpt-chapters.php'; 24 require_once plugin_dir_path(__FILE__) . 'inc/demo-chapters.php'; 25 require_once plugin_dir_path(__FILE__) . 'inc/editor/classic-editor.php'; 21 require_once READOVA_CORE_PATH . 'inc/cpt-chapters.php'; 22 require_once READOVA_CORE_PATH . 'inc/demo-chapters.php'; 23 require_once READOVA_CORE_PATH . 'inc/editor/classic-editor.php'; 24 require_once READOVA_CORE_PATH . 'inc/activation.php'; 25 26 if (is_admin()) { 27 require_once READOVA_CORE_PATH . 'inc/admin/admin-dashboard-cleanup.php'; 28 } 26 29 27 30 register_activation_hook(__FILE__, 'readova_core_activate_plugin');
Note: See TracChangeset
for help on using the changeset viewer.