|
/ Documentation /Developer Documentation/Action Hooks/ srfm_register_additional_post_meta

srfm_register_additional_post_meta

Description

This action runs after all post metadata has been set up in the core, letting you add custom metadata that your form may need for storage or processing.

Parameters

None

Hook Source

PHP
/**
* hook source
*/
do_action( ‘srfm_register_additional_post_meta’ );

Hook Usage

PHP
add_action(‘srfm_register_additional_post_meta’, 'your_custom_function', 10, 0);

function your_custom_function( $form_id )
{
   //Add code here
}

Hook Example

PHP
add_action(‘srfm_register_additional_post_meta’, your_custom_function, 10, 0);

function your_custom_function( $form_id )
{
register_post_meta (
     POSTTYPE,
     ‘_meta_tag’,
[
        Single => true,

 //Add code here
]
)
}
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