Created
March 10, 2022 16:56
-
-
Save ashtonlance/b826c4754f801a57c391903c8ac1e781 to your computer and use it in GitHub Desktop.
Get Elementor custom css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'graphql_register_types', function() { | |
register_graphql_field( 'Page', 'customCSS', [ | |
'type' => 'String', | |
'description' => __( 'Custom CSS from Editor', 'wp-graphql' ), | |
'resolve' => function() { | |
// call your function which return your custom css | |
return $this->addPageCustomCssToGraphql(); | |
} | |
] ); | |
} ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment