Warning: This method has been deprecated.
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_data_attr()
Returns array for data attribute of this 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|bool)
Source Source
File: classes/Model/Popup.php
public function get_data_attr() { if ( $this->mock ) { return false; } $data_attr = array( 'id' => $this->ID, 'slug' => $this->post_name, 'theme_id' => $this->get_theme_id(), 'cookies' => $this->get_cookies(), 'triggers' => $this->get_triggers(), 'mobile_disabled' => $this->mobile_disabled() ? true : null, 'tablet_disabled' => $this->tablet_disabled() ? true : null, 'meta' => array( 'display' => $this->get_display(), 'close' => $this->get_close(), // Added here for backward compatibility in extensions. 'click_open' => popmake_get_popup_meta( 'click_open', $this->ID ), ), ); $filters = array( 'js_only' => true ); if ( $this->has_conditions( $filters ) ) { $data_attr['conditions'] = $this->get_conditions( $filters ); } return apply_filters( 'pum_popup_data_attr', $data_attr, $this->ID ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.8.0 | Introduced. |