Company Helper Functions
The helper you can use to get company details and settings for the company.
function get_company($company_id) {....}
// The filter callback function is based on the filter.
add_filter('before_get_company', 'before_get_company_callback_fn', 10, 1);
function before_get_company_callback_fn ($company_id) {
// This filter would be executed before retrieving company details from database in get_company helper.
}// The filter callback function is based on the filter.
add_filter('should_get_company', 'should_get_company_callback_fn', 10, 1);
function should_get_company_callback_fn ($company_id) {
// This filter would be executed before retrieving company details from database in get_company helper.
}// The filter callback function is based on the filter.
add_filter('pre.get.company', 'pre_get_company_callback_fn', 10, 1);
function pre_get_company_callback_fn ($company_id) {
// This filter would be executed before retrieving comapny from database in get_company helper.
}Param
Type
Required
Default
Description
function get_company_data($company_id) {....}
Param
Type
Required
Default
Description
Last updated