PATH:
home
/
letacommog
/
morandas1
/
wp-content
/
plugins
/
gwolle-gb
/
docs
/
actions
==Description== The <b>"gwolle_gb_notsaved_entry_frontend"</b> action is used to execute a function when an entry is submitted but not saved in the frontend. You can use this action as: <code><?php add_action( 'gwolle_gb_notsaved_entry_frontend', 'action_function_name' ) ?></code> Where 'action_function_name' is the function WordPress should call when the action is being used. '''action_function_name''' should be a unique function name. It cannot match any other function name already declared. ==Examples== function my_gwolle_gb_notsaved_entry_frontend( $entry ) { // $entry is an object. // redirect moderator to the Editor. if ( current_user_can( 'moderate_comments' ) ) { wp_redirect( admin_url('admin.php?page=' . GWOLLE_GB_FOLDER . '/editor.php&entry_id=' . $entry->get_id() ) ); exit; } } add_action( 'gwolle_gb_notsaved_entry_frontend', ' do_action( 'gwolle_gb_save_entry_frontend', $entry ); ' );
[+]
..
[-] gwolle_gb_save_entry_admin.txt
[edit]
[-] gwolle_gb_uninstall.txt
[edit]
[-] gwolle_gb_save_entry_frontend.txt
[edit]
[-] index.html
[edit]
[-] gwolle_gb_notsaved_entry_frontend.txt
[edit]