Title: How using plugin in php code
Last modified: August 21, 2016

---

# How using plugin in php code

 *  [dev_mapluz](https://wordpress.org/support/users/dev_mapluz/)
 * (@dev_mapluz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-using-plugin-in-php-code/)
 * I use plugins HungryFEED and OSM in WordPress pages with the following syntax:
 * [osm_map lat=”48.863″ long=”2.439″ zoom=”15″ width=”800″ height=”800″ marker_file_list
   =”[http://localhost/point.txt&#8221](http://localhost/point.txt&#8221); type=”
   AllOsm”] for OSM
 * [hungryfeed url=”[http://askapena.org/?q=eu/rss.xml&#8221](http://askapena.org/?q=eu/rss.xml&#8221);
   filter=”bayonne” feed_fields=”” max_items=”1″ date_format=”d-m-Y”truncate_description
   =”300″ template=”1″] for HungryFEED
 * This works well
 * Now I wish to call (by another method) in one of my files that I created in a
   personal directory under wp-content/plugins/perso for example in my wordpress
   page I have this:
 *     ```
       <?php
       $file = $_SERVER['DOCUMENT_ROOT'] . "/../fr/wp-content/plugins/perso/" . "mapage.php";
       require_once($file);
       ?>
       ```
   
 * Here are the contents of mypage.php:
 *     ```
       <?php
       echo "test”;
       /*
       comment appler mes plugins  HungryFEED et OSM
       */
       ?>
       ```
   
 * When I click on the page of my site “test” is displayed correctly.
 * Now what I can not do is find the php function to call my plugins!
 * Can you help me?
 * thank you

The topic ‘How using plugin in php code’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [dev_mapluz](https://wordpress.org/support/users/dev_mapluz/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/how-using-plugin-in-php-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
