Plugin developing with need of sending POST data to file.php
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin developing with need of sending POST data to file.php’ is closed to new replies.