Field::save_cb()

Description #

Call save callback.

This will call save callback with two parameter value and current field object.

Changelog #

VersionDescription
4.1.8Introduced.

Source #

File: lib/form/class-field.php

642
643
644
645
646
public function save_cb() {
    if ( ! empty( $this->args['save'] ) && is_callable( $this->args['save'] ) ) {
        return call_user_func( $this->args['save'], $this->value(), $this );
    }
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment