Permalink
Browse files

Updating the Shortcode and Widget classes

  • Loading branch information...
ionofzion committed Nov 2, 2018
1 parent 8ff0be4 commit 25f85d8b5b845e79232584aa0aff0e898841e0fa
Showing with 3 additions and 3 deletions.
  1. +1 −1 includes/Shortcode.php
  2. +2 −2 includes/Widget.php
@@ -55,7 +55,7 @@ private function __construct() {
$this->plugin_slug = $plugin->get_plugin_slug();
$this->version = $plugin->get_plugin_version();
add_shortcode( 'wp-reactivate', array( $this, 'shortcode' ) );
add_shortcode( 'wpr-contact-form', array( $this, 'shortcode' ) ); // Change the shortcode tag to 'wpr-contact-form'
}
@@ -28,10 +28,10 @@ public function __construct() {
$this->version = $plugin->get_plugin_version();
$widget_ops = array(
'description' => esc_html__( 'WP Reactivate demo widget.', $this->plugin_slug ),
'description' => esc_html__( 'WP Reactivate contact form widget.', $this->plugin_slug ), // Update the widget description
);
parent::__construct( 'wpr-widget', esc_html__( 'WP Reactivate', $this->plugin_slug ), $widget_ops );
parent::__construct( 'wpr-widget', esc_html__( 'WPR Contact Form', $this->plugin_slug ), $widget_ops ); // and the widget name
}
/**

0 comments on commit 25f85d8

Please sign in to comment.