Title: WP247 Extension Notification Server
Author: wescleveland
Published: <strong>2017年12月12日</strong>
Last modified: 2017年12月14日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/wp247-extension-notification-server.
svg)

# WP247 Extension Notification Server

 作者: [wescleveland](https://profiles.wordpress.org/wescleveland/)

[ダウンロード](https://downloads.wordpress.org/plugin/wp247-extension-notification-server.1.0.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/wp247-extension-notification-server/#description)
 * [レビュー](https://ja.wordpress.org/plugins/wp247-extension-notification-server/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/wp247-extension-notification-server/#installation)
 * [開発](https://ja.wordpress.org/plugins/wp247-extension-notification-server/#developers)

 [サポート](https://wordpress.org/support/plugin/wp247-extension-notification-server/)

## 説明

#### OVERVIEW

The strength of WordPress is in it’s ability to be customized through the use of
extensions (plugins and themes).

The **WP247 Extension Notification System** provides a standard interface for WordPress
extension developers to communicate important information about their extension 
to their extension users.

The _Settings_ page provides you with complete control over which extensions the**
WP247 Extension Notification System** will communicate with and which notices will
continue to be displayed.

#### NOTICES

The **WP247 Extension Notification System** will display notices until they are 
dismissed. The extension developer assigns one of three dismissibility types to 
each notice they send:

 * **None** indicates that the notice is not dismissible. The _dismiss_ button will
   not appear.
 * **Temporary** indicates that the notice will be temporarily dismissed when you
   click the _dismiss_ button. Once dismissed, the notice will not appear until 
   the next time the Admin page is refreshed.
 * **Permanent** indicates that the notice will be permanently dismissed when you
   click the _dismiss_ button. Once dismissed, the notice will not appear again.

Regardless of the dimissibility setting chosen by the extension developer, you can
permanently dismiss any notice by clicking the _Permanently Dismiss_ link at the
lower right of the notice or by checking the checkbox next to the notice title in
the **WP247 Extension Notification System**‘s _Settings_ section.

#### SETTINGS

The **WP247 Extension Notification Server** Settings page is where you tell the **
WP247 Extension Notification Server** about your extension and notices.

**Extension**

The _Extension_ section is where you identify your extension. This information will
also be used in your extension’s code (see the API help topic for more information)
when polled by the **WP247 Extension Notification Client** plugin to see which extensions
are participating in Extension Notifications. The _Extension_ settings are:

 * _Extension Name_: The name your extension is known as.
 * _Extension Id_: The slug used by your extension. This should match the directory
   name your extension get installed into.
 * _Extension Type_: The type of extention (Plugin or Theme).
 * _Server URL_: The URL that will respond to the **WP247 Extension Notification
   Client** plugin’s notice update inquiries.
 * _Frequency_: How often should the **WP247 Extension Notification Client** plugin’s
   inquire about new notice updates.

**Notice**

The _Notice_ section is where you compose the notification message that is to be
distributed to your extension’s users. The _Notice_ settings are:

 * _Status_ indicates whether or not the notice should currently be distributed 
   when the **WP247 Extension Notification Client** plugin inquires about any notice
   updates.
 * _Notice Title_: The title of your notice. This will appear on the first line 
   when the notice is displayed.
 * _Notice Type_: The type of notice. This will determine where the notice appears
   and what color the side border will be.
 * _Dismissability_: Whether or not the notice is dismissible and if so, temporarily
   or permanently. Regardless of this setting, the WP247 Extension Notification 
   Client plugin will allow the client site to permanently dismiss any notice.
 * _Duration_: Identifies how long should this notice be displayed to the client.
 * _Notice Content_: The message you desire to send.

=API=

In order to use the **WP247 Extension Notification System** you must first configure
your extension information. This will then be used in your extension to tell the**
WP247 Extension Notification System** that your extension is participting in extension
notifications.

You will then need to modify your extension so that it reaponds to the _wp247xns\
_client\_extension\_poll_ filter.

First, you must modify your extension to tell WordPress that you are responding 
to the _wp247xns\_client\_extension\_poll_ filter:

    ```
    add_filter( "wp247xns_client_extension_poll_{extension_type}_{extension_id}", "my_routine" );
    ```

Then you must create a function in your extension to respond to the filter:

    ```
    function my_routine( $extensions ) {
       return array(
                 "name"        => "Your Extension name",
                 "id"          => "your-extension-id",
                 "type"        => "plugin",
                 "version"     => "",          // your extension's version number (not required)
                 "server_url"  => "http://your-extension-wordpress-url/wp-admin/admin-ajax.php",
                 "frequency"   => "1 day",     // (not required) defaults to "1 day"
              );
    }
    ```

That’s it. The **WP247 Extension Notification System** will take care of the rest!

#### Co-requisite

One final note. In order for your users to receive your notices, they must have 
installed and activated the **WP247 Extension Notification Client** plugin. You 
may want to prompt your users to install and activate this plugin if it is not active
at the time your extension is loaded. For your convenience, we have provided a standardized
method for accomplishing this.

First, copy the _/wp-content/plugins/wp247-extension-notification-server/admin/wp247xns-
client-corequisite-notice_ folder to your extension’s Admin folder.

Next, modify your extension to instantiate the **WP247XNS_Client_Corequisite_Notice**
class. Something like:

    ```
    require_once 'wp247xns-client-corequisite-notice/wp247xns-client-corequisite-notice.php';
    $my_wp247xns_client_corequisite_notice
        = new WP247XNS_Client_Corequisite_Notice( 'Your extension name' );
    ```

The **WP247XNS_Client_Corequisite_Notice** class constructor takes from one to three
parameters:

    ```
    WP247XNS_Client_Corequisite_Notice(
        $extension_name,
        $nag_frequency = '30 days',
        $text_domain = 'wp247xns-client-corequisite-notice'
    );
    ```

This will result in a notice being displayed to your extension’s users when either
the **WP247 Extension Notification Client** plugin is not activated or your particular
extension is not enabled to participate in the **WP247 Extension Notification System**.
They will be able to dismiss the nottice, but it will be re-displayed after the 
nag frequency has passed.

#### Privacy Policy

Rest assured that the **WP247 Extension Notification System** does not capture any
information about your site and does not send any information about your site when
servers are polled for new notices.

In addition, the **WP247 Extension Notification System** does not capture any information
from the client’s site.

## インストール

In the WordPress backend:

 * Go to Plugins->Add New
 * Search for the plugin ‘**WP247 Extension Notification Server**‘
 * Click the “Install” button
 * Click on “Activate”

That’s it. You’re now ready to build and send extension notification messages.

## FAQ

  Installation Instructions

In the WordPress backend:

 * Go to Plugins->Add New
 * Search for the plugin ‘**WP247 Extension Notification Server**‘
 * Click the “Install” button
 * Click on “Activate”

That’s it. You’re now ready to build and send extension notification messages.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

WP247 Extension Notification Server はオープンソースソフトウェアです。以下の人々
がこのプラグインに貢献しています。

貢献者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

[“WP247 Extension Notification Server” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/wp247-extension-notification-server)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/wp247-extension-notification-server/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/wp247-extension-notification-server/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/wp247-extension-notification-server/)
を [RSS](https://plugins.trac.wordpress.org/log/wp247-extension-notification-server/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.1

Fix Settings API bug

#### 1.0

Initial release

## メタ

 *  バージョン **1.0.1**
 *  最終更新日 **9年前**
 *  有効インストール数 **10未満**
 *  WordPress バージョン ** 4.0またはそれ以降 **
 *  検証済み最新バージョン: **4.9.35**
 *  PHP バージョン ** 5.6.31またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/wp247-extension-notification-server/)
 * タグ
 * [extension](https://ja.wordpress.org/plugins/tags/extension/)[message](https://ja.wordpress.org/plugins/tags/message/)
   [notice](https://ja.wordpress.org/plugins/tags/notice/)[notification](https://ja.wordpress.org/plugins/tags/notification/)
   [theme](https://ja.wordpress.org/plugins/tags/theme/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/wp247-extension-notification-server/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/wp247-extension-notification-server/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/wp247-extension-notification-server/reviews/)

## 貢献者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/wp247-extension-notification-server/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RM26LBV2K6NAU)