PHP

PHP
integris_admin

הוספת טקסט בסוף תוכן

function change_content($content) {$my_text = "Eran Chen";$content = $content . "&" . $my_text;return $content;}add_filter('the_content', 'change_content');   הוספת טקסט בכל סוף פיסקה משנים פונקציה של וורדפרס ומחזירים

קרא עוד »
PHP
integris_admin

טעינת קבצי סקריפט ועיצוב

function integristat_scripts() {wp_enqueue_script('integristat-js',get_template_directory_uri() . '/assets/js/integristat.js',[ 'jquery' ],'1.0.0',true);wp_enqueue_style('integristat-css',get_template_directory_uri() . '/assets/css/integristat.css',[],'1.0.0',"all");}add_action( 'wp_enqueue_scripts', 'integristat_scripts' ); הכנסת קובץ לתיקייה בתבנית בנתיב מסויים

קרא עוד »
PHP
integris_admin

loop

<?php // The Query$the_query = new WP_Query( $args ); $the_query = array ('post_type' => 'post','order' => 'ASC'); // The Loopif ( $the_query->have_posts() ) {echo '<ul>';while

קרא עוד »
PHP
integris_admin

Page template

<?php /* Template Name: Order Template Post Type: page */ __('Order', 'hello-child'); if ( ! defined('ABSPATH')) { exit; // Exit if accessed directly. } \Elementor\Plugin::$instance->frontend->add_body_class('elementor-template-full-width');

קרא עוד »