How Can We Help?
Freelancer Registration Form Hook
1. ps_fm_render_{form_name}_form_frontend_before_fields
Execute this hook in frontend registration form before first field
<?php
add_action(‘ ps_fm_render_registration_form_frontend_before_fields ‘, ‘{my_function_name}’, 10, 3 );
function my_function_name( $form, $user_id, $readonly ) {
// Do whatever you want here
}
2. ps_fm_render_{form_name}_form_frontend_after_fields
Execute this hook in frontend registration form after last field
<?php
add_action(‘ ps_fm_render_registration_form_frontend_after_fields ‘, ‘{my_function_name}’, 10, 3 );
function my_function_name( $form, $user_id, $readonly ) {
// Do whatever you want here
}
3. ps_fm_before_{form_name}_form_save_action_frontend
Execute this hook in frontend registration form before save action
<?php
add_action(‘ ps_fm_before_registration_form_save_action_frontend ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
4. ps_fm_after_{form_name}_form_save_action
Execute this hook in frontend registration form after save action
<?php
add_action(‘ ps_fm_after_registration_form_save_action ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
5. ps_fm_after_{form_name}_form_save_admin_action
Execute this hook in admin side after form save action
<?php
add_action(‘ ps_fm_after_registration_form_save_admin_action ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
6. ps_fm_before_{form_name}_form_error_check_action_frontend
Execute this hook in frontend registration form before error check action
<?php
add_action(‘ ps_fm_before_registration_form_error_check_action_frontend ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
Customer Registration Form Hook
1. ps_fm_render_{form_name}_form_frontend_before_fields
Execute this hook in frontend registration form before first field
<?php
add_action(‘ ps_fm_render_customer_registration_form_frontend_before_fields’, ‘{my_function_name}’, 10, 3 );
function my_function_name( $form, $user_id, $readonly ) {
// Do whatever you want here
}
2. ps_fm_render_{form_name}_form_frontend_after_fields
Execute this hook in frontend registration form after last field
<?php
add_action(‘ ps_fm_render_customer_registration_form_frontend_after_fields’, ‘{my_function_name}’, 10, 3 );
function my_function_name( $form, $user_id, $readonly ) {
// Do whatever you want here
}
3. ps_fm_before_{form_name}_form_save_action_frontend
Execute this hook in frontend registration form before save action
<?php
add_action(‘ ps_fm_before_customer_registration_form_save_action_frontend’, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
4. ps_fm_after_{form_name}_form_save_action
Execute this hook in frontend registration form after save action
<?php
add_action(‘ ps_fm_after_customer_registration_form_save_action ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
5. ps_fm_after_{form_name}_form_save_admin_action
Execute this hook in admin form after save action
<?php
add_action(‘ ps_fm_after_customer_registration_form_save_admin_action ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
6. ps_fm_before_{form_name}_form_error_check_action_frontend
Execute this hook in frontend registration form before error check action
<?php
add_action(‘ps_fm_before_customer_registration_form_error_check_action_frontend ‘, ‘{my_function_name}’, 10, 4 );
function my_function_name( $output, $save_id, $values, $user_id ) {
// Do whatever you want here
}
Action Hook Field
1. {hookname}
Execute this hook in frontend registration form -{hookname} example hook as shown in above screenshot
<?php
add_action(‘{hookname}’, ‘{my_function_name}’, 10, 3 );
// first param: Form Object
// second param: Save ID of post/user/custom
// third param: Field Object
function my_function_name( $form, $save_id, $field ) {
// Do whatever you want here
}
2. {hookname}_save_admin
Execute this hook in admin form after save action
<?php
add_action(‘{hookname}_save_admin’, ‘{my_function_name}’, 10, 3 );
function my_function_name($save_id, $value, $user_id, $field ) {
// Do whatever you want here
}
3. {hookname}_save_frontend
Execute this hook in frontend form after save action
<?php
add_action(‘{hookname}_save_frontend, ‘{my_function_name}’, 10, 3 );
function my_function_name($save_id, $value, $user_id, $field ) {
// Do whatever you want here