Skip to content

Commit

Permalink
feat: wrap init function in function_exists call
Browse files Browse the repository at this point in the history
  • Loading branch information
domtra committed Oct 24, 2024
1 parent e495f92 commit 5ad79cd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions visual-regression-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
// Custom autoloader.
require plugin_dir_path( VRTS_PLUGIN_FILE ) . 'includes/autoload.php';

/**
* Main function responsible for accessing plugin functionalities.
*
* @return Plugin Class instance.
*/
function vrts() {
return Plugin::get_instance();
if ( ! function_exists( 'vrts' ) ) {
/**
* Main function responsible for accessing plugin functionalities.
*
* @return Plugin Class instance.
*/
function vrts() {
return Plugin::get_instance();
}
}

/**
Expand Down

0 comments on commit 5ad79cd

Please sign in to comment.