init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user