Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk Generate Timestamps Using WP-CLI #42

Merged
merged 6 commits into from
Oct 13, 2024

Conversation

michael-sumner
Copy link
Member

@michael-sumner michael-sumner commented Sep 4, 2024

Closes #41

Allows a shell user to use the WP-CLI to generate timestamps for posts, pages, and custom post types.

For example:

wp timestamps generate --post_type=post,page --post_status=publish,draft --post_ids=1,2,3,4

This will generate a new set of timestamps for the specified fields which will be run within the WP_Query class.

Supports any post type using the --post_type flag.

This only generates the timestamps in the back-end.

This allows the front-end approach to either be implemented as a shortcode, or a Gutenberg "Timestamps" block.

@michael-sumner michael-sumner added the enhancement New feature or request label Sep 4, 2024
@michael-sumner michael-sumner self-assigned this Sep 4, 2024
@michael-sumner michael-sumner merged commit c87a7cb into develop Oct 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bulk generate timestamps using WP-CLI
1 participant