Plugin MySQL SELECT custom data and filter on user meta

Without a proper SQL query in the question is not possible to write a proper query in the response, but following your pseudo-code approach: SELECT custom-data FROM custom-table LEFT JOIN wp_users ON custom_data.user_id = wp_users.ID LEFT JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id WHERE some-condition AND wp_usermeta.meta_key = ‘flag’ AND wp_usermeta.meta_value=”flagvalue” So basically, you need to … Read more

Get content and send to 3rd party

absolutely it is possible. function add_property_import_meta_box() { add_meta_box(‘property-import-images’, ‘Property Actions’, ‘function_import_images_metabox’, ‘property’, ‘side’, ‘high’); } add_action(‘add_meta_boxes’, ‘add_property_import_meta_box’); function function_import_images_metabox($post) { // Noncename needed to verify where the data originated echo ‘<input type=”hidden” name=”property_actions_nonce” id=”property_actions_nonce” value=”‘ . wp_create_nonce( plugin_basename(__FILE__) ) . ‘” />’; ?> <p><a href=”https://wordpress.stackexchange.com/wp-admin/admin.php?page=actionhere” class=”button button-primary button-large”>Second Action</a></p> <p><a href=”https://wordpress.stackexchange.com/wp-admin/admin.php?page=actionhere” class=”button button-primary button-large”>Third Action</a></p> … Read more