post_type() public method

Returns the (first) post type of the current request.
Since: 3.0.0
public post_type ( ) : string
return string The (first) post type, or empty string if not applicable.
 /**
  * @param array $args
  * @return array
  */
 private function prepare_translation_arguments(array $args)
 {
     $arguments = wp_parse_args($args, ['site_id' => get_current_blog_id(), 'content_id' => $this->request->queried_object_id(), 'type' => $this->request->type(), 'strict' => true, 'search_term' => get_search_query(), 'post_type' => $this->request->post_type(), 'include_base' => false, 'suppress_filters' => false]);
     /**
      * Filter the translation arguments.
      *
      * @param array $arguments Translation arguments.
      */
     $arguments = apply_filters('mlp_get_translations_arguments', $arguments);
     return $arguments;
 }