Giter Site home page Giter Site logo

arabic-post-style's Introduction

WordPress Arabic Posts Styling

A plugin to add custom style and fonts for Arabic posts

Usage

  • Upload arabic-post-style folder to your plugins directory
  • Go to WordPress Dashboard > Plugins > Activate the plugin
  • Go to a post or page to manage the new settings

Snapshots

WP Hooks

Actions

  • arabic_post_style_loaded
    • plugin loaded

Filters

  • arps_fonts_list
    • parameters: $list
    • Array if fonts list
  • arps_posts_styles
    • parameters: $final_styles
    • The final css added to the page header using wp_head action hook
  • arps_meta_box_post_types
    • parameters: $post_types
    • List of post types to add Arabic settings meta box to, default [ 'page', 'post' ]
  • arps_new_settings
    • parameters: $new_settings , $post_id
    • Styling settings for that $post_id to save
    • if this filter returned (boolean) false settings won't be saved
  • arps_post_settings
    • parameters: $settings , $post_id
    • Retrieved styling settings for that $post_id
  • arps_is_arabic_post
    • parameters: $is_arabic , $post_id
    • If this post $post_id is Arabic post true or not false

Contact if there are any problems

Hope you find it helpful :)

License: GNU General Public License, version 2, http://www.gnu.org/licenses/gpl-2.0.html

arabic-post-style's People

Contributors

n-molham avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.