This repo's location has changed.
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( 'wp_head', 'cyb_add_search_box_schemas' ); | |
function cyb_add_search_box_schemas() { | |
if ( is_front_page() && (int) get_query_var( 'paged', 0 ) < 1 ) { | |
// Add schemas site markup for Site Name and Site Link search box. | |
// See https://developers.google.com/structured-data/slsb-overview | |
// and https://developers.google.com/structured-data/site-name | |
$searchbox = [ | |
'@context' => esc_js( 'http://schema.org' ), | |
'@type' => 'WebSite', |
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 | |
/* | |
Plugin Name: My First Meta Box | |
Description: Simple example of adding Meta Boxes and custom fields to Wordpress post | |
Version: 0.1.1 | |
Author: CybMeta | |
Author URI: http://cybmeta.com/ | |
*/ | |
add_action( 'init', 'cyb_register_meta_fields' ); |