Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
plugins
/
mailpoet
/
lib
/
WP
:
Posts.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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); } }