Skip to content
SacredWP
  • Home
  • Products
    • Highlite Pro
  • Documentation
    • Highlite Pro
  • Blog
    • Plugins
      • Highlite
  • My Highlights
  • Login

Highlite Pro

9
  • 🔧 Plugin Overview and Key Features
  • 🛠️ Installation & Activation Instructions
  • ⚙️ Plugin Settings Configuration (Max Words & Post Types)
  • 🖍️ Frontend Highlighting Features and Workflow
  • 📋 Highlight List Shortcode & User Dashboard ([[highlite_list]])
  • 🖨️ Download and Print Highlights – DOCX & HTML Export
  • 🔄 AJAX Functionality and Data Persistence Logic
  • 🎨 Customization, Styling, and Developer Notes
  • ❓ Frequently Asked Questions (FAQ)
View Categories
  • Home
  • Docs
  • Highlite
  • Highlite Pro
  • ⚙️ Plugin Settings Configuration (Max Words & Post Types)

⚙️ Plugin Settings Configuration (Max Words & Post Types)

2 min read

The Highlite Pro plugin provides a flexible settings panel where you can control key aspects of how the highlighter behaves. This configuration page allows site administrators to:

  • Limit how many words users can highlight in a single selection.
  • Choose which post types support frontend text highlighting (e.g., Posts, Pages, or Custom Post Types).

🔍 Accessing the Settings Panel #

  1. Log in to your WordPress dashboard.
  2. Go to Settings > Highlite (visible only to administrators with manage_options capability).

You’ll see a settings form with two main sections:


✏️ 1. Max Highlight Words #

  • Purpose: Restrict users from highlighting large chunks of text.
  • Field Type: Number input.
  • Default Value: 100 words.
  • How it works:
    • If a user tries to highlight more than this limit, a warning message is shown using SweetAlert2, and the highlight is rejected.
    • Helps maintain focus and prevent excessive database usage.

✅ Example Use Case: #

If you want users to highlight only short passages, set the limit to 25 words.


📄 2. Enable Highlighting for Specific Post Types #

  • Purpose: Control which post types allow the highlighting feature.
  • Field Type: List of checkboxes (one per public post type).
  • Available Options:
    • Posts (post)
    • Pages (page)
    • Any other custom post types registered on your site (e.g., docs, courses, etc.)

✅ How it works: #

  • Only selected post types will load the highlighting script and styles.
  • If a post type is unchecked, Highlite Pro will skip loading its JavaScript/CSS on that post type’s pages.

⚠️ Tip: #

Leave this list lean — enabling highlighting only on necessary post types improves performance.


💾 Saving Changes #

  1. Adjust the Max Word Limit as needed.
  2. Check/uncheck the post types you want to enable.
  3. Click Save Changes.

A green success message will confirm that your settings have been saved.


🔄 Setting Persistence #

  • All settings are saved using the WordPress options API.
  • They persist across theme changes, plugin updates, and cache clears.

🧪 Testing Your Configuration #

After saving:

  • Visit a post/page of a type you’ve enabled.
  • Try highlighting a passage under the word limit.
  • Verify that the floating 🖍️ Highlight button appears and works as expected.

Related #


Discover more from SacredWP #

Subscribe to get the latest posts sent to your email.

Updated on May 17, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
🛠️ Installation & Activation Instructions🖍️ Frontend Highlighting Features and Workflow

Leave a Comment Cancel reply

Table of Contents
  • 🔍 Accessing the Settings Panel
  • ✏️ 1. Max Highlight Words
    • ✅ Example Use Case:
  • 📄 2. Enable Highlighting for Specific Post Types
    • ✅ How it works:
    • ⚠️ Tip:
  • 💾 Saving Changes
  • 🔄 Setting Persistence
  • 🧪 Testing Your Configuration

About | Contact | Terms | Privacy

© 2025 SacredWP • Built with GeneratePress