Skip to content

Commit

Permalink
delay calling MC4WP_Ninja_Forms_Action::get_list_settings until init …
Browse files Browse the repository at this point in the history
…hook
  • Loading branch information
dannyvankooten committed Jan 22, 2025
1 parent 2ff50e4 commit 5a87264
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integrations/ninja-forms/class-action.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ public function __construct()

add_action('wp_ajax_nf_' . $this->_name . '_get_lists', [$this, '_get_lists']);
add_action('init', [$this, 'translate_props']);


$this->get_list_settings();
add_action('init', [$this, 'get_list_settings']);
}

public function translate_props()
Expand Down Expand Up @@ -147,7 +145,7 @@ private function get_lists()
return $return;
}

private function get_list_settings()
public function get_list_settings()
{
$label_defaults = [
'list' => 'List',
Expand Down

0 comments on commit 5a87264

Please sign in to comment.