original_string: public static function get_date_front( $post_type ) {
  		$structure = CPTP_Util::get_permalink_structure( $post_type );
  
  		$front = '';
  
  		preg_match_all( '/%.+?%/', $structure, $tokens );
  		$tok_index = 1;
  		foreach ( (array) $tokens[0] as $token ) {
  			if ( '%post_id%' === $token && ( $tok_index <= 3 ) ) {
  				$front = '/date';
  				break;
  			}
  			$tok_index ++;
  		}
  
  		return apply_filters( 'CPTP_date_front', $front, $post_type, $structure );
  	}
code: public static function get_date_front( $post_type ) {
  		$structure = CPTP_Util::get_permalink_structure( $post_type );
  
  		$front = '';
  
  		preg_match_all( '/%.+?%/', $structure, $tokens );
  		$tok_index = 1;
  		foreach ( (array) $tokens[0] as $token ) {
  			if ( '%post_id%' === $token && ( $tok_index <= 3 ) ) {
  				$front = '/date';
  				break;
  			}
  			$tok_index ++;
  		}
  
  		return apply_filters( 'CPTP_date_front', $front, $post_type, $structure );
  	}
code_tokens: public static function get_date_front ( $ post_type ) { $ structure = CPTP_Util :: get_permalink_structure ( $ post_type ) ; $ front = '' ; preg_match_all ( '/%.+?%/' , $ structure , $ tokens ) ; $ tok_index = 1 ; foreach ( ( array ) $ tokens [ 0 ] as $ token ) { if ( '%post_id%' === $ token && ( $ tok_index <= 3 ) ) { $ front = '/date' ; break ; } $ tok_index ++ ; } return apply_filters ( 'CPTP_date_front' , $ front , $ post_type , $ structure ) ; }
docstring: Get permalink structure front for date archive.
  
  @since 1.0.0
  
  @param string $post_type post type name.
  
  @return string
docstring_tokens: Get permalink structure front for date archive .