Astra_Ext_Advanced_Hooks_Loader::ast_advanced_layout_quick_preview()
Quick View popup Ajax request to render dynamic content.
Description
Source
File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-loader.php
public function ast_advanced_layout_quick_preview() { check_ajax_referer( 'astra-addon-quick-layout-view-nonce', 'nonce' ); if ( ! current_user_can( 'edit_posts' ) || ! isset( $_REQUEST['post_id'] ) ) { wp_die( -1 ); } $post_id = absint( $_REQUEST['post_id'] ); $data = $this->get_layout_details( $post_id ); if ( $post_id ) { wp_send_json_success( $data ); } wp_die(); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.3 | Introduced. |