{"id":72614,"date":"2017-08-01T09:24:32","date_gmt":"2017-08-01T09:24:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nav-menu-trim\/"},"modified":"2024-08-21T09:09:47","modified_gmt":"2024-08-21T09:09:47","slug":"nav-menu-trim","status":"publish","type":"plugin","link":"https:\/\/ku.wordpress.org\/plugins\/nav-menu-trim\/","author":8903959,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.4","stable_tag":"1.2.4","tested":"6.6.5","requires":"4.9","requires_php":"5.6","requires_plugins":null,"header_name":"Nav Menu Trim","header_author":"thingsym","header_description":"This WordPress plugin trim html id\/class attributes of Nav Menu.","assets_banners_color":"","last_updated":"2024-08-21 09:09:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/sponsors\/thingsym","header_plugin_uri":"https:\/\/github.com\/thingsym\/nav-menu-trim","header_author_uri":"https:\/\/management.thingslabo.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":3429,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"thingsym","date":"2017-08-01 09:25:29"},"1.0.1":{"tag":"1.0.1","author":"thingsym","date":"2017-08-08 07:57:24"},"1.0.2":{"tag":"1.0.2","author":"thingsym","date":"2017-08-17 09:10:22"},"1.1.0":{"tag":"1.1.0","author":"thingsym","date":"2017-09-03 09:26:08"},"1.1.1":{"tag":"1.1.1","author":"thingsym","date":"2019-01-12 16:04:47"},"1.1.2":{"tag":"1.1.2","author":"thingsym","date":"2020-12-18 08:47:03"},"1.2.0":{"tag":"1.2.0","author":"thingsym","date":"2021-07-23 11:41:20"},"1.2.1":{"tag":"1.2.1","author":"thingsym","date":"2021-12-08 07:46:14"},"1.2.2":{"tag":"1.2.2","author":"thingsym","date":"2022-02-01 11:02:47"},"1.2.3":{"tag":"1.2.3","author":"thingsym","date":"2022-06-03 09:35:38"},"1.2.4":{"tag":"1.2.4","author":"thingsym","date":"2024-08-21 09:09:47"}},"upgrade_notice":{"1.2.2":"<ul>\n<li>Requires at least version 4.9 of the WordPress<\/li>\n<li>Requires PHP version 5.6<\/li>\n<\/ul>","1.1.1":"<ul>\n<li>Requires at least version 3.8 of the WordPress<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":3138839,"resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":3138839,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Appearance &gt; Customize &gt; Menus","2":"Nav Menu Trim options"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1865,4891],"plugin_category":[43],"plugin_contributors":[78488],"plugin_business_model":[],"class_list":["post-72614","plugin","type-plugin","status-publish","hentry","plugin_tags-menu","plugin_tags-nav","plugin_category-customization","plugin_contributors-thingsym","plugin_committers-thingsym"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/nav-menu-trim.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/nav-menu-trim\/trunk\/screenshot-1.png?rev=3138839","caption":"Appearance &gt; Customize &gt; Menus"},{"src":"https:\/\/ps.w.org\/nav-menu-trim\/trunk\/screenshot-2.png?rev=3138839","caption":"Nav Menu Trim options"}],"raw_content":"<!--section=description-->\n<p>Nav Menu Trim plugin trim html id\/class attributes of Nav Menu.<\/p>\n\n<h4>Support<\/h4>\n\n<p>If you have any trouble, you can use the forums or report bugs.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/nav-menu-trim\/\">https:\/\/wordpress.org\/support\/plugin\/nav-menu-trim\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/nav-menu-trim\/issues\">https:\/\/github.com\/thingsym\/nav-menu-trim\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Contribution<\/h4>\n\n<p>Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.<\/p>\n\n<p>Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors.<\/p>\n\n<p>If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/thingsym\/nav-menu-trim\">VCS - GitHub<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/nav-menu-trim\/\">Homepage - WordPress Plugin<\/a><\/li>\n<li><a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/nav-menu-trim\">Translate Nav Menu Trim into your language.<\/a><\/li>\n<\/ul>\n\n<p>You can also contribute by answering issues on the forums.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/nav-menu-trim\/\">https:\/\/wordpress.org\/support\/plugin\/nav-menu-trim\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/nav-menu-trim\/issues\">https:\/\/github.com\/thingsym\/nav-menu-trim\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Patches and Bug Fixes<\/h4>\n\n<p>Forking on Github is another good way. You can send a pull request.<\/p>\n\n<ol>\n<li>Fork <a href=\"https:\/\/github.com\/thingsym\/nav-menu-trim\">Nav Menu Trim<\/a> from GitHub repository<\/li>\n<li>Create a feature branch: git checkout -b my-new-feature<\/li>\n<li>Commit your changes: git commit -am 'Add some feature'<\/li>\n<li>Push to the branch: git push origin my-new-feature<\/li>\n<li>Create new Pull Request<\/li>\n<\/ol>\n\n<h4>Contribute guidlines<\/h4>\n\n<p>If you would like to contribute, here are some notes and guidlines.<\/p>\n\n<ul>\n<li>All development happens on the <strong>develop<\/strong> branch, so it is always the most up-to-date<\/li>\n<li>The <strong>master<\/strong> branch only contains tagged releases<\/li>\n<li>If you are going to be submitting a pull request, please submit your pull request to the <strong>develop<\/strong> branch<\/li>\n<li>See about <a href=\"https:\/\/help.github.com\/articles\/fork-a-repo\/\">forking<\/a> and <a href=\"https:\/\/help.github.com\/articles\/using-pull-requests\/\">pull requests<\/a><\/li>\n<\/ul>\n\n<h4>Test Matrix<\/h4>\n\n<p>For operation compatibility between PHP version and WordPress version, see below <a href=\"https:\/\/github.com\/thingsym\/nav-menu-trim\/actions\">Github Actions<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip files. Or install <strong>Nav Menu Trim<\/strong> using the WordPress plugin installer. In that case, skip 2.<\/li>\n<li>Upload <strong>nav-menu-trim<\/strong> to the \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Configure settings through the <strong>Appearance &gt; Customize &gt; Menus &gt; Nav Menu Trim<\/strong> menu in WordPress.<\/li>\n<li>Have fun!<\/li>\n<\/ol>\n\n<h4>Filter hooks<\/h4>\n\n<ul>\n<li>nav_menu_trim_get_options<\/li>\n<li>nav_menu_trim_get_option<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>tested up to 6.2.0<\/li>\n<li>fix composer scripts<\/li>\n<li>update github actions<\/li>\n<li>fix load_textdomain method for testability<\/li>\n<li>add msgmerge to composer scripts<\/li>\n<li>add support section and enhance contribution section to README<\/li>\n<li>fix license<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>add composer script<\/li>\n<li>remove makepot:php composer script<\/li>\n<li>change makepot from php script to wp cli<\/li>\n<li>change plugin initialization to plugins_loaded hook<\/li>\n<li>replace assert from assertEquals to assertSame<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>fix wp-plugin-unit-test.yml<\/li>\n<li>add Upgrade Notice<\/li>\n<li>change requires at least to wordpress 4.9<\/li>\n<li>change requires to PHP 5.6<\/li>\n<li>bump up yoast\/phpunit-polyfills version<\/li>\n<li>update wp-plugin-unit-test.yml<\/li>\n<li>change os to ubuntu-20.04 for ci<\/li>\n<li>add wp-plugin-unit-test-matrix.yml<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>add test case for customizer<\/li>\n<li>update composer dependencies<\/li>\n<li>change from protected variable to public variable for unit test<\/li>\n<li>add timeout-minutes to workflows<\/li>\n<li>add phpunit-polyfills<\/li>\n<li>tested up to 5.8.0<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>tested up to 5.7.0<\/li>\n<li>add composer scripts<\/li>\n<li>update japanese translation<\/li>\n<li>update pot<\/li>\n<li>add test case<\/li>\n<li>change constant name<\/li>\n<li>add sponsor link<\/li>\n<li>add FUNDING.yml<\/li>\n<li>add donate link<\/li>\n<li>update wordpress-test-matrix<\/li>\n<li>add GitHub actions for CI\/CD, remove .travis.yml<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>rename sanitize_callback function from sanitize_checkbox to sanitize_boolean<\/li>\n<li>fix indent and reformat with phpcs and phpcbf<\/li>\n<li>add composer.json for test<\/li>\n<li>add static code analysis config<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>fix access modifier<\/li>\n<li>fix tests<\/li>\n<li>fix PHPDoc comment<\/li>\n<li>fix filter nav_menu_trim_get_options and nav_menu_trim_get_option<\/li>\n<li>change to add_action with load_textdomain<\/li>\n<li>add sanitize_checkbox<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>update screenshot<\/li>\n<li>fix PHPDoc comment<\/li>\n<li>remove $languages_path<\/li>\n<li>fix .travis.yml<\/li>\n<li>fix tests<\/li>\n<li>add nav_menu_submenu_css_class function<\/li>\n<li>fix get_options function<\/li>\n<li>add default_options<\/li>\n<li>fix load_textdomain<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>fix tests<\/li>\n<li>fix data validation via wp_kses<\/li>\n<li>change output css to here document<\/li>\n<li>fix option detect<\/li>\n<li>change add_filter from plugin_action_links to plugin_action_links_{$plugin_file}<\/li>\n<li>add init function<\/li>\n<li>fix codesniffer.ruleset.xml<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>fixed: fix .travis.yml<\/li>\n<li>fixed: fix trim_css_class function<\/li>\n<li>fixed: check exists class<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"Nav Menu Trim plugin trim html id\/class attributes of Nav Menu.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/72614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=72614"}],"author":[{"embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thingsym"}],"wp:attachment":[{"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=72614"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=72614"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=72614"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=72614"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=72614"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ku.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=72614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}