gambitph / Titan-Framework

The easiest to use WordPress option framework.
http://www.titanframework.net
377 stars 137 forks source link

Action 'tf_setting_[$setting]_changed_[$namespace]' never called? #377

Closed ktmn closed 7 years ago

ktmn commented 7 years ago

class-titan-framework.php#L731

/**
 * Sets a value in the $setting class variable
 *
 * @since 1.6
 *
 * @param string $setting The name of the setting.
 * @param string $value The value to set.
 *
 * @return void
 */
public function set( $setting, $value ) {
    $oldValue = $this->settings[ $setting ];
    $this->settings[ $setting ] = $value;
    do_action( 'tf_setting_' . $setting . '_changed_' . $this->optionNamespace, $value, $oldValue );
}

Is this function ever called anywhere? I can't seem to find any places, nor can I hook into that action.

I am working with only admin options though, so is it just metabox/customizer related?

Searching for ->set( in the lib directory doesn't yield any results, is there any other syntax this function could be called with?

ktmn commented 7 years ago

Using this one instead: class-option.php#L231