Skip to content

Instantly share code, notes, and snippets.

@viruthagiri
Created April 8, 2016 11:37
Show Gist options
  • Save viruthagiri/48f98fab88880ffbc0409a7df8ddf259 to your computer and use it in GitHub Desktop.
Save viruthagiri/48f98fab88880ffbc0409a7df8ddf259 to your computer and use it in GitHub Desktop.
<?php
remove_action( 'geodir_after_claim_form_field', 'geodir_claim_after_claim_form_field', 0);
add_action( 'geodir_after_claim_form_field', 'geodir_claim_after_claim_form_field', 1, 1);
add_action( 'geodir_after_claim_form_field', 'claim_listing_package_list_before', 0, 1 );
function claim_listing_package_list_before($field = '') {
if ( $field == 'geodir_user_comments' && geodir_claim_force_upgrade() ) {
$gd_post_types = geodir_get_posttypes();
$post_id = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : '';
$post_type = get_post_type( $post_id );
if ( $post_type != '' && in_array( $post_type, $gd_post_types ) ) {
?>
<div>
<h4>Available Packages</h4>
<a href="http://directory.healingsouls.com.au/claim-listing-membership-options/" class="fancybox iframe" target="_blank" rel="attachment wp-att-362">
<p>Click for more details and how your claim is processed</p>
<img src="http://directory.healingsouls.com.au/wp-content/uploads/2016/04/Prices-image-1-300x191.png" alt="Prices image" width="200" height="auto" class=" aligncenter size-medium wp-image-362" /></a>
</div>
<?php
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment