# firebox/3.1.14/Inc/Core/Analytics/Helpers/Campaigns.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version 3.1.14. 44 lines.

- Page: https://pluginprobe.com/plugins/firebox/3.1.14/code/Inc/Core/Analytics/Helpers/Campaigns.php
- Raw: https://pluginprobe.com/plugins/firebox/3.1.14/raw/Inc/Core/Analytics/Helpers/Campaigns.php
- Modified: 2026-10-02T13:37:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/3.1.14/code/Inc/Core/Analytics/Helpers/Campaigns.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         3.1.14 Free
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2026 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

namespace FireBox\Core\Analytics\Helpers;

if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly.
}

class Campaigns
{
	/**
	 * Gets recents X campaigns.
	 * 
	 * @param   int    $limit
	 * 
	 * @return  \WP_Query
	 */
	public static function getRecentCampaignsList($limit = -1)
	{
		$args_published = [
			'post_type'      => 'firebox',
			'posts_per_page' => $limit,
			'post_status'    => ['publish', 'draft'],
			'orderby'        => 'post_modified',
			'order'          => 'DESC'
		];
		
		$query = new \WP_Query($args_published);
		
		wp_reset_postdata();
		
		return $query;
	}
}
```
