This file contains hidden or 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 | |
/** | |
* Create new users to match team members. | |
* | |
* @param integer $post_id Post ID. | |
*/ | |
function xx_team_post_save_link_user( $post_id ) { | |
$user_email = get_post_meta( $post_id, 'email', true ); | |
$author_id = (int)get_post_meta( $post_id, 'linked_author', true ); |
This file contains hidden or 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 | |
// Uses the symfony/var_dumper package for the dump() function | |
/** First we create the Event */ | |
$created = tribe_events() | |
->set_args([ | |
'title' => "Test Event", | |
'start_date' => "2025-02-14 08:00:00", | |
'end_date' => "2025-02-14 10:00:00", | |
'laws_external_id' => 123, |
OlderNewer