{{ message }}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Sports-bench-team-rest-controller.php | |
| * | |
| * Creates a REST API controller for teams | |
| * | |
| * @package Sports Bench | |
| * | |
| * @author Jacob Martella | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.1 | |
| info: | |
| title: Display Advert API | |
| description: |- | |
| Get and display adverts from Find an apprenticeship. | |
| **Note.** It is not recommended to use The Display Advert API directly from a browser and as such we have not enabled CORS for this API. Instead, we recommend you call the API intermittently to retrieve the latest vacancies, store those vacancies in your own data store, and then change your website to read those vacancies from your own data store. | |
| version: '2' | |
| servers: | |
| - url: https://api.apprenticeships.education.gov.uk/vacancies | |
| paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - CPT Title Capitalisation (Page, Post, Product etc) | |
| - Page title length trim - https://wordpress.org/plugins/cpt-post-title-trimer/ or https://wordpress.org/plugins/limit-characters-in-title/ | |
| - Post title length trim - https://wordpress.org/plugins/cpt-post-title-trimer/ or https://wordpress.org/plugins/limit-characters-in-title/ | |
| - Product title length trim - https://wordpress.org/plugins/cpt-post-title-trimer/ or https://wordpress.org/plugins/limit-characters-in-title/ | |
| - Taxonomy title length htrim - https://wordpress.org/plugins/cpt-post-title-trimer/ or https://wordpress.org/plugins/limit-characters-in-title/ | |
| - Page title unique check - https://wordpress.org/plugins/unique-title-checker/ | |
| - Post title unique check - https://wordpress.org/plugins/unique-title-checker/ | |
| - Product title unique check - https://wordpress.org/plugins/unique-title-checker/ | |
| - Meta Title - trim by standard full compatability with Yoast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| class WordPress_Plugin_Template_Settings { | |
| private $dir; | |
| private $file; | |
| private $assets_dir; | |
| private $assets_url; | |
| private $settings_base; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: WordPress - WP_List_Table - Custom | |
| */ | |
| add_action( 'admin_menu','register_my_custom_menu_page'); | |
| function register_my_custom_menu_page(){ | |
| global $new_menu_page; | |
| // creating admin menu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Retrieves the translation of text. | |
| * | |
| * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ | |
| */ | |
| import { __ } from '@wordpress/i18n'; | |
| /** | |
| * React hook that is used to mark the block wrapper element. | |
| * It provides all the necessary props like the class name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org/", | |
| "@type": "Organization", | |
| "name": "Safaraz Ali", | |
| "hasOfferCatalog": { | |
| "@type": "OfferCatalog", | |
| "name": "Canny Bites Business Books", | |
| "url": "https://safaraz.co.uk/canny-bites-business-books/", | |
| "itemListElement": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'elementor/widget/render_content', 'insert_wp_variables_in_content' ); | |
| function insert_wp_variables_in_content( $content ) { | |
| // This function replaces the placeholders like {{ post_content }} with the corresponding property values from the $post object in the $content variable. Make sure to replace {{ post_id }}, {{ post_title }}, etc., with the appropriate placeholders you want to replace in your content. | |
| // searching in content for this {{ key }} pattern | |
| $pattern = '/\{\{.*?\}\}/'; |
NewerOlder