1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41:
<?php
namespace VSP\Core\Abstracts;
defined( 'ABSPATH' ) || exit;
use VSP\Base;
/**
* Class Plugin_Settings
*
* @package VSP\Core\Abstracts
* @author Varun Sridharan <varunsridharan23@gmail.com>
*/
abstract class Plugin_Settings extends Base {
/**
* @var \WPO\Builder
*/
protected $builder = false;
/**
* Plugin_Settings constructor.
*/
public function __construct() {
$this->add_action( $this->plugin()->slug( 'hook' ) . '/settings/fields', 'options', 1 );
}
/**
* @param \WPO\Builder $builder
*/
public function options( $builder ) {
$this->builder = $builder;
$this->fields();
}
/**
* Inits Fields
*/
abstract protected function fields();
}