T4S Rewriter - User Guide

Overview

T4S Rewriter is a WordPress plugin that automates content rewriting from RSS feeds. It fetches content from RSS feeds, rewrites it using AI, and publishes it to your WordPress site.

Installation

Plugin Installation

  1. Upload the plugin to WordPress
  2. Activate the plugin
  3. Go to T4S Rewriter settings to configure your API key

WP-Cron Configuration

Since content rewriting is resource-intensive, you need to configure WP-Cron properly:

1. Disable Default WP-Cron

Add this line to your wp-config.php file:

wp-config.phpphp
define('DISABLE_WP_CRON', true);

2. Set Up External Cron

Using WP-CLI (Recommended)

If you have WP-CLI installed, this is the most efficient method:

WP-CLI Commandbash
# Add to your crontab or scheduler
* * * * * cd /path/to/wordpress && wp cron event run --due-now > /dev/null 2>&1

Benefits of using WP-CLI:

  • More efficient than calling wp-cron.php via HTTP
  • Direct database access
  • Better error handling and logging
  • No HTTP overhead

Using Crontab (Linux/Unix)

Crontab Commandbash
# Open crontab editor
crontab -e

# Add this line to run WordPress cron every minute
* * * * * wget -q -O /dev/null "https://your-site.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1
# OR using curl
* * * * * curl -s "https://your-site.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1

Using Control Panel Schedulers

If you're using a hosting control panel:

  1. Go to your control panel's Cron Jobs or Scheduled Tasks section
  2. Create a new cron job
  3. Set it to run every minute
  4. Add the command to call wp-cron.php

Using Windows Task Scheduler

  1. Open Task Scheduler
  2. Create a new task
  3. Set trigger to run every minute
  4. Action: Start a program
  5. Program/script: curl or wget
  6. Arguments: "https://your-site.com/wp-cron.php?doing_wp_cron"

Plugin Settings

Navigate to T4S Rewriter > Settings to configure the plugin:

API Configuration

  • API Key: Enter your T4S Rewriter API key
    • Required for the plugin to function
    • The system will validate your API key
    • A status indicator shows if the connection is working

Language Settings

Choose from available languages for content rewriting:

  • English
  • Vietnamese
  • Spanish
  • French
  • German

Image Settings

  • Download Images: Toggle automatic image downloading
    • When enabled: Images are downloaded to your media library
    • When disabled: Original image URLs are used

Creating and Managing Jobs

Creating a New Job

  1. Navigate to T4S Rewriter > Jobs
  2. Click "Add New Job"
  3. Configure the following settings:

Basic Settings

  • RSS URL: Enter the RSS feed URL to fetch content from
  • Categories: Select one or more WordPress categories
  • Writing Style: Choose from various styles:
    • Auto
    • Professional
    • Casual
    • Academic
    • Creative
    • Technical
    • Journalistic
    • Informative
    • Conversational
  • Post Status: Choose to publish posts immediately or save as drafts

Limits & Controls

  • Daily Post Limit: Maximum posts per day (0 = unlimited)
  • Hourly Post Limit: Maximum posts per hour (0 = unlimited)
  • Article Order: Choose processing order (ascending/descending)
  • Job Status: Enable or disable the job
  • Featured Image: Require or make optional

Managing Jobs

The job details page shows:

  • All job settings
  • Processing statistics
  • Last run time
  • Processed articles list

Available Actions

  • Fetch RSS Now: Manually fetch new articles
  • Process Next Article: Manually process pending articles
  • Edit Job: Modify job settings
  • Filter Articles: View by status (All/Pending/Completed/Failed)

Processing Flow

graph LR
    A[RSS Feed] --> B[Fetch Content]
    B --> C[Queue Articles]
    C --> D[Process with AI]
    D --> E[Create Post]
  1. Plugin fetches content from RSS feed
  2. New articles are queued for processing
  3. Articles are rewritten according to settings
  4. Posts are created in WordPress