API to filter new user registration $POST data?

Well once I looked into it, it is quite simple. $_POST is global variable and contains all the POSTed data that was sent from the form. For example, to email yourself all the posted data submitted in the form, you you could use something like this: function email_me_post_data() { global $_POST; $msg = print_r($_POST, true); … Read more

Is it possible to modify the media library admin screen?

That area of all admin screens is where admin notices are displayed, so you could generate an admin notice. Here’s a suitable function and hook: function wpse_233031_admin_notice() { ?> <div class=”notice notice-info”> <p>Your message here!</p> </div> <?php } function wpse_233031_hook_admin_notice() { add_action( ‘admin_notices’, ‘wpse_233031_admin_notice’ ); } add_action( ‘load-upload.php’, ‘wpse_233031_hook_admin_notice’ ); /* Edited out anonymous function … Read more

How to: add option to add more checkboxes on custom post type

Your question is very abstract. As far I understood you want some thing like categories. So for that adding metaboxes is not necessary. I think categories are enough. If categories are not full filling your need then make another custom taxonomy with ‘hierarchical’ => true,. I think it will serve your need. Also giving permissions … Read more

Database “Migration” for Plugins?

Surprisingly not. Instead, you need to use the following function which is run whenever the plugin is activated. define( ‘YOUR_PLUGIN_VERSION’, ‘1.0.0’ ); register_activation_hook( __FILE__, ‘your_plugin_activation_function’ ); function your_plugin_activation_function() { // Do activation tasks here. your_install_function(); your_upgrade_migration_function(); } Run your install script. function your_install_function() { // Set the current version of the plugin in the db. … Read more