export default {
data() {
return {
client: {},
}
},
mounted() {
var client = XMPP.createClient({
jid: "u1@example.com",
password: "1",
transport: "websocket",
wsURL: "ws://example.com/xmpp-websocket"
});
this.client = client
}
};
$public_roles = array( 'studio', 'producer' );
foreach ( $public_roles as $the_public_role ) {
$role = get_role( $the_public_role );
$role->add_cap( 'read_room' );
$role->add_cap( 'edit_room' );
$role->add_cap( 'edit_rooms' );
$role->add_cap( 'edit_published_rooms' );
$role->add_cap( 'publish_rooms' );
$role->add_cap( 'delete_published_rooms' );
}
$products = new WP_Query( array(
'post_type' => array('product'),
'post_status' => 'publish',
'posts_per_page' => -1,
'meta_query' => array( array(
'key' => '_visibility',
'value' => array('catalog', 'visible'),
'compare' => 'IN',
) ),
'tax_query' => array( array(
'taxonomy' => 'pa_color',
'field' => 'slug',
'terms' => array('blue', 'red', 'green'),
'operator' => 'IN',
) )
) );