Plugin Directory

Changeset 1574584


Ignore:
Timestamp:
01/14/2017 11:51:54 AM (9 years ago)
Author:
omnileads
Message:

Update and bug fix for WordPress 4.7 and up and tested on version 4.7.1 Plug-in has been updated to use the new way to register settings.

Location:
tawkto-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tawkto-manager/trunk/readme.txt

    r1563816 r1574584  
    33Tags: tawkto,Chat Widget,live chat,plugin
    44Requires at least: 2.9
    5 Tested up to: 4.7
    6 Stable tag: 2.0.4
     5Tested up to: 4.7.1
     6Stable tag: 2.0.5
    77
    88Tawk.To Manager adds visibility control for tawk.to chat with a shortcode (posts/pages/front page) and more options to hide & show.
     
    5555
    5656== Changelog ==
     57= 2.0.5 =
     58* Update to fix bug with WordPress 4.7 and higher.
     59
    5760= 2.0.4 =
    5861* Mayor update to plugin code and added visibility option to hide the chat window for user with the role subsciber. Code overhaul to take up less memery and faster load times.
  • tawkto-manager/trunk/tawktomanager.php

    r1421956 r1574584  
    77Description: Tawk.To Manager enables extensive visibility control for tawk.to chat with a shortcode for post and pages and extra display options for the front page, category and tag pages and for administrators and subscribers.
    88Author: Daniël Mulder
    9 Version: 2.0.4
     9Version: 2.0.5
    1010Author URI: http://www.omnileads.nl/daniel-mulder-all-star/
    1111*/
     
    5050        protected static function __register_settings(){
    5151            /** register wp settings */
    52             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_tawktoscript' ) );
    53             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_show_always' ) );
    54             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_show_front_page' ) );
    55             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_show_cat_pages' ) );
    56             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_show_tag_pages' ) );
    57             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_hide_admin' ) );
    58             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_hide_subscribers' ) );
    59             register_setting( 'ttm_tawkto_manager_plugin_options', array(__CLASS__, 'ttm_hide_not_subscriber' ) );
     52            $args = array('show_in_rest'=> '','type' =>'string','default' =>'',);
     53            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_tawktoscript', $args );
     54            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_show_always', $args );
     55            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_show_front_page', $args );
     56            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_show_cat_pages', $args );
     57            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_show_tag_pages', $args );
     58            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_hide_admin', $args );
     59            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_hide_subscribers', $args );
     60            register_setting( 'ttm_tawkto_manager_plugin_options', 'ttm_hide_not_subscriber', $args );
    6061        }
    6162       
Note: See TracChangeset for help on using the changeset viewer.