Usage_Reports::reporting_enabled()

reporting_enabled


Return Return

(bool)


Source Source

File: src/core/classes/class-usage-reports.php

	public function reporting_enabled() {

		$reporting_enabled = false;

		if ( defined( 'AUTOMATOR_REPORTING' ) ) {
			return AUTOMATOR_REPORTING;
		}

		if ( is_automator_pro_active() ) {
			$reporting_enabled = true;
		}

		if ( (bool) get_option( 'automator_reporting', false ) === true ) {
			$reporting_enabled = true;
		}

		return apply_filters( 'automator_reporting', $reporting_enabled );
	}