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_filter( 'wpseo_schema_person', 'example_change_person' ); | |
function example_change_person( $data ) { | |
$user_id = ??; | |
// data | |
$author_avatar = get_avatar_url('[email protected]'); | |
$data['name'] = "John Doe"; | |
$data['author']['name'] = "John Doe"; |
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_action( 'init', 'ld_add_custom_shortcode' ); | |
function ld_add_custom_shortcode() { | |
if( ???? ){ | |
function show_courses(){ | |
$content = '<h3>Try these courses</h3>'; | |
$content .= do_shortcode( '[ld_course_list mycourses="not-enrolled"]'); | |
return $content; |