{"id":19311071,"url":"https://github.com/boxuk/wp-iconography","last_synced_at":"2026-01-02T09:38:01.802Z","repository":{"id":247967849,"uuid":"772591323","full_name":"boxuk/wp-iconography","owner":"boxuk","description":"Adds inline iconography options to the WordPress editor.","archived":false,"fork":false,"pushed_at":"2024-09-16T09:30:57.000Z","size":641,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-16T10:59:56.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T13:53:17.000Z","updated_at":"2024-09-16T09:26:20.000Z","dependencies_parsed_at":"2024-07-31T19:10:55.523Z","dependency_job_id":"8f7951a4-3315-411f-b4b9-6a0e39288c6b","html_url":"https://github.com/boxuk/wp-iconography","commit_stats":null,"previous_names":["boxuk/wp-iconography"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fwp-iconography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fwp-iconography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fwp-iconography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fwp-iconography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxuk","download_url":"https://codeload.github.com/boxuk/wp-iconography/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250258736,"owners_count":21400960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:27:34.716Z","updated_at":"2026-01-02T09:38:01.761Z","avatar_url":"https://github.com/boxuk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Box WordPress Iconography Support\n\nAdd the ability to add icons inline to your content in the WordPress block editor.\n\n## Quick Start!\nAdd this plugin to your WordPress site and include a configuration file and it's ready to use!\n\nIf you're using composer, then it's as simple as `composer require boxuk/wp-iconography`.\n\n## Configuration\n\nConfiguration files are based on a schema that allows you to quickly define the configuration.\nThey're loaded automatically from `wp-content/themes/{theme_name}/icons/*.config.json`, or you can define any custom paths using the filter available:\n```php\nadd_filter(\n\t'boxuk_iconography_files',\n\tfunction ( $config_files ) {\n\t\t$config_files['example'] = __DIR__ . '/config/example.config.json';\n\t\treturn $config_files;\n\t}\n);\n```\n\nThere's also example configuration files included in the plugin, so if you want to load **Material Symbols** you can just load the config included using this snippet:\n```php\nadd_filter(\n\t'boxuk_iconography_files',\n\tfunction ( $config_files ) {\n\t\t$plugin_dir = WP_CONTENT_DIR . '/mu-plugins/wp-iconography'; // make sure this is valid for your project!\n\n\n\t\t// Remove any unnecessary\n\t\t$config_files['material-symbols-outlined']        = $plugin_dir . '/config/material-symbols-outlined.config.json';\n\t\t$config_files['material-symbols-outlined-filled'] = $plugin_dir . '/config/material-symbols-outlined-filled.config.json';\n\t\t$config_files['material-symbols-sharp']           = $plugin_dir . '/config/material-symbols-sharp.config.json';\n\t\t$config_files['material-symbols-sharp-filled']    = $plugin_dir . '/config/material-symbols-sharp-filled.config.json';\n\t\t$config_files['material-symbols-rounded']         = $plugin_dir . '/config/material-symbols-rounded.config.json';\n\t\t$config_files['material-symbols-rounded-filled']  = $plugin_dir . '/config/material-symbols-rounded-filled.config.json';\n\t\treturn $config_files;\n\t}\n);\n```\n\nThere's loads of filters available to change the way icons load, so feel free to look through the source code at the available filters. And if there's function that doesn't work for you, PRs are always welcome!\n\n## Configuration Schema\n\nThe Schema for configuration includes:\n - **Title** - the name output in the editor.\n - **Name** - the unique key/name for the icon set. I'd recommend `namespace/name` format.\n - **Tag Name** - this is the HTML tag that will be used to generate the output for the icon.\n - **Class Name** - this is used to generate the output for the icon\n - **URL** - the CSS file to load\n - **Additional CSS** - any inline CSS to include that might be relevant.\n - **Icons** - an array of:\n\t- **Label** - the value to use in the admin interface. Used for searches and is displayed on hover.\n\t- **Content** - the content inside the HTML generated.\n\nSample JSON file:\n```json\n{\n\t\"title\": \"Example\",\n\t\"name\": \"boxuk/example\",\n\t\"tagName\": \"span\",\n\t\"className\": \"boxuk-icon-example\",\n\t\"url\": \"...\",\n\t\"additionalCSS\": \".boxuk-icon-example { font-weight: 700; }\",\n\t\"icons\": [\n\t\t{ \"label\": \"Example\", \"content\": \"example-content\" }\n\t]\n}\n```\n\nGenerated output:\n```html\n\u003cspan class=\"boxuk-icon-example\"\u003eexample-content\u003c/span\u003e\n```\n\n## Contributing\nPlease do not submit any Pull Requests here. They will be closed.\n---\n\nPlease submit your PR here instead: https://github.com/boxuk/wp-packages\n\nThis repository is what we call a \"subtree split\": a read-only subset of that main repository.\nWe're looking forward to your PR there!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fwp-iconography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxuk%2Fwp-iconography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fwp-iconography/lists"}