Title: problem while creating a functionality plugin
Last modified: April 18, 2018

---

# problem while creating a functionality plugin

 *  [crazydidooweb](https://wordpress.org/support/users/crazydidooweb/)
 * (@crazydidooweb)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/problem-while-creating-a-functionality-plugin/)
 * Hi,
    Thanks in advance for any help you will provide. I am not an English speaker
   so i wil try to explain you the best i can what issues i am facing actually.
 * On my website i’d like to add in some pages (i want to decide which) a map that
   all the members of my website could “customize”. By customize i mean that i want
   them to add placemarkers with a description and even personal pictures on the
   map. And i want all these placemarkers to be shown so that when you look at the
   global map you can see all the places that my members recommend to other members.
 * If i understood well what is in the plugin’s description, it seems that for reaching
   my goals i need to create a functionality plugin. So i have done like this. Gone
   to my PHP folder –> wp content –> plugins –> create a new folder called “carte-
   interactive-google” –> create a php file called “carte-interactive-google”. And
   this is what i enter in this file:
 * <?php
    /* Plugin Name: Carte interactive Google Plugin URI: [http://alternative-diving.club](http://alternative-diving.club)
   Description: Carte interactive Google permettant à chaque membre de pouvoir notifier
   lui-même des lieux qu’il apprécie. Version: 1.0 Author: DLS */
 * function bgmpShortcodeCalled()
    { global $post;
 *  $shortcodePageSlugs = array(
    ‘les-sites’, ‘second-page-slug’ );
 *  if( $post )
    if( in_array( $post->post_name, $shortcodePageSlugs ) ) add_filter(‘
   bgmp_map-shortcode-called’, ‘__return_true’ ); } add_action( ‘wp’, ‘bgmpShortcodeCalled’);
   Then i activated the plugin in my plugin library.
 * Now when i look at the page in which i want to show up this interactive map for
   my members it seems that it doesn’t work. The instructions provided are _“Copy
   and paste that into your theme’s functions.php file or a functionality plugin,
   update the function names and filter arguments, and then add the slugs of any
   pages/posts containing the map to $shortcodePageSlugs.”_ And i think that i haven’t
   understood this page. So can you help me ? Cause i don’t understand what needs
   to be changed in that code and by which words.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-while-creating-a-functionality-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘problem while creating a functionality plugin’ is closed to new replies.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [crazydidooweb](https://wordpress.org/support/users/crazydidooweb/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/problem-while-creating-a-functionality-plugin/)
 * Status: not resolved