1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add Easy Digital Download Filter

Discussion in 'PHP & Perl' started by tompots, Oct 7, 2014.

Thread Status:
Not open for further replies.
  1. tompots

    tompots Elite Member Premium Member

    Joined:
    Dec 11, 2011
    Messages:
    4,352
    Likes Received:
    3,955
    Gender:
    Male
    Occupation:
    Full Time Bot Developer
    Location:
    Professional Botters
    Home Page:
    ---- THREAD CLOSED 10/09/2014 ----
    I'm trying to add a filter to stop the logging of Easy Digital Downloads api. I'm not that knowledgeable when it comes to php so I need to get some help form you guys. I'm trying to ad this filter below to stop the api logging.

    Code:
    add_filter( 'edd_api_log_requests', '__return_false' );
    
    I'm trying to add the filter through a plugin called Pluginception, that allows the creation of custom plugins for wordpress.
    Code:
    https://wordpress.org/plugins/pluginception/
    
    Here is what I have so far, but it's not stopping the logging. Please keep in mind that I'm not good with php at all. Any help with this would be much appreciated

    Code:
    <?php
    /*
    Plugin Name: EDD API Filter
    Plugin URI: xxx
    Description: xxx
    Version: 1.01
    Author: xxx
    Author URI: xxx
    License: N\A
    License URI: xxx
    */
    
    add_filter( 'edd_api_log_requests', '__return_false' );
    
     
    Last edited: Oct 7, 2014
Thread Status:
Not open for further replies.