cornelraiu / search-analytics Goto Github PK
View Code? Open in Web Editor NEWofficial repository for the Search Analytics WordPress plugin
Home Page: https://www.cornelraiu.com/mwt-search-analytics/
official repository for the Search Analytics WordPress plugin
Home Page: https://www.cornelraiu.com/mwt-search-analytics/
Hello, I have the fallowing problem - I've been using your plugin for almost 5 mounths, with no problem until the last WordPress update (6.01), since the update the search bar shows results after 20 secs. If you need the site to check or other infos, pls let me know.
I have two administrators accounts.
One can see the "Search Analytics" option in the menu, but for the other is not showing the menu.
I solved the problem changing one line inside the add_admin_menu() function inside the "admin/includes/class.stats.php" file. Line #98. My solution is not permanently, but works for me.
Original line:
add_submenu_page( 'index.php', __( 'Search Analytics', 'search-analytics' ), __( 'Search Analytics', 'search-analytics' ), $accepted_user_roles[0], FILE, array(
Modified line:
add_submenu_page( 'index.php', __( 'Search Analytics', 'search-analytics' ), __( 'Search Analytics', 'search-analytics' ), 'administrator', FILE, array(
I changed it because the $accepted_user_roles[0] doesn't have "0 position" in some cases.
Debug of the variables used in this function:
$this_user_role:
Array ( [1] => administrator )
$accepted_user_roles:
Array ( [1] => administrator )
$this->plugin_options['mwtsa_display_stats_for_role']:
Array ( [0] => administrator )
I hope it helps, thanks for creating the plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.