Add a filter that allows updating label positions#1618
Conversation
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant FrmStylesHelper
Developer ->> FrmStylesHelper: Call get_single_label_positions($field)
FrmStylesHelper -->> Developer: Return default label positions
FrmStylesHelper ->>+ Filter Hook: frm_single_label_positions($label_positions, $field)
Filter Hook -->>- FrmStylesHelper: Modified label positions
FrmStylesHelper -->> Developer: Return updated label positions
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
truongwp
left a comment
There was a problem hiding this comment.
This looks good! Thanks @AbdiTolesa!
There was a problem hiding this comment.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
classes/helpers/FrmStylesHelper.php (1)
Line range hint
41-67: Ensure the$fieldparameter is utilized effectively withinget_single_label_positions.The
$fieldparameter is added but not used within the method logic. This could be an oversight or a placeholder for future enhancements. Please confirm its intended use or consider removing it if it's unnecessary.
Related issue https://github.com/Strategy11/formidable-pro/issues/3849
Required for https://github.com/Strategy11/formidable-pro/pull/4947