block_value()

Description

The block_value() function is a helper function that returns the value of a field without any output. It is essentially the same as block_field( $name, false );.

block_value( $name );

Parameters

  • $name (string) (Required) The field name

Usage

In this example, return the value of a field for further use.

$fee = block_value( 'adoption-fee' );