Save your time and automate your Hotel landing pages with Adivaha Hotel API Plugin. Plugin make sure all your hotel information is up to date by fetching real time hotel informations via API.
Adivaha Hotel Plugin saves your lot of time while creating Hotel landing pages. It fetches the hotel informations automatically via **API** and keeps you away from all the hassles while uploading the hotel informations manually and keeps your hotel information up to date in case if any of the hotel information changes down the road. You just need to select the hotel while creating a page or post and use their respective shortcodes. You are Done! :)
[adivaha_ds_HotelImages] - Picture Gallery - Shortcode for the image gallery of Hotel images
[adivaha_ds_HotelRating] - Hotel Rating - Shortcode for Hotel Star rating
[adivaha_ds_HotelReview] - Hotel Review - Shortcode for Hotel TripAdvisor Ratings
[adivaha_ds_HotelDescription] - Property Description - Shortcode for Hotel Description
[adivaha_ds_HotelPointofInterest] - Point of Interest - Shortcode for Point of Interest
[adivaha_ds_HotelCheckInInstructions] - Checkin Instructions - Shortcode for Hotel Checkin Instruction
[adivaha_ds_HotelAmeneties] - Amenities - Shortcode for Hotel Ameneties
[adivaha_ds_HotelMap] - Hotel Map - Shortcode for Hotel Map with the nearby Attractions
[adivaha_ds_TripAdvisorReview] - Review - Shortcode for Hotel TripAdvisor Reviews
';
}
}
/*=== Plugin Activation Redirect ===*/
function adivaha_solution_activation_redirect( $plugin ) {
if( $plugin == plugin_basename( __FILE__ ) ) {
exit( wp_redirect( admin_url( 'admin.php?page=adiaha-hotel/adivaha.php' ) ) );
}
}
add_action( 'activated_plugin', 'adivaha_solution_activation_redirect' );
/*=== enqueue scripts ====*/
function adivaha_solution_js() {
wp_enqueue_style('custom-style', plugins_url( '/css/ds-custom-style.css', __FILE__ ), array(), '20120208', 'all' );
}
add_action('wp_enqueue_scripts', 'adivaha_solution_js');
function admin_adivaha_solution_js() {
wp_enqueue_style('custom-bk-style', plugins_url( '/css/ds-custom-style-bk.css', __FILE__ ), array(), '20120208', 'all' );
wp_enqueue_script('my_custom_script', plugins_url( '/js/jquery.auto-complete.min.js', __FILE__ ), array('jquery'),'', true);
wp_enqueue_script('script-1', plugin_dir_url( __FILE__ ).'js/ds_custom.js');
}
add_action('admin_enqueue_scripts', 'admin_adivaha_solution_js');
add_action( 'admin_init', 'adivaha_solution_custom_field' );
function adivaha_solution_custom_field(){
global $wpdb;
add_meta_box('admin_meta_box_title', __( 'Select Hotel'), 'adivaha_solution_custom_field_box', array('page','post'), 'advanced', 'low');
add_action('save_post', 'update_adivaha_solution_custom_field_box');
}
function adivaha_solution_custom_field_box(){
global $post_ID;
$ds_hotelid = get_post_meta($post_ID, 'ds_hotelid', true );
$ds_hotelname = get_post_meta($post_ID, 'ds_hotelname', true );
echo '