admin管理员组文章数量:1389758
I wonder how is it possible to see what is the addon installation path in ftp (folder name) during addon installation. I mean when we upload addon and then we have these texts saying that addon is being installed etc. When we have already installed an addon, and we try again to install it then we have information saying that it's not possible because addon already exists, and WP shows us a path. I would like to achieve something like that during installation. I need to know folder name after addon installation.
I know it's simple when we modify WP code, maybe we can even copy and paste already existing code which shows us a path to addon when try to install an already existing addon, but I'm not so good in php programming. Maybe there is .. an addon with such functionality? :)
EDIT:
Ok I found the file class-wp-upgrader.php and place where I should add code, it's line 800 and after $this->skin->feedback( 'process_success' );
I added my code: $this->skin->feedback( 'Source: ', $remote_destination );
but during installation I have text "Source: ", only, I don't understand why, in this file this value was defined at the top $remote_destination = $wp_filesystem->find_folder( $local_destination );
本文标签: pluginsHow to show WP addon installation path during installation
版权声明:本文标题:plugins - How to show WP addon installation path during installation? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744623008a2616142.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论