Skip to content

Instantly share code, notes, and snippets.

View schemapress's full-sized avatar

Schema.Press schemapress

View GitHub Profile
@schemapress
schemapress / schema-plugin-add-social-profile.php
Created October 16, 2019 23:36
Schema Plugin: Add additional Social Profiles links to Knowledge Graph https://schema.press/downloads/schema/
<?php //* do not include php tag
add_filter( 'schema_wp_knowledge_graph_json', 'add_social_to_schema_wp_knowledge_graph_json_567656765' );
/**
* Schema Premium Plugin: Add additional Social Profiles links to Knowledge Graph
*
* @since 1.0.0
*/
function add_social_to_schema_wp_knowledge_graph_json_567656765( $schema ) {
<?php //* do not include php tag
add_filter( 'schema_acf_field_post_type_select_choices', 'schema_acf_field_post_type_select_choices_add_product_45263542' );
/**
* Schema Premium Plugin: Add missing post type "product" to Locations post type select choices
*
* @since 1.0.0
*/
function schema_acf_field_post_type_select_choices_add_product_45263542( $post_types ) {
<?php //* do not include php tag
// Disable CollectionPage schema output on Categories
add_filter( 'schema_wp_output_category_enabled', '__return_false' );
// Disable CollectionPage schema output on Tags
add_filter( 'schema_wp_output_tag_enabled', '__return_false' );
@schemapress
schemapress / schema-display-list-recipeIngredient.php
Last active February 17, 2021 15:55
Display a list of Recipe Ingredient with the Schema plugin for WordPress https://schema.press/docs-premium/add-schema-org-recipe/
<?php //* do not include php tag
/**
* Display Recipe Ingredient
*
* @since 1.0.0
* @return null
*/
function schema_display_recipeIngredient_78239482379847() {
@schemapress
schemapress / schema-display-list-recipeInstructions.php
Created February 19, 2021 18:39
Display a list of Recipe Instructions with the Schema plugin for WordPress https://schema.press/docs-premium/add-schema-org-recipe/
<?php //* do not include php tag
/**
* Display Recipe Instructions
*
* @since 1.0.0
* @return null
*/
function schema_display_recipeInstructions_78239482379847() {