PluginProbe
Polylang / 3.7
Polylang v3.7
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / include / Options / Business / Previous_Version.php

Previous_Version.php in Polylang 3.7, at include/Options/Business/Previous_Version.php

40 lines 639 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 */
5
6 namespace WP_Syntex\Polylang\Options\Business;
7
8 defined( 'ABSPATH' ) || exit;
9
10 /**
11 * Class defining the "previous version" option.
12 *
13 * @since 3.7
14 */
15 class Previous_Version extends Version {
16 /**
17 * Returns option key.
18 *
19 * @since 3.7
20 *
21 * @return string
22 *
23 * @phpstan-return 'previous_version'
24 */
25 public static function key(): string {
26 return 'previous_version';
27 }
28
29 /**
30 * Returns the description used in the JSON schema.
31 *
32 * @since 3.7
33 *
34 * @return string
35 */
36 protected function get_description(): string {
37 return __( "Polylang's previous version.", 'polylang' );
38 }
39 }
40