Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function elementor_require_all_tags( $can_access, $element, $user_tags ) {
- $widget_tags = $element->get_settings( 'wpf_tags' );
- if( array_intersect( $widget_tags, $user_tags ) == count( $widget_tags ) ) {
- return true;
- } else {
- return false;
- }
- }
- add_filter( 'wpf_elementor_can_access', 'elementor_require_all_tags', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement