Skip to content

Adding a filter for “image” meta name. #14

@iworks

Description

@iworks

Hello,

The plugin is excellent. Could you consider adding a filter for the “image” meta name instead of hard-coding it?

$image_id = intval( get_term_meta( $obj->term_id, 'image', true ) );

It would be great if it had a filter, perhaps something like this

$image_field            = apply_filters( 'og_term_thumbnail_meta', 'image', $obj );
$image_id                = intval( get_term_meta( $obj->term_id, $image_field, true ) );

Thanks.

Source: https://wordpress.org/support/topic/adding-a-filter-for-image-meta-name/

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions