simcal_save_attach_calendar_meta

The WordPress Core simcal save attach calendar meta hook.

Description

add_action( 'simcal_save_attach_calendar_meta', (string) $simplecalendar_admin_metaboxes_attach_calendar_save, (int) $int, (int) $int ); 

Parameters (3)

0. $simplecalendar_admin_metaboxes_attach_calendar_save (string) => '\SimpleCalendar\Admin\Metaboxes\Attach_Calendar::save'
The simplecalendar admin metaboxes attach calendar save.
1. $int (int) => 10
The int.
2. $int (int) => 2
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'simcal_save_attach_calendar_meta', $simplecalendar_admin_metaboxes_attach_calendar_save, $int, $int ); 
The following example is for adding a hook callback.
  1. // define the simcal_save_attach_calendar_meta callback 
  2. function action_simcal_save_attach_calendar_meta( $simplecalendar_admin_metaboxes_attach_calendar_save, $int, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'simcal_save_attach_calendar_meta', 'action_simcal_save_attach_calendar_meta', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'simcal_save_attach_calendar_meta', 'action_simcal_save_attach_calendar_meta', 10, 3 ); 

Defined (2)

The action is defined in the following location(s).

/includes/admin/meta-boxes.php  
  1. add_action( 'simcal_save_attach_calendar_meta', '\SimpleCalendar\Admin\Metaboxes\Attach_Calendar::save', 10, 2 ); 
  1. do_action( 'simcal_save_attach_calendar_meta', $post_id, $post );