| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/pwan.uk/wwwroot - Copy (2)/wp-content/plugins/popup-maker/classes/ |
Upload File : |
<?php
/**
* Popups class
*
* @package PUM
* @copyright Copyright (c) 2023, Code Atlantic LLC
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class Post_Types
*/
class PUM_Popups {
/**
* Hook the initialize method to the WP init action.
*/
public static function init() {
}
/**
* @deprecated 1.8.0
* @remove 1.9.0
*
* @return \WP_Query
*/
public static function get_all() {
static $query;
if ( ! isset( $query ) ) {
$query = self::query();
}
return $query;
}
/**
* @deprecated 1.8.0
* @remove 1.9.0
*
* @return \WP_Query
*/
public static function query( $args = [] ) {
$args = wp_parse_args(
$args,
[
'post_type' => 'popup',
'posts_per_page' => - 1,
]
);
return new WP_Query( $args );
}
}