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
- Add 2 links in between the navigation using the Breadcrumb Navxt plugin hook
- How can I see all the actions attached to an “add_action” hook?
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Plugin update error message
- Keep one user logged for a year?
- Customizing subject in comment notification e-mails
- if plugin is active? check if plugin is enabled or not?
- WP showing “warning: call_user_func_array()”, What to do?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- How to Loop Plugin Option Field Set?
- PHP Deprecated: Non-static method should not be called statically
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- 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
- Set a User as Author of all ‘New Posts’ posted
- Post source link plugin – small modification
- Which hook callback has priority if both plugin and theme use the same hook?
- Change destination author link
- How to turn off email you receive when registered?
- Shortcode under a Shortcode Multiple times Possible?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Calling function from within functions.php returns unwanted value
- shortcode doesn’t work
- How to remove action from plugin?
- How can i change an image’s author?
- HELP: Integrating WP with raw PHP code once published button is hit
- How to add inline css/js inside a shortcode
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- New Plugin: Post update pushes a copy as a revision
- Can’t get custom posts of taxonomy to show
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- bulk change of image setting “link to” to “link to: image url “
- Display a text message if the field is not found and not if found
- Trying to count the total number of paragraphs inside a blog article
- Scope for PHP Variables Assigned in functions.php or a plugin
- How to get post URL in the_content filter?
- Add a plugin before main container
- Shortcode to generate and save password in a file
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- May i Use ShortCode in Template?
- Missing argument 3 for wp_register_sidebar_widget()
- get shortcode value
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Storing Options in a Shortcode
- add_query_arg not working
- Shortcode button dosent work for all posts. Work for first post only
- Prevent shortcode from being wrapped in tags
- How to Use Parameters with a Do_Action Function Within PHP Tags
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Executing my function once on a specific time
- Automatically add attributes to woocommerce product?
- Theme my Login plugin, how to update fields
- Edit Yoast SEO breadcrumbs output [closed]
- Adding Shortcode to Text Widget
- Date calculations from 2 custom fields
- How to put JQuery/Ajax inside shortcode?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- WordPress function not being called from jQuery method
- How to enable specific plugin only based around shop manager role?
- Override Plugin Script Fucnction in WordPress
- Calling plugin function inside custom plugin for onclick event
- creating html reusable blocks via shortcodes
- Adding a new field to the address field type in gravity forms
- Replacing a plugin function with a custom renamed function doesn’t work
- Calling an attribute from a plugin shortcode
- How to call WordPress function other files
- Removing an action from wp_footer called in a class that’s inside a bigger class
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- Some code in shortcode function being ignored
- WP Query. Is there a maximum size?
- WordPress get_avatar function not correct working
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- I want to allow certain file types on dokan upload files
- stop resize button for wordpress media
- Mixed results with is_page() WordPress function, when using $this, or self
- add_action() not working for admin
- Read page- or post-content across different builder-plugins
- wp_head filter not executed inside custom class