Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter edzel

    (@edzel)

    you can also update the plugin in the latest version (1.4.1)

    Thread Starter edzel

    (@edzel)

    Go to line 102 in ihaf.php

    Change

    if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {
    if ( ! ( $pagenow == ‘options-general.php’ && isset( $_GET[‘page’] ) && $_GET[‘page’] == ‘insert-headers-and-footers’ ) ) {
    $setting_page = admin_url( ‘options-general.php?page=’ . $this->plugin->name );
    // load the notices view
    include_once( WP_PLUGIN_DIR . ‘/’ . $this->plugin->name . ‘/views/dashboard-notices.php’ );
    }
    }

    to

    /*
    if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {
    if ( ! ( $pagenow == ‘options-general.php’ && isset( $_GET[‘page’] ) && $_GET[‘page’] == ‘insert-headers-and-footers’ ) ) {
    $setting_page = admin_url( ‘options-general.php?page=’ . $this->plugin->name );
    // load the notices view
    include_once( WP_PLUGIN_DIR . ‘/’ . $this->plugin->name . ‘/views/dashboard-notices.php’ );
    }
    }
    */

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 7 years, 8 months ago by bdbrown.
    Thread Starter edzel

    (@edzel)

    Thank you Delton after that update it works really well in addition I manage to fix that php code error from original code ( empty( get_option( ‘sc_display_global_coupons’ ) ) ) { “Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error” then I’ve change the code to this one ” $res = get_option( ‘sc_display_global_coupons’ ); if ( empty($res) ) { ” and it works well.

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