Title: Post Author IP
Author: Scott Reilly
Published: <strong>2018년 2월 15일</strong>
Last modified: 2021년 6월 10일

---

플러그인 검색

![](https://ps.w.org/post-author-ip/assets/banner-772x250.png?rev=1822507)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/post-author-ip/assets/icon-128x128.png?rev=1822507)

# Post Author IP

 작성자: [Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[다운로드](https://downloads.wordpress.org/plugin/post-author-ip.1.4.zip)

 * [세부사항](https://ko.wordpress.org/plugins/post-author-ip/#description)
 * [평가](https://ko.wordpress.org/plugins/post-author-ip/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/post-author-ip/#installation)
 * [개발](https://ko.wordpress.org/plugins/post-author-ip/#developers)

 [지원](https://wordpress.org/support/plugin/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](https://coffee2code.com/wp-plugins/post-author-ip/) | [Plugin Directory Page](https://wordpress.org/plugins/post-author-ip/)
| [GitHub](https://github.com/coffee2code/post-author-ip/) | [Author Homepage](https://coffee2code.com)

### 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 );
    ```

## 스크린샷

[⌊A screenshot of the admin post listing showing the added "Author IP" column. It
demonstrates the mix of a post where the post author IP address was recorded, and
posts where it wasn't (due to the plugin not being activated at the time).⌉⌊A screenshot
of the admin post listing showing the added "Author IP" column. It demonstrates 
the mix of a post where the post author IP address was recorded, and posts where
it wasn't (due to the plugin not being activated at the time).⌉[

A screenshot of the admin post listing showing the added “Author IP” column. It 
demonstrates the mix of a post where the post author IP address was recorded, and
posts where it wasn’t (due to the plugin not being activated at the time).

[⌊A screenshot of the Publish metabox for a post showing the post author's IP address(
for versions of WordPress older than 5.0, or later if the new block editor aka Gutenberg
is disabled)⌉⌊A screenshot of the Publish metabox for a post showing the post author's
IP address (for versions of WordPress older than 5.0, or later if the new block 
editor aka Gutenberg is disabled)⌉[

A screenshot of the Publish metabox for a post showing the post author’s IP address(
for versions of WordPress older than 5.0, or later if the new block editor aka Gutenberg
is disabled)

[⌊A screenshot of the block editor sidebar panel for a post showing the post author
IP address (WP 5.0 and later)⌉⌊A screenshot of the block editor sidebar panel for
a post showing the post author IP address (WP 5.0 and later)⌉[

A screenshot of the block editor sidebar panel for a post showing the post author
IP address (WP 5.0 and later)

## 설치

 1. Install via the built-in WordPress plugin installer. Or download and unzip `post-
    author-ip.zip` inside the plugins directory for your site (typically `wp-content/
    plugins/`)
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress

## FAQ

### If a post is originally drafted at one IP address, then later worked on at another IP address, which IP address gets recorded?

The IP address in use at the time that the post is first saved (regardless of whether
the post was saved as a draft, immediately published, or some other status) will
be recorded.

### Are other IP addresses in use during the post’s handling (such as when it is edited, published, etc) also tracked?

No, this plugin only records the IP address in use when the post was first saved.

### How do I see (or hide) the “Author IP” column in an admin listing of posts?

In the upper-right of the page is a “Screen Options” link that reveals a panel of
options. In the “Columns” section, check (to show) or uncheck (to hide) the “Author
IP” option.

### Is this plugin compatible with the new block editor (aka Gutenberg)?

Yes. This plugin is compatible with the block editor as well as the classic editor.

### Is this plugin GDPR-compliant?

Yes. The IP address stored for authors on the posts they created will be exported
on data export requests and deleted for data erasure requests.

### Does this plugin include unit tests?

Yes.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Post Author IP”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

“Post Author IP”(이)가 2 개 언어로 번역되었습니다. 기여해 주셔서 [번역자](https://translate.wordpress.org/projects/wp-plugins/post-author-ip/contributors)
님께 감사드립니다.

[자국어로 “Post Author IP”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/post-author-ip)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/post-author-ip/)는, [SVN 저장소](https://plugins.svn.wordpress.org/post-author-ip/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/post-author-ip/)
을 [RSS](https://plugins.trac.wordpress.org/log/post-author-ip/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.4 (2021-06-09)

Highlights:

This recommended release adds GDPR compliance for data export and erasure, modernizes
block editor implementation, restructures unit test files, and notes compatibility
through WP 5.7.

Details:

 * New: Add GDPR compliance for data export and erasure
    - New: Add `register_privacy_erasers()` and `remove_ip_address_from_posts_by_email()`
      for handling data erasure requests
    - New: Add `register_data_exporter()` and `export_user_data_by_email()` for 
      handling data export requests
    - New: Add `add_privacy_policy_content()` for outputting suggested privacy policy
      snippet
    - New: Add FAQ entry denoting GDPR compliance
 * Change: Modernize block editor implementation and update JS dependencies
 * Change: Remove check for theme support of HTML5 since that isn’t relevant to 
   admin
 * Change: Enable script translations
 * Change: Note compatibility through WP 5.7+
 * Change: Update copyright date (2021)
 * Unit tests:
    - Change: Restructure unit test directories and files into `tests/` top-level
      directory
    - Change: Remove ‘test-‘ prefix from unit test files
    - Change: In bootstrap, store path to plugin file constant
    - Change: Rename `phpunit.xml` to `phpunit.xml.dist` per best practices
 * New: Add a few more possible TODO items

#### 1.3 (2020-08-06)

Highlights:

This recommended release adds support for all public post types, reduces column 
width, improves meta key handling, expands unit testing, adds a TODO.md file, updates
compatibility to be WP 4.9 through 5.4+, and more internally.

Details:

 * New: Enable plugin functionality for all public post types by default
    - New: Add `get_post_types()` for retrieving post types
    - New: Add filter `c2c_stealth_publish_post_types` to filter post types
 * New: Add `is_protected_meta()` to protect the meta key from being exposed as 
   a custom field
 * New: Improve configurability and accessibility of meta key name
    - New: Add `get_meta_key_name()` as getter for meta_key name
    - New: Add filter `c2c_post_author_ip_meta_key` for customizing meta key name
 * New: Add `rest_pre_insert()` to add meta key as first-class object property prior
   to REST-initiated update
 * New: Add HTML5 compliance by omitting `type` attribute for `style` tag when the
   theme supports ‘html5’
 * New: Add TODO.md for newly added potential TODO items
 * Change: Reduce width of ‘Author IP’ column
 * Change: Remove duplicate hook registration
 * Change: Note compatibility through WP 5.4+
 * Change: Drop compatibility for version of WP older than 4.9
 * Change: Update JS dependencies
 * Change: Tweak formatting of CSS styles
 * Change: Update links to coffee2code.com to be HTTPS
 * Unit tests:
    - New: Add tests for `add_admin_css()`, `admin_css()`, `add_post_column()`, `
      enqueue_block_editor_assets()`, `handle_column_data()`
    - New: Add tests for `include_column()`, `register_meta()`, `show_post_author_ip()`,`
      transition_post_status()`
    - New: Add test for default hooks
    - Change: Use `get_meta_key_name()` to set default meta key used by tests
    - Change: Remove unnecessary unregistering of hooks in `tearDown()`
    - Change: Use HTTPS for link to WP SVN repository in bin script for configuring
      unit tests

#### 1.2.1 (2020-01-06)

 * New: Unit tests: Add test to verify plugin hooks `plugins_loaded` action to initialize
   itself
 * Change: Note compatibility through WP 5.3+
 * Change: Update JS dependencies
 * Change: Update copyright date (2020)

_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/post-author-ip/blob/master/CHANGELOG.md)._

## 기초

 *  버전 **1.4**
 *  최근 업데이트: **5년 전**
 *  활성화된 설치 **70+**
 *  워드프레스 버전 ** 4.9 또는 그 이상 **
 *  다음까지 시험됨: **5.7.15**
 *  언어
 * [English (US)](https://wordpress.org/plugins/post-author-ip/), [Spanish (Spain)](https://es.wordpress.org/plugins/post-author-ip/),
   그리고 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/post-author-ip/).
 *  [자국어로 번역하기](https://translate.wordpress.org/projects/wp-plugins/post-author-ip)
 * 태그:
 * [audit](https://ko.wordpress.org/plugins/tags/audit/)[author](https://ko.wordpress.org/plugins/tags/author/)
   [ip](https://ko.wordpress.org/plugins/tags/ip/)[ip address](https://ko.wordpress.org/plugins/tags/ip-address/)
   [post](https://ko.wordpress.org/plugins/tags/post/)
 *  [고급 보기](https://ko.wordpress.org/plugins/post-author-ip/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/post-author-ip/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/post-author-ip/reviews/)

## 기여자

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/post-author-ip/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)