PHP 8.2.31
Preview: Posts.php Size: 485 B
/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/lib/WP/Posts.php

<?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);
  }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
3.28 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
2.72 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
2.13 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
23.56 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
0 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
2.87 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
485 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
1.19 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).