Function Reference: geodir_sorting_options_available_fields

Summary

Adds admin html for sorting options available fields.

Global Values

$wpdb
(object) (required) WordPress Database object.

Default: None

Package

GeoDirectory

Change Log

Since: 1.0.0

Source File

geodir_sorting_options_available_fields() is located in geodirectory-admin/admin_hooks_actions.php [Line: 442]

Source Code

function geodir_sorting_options_available_fields()
{
    global $wpdb;
    $listing_type = ($_REQUEST['listing_type'] != '') ? sanitize_text_field($_REQUEST['listing_type']) : 'gd_place';
    ?>
    
    
    
    $val) { $val = stripslashes_deep($val); // strip slashes $check_html_variable = $wpdb->get_var( $wpdb->prepare( "SELECT htmlvar_name FROM " . GEODIR_CUSTOM_SORT_FIELDS_TABLE . " WHERE htmlvar_name = %s AND post_type = %s AND field_type=%s", array($val['htmlvar_name'], $listing_type, $val['field_type']) ) ); $display = $check_html_variable ? ' style="display:none;"' : ''; ?>
  • > '.$val['description'].'
'; }?> '; }elseif(isset($val['field_icon']) && $val['field_icon'] ){ echo ''; }else{ echo ''; }?>