Skip to content

Abstract the act of storing references to Subject class#127

Merged
ashfame merged 1 commit intodocs/extendfrom
feedback_abstract_relationship_setting
Dec 4, 2024
Merged

Abstract the act of storing references to Subject class#127
ashfame merged 1 commit intodocs/extendfrom
feedback_abstract_relationship_setting

Conversation

@ashfame
Copy link
Member

@ashfame ashfame commented Nov 25, 2024

This PR implements the feedback provided in #125 to abstract away the storage of reference pointers.

Rendered documentation

Now, the developers would have to call:

$subject->store_reference( $my_product_id, 'mycompany_myplugin_unique_slug' );

and if desired, access their transformed post via Subject as well:

$post_obj = $subject->get_transformed_post( 'mycompany_myplugin_unique_slug' );

@ashfame ashfame self-assigned this Nov 25, 2024
@ashfame ashfame requested review from akirk and psrpinto November 25, 2024 19:24
@ashfame ashfame merged commit 361343c into docs/extend Dec 4, 2024
@ashfame ashfame deleted the feedback_abstract_relationship_setting branch December 4, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants