Skip to content

Commit

Permalink
Update CPT name to movie
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsba committed Aug 18, 2020
1 parent 8636ed6 commit ae7ab01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ps-rest-api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Plugin Name: Horror Movie API Example Plugin
Plugin Name: Horror Movie API Example Plugin v1
Plugin URI: https://example.com/
Description: Example using the HTTP API to parse JSON from a remote horror movie API
Author: WROX
Expand All @@ -13,7 +13,7 @@
// Register the movies custom post type
function ps_register_custom_post_type() {

register_post_type( 'movies',
register_post_type( 'movie',
array(
'labels' => array(
'name' => 'Movies',
Expand Down Expand Up @@ -76,7 +76,7 @@ function ps_movie_api_results() {
'post_content' => '<a href="https://www.imdb.com/title/' . esc_attr( $movies->imdbId ) . '">',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'movies',
'post_type' => 'movie',
);

// Insert the post into the database
Expand Down

0 comments on commit ae7ab01

Please sign in to comment.