This file contains 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
مشخصات | ویژگی | |
---|---|---|
19 - 33 | ولتاژ | |
پلی اتیلن کراس لینک نیمه رسانا | اسکرین هادی | |
8 میلی متر | ضخامت عایق | |
90+ سانتی گراد | حداکثر دمای کار هادی | |
XLPE | عایق | |
سیم آلومینیومی | جنس آرمور کابل تک هسته | |
سیم فولادی | جنس آرمور کابل چند هسته | |
پی وی سی | روکش استاندارد BS6622 | |
LSZH | روکش استاندارد BS7835 |
This file contains 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
add_action( 'graphql_register_types', function() { | |
register_graphql_field( 'Post', 'color', [ | |
'type' => 'String', | |
'description' => __( 'The color of the post', 'wp-graphql' ), | |
'resolve' => function( $post ) { | |
$color = get_post_meta( $post->ID, 'color', true ); | |
return ! empty( $color ) ? $color : 'blue'; | |
} | |
] ); | |
} ); |
This file contains 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
<template> | |
<div> | |
<h1>All Posts</h1> | |
<ul> | |
<li v-for="post in posts" :key="post.databaseId"> | |
<h2>{{ post.title }}</h2> | |
<p>{{ post.excerpt }}</p> | |
<img v-if="post.featuredImage" :src="post.featuredImage.node.sourceUrl" alt="Featured Image" /> | |
</li> | |
</ul> |
This file contains 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
request('http://your-wordpress-site.com/graphql', query) | |
.then(data => console.log(data)) | |
.catch(error => console.error(error)) |
This file contains 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 | |
/** | |
* Plugin Name:Ali Custom API | |
* Plugin URI: | |
* Description: Crushing | |
* Version: 1.0 | |
* Author: Ali | |
* Author URI: | |
*/ | |
add_action( 'rest_api_init', 'register_custom_endpoints' ); |
This file contains 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 | |
/** | |
* Plugin Name:Ali Custom API | |
* Plugin URI: | |
* Description: Crushing | |
* Version: 1.0 | |
* Author: Ali | |
* Author URI: | |
*/ | |
function get_all_category_names( $request ) { |
This file contains 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 | |
/** | |
* Plugin Name:Ali Custom API | |
* Plugin URI: | |
* Description: Crushing | |
* Version: 1.0 | |
* Author: Ali | |
* Author URI: | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name:Ali Custom API | |
* Plugin URI: | |
* Description: Crushing | |
* Version: 1.0 | |
* Author: Ali | |
* Author URI: | |
*/ |