Skip to content

Method

Get the field content.

get_content( )

public

Return

string The field content.

Source

public function get_content() {
    if ( is_callable( $this->content ) ) {
        $content = call_user_func_array( $this->content, array( $this ) );
    } else {
        $content = $this->content;
    }

    /**
     * Filters the form field content.
     *
     * @param string                    $content The field content.
     * @param Theme_My_Login_Form_Field $field   The field object.
     */
    return apply_filters( 'tml_get_form_field_content', $content, $this );
}

Uses

Used by

Changelog

VersionDescription
7.0 Introduced.