• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / admin/views/tabs/metas/media.php


Lines:

1 to 32 of 32
<?php

/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Views
 */

if ( ! defined( 'WPSEO_VERSION' ) ) {
  header( 'Status: 403 Forbidden' );
  header( 'HTTP/1.1 403 Forbidden' );
  exit();
}

$wpseo_media_presenter = new WPSEO_Paper_Presenter(
  esc_html__( 'Media & attachment URLs', 'wordpress-seo' ),
  __DIR__ . '/paper-content/media-content.php',
  [
    'help_text' => new WPSEO_Admin_Help_Panel(
      'search-appearance-media',
      __( 'Learn more about the Media and attachment URLs setting', 'wordpress-seo' ),
      __( 'When you upload media (an image or video for example) to WordPress, it doesn\'t just save the media, it creates an attachment URL for it. These attachment pages are quite empty: they contain the media item and maybe a title if you entered one. Because of that, if you never use these attachment URLs, it\'s better to disable them, and redirect them to the media item itTelf.', 'wordpress-seo' ),
      'has-wrapper'
    ),
    'paper_id'  => 'settings-media-attachment-url',
    'class'     => 'search-appearance',
  ]
);

// phpcs:ignore WordPress.Security.EscapeOutput -- get_output() output is properly escaped.
echo $wpseo_media_presenter->get_output();
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: admin/views/tabs/metas/media.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: A,M,T,V

      Published: 27th November 2019 | Last updated: 10th December 2020

      Primary Sidebar

      Information

      File name: admin/views/tabs/metas/media.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: A,M,T,V

      admin/views/tabs/metas

      Footer

      Yoast SEO a2z
      Yoast SEO a2z
      WordPress SEO a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wordpress-seo.wp-a2z.org
      © Copyright Yoast SEO a2z 2017-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites