This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function uni_custom_rewrite_rules() { | |
| // Make sure we can still get to the movers page | |
| add_rewrite_rule( | |
| '^movers/?$', | |
| 'index.php?pagename=movers', | |
| 'top' | |
| ); | |
| add_rewrite_rule( | |
| '^movers/([^/]+)/?$', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function populate_company_list_field_with_array($value) { | |
| if (current_user_can('employer_admin')) { | |
| // Get the current user's company ID | |
| $company_id = get_user_meta(get_current_user_id(), 'company_id', true); | |
| $list_field_values = array(); | |
| // Get the ACF repeater field data | |
| $business_locations = get_field('business_locations', $company_id); // Replace with your ACF repeater field name | |
| // Check if repeater field has data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Forms Multi-Select Dropdown field | |
| */ | |
| class GF_Field_MultiSelect_Dropdown extends GF_Field { | |
| public $type = 'ms_dropdown'; |
OlderNewer