- Timestamp:
- 07/28/2025 07:16:52 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r59210 r60519 29 29 30 30 /** 31 * Instantiate .31 * Instantiates. 32 32 * 33 33 * All custom functionality will be hooked into the "init" action. … … 40 40 41 41 /** 42 * Conditionally hook into WordPress.42 * Conditionally hooks into WordPress. 43 43 * 44 44 * Theme must declare that they support this module by adding … … 90 90 91 91 /** 92 * Hide "featured" tag from the front end.92 * Hides "featured" tag from the front end. 93 93 * 94 94 * Has to run on wp_loaded so that the preview filters of the Customizer … … 105 105 106 106 /** 107 * Get featured posts.107 * Gets featured posts. 108 108 * 109 109 * @since Twenty Fourteen 1.0 … … 130 130 131 131 /** 132 * Get featured post IDs132 * Gets featured post IDs. 133 133 * 134 134 * This function will return the an array containing the … … 180 180 181 181 /** 182 * Return an array with IDs of posts marked as sticky.182 * Returns an array with IDs of posts marked as sticky. 183 183 * 184 184 * @since Twenty Fourteen 1.0 … … 191 191 192 192 /** 193 * Delete featured content IDs transient.193 * Deletes featured content IDs transient. 194 194 * 195 195 * Hooks in the "save_post" action. … … 204 204 205 205 /** 206 * Exclude featured posts from the home page blog query.207 * 208 * Filter the home page posts, and removeany featured post ID's from it.206 * Excludes featured posts from the home page blog query. 207 * 208 * Filters the home page posts, and removes any featured post ID's from it. 209 209 * Hooked onto the 'pre_get_posts' action, this changes the parameters of 210 210 * the query before it gets any posts. … … 246 246 247 247 /** 248 * Reset tag option when the saved tag is deleted.248 * Resets tag option when the saved tag is deleted. 249 249 * 250 250 * It's important to mention that the transient needs to be deleted, … … 273 273 274 274 /** 275 * Hide featured tag from displaying when global terms are queried from the front end.275 * Hides featured tag from displaying when global terms are queried from the front end. 276 276 * 277 277 * Hooks into the "get_terms" filter. … … 319 319 320 320 /** 321 * Hide featured tag from display when terms associated with a post object321 * Hides featured tag from display when terms associated with a post object 322 322 * are queried from the front end. 323 323 * … … 361 361 362 362 /** 363 * Register custom setting on the Settings -> Reading screen.363 * Registers custom setting on the Settings -> Reading screen. 364 364 * 365 365 * @since Twenty Fourteen 1.0 … … 370 370 371 371 /** 372 * Add settings to the Customizer.372 * Adds settings to the Customizer. 373 373 * 374 374 * @since Twenty Fourteen 1.0 … … 431 431 432 432 /** 433 * Enqueue the tag suggestion script.433 * Enqueues the tag suggestion script. 434 434 * 435 435 * @since Twenty Fourteen 1.0 … … 440 440 441 441 /** 442 * Get featured content settings.443 * 444 * Get all settings recognized by this module. This function442 * Gets featured content settings. 443 * 444 * Gets all settings recognized by this module. This function 445 445 * will return all settings whether or not they have been stored 446 446 * in the database yet. This ensures that all keys are available … … 476 476 477 477 /** 478 * Validate featured content settings.479 * 480 * Make sure that all user supplied content is in an expected478 * Validates featured content settings. 479 * 480 * Makes sure that all user supplied content is in an expected 481 481 * format before saving to the database. This function will also 482 482 * delete the transient set in Featured_Content::get_featured_content().
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)