Post Author IP
This plugin records the IP address of the original post author when a post first gets created. The admin listing of posts is amended with a new “Author IP” column that shows the IP address of the author who first saved the post. The plugin is unable to provide IP address information for posts that were created prior to the use of this plugin. Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage Hooks The plugin is further customizable via four filters. Typically, code making use of filters should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). c2c_show_post_author_ip_column (filter) The ‘c2c_show_post_author_ip_column’ filter allows you to determine if the post author IP column should appear in the admin post listing table. Your hooking function can be sent 1 argument: Argument : $show_column (bool) Should the column be shown? Default true. Example: /** * Don't show the post author IP column except to admins. * * @param bool $show_column Should the column be shown? Default true. * @return bool */ function post_author_ip_column_admin_only( $show ) { if ( ! current_user_can( 'manage_options' ) ) { $show = false; } return $show; } add_filter( 'c2c_show_post_author_ip_column', 'post_author_ip_column_admin_only' ); c2c_get_post_author_ip (filter) The ‘c2c_get_post_author_ip’ filter allows you to customize the value stored as the post author IP address. Your hooking function can be sent 2 arguments: Arguments : $ip (string) The post author IP address. $post_id (int) The post ID. Example: /** * Store all IP addresses from local subnet IP addresses as the same IP address. * * @param string $ip The post author IP address. * @param int $post_id The post ID. * @return string */ function customize_post_author_ip( $ip, $post_id ) { if ( 0 === strpos( $ip, '192.168.' ) ) { $ip = '192.168.1.1'; } return $ip; } add_filter( 'c2c_get_post_author_ip', 'customize_post_author_ip', 10, 2 ); c2c_get_current_user_ip (filter) The ‘c2c_get_current_user_ip’ filter allows you to customize the current user’s IP address, as used by the plugin. Your hooking function can be sent 1 argument: Argument : $ip (string) The post author IP address. Example: /** * Overrides localhost IP address. * * @param string $ip The post author IP address. * @param int $post_id The post ID. * @return string */ function customize_post_author_ip( $ip, $post_id ) { if ( 0 === strpos( $ip, '192.168.' ) ) { $ip = '192.168.1.1'; } return $ip; } add_filter( 'c2c_get_post_author_ip', 'customize_post_author_ip', 10, 2 ); c2c_post_author_ip_allowed (filter) The ‘c2c_post_author_ip_allowed’ filter allows you to determine on a per-post basis if the post author IP should be stored. Your hooking function can be sent 3 arguments: Arguments : $allowed (bool) Can post author IP be saved for post? Default true. $post_id (int) The post ID. $ip (string) The post author IP address. Example: /** * Don't bother storing localhost IP addresses. * * @param bool $allowed Can post author IP be saved for post? Default true. * @param int $post_id The post ID. * @param string $ip The post author IP address. * @return string */ function disable_localhost_post_author_ips( $allowed, $post_id, $ip ) { if ( $allowed && 0 === strpos( $ip, '192.168.' ) ) { $allowed = false; } return $allowed; } add_filter( 'c2c_post_author_ip_allowed', 'disable_localhost_post_author_ips', 10, 3 );
Top keywords
- ip52×9.15%
- post48×8.45%
- author34×5.99%
- post author30×5.28%
- author ip25×4.40%
- post author ip23×4.05%
- address13×2.29%
- id13×2.29%
- ip address13×2.29%
- post id13×2.29%
- filter12×2.11%
- column11×1.94%
Post Duplicator
Save Time. Work Smarter. Duplicate Any Post Type with Ease. Post Duplicator is the ultimate WordPress plugin for quickly creating exact duplicates of any post type in your WordPress site. Whether you’re working with standard posts, pages, or custom post types, this plugin makes it effortless to clone content while preserving all taxonomies, custom fields, and metadata. Key Features: Universal Post Type Support – Works with every post type WordPress supports, including custom post types from your favorite plugins and themes Complete Data Preservation – Automatically copies all taxonomies, custom fields, metadata, and featured images Bulk Duplication – Select and duplicate multiple posts at once with individual settings per post Multiple Clones – Create multiple copies of a single post simultaneously (up to 50 clones) Flexible Duplication Options – Customize title, slug, status, author, date, post type, and parent for each duplicate Featured Image Management – Set, replace, or remove featured images directly in the duplication modal Smart Defaults – Configure default settings that apply to all duplications (draft status, current user as author) Post Types Configuration – Control which post types can be duplicated and which appear in the “Post Type” dropdown menu Permission Control – Granular control over who can duplicate posts with role-based permissions Modern Interface – Beautiful modal interface with live editing and expandable settings Cross-Post Type Duplication – Convert posts to different post types during duplication Hierarchical Post Support – Set parent posts for pages and hierarchical custom post types One-Click Operation – Duplicate posts from the posts list, edit screen, or block editor toolbar Perfect For: Developers – Quickly generate test content and dummy data for development using bulk or multiple clone features Content Managers – Create content templates and variations efficiently with one-click duplication Bloggers – Repurpose successful posts with different angles or formats using multiple clones E-commerce – Duplicate product variations and bulk duplicate similar listings across categories Content Marketers – Create A/B testing variations with the multiple clones feature Site Migrations – Bulk duplicate posts when restructuring or migrating content Multilingual Sites – Works seamlessly with WPML and Polylang for multilingual content What Gets Duplicated: Post content and formatting Title and slug (with customizable suffixes or full editing) All custom fields and metadata Categories, tags, and custom taxonomies Featured images (with ability to change or remove) Post format and excerpt Comment and ping status Menu order Post parent (for hierarchical post types) What Doesn’t Get Duplicated: Comments (by design – prevents duplicate comment threads) Post ID and GUID (new unique identifiers assigned) How to Use: Single Duplication: Hover over any post and click “Duplicate [Post Type]” in the row actions, or click the “Duplicate Post” button in the Gutenberg editor Multiple Clones: In the duplication modal, click the copy icon to create multiple copies of a single post (up to 50 clones) Bulk Duplication: Select multiple posts using checkboxes, choose “Duplicate” from the Bulk Actions dropdown, then configure each post individually Customize Settings: Edit title, slug, status, author, date, post type, featured image, and parent for each duplicate Configure Defaults: Go to Settings > Post Duplicator to set default status, author, date, and title/slug suffixes Configure Post Types: Go to Settings > Post Duplicator > Post Types to control which post types can be duplicated and which appear in the “Post Type” dropdown menu Default Settings: The plugin works immediately with sensible defaults: * Duplicated posts are created as Drafts (prevents accidental publishing) * Title suffix: “Copy” * Slug suffix: “copy” * Author: Current User * Date: Current Time All defaults can be customized in Settings > Post Duplicator. Integration: Post Duplicator works seamlessly with: * WPML and Polylang (multilingual support) * WooCommerce (excludes review counts automatically) * ACF (Advanced Custom Fields) – preserves all field data * WP Customer Area (special file duplication support) * All custom post types and taxonomies Security: Users without publish_posts capability cannot publish duplicates (forced to Pending) Non-authors cannot duplicate unpublished posts from other users Granular permission system controls who can duplicate posts All data is sanitized and validated before duplication Developer-Friendly: Includes hooks and filters for easy customization: * mtphr_post_duplicator_created action * mtphr_post_duplicator_meta_{$key}_enabled filter * mtphr_post_duplicator_meta_value filter