Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Until they patch this, you can go into
    <yourpath>/wp-content/plugins/cherry-team-members/admin/includes/class-cherry-team-admin-columns.php

    Find this block of code:
    ` /**
    * [render_page description]
    * @return [type] [description]
    */
    public function render_page() {
    add_submenu_page(
    ‘edit.php?post_type=’ . cherry_team_members_init()->name(),
    esc_html__( ‘Cherry Team Options’, ‘cherry-team’ ),
    esc_html__( ‘Settings’, ‘cherry-team’ ),
    ‘edit_theme_options’,
    $this->page_slug,
    array( $this, ‘options_page’ ),
    ”,
    64
    );
    }
    `

    and fix line 259 by removing the ”, so that 64 is the 7th parameter.

    Thread Starter mattjdever

    (@mattjdever)

    OK. I just posted a request… It comes down to one thing i think…
    I’m just not sure how to read $handle.. my code doesnt show anything in $handle…

    Quick code synopsis here:
    add_action( “woe_csv_print_footer”, function($handle, $formatter) {

    $fh = stream_get_contents($handle, -1, 0);
    $csv = new parseCSV($fh);
    write_log($csv);
    $newhandle = “parsed-export.csv”;
    $data = $csv->data;
    … do stuff here …

    //save csv as new csv file
    echo “Saving New Web Parsed-Orders: $newhandle\n”;
    $handle = $newhandle;
    fputcsv($handle,$newcsv->data);
    }, 10, 2);

    Thanks for all your help. We absolutely love your plugin. and i will definetly use it with other clients.

    Thread Starter mattjdever

    (@mattjdever)

    Clarifying that $handle is the csv datastream? What is $formatter?

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)