golden hour
/home/godaofbq/dev.oxygenhealthsystems.com/wp-content/plugins/adminify/Inc
⬆️ Go Up
Upload
File/Folder
Size
Actions
Admin
-
Del
OK
Classes
-
Del
OK
Modules
-
Del
OK
base-data.php
1.83 KB
Del
OK
base-model.php
465 B
Del
OK
functions.php
5.85 KB
Del
OK
utils.php
38.09 KB
Del
OK
Edit: base-model.php
<?php namespace WPAdminify\Inc; if ( ! defined( 'ABSPATH' ) ) { exit; } abstract class Base_Model extends Base_Data { protected function init( $data ) { $this->set( array_merge( $this->get_defaults(), $data ) ); } public function get_default_field( $field ) { $fields = $this->get_defaults(); return isset( $fields[ $field ] ) ? $fields[ $field ] : null; } public function __construct( $data ) { if ( $data ) { $this->init( $data ); } } }
Save