Created
October 28, 2019 08:06
-
-
Save hmowais/f4ef511ab71c031a6b4de4ae9b8c5f4a to your computer and use it in GitHub Desktop.
Modify Plugin Function in Theme Functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function enqueue_scripts() { | |
// Empty redirect. | |
$redirect_fail = ''; | |
// Set the redirect URL. | |
$redirectOnFail = esc_url( apply_filters( 'avwp_redirect_on_fail_link', $redirect_fail ) ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('avwp_redirect_on_fail_link', 'modify_plugin_function'); | |
function modify_plugin_function($redirect_fail){ | |
return $redirect_fail = 'http://www.google.com'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment