add_action('publish_post', 'call_my_php_file');
function call_my_php_file($post_id){
require_once("path/to/file.php");
}
Related Posts:
- How to automatically highlight syntax of code in a post?
- Want to have the Post editor remembering the last editing position
- How to get new post URL?
- Help with WordPress Query
- It’s okay if I do not write add_action()
- Copying post thumbnail to custom field
- Getting Whitescreen when publishing a post [closed]
- Functions.php error – when trying to change the theme
- How to add a custom class attribute into code wrapper? [duplicate]
- What does exactly GPL license mean for my WordPress theme?
- How to set thumbnail image for a (child) theme
- Categorising themes by folders in backend
- How to publish a post with empty title and empty content?
- Hourly Routine Not Firing ( wp_schedule_event() )
- How to create a widgetized sidebar for every category dynamically?
- How do I use element instead of tags in WordPress post content having webP support?
- How can I add dropdown widget/box to admin post page?
- Custom Upload Panel in Menu Bar
- WordPress themes under GPL license
- Returning Variables back into a template
- How can I customize the search results in Bones theme?
- How to Display Post View Count
- Remove double space after a period
- New Plugin Review
- Use template for posts with a particular category grandparent
- How to load a different theme for categories?
- How to remove header image on subpages in Twenty Eleven (default theme)?
- Can I update themes without enabling maintenance mode?
- Run a function when post is deleted?
- Add a series of checkboxes to theme options
- WordPress Theme Development Seemingly Awful Partitioning of Includes?
- Disable Theme API / Front end (for API only environment)
- Hide default “Recent Comments” Widget if there are no comments yet
- Showing post thumbnail (attachment) on the archive.php category listing
- Add icon/badge next to posttitle of specific category
- Theme Check warning wrong direcory for theme
- WordPress add post format support not working
- Add more widget areas to a theme
- Posts and Pages not showing on admin, but showing in theme
- How can I add class to every quote element?
- Looking for a fully customisable WP responsive theme to develop a small scale fiverr type site for voice artists [closed]
- Read More Button Not Responding To Click
- How to use command lines an activate theme in wp – cli also setup Vagrant/Sage Theme?
- How to change the format of posts on the hompage?
- GPL 2 Theme using a framework for commercial Theme?
- Which PHP page is the Default Posts Page
- What hook is the currently active theme’s functions.php file loaded on? [duplicate]
- How to get theme screenshot
- i would like to have 3 default columns editable in guttenberg
- Define theme information other than through style.css
- Change avatar on themed profile page
- WordPress 5.1 upgrade has lost the parent theme JavaScript
- WordPress notification if new post published
- Is it possible to open a page with a different theme?
- Get post by tag
- Create page options for theme?
- Where is the best place to catch useragent?
- Knowing blog name using blog id
- Alternative to Back End Dashboard?
- How can I change the prev / next buttons text to Dutch?
- Woocommerce single product image blurred and small. Actual image is big
- Get data from Theme Options and use them into meta options field in custom post type
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Are the Theme frame works or Theme builders slow downs the performance? [closed]
- Make the “Add New Post” one column for all users
- What happened to my Inactive Widgets?
- First click to blog title does not open the blog article
- Trying to revive an old wordpress site, but newer versions of wordpress install a different db structure
- Class parameter in get_avatar args doesn’t get added to output
- How to override theme’s public static function inside of a trait?
- Theme translation not working
- How to change allowed attachment files extensions
- Custom homepage with recent blog posts
- Dynamic image for Jumbotron on WordPress Custom Theme
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- How to delete/customize imported demo content from a theme or add my own?
- Transfer WordPress site to another domain
- 500 Internal Errors
- Strange Theme Error – parent style occasionally showing though child theme
- Why Underscores Theme Comment Form Reversed?
- Firebug and Chrome rendering two body tags
- Register a widget area when a theme option has been saved?
- Save/retrieve form data best practises for theme development
- Does WordPress provide themes_api function?
- Where do URI files come from?
- How to show tags in posts with a theme that does not do it
- List direct children of page
- Converting HTML5 to XHTML
- Permalink remain the same on each page
- How can i limit wordpress post title characters in sidebar?
- Theme making direct ajax calls to theme folder
- How to add sidebar to homepage programmatically?
- How to remove header “ish” label [closed]
- Can i Remove copyright text wordpress.org theme
- register_nav_menus syntax error, unexpected identifier “register_nav_menus” in
- Show Next/Previous without Link
- Add multiple HTML attributes to an Elementor button
- Filters do not work when there are multiple (one works)
- RTL in posts only [closed]
- Edit Page button is gone