<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>php wordpress programming &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/php-wordpress-programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Sun, 23 Aug 2015 21:22:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>php wordpress programming &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>wordpress OOP programming</title>
		<link>https://selmantunc.com.tr/uncategorized/wordpress-oop-programming/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 23 Aug 2015 21:22:24 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php wordpress programming]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2015/08/23/wordpress-oop-programming/</guid>

					<description><![CDATA[wordpress de oop olarak eklenti yazmak theme_setup (); $this-&#62;add_action (); } /** * initial theme setup */ public function theme_setup() { $default_image = get_template_directory_uri () . '/img/bg.png'; add_theme_support ( 'custom-background',&#8230;]]></description>
										<content:encoded><![CDATA[<p>wordpress de oop olarak eklenti yazmak </p>
<pre>theme_setup ();
        $this-&gt;add_action ();
    }

    /**
     * initial theme setup
     */
    public function theme_setup() {
        $default_image = get_template_directory_uri () . '/img/bg.png';
        add_theme_support ( 'custom-background', array (
                'default_image',
                $default_image
        ) );
        add_theme_support ( 'post-formats', array (
                'aside',
                'image',
                'link'
        ) );
        add_theme_support ( 'automatic-feed-links' );
        //add_theme_support ( 'post-thumbnails' );
    //  add_theme_support ( 'homepage-thumbnail', 500, 220, true );
        add_theme_support ( 'custom-header' );
        add_editor_style ( get_template_directory_uri () . 'editor-style.css' );
        // load_textdomain($domain, $mofile)
        if (! isset ( $content_with ))
            $content_with = 900;
    }
    public function add_action() {
        // regsiter sidebar
        add_action ( 'widgets_init', array (
                $this,
                'register-sidebar'
        ) );
        // register_menu
        add_action ( 'init', array (
                $this,
                'register_menus'
        ) );
        add_action ( 'wp_enqueue_scripts', array (
                $this,
                'load_scripts'
        ) );
        // the page title  dfd
        add_action ( 'wp_title', array (
                $this,
                'page-title'
        ) );

        // custom excerpt_lenght
        /*add_filter ( 'excerpt_lenght', array (
                $this,
                'excerpt_length'
        ) );*/
    }
    public function load_scripts() {
        wp_register_style ( 'stylesheet', get_template_directory_uri () . '/style.css' );
        wp_enqueue_style ( 'stylesheet' );
        wp_enqueue_script ( 'jquery' );
        wp_register_script ( 'main', get_template_directory_uri () . '/js/main.js' );
        wp_enqueue_script ( 'main' );
    }
    public function register_menus() {
        register_nav_menus ( array (
                'primary' =&gt; __ ( 'Main Menu', 'gazpo' )
        ) );

        register_nav_menus ( array (
                'footer' =&gt; __ ( 'Footer Menu', 'gazpo' )
        ) );
    }
    public function register_sidebar() {
        register_sidebar ( array (
                'name' =&gt; __ ( 'Main Menu', 'gazpo' ),
                'id' =&gt; 'primary',
                'before_widget' =&gt; '',
                'after_widget' =&gt; '',
                'before_title' =&gt; '',
                'after_title' =&gt; ''
        ) );
    }
    public static function page_title(){
        global $page,$paged;
        if (is_feed())
            return $title;
        $site_decription=get_bloginfo('name');
        $filtered_title=$title.get_bloginfo('name');

        return $filtered_title;
    }
}
$function = new Functions ();
</pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
