• I want to include() a file every time the save / save and edit / publish -buttons are used when somebody is writing or editing a post.

    Which file, and aprox. where and what should I look for? Will save me time with trial and error if you could help out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think you’ll need one of the Plugins (runphp, can’t recall the name of the others) which accomplishes that, and you’ll need to make sure the call to the file is inside The_Loop.

    Thread Starter eyerouge

    (@eyerouge)

    vkaryl:

    Forgive me for being unclear: I only want to edit the “hard code” (wp-admin/post.php ?) so that something happens every time a post is saved or published, which occurs every timesomebody pushes the correct button in the editor. What I want to know is how those lines look like and where I can find them.

    Since I want to modify the php-files directly there’s no real need for the plugin you mentioned (you’re right however – if I’d want to include files from within a post I’d have to do what you recomended).

    Yup, sorry, misunderstood you. I’ve never myself taken that route, so don’t have a definitive answer for what you’re really looking to do.

    I have tweaked core code on occasion, just not to do that particular thing; once someone brighter than I gives you the appropriate file and lines to edit, just be sure you comment everything thoroughly and keep backups. Sounds like you probably know that already though!

    Sorry not to be of more help….

    Thread Starter eyerouge

    (@eyerouge)

    Looks like it could be wp-admin/edit-form-advanced.php

    I’ll manage without this so I won’t do the trial and error since it’s time consuming and I don’t understand all of the code and it’s relation to one and another.

    If somebody knows the answer I’d still appreciate it though.

    I have saved my draft….but there is no “publish” button.
    how do I publish

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Execute after Save / Publish…’ is closed to new replies.