• Hello
    I need help to custom the admin area, my need is to go to the posts and select some posts and click a button that i need to add after that the action is to change the permalink for the selected posts (add 1 in the the end of the permalink) and change the published date to today date
    Thank you

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    An added bulk action would be ideal for this. Unfortunately it’s currently not possible to add custom bulk actions.

    Thus it appears some sort of jQuery/AJAX application would be necessary. jQuery to insert a button and identify the posts checked, AJAX to have the server make the changes and send back to jQuery the changes that were successful. jQuery can then update the appropriate HTML, or simply force a page reload.

    Considering one can make similar changes manually rather quickly by using the Quick Edit feature, albeit one post at a time, consider carefully if this is worth your development time. Especially considering your script actions are limited to the posts currently listed on the page, 20 posts max. per page.

    User interfaces take a lot of coding effort. If this is for a one off task to not be repeated or repeated infrequently, a utility script with no user interface could be built relatively quickly. The crux would be how the script determines which posts to change and which to leave with no user input.

Viewing 1 replies (of 1 total)
  • The topic ‘Add a button to change the post permalink’ is closed to new replies.