Plugin Directory

Changeset 3461809


Ignore:
Timestamp:
02/15/2026 12:59:58 PM (6 weeks ago)
Author:
bytejutsu
Message:

Readova Core 1.0.2

Location:
readova-core/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • readova-core/trunk/inc/demo-chapters.php

    r3455373 r3461809  
    146146    update_option('readova_demo_chapters_added', true);
    147147}
    148 
    149 /**
    150  * Run after plugin activation.
    151  */
    152 function readova_core_activate_plugin() {
    153     // Register the CPT before running demo importer
    154     if (function_exists('readova_core_register_chapter_cpt')) {
    155         readova_core_register_chapter_cpt();
    156     }
    157 
    158     // Flush after CPT registration
    159     flush_rewrite_rules();
    160 
    161     // Add demo content
    162     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  
    11=== Readova Core ===
    2 Contributors: bytejutsu
    3 Tags: readova, ebook, chapters, author
     2Contributors: ByteJutsu
     3Tags: readova, chapters, ebook, author, demo-content
    44Requires at least: 5.2
    55Tested up to: 6.9
    6 Requires PHP: 7.4
    7 Stable tag: 1.0.1
     6Requires PHP: 5.6
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Readova Core provides the required functionality for the Readova theme, including chapters management and setup tools.
    12 
     11Companion plugin for the Readova theme. Adds Chapters, demo import, and setup tools.
    1312
    1413== Description ==
    1514Readova Core is the companion plugin for the Readova WordPress theme.
    16 It provides core functionality including custom post types and demo content.
     15It 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
    1719
    1820== Image Credits ==
  • readova-core/trunk/readova-core.php

    r3455373 r3461809  
    33 * Plugin Name: Readova Core
    44 * Description: Core functionality plugin for the Readova theme. Registers the 'Readova Chapters' custom post type and enables demo content import.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: ByteJutsu
    77 * License: GPL-2.0+
     
    1414}
    1515
    16 // Define constants
    17 define('READOVA_CORE_VERSION', '1.0.1');
     16define('READOVA_CORE_VERSION', '1.0.2');
    1817define('READOVA_CORE_PATH', plugin_dir_path(__FILE__));
    1918define('READOVA_CORE_URL', plugin_dir_url(__FILE__));
    2019define('READOVA_CORE_CPT_CHAPTER', 'readova_chapter');
    2120
    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';
     21require_once READOVA_CORE_PATH . 'inc/cpt-chapters.php';
     22require_once READOVA_CORE_PATH . 'inc/demo-chapters.php';
     23require_once READOVA_CORE_PATH . 'inc/editor/classic-editor.php';
     24require_once READOVA_CORE_PATH . 'inc/activation.php';
     25
     26if (is_admin()) {
     27    require_once READOVA_CORE_PATH . 'inc/admin/admin-dashboard-cleanup.php';
     28}
    2629
    2730register_activation_hook(__FILE__, 'readova_core_activate_plugin');
Note: See TracChangeset for help on using the changeset viewer.