PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
paid-memberships-pro
/
includes
<?php /** * Deprecated hooks, filters and functions * * @since 2.0 */ /** * Check for deprecated filters. */ function pmpro_init_check_for_deprecated_filters() { global $wp_filter; $pmpro_map_deprecated_filters = array( 'pmpro_getfile_extension_blocklist' => 'pmpro_getfile_extension_blacklist', ); foreach ( $pmpro_map_deprecated_filters as $new => $old ) { if ( has_filter( $old ) ) { /* translators: 1: the old hook name, 2: the new or replacement hook name */ trigger_error( sprintf( esc_html__( 'The %1$s hook has been deprecated in Paid Memberships Pro. Please use the %2$s hook instead.', 'paid-memberships-pro' ), $old, $new ) ); // Add filters back using the new tag. foreach( $wp_filter[$old]->callbacks as $priority => $callbacks ) { foreach( $callbacks as $callback ) { add_filter( $new, $callback['function'], $priority, $callback['accepted_args'] ); } } } } } add_action( 'init', 'pmpro_init_check_for_deprecated_filters', 99 );
[+]
..
[-] services.php
[edit]
[-] recaptcha.php
[edit]
[-] upgradecheck.php
[edit]
[-] rest-api.php
[edit]
[+]
updates
[-] email.php
[edit]
[-] updates.php
[edit]
[-] states.php
[edit]
[-] license.php
[edit]
[-] content.php
[edit]
[-] login.php
[edit]
[+]
compatibility
[-] https.php
[edit]
[-] metaboxes.php
[edit]
[-] localization.php
[edit]
[-] deprecated.php
[edit]
[-] notifications.php
[edit]
[-] adminpages.php
[edit]
[-] capabilities.php
[edit]
[-] profile.php
[edit]
[+]
lib
[-] cleanup.php
[edit]
[-] countries.php
[edit]
[-] sessions.php
[edit]
[-] currencies.php
[edit]
[-] addons.php
[edit]
[-] functions.php
[edit]
[-] filters.php
[edit]
[-] xmlrpc.php
[edit]
[-] setup.sql
[edit]
[-] compatibility.php
[edit]
[-] admin.php
[edit]
[-] privacy.php
[edit]
[-] pointers.php
[edit]
[-] init.php
[edit]
[-] reports.php
[edit]