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

add a wp-cron job to automatically mangle urls #37

Open
pixeline opened this issue Dec 12, 2022 · 3 comments
Open

add a wp-cron job to automatically mangle urls #37

pixeline opened this issue Dec 12, 2022 · 3 comments

Comments

@pixeline
Copy link

Hi!

The mangle feature is really helpful! I was wondering if you could add a wp-cron task that automatically mangles urls, every hours or every day ?

Thank you!

@joppuyo
Copy link
Owner

joppuyo commented Dec 12, 2022

Could you explain the use case for this? The plugin automatically mangles the slugs on upload. The manual tool is only meant for cases where you install the plugin on an existing site with attachment URLs that are in the old format.

@pixeline
Copy link
Author

Ah, i was unaware of that. I noticed i ran it once. It had 2000 entries or more. Then a day later, there were 14 new entries. so i assumed it was due to bloggers uploading 14 new files.

@joppuyo
Copy link
Owner

joppuyo commented Dec 12, 2022

It seems that in this case there would be a bug. While this plugin hooks into the image upload, it’s possible that some plugins bypass this process and therefore the slugs will not get processed. If you want, I could provide some code to help find out what images are using the old slug format.

Unrelated to this, I’m actually planning on adding a feature that will display a notice on the admin screen when there are slugs that haven’t been processed yet. This could help in cases likw you described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants