mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 09:56:44 +08:00
* Initial refactor commit
* ✅ Added build and tests CI/CD
* PR Rejects
* Rejects leftover
24 lines
465 B
PHP
24 lines
465 B
PHP
<?php
|
|
|
|
namespace EA11y\Modules\Legacy\Components;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
/**
|
|
* Class Elementor
|
|
*/
|
|
class Elementor {
|
|
public function is_toolbar_active( $is_active ) {
|
|
if ( \Elementor\Plugin::$instance->preview->is_preview_mode() ) {
|
|
$is_active = false;
|
|
}
|
|
|
|
return $is_active;
|
|
}
|
|
|
|
public function __construct() {
|
|
add_filter( 'pojo_a11y_frontend_is_toolbar_active', [ $this, 'is_toolbar_active' ] );
|
|
}
|
|
}
|