Hyakunin Isshu Admin Bar

Hyakunin Isshu Admin Bar Install Statistics

-11
0%
Today: 0 Yesterday: 11 All-time: 852 downloads
Hyakunin Isshu Admin Bar Icon

Try plugin: Hyakunin Isshu Admin Bar

We'll create fresh WordPress site with Hyakunin Isshu Admin Bar installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Hyakunin Isshu Admin Bar

A plugin that randomly displays Hyakunin Isshu in the admin bar.

0


0


0


0


0

updated: 9 months ago
since: 1 year ago

Description

Items

  • Tanka : Hyakunin Isshu
  • Tanka Author
  • Source of Tanka
  • Subject of Tanka

Display

  • Displayed at 60-second intervals.

Data

Filter hooks

/** ==================================================
 * Filter for capability.
 *
 */
add_filter( 'hyakunin_isshu_bar_user_can', function(){ return 'read'; }, 10, 1 );
/** ==================================================
 * Filter for interval.
 *
 */
add_filter( 'hyakunin_isshu_bar_interval_sec', function(){ return 5; }, 10, 1 );
/** ==================================================
 * Filter for Tanka array.
 *
 */
add_filter(
    'hyakunin_isshu_bar_array',
    function() {
        $tanka_arr = array(
            array(
                'tanka' => 'Notice of Drinking Party 1 !',
                'author' => 'Katsushi',
                'source' => 'February 22, 2023, 7:00 p.m. - 9:00 p.m.',
                'subject' => 'Restaurant WP',
            ),
            array(
                'tanka' => 'Notice of Drinking Party 2 !',
                'author' => 'kawamori',
                'source' => 'March 22, 2023, 7:00 p.m. - 9:00 p.m.',
                'subject' => 'Sushi bar WP',
            ),
        );

        return $tanka_arr;
    },
    10,
    1
);
/** ==================================================
 * Filter for Tanka Author title.
 *
 */
add_filter( 'hyakunin_isshu_bar_author_title', function(){ return 'Banquet Director'; }, 10, 1 );
/** ==================================================
 * Filter for Source title.
 *
 */
add_filter( 'hyakunin_isshu_bar_source_title', function(){ return 'Date and Time'; }, 10, 1 );
/** ==================================================
 * Filter for Subject title.
 *
 */
add_filter( 'hyakunin_isshu_bar_subject_title', function(){ return 'Place'; }, 10, 1 );