Noptin_Popups::get_popups()
Returns a list of all published popup forms
Return Return
(array)
Source Source
File: includes/class-noptin-popups.php
public function get_popups() { $args = array( 'numberposts' => -1, 'fields' => 'ids', 'post_type' => 'noptin-form', 'post_status' => 'publish', 'meta_query' => array( 'relation' => 'OR', array( 'key' => '_noptin_optin_type', 'value' => 'popup', 'compare' => '=', ), array( 'key' => '_noptin_optin_type', 'value' => 'slide_in', 'compare' => '=', ), ), ); return get_posts( $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |