• I am fixing a plugin. My code is like below

    $metaquery = array(
    					'relation' => 'AND',
    					array(
    						'relation' => 'AND',
    						array(
    							'key' 		=> 'idonate_donor_bloodgroup',
    							'value' 	=>  sanitize_text_field( isset( $_GET['bloodgroup'] ) ? $_GET['bloodgroup'] : '' ),
    							'compare' 	=> '='
    						),
    						array(
    							'key' 		=> 'idonate_donor_availability',
    							'value' 	=> sanitize_text_field( isset( $_GET['availability'] ) ? $_GET['availability'] : '' ),
    							'compare' 	=> '='
    						),
    					),
    					array(
    						'relation' => 'OR',
    						array(
    							'key'     => 'idonate_donor_country',
    							'value'   => sanitize_text_field( isset( $_GET['country'] ) ? $_GET['country'] : '' ),
    							'compare' => '='
    						),
    						array(
    							'key'     => 'idonate_donor_state',
    							'value'   => esc_attr( isset( $_GET['state'] )  ? $_GET['state'] : '' ),
    							'compare' => '='
    						),
    						array(
    							'key'     => 'idonate_donor_city',
    							'value'   => esc_attr( isset( $_GET['city'] )  ? $_GET['city'] : '' ),
    							'compare' => '='
    						),
    					)
    				);

    I would like to know the root of the idonate_donor_country. Where it is generated ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi There,

    Do you mean where meta_key “idonate_donor_country” is saved??

    IF YES then I think you will need to run a search “idonate_donor_country” in your source code to find where this is saved. This is not default from WordPress or any known plugin.
    OR
    Look for “update_post_meta” function in source code where this key value might be saved.

    I hope that helps. Thanks.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The plugin “string locator” might be helpful for you with this if you don’t have command line access to use “grep”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixing plugin’ is closed to new replies.