List of actions and filters in YOURLS

To date: 359 hooks, 108 actions, 251 filters

Hook type Hook name Hook location
filter $hook /includes/functions-plugins.php:194#, /includes/functions-plugins.php:244#, /includes/functions-plugins.php:275#, /includes/functions-deprecated.php:241#
filter action_links /includes/functions-html.php:605#
action activated_plugin /includes/functions-plugins.php:670#
action activated_{$plugin} /includes/functions-plugins.php:671#
filter add_new_link /includes/functions-shorturls.php:164#
action add_new_link_already_stored /includes/functions-shorturls.php:78#
filter add_new_link_already_stored_filter /includes/functions-shorturls.php:89#
action add_new_link_create_keyword /includes/functions-shorturls.php:119#
action add_new_link_custom_keyword /includes/functions-shorturls.php:102#
filter add_new_link_fail_noloop /includes/functions-shorturls.php:71#
filter add_new_link_fail_nourl /includes/functions-shorturls.php:58#
filter add_new_link_keyword_exists /includes/functions-shorturls.php:114#
filter add_new_title /includes/functions-shorturls.php:98#
action add_option /includes/Database/Options.php:220#
filter add_row_protocol_warning /includes/functions-html.php:612#
action admin_headers /includes/functions-html.php:66#
action admin_init /includes/Config/Init.php:122#
filter admin_links /includes/functions-html.php:822#
filter admin_list_where /admin/index.php:294#
action admin_menu /includes/functions-html.php:853#
action admin_notice /includes/functions-html.php:856#
action admin_notices /includes/functions-html.php:855#
action admin_page_after_table /admin/index.php:318#
action admin_page_before_content /admin/index.php:241#
action admin_page_before_form /admin/index.php:254#
action admin_page_before_table /admin/index.php:268#
filter admin_params_possible_date_sort /includes/Views/AdminParams.php:68#
filter admin_params_possible_search /includes/Views/AdminParams.php:55#
filter admin_params_possible_sort /includes/Views/AdminParams.php:57#
filter admin_params_possible_translations /includes/Views/AdminParams.php:59#
filter admin_sublinks /includes/functions-html.php:823#
filter admin_url /includes/functions-links.php:171#
filter admin_view_click_filter /includes/Views/AdminParams.php:212#
filter admin_view_click_limit /includes/Views/AdminParams.php:226#
filter admin_view_date_filter /includes/Views/AdminParams.php:243#
filter admin_view_date_first_between /includes/Views/AdminParams.php:265#
filter admin_view_date_first_unset /includes/Views/AdminParams.php:272#
filter admin_view_date_first_{$date_filter} /includes/Views/AdminParams.php:254#
filter admin_view_date_second_between /includes/Views/AdminParams.php:266#
filter admin_view_date_second_unset /includes/Views/AdminParams.php:273#
filter admin_view_get_search_text /includes/Views/AdminParams.php:132#
filter admin_view_per_page /includes/Views/AdminParams.php:88#
filter admin_view_search_in /includes/Views/AdminParams.php:148#
filter admin_view_sort_by /includes/Views/AdminParams.php:167#
filter admin_view_sort_order /includes/Views/AdminParams.php:198#
filter allow_duplicate_longurls /includes/functions.php:595#
action api /yourls-api.php:16#
filter api_action_{$action} /yourls-api.php:35#
filter api_actions /yourls-api.php:27#
filter api_db_stats /includes/functions-api.php:191#
filter api_expand /includes/functions-api.php:240#
action api_output /includes/functions-api.php:158#
filter api_result_db_stats /includes/functions-api.php:47#
filter api_result_expand /includes/functions-api.php:69#
filter api_result_shorturl /includes/functions-api.php:24#
filter api_result_stats /includes/functions-api.php:37#
filter api_result_url_stats /includes/functions-api.php:58#
filter api_result_version /includes/functions-api.php:82#
filter api_stats /includes/functions-api.php:175#
filter api_url_stats /includes/functions-api.php:206#
action auth_successful /includes/auth.php:28#
filter bodyclass /includes/functions-html.php:73#
action bookmarklet /admin/index.php:108#
filter bookmarklet_jsonp /admin/index.php:134#
action check_ip_flood /includes/functions.php:639#
filter check_timestamp /includes/functions-auth.php:445#
action content_type_header /includes/functions.php:338#
filter content_type_header_charset /includes/functions.php:340#
filter cookie_name /includes/functions-auth.php:564#
filter create_nonce /includes/functions-auth.php:631#
filter custom_escape_real /includes/functions-deprecated.php:334#
filter custom_keyword /includes/functions-shorturls.php:105#
filter date_i18n /includes/functions-l10n.php:667#
filter db_connect_attributes /includes/class-mysql.php:56#
filter db_connect_charset /includes/class-mysql.php:34#
filter db_connect_custom_dsn /includes/class-mysql.php:45#
filter db_connect_driver_option /includes/class-mysql.php:55#
action deactivated_plugin /includes/functions-plugins.php:727#
action deactivated_{$plugin} /includes/functions-plugins.php:728#
action debug_log /includes/functions-debug.php:17#
action delete_link /includes/functions-shorturls.php:245#
action delete_option /includes/Database/Options.php:249#
action deprecated_function /includes/functions.php:1194#
filter deprecated_function_trigger_error /includes/functions.php:1197#
filter die_message /includes/functions-html.php:491#
filter die_title /includes/functions-html.php:490#
filter edit_link /includes/functions-shorturls.php:332#, /includes/functions-shorturls.php:379#
filter encodeURI /includes/functions-deprecated.php:60#
filter esc_attr /includes/functions-formatting.php:494#
filter esc_html /includes/functions-formatting.php:480#
filter esc_js /includes/functions-formatting.php:668#
filter esc_textarea /includes/functions-formatting.php:681#
filter esc_url /includes/functions-formatting.php:564#
filter esc_url_protocols /includes/functions-formatting.php:554#
filter geo_countrycode_to_countryname /includes/functions-geo.php:139#
filter geo_get_flag /includes/functions-geo.php:152#
filter geo_ip_path_to_db /includes/functions-geo.php:32#
filter geo_ip_to_countrycode /includes/functions-geo.php:62#
filter geo_use_cloudflare /includes/functions-geo.php:22#
filter get_IP /includes/functions.php:40#
filter get_all_options /includes/Database/Options.php:78#
filter get_available_languages /includes/functions-l10n.php:590#
filter get_cookie_life /includes/functions-auth.php:535#
filter get_date_format /includes/functions-formatting.php:786#
filter get_datetime_format /includes/functions-formatting.php:775#
filter get_db /includes/class-mysql.php:90#
filter get_db_stats /includes/functions.php:196#
filter get_duplicate_keywords /includes/functions-deprecated.php:203#
filter get_favicon_url /includes/functions-links.php:270#
filter get_keyword_info /includes/functions-shorturls.php:521#
filter get_keyword_infos /includes/functions-shorturls.php:479#, /includes/functions-shorturls.php:496#
action get_keyword_not_cached /includes/functions-shorturls.php:482#
filter get_link_stats /includes/functions-shorturls.php:615#
filter get_locale /includes/functions-l10n.php:49#
filter get_longurl_keywords /includes/functions-shorturls.php:635#
filter get_next_decimal /includes/functions.php:50#
filter get_nonce_life /includes/functions-auth.php:550#
filter get_num_queries /includes/functions-debug.php:40#
filter get_option_{$option_name} /includes/functions-options.php:27#
filter get_protocol /includes/functions.php:1141#
filter get_referrer /includes/functions.php:223#
filter get_relative_url /includes/functions.php:1167#
filter get_remote_title /includes/functions.php:927#
filter get_remote_title_max_byte /includes/functions.php:870#
filter get_request /includes/functions.php:1011#
filter get_shorturl_charset /includes/functions-shorturls.php:180#
filter get_stats /includes/functions.php:177#
filter get_time_format /includes/functions-formatting.php:797#
filter get_time_offset /includes/functions-formatting.php:764#
filter get_timestamp /includes/functions-formatting.php:753#
filter get_user_agent /includes/functions.php:212#
filter get_yourls_site /includes/functions-links.php:206#
filter hash_algo /includes/functions-auth.php:256#
filter hash_options /includes/functions-auth.php:266#
filter help_link /includes/functions-html.php:799#
filter hmac_algo /includes/functions-auth.php:610#
action html_addnew /includes/functions-html.php:200#
action html_footer /includes/functions-html.php:166#
filter html_footer_text /includes/functions-html.php:158#
action html_head /includes/functions-html.php:128#
filter html_head_content-type /includes/functions-html.php:65#
action html_head_meta /includes/functions-html.php:89#
filter html_head_meta_content-type /includes/functions-html.php:86#
filter html_language_attributes /includes/functions-html.php:938#
filter html_language_attributes_doctype /includes/functions-html.php:927#
filter html_link /includes/functions-html.php:732#
action html_logo /includes/functions-html.php:18#
filter html_select /includes/functions-html.php:384#
filter html_select_options /includes/functions-html.php:376#
action html_tfooter /includes/functions-html.php:357#
filter html_title /includes/functions-html.php:79#
filter http_default_options /includes/functions-http.php:141#
filter http_default_options_timeout /includes/functions-http.php:131#
filter http_get_proxy /includes/functions-http.php:105#
filter http_get_proxy_bypass_host /includes/functions-http.php:118#
filter http_proxy_is_defined /includes/functions-deprecated.php:265#
filter http_request_data /includes/functions-http.php:238#
filter http_request_headers /includes/functions-http.php:237#
filter http_request_options /includes/functions-http.php:239#
filter http_request_type /includes/functions-http.php:235#
filter http_request_url /includes/functions-http.php:236#
filter http_user_agent /includes/functions-http.php:257#
action infos_keyword_not_found /yourls-infos.php:28#
action infos_no_keyword /yourls-infos.php:9#
action init /includes/Config/Init.php:82#
action insert_link /includes/functions-shorturls.php:274#
filter int2string /includes/functions-formatting.php:26#
action ip_flood /includes/functions.php:648#
filter is_API /includes/functions.php:761#
filter is_Ajax /includes/functions.php:770#
filter is_GO /includes/functions.php:779#
filter is_admin /includes/functions.php:797#
filter is_allowed_protocol /includes/functions.php:1114#
filter is_infos /includes/functions.php:788#
filter is_installed /includes/functions.php:686#
filter is_installing /includes/functions.php:663#
filter is_mobile_device /includes/functions.php:951#
filter is_page /includes/functions-shorturls.php:429#
filter is_private /includes/functions.php:581#
filter is_shorturl /includes/functions-shorturls.php:206#
filter is_ssl /includes/functions.php:841#
filter is_upgrading /includes/functions.php:673#
filter is_user_from_env /includes/functions-auth.php:711#
filter is_valid_user /includes/functions-auth.php:93#
filter keyword_is_free /includes/functions-shorturls.php:417#
filter keyword_is_reserved /includes/functions-shorturls.php:226#
filter keyword_is_taken /includes/functions-shorturls.php:457#
filter kses_allowed_entities /includes/functions-kses.php:58#
filter kses_allowed_protocols /includes/functions-kses.php:62#
action load-{$plugin_page} /includes/functions-plugins.php:810#
filter load_custom_textdomain /includes/functions-l10n.php:1017#
action load_template_go /yourls-loader.php:50#
action load_template_infos /yourls-loader.php:58#
action load_template_redirect_admin /yourls-loader.php:37#
action load_textdomain /includes/functions-l10n.php:465#
filter load_textdomain_mofile /includes/functions-l10n.php:467#
action loader_failed /yourls-loader.php:67#
action login /includes/functions-auth.php:97#
action login_failed /includes/functions-auth.php:116#
action login_form_bottom /includes/functions-html.php:765#
action login_form_end /includes/functions-html.php:772#
action login_form_top /includes/functions-html.php:754#
action logout /includes/functions-auth.php:40#
filter logout_link /includes/functions-html.php:795#, /includes/functions-html.php:797#
filter match_current_protocol /includes/functions-links.php:232#
filter maybe_hash_password /includes/functions-auth.php:736#
filter needs_ssl /includes/functions.php:815#
action new_core_version_notice /includes/functions-html.php:976#
filter number_format_i18n /includes/functions-l10n.php:608#
filter override_load_textdomain /includes/functions-l10n.php:459#
filter override_unload_textdomain /includes/functions-l10n.php:497#
filter plugin_url /includes/functions-plugins.php:756#
action plugins_loaded /includes/Config/Init.php:110#
filter plugins_sort_callback /includes/functions-plugins.php:832#, /includes/functions-plugins.php:833#
action post_add_new_link /includes/functions-shorturls.php:162#
action post_page /includes/functions-html.php:909#
action post_redirect_javascript /includes/functions.php:395#
action post_yourls_info_location /yourls-infos.php:469#
action post_yourls_info_sources /yourls-infos.php:536#
action post_yourls_info_stats /yourls-infos.php:432#
action pre_add_new_link /includes/functions-shorturls.php:74#
action pre_api_output /includes/functions-api.php:107#
action pre_check_ip_flood /includes/functions.php:611#
action pre_edit_link /includes/functions-shorturls.php:351#
action pre_get_keyword /includes/functions-shorturls.php:476#
action pre_get_request /includes/functions.php:973#
action pre_html_head /includes/functions-html.php:30#
action pre_html_logo /includes/functions-html.php:9#
action pre_load_template /yourls-loader.php:25#
action pre_login /includes/functions-auth.php:47#
action pre_login_cookie /includes/functions-auth.php:88#
action pre_login_signature /includes/functions-auth.php:70#
action pre_login_signature_timestamp /includes/functions-auth.php:58#
action pre_login_username_password /includes/functions-auth.php:79#
action pre_page /includes/functions-html.php:907#
action pre_redirect /includes/functions.php:242#
action pre_redirect_bookmarklet /yourls-loader.php:38#
action pre_redirect_javascript /includes/functions.php:381#
action pre_setcookie /includes/functions-auth.php:472#
action pre_share_redirect /admin/index.php:151#
action pre_stats_countries_map /includes/functions-infos.php:12#
action pre_stats_line /includes/functions-infos.php:180#
action pre_stats_pie /includes/functions-infos.php:47#
action pre_yourls_die /includes/functions-html.php:482#
filter pre_yourls_info_countries /yourls-infos.php:192#
filter pre_yourls_info_dates /yourls-infos.php:187#
filter pre_yourls_info_direct /yourls-infos.php:185#
filter pre_yourls_info_last_24h /yourls-infos.php:191#
filter pre_yourls_info_list_of_days /yourls-infos.php:188#
filter pre_yourls_info_list_of_months /yourls-infos.php:189#
filter pre_yourls_info_list_of_years /yourls-infos.php:190#
action pre_yourls_info_location /yourls-infos.php:443#
filter pre_yourls_info_notdirect /yourls-infos.php:186#
filter pre_yourls_info_referrer_sort /yourls-infos.php:184#
filter pre_yourls_info_referrers /yourls-infos.php:183#
action pre_yourls_info_sources /yourls-infos.php:480#
action pre_yourls_info_stats /yourls-infos.php:256#
action pre_yourls_infos /yourls-infos.php:33#
filter random_keyword /includes/functions-shorturls.php:125#
filter redirect_code /includes/functions.php:244#
filter redirect_javascript /includes/functions.php:382#
action redirect_keyword_not_found /yourls-go.php:26#, /yourls-loader.php:66#
filter redirect_location /includes/functions.php:243#
action redirect_no_keyword /yourls-go.php:7#
action redirect_shorturl /includes/functions.php:276#
action require_auth /includes/functions-auth.php:14#
action require_no_auth /includes/functions-auth.php:17#
filter rnd_string /includes/functions.php:752#
filter sanitize_string /includes/functions-formatting.php:85#
filter sanitize_title /includes/functions-formatting.php:106#
filter sanitize_url /includes/functions-formatting.php:120#
filter sanitize_url_safe /includes/functions-formatting.php:139#
action set_DB_driver /includes/class-mysql.php:26#
filter set_cookie_value /includes/functions-auth.php:575#
filter setcookie_domain /includes/functions-auth.php:464#
action setcookie_failed /includes/functions-auth.php:478#
filter setcookie_httponly /includes/functions-auth.php:466#
filter setcookie_path /includes/functions-auth.php:463#
filter setcookie_samesite /includes/functions-auth.php:501#
filter setcookie_secure /includes/functions-auth.php:465#
filter share_box_data /includes/functions-html.php:425#
action share_links /includes/functions-html.php:459#
action share_redirect_{$_GET[share]} /admin/index.php:188#
action shareboxes_after /includes/functions-html.php:465#
action shareboxes_before /includes/functions-html.php:434#
action shareboxes_middle /includes/functions-html.php:447#
filter shunt_add_new_link /includes/functions-shorturls.php:33#
filter shunt_all_options /includes/functions-options.php:43#
filter shunt_check_IP_flood /includes/functions.php:607#
filter shunt_delete_link_by_keyword /includes/functions-shorturls.php:237#
filter shunt_edit_link /includes/functions-shorturls.php:317#
filter shunt_edit_link_title /includes/functions-shorturls.php:391#
filter shunt_geo_countrycode_to_countryname /includes/functions-geo.php:77#
filter shunt_geo_ip_to_countrycode /includes/functions-geo.php:17#
filter shunt_get_database_version /includes/functions-install.php:30#
filter shunt_get_db /includes/class-mysql.php:83#
filter shunt_get_keyword_info /includes/functions-shorturls.php:510#
filter shunt_get_remote_title /includes/functions.php:856#
filter shunt_get_request /includes/functions.php:968#
filter shunt_html_addnew /includes/functions-html.php:180#
filter shunt_html_favicon /includes/functions-html.php:1031#
filter shunt_is_valid_user /includes/functions-auth.php:28#
filter shunt_keyword_is_taken /includes/functions-shorturls.php:445#
filter shunt_log_redirect /includes/functions.php:479#
filter shunt_maybe_check_core_version /includes/functions-http.php:457#
filter shunt_no_frame_header /includes/functions.php:320#
filter shunt_option_{$option_name} /includes/functions-options.php:19#
filter shunt_send_through_proxy /includes/functions-http.php:159#
filter shunt_share_box /includes/functions-html.php:410#
filter shunt_update_clicks /includes/functions.php:92#
filter shunt_url_exists /includes/functions-shorturls.php:290#
filter shunt_yourls_create_sql_tables /includes/functions-install.php:204#
filter shunt_yourls_http_request /includes/functions-http.php:224#
action shutdown /includes/functions-plugins.php:868#
filter site_url /includes/functions-links.php:189#
filter skip_password_hashing /includes/functions-auth.php:746#
filter skip_version_check /includes/functions-http.php:506#
action social_bookmarklet_buttons_after /admin/tools.php:281#
filter stat_query_country /yourls-infos.php:97#
filter stat_query_dates /yourls-infos.php:120#
filter stat_query_last24h /yourls-infos.php:163#
filter stat_query_referrer /yourls-infos.php:62#
filter stats_countries_map /includes/functions-infos.php:32#
filter stats_countries_map_options /includes/functions-infos.php:28#
filter stats_line /includes/functions-infos.php:211#
filter stats_line_options /includes/functions-infos.php:207#
filter stats_pie /includes/functions-infos.php:89#
filter stats_pie_options /includes/functions-infos.php:82#
action status_header /includes/functions.php:355#
filter string2htmlid /includes/functions-deprecated.php:80#
filter string2int /includes/functions-formatting.php:48#
filter table_add_row /includes/functions-html.php:659#
filter table_add_row_action_array /includes/functions-html.php:595#
filter table_add_row_cell_array /includes/functions-html.php:649#
filter table_edit_row /includes/functions-html.php:534#
filter table_end /includes/functions-html.php:713#
filter table_head_cells /includes/functions-html.php:673#
filter table_head_end /includes/functions-html.php:686#
filter table_head_start /includes/functions-html.php:671#
filter table_tbody_end /includes/functions-html.php:704#
filter table_tbody_start /includes/functions-html.php:695#
filter translate /includes/functions-l10n.php:67#
filter translate_n /includes/functions-l10n.php:341#
filter translate_nx /includes/functions-l10n.php:361#
filter translate_with_context /includes/functions-l10n.php:88#
filter trim_long_string /includes/functions-formatting.php:225#
filter unique_element_id /includes/functions-formatting.php:60#
action unload_textdomain /includes/functions-l10n.php:502#
action update_clicks /includes/functions.php:114#
action update_next_decimal /includes/functions.php:69#
action update_option /includes/Database/Options.php:175#
filter url_exists /includes/functions-shorturls.php:303#
filter verify_nonce /includes/functions-auth.php:688#
filter version_check_stuff /includes/functions-http.php:331#
action yourls_ajax_{$action} /admin/admin-ajax.php:44#
action yourls_die /includes/functions-html.php:493#
filter yourls_link /includes/functions-links.php:144#
filter yourls_salt /includes/functions-auth.php:600#
filter yourls_statlink /includes/functions-links.php:157#

Generated: Sat, 01 Oct 2022 at 04:30:23

This list is generated every night against the current development version (master branch) of YOURLS.