| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/revivere/www/wp-content/plugins/pods/components/ |
Upload File : |
<?php
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Name: Table Storage
*
* Description: Enable a custom database table for your custom fields on Post Types, Media, Taxonomies, Users, and Comments.
*
* Version: 2.3
*
* Category: Advanced
*
* Tableless Mode: No
*
* @package Pods\Components
* @subpackage Advanced Content Types
*/
if ( class_exists( 'Pods_Table_Storage' ) ) {
return;
}
/**
* Class Pods_Table_Storage
*/
class Pods_Table_Storage extends PodsComponent {
/**
* {@inheritdoc}
*/
public function init() {
// Bypass if Pods is in types-only mode.
if ( pods_is_types_only() ) {
return;
}
// Bypass if Pods is in tableless mode.
if ( pods_tableless() ) {
return;
}
add_filter( 'pods_admin_setup_add_create_storage', '__return_true' );
add_filter( 'pods_admin_setup_add_create_taxonomy_storage', '__return_true' );
add_filter( 'pods_admin_setup_add_extend_storage', '__return_true' );
add_filter( 'pods_admin_setup_add_extend_taxonomy_storage', '__return_true' );
}
}