PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / 22.7.0
WPSSO Core – Complete Schema Markup and Meta Tags v22.7.0
22.7.0 22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / sitesubmenu / site-licenses.php

site-licenses.php in WPSSO Core – Complete Schema Markup and Meta Tags 22.7.0, at lib/sitesubmenu/site-licenses.php

47 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * License: GPLv3
4 * License URI: https://www.gnu.org/licenses/gpl.txt
5 * Copyright 2012-2026 Jean-Sebastien Morisset (https://wpsso.com/)
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9
10 die( 'These aren\'t the droids you\'re looking for.' );
11 }
12
13 if ( ! defined( 'WPSSO_PLUGINDIR' ) ) {
14
15 die( 'Do. Or do not. There is no try.' );
16 }
17
18 if ( ! class_exists( 'WpssoSubmenuLicenses' ) ) {
19
20 require_once WPSSO_PLUGINDIR . 'lib/submenu/licenses.php';
21 }
22
23 if ( ! class_exists( 'WpssoSiteSubmenuSiteLicenses' ) && class_exists( 'WpssoSubmenuLicenses' ) ) {
24
25 /*
26 * This settings page also requires enqueuing special scripts and styles for the plugin details / install thickbox link.
27 * See the WpssoScript and WpssoStyle classes for more info.
28 */
29 class WpssoSiteSubmenuSiteLicenses extends WpssoSubmenuLicenses {
30
31 /*
32 * See WpssoAdmin->get_form_object().
33 */
34 protected function set_form_object( $menu_ext ) {
35
36 if ( $this->p->debug->enabled ) {
37
38 $this->p->debug->log( 'setting site form object for '.$menu_ext );
39 }
40
41 $def_site_opts = $this->p->opt->get_site_defaults();
42
43 $this->form = new SucomForm( $this->p, WPSSO_SITE_OPTIONS_NAME, $this->p->site_options, $def_site_opts, $menu_ext );
44 }
45 }
46 }
47