plugins - add menu page not showing Icon

I have issues with add menu page it doesn't show my custom Icon.class V {function __construct(){add_action('a

I have issues with add menu page it doesn't show my custom Icon.

class V {
    
    function __construct()
    
    {
        add_action('admin_menu',array($this,'add_plugin_menu'));

    }
    
    function add_plugin_menu(){ 
    
    include( 'Includes/Function/Menu.php' );
    
    }

in my menu.php I used this code :

add_menu_page(
    'V Menu',
    'V Menu',
    'manage_options',
    'custom_page',
    'custom_page_N1',
    plugins_url('/Includes/Images/Icon.png',__FILE__),
    4
    );

I try change sub folders or using (plugin_dir_url( FILE ).'/Includes/Images/Icon.png') but it didn't worked.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742288958a4415837.html

相关推荐

  • plugins - add menu page not showing Icon

    I have issues with add menu page it doesn't show my custom Icon.class V {function __construct(){add_action('a

    19小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信