Plugin Directory

Changeset 1706540


Ignore:
Timestamp:
08/01/2017 08:58:52 PM (9 years ago)
Author:
roblesterjr
Message:

Added filters to dial applet and applet class

Location:
wp-vbx-lite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-vbx-lite/trunk/applets/dial.php

    r1620997 r1706540  
    107107                }
    108108           
    109             $dial_stack = array_unique($dial_stack);
     109            $dial_stack = apply_filters('wp-vbx-dial-numbers', array_unique($dial_stack), $this);
     110            $opts = apply_filters('wp-vbx-dial-twiml-arguments', array('action'=>$this->action), $this);
    110111           
    111             $dial = $this->twiml->Dial(array('action'=>$this->action));
     112            $dial = $this->twiml->Dial($opts);
    112113            foreach($dial_stack as $n) {
    113114                $dial->Number($n);
  • wp-vbx-lite/trunk/includes/WP_VBX_Applet.php

    r1620997 r1706540  
    299299     */
    300300    final public function value($field) {
    301         $value = isset($this->instance[$field]) ? $this->instance[$field] : '';
     301        $value = apply_filters('wp-vbx-applet-value', isset($this->instance[$field]) ? $this->instance[$field] : '', $field);
    302302        return $value;
    303303    }
     
    399399     */
    400400    final public function request($key) {
    401         if (isset($this->request[$key])) return $this->request[$key];
     401        if (isset($this->request[$key])) return apply_filters('wp-vbx-applet-request', $this->request[$key], $key);
    402402        return false;
    403403    }
  • wp-vbx-lite/trunk/readme.txt

    r1625012 r1706540  
    5454== Changelog ==
    5555
     56=== Version 1.2.1 ===
     57Added more action and filter hooks.
     58
    5659=== Version 1.2 ===
    5760Updated notices for number admin screen. Added more videos to Get Started page.
  • wp-vbx-lite/trunk/wp-vbx.php

    r1625012 r1706540  
    55Plugin URI: https://roblesterjr.com/wp-vbx
    66Description: Wordpress VBX - Powered by Twilio. Provides an internet based phone system managed right from your wordpress site.
    7 Version: 1.2
     7Version: 1.2.1
    88Author: Robert Lester
    99Author URI: https://roblesterjr.com
Note: See TracChangeset for help on using the changeset viewer.