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

Loading do_feed_rss2 function with do_action #2854

Open
vitrix opened this issue Oct 4, 2024 · 0 comments
Open

Loading do_feed_rss2 function with do_action #2854

vitrix opened this issue Oct 4, 2024 · 0 comments

Comments

@vitrix
Copy link

vitrix commented Oct 4, 2024

Describe the bug
The job feed https://www.example.com/?feed=job_feed created by this plug uses the default Wordpress do_feed_rss2.
We want to add a additional action to the do_feed_rss2 action, but this is not possible, because in wp-job-manager/includes/class-wp-job-manager-post-types.php the function do_feed_rss2(false) is called directly.

To Reproduce
Steps to reproduce the behavior:

  1. Add a do_action behavior to do_feed_rss2
  2. Call the /?feed=job_feed page and you will notice your custom action is not activated.

Expected behavior
In "wp-job-manager/includes/class-wp-job-manager-post-types.php the do_feed_rss2(false) should be replaced with do_action('do_feed_rss2');.
This way customers can add extra actions to the feed.

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

No branches or pull requests

1 participant