jetpack_disconnect_cap

jetpack_disconnect_cap

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('jetpack_disconnect_cap') is found 1 times:

  • /vendor/automattic/jetpack-connection/src/class-manager.php line 1497
    				 * @since 1.14.2
    				 *
    				 * @param array An array containing the capability name.
    				 */
    				$caps = apply_filters( 'jetpack_disconnect_cap', array( 'manage_options' ) );
    				break;
    			case 'jetpack_connect_user':
    				$is_offline_mode = ( new Status() )->is_offline_mode();
    				if ( $is_offline_mode ) {
    					$caps = array( 'do_not_allow' );
    					break;
    

See this hook used in plugins: