• Resolved OnionBazaar

    (@onionbazaar)


    Hi there,

    the plugin throws a deprecated notice for contextual_help

    To fix this, edit the file awesome-support/includes/admin/class-admin-help.php

    and replace

    add_filter( 'contextual_help', array( $this, 'settings_general_contextual_help' ), 10, 3 );
    add_filter( 'contextual_help', array( $this, 'settings_registration_help' ), 10, 3 );
    add_filter( 'contextual_help', array( $this, 'settings_products_management_help' ), 10, 3 );
    add_filter( 'contextual_help', array( $this, 'settings_notifications_contextual_help' ), 10, 3 );
    add_filter( 'contextual_help', array( $this, 'settings_advanced_contextual_help' ), 10, 3 );
    add_filter( 'contextual_help', array( $this, 'settings_moderated_registration_help' ), 10, 3 );

    with

    add_filter( 'admin_head', array( $this, 'settings_general_contextual_help' ), 10, 3 );
    add_filter( 'admin_head', array( $this, 'settings_registration_help' ), 10, 3 );
    add_filter( 'admin_head', array( $this, 'settings_products_management_help' ), 10, 3 );
    add_filter( 'admin_head', array( $this, 'settings_notifications_contextual_help' ), 10, 3 );
    add_filter( 'admin_head', array( $this, 'settings_advanced_contextual_help' ), 10, 3 );
    add_filter( 'admin_head', array( $this, 'settings_moderated_registration_help' ), 10, 3 );
  • The topic ‘deprecated: contextual_help’ is closed to new replies.