Skip to content
Snippets Groups Projects

WIP: Initial release

Closed Erick Hitter requested to merge develop into master
1 file
+ 20
1
Compare changes
  • Side-by-side
  • Inline
+ 20
1
@@ -148,7 +148,26 @@ class ETH_AMP_Analytics_WP {
/**
*
*/
public function action_admin_init() {}
public function action_admin_init() {
register_setting( 'reading', $this->option_name, array( $this, 'sanitize_options' ) );
add_settings_section( 'eth-amp-analytics-wp', __( 'Google Analytics for AMP', 'eth-amp-analytics-wp' ), '__return_false', 'reading' );
add_settings_field( 'eth-amp-analytics-wp-property-id', __( 'Property ID:', 'eth-amp-analytics-wp' ), array( $this, 'settings_field_property_id' ), 'reading', 'eth-amp-analytics-wp' );
}
/**
*
*/
public function settings_field_property_id() {
?><?php
}
/**
*
*/
public function sanitize_options( $options ) {
return $options;
}
}
ETH_AMP_Analytics_WP::get_instance();
\ No newline at end of file
Loading