PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / trunk
Pods – Custom Content Types and Fields vtrunk
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / src / Pods / REST / Interfaces / Messages_Interface.php
pods / src / Pods / REST / Interfaces Last commit date
Endpoints 4 months ago Swagger 4 months ago Messages_Interface.php 4 months ago Post_Repository_Interface.php 4 months ago Validator_Interface.php 4 months ago
Messages_Interface.php
49 lines
1 <?php
2
3 namespace Pods\REST\Interfaces;
4
5 // Don't load directly.
6 if ( ! defined( 'ABSPATH' ) ) {
7 die( '-1' );
8 }
9
10 /**
11 * Messages interface.
12 *
13 * @credit The Events Calendar team - https://github.com/the-events-calendar/tribe-common
14 *
15 * @since 3.0
16 */
17 interface Messages_Interface {
18 /**
19 * Returns the localized message associated with the slug.
20 *
21 * @since 3.0
22 *
23 * @param string $message_slug
24 *
25 * @return string
26 */
27 public function get_message( $message_slug );
28
29 /**
30 * Returns the associative array of all the messages handled by the class.
31 *
32 * @since 3.0
33 *
34 * @return array An associative array in the `[ <slug> => <localized message> ]` format.
35 */
36 public function get_messages();
37
38 /**
39 * Prefixes a message slug with a common root.
40 *
41 * @since 3.0
42 *
43 * @param string $message_slug
44 *
45 * @return string The prefixed message slug.
46 */
47 public function prefix_message_slug( $message_slug );
48 }
49