Source Code Documentation


pro\s2member-pro\includes\hooks.inc.php


  1. <?php
  2. /**
  3. * Primary Hooks/Filters used by s2Member Pro.
  4. *
  5. * Copyright: © 2009-2011
  6. * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
  7. * (coded in the USA)
  8. *
  9. * This WordPress® plugin (s2Member Pro) is comprised of two parts:
  10. *
  11. * o (1) Its PHP code is licensed under the GPL license, as is WordPress®.
  12. * You should have received a copy of the GNU General Public License,
  13. * along with this software. In the main directory, see: /licensing/
  14. * If not, see: {@link http://www.gnu.org/licenses/}.
  15. *
  16. * o (2) All other parts of (s2Member Pro); including, but not limited to:
  17. * the CSS code, some JavaScript code, images, and design;
  18. * are licensed according to the license purchased.
  19. * See: {@link http://www.s2member.com/prices/}
  20. *
  21. * Unless you have our prior written consent, you must NOT directly or indirectly license,
  22. * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module;
  23. * or make an offer to do any of these things. All of these things are strictly
  24. * prohibited with part (2) of the s2Member Pro Module.
  25. *
  26. * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com
  27. * (i.e. new features, bug fixes, updates, improvements); along with full access
  28. * to our video tutorial library: {@link http://www.s2member.com/videos/}
  29. *
  30. * @package s2Member
  31. * @since 1.0
  32. */
  33. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  34. exit("Do not access this file directly.");
  35. /*
  36. Add the plugin Actions/Filters here.
  37. */
  38. add_action ("init", "c_ws_plugin__s2member_pro_exports::export", 3);
  39. add_action ("init", "c_ws_plugin__s2member_pro_remote_ops::remote_ops");
  40.  
  41. add_action ("admin_init", "c_ws_plugin__s2member_pro_lock_icons::configure_lock_icons");
  42.  
  43. add_action ("widgets_init", "c_ws_plugin__s2member_pro_widgets::login_widget_register");
  44.  
  45. add_filter ("ws_plugin__s2member_during_constants_c", "c_ws_plugin__s2member_pro_constants::constants", 9, 2);
  46.  
  47. add_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
  48. add_action ("ws_plugin__s2member_during_js_w_globals", "c_ws_plugin__s2member_pro_css_js::js_w_globals");
  49. add_action ("ws_plugin__s2member_during_menu_pages_js", "c_ws_plugin__s2member_pro_admin_css_js::menu_pages_js");
  50.  
  51. add_filter ("ws_plugin__s2member_during_add_admin_options_add_divider_2", "c_ws_plugin__s2member_pro_menu_pages::add_coupon_codes_page", 10, 2);
  52. add_filter ("ws_plugin__s2member_during_add_admin_options_add_divider_3", "c_ws_plugin__s2member_pro_menu_pages::add_import_export_page", 10, 2);
  53. add_filter ("ws_plugin__s2member_during_add_admin_options_add_divider_4", "c_ws_plugin__s2member_pro_menu_pages::add_other_gateways_page", 10, 2);
  54.  
  55. add_action ("ws_plugin__s2member_during_add_admin_options_additional_pages", "c_ws_plugin__s2member_pro_menu_pages::add_info_page", 1);
  56. add_action ("ws_plugin__s2member_during_add_network_admin_options_additional_pages", "c_ws_plugin__s2member_pro_menu_pages::add_info_page", 1);
  57.  
  58. add_action ("ws_plugin__s2member_during_gen_ops_page_during_left_sections_during_membership_levels", "c_ws_plugin__s2member_pro_menu_pages::add_level_instructions");
  59. add_action ("ws_plugin__s2member_during_gen_ops_page_during_left_sections_after_login_welcome_page", "c_ws_plugin__s2member_pro_menu_pages::gen_ops_lwp_otos");
  60. add_action ("ws_plugin__s2member_during_gen_ops_page_during_left_sections_after_url_shortening", "c_ws_plugin__s2member_pro_menu_pages::gen_ops_captcha_ops");
  61.  
  62. add_filter ("ws_plugin__s2member_sc_paypal_button_default_attrs", "c_ws_plugin__s2member_pro_paypal_extras::paypal_button_default_attrs", 10, 2);
  63. add_action ("ws_plugin__s2member_before_sc_paypal_button_after_shortcode_atts", "c_ws_plugin__s2member_pro_paypal_extras::paypal_button_after_attrs");
  64. add_filter ("ws_plugin__s2member_during_sc_paypal_button_success_return_url", "c_ws_plugin__s2member_pro_paypal_extras::paypal_button_success_return_url", 10, 2);
  65. add_action ("ws_plugin__s2member_during_paypal_buttons_page_during_left_sections_during_shortcode_attrs_lis", "c_ws_plugin__s2member_pro_menu_pages::paypal_button_attrs");
  66. add_action ("ws_plugin__s2member_during_paypal_ops_page_during_left_sections_during_paypal_pdt_after_more_info", "c_ws_plugin__s2member_pro_menu_pages::paypal_return_template");
  67.  
  68. add_filter ("ws_plugin__s2member_during_scripting_page_during_left_sections_display_api_hooks", "c_ws_plugin__s2member_pro_menu_pages::scripting_page_login_widget_api");
  69. add_filter ("ws_plugin__s2member_during_scripting_page_during_left_sections_display_api_hooks", "c_ws_plugin__s2member_pro_menu_pages::scripting_page_remote_ops_api");
  70. add_action ("ws_plugin__s2member_during_scripting_page_during_left_sections_during_list_of_api_constants", "c_ws_plugin__s2member_pro_menu_pages::scripting_page_api_constants");
  71. add_action ("ws_plugin__s2member_during_scripting_page_during_left_sections_during_list_of_api_constants_farm", "c_ws_plugin__s2member_pro_menu_pages::scripting_page_api_constants");
  72.  
  73. add_filter ("ws_plugin__s2member_recaptcha_keys", "c_ws_plugin__s2member_pro_utils_captchas::recaptcha_keys", 10, 2);
  74.  
  75. add_filter ("ws_plugin__s2member_login_redirect", "c_ws_plugin__s2member_pro_login_redirects::login_redirect", 11, 2);
  76.  
  77. add_filter ("ws_plugin__s2member_return_template_header", "c_ws_plugin__s2member_pro_return_templates::return_template_header", 10, 2);
  78.  
  79. add_filter ("ws_plugin__s2member_profile_s2member_subscr_gateways", "c_ws_plugin__s2member_pro_gateways::profile_subscr_gateways");
  80. add_action ("ws_plugin__s2member_after_loaded", "c_ws_plugin__s2member_pro_gateways::load_gateways", 1);
  81.  
  82. add_filter ("plugin_row_meta", "c_ws_plugin__s2member_pro_menu_pages::module_identifier", 10, 2);
  83. ?>

pro\s2member-pro\includes\hooks.inc.php

Source Code Documentation