Skip to content
Snippets Groups Projects
Commit d4f73c32 authored by Erick Hitter's avatar Erick Hitter
Browse files

Futher options-page prep

parent a9242224
No related branches found
No related tags found
3 merge requests!6add linting,!5WIP: Add JUnit reporting,!4WIP: Initial release
......@@ -7,6 +7,26 @@
namespace Camo_Image_Proxy;
/**
* Class Options_Page
*/
class Options_Page {
use Singleton;
/**
* Hooks
*/
public function setup() {
add_action( 'admin_init', [ $this, 'action_admin_init' ] );
}
/**
* Add fields to Media settings page
*/
public function action_admin_init() {
//register_setting();
//add_settings_section();
//add_settings_field();
}
}
......@@ -30,6 +30,22 @@ class Options {
'key' => '',
];
/**
* Access certain private properties
*
* @param string $name Property name.
* @return mixed
*/
public function __get( string $name ) {
switch ( $name ) {
case 'name':
return $this->name;
default:
return new \WP_Error( 'invalid-property', __( 'Invalid property requested.', 'camo-image-proxy' ), $name );
}
}
/**
* Retrieve full plugin options
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment