File "Posts.php"

Full Path: /home/warrior1/public_html/plugins/mailpoet/lib/WP/Posts.php
File size: 391 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace MailPoet\WP;

if (!defined('ABSPATH')) exit;


use MailPoet\WP\Functions as WPFunctions;

class Posts {
  public static function getTypes($args = [], $output = 'names', $operator = 'and') {
    $defaults = [
      'exclude_from_search' => false,
    ];
    $args = array_merge($defaults, $args);
    return WPFunctions::get()->getPostTypes($args, $output, $operator);
  }
}