Permalink
Browse files

Atomic function for the hooks.

  • Loading branch information...
toscho committed Feb 20, 2012
1 parent 0ca9b4e commit b956369f9f83e60f46e57d1806810cd828694a62
Showing with 10 additions and 0 deletions.
  1. +10 −0 public-contact-data.php
View
@@ -129,7 +129,17 @@ public function __construct( $context = 'normal' )
$this->load_language_files();
$this->set_fields();
+ $this->set_hooks();
+ }
+ /**
+ * Add filters and register the shortcodes.
+ *
+ * @see __construct()
+ * @return void
+ */
+ protected function set_hooks()
+ {
add_filter( 'plugin_row_meta', array( $this, 'add_settings_link' ), 10, 2 );
add_filter( 'admin_init', array( $this, 'add_contact_fields' ) );
// Public interface

0 comments on commit b956369

Please sign in to comment.