This is called php annotations. Many of them are built-in via a standard called phpdoc (like @var), and they are used by the interpreter or the static tools (also by humans for a more structured comment).
There is another usecase for these annotations, and it’s to run some code – probably using reflections (which usually is last resort, since it’s slower), here is an example from a different system which I’m using: https://www.doctrine-project.org/projects/doctrine-annotations/en/1.13/custom.html
For example in old versions of TYPO3 you could use @inject this way.
Related Posts:
- Autogenerate wordpress shortcodes using array?
- Shortcode display outside the div
- How to stop or remove an action being called inside a function of an extended class
- wordpress plugin is not activating from widget
- Nested shortcode functions accessing variable
- Redirect to another page using contact form 7? [closed]
- Are there action hooks for comments?
- Return multiple values in a shortcode attribute
- Add the_post_thumbnail_url to a shortcode in function.php
- Adding a Tag Parameter / Filter to My Shortcode
- How to get current cart values using WC_Shortcodes?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Posting code inside the post instead of in the template file using shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- if plugin is active? check if plugin is enabled or not?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Adding Custom Fields for Img in Posts
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Change destination author link
- Shortcode under a Shortcode Multiple times Possible?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- shortcode doesn’t work
- How to remove action from plugin?
- How to add inline css/js inside a shortcode
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Display a text message if the field is not found and not if found
- Scope for PHP Variables Assigned in functions.php or a plugin
- Add a plugin before main container
- Shortcode to generate and save password in a file
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- Override Plugin Script Fucnction in WordPress
- creating html reusable blocks via shortcodes
- Replacing a plugin function with a custom renamed function doesn’t work
- How to call WordPress function other files
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Conditional attributes and logic per product category
- Some code in shortcode function being ignored
- WordPress get_avatar function not correct working
- How to Create a shortcode to this php function
- How passing values to construct function with Actions?
- add_action into another add_action not working
- Check if variable is set in filter
- JQuery prepend a function
- Why can’t I call a (member) function from within a foreach?
- Custom shortcode for displaying user based on a role parameter
- wp_enqueue_scripts
- Shortcode Attributes to Return different $_POST
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Plugin onclick button activate other plugin
- How can I fetch data from another website to my wordpress website with mysql database
- Send email with list of active plugins upon activation/deactivation
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- Get all the URLs of the pages that uses a specific shortcode
- Add action to custom Function
- Echo out element to another page.
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- get_post_meta shortcode returns empty field
- Post source link plugin – small modification
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- How do I use a plugin’s shortcode attribute value in another function?
- Sharing varible between two add_actions
- How to create algorithm for ordering posts in WordPress?
- Hooking into the HTML header container
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Block plugin update possibilities (but not by hiding notifications)
- post id or permalink auto-incrementing number and reset everyday
- Return function results within shortcode
- Soflyy WP All Import Custom File Download Issue
- Update (a function) post’s featured image as soon as $image_url changes
- Why is WP template_include overwritting all templates rather than specified page?
- WordPress environment not loading properly
- How to echo a plugin’s function into a template?
- How to replace native comment_count with Comments Evolved aggregate count
- wordpress Shortocode running twice?
- It possible to implement an adhoc php web application with wordpress?
- Is there any wordpress function to update a random post every 10 minutes?
- Calling an custom field from theme option at the frontend
- Plugin Hook: Get posts
- Saving an array to get_options
- Contact Form 7: custom validation [closed]
- date function not correctly returning date
- Showing author box on post detail page
- add query string to all pages after user logged in
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Requires PHP version 5.3.0
- PHP if url extension action=discussion condition use [closed]
- How to get URL param for pagination in shortcode?
- Make plugin admin page visible to other roles
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode