跳到内容

GP Project Icon

v1.0.1

Pedro Mendonça · 2024年10月7日 上架

Add icons to your GlotPress projects.

正在使用
10 以下
评分
暂无
累计下载
1,097
最近更新
2025年4月19日
需要 WordPress 5.3+已测试到 6.7.12PHP 7.4+

截图

Projects page with added icons
Projects page with added icons
Project page with header icon and sub-project icons
Project page with header icon and sub-project icons
Project page with header icon and translation sets
Project page with header icon and translation sets
Project page with header icon and sub-project icons
Project page with header icon and sub-project icons
Project edit/new form with no icon selected
Project edit/new form with no icon selected
Project edit/new form selecting an icon from the media library
Project edit/new form selecting an icon from the media library
Project edit/new form with icon selected
Project edit/new form with icon selected

This GlotPress plugin allows you to add icons to your projects.

Up to GlotPress v4.0.1 the templates ‘project.php’ and ‘projects.php’ don’t have the necessary hooks to easily add the icons on server side.

For now the icons are added on the frontend with JavaScript.

If the PR Add action hooks and filters to Projects and Project templates is merged, then the JS is no longer needed and the template customization will be done the right way.

The plugin uses gp_meta with the meta key project_icon to store the ID of the media library attachment, for each object of type project with a corresponding ID.

Features

  • GlotPress projects page:
    • Icons on the left of the project names.
  • GlotPress project page:
    • Header icon above the project title.
    • Icons on the left of the sub-project names.
  • GlotPress project edit/new form:
    • Media file select field to choose an image from the media library.

Known issues

  • Currently, GlotPress still does not delete meta when deleting a project, leading to orphaned meta.
  • GlotPress does not clone the meta when branching a project, so any cloned projects do not inherit its icon.

Requirements

  • GlotPress v4.0.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums