Title: NW Company Profile
Author: nakweb
Published: <strong>جويي 29, 2020</strong>
Last modified: جوان 20, 2023

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/nw-company-profile/assets/icon.svg?rev=2348101)

# NW Company Profile

 By [nakweb](https://profiles.wordpress.org/nakweb/)

[Download](https://downloads.wordpress.org/plugin/nw-company-profile.1.0.2.zip)

 * [Details](https://arq.wordpress.org/plugins/nw-company-profile/#description)
 * [Reviews](https://arq.wordpress.org/plugins/nw-company-profile/#reviews)
 *  [Installation](https://arq.wordpress.org/plugins/nw-company-profile/#installation)
 * [Development](https://arq.wordpress.org/plugins/nw-company-profile/#developers)

 [Support](https://wordpress.org/support/plugin/nw-company-profile/)

## Description

NW Company Profile はウェブサイト内で汎用的に利用する基本情報を管理できるプラグイン
です。

#### How to get options ?

**IDを指定して設定値を取得する**

    ```
    NWPF::get('sample01')
    ```

**IDを指定してラベルを取得する**

    ```
    NWPF::get_label('sample01')
    ```

**IDを指定してラベルと設定値の配列を取得する**

    ```
    NWPF::gets('sample01')
    ```

**すべてのオプションのラベルと設定値の連想配列を取得する**

※設定値が空のオプションは取得しません。

    ```
    NWPF::gets()
    ```

**パラメータを設定して複数のオプションのラベルと設定値の連想配列を取得する**

※設定値が空のオプションは取得しません。

    ```
    NWPF::gets( array( 'key' => array( 'sample01', 'sample02'), 'exclude' => false )
    ```

 * key – 配列にて複数のスラッグを指定します。[exclude]パラメータの真偽値に従って
   取得する配列が異なります。（初期値：NULL）
 * exclude – trueを指定すると[key]パラメータに含まれるスラッグを取得対象から除外
   します。（初期値：false）

**グループを指定してラベルと複数のオプションのラベルと設定値の連想配列を取得する**

    ```
    NWPF::get_group('group_name')
    ```

**住所情報を連結して出力する**

※設定値が空のオプションは取得しません。

    ```
    NWPF::get_address()
    ```

任意の位置に範克スペースを挿入する場合は引数を指定します。

    ```
    NWPF::get_address('sp1' => false, 'sp2' => true, 'sp3' => true)
    ```

 * sp1 – “zip”に設定値がある場合、その直後に半角スペースを挿入します。（初期値：
   true）
 * sp2 – “address1″に設定値がある場合、その直前に半角スペースを挿入します。（初期
   値：false）
 * sp3 – “address2″に設定値がある場合、その直前に半角スペースを挿入します。（初期
   値：false）

#### How to output options ?

**配列の出力**

    ```
    $option = NWPF::gets('sample01');
    echo 'Label : ` . $option[0] . '<br />' . 'Value : ' . $option[1];
    ```

**連想配列の出力**

    ```
    $options = NWPF::gets();
    foreach( $options as $option ) :
        echo 'Label : ` . $option[0] . '<br />' . 'Value : ' . $option[1];
    endforeach;
    ```

**本プラグインに定められた形式でＨＴＭＬを出力する**

    ```
    NWPF::display()
    ```

 * key – 配列にて複数のスラッグを指定します。[exclude]パラメータの真偽値に従って
   取得する配列が異なります。（初期値：NULL）
 * exclude – trueを指定すると[key]パラメータに含まれるスラッグを取得対象から除外
   します。（初期値：false）
 * address_label – 連結された住所情報が出力される場合、その項目のラベルを指定でき
   ます。（初期値：’所在地’）
 * sp1 – “zip”に設定値がある場合、その直後に半角スペースを挿入します。（初期値：
   true）
 * sp2 – “address1″に設定値がある場合、その直前に半角スペースを挿入します。（初期
   値：false）
 * sp3 – “address2″に設定値がある場合、その直前に半角スペースを挿入します。（初期
   値：false）
 * NW系プラグインについて
    - 本プラグイン以外にもNW系として複数のプラグインを作成しています。
    - すべてのNW系プラグインの設定画面は同一のトップレベルメニューのサブメニュー
      として追加されます。
    - トップレベルメニューのラベルはプラグイン上で変更が可能です。

## Installation

 1. From the WP admin panel, click “Plugins” -> “Add new”.
 2. In the browser input box, type “NW Company Profile”.
 3. Select the “NW Company Profile” plugin and click “Install”.
 4. Activate the plugin.

OR…

 1. Download the plugin from this page.
 2. Save the .zip file to a location on your computer.
 3. Open the WP admin panel, and click “Plugins” -> “Add new”.
 4. Click “upload”.. then browse to the .zip file downloaded from this page.
 5. Click “Install”.. and then “Activate plugin”.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“NW Company Profile” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “NW Company Profile” into your language.](https://translate.wordpress.org/projects/wp-plugins/nw-company-profile)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/nw-company-profile/),
check out the [SVN repository](https://plugins.svn.wordpress.org/nw-company-profile/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/nw-company-profile/)
by [RSS](https://plugins.trac.wordpress.org/log/nw-company-profile/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2

 * 軽微修正

#### 1.0.1

 * PHP 8.0 対応

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.2**
 *  Last updated **3 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.9.13 or higher **
 *  Tested up to **5.4.24**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/nw-company-profile/)
 * Tags
 * [BASIC](https://arq.wordpress.org/plugins/tags/basic/)[company](https://arq.wordpress.org/plugins/tags/company/)
   [information](https://arq.wordpress.org/plugins/tags/information/)[nakweb](https://arq.wordpress.org/plugins/tags/nakweb/)
   [profile](https://arq.wordpress.org/plugins/tags/profile/)
 *  [Advanced View](https://arq.wordpress.org/plugins/nw-company-profile/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/nw-company-profile/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/nw-company-profile/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/nw-company-profile/)