Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control

If the setting and controls are added exactly as they appear in class-wp-customize-manager.php the JQuery script in wp-admin/custom-header.php will toggle the header text color control properly. The theme_supports line must be commented out or removed as it is “used to hide a setting if the theme lacks support for a specific feature”.[1] add_action( ‘customize_register’, function … Read more

How to put a variable in a instance in the widget

As far I understood you want to assign the order number like $order_number = order_generator($email) inside the widget class. Yes, you can do it that way unless the order_generator is in another class. If you order_generator function is in another class then first you need to instantiate the class then call the method like $instance_of_your_class->order_generator($email). … Read more

How to hook into a function offered by a plugin?

Using add_action I am able to add a function to the plugin. // add action to after_record_action add_action(‘after_record_action’, ‘marian_rick_custom_action’, 10, 3); // add function function marian_rick_custom_action ($result, $data, $format){ // get data from $data[] array $email = $data[’email’]; $key = $data[‘key’]; // use $data to create a personalized mail $to = $email; $subject = “Wordpress … Read more

How to hide unused profile fields?

You have the JS part down, in order to have this script run, you can use the add_action function and hook it to the admin_head. This will run your custom JS script in the header of the wp-admin area. Below is the code that you can add to your child theme’s function.php file. I’ve added … Read more

Only Show Link If div Exists

This can be done but we need to see the if statement that is around your div. Right now you that code above will still present the div, just not the content IN the div. You need to wrap that link code in the same if statement that your div is in. example: if your … Read more