DB Sync Media Files extension [closed]

Yes, there’s another required step: I must enter the correct connection informations before the checkbox shows up. The JS code checks for the connection, talks to the remote plugin and if it finds it’s all ok, lets the checkbox display itself. In other cases it hides the checkbox. Now I believe this plugin has a … Read more

How to Create movie schedule by custom post type query

It’s very good that you are using Advanced Custom Fields. Use this for assigning running dates to movie and by making use of WP_Query you can call movies wherever is matching date. For fetching posts you can use following code: $args = array( ‘post_type’ => ‘movie’, ‘meta_key’ => ‘date’, ‘meta_query’ => array( array( ‘key’ => … Read more

Place content inside the Post Loop

Just as the loop starts the action loop_start fires. Once each post is setup as the loop iterates, the_post fires. After the loop has finished, loop_end fires. Each of these actions receives a reference to the queried object if you need to check for context. If you are in control of the theme code it … Read more

Provide http service by wordpress plugin

Now I use the init hook to add my own process for the request, and then check the request should be handled by the plugin, if yes, process and exit, if not do nothing. Like this: add_action(‘init’,function(){ if(should_intercepte_the_request()){ //process that. //exit die(“foo”); }else{ //do nothing } }); Then you can access the http by: http://localhost … Read more

Meta box or shortcode help

First create the meta box with a simple input value to insert the text you want. Here is a good example. Then you take the input from the meta box and create a function to store it as a shortcode. Check out the Shortcode API to enable the shortcode. Something like this should do the … Read more

mailjet plugin – extend functionnalities and reuse api

Because the template is load before the plugin, i finaly decide to add the API directly from https://github.com/mailjet/mailjet-apiv3-php-no-composer I check the api: https://dev.mailjet.com/guides/?php#contactslist_managemanycontacts And build my function to send a contact to a list: // Get the value from the plugin mailjet-for-wordpress $apisecret = get_option(‘mailjet_password’); $apikey = get_option(‘mailjet_username’); require ‘mailjet-apiv3-php-no-composer/vendor/autoload.php’; use \Mailjet\Resources; function sendRegisterNewsletterToMailjet($params) { … Read more