esc_html__( 'Callback', 'your-textdomain-here' ), 'id' => 'additional-callback', 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . 'https://devs.redux.io/configuration/fields/data.html#using-a-custom-callback', 'subsection' => true, 'fields' => array( array( 'id' => 'opt-custom-callback', 'type' => 'callback', 'title' => esc_html__( 'Custom Field Callback', 'your-textdomain-here' ), 'subtitle' => esc_html__( 'This is a completely unique field type', 'your-textdomain-here' ), 'desc' => esc_html__( 'This is created with a callback function, so anything goes in this field. Make sure to define the function though.', 'your-textdomain-here' ), 'callback' => 'redux_my_custom_field', ), ), ) ); if ( ! function_exists( 'redux_my_custom_field' ) ) { /** * Custom function for the callback referenced above. * * @param array $field Field array. * @param mixed $value Set value. */ function redux_my_custom_field( array $field, $value ) { print_r( $field ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions echo '
'; print_r( $value ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions } }