Trying to GET data with ajax from database and show in fullcalendar

There were a couple security issues and error checking that I did see. Try these: <?php add_action(‘wp_ajax_get_timeslot_data’, ‘get_timeslot_data’); add_action(‘wp_ajax_nopriv_get_timeslot_data’, ‘get_timeslot_data’); function get_timeslot_data() { if (!isset($_POST[‘activityId’]) || !ctype_digit($_POST[‘activityId’])) { wp_send_json_error(“Invalid activity ID”); } global $wpdb; $activity_id = intval($_POST[‘activityId’]); $table_name = $wpdb->prefix . ‘booking_seasons’; // Support custom table prefixes $result = $wpdb->get_row($wpdb->prepare(“SELECT timeslot_dates FROM $table_name WHERE id … Read more

How to sync non-wp database with wp-database?

As Tom J Nowell pointed out in the comments, this is a very specific situation, which makes the question rather difficult to answer. If the source system has suitable code for pushing data to other systems, then you could consider registering a custom REST endpoint at the WordPress end. The endpoint would receive, validate and … Read more

Is SSL connection of plugins default?

No, this is not something that can be guaranteed, setting up an SSL certificate on your own site and using https: for everything does not guarantee that code that calls to other sites will use https or TLS/SSL. Assuming those remote services even support HTTPS or speak HTTP. Your SSL certificate is for securing inbound … Read more

My wordpress plugin defaults to English (US) I would like it to default to English (UK)

Unfortunately, there does not appear to be a way to change the default language away from EN-US, in the wordpress.org repository. An email responce just recieved from plugins[at]wordpress.org has confirmed that the default of EN-US is an intentional policy process. The submission is done in English US and then you will be able to translate … Read more

How to render initial posts on page load in a Gutenberg block using the Interactivity API?

You could consider running actions.getPosts on mount via data-wp-init like: <div … data-wp-init=”actions.getPosts”> As per the documentation: This directive runs a callback only when the node is created. You could also consider server-rendering the initial set of posts, like: <div data-wp-watch=”callbacks.renderContent”> <?php $query = new WP_Query( array( … ) ); ?> <?php while( $query->have_posts() ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)