Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Model_Popup::get_public_settings()
Returns cleansed public settings for a popup.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Return Return
(array)
Source Source
File: classes/Model/Popup.php
public function get_public_settings() { $settings = wp_parse_args( $this->get_settings(), PUM_Admin_Popups::defaults() ); foreach ( $settings as $key => $value ) { $field = PUM_Admin_Popups::get_field( $key ); if ( false === $field && isset( $value ) ) { // This is a value set programatically, not by a defined field. ex theme_slug. $settings[ $key ] = $value; continue; } if ( $field['private'] ) { unset( $settings[ $key ] ); } elseif ( 'checkbox' === $field['type'] ) { $settings[ $key ] = (bool) $value; } } $settings['id'] = $this->ID; $settings['slug'] = $this->post_name; $filters = array( 'js_only' => true ); if ( $this->has_conditions( $filters ) ) { $settings['conditions'] = $this->get_conditions( $filters ); } return apply_filters( 'pum_popup_get_public_settings', $settings, $this ); }
Expand full source code Collapse full source code View on Trac