Open ritakikani opened 2 months ago
These files should be in else condition
Why this code used ?
Need indentation :
Need to change variable name :
This action should be in forms.php file construct function, and the function also should be there in forms.php file.
These 3 action should in cache-helper.php
These all should be in cache-helpers.php class
These must be in post-types.php file.
These should be in ajax.php file
According to me, these action is not used anywhere, so please check if not used then remove it.
In previous code(version), there is all action-hook and filter-hooks are in 1 file only either it's admin related or front-end related, but from now adminpanel related hooks must be in related file only.
ex.
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'), 10); above hook is related to admin-side so do not write this hook in wpfm-restaurant-manager-action-hooks.php but this must be in wpfm-restaurant-manager-admin.php
ex. add_action('add_meta_boxes', array($this, 'add_meta_boxes')); above hook is related to write-panel, so it must be inside wpfm-restaurant-manager-writepanels.php file not in wpfm-restaurant-manager-action-hooks.php.