insert elementor custom template request error
-
After adding the new function update in Elementor, I am getting a "Request Error" when trying to insert a custom template. How can I solve this? 3.25.3
private function should_check_permissions( array $args ): bool {
? ? ? ? if ( null === $this->elementor_adapter ) {
? ? ? ? ? ? $this->set_elementor_adapter( new Elementor_Adapter() );
? ? ? ? }
? ? ? ? // TODO: Remove $isWidgetTemplate in 3.28.0 as there is a Pro dependency
? ? ? ? $check_permissions = isset( $args['check_permissions'] ) && false === $args['check_permissions'];
? ? ? ? $is_widget_template = 'widget' === $this->elementor_adapter->get_template_type( $args['template_id'] );
? ? ? ? if ( $check_permissions || $is_widget_template ) {
? ? ? ? ? ? return false;
? ? ? ? }
? ? ? ? return true;
? ? }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this review.