Plugin Directory

Changeset 2250667


Ignore:
Timestamp:
02/26/2020 12:29:13 PM (6 years ago)
Author:
eatzeni
Message:

release version 0.0.3

Location:
wordloader
Files:
13 added
2 edited

Legend:

Unmodified
Added
Removed
  • wordloader/trunk/readme.txt

    r2240886 r2250667  
    2727== Changelog ==
    2828
     29= 0.0.3 =
     30* Added filter `word-loader-visibility` to fully disable loader in some pages
     31
    2932= 0.0.2 =
    3033* First release
  • wordloader/trunk/word-loader.php

    r2240886 r2250667  
    33 * Plugin Name: WordLoader
    44 * Description: Add a loader that shows words in a random position and order
    5  * Version:     0.0.2
     5 * Version:     0.0.3
    66 * Author:      Enrico Atzeni
    77 * Author URI:  https://enricoatzeni.it
     
    3030    {
    3131        if ($this->canIdo === null) {
    32             $WLOptions = WordLoaderOptions::getInstance();
    33             $wordList = $WLOptions->getOption('word_list', null);
     32            $canShow = apply_filters('word-loader-visibility', true);
    3433
    35             $this->canIdo = !!$wordList;
     34            if (!$canShow) {
     35                $this->canIdo = false;   
     36            } else {
     37                $WLOptions = WordLoaderOptions::getInstance();
     38                $wordList = $WLOptions->getOption('word_list', null);
     39               
     40                $this->canIdo = !!$wordList;
     41            }
    3642        }
    3743
Note: See TracChangeset for help on using the changeset viewer.