
內容簡介
Default Post Author 外掛是一個強大的工具,旨在簡化在 WordPress 網站上設定預設文章作者的過程。透過此外掛,您可以輕鬆定義所有新文章(及其他文章類型)的預設作者,確保一致性並節省寶貴時間。
【主要功能】
• 簡易設置:快速且直觀的配置
• 支援多種文章類型:適用於文章、頁面及任何公共自訂文章類型
• 批次更新:可將現有文章更新為預設作者
• 乾跑模式:預覽將被更改的文章數量
• 進度追蹤:可視化的批次操作進度條
• WP-CLI 支援:從命令列管理設置和執行批次更新
外掛標籤
開發者團隊
原文外掛簡介
Try Default Post Author on a demo site: Click here => https://tastewp.com/plugins/default-post-author.
The Default Post Author plugin is a powerful tool designed to simplify the process of setting a default post author on your WordPress site. With this plugin, you can easily define a default author for all new posts (and other post types), ensuring consistency and saving you valuable time.
✨ Key Features
Easy Setup – Quick and straightforward configuration
Modern Admin Interface – Beautiful, intuitive settings page with smooth animations
Toggle Controls – Enable/disable features with modern toggle switches
Multi Post-Type Support – Apply the default author to Posts, Pages and any public Custom Post Type that supports authors
Capability-Aware Assignment – Prevents permission errors when Authors create posts (new in 2.3.0)
Bulk Update – Update existing posts to the default author with real AJAX batching and accurate progress
Dry-Run Mode – Preview how many posts would be changed before running a bulk update
Post Status Filter – Limit bulk updates to Published, Draft, Pending, etc.
Revision Sync – Keep revision authors in sync with parent posts
WP-CLI Support – Manage settings and run bulk updates from the command line
AJAX-Powered – Real-time saving without page reloads
Progress Tracking – Visual progress bar for bulk operations
Responsive Design – Works perfectly on all devices
Lightweight – Optimized code for maximum performance
Developer Friendly – Useful filters and actions for customization
🎨 Modern Admin Interface
Clean, card-based layout
Smooth animations and transitions
Modern toggle switches
Interactive buttons with loading states
Toast notifications for instant feedback
Accurate progress indicators for bulk operations
Fully responsive design
🚀 How It Works
Install and activate the plugin
Navigate to Settings > Default Post Author
Select your preferred default author from the dropdown
Choose which post types should receive the default author
Enable/disable features using the toggle switches
Save your settings – that’s it!
By selecting a default author, you ensure that every new post (of the selected types) created on your site will automatically be attributed to that specific author. This feature is particularly useful for multi-author blogs or websites where different users contribute content regularly.
🔧 Feature Toggles
Enable Default Author – Turn the default author feature on/off without deactivating the plugin
Only force for users who can edit others’ posts – Recommended. Prevents the permission error that Authors encounter when the plugin tries to re-assign their new posts. Admins and Editors still receive the forced default author.
Sync Revision Authors – Keep revision authors matching the parent post author
📦 Bulk Update Existing Posts
Need to change the author of existing posts? The plugin includes a powerful bulk update feature that:
Processes posts in real AJAX batches to prevent timeouts
Shows accurate real-time progress
Supports dry-run mode so you can preview changes
Lets you filter by post status
Provides detailed completion messages
Works with any number of posts
🖥️ WP-CLI Commands
`
wp dpap set-author –author=5
wp dpap set-author –author=5 –post-types=post,page
wp dpap bulk-update
wp dpap bulk-update –dry-run
wp dpap bulk-update –author=5 –post-types=post,page –status=publish
`
🔒 Security
Proper WordPress nonces for all operations
Capability checks for admin functions
Sanitized inputs and escaped outputs
Follows WordPress coding standards
🌐 Compatibility
WordPress 6.1 and higher
PHP 8.0 and higher
Compatible with multisite installations
Works with popular themes and plugins
Contributing & Bug Report
Bug reports and pull requests are welcome on GitHub.
