nf_edit_sub_date_submitted

Output our field editing metabox to the CPT editing page.

Description

apply_filters( 'nf_edit_sub_date_submitted', (unknown) $sub_get_sub_date_m_d_y_h_i, (unknown) $post_id ); 

Parameters (2)

0. $sub_get_sub_date_m_d_y_h_i (unknown)
The sub get sub date m d y h i.
1. $post_id (unknown)
The post id.

Usage

To run the hook, copy the example below.
  1. $sub_get_sub_date_m_d_y_h_i = apply_filters( 'nf_edit_sub_date_submitted', $sub_get_sub_date_m_d_y_h_i, $post_id ); 
  2.  
  3. if ( !empty( $sub_get_sub_date_m_d_y_h_i ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the nf_edit_sub_date_submitted callback 
  2. function filter_nf_edit_sub_date_submitted( $sub_get_sub_date_m_d_y_h_i, $post_id ) { 
  3. // make filter magic happen here... 
  4. return $sub_get_sub_date_m_d_y_h_i
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'nf_edit_sub_date_submitted', 'filter_nf_edit_sub_date_submitted', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'nf_edit_sub_date_submitted', 'filter_nf_edit_sub_date_submitted', 10, 2 ); 

Defined (2)

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

/includes/Admin/CPT/Submission.php  
  1. $sub_date = apply_filters( 'nf_edit_sub_date_submitted', $sub->get_sub_date( 'm/d/Y H:i' ), $post->ID ); 
/deprecated/classes/subs-cpt.php  
  1. $date_submitted = apply_filters( 'nf_edit_sub_date_submitted', date( 'M j, Y @ h:i', strtotime( $post->post_date ) ), $post->ID );