Title: Fetch data for a PHP script from a plugin?
Last modified: August 20, 2016

---

# Fetch data for a PHP script from a plugin?

 *  [samell1](https://wordpress.org/support/users/samell1/)
 * (@samell1)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/fetch-data-for-a-php-script-from-a-plugin/)
 * So basically, I’m writing my own small PHP script to display different sidebar
   content based on the author of a post. Just a simple if elseif statement, but
   I need to have a way for the script to determine who the author is. We currently
   use CoAuthors Plus, and I was curious if there was a way to reference a variable
   or collect data from an entirely different PHP script, since the data for this
   would obviously be in a plugin? Is this possible?

The topic ‘Fetch data for a PHP script from a plugin?’ is closed to new replies.

## Tags

 * [Coauthors Plus](https://wordpress.org/support/topic-tag/coauthors-plus/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [samell1](https://wordpress.org/support/users/samell1/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/fetch-data-for-a-php-script-from-a-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
