$default_gateway = apply_filters('eStore_cart_checkout_default_gateway',''); if(!empty($default_gateway)){ $_COOKIE['eStore_gateway'] = $default_gateway; } } add_action('plugins_loaded', 'eStore_plugins_loaded_handler'); add_action('wp_loaded', 'eStore_wp_loaded_handler'); add_action('init', 'wp_eStore_load_libraries'); add_action('init', 'eStore_tinyMCE_addbutton'); add_action('widgets_init', 'eStore_handle_widgets_related_task'); add_filter('wp_list_pages_excludes', 'estore_exclude_page_handler'); add_filter('pre_update_option_active_plugins', 'eStore_pre_update_option_active_plugins'); //This function will get fired when a plugin activation or deactivation occurs add_filter('the_content', 'print_wp_digi_cart_button', 11); //Deprecated //add_filter('the_content', 'eStore_fancy_product_display',11);//Deprecated //add_filter('the_content', 'eStore_fancy_product_display2');//Deprecated add_filter('the_content', 'eStore_display_all_products_stylish', 11); add_filter('the_content', 'eStore_print_products_from_category', 11); add_filter('the_content', 'filter_eStore_buy_now_button', 11); //Deprecated add_filter('the_content', 'filter_eStore_free_download_form', 11); add_filter('the_content', 'filter_eStore_free_download_form_ajax', 11); add_filter('the_content', 'filter_eStore_subscribe_button', 11); //Deprecated //add_filter('the_content', 'wp_digi_cart_show');//Deprecated add_filter('the_content', 'filter_eStore_transaction_result'); //Deprecated add_filter('the_content', 'do_shortcode', 11); if (!is_admin()) { add_filter('widget_text', 'do_shortcode'); } add_filter('the_excerpt', 'do_shortcode', 11); add_shortcode('wp_eStore_add_to_cart', 'wp_eStore_add_to_cart_handler'); add_shortcode('wp_eStore_buy_now_button', 'wp_eStore_buy_now_handler'); add_shortcode('wp_eStore_subscribe_button', 'wp_eStore_subscribe_handler'); add_shortcode('wp_eStore_cart', 'wp_digi_cart_always_show'); add_shortcode('wp_eStore_cart_fancy1', 'eStore_shopping_cart_fancy1'); add_shortcode('wp_eStore_cart_fancy1_when_not_empty', 'eStore_shopping_cart_fancy1_when_not_empty'); add_shortcode('wp_eStore_cart_when_not_empty', 'eStore_cart_when_not_empty'); add_shortcode('wp_eStore_cart_fancy2', 'eStore_shopping_cart_fancy2'); add_shortcode('wp_eStore_list_products', 'wp_estore_show_products_table'); add_shortcode('wp_eStore_list_categories_fancy', 'wp_estore_display_categories_fancy'); add_shortcode('wp_eStore_category_fancy', 'wp_estore_display_category_fancy'); add_shortcode('wp_eStore_fancy1', 'eStore_fancy1'); add_shortcode('wp_eStore_fancy2', 'eStore_fancy2'); add_shortcode('wp_eStore_buy_now_fancy', 'eStore_buy_now_fancy'); add_shortcode('wp_eStore_subscribe_fancy', 'eStore_subscribe_fancy'); add_shortcode('wp_eStore_sale_counter', 'eStore_sale_counter'); add_shortcode('wp_eStore_remaining_copies_counter', 'eStore_remaining_copies_counter'); add_shortcode('wp_eStore_download_now_button', 'eStore_download_now_button'); add_shortcode('wp_eStore_download_now_button_fancy', 'eStore_download_now_button_fancy'); add_shortcode('wp_eStore_download_now_button_fancy_no_price', 'eStore_download_now_button_fancy_no_price_handler'); add_shortcode('wp_eStore_buy_now_custom_button', 'wp_eStore_buy_now_custom_button_handler'); add_shortcode('wp_eStore_members_purchase_history', 'wp_eStore_members_purchase_history_handler'); add_shortcode('wp_eStore_members_purchase_history_with_download', 'wp_eStore_members_purchase_history_with_download_handler'); add_shortcode('wp_eStore_APR', array('eStore_aprtp', 'shortcode_api')); add_shortcode('wp_eStore_on_page_manual_gateway_form', 'wp_eStore_on_page_manual_gateway_form_handler'); add_shortcode('wp_eStore_product_details', 'wp_eStore_product_details_handler'); add_shortcode('wp_eStore_free_download_squeeze_form', 'wp_eStore_free_download_squeeze_form_handler'); add_shortcode('wp_eStore_save_retrieve_cart', 'wp_eStore_save_retrieve_cart_handler'); add_shortcode('wp_eStore_display_transaction_result', 'eStore_display_transaction_result'); //TODO - the doc needs to be updated add_shortcode('wp_eStore_order_summary', 'eStore_show_order_summary'); //TODO - update doc (shortcode list) add_shortcode('wp_eStore_buy_now_for_specific_gateway', 'wp_eStore_buy_now_for_specific_gateway_handler'); //TODO - update doc (shortcode list) add_shortcode('wp_eStore_donate', 'eStore_donate_button_code'); //TODO - update doc (shortcode list) if (is_admin()) { add_action('admin_notices', 'wp_eStore_plugin_conflict_check'); } add_action('wp_head', 'wp_eStore_head_content'); add_action('wp_footer', 'wp_eStore_add_footer_code');