• Resolved trungnt

    (@trungnt)


    Dear plugin author,
    I want to import revolution with your plugin. I have customized a function to call ajax import Revolution Slider but error 500 show when i click import. Can you please let me know how to fix it. This is code that i added:

    add_action( ‘pt-ocdi/after_content_import_execution’, array( $this, ‘import_revslider’ ), 40, 3 );
    public function import_revslider( $selected_import_files, $import_files, $selected_index ){
    if ( ! empty( $selected_import_files[‘revslider’] ) && class_exists( ‘RevSlider’ ) ) {
    // $_FILES[‘import_file’][‘tmp_name’] = $selected_import_files[‘revslider’];
    $orevslider = new RevSlider();
    $orevslider->importSliderFromPost( true, true, $selected_import_files[‘revslider’] );
    }
    }

    Thanks!

    • This topic was modified 7 years, 4 months ago by trungnt.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customize Import’ is closed to new replies.