WordPress Hooks Easy Map
Action Hook is used to run custom functions at a specific point during the execution of WordPress Core. Filter Hook is used to modify or customize and return data used by other functions.
Action Hook is used to run custom functions at a specific point during the execution of WordPress Core. Filter Hook is used to modify or customize and return data used by other functions.
function my_function() { global $wpdb; $wpdb->update(’wp_my_appointments’, array( ‘title’ => ‘Msc’, ‘msg’ => ‘Message’ ),array(id => 3)); }
function my_function() { global $wpdb; $wpdb->insert(’wp_my_appointments’, array( ‘title’ => ‘Mr’, ‘msg’ => ‘Message’ ),array( ‘%s’, ‘%s’)); }
function my_function() { global $wpdb; $appointments = $wpdb->get_results("SELECT * FROM wp_my_appointments;"); echo ‘<pre>’; print_r($appointments); }
$to = ‘your@emailaddress.com’; $subject = ‘The subject’; $body = ‘The email body content’; $headers = array(’Content-Type: text/html; charset=UTF-8’); wp_mail( $to, $subject, $body, $headers );