WordPress.org

Make WordPress Core

Ticket #17516: foo.php

File foo.php, 330 bytes (added by technosailor, 3 years ago)

Unit test plugin for 17516-3.diff

Line 
1<?php
2/*
3Plugin Name: Foo
4*/
5
6function my_actions( $actions, $screen = null )
7{
8        $actions['foo.php'] = array( 'Foo', 'custom_cap' );
9        $actions['bar.php'] = array( 'Bar', 'manage_options' );
10        $actions['baz.php'] = array( 'Baz' );
11        $actions['qux.php'] = 'Qux';
12        return $actions;
13}
14add_filter('favorite_actions','my_actions', 10, 2);