Changeset 3481119 for sureforms/trunk/plugin-loader.php
- Timestamp:
- 03/12/2026 11:46:10 AM (2 weeks ago)
- File:
-
- 1 edited
-
sureforms/trunk/plugin-loader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sureforms/trunk/plugin-loader.php
r3452102 r3481119 12 12 use SRFM\Admin\Analytics; 13 13 use SRFM\Admin\Notice_Manager; 14 use SRFM\Inc\Abilities\Abilities_Registrar; 14 15 use SRFM\Inc\Activator; 15 16 use SRFM\Inc\Admin_Ajax; … … 35 36 use SRFM\Inc\Gutenberg_Hooks; 36 37 use SRFM\Inc\Helper; 37 use SRFM\Inc\Lib\SRFM_Nps_Survey; 38 use SRFM\Inc\Nps_Notice; 38 use SRFM\Inc\Learn; 39 39 use SRFM\Inc\Onboarding; 40 40 use SRFM\Inc\Page_Builders\Page_Builders; … … 216 216 Payments::get_instance(); 217 217 Duplicate_Form::get_instance(); 218 Learn::get_instance(); 218 219 } 219 220 … … 307 308 DatabaseRegister::init(); 308 309 Form_Restriction::get_instance(); 310 Abilities_Registrar::get_instance(); 309 311 // Initializing Compatibilities. 310 312 Astra::get_instance(); 311 /**312 * Required to add the if check for the class existence to resolve phpstan error,313 * as the phpstan configuration ignores the inc/lib directory which gives error314 * unknown class.315 */316 if ( class_exists( 'SRFM\Inc\Lib\SRFM_Nps_Survey' ) && ! apply_filters( 'srfm_disable_nps_survey', false ) ) {317 SRFM_Nps_Survey::get_instance(); // Inits the NPS Survey class for which inits the NPS Survey plugin.318 Nps_Notice::get_instance(); // Responsible for displaying the NPS Survey: keeping the line out of the check will also work.319 }320 313 321 314 /**
Note: See TracChangeset
for help on using the changeset viewer.