Function Reference: geodir_on_wp_loaded
Summary
Geodirectory Post or Get request handler on wp_loaded.
Global Values
- $wpdb
- (object) (required) WordPress Database object.
- Default: None
Package
GeoDirectory
Change Log
Since: 1.3.5
Actions
‘giodir_handle_request_plugins_loaded’ [Line: 24]
Source File
geodir_on_wp_loaded() is located in geodirectory-functions/ajax_handler_functions.php [Line: 17]
Source Code
function geodir_on_wp_loaded() { /** * Called on the wp_loaded WP hook and used to send the send inquiry forms. * * @since 1.0.0 */ do_action('giodir_handle_request_plugins_loaded'); global $wpdb; if (isset($_POST['sendact']) && $_POST['sendact'] == 'send_inqury') { geodir_send_inquiry($_REQUEST); // function in custom_functions.php } }