|

srfm_entry_custom_value

Notice: srfm_entry_custom_value Hook Removed

The srfm_entry_custom_value hook has been removed starting from version 2.0.0.
This change was made as part of the migration from PHP-rendered entries to a React + REST-based architecture. Any custom callbacks or functions that relied on this hook will no longer execute.
Please update your implementation to match the new system.

Description

This filter allows you to enable rendering a custom HTML when you enable srfm_entry_render_field_custom_value

Parameters

$string (bool) – * Custom HTML
$value (mixed) – * Field Value

Hook Source

PHP
/**
* hook source
 */
apply_filters( 'srfm_entry_custom_value', '', $value );

Hook Usage

PHP
add_filter( 'srfm_entry_custom_value', 'your_custom_function' )

function your_custom_function( $string, $value ) {
  //Add code here
    return $string;
}

Hook Example

PHP
add_filter( 'srfm_entry_custom_value', 'your_custom_function' )

function your_custom_function( $string, $value ) {
  //Add code here
    return <p>$value</p>;
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top