Use the wpseo_opengraph_image_size
filter. You can use any WP image size (default ones like medium
or ones added by themes and plugins which will be specific to your site) in the first line:
// set 'medium' to whichever size you need
$size="medium";
// the size is then applied in this filter
add_filter('wpseo_opengraph_image_size', create_function("$size", 'return "opengraph";'));
Related Posts:
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Does anyone know why my SEO and title become one?
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Using require_once in a Plugin?
- Simple form that saves to database
- How to call plugin path in JS?
- Get Current user email as a return string value
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- How can I make content disappear when a user logs in?
- Plugin.php: PHP Notice: Undefined offset: 0 in
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- New Plugin: Post update pushes a copy as a revision
- Overide a function that is inside a plugin
- Add multiple attributes to product from php
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- Add category to body class
- Plugin Development sqlite or WordPress’ database
- How to review WordPress website php version compatibility?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- woocommerce 3.2.1 not sending order notification emails
- WordPress on AWS with ELB
- Executing my function once on a specific time
- How to access data in wordpress database externally using php
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- Problem with PHP wordpress, Undefined index: in C:\xampp\htdocs\wordpress\wp-content\plugins\epoch\classes\core.php on line 190 [closed]
- Using plugin functions/methods within templates
- Using color picker in plugin, does input attribute order matter?
- Setup wp_schedule_event within a custom plugin
- Show Sitename on Yoast SEO Title tag [closed]
- WordPress custom taxonomy not showing
- My WordPress site when down after installing a plugin and now all I get is a simple white screen [closed]
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- execute function after one completed
- WHy custom plugin slows down the loading of the pages?
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to get specific string/value from an array? php [closed]
- Background Music WP [closed]
- Why is it important to check for isset and is_array before checking in_array in this example?
- How to delete a theme using AJAX
- ACF – How to set the menu order for the relationship field
- Custom search search does not work?
- How to call external functions from a PHP script in a WordPress plugin?
- Passing PHP Variables to AJAX Loaded Pages
- Equivalent of admin.php for public pages
- How to add custom function to pluggable.php
- WooCommerce – new order email hook
- How to list datas from database in a topic?
- Editing a coupon generating plugin
- Woocommerce add products to cart
- How to hide an option from dropdown in filter module
- How use wp_insert_post and add og:custom tags?
- Display pagination in reservation Plugin and and Print table as pdf
- How to change “Read More” text?
- How to change a wordress plugin php code in my child’s functions.php file?
- What is the right way to populate a dropdown from MySql?
- make p tag collapsed after 3 rows
- Using id to show item
- WP Migrate DB Pro plugin cannot transfer Media files to remote server
- Woocommerce – Change variations output
- WordPress Plugin PHP Not Calling Function
- load plugin in code snippet
- Generate and send ICS file through WordPress
- Is admin section completely customizable in terms of styling?
- WP Plugin permissions – create new files
- How to echo meta_key in easy digital downloads receipt (Purchase Confirmation page)
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- Creating Admin Submenu Page via Class Method
- .htaccess file doesn’t work, with hundred tries
- Migrating custom php we wrote from functions.php into a site-specific plugin
- What is the correct entry point for capturing coverage data
- ACF Repeater Field Question [closed]
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Cannot access variables within a widget
- How do I convince this button to do something when it is clicked?
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Postal address auto-complete on profile page
- Doing action based on input from options menu
- avatar displays outside of targeted area
- WordPress Related Plugin – Adding an image
- WordPress User Frontend Editing Custom Fields
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- How to delete remain data in WP database after deleting custom post via admin interface
- How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
- TypeErrors with Yoast, jQuery in conflict?
- Populate Woocommerce order notes with custom field value
- Woocommerce Product Add-ons – Auto-select first option
- Strict Standards: Non-static method in sidebar generator
- Fast Tranfering my WordPress site to another server
- Duplicating wordpress install issue
- How to add custom html to the Media > Attachment Details modal?
- Option value not getting updated until page refresh in WordPress
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- I want create woocommerec match products columns
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- How to override plugin function in code snippets WordPress
- how to make yoast seo read text from custom fields in custom post type
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class