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
diff --git a/admin/class-wpmoly-api-wrapper.php b/admin/class-wpmoly-api-wrapper.php | |
index 6fd55ef..fa6f867 100644 | |
--- a/admin/class-wpmoly-api-wrapper.php | |
+++ b/admin/class-wpmoly-api-wrapper.php | |
@@ -419,6 +419,13 @@ if ( ! class_exists( 'WPMOLY_TMDb' ) ) : | |
} | |
} | |
+ $_movie = array( | |
+ 'result' => 'movie', |
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 | |
function remove_admin_bar_links() { | |
global $wp_admin_bar; | |
if ( ! current_user_can( 'manage_options' ) ) { | |
$wp_admin_bar->remove_menu( 'site-name' ); // Remove the site name menu | |
$wp_admin_bar->remove_menu( 'view-site' ); // Remove the view site link | |
$wp_admin_bar->remove_menu( 'my-account' ); // Remove the user details tab |
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 | |
/** | |
* Format IMDb ID to create a link to IMDb.com | |
* | |
* @param string $imdb_id IMDb ID | |
* | |
* @return string | |
*/ | |
function wpmoly_format_movie_imdb_id( $imdb_id = '' ) { |
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 | |
class WPMOLY_SEO_Replacements { | |
/** | |
* Static instance. | |
* | |
* @var object | |
*/ | |
private static $instance; |
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 | |
/** | |
* Filter Yoast SEO title | |
* | |
* @param string $title | |
* | |
* @return string | |
*/ | |
function wpseo_movie_title( $title ) { |
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 | |
/** | |
* Add new movie languages | |
* | |
* @param array Exisiting languages | |
* | |
* @return array Updated languages | |
*/ | |
function wpmoly_add_new_languages( $languages ) { |
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 | |
/** | |
* Add new movie medias | |
* | |
* @param array Exisiting media | |
* | |
* @return array Updated media | |
*/ | |
function wpmoly_add_new_media_type( $media ) { |
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 | |
function wpmoly_metabox_default_panel( $panels ) { | |
$panels['meta']['default'] = true; | |
$panels['preview']['default'] = false; | |
return $panels; | |
} | |
add_filter( 'wpmoly_filter_metabox_panels', 'wpmoly_metabox_default_panel', 10, 1 ); |
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 | |
function _alx_movie_duplicate_menu_fix( $args, $post_type ) { | |
if ( 'movie' != $post_type ) { | |
return $args; | |
} | |
$args['show_in_menu'] = false; |
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 | |
function wpmoly_movie_publicize_support( $args, $post_type ) { | |
if ( 'movie' != $post_type ) { | |
return $args; | |
} | |
$support = array_merge( $args['supports'], array( 'publicize' ) ); | |
$args['supports'] = $support; |
NewerOlder