Generally speaking, you can typically take PHP code and place a comment at the top:
<?php
/* Plugin Name: My SOAP Plugin
*/
?>
You can then create a folder for the plugin inside /wp-content/plugins/ (for example, /wp-conten/plugins/my-soap-plugin/) and place the PHP file inside that folder. At that point, you can activate the plugin from wp-admin.
Depending on what specifically the PHP file does, it may need editing. For example, if it refers to any specific paths on a server, you’ll need to adjust those as you almost certainly didn’t have the file inside of a /wp-content/plugins/ folder before. Other changes will likely be needed – for example, you’ll have to figure out what to do with the SOAP data – show it on a new admin screen? Display it on the front end for logged-in users associated with that data? – so it might require a significant amount of development work.
Related Posts:
- Handling error states with admin_post
- Post + form + action + results on the same page
- form $_post action value gets truncated after it passes through two forms
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Post from front end form to post_meta
- Passed variable gets undefined variable error on insert on next page
- Dynamic form variables for post meta
- Bulk data save in custom table
- How to update custom fields using the wp_insert_post() function?
- How to stop form resubmission on page refresh
- add_filter the_content str_replace after shortcode
- Alter query on edit.php
- Permanently remove first image from posts
- POST from jQuery to PHP
- Passing POST data from one WP post to another
- New Plugin Review
- Use template for posts with a particular category grandparent
- Styling images coming from another blog
- How to group 2 radio buttons in a widget?
- Exclude posts from homepage having a specified tag
- “before delete post” action fire when the post is updated?
- Get Admin Email Address From External PHP page
- Automatically add custom CSS to new posts using a category template
- Query all posts of a custom taxonomy term
- Retrieving Author ID in wp-admin area
- Displaying the last post on static homepage
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- How to create a form and display its content as table in admin panel?
- Best practice for migration friendly images in posts/pages?
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- Automatically create child pages and grandchild pages when saving a (parent) page
- How can I add extra word in permalink when someone click download button?
- How to pre populate a form field with a link of a current user’s author profile?
- Show success or error messages in Ajax response to WordPress custom registration form
- Custom posts in different columns style
- 404 error when I acess the second page of post-type
- Form Security: nonce vs. jQuery
- Which PHP page is the Default Posts Page
- retrieve post data and insert it in seperate static html page without WordPress
- Trying do build a contact form
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- Function works everywhere, how to keep it to execute when creating a new post
- Copy taxonomy terms from one post to another programmatically
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Can a page contain php code?
- How to catch wordpress post ID when it’s published
- Find Site ID From WP_Post
- Reading settings in the home page precisely home.php
- WordPress upload file size error even after raising php limits
- How to set cookies
- PHP Contact form
- Get wp_current_user_id using PHP and MySQL
- PHP- Why is my contact form keep showing it is invalid? [closed]
- how to edit a specific post slug using a php code?
- Adding data to custom wordpress database table
- Display multi-select box choices in a bullet list [closed]
- Custom forms with HTML
- Prevent post from being published and show error
- Export post data with xml to other site using php soap
- remove specificly the last tag in all posts
- Add posts to custom table in database instead of wp_posts
- How to show categories and date on posts
- Trying to update Woocommerce meta values
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Query on a repeater date (acf)
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Trying to show the category of a post in the post display
- Split post or page content in two or more columns
- Using a PHP form, get the page title or any other element in the sent e-mail
- Check the database for a postmeta field
- Send POST request to Flask app from functions.php file
- How to pull date/time in french format for wordpress post?
- Send Notification after post published was working but stopped after the last WP update
- How to display last whole post on the homepage
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Insert data from form to database
- How to insert text into post based on category – via single.php file
- not able to access $_POST on backend profile update
- Custom Plugin Develoment, Form Action
- Generate random access token to a post page
- Custom HTML form using PHP – help with ajax/username validation
- Only display notification on single post
- Get posts associated with media attachment
- ‘posts_per_page’ in costum page type
- How to set up an auto delete post?
- Trying to display user meta by “name” – not by “ID”
- List of child pages fetch next results at link click
- Automatically create a loop for post ID
- Why does WP_Query show only the same post even with different categories and endwhile?
- Trouble using wordpress functions in a pop-up modal form
- custom contact form no longer working (because of 3.2?)
- Correct Syntax for uploading files to custom directory in WordPress
- How to modify this function to exclude also the post belonging to a specific category?
- Where to put include php file?
- Set post to draft if matching word is found in the post
- Disable single posts, but keep archive
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new