Skip to content

Commit

Permalink
changes classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
Usame Algan committed Jun 27, 2020
1 parent f92f0d4 commit d5370f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion admin/class-cf7-zwr-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @subpackage CF7_ZWR/admin
* @author Usame Algan
*/
class CF7_ZWR_admin {
class CF7_ZWR_Admin {

private $plugin_name;
private $version;
Expand Down
4 changes: 2 additions & 2 deletions includes/class-cf7-zwr-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage CF7_ZWR/includes
* @author Usame Algan
*/
class CF7_ZWR_api {
class CF7_ZWR_Api {
private $plugin_name;
private $version;

Expand Down Expand Up @@ -70,7 +70,7 @@ public function send_registration($contactform, &$abort, $submission) {

$webinar_id = $matches[0];

$field_parser = new CF7_ZWR_field_finder($posted_data);
$field_parser = new CF7_ZWR_Field_Finder($posted_data);
$fields = $field_parser->combine(['prefixed', 'guessed']);

if ($webinar_id) {
Expand Down
4 changes: 2 additions & 2 deletions includes/class-cf7-zwr-field-finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @subpackage CF7_ZWR/includes
* @author Usame Algan
*/
Class CF7_ZWR_field_finder {
Class CF7_ZWR_Field_Finder {
protected $fields;

public function __construct($fields) {
Expand Down Expand Up @@ -37,7 +37,7 @@ public function guessed() {
$fields_guessed = array();

foreach($this->fields as $key => $value) {
if(preg_match('/email|mail/i', $key) || is_email($value)) {
if(preg_match('/email|mail/i', $key)) {
$fields_guessed["email"] = $value;
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-cf7-zwr-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @subpackage CF7_ZWR/includes
* @author Usame Algan
*/
class CF7_ZWR_i18n {
class CF7_ZWR_I18N {

public function load_plugin_textdomain() {

Expand Down
6 changes: 3 additions & 3 deletions includes/class-cf7-zwr.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ private function load_dependencies() {
}

private function set_locale() {
$plugin_i18n = new CF7_ZWR_i18n();
$plugin_i18n = new CF7_ZWR_I18N();
$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
}

private function define_admin_hooks() {
$cf7_zwr_admin = new CF7_ZWR_admin( $this->get_plugin_name(), $this->get_version() );
$cf7_zwr_admin = new CF7_ZWR_Admin( $this->get_plugin_name(), $this->get_version() );

$this->loader->add_action( 'admin_menu', $cf7_zwr_admin, 'add_setting_page' );
$this->loader->add_action( 'admin_init', $cf7_zwr_admin, 'initialize_settings' );
}

private function define_public_hooks() {
$cf7_zwr_public = new CF7_ZWR_api( $this->get_plugin_name(), $this->get_version() );
$cf7_zwr_public = new CF7_ZWR_Api( $this->get_plugin_name(), $this->get_version() );

$this->loader->add_action( 'wpcf7_before_send_mail', $cf7_zwr_public, 'send_registration', 10, 3 );
}
Expand Down

0 comments on commit d5370f7

Please sign in to comment.