Skip to content

Instantly share code, notes, and snippets.

View zebrastribe's full-sized avatar

zebrastribe

  • Copenhagen
  • 21:46 (UTC +01:00)
View GitHub Profile
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;
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";