Title: WAJ Copyright Year
Author: waughjai
Published: <strong>2018年10月25日</strong>
Last modified: 2019年5月7日

---

プラグインを検索

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

![](https://ps.w.org/waj-copyright-year/assets/icon.svg?rev=2010159)

# WAJ Copyright Year

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

[ダウンロード](https://downloads.wordpress.org/plugin/waj-copyright-year.1.0.4.zip)

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

 [サポート](https://wordpress.org/support/plugin/waj-copyright-year/)

## 説明

Adds copyright year or interval o’ years where desired. By default, it just shows
the current year, as specified by the server ( which is hopefully keeping accurate
track o’ time ). Optionally, you can include a start year. If the start year is 
different from the current year, then it will show an interval ‘tween the start 
year & current year.

For instance, if you set the start year to 2015, in 2018 you will get the following:

    ```
    2015 - 2018
    ```

You can also set a custom divider if you want the interval sign to look different.
For instance, if you don’t want the hyphen to have spaces round it, you could set
the divider to “-“, & you will get the following:

    ```
    2015-2018
    ```

### Example

    ```
    <?php

    declare( strict_types = 1 );
    namespace MyTheme\FooterTemplate
    {
        use \WaughJ\CopyrightYear\CopyrightYear;

        ?>
            <footer class="footer">
                <p>Copyright Jaimeson Waugh &copy; <?= new CopyrightYear( 2015, '-' ); ?>.</p>
            </footer>
        <?php
    }
    ```

or

    ```
    [copyright-year start="2015" divider="-"]
    ```

This will print the message, `Copyright Jaimeson Waugh © 2015-2018.`

## インストール

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Copyright year can be directly added to PHP files by creating an instance o’ the\
    WaughJ\CopyrightYear\CopyrightYear class & using it like a string or calling the“
    getText()”. Optional arguments to its constructor are 1st the starting year o’ 
    your website & 2nd the divider you want ‘tween the start year & current year if
    they are different. The defaults for these, respectively, are the current year &
    a hyphen with spaces round it.

You can also add a copyright year to a WordPress document using a shortcode. Add[
copyright-year] to add the current year & [copyright-year start=”%year%” divider
=”%divider%”] with %year% replaced by the starting year & %divider% replaced by 
the divider that appears ‘tween the start & current year if they are different.

## 評価

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

## 貢献者と開発者

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

貢献者

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

[“WAJ Copyright Year” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/waj-copyright-year)

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

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

## 変更履歴

#### 1.0.4

 * Test in WordPress version 5.2.

#### 1.0.3

 * Update dependencies

#### 1.0.2

 * Test in WordPress version 5.1.

#### 1.0.1

 * Test in WordPress version 5.0.
 * Rename main PHP file to be consistent with plugin name.

#### 1.0

 * Initial stable version.

## メタ

 *  バージョン **1.0.4**
 *  最終更新日 **7年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 4.9.8またはそれ以降 **
 *  検証済み最新バージョン: **5.2.29**
 *  PHP バージョン ** 7.0またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/waj-copyright-year/)
 * タグ
 * [auto-update](https://ja.wordpress.org/plugins/tags/auto-update/)[copyright](https://ja.wordpress.org/plugins/tags/copyright/)
   [footer](https://ja.wordpress.org/plugins/tags/footer/)[New Year](https://ja.wordpress.org/plugins/tags/new-year/)
   [year](https://ja.wordpress.org/plugins/tags/year/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/waj-copyright-year/advanced/)

## 評価

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

[Your review](https://wordpress.org/support/plugin/waj-copyright-year/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/waj-copyright-year/reviews/)

## 貢献者

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

## サポート

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

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/waj-copyright-year/)