This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add custom content at the top of the Simple Membership Profile page | |
*/ | |
function abc_membership_profile_page_top( $default ) { | |
$url = 'http://yoursite.com/chart-page/'; | |
$custom_content = '<p>Create a <a href="' . esc_url( $url ) . '" target="_blank">birth report</a>.</p>'; | |
// Load the default edit profile template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if your WooCommerce custom product attributes are taxonomies. | |
* | |
* This will show custom product attributes on your product page | |
* above the Add to Cart button. | |
* | |
* THIS WILL ALSO SHOW A NOTICE ON THE PRODUCT PAGE | |
* RIGHT UNDER THE ATTRIBUTES. | |
* | |
* THE NOTICE WILL EITHER SAY: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new PDO('mysql:host=YOUR_DB_HOST;dbname=YOUR_DB_NAME', 'YOUR_DB_USERNAME', 'YOUR_DB_PASSWORD', array(PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,)); | |
// Tickets table | |
$row = array(); | |
$table1 = "SELECT `primkey`, `title`, `initial_message`, `user_id`, `email`, `assigned_to`, `severity`, `resolution`, `time_posted`, `last_updated`, `last_staff_reply`, `target_response_time`, `type` FROM `wp_wpscst_tickets`"; | |