• Hello

    i have got this error :
    add_object_page is deprecated since version 4.5 . Use add_menu_page()

    in file:ps-taxonomy-expander.php
    line : 534

    function add_taxonomy_order_menu() {
    		$hook = add_object_page( __( 'Term order', 'ps-taxonomy-expander' ), __( 'Term order', 'ps-taxonomy-expander' ), 'manage_categories', basename( __FILE__ ), array( $this, 'term_order_page' ) );
    		add_action( 'admin_print_styles-' . $hook, array( $this, 'term_order_style' ) );
    		add_action( 'admin_print_scripts-' . $hook, array( $this, 'term_order_scripts' ) );
    	}

    How to fix it ?

    https://www.ads-software.com/plugins/ps-taxonomy-expander/

Viewing 1 replies (of 1 total)
  • szilka

    (@booknewsinc)

    try changing ‘add_object_page’ to ‘add_menu_page’ on line 535 in ps-taxonomy-expander.php

    function add_taxonomy_order_menu() {
    		$hook = add_menu_page( __( 'Term order', 'ps-taxonomy-expander' ), __( 'Term order', 'ps-taxonomy-expander' ), 'manage_categories', basename( __FILE__ ), array( $this, 'term_order_page' ) );
    		add_action( 'admin_print_styles-' . $hook, array( $this, 'term_order_style' ) );
    		add_action( 'admin_print_scripts-' . $hook, array( $this, 'term_order_scripts' ) );
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘add_object_page is deprecated since version 4.5’ is closed to new replies.