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
- Plugin update error message
- Keep one user logged for a year?
- How to Loop Plugin Option Field Set?
- PHP Deprecated: Non-static method should not be called statically
- 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?
- How to turn off email you receive when registered?
- Calling function from within functions.php returns unwanted value
- HELP: Integrating WP with raw PHP code once published button is hit
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- Can’t get custom posts of taxonomy to show
- bulk change of image setting “link to” to “link to: image url “
- Trying to count the total number of paragraphs inside a blog article
- How to get post URL in the_content filter?
- 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
- Theme my Login plugin, how to update fields
- Calling plugin function inside custom plugin for onclick event
- Calling an attribute from a plugin shortcode
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Load Javascript from Plugin in One Page Only?
- Checking the count within a foreach loop
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- Basic function call on init failing
- Help with WP Business Directory Manager Plugin?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- get specific value of a array | PHP
- Is there a way to convert shortcodes to html content?
- Api external with wordpress
- Different registration form for different roles
- Can you echo PHP code from a variable?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- how to validate input field in wordpress generated with wpform plugin
- add_rewrite_rule to load different page, without changing URL in browser
- implement custom roles in custom plugin
- Share my WordPress plugin for updating how?
- The function called on the wp head hook becomes null
- Submitting form to PHP
- Adding discount functionality to the cart
- Why is my shortcode not working?
- Precheck fields when I add a new post
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- working code, not working – Plugin Dev
- How to Unhook actions/filters in within Class in plugin
- WPML – Hook when language is switched (change user language)
- Use action, filter, or hook to append HTML to WordPress plugin function
- Change custom rewrite rule when permalink is updated/changed
- Configuring default woo commerce login with modal popup
- register_activation_hook doesn’t fire at all
- My ajax request don´t work and return 0
- Populate select option with JSON file
- how to repeat taxonomy in different places on wordpress
- Create csv file in plugin
- Metabox Data not saving
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Including a PHP file via a function that is part of a plugin?
- How to disable register and reset the password from WordPress admin panel?
- Creating Features List in WordPress Post
- Call a function with href
- Adding a script & php to functions.php
- PHP Creating a formula from mysql db values and db stored math operator
- Subtract Using GravityWP Count Plugin
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- qTranslate‑X is not translating all shortcodes
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Option value not getting updated until page refresh in WordPress
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- stop resize button for wordpress media
- Mixed results with is_page() WordPress function, when using $this, or self