Skip to content

Commit

Permalink
bugfix/ add_submenu_page
Browse files Browse the repository at this point in the history
Solved: Notice: Die Funktion add_submenu_page wurde fehlerhaft aufgerufen. Der siebte Parameter, der an add_submenu_page() übergeben wird, sollte ein numerischer Wert sein, der die Menüposition angibt. Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 5.3.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 6031
  • Loading branch information
melaniemuellerdesign committed Mar 12, 2024
1 parent b80a486 commit 1ecac7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"melaniemueller.design-localfonts/plugin.php": {
"version": "v0.0.1.8",
"version": "v0.0.1.9",
"package": "https://melaniemueller.design/development/melaniemueller.design-localfonts/melaniemueller.design-localfonts.zip",
"updateURL": "https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json",
"requires": "6.3.2",
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Requires PHP: 5.6
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json
* Version: v0.0.1.8
* Version: v0.0.1.9
*/

/*add localfonts folder to wp-content*/
Expand Down
2 changes: 1 addition & 1 deletion src/pluginmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function add_plugin_menu()
'manage_options', // Capability required to access the menu
'localfonts-slug', // Menu slug
'my_custom_localfonts_page', // Callback function to display the menu content
'menu-icon-my-plugin' // This should match the CSS ID you defined earlier
2 // This will position the submenu item at position 20
);
}
add_action('admin_menu', 'add_plugin_menu');

0 comments on commit 1ecac7a

Please sign in to comment.