Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gucoriw

    (@gucoriw)

    Corrections:

    add_filter( ‘amp_post_template_metadata’, ‘xyz_amp_modify_json_metadata’, 10, 2 );
    function xyz_amp_modify_json_metadata($metadata, $post) {
    $arr = get_post_custom_values(‘_schema’);
    $metadata = unserialize($arr[0]);
    return $metadata;
    }

    Mod. wordpress\wp-content\plugins\wp-structuring-markup\includes\wp-structuring-display.php
    line 173: global $post;
    line 174: update_post_meta($post->ID, “_schema”, $args);

    • This reply was modified 7 years, 7 months ago by gucoriw.
    Forum: Fixing WordPress
    In reply to: Revisions

    Just in case someone is reading this. Remember that said checkbox only appears AFTER you make some revision.

Viewing 2 replies - 1 through 2 (of 2 total)