Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating new files in BP


  • xlordt
    Member

    @xlordt

    Hi guys,

    Say I dont want to touch any bp files, but instead I wanted to create my own files like say.. xlordt-menu.php
    how do I pass global variables and functions to this file?

    Thanx.

Viewing 3 replies - 1 through 3 (of 3 total)

  • Paul Wong-Gibbs
    Keymaster

    @djpaul

    Typically, you start by creating a plugin and go from there. Have you written plugins for WordPress before? Also, what are you trying to do?


    xlordt
    Member

    @xlordt

    No I haven’t create a plugin for WP yet, but I am looking in to it. What I am trying to do is send JQuery request to this file
    a long side that I need to pull the current users information on the script and not passing it via JQuery. Also this script will be pulling data out of the Database.

    Thanx Paul! anyway for me to resolve this with out need to use include ()/require () functiosn?


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Figure out the basics of plugins first, https://codex.wordpress.org/Writing_a_Plugin, and then try AJAX https://codex.wordpress.org/AJAX_in_Plugins

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating new files in BP’ is closed to new replies.
Skip to toolbar