| Server IP : 35.154.56.2 / Your IP : 216.73.217.116 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-0-189 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:20:04 UTC 2025 aarch64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /srv/prima-automation.com/html/wp-content/plugins/pods/components/ |
Upload File : |
<?php
/**
* 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' );
}
}