PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
← All changes | classes/class-config.php +22 -0 3.03.7 View file →
@@ -152,8 +152,30 @@
152 152 return apply_filters( 'sharing_image_file_format', $format );
153 153 }
154 154
155 155 /**
156 + * Get autogenerated template index.
157 + *
158 + * @param string|null $index Optional. Autogenerate template index.
159 + */
160 + public static function get_autogenerate_index( $index = null ) {
161 + $config = self::get_config();
162 +
163 + if ( ! empty( $config['autogenerate'] ) ) {
164 + $index = $config['autogenerate'];
165 + }
166 +
167 + /**
168 + * Filters autogenerate template index.
169 + *
170 + * @since 3.1
171 + *
172 + * @param string $index Image file format.
173 + */
174 + return apply_filters( 'get_autogenerate_index', $index );
175 + }
176 +
177 + /**
156 178 * Get quality of generated poster.
157 179 *
158 180 * @param int $quality Optional. Default image quality.
159 181 *