WordPress.org

Make WordPress Core

Ticket #46586: plugin-b.php

File plugin-b.php, 197 bytes (added by Tyrannous, 8 months ago)

Plugin B. If it's active, Plugin A's determine_current_user filter will never be executed.

Line 
1<?php declare(strict_types=1); // -*- coding: utf-8 -*-
2
3/**
4 * Plugin Name: Plugin B
5 */
6
7add_action(
8    'plugins_loaded',
9    function() {
10        $user = wp_get_current_user();
11    },
12    1
13);