Astra_Theme_Extension::enable_disable_file_generation()
Ajax handler to enable / disable the file generation of scripts/styles for Astra Theme and Astra Pro.
Description
Return
(void)
Source
File: classes/class-astra-theme-extension.php
public function enable_disable_file_generation() { check_ajax_referer( 'astra-addon-module-nonce', 'nonce' ); $status = isset( $_POST['status'] ) ? sanitize_text_field( $_POST['status'] ) : false; if ( false !== $status ) { update_option( '_astra_file_generation', $status ); wp_send_json_success(); } wp_send_json_error(); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.5.1 | Introduced. |