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