• Resolved bluebananaconsulting

    (@bluebananaconsulting)


    We’re using wp Jobmanager on a site where some of the admins have visual impairments. They use screenreaders so logging into the dashboard to approve jobs is impossible.

    I built an “approval dashboard” on a frontend page that shows jobs pending approval and places a button next to them to change the post status to approved.

    Although this method works, we get the fatal error
    <blockquote>Fatal error: Call to undefined function calculate_job_expiry()</blockquote>
    from class-wp-job-manager-post-types.php on line 477. (which calculates the expiry date when the post status changes).

    Since calculate_job_expiry() isn’t accessible by my theme the post gets set to approved but no expiry date is generated. Oh, and of course we have a fatal error!

    I can comment the function out of the plugin file and place it in my theme’s job manager functions file, which seems to then allow my workflow to work, but is there a way of doing this that won’t get borked every time we update?

    Thanks!

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Approve jobs from the frontend’ is closed to new replies.