- srfm_enable_redirect_activation
- sureforms_plugin_action_links
- srfm_quick_sidebar_allowed_blocks
- srfm_integrated_plugins
- srfm_suretriggers_integration_data_filter
- srfm_form_submit_response
- srfm_enable_gutenberg_post_types
- srfm_languages_directory
- srfm_form_template
- srfm_disable_nps_survey
- srfm_after_submit_confirmation_message
- srfm_email_notification_should_send
- srfm_email_notification
srfm_languages_directory
The ‘srfm_languages_directory‘ is a filter hook that lets you change the path to the languages directory used by SureForms. You can use this to set a custom location for your plugin’s language files.
Parameters:
- $lang_dir (string) – The path to the languages directory.
If you have any doubts regarding this filter, feel free to contact us. We’re always here to assist you.
Filter Source:
/**
* filter source
*/
apply_filters( ‘srfm_languages_directory’, $lang_dir );
Filter Usage:
add_filter(‘srfm_languages_directory’, 'your_custom_function', 10, 1);
function your_custom_function( $lang_dir )
{
//Add code here
return $lang_dir;
}
Filter Example:
add_filter(‘srfm_languages_directory’, your_custom_function, 10, 1);
function your_custom_function( $lang_dir )
{
if ( empty( $lang_dir ) ) {
return $lang_dir;
}
//Add code here
return $lang_dir
}
Was this doc helpful?
What went wrong?
We don't respond to the article feedback, we use it to improve our support content.
On this page