Add helper function to get the plugin setting

This commit is contained in:
Robin Cornett
2016-02-23 08:03:13 -05:00
parent c67b24b735
commit be876f703e
5 changed files with 8 additions and 7 deletions
@@ -2,7 +2,6 @@
class Display_Featured_Image_Genesis_Author extends Display_Featured_Image_Genesis_Helper {
protected $settings;
protected $name;
/**
@@ -12,8 +11,7 @@ class Display_Featured_Image_Genesis_Author extends Display_Featured_Image_Genes
*/
public function set_author_meta() {
$this->settings = new Display_Featured_Image_Genesis_Settings();
$this->name = 'displayfeaturedimagegenesis';
$this->name = 'displayfeaturedimagegenesis';
// current user
add_action( 'profile_personal_options', array( $this, 'do_author_fields' ) );
add_action( 'personal_options_update', array( $this, 'save_profile_fields' ) );