Server IP : 172.67.216.182 / Your IP : 172.70.143.3 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/audiomatrix.in/wp-content/plugins/popup-maker/includes/functions/popups/ |
Upload File : |
<?php /** * Functions for Popup Queries * * @package PUM * @copyright Copyright (c) 2023, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Get a popup model instance. * * @param int $popup_id * * @return PUM_Model_Popup */ function pum_get_popup( $popup_id = null ) { if ( ( is_null( $popup_id ) || 0 === $popup_id ) && pum_is_popup( pum()->current_popup ) ) { return pum()->current_popup; } /** @var int $popup_id filtered $popup_id */ $popup_id = pum_get_popup_id( $popup_id ); try { return pum()->popups->get_item( $popup_id ); } catch ( InvalidArgumentException $e ) { // Return empty object return new PUM_Model_Popup( $popup_id ); } } /** * Queries popups and returns them in a specific format. * * @param array $args * * @return PUM_Model_Popup[] */ function pum_get_popups( $args = [] ) { return pum()->popups->get_items( $args ); } /** * Queries popups and returns them in a specific format. * * @param array $args * * @return PUM_Model_Popup[] */ function pum_get_all_popups( $args = [] ) { $args['posts_per_page'] = -1; return pum_get_popups( $args ); } /** * Gets a count popups with specified args. * * @param array $args * * @return int */ function pum_count_popups( $args = [] ) { $args = wp_parse_args( $args, [ 'post_status' => 'publish', ] ); return pum()->popups->count_items( $args ); }