• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/helpers/open-graph/values-helper.php
1
<?php
2

3
namespace Yoast\WP\SEO\Helpers\Open_Graph;
4

5
/**
6
 * A helper object for the filtering of values.
7
 */
8
class Values_Helper {
9

10
        /**
11
         * Filters the Open Graph title.
12
         *
13
         * @param string $title          The default title.
14
         * @param string $object_type    The object type.
15
         * @param string $object_subtype The object subtype.
16
         *
17
         * @return string The open graph title.
18
         */
19
        public function get_open_graph_title( $title, $object_type, $object_subtype ) {
2✔
20
                /**
21
                 * Allow changing the Open Graph title.
22
                 *
23
                 * @param string $title          The default title.
24
                 * @param string $object_subtype The object subtype.
25
                 */
26
                return \apply_filters( 'Yoast\WP\SEO\open_graph_title_' . $object_type, $title, $object_subtype );
2✔
27
        }
28

29
        /**
30
         * Filters the Open Graph description.
31
         *
32
         * @param string $description    The default description.
33
         * @param string $object_type    The object type.
34
         * @param string $object_subtype The object subtype.
35
         *
36
         * @return string The open graph description.
37
         */
38
        public function get_open_graph_description( $description, $object_type, $object_subtype ) {
2✔
39
                /**
40
                 * Allow changing the Open Graph description.
41
                 *
42
                 * @param string $description    The default description.
43
                 * @param string $object_subtype The object subtype.
44
                 */
45
                return \apply_filters( 'Yoast\WP\SEO\open_graph_description_' . $object_type, $description, $object_subtype );
2✔
46
        }
47

48
        /**
49
         * Filters the Open Graph image ID.
50
         *
51
         * @param int    $image_id       The default image ID.
52
         * @param string $object_type    The object type.
53
         * @param string $object_subtype The object subtype.
54
         *
55
         * @return string The open graph image ID.
56
         */
57
        public function get_open_graph_image_id( $image_id, $object_type, $object_subtype ) {
×
58
                /**
59
                 * Allow changing the Open Graph image ID.
60
                 *
61
                 * @param int    $image_id       The default image ID.
62
                 * @param string $object_subtype The object subtype.
63
                 */
64
                return \apply_filters( 'Yoast\WP\SEO\open_graph_image_id_' . $object_type, $image_id, $object_subtype );
×
65
        }
66

67
        /**
68
         * Filters the Open Graph image URL.
69
         *
70
         * @param string $image          The default image URL.
71
         * @param string $object_type    The object type.
72
         * @param string $object_subtype The object subtype.
73
         *
74
         * @return string The open graph image URL.
75
         */
76
        public function get_open_graph_image( $image, $object_type, $object_subtype ) {
×
77
                /**
78
                 * Allow changing the Open Graph image URL.
79
                 *
80
                 * @param string $image          The default image URL.
81
                 * @param string $object_subtype The object subtype.
82
                 */
83
                return \apply_filters( 'Yoast\WP\SEO\open_graph_image_' . $object_type, $image, $object_subtype );
×
84
        }
85
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc