| Server IP : 216.238.66.20 / Your IP : 216.73.217.142 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/plugins/pods/src/Pods/Admin/ |
Upload File : |
<?php
namespace Pods\Admin;
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
use Pods\Admin\Config\Pod;
use Pods\Admin\Config\Group;
use Pods\Admin\Config\Field;
/**
* Class Service_Provider.
*
* @since 2.8.0
*/
class Service_Provider extends \Pods\Service_Provider_Base {
/**
* Registers the classes and functionality needed for Admin configs.
*
* @since 2.8.0
*/
public function register() {
$this->container->singleton( Pod::class, Pod::class );
$this->container->singleton( Group::class, Group::class );
$this->container->singleton( Field::class, Field::class );
$this->container->singleton( Settings::class, Settings::class );
$this->hooks();
}
/**
* Hooks all the methods and actions the class needs.
*
* @since 2.8.0
*/
protected function hooks() {
add_action( 'pods_admin_settings_init', $this->container->callback( Settings::class, 'hook' ) );
}
}