• Hey.
    Curently i’m working on a little plugin, that needs to recive simple POS data:
    https://myste.com/wp-content/plugins/myplygin/testfile.php?set_variable=20
    For now, i want to use it this way – an ajax query will be used to send data to .php file and recive responce – and update coresponding place on site.
    The plugin itself, based on recived data needs to connect to wp database, do some queries, and return.
    The problem is – how can I activate in plugin file connection to database (based on wp_config.php) and even better – if possible – usign of WP functions ($wpdb for example, and all other wp functions)?

Viewing 1 replies (of 1 total)
  • Thread Starter cyberek0

    (@cyberek0)

    In other words – i need to create a place (accessible with link) and to be able to send and recive information to it via _GET method. The “place” also need to be able to use WP functions.

    I coud do it, by simply creating custom.php page and create a page in WP that use this .php as template – then all should work ok – but it needs to be theme independent.

    Thanks for any help/sugestions.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin developing with need of sending POST data to file.php’ is closed to new replies.