Hi;
I'm creating a new (fantastic!) plugin... :)
I have a little problem using do_action and add_action :
I got a function
function classifieds_manage_classified_save_step {
...
///CHECK DATA WITH PHP FILE
do_action('classifieds_manage_step_check_data');
...
}
If false is returned somewhere in that function, my object is not saved.
Somewhere else; I put
//MANAGE|CHECK
add_action( 'classifieds_manage_step_check_data','classifieds_manage_step_settings_check_data');
So; the function classifieds_manage_step_settings_check_data is called where I have do_action('classifieds_manage_step_check_data');.
That function classifieds_manage_step_settings_check_data returns 'true' or 'false'; but how can I "transmit" it to function classifieds_manage_classified_save_step ?
Have I to use arguments somewhere and how ?
Thanks !