WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Source Redirect Site] Throws PHP Warning

[Plugin: Source Redirect Site] Throws PHP Warning

Viewing 2 replies - 1 through 2 (of 2 total)
  • Looking at the plugin, the author forgot to include the class in the hook calling the method redirect_this.

    Find:

    function redirect() {
    	add_action('get_header', 'redirect_this');

    And replace with:

    function redirect() {
    	add_action('get_header', array( $this, 'redirect_this' ) );

    Plugin Author Press Pixels

    @presspixels

    You are right, just added that to the code – thanks for the info 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Source Redirect Site] Throws PHP Warning’ is closed to new replies.