mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-26 10:01:44 +08:00
17 lines
405 B
PHP
17 lines
405 B
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
final class Pojo_A11y_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' ] );
|
|
}
|
|
}
|