Astra_Addon_Admin_Ajax::__construct()

Constructor


Description


Source

File: admin/core/includes/class-astra-addon-admin-ajax.php

	public function __construct() {
		$this->errors = array(
			'permission' => __( 'Sorry, you are not allowed to do this operation.', 'astra-addon' ),
			'nonce'      => __( 'Nonce validation failed', 'astra-addon' ),
			'default'    => __( 'Sorry, something went wrong.', 'astra-addon' ),
			'invalid'    => __( 'No post data found!', 'astra-addon' ),
		);

		// Ajax requests.
		add_action( 'wp_ajax_astra_addon_update_module_status', array( $this, 'update_module_status' ) );

		add_action( 'wp_ajax_astra_addon_bulk_activate_modules', array( $this, 'bulk_activate_modules' ) );
		add_action( 'wp_ajax_astra_addon_bulk_deactivate_modules', array( $this, 'bulk_deactivate_modules' ) );

		add_action( 'wp_ajax_astra_addon_clear_cache', array( $this, 'clear_cache' ) );

		// Enable/Disable beta updates.
		add_action( 'wp_ajax_astra_beta_updates', array( $this, 'enable_disable_beta_updates' ) );

		// Enable/Disable file generation.
		add_action( 'wp_ajax_astra_file_generation', array( $this, 'enable_disable_file_generation' ) );

		// Enable/Disable file generation.
		add_action( 'wp_ajax_astra_addon_update_whitelabel', array( $this, 'astra_addon_update_whitelabel' ) );
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.