Skip to content

Commit

Permalink
refactor(awooc 3.0.0rc7): перенос классов настроек в отдельную папку
Browse files Browse the repository at this point in the history
  • Loading branch information
artikus11 committed Aug 9, 2024
1 parent 5c53f65 commit d3c124a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion art-woo-order-one-click.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
require AWOOC_PLUGIN_DIR . '/vendor/autoload.php';

register_uninstall_hook( __FILE__, [ Art\AWOOC\Uninstall::class, 'uninstall' ] );
register_activation_hook( __FILE__, [ Art\AWOOC\Setup_Form::class, 'install_form' ] );
register_activation_hook( __FILE__, [ Art\AWOOC\Admin\Create_Form::class, 'install_form' ] );

if ( ! function_exists( 'awooc' ) ) {
/**
Expand Down
4 changes: 2 additions & 2 deletions classes/Setup_Form.php → classes/Admin/Create_Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @version 2.3.1
*/

namespace Art\AWOOC;
namespace Art\AWOOC\Admin;

use WPCF7_ContactForm;
use WPCF7_ContactFormTemplate;
Expand All @@ -18,7 +18,7 @@
* @author Artem Abramovich
* @since 2.3.1
*/
class Setup_Form {
class Create_Form {

/**
* Создание формы при первой активации
Expand Down
2 changes: 1 addition & 1 deletion classes/Settings.php → classes/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @version 1.8.0
*/

namespace Art\AWOOC;
namespace Art\AWOOC\Admin;

use WC_Admin_Settings;
use WC_Settings_Page;
Expand Down
2 changes: 1 addition & 1 deletion classes/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function add_plugin_action_links( array $links ): array {
*/
public function add_awooc_admin_settings( array $settings ): array {

$settings[] = include __DIR__ . '/Settings.php';
$settings[] = include __DIR__ . '/Admin/Settings.php';

return $settings;
}
Expand Down

0 comments on commit d3c124a

Please sign in to comment.