Automattic / Automattic/jetpack

Recipe Shortcode: Allow filtering of output_time

Open
#21,708 6 comments 0 reactions 0 assignees View on GitHub
[Feature] Shortcodes / Embeds [Pri] Low Bug Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### What

Please allow filtering of output_time in Recipe Shortcode

### How

Dear developers,

the recipe shortcode output_time currently adds proper metadata to strings that strtotime recognizes. For localized strings, the metadata will thus be invalid. Filtering the return value would allow to replace the invalid $time_str with proper one.

Example
`return apply_filters('jetpack_recipes_output_time', $formatted_time, $time_str, $time_type)`

Best regards,
Andrej

Contributor guide

Open the contributing guide

Research direction

Start by locating the Jetpack Recipe Shortcode implementation and the handling of output_time. Trace how the formatted time and time string are produced, then check any nearby tests or shortcode tests to define the expected filterable behavior and localized output.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.