how to load a file from a plugin when a url is passed

I ended up answering my own question by using the following code add_filter( ‘template_include’,’include_filter_template_function’, 1 ); function include_filter_template_function($template_path ) { $template_path = plugin_dir_path( __FILE__ ) .’filter.php’; return $template_path; } and checking the params on that page. I’m sure there is a more elegant way to do this but it works for me. 🙂

In my plugin when i call select page is blank

You are missing to load files that will make $wpdb and other WordPress function available in the context. You can include some php files to emulate the WordPress context include_once(‘../../../wp-config.php’); include_once(‘../../../wp-load.php’); include_once(‘../../../wp-includes/wp-db.php’); $data = $wpdb->get_results(“SELECT * FROM ” . $table_prefix . “posts”); var_dump($data);

Non english charcters support for WP Customer Reviews

This an encoding compatibility problem that occurs when there is a discrepancy between wordpress encoding configuration and the default system or server configuration. The plugin creates tables like so: $sql = “CREATE TABLE $this->dbtable ( …. Code …. reviewer_name varchar(150) DEFAULT NULL, …. More table fields Code .. )”; The DEFAULT keyword is the culprit … Read more

changes to templates not showing on server

After many attempts, i had to make changes to the core template files in directory plugins/woocommerce and it worked, for safety i then copied the woocommerce/templates to mytheme/woocommerce/templates and surprisingly it worked! strange but at least it did.