hoangtu92
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Ajax Product Filter on product categoryI did it wrong way. the plugin allow me to create multiple filters for multiple products. from widget, each product i create one filter and add all of them to one specify widget. Then Use that widget in product category page. the plugin will automatically detect the category and shows proper attributes of that product category. It’s quite simple. Again. Thanks for the great plugin.
Forum: Plugins
In reply to: [Task Scheduler] Passing argument to custom action.The set values will be stored in the argument element of the array returned by the getMeta() method of the routine object
This line make everything clear. Now i can create my own action. Thank you.
Forum: Plugins
In reply to: [Task Scheduler] Passing argument to custom action.Thank you for fast response. But i just need to add arguments to the task.
this is my examle function:function myfunction($parameter){ //**Do something }
I added action like that:
add_action('action_myfunction','myfunction', 10, 1);
Now I need to add custom action to the task. I added a arguments. But there is no argument passed., Pls show me how to add this properly.
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Ajax Product Filter on product categoryProblem solved. Thank you for your response. I did it wrong way.
Forum: Plugins
In reply to: [WPMovieLibrary] How can i get the IMDB rating?Problem resolved. This is my temporary solution. Just add action when save or update post. We will get the IMDB Rating instead current movie rating. So this is what i need:
//**Get IMDB info function get_imdb_info($movie_title){ $movie_title = urlencode($movie_title); $json=file_get_contents("https://imdbapi.com/?t={$movie_title}"); $info=json_decode($json); return ($info->Response) ? $info : false; } //**Update Movie rating function update_rating($movie_id){ $movie_title = get_the_title($movie_id); $movie_info = get_imdb_info($movie_title); update_post_meta($movie_id, "_wpmoly_movie_rating", $movie_info->imdbRating); } //**Add action add_action( 'save_post', 'update_rating', 10, '1');
Forum: Plugins
In reply to: [WPMovieLibrary] How can i get the IMDB rating?I’m going to use another database ex imdbapi.com
like this: https://imdbapi.com/?t=titanic IT have IMDB rating. But how can i update it to the current media_rating whenever i create or import new movie?